aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Changed handling of allowed path to fix WindowsJonas Diemer2022-09-191-1/+1
| |
| * cargo fmtJonas Diemer2022-09-181-3/+6
| |
| * Renamed option for more clarityJonas Diemer2022-09-181-1/+1
| |
| * cleaned up code using any()Jonas Diemer2022-09-181-14/+2
| |
| * Switched to use of PathBuf, fixed for subdirsJonas Diemer2022-09-181-8/+15
| |
| * fixed rendering of upload if non-restrictedJonas Diemer2022-09-181-1/+2
| |
| * Added option restrict-upload-dirJonas Diemer2022-09-181-1/+8
| |
* | Fix `fast_qr` API breaking changecyqsimon2022-09-191-1/+1
|/
* Merge branch 'master' into qrcodecyqsimon2022-09-151-3/+5
|\
| * Add tests for `--readme`Gaurav2022-08-261-3/+5
| |
* | Add tooltip on QR codecyqsimon2022-09-151-1/+1
| |
* | Move QR margin size into `consts`cyqsimon2022-09-011-1/+1
| |
* | Switch to `fast_qr` cratecyqsimon2022-09-011-26/+10
| |
* | Fix drop-down QR codecyqsimon2022-09-011-38/+57
| |
* | 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
| | |