aboutsummaryrefslogtreecommitdiffstats
path: root/src/listing.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | cargo fmt & cargo clippyjikstra2021-09-021-1/+1
| |
* | Fix rebasejikstra2021-09-021-0/+1
| |
* | Implement a raw rendering mode for recursive folder downloadjikstra2021-09-011-0/+7
|/ | | | | | | - Raw mode only displays file/folders and is more focused on computer processing - Display a banner in footer to recursively download the current folder with wget
* Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy2021-08-301-66/+26
| | | | | | | | | | | | | | | | | | | | | ... page rendering Too many arguments are moved around and many of them are already stored in MiniserveConfig. Many of these are used to render error pages. To fix this issue, it was necessary to rework error page rendering: 1. Implement `ResponseError` for `ContextualError` so that it can be returned from service handlers as is and will then be automatically logged to the console and converted into an error response. 2. At service handler level, all error responses are now rendered as plain text. 3. 'error_page_middleware' is now responsible for the rendering of the final error page from plain text reponses. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* Implement show symlink destinationDean Li2021-08-301-7/+13
| | | | | | | | | | | | | Add option `show_symlink_info` to represent show symlink info or not. (Default to no) Show symlink destination after symlink symbol in directory listing Resemble `ls -l` and also the short argument select for this feature is also `-l`. Basic testing is included. Related to #499
* migrate to actix-web v4.0-betaAli MJ Al-Nasrawy2021-08-281-23/+8
|
* Add backslash to percent_encode_sets.PATH_SEGMENT. Fixes #545jikstra2021-08-271-1/+1
|
* Upgrade qrcodegen (fixes #568)Sven-Hendrik Haase2021-08-251-2/+33
|
* Merge pull request #479 from aliemjay/rfc-resolve-symlinksSven-Hendrik Haase2021-04-181-20/+18
|\ | | | | Resolve symlinks on directory listing
| * Merge branch 'master' into rfc-resolve-symlinksAli MJ Al-Nasrawy2021-04-181-10/+20
| |\
| * | Avoid unneccessary syscalls for entry metadataAli MJ Al-Nasrawy2021-04-051-4/+7
| | | | | | | | | | | | | | | | | | For non-symlink files and directories, there is no need to call `std::fs::metadata()` as the metadata are already obtained via `entry.metadata()`
| * | Honor --no-symlinks option when listingAli MJ Al-Nasrawy2021-04-051-1/+1
| | |
| * | Bring back the symlink symbolAli MJ Al-Nasrawy2021-03-271-0/+11
| | |
| * | Resolve symlinks when listingAli MJ Al-Nasrawy2021-03-271-19/+3
| | | | | | | | | | | | | | | | | | This has the benefit of showing the size and modification date of the pointed-to file. Symlink to directories now respects '--dirs-first' option and broken symlinks don't show in directory listing.
* | | Rename compression code references to 'archive'Sven-Hendrik Haase2021-04-181-9/+9
| |/ |/| | | | | | | This name more closely resembles its purpose. For instance, we also now support plain tar archives which are uncompressed but archives nonetheless.
* | Merge pull request #492 from deantvv/tar-and-tar-archiveSven-Hendrik Haase2021-04-181-1/+3
|\ \ | | | | | | Separate tar archive and tar flags
| * | Change naming of uncompressed/compressed tarballsDean Li2021-04-181-3/+3
| | | | | | | | | | | | | | | | | | Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`
| * | Separate tar archive and tar flagsDean Li2021-04-111-1/+3
| |/ | | | | | | | | | | | | It used to have one flag (-r) to enable both tar archive and tar. Now it has two flags [ -r: for tar, -g: for tar archive]. Related to #451
* | Avoid double-encoding file URLAli MJ Al-Nasrawy2021-04-081-6/+5
| | | | | | | | | | | | | | | | Now that the '%' char itself is accepted in the file name and is encoded into '%25', this exposed a previously silent bug: `base` is already percent-encoded but it is encoded again when setting `file_url`. This produces erroneous URLs such as: '/%2523/x.y' instead of '/%23/x.y' for the path '/#/x.y'
* | Fix percent encoding for URLAli MJ Al-Nasrawy2021-04-061-5/+14
|/ | | | Use proper percent-encoding charset for each context.
* Add option to show hidden filesSven-Hendrik Haase2021-03-071-1/+2
|
* Fix DoS issue when deliberately sending unconforming URL pathsSven-Hendrik Haase2021-03-071-1/+1
|
* Add program version footerTamas Levai2021-02-281-0/+3
|
* Add option to list directories firstTamas Levai2021-01-041-0/+6
|
* Fix lintSven-Hendrik Haase2020-12-281-4/+2
|
* restore default theme cli option and add default theme dark optionLukas Stabe2020-10-011-0/+6
|
* move css out of html into its own routeLukas Stabe2020-09-261-0/+3
|
* [wip] client-side color-scheme handlingLukas Stabe2020-09-251-12/+0
|
* use format! instead of +Lukas Stabe2020-09-241-1/+1
|
* use unreachable instead of panic for unreachable caseLukas Stabe2020-09-241-1/+1
|
* use req.connection_info() and build breadcrumbs iterativelyLukas Stabe2020-09-241-25/+36
|
* add title option (#335) and breadcrumb links in headingLukas Stabe2020-09-241-8/+42
|
* Add embedded favicon (fixes #364)Sven-Hendrik Haase2020-09-241-0/+3
|
* Fix double-escaping (fixes #354)Sven-Hendrik Haase2020-08-241-5/+3
|
* make linter happyLukas Stabe2020-08-211-2/+6
|
* make name ordering case-insensitiveLukas Stabe2020-08-211-23/+19
|
* url-decode path in title and headingLukas Stabe2020-08-211-3/+12
|
* Remove unrelevant commentsequal-l22020-07-211-13/+0
|
* Update to actix 2 and futures 0.3equal-l22020-07-211-63/+77
|
* cargo fmtSven-Hendrik Haase2020-07-201-9/+6
|
* Add generate QR code (#330)wyhaya2020-07-051-0/+23
| | | | * Add generate QR code * Add --qrcode option
* Make clippy and cargo fmt happySven-Hendrik Haase2020-06-261-1/+1
|
* make sure archiving is opt-inmarawan ragab2020-05-101-3/+5
|
* Format everythingSven-Hendrik Haase2020-03-111-6/+5
|
* Ignore clippy warningDamian2020-03-021-1/+1
|
* Added option to disable archivesDamian2020-03-021-0/+21
|
* Compare paths instead of stringsboastful-squirrel2019-11-221-1/+1
|
* Upgrade percent-encoding to 2.0Sven-Hendrik Haase2019-07-251-2/+4
|
* Fix testsSven-Hendrik Haase2019-07-241-13/+13
|
* fix parent directorywyhaya2019-07-081-2/+13
|