aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move QR code page style to `style.scss`cyqsimon2022-08-221-30/+17
| |
* | Fix testscyqsimon2022-08-221-1/+1
| |
* | Switch to `qrcode` libcyqsimon2022-08-221-0/+40
|/
* Simplify README code a bitSven-Hendrik Haase2022-08-141-8/+8
|
* Edit Readme struct to remove render boolGaurav2022-08-141-4/+4
|
* Make Readme structGaurav2022-08-141-12/+5
|
* Add `--readme` info and reformatGaurav2022-08-141-9/+10
|
* Satisfy cargo fmtGaurav2022-08-141-12/+12
|
* Replace `markdown` by `comrak`; Render support for nested dirsGaurav2022-08-141-4/+9
| | | | | | | * README.md will be rendered at currently visiting directory instead of just in the root. * Rendering is now done by comrak, which seems heavy but has a lot more features.
* Add support for readme renderingGaurav2022-08-141-0/+9
|
* Create directory (#781)Sheepy2022-06-261-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability to make directory Frontend for making directories Fix potential security vulnerability (CWE-23) Add tests Update README.md Disallow using parent directories altogether Fix formatting Fix clippy warnings Address review comments Update README.md Change `making` to `creation` Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> Have make directory flag require file upload flag Address review comments * Disallow uploading files and making directories through symlinks when disabled * Add test * Clippy formatting changes * Add test doc comment
* Fix lintSven-Hendrik Haase2022-06-071-2/+2
|
* Flip usage of theme selector showing functionality added in last commitSven-Hendrik Haase2022-05-231-3/+3
| | | | This is so it doesn't break current configurations. Let's not surprise the users.
* Add configuration `change-theme` (#805)FLAMINGO2022-05-231-10/+12
| | | Add configuration `change-theme`Add configuration `change-theme`
* Allow to set the accept input attribute to arbitrary valuesJohannes May2022-03-121-1/+4
|
* Make more use of flex in mobile formatting (fixes #142)Sven-Hendrik Haase2022-02-061-5/+9
|
* Fix route_prefix for css and faviconAli MJ Al-Nasrawy2022-02-061-2/+2
|
* 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)