aboutsummaryrefslogtreecommitdiffstats
path: root/src/listing.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switched from using AsRef<str> to using &UriSilux2023-02-221-7/+7
| | | | | | | | 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.
* Fix more lintsSven-Hendrik Haase2022-12-311-1/+1
|
* Fix lintsSven-Hendrik Haase2022-12-191-1/+1
|
* Upgrade clap to v4Sven-Hendrik Haase2022-10-121-1/+1
|
* Tidy up some importsSven-Hendrik Haase2022-09-201-3/+1
|
* Add support for README.txt and README filesGaurav-Lab-PC2022-09-191-5/+12
|
* Merge branch 'master' into qrcodecyqsimon2022-09-151-2/+2
|\
| * Fix typosKian-Meng Ang2022-09-141-2/+2
| | | | | | | | Found via `codespell -L crate`.
* | Remove leftover `dbg!`cyqsimon2022-09-011-1/+0
| |
* | Fix drop-down QR codecyqsimon2022-09-011-17/+9
| |
* | Fix rustfmt complaintscyqsimon2022-08-221-6/+13
| |
* | Move QR code page style to `style.scss`cyqsimon2022-08-221-15/+8
| |
* | Use `mime` for content typecyqsimon2022-08-221-1/+1
| |
* | Switch to `qrcode` libcyqsimon2022-08-221-36/+5
|/
* Simplify README code a bitSven-Hendrik Haase2022-08-141-35/+8
|
* Edit Readme struct to remove render boolGaurav2022-08-141-19/+8
|
* Make Readme structGaurav2022-08-141-14/+47
|
* Add `--readme` info and reformatGaurav2022-08-141-1/+0
|
* Satisfy cargo fmtGaurav2022-08-141-9/+17
|
* Replace `markdown` by `comrak`; Render support for nested dirsGaurav2022-08-141-2/+6
| | | | | | | * 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 `--readme` flag to cliGaurav2022-08-141-2/+2
|
* Add support for readme renderingGaurav2022-08-141-1/+7
|
* Use `mime` for all content type declarationscyqsimon2022-07-211-15/+13
|
* Create directory (#781)Sheepy2022-06-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 new clippy lintsSven-Hendrik Haase2022-05-231-1/+1
|
* Allow clippy::format_push_stringSven-Hendrik Haase2022-05-061-3/+5
| | | | I think if we followed the lint the code would be less readable for no real benefit.
* Merge 'jikstra/feat_route_prefix' #682Ali MJ Al-Nasrawy2022-02-061-5/+3
|\
| * Implement --route-prefix to set specific route prefixjikstra2021-12-291-5/+3
| |
* | update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy2022-02-051-4/+3
| |
* | Bump actix-web to v4.0-beta.15jikstra2021-12-281-3/+3
|/ | | | Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* Merge branch 'master' into feat_raw_modeJikstra2021-09-101-17/+3
|\
| * extract_query_parameters(): avoid clone and simplifyAli MJ Al-Nasrawy2021-08-311-15/+3
| | | | | | | | Signe-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* | cargo fmt & cargo clippyjikstra2021-09-021-1/+1
| |
* | Fix rebasejikstra2021-09-021-0/+1
| |
* | Implement a raw rendering mode for recursive folder downloadjikstra2021-09-011-0/+7
|/ | | | | | | - 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
* Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy2021-08-301-66/+26
| | | | | | | | | | | | | | | | | | | | | ... 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-7/+13
| | | | | | | | | | | | | 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
* migrate to actix-web v4.0-betaAli MJ Al-Nasrawy2021-08-281-23/+8
|
* Add backslash to percent_encode_sets.PATH_SEGMENT. Fixes #545jikstra2021-08-271-1/+1
|
* Upgrade qrcodegen (fixes #568)Sven-Hendrik Haase2021-08-251-2/+33
|
* Merge pull request #479 from aliemjay/rfc-resolve-symlinksSven-Hendrik Haase2021-04-181-20/+18
|\ | | | | Resolve symlinks on directory listing
| * Merge branch 'master' into rfc-resolve-symlinksAli MJ Al-Nasrawy2021-04-181-10/+20
| |\
| * | Avoid unneccessary syscalls for entry metadataAli MJ Al-Nasrawy2021-04-051-4/+7
| | | | | | | | | | | | | | | | | | For non-symlink files and directories, there is no need to call `std::fs::metadata()` as the metadata are already obtained via `entry.metadata()`
| * | Honor --no-symlinks option when listingAli MJ Al-Nasrawy2021-04-051-1/+1
| | |
| * | Bring back the symlink symbolAli MJ Al-Nasrawy2021-03-271-0/+11
| | |
| * | Resolve symlinks when listingAli MJ Al-Nasrawy2021-03-271-19/+3
| | | | | | | | | | | | | | | | | | 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-9/+9
| |/ |/| | | | | | | 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-1/+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-1/+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