aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-30Use selected theme in error pageAli MJ Al-Nasrawy1-0/+10
2021-08-30Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy1-49/+28
... 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>
2021-08-30Implement show symlink destinationDean Li1-11/+20
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
2021-08-30Switch from structopt to clap v3Sven-Hendrik Haase1-1/+1
2021-06-28Fix lintsSven-Hendrik Haase1-2/+2
2021-04-18Rename compression code references to 'archive'Sven-Hendrik Haase1-8/+8
This name more closely resembles its purpose. For instance, we also now support plain tar archives which are uncompressed but archives nonetheless.
2021-04-18Change naming of uncompressed/compressed tarballsDean Li1-3/+3
Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`
2021-04-11Separate tar archive and tar flagsDean Li1-2/+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
2021-04-09Fix breadcrumbs mess on mobileAli MJ Al-Nasrawy1-1/+1
On mobile devices, 'display: block' is set for '.directory' class. While this neccessary to make the whole row for directories entry clickable, it distorts the links in breadcrumbs.
2021-04-09Fix breadcrumbs for RTL languagesAli MJ Al-Nasrawy1-3/+3
2021-03-29Move symlink symbol from html to cssAli MJ Al-Nasrawy1-2/+2
This should facilitate testing because this symbol will no longer a part of the entry text shown in html.
2021-03-27Bring back the symlink symbolAli MJ Al-Nasrawy1-0/+6
2021-03-27Resolve symlinks when listingAli MJ Al-Nasrawy1-4/+0
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.
2021-03-26Fix QR code display when using --random-routeAndy Freeland1-1/+1
Previously the QR code would not display because `/` is a 404 when using `--random-route`.
2021-03-01Use CSS to configure version footer lookTamas Levai1-1/+1
2021-03-01renderer: Follow alphabetical order in package usesTamas Levai1-1/+2
2021-03-01Use structopt macros to ge crate infoTamas Levai1-13/+2
2021-02-28Fix indentationTamas Levai1-6/+6
2021-02-28Add program version footerTamas Levai1-0/+28
2021-01-15enable multiple file uploadMichael Hueschen1-1/+1
tested with miniserve running on linux, with browsers: - Safari on iPhone - Firefox on Linux (NixOS)
2020-10-02more feedbackLukas Stabe1-2/+3
2020-10-02address feedbackLukas Stabe1-2/+11
2020-10-01restore default theme cli option and add default theme dark optionLukas Stabe1-4/+10
2020-09-26remove default color scheme cli argumentLukas Stabe1-15/+20
2020-09-26move css out of html into its own routeLukas Stabe1-13/+8
2020-09-25[wip] client-side color-scheme handlingLukas Stabe1-550/+54
2020-09-24add title option (#335) and breadcrumb links in headingLukas Stabe1-13/+27
2020-09-24Add embedded favicon (fixes #364)Sven-Hendrik Haase1-2/+6
2020-09-16Use Humanize for SystemTime directlyKevin Cui1-8/+4
2020-09-15Fix cargo fmt checkKevin Cui1-1/+1
2020-09-15Cleanup formatKevin Cui1-1/+1
2020-09-15Replace HumanTime::to_text_en by HumanTimeKevin Cui1-8/+2
2020-09-14Fix wrong use of formatKevin Cui1-1/+1
2020-09-12Show "now" when last modification time less than 11 secondsKevin Cui1-1/+7
2020-08-21set size and date column to smaller, fixed sizesLukas Stabe1-6/+13
2020-08-21url-decode path in title and headingLukas Stabe1-6/+7
2020-07-05Add generate QR code (#330)wyhaya1-57/+78
* Add generate QR code * Add --qrcode option
2020-05-10make sure archiving is opt-inmarawan ragab1-3/+6
2020-03-09Fix deprecated stuffSven-Hendrik Haase1-5/+5
2020-03-02Ignore clippy warningDamian1-1/+1
2020-03-02Added option to disable archivesDamian1-3/+6
2019-11-21added missing head tagboastful-squirrel1-44/+46
2019-11-21Fix html elements orderboastful-squirrel1-1/+1
2019-08-16Fix indentationboastful-squirrel1-1/+1
2019-08-16Fix HTMLboastful-squirrel1-101/+104
2019-07-24Fix testsSven-Hendrik Haase1-15/+7
2019-07-08remove page_parentwyhaya1-1/+0
2019-07-08fix parent directorywyhaya1-28/+31
2019-07-08add spacewyhaya1-1/+1
2019-07-04accomplish #142wyhaya1-3/+43