aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-03-01Split up wget testsSven-Hendrik Haase1-23/+35
2023-02-25Added tests and small fixesSilux1-5/+68
...discovered when writing the tests. Ran rustfmt, clippy::all, cargo test, everything passed and I hope the tests I wrote are good. Now with 100% less forgotten debug logs!
2023-02-22Switched from using AsRef<str> to using &UriSilux1-9/+10
I honestly just switched the definition and then frantically changed small things based on rusts error messages, but it passes fmt, clippy and tests so I think it's fine. This allow a bit finer control over the URI, but is honetly a bit insignificant.
2023-02-22Make the wget footer click to copySilux1-1/+5
2023-02-22Cleaned up thewget_footer function and generated commandSilux1-18/+14
The command now has slightly more concise flags, the cut_dir flag gets omitted when it would be zero, if downloading root put files in a folder named the title of the page, use match claues instead of ifs, bit more concise I think
2023-02-21Fix the wget footerSilux1-7/+11
...by having it use the absolute url instead of the breadcrumbs
2023-01-22Bump more depsSven-Hendrik Haase1-1/+1
2022-12-19Fix lintsSven-Hendrik Haase1-11/+11
2022-12-06[fix] Sorting breaks subdir downloadingVamist1-1/+1
- Small check in render.rs make_link_with_trailing_slash to return nothing if link is empty, instead of adding a /
2022-11-11Bump depsSven-Hendrik Haase1-1/+5
2022-11-10RefactoringIvkinStanislav1-4/+2
2022-11-10Update datetime formatIvkinStanislav1-1/+1
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
2022-10-23Change DateTime formats.ivkin1-11/+6
2022-10-12Upgrade clap to v4Sven-Hendrik Haase1-3/+13
2022-09-26Bump depsSven-Hendrik Haase1-2/+2
2022-09-20Tidy up some importsSven-Hendrik Haase1-4/+3
2022-09-19Fix `fast_qr` API breaking changecyqsimon1-1/+1
2022-09-19Changed handling of allowed path to fix WindowsJonas Diemer1-1/+1
2022-09-18cargo fmtJonas Diemer1-3/+6
2022-09-18Renamed option for more clarityJonas Diemer1-1/+1
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