aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Split up wget testsSven-Hendrik Haase2023-03-011-23/+35
|
* Merge pull request #1043 from Yusuto/wget-fixSven-Hendrik Haase2023-03-011-20/+88
|\ | | | | Fix the wget footer
| * Added tests and small fixesSilux2023-02-251-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!
| * Switched from using AsRef<str> to using &UriSilux2023-02-221-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.
| * Make the wget footer click to copySilux2023-02-221-1/+5
| |
| * Cleaned up thewget_footer function and generated commandSilux2023-02-221-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
| * Fix the wget footerSilux2023-02-211-7/+11
| | | | | | | | ...by having it use the absolute url instead of the breadcrumbs
* | Merge pull request #991 from Vam-Jam/sort_down_fixSven-Hendrik Haase2023-02-211-1/+1
|\ \ | |/ |/| [fix] Sorting breaks subdir downloading
| * [fix] Sorting breaks subdir downloadingVamist2022-12-061-1/+1
| | | | | | - Small check in render.rs make_link_with_trailing_slash to return nothing if link is empty, instead of adding a /
* | Bump more depsSven-Hendrik Haase2023-01-221-1/+1
| |
* | Fix lintsSven-Hendrik Haase2022-12-191-11/+11
|/
* Bump depsSven-Hendrik Haase2022-11-111-1/+5
|
* RefactoringIvkinStanislav2022-11-101-4/+2
|
* Update datetime formatIvkinStanislav2022-11-101-1/+1
| | | Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
* Change DateTime formats.ivkin2022-10-231-11/+6
|
* Upgrade clap to v4Sven-Hendrik Haase2022-10-121-3/+13
|
* Bump depsSven-Hendrik Haase2022-09-261-2/+2
|
* Tidy up some importsSven-Hendrik Haase2022-09-201-4/+3
|
* Merge pull request #858 from jonasdiemer/restrict-upload-dirSven-Hendrik Haase2022-09-201-1/+7
|\ | | | | Added option restrict-upload-dir
| * 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
|