aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into rfc-resolve-symlinksAli MJ Al-Nasrawy2021-04-187-162/+221
|\
| * Merge pull request #492 from deantvv/tar-and-tar-archiveSven-Hendrik Haase2021-04-185-7/+20
| |\ | | | | | | Separate tar archive and tar flags
| | * Change naming of uncompressed/compressed tarballsDean Li2021-04-185-23/+18
| | | | | | | | | | | | | | | | | | Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`
| | * Separate tar archive and tar flagsDean Li2021-04-115-7/+25
| | | | | | | | | | | | | | | | | | | | | 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
| * | Merge pull request #485 from aliemjay/percent-encodeSven-Hendrik Haase2021-04-181-9/+17
| |\ \ | | | | | | | | Fix URL percent encoding for special characters
| | * | Avoid double-encoding file URLAli MJ Al-Nasrawy2021-04-081-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the '%' char itself is accepted in the file name and is encoded into '%25', this exposed a previously silent bug: `base` is already percent-encoded but it is encoded again when setting `file_url`. This produces erroneous URLs such as: '/%2523/x.y' instead of '/%23/x.y' for the path '/#/x.y'
| | * | Fix percent encoding for URLAli MJ Al-Nasrawy2021-04-061-5/+14
| | |/ | | | | | | | | | Use proper percent-encoding charset for each context.
| * | Fix breadcrumbs mess on mobileAli MJ Al-Nasrawy2021-04-091-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.
| * | Fix breadcrumbs for RTL languagesAli MJ Al-Nasrawy2021-04-091-3/+3
| |/
| * Bump depsSven-Hendrik Haase2021-03-281-0/+1
| |
| * Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase2021-03-284-38/+61
| |
| * Change start message without arguments to be a bit more clearSven-Hendrik Haase2021-03-281-4/+4
| |
| * Change default log level to WarnSven-Hendrik Haase2021-03-281-1/+1
| |
| * Better message for when provided index file doesn't existSven-Hendrik Haase2021-03-281-3/+4
| |
| * Print supported shells for completions in help commandSven-Hendrik Haase2021-03-281-1/+1
| |
| * Refactor and separate out arg handling and config handlingSven-Hendrik Haase2021-03-282-91/+94
| |
| * Merge pull request #482 from rouge8/shell-completionsSven-Hendrik Haase2021-03-282-8/+18
| |\ | | | | | | Generate completions with `miniserve --print-completions <shell>`
| | * Generate completions with `miniserve --print-completions <shell>`Andy Freeland2021-03-282-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds a `--print-completions` option to generate shell completion files at runtime. This ensures the completions are always up to date. Fixes #377.
* | | 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
| | |
* | | 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-272-0/+17
| | |
* | | Resolve symlinks when listingAli MJ Al-Nasrawy2021-03-272-23/+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.
* / Fix QR code display when using --random-routeAndy Freeland2021-03-261-1/+1
|/ | | | | Previously the QR code would not display because `/` is a 404 when using `--random-route`.
* Switch from failure to thiserrorSven-Hendrik Haase2021-03-201-28/+17
|
* Add option to show hidden filesSven-Hendrik Haase2021-03-073-25/+43
|
* Start without countdown in case an explicit index is chosenSven-Hendrik Haase2021-03-071-1/+1
|
* Fix DoS issue when deliberately sending unconforming URL pathsSven-Hendrik Haase2021-03-071-1/+1
|
* Use CSS to configure version footer lookTamas Levai2021-03-011-1/+1
|
* renderer: Follow alphabetical order in package usesTamas Levai2021-03-011-1/+2
|
* Use structopt macros to ge crate infoTamas Levai2021-03-011-13/+2
|
* Fix clippy warningTamas Levai2021-03-011-0/+1
|
* Fix indentationTamas Levai2021-02-281-6/+6
|
* Add program version footerTamas Levai2021-02-286-0/+52
|
* Re-do the way setting multiple headers worksSven-Hendrik Haase2021-02-282-17/+12
|
* Multiple headers support for custom headersDean Li2021-02-272-35/+32
|
* Move the parsing header logic to args.rsDean Li2021-02-242-21/+42
|
* Allow set custom headers from CLIDean Li2021-02-242-0/+33
|
* Fix lintsSven-Hendrik Haase2021-02-196-28/+28
|
* Fix lintSven-Hendrik Haase2021-01-201-2/+1
|
* enable multiple file uploadMichael Hueschen2021-01-151-1/+1
| | | | | | | tested with miniserve running on linux, with browsers: - Safari on iPhone - Firefox on Linux (NixOS)
* Fix indentationTamas Levai2021-01-042-3/+3
| | | | Convert tabs to spaces.
* Add option to list directories firstTamas Levai2021-01-043-0/+16
|
* Fix lintSven-Hendrik Haase2021-01-041-2/+2
|
* Fix lintSven-Hendrik Haase2020-12-281-4/+2
|
* Now compiles on stableSven-Hendrik Haase2020-11-081-2/+0
|
* Merge pull request #380 from ahti/masterSven-Hendrik Haase2020-10-027-871/+174
|\ | | | | client-side color-scheme handling
| * more feedbackLukas Stabe2020-10-021-2/+3
| |
| * address feedbackLukas Stabe2020-10-021-2/+11
| |
| * restore default theme cli option and add default theme dark optionLukas Stabe2020-10-016-4/+79
| |