Commit Graph

226 Commits

Author SHA1 Message Date
Seednode aa6cb2aeef Allow --fallback as sole format option 2023-11-13 17:31:00 -06:00
Seednode 61ea0b9670 Replace default --image flag with MarkFlagsOneRequired() from spf13/cobra 2023-11-05 08:23:49 -06:00
Seednode d902368845 Add first/prev/next/last buttons to sorted content 2023-10-20 17:18:35 -05:00
Seednode 9274162b4b Only pass Fun value to Type{} if it has an actual effect 2023-10-19 09:44:41 -05:00
Seednode c6941f1336 Rename mime types to media types, change endpoints accordingly 2023-10-09 09:47:17 -05:00
Seednode 9633239b69 Spacebar now also resumes automatic refreshing 2023-10-09 08:17:32 -05:00
Seednode f36c0cc999 Spacebar now pauses automatic page refreshing 2023-10-08 17:38:09 -05:00
Seednode 9844f4a2e1 Add new --fun flag, add comments to Type interface 2023-10-04 17:33:03 -05:00
Seednode 84c25310da Replace single-value registered format struct with the map value itself 2023-10-04 14:09:49 -05:00
Seednode 5dc218c60e Remove timestamp from error output, allow min/max file count value of 0 2023-10-03 15:00:32 -05:00
Seednode e67752470d Add --fallback option to serve every file, even if no corresponding format is registered 2023-10-03 09:44:50 -05:00
Seednode 8c4633f40f Load timezone before displaying first log output, to ensure consistent timestamps 2023-09-30 07:49:40 -05:00
Seednode fa1e3d126f Simplify type registration system 2023-09-29 14:36:11 -05:00
Seednode 71497198fa Remove -c shorthand for --index, update PGO profile 2023-09-29 08:31:35 -05:00
Seednode 1d0e4634c7 Rename cache to index for more accurate terminology 2023-09-28 10:09:45 -05:00
Seednode 19c2e616fc Rework verbose output for visual consistency 2023-09-28 07:29:33 -05:00
Seednode 0e8ac8cdc5 Preserve case of filter query params even without --case-sensitive, include filename in --verbose output for cache import/export 2023-09-28 06:15:10 -05:00
Seednode 4d8b47a6e3 Remove trailing ellipsis after displaying bound socket 2023-09-28 04:50:08 -05:00
Seednode c8dcc58c1a Release first stable version! 2023-09-28 04:42:30 -05:00
Seednode c57bb9c4c2 Sorting now supports arbitrary numbering length, so long as it is sequential 2023-09-28 03:36:26 -05:00
Seednode 1b84606232 Remove debug statements, update PGO profile 2023-09-26 16:47:01 -05:00
Seednode 64e756f6a3 Make multiple filters actually function, instead of only applying the last filter 2023-09-26 16:37:28 -05:00
Seednode 9a2bf05790 Ensure listen port log entry displays before cache import 2023-09-26 16:11:40 -05:00
Seednode 88a8aff135 Return to pass-by-value instead of globals, to make Sean happy 2023-09-26 15:50:16 -05:00
Seednode 81b2d4a7b4 Capitalize logging prefixes, limit values to math.MaxInt32 2023-09-26 05:29:55 -05:00
Seednode 935021e464 Replace uint/uint16/uint32 values with int, declare errors as variables 2023-09-26 03:49:20 -05:00
Seednode 173e1528be Rewrite filewalk functions, add (incomplete) to logging when -v|--verbose is passed and a broken pipe error is received 2023-09-16 20:15:39 -05:00
Seednode 16d1428a52 Display bytes written to response instead of size of files being served in logs 2023-09-15 15:30:52 -05:00
Seednode 7d49a86e70 Format inline file sizes with humanReadableSize() 2023-09-15 15:19:56 -05:00
Seednode d4cf9cfa4f Add Type() method to types.Type, to allow displaying served file size for both embedded and inline files 2023-09-15 15:13:45 -05:00
Seednode 1ed9df3932 Add log channel, add --exit-on-error option 2023-09-15 14:28:21 -05:00
Seednode ba827430bb Change --theme to --code-theme 2023-09-15 01:31:23 -05:00
Seednode 5ab6d1ee85 Add custom theme support 2023-09-14 22:13:21 -05:00
Seednode 0b62009fa3 Remove debug argument 2023-09-14 21:13:12 -05:00
Seednode 28bc560098 Add more languages for code syntax highlighting 2023-09-14 21:02:48 -05:00
Seednode aaee51e9a4 Add syntax highlighting for code 2023-09-14 17:37:22 -05:00
Seednode 99ec1d7ebd Allow toggling of page refreshInterval 2023-09-14 00:01:50 -05:00
Seednode fdd33376ce Add --prefix flag for easy reverse proxying 2023-09-13 23:24:29 -05:00
Seednode bfb04cab66 Remove unneeded(?) prepareDirectory() function 2023-09-13 20:45:28 -05:00
Seednode ce99374a9f Removed statistics (sorry) pending full rewrite 2023-09-13 17:02:43 -05:00
Seednode 65b77f33cc Attempt to rework stats handling, add support for '~' in paths 2023-09-13 12:30:24 -05:00
Seednode 61f10a6f3c Split http handler registration into source files 2023-09-13 12:00:24 -05:00
Seednode 64639a87a3 Changed all variables to non-exported by default 2023-09-13 09:26:15 -05:00
Seednode d7bc6e2451 Total restructure, just look at the diffs at this point 2023-09-12 23:35:17 -05:00
Seednode cbf7218453 Added endpoints to view registered file formats 2023-09-12 22:35:15 -05:00
Seednode c77a151a24 Gonna be honest, guys, I don't think I know what an interface is 2023-09-12 20:56:39 -05:00
Seednode a7daf81754 Replace []string with map[string]string for extensions, to allow setting default MIME type values 2023-09-12 19:46:27 -05:00
Seednode 732d944036 Rename formats package to types, replace Css string literal in type struct with func() string 2023-09-12 16:32:19 -05:00
Seednode c996f3fc53 Serve ruffle from their CDN, instead of vendoring locally 2023-09-12 13:14:05 -05:00
Seednode a29390aa76 Added .swf support, fallback to filetype detection by extension if mime type detection fails 2023-09-12 13:06:45 -05:00