Jeremy Lin
e81369e220
fileserver: Move default browse template into a separate file ( #4417 )
This makes it easier for users to find the default browse template if they
want to create a custom template based on that. It also makes it easier to
view the template with proper syntax highlighting.
3 years ago
Klaus Helenius
a21d5a001f
fileserver: Prevent focusing filter from scrolling on page load ( #4393 )
3 years ago
Slavik
0a5f7a677f
fileserver: Make file listing links purple once visited ( #4356 )
3 years ago
rai
a48c6205b7
fileserver: Browse listing supports dark mode ( #4066 )
* Add dark color scheme media query
* Theme search box, make everything less contrasting
* Further contrast tweaks
4 years ago
Mohammed Al Sahaf
d4f249741e
browse: align template to struct field renames from 4940325
( #3706 )
4 years ago
snu-ceyda
735c86658d
fileserver: Enable browse pagination with offset parameter ( #3542 )
* Update browse.go
* Update browselisting.go
* Update browsetpl.go
* fix linter err
* Update modules/caddyhttp/fileserver/browse.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* Update modules/caddyhttp/fileserver/browselisting.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* Update browsetpl.go
change from -> offset
* Update browse.go
* Update browselisting.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
5 years ago
Jeremy Lin
98bbc54fdc
browse: allow filter init via `filter` query param ( #3027 )
This allows creating links that display only a subset of files in a directory.
5 years ago
Matthew Holt
3177ee8010
Add license
6 years ago
Matthew Holt
a969872850
Default error handler; rename StaticFiles -> FileServer
6 years ago
Matthew Holt
22995e5655
Implement most of browse; fix a couple obvious bugs; some cleanup
6 years ago