aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement --route-prefix to set specific route prefixjikstra2021-12-291-5/+2
|
* Bump depsSven-Hendrik Haase2021-12-091-1/+1
|
* Upgrade to Rust 2021 editionSven-Hendrik Haase2021-10-261-4/+4
|
* Merge pull request #508 from Jikstra/feat_raw_modeSven-Hendrik Haase2021-09-231-16/+96
|\ | | | | Implement a raw rendering mode for recursive folder download
| * Implement --show-wget-footer argumentjikstra2021-09-101-2/+4
| |
| * Apply requested changesjikstra2021-09-101-2/+2
| |
| * cargo fmt & cargo clippyjikstra2021-09-021-12/+5
| |
| * Fix rebasejikstra2021-09-021-21/+16
| |
| * Implement a raw rendering mode for recursive folder downloadjikstra2021-09-011-14/+104
| | | | | | | | | | | | | | - 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
* | Rename Archlinux -> Arch LinuxSven-Hendrik Haase2021-09-231-1/+1
|/
* Use selected theme in error pageAli MJ Al-Nasrawy2021-08-301-0/+10
|
* Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy2021-08-301-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>
* Implement show symlink destinationDean Li2021-08-301-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
* Switch from structopt to clap v3Sven-Hendrik Haase2021-08-301-1/+1
|
* Fix lintsSven-Hendrik Haase2021-06-281-2/+2
|
* Merge pull request #479 from aliemjay/rfc-resolve-symlinksSven-Hendrik Haase2021-04-181-4/+6
|\ | | | | Resolve symlinks on directory listing
| * Merge branch 'master' into rfc-resolve-symlinksAli MJ Al-Nasrawy2021-04-181-6/+7
| |\
| * | Move symlink symbol from html to cssAli MJ Al-Nasrawy2021-03-291-2/+2
| | | | | | | | | | | | | | | This should facilitate testing because this symbol will no longer a part of the entry text shown in html.
| * | Bring back the symlink symbolAli MJ Al-Nasrawy2021-03-271-0/+6
| | |
| * | Resolve symlinks when listingAli MJ Al-Nasrawy2021-03-271-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.
* | | Rename compression code references to 'archive'Sven-Hendrik Haase2021-04-181-8/+8
| |/ |/| | | | | | | 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-2/+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-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
* | Fix breadcrumbs mess on mobileAli MJ Al-Nasrawy2021-04-091-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.
* | Fix breadcrumbs for RTL languagesAli MJ Al-Nasrawy2021-04-091-3/+3
|/
* Fix QR code display when using --random-routeAndy Freeland2021-03-261-1/+1
| | | | | Previously the QR code would not display because `/` is a 404 when using `--random-route`.
* Use CSS to configure version footer lookTamas Levai2021-03-011-1/+1
|
* renderer: Follow alphabetical order in package usesTamas Levai2021-03-011-1/+2
|
* Use structopt macros to ge crate infoTamas Levai2021-03-011-13/+2
|
* Fix indentationTamas Levai2021-02-281-6/+6
|
* Add program version footerTamas Levai2021-02-281-0/+28
|
* enable multiple file uploadMichael Hueschen2021-01-151-1/+1
| | | | | | | tested with miniserve running on linux, with browsers: - Safari on iPhone - Firefox on Linux (NixOS)
* more feedbackLukas Stabe2020-10-021-2/+3
|
* address feedbackLukas Stabe2020-10-021-2/+11
|
* restore default theme cli option and add default theme dark optionLukas Stabe2020-10-011-4/+10
|
* remove default color scheme cli argumentLukas Stabe2020-09-261-15/+20
|
* move css out of html into its own routeLukas Stabe2020-09-261-13/+8
|
* [wip] client-side color-scheme handlingLukas Stabe2020-09-251-550/+54
|
* add title option (#335) and breadcrumb links in headingLukas Stabe2020-09-241-13/+27
|
* Add embedded favicon (fixes #364)Sven-Hendrik Haase2020-09-241-2/+6
|
* Use Humanize for SystemTime directlyKevin Cui2020-09-161-8/+4
|
* Fix cargo fmt checkKevin Cui2020-09-151-1/+1
|
* Cleanup formatKevin Cui2020-09-151-1/+1
|
* Replace HumanTime::to_text_en by HumanTimeKevin Cui2020-09-151-8/+2
|
* Fix wrong use of formatKevin Cui2020-09-141-1/+1
|
* Show "now" when last modification time less than 11 secondsKevin Cui2020-09-121-1/+7
|
* set size and date column to smaller, fixed sizesLukas Stabe2020-08-211-6/+13
|
* url-decode path in title and headingLukas Stabe2020-08-211-6/+7
|
* Add generate QR code (#330)wyhaya2020-07-051-57/+78
| | | | * Add generate QR code * Add --qrcode option