aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-09-18cleaned up code using any()Jonas Diemer1-14/+2
2022-09-18Switched to use of PathBuf, fixed for subdirsJonas Diemer1-8/+15
2022-09-18fixed rendering of upload if non-restrictedJonas Diemer1-1/+2
2022-09-18Added option restrict-upload-dirJonas Diemer1-1/+8
2022-09-15Add tooltip on QR codecyqsimon1-1/+1
2022-09-01Move QR margin size into `consts`cyqsimon1-1/+1
2022-09-01Switch to `fast_qr` cratecyqsimon1-26/+10
2022-09-01Fix drop-down QR codecyqsimon1-38/+57
2022-08-26Add tests for `--readme`Gaurav1-3/+5
2022-08-22Move QR code page style to `style.scss`cyqsimon1-30/+17
2022-08-22Fix testscyqsimon1-1/+1
2022-08-22Switch to `qrcode` libcyqsimon1-0/+40
2022-08-14Simplify README code a bitSven-Hendrik Haase1-8/+8
2022-08-14Edit Readme struct to remove render boolGaurav1-4/+4
2022-08-14Make Readme structGaurav1-12/+5
2022-08-14Add `--readme` info and reformatGaurav1-9/+10
2022-08-14Satisfy cargo fmtGaurav1-12/+12
2022-08-14Replace `markdown` by `comrak`; Render support for nested dirsGaurav1-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.
2022-08-14Add support for readme renderingGaurav1-0/+9
2022-06-26Create directory (#781)Sheepy1-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
2022-06-07Fix lintSven-Hendrik Haase1-2/+2
2022-05-23Flip usage of theme selector showing functionality added in last commitSven-Hendrik Haase1-3/+3
This is so it doesn't break current configurations. Let's not surprise the users.
2022-05-23Add configuration `change-theme` (#805)FLAMINGO1-10/+12
Add configuration `change-theme`Add configuration `change-theme`
2022-03-12Allow to set the accept input attribute to arbitrary valuesJohannes May1-1/+4
2022-02-06Make more use of flex in mobile formatting (fixes #142)Sven-Hendrik Haase1-5/+9
2022-02-06Fix route_prefix for css and faviconAli MJ Al-Nasrawy1-2/+2
2021-12-29Implement --route-prefix to set specific route prefixjikstra1-5/+2
2021-12-09Bump depsSven-Hendrik Haase1-1/+1
2021-10-26Upgrade to Rust 2021 editionSven-Hendrik Haase1-4/+4
2021-09-23Rename Archlinux -> Arch LinuxSven-Hendrik Haase1-1/+1
2021-09-10Implement --show-wget-footer argumentjikstra1-2/+4
2021-09-10Apply requested changesjikstra1-2/+2
2021-09-02cargo fmt & cargo clippyjikstra1-12/+5
2021-09-02Fix rebasejikstra1-21/+16
2021-09-01Implement a raw rendering mode for recursive folder downloadjikstra1-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
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