Commit graph

133 commits

Author SHA1 Message Date
sigoden
6d9758c71d
feat: ui improves the login experience ()
close  
2023-02-21 12:42:40 +08:00
sigoden
dd6973468c
feat: support edit files ()
close 
2023-02-20 22:50:24 +08:00
sigoden
7d6d7d49ca
feat: API to search and list directories ()
use `?simple` to output path name only.
use `?json` to output paths in json format.
By default, output html page.

close 
2023-02-20 11:05:53 +08:00
sigoden
c6dcaf95d4
chore: hide env keys from help text () 2023-02-19 22:48:41 +08:00
sigoden
b7c5119c2e
feat: hiding only directories instead of files ()
A `--hidden` pattern with `/` suffix means hiding only directories not files.
A `--hidden` pattern without `/` will hide matching files and directories.
2023-02-19 22:03:59 +08:00
horizon
0000bd27f5
fix: remove Method::Options auth check ()
* fix: remove Method::Options auth check

* add tests

---------

Co-authored-by: sigoden <sigoden@gmail.com>
2023-02-19 12:30:14 +08:00
sigoden
47883376c1
chore: fix cargo clippy () 2023-02-19 12:24:42 +08:00
MuXiu1997
fea9bf988a
feat: use env var for args ()
closed 
2023-02-19 11:40:14 +08:00
sigoden
628d863d2e chore: improve code quanity 2022-12-11 15:18:44 +08:00
sigoden
8d9705caa4
feat: add option --allow-archive ()
BREAKING CHANGE: explicitly allow download folder as zip file
2022-12-10 11:09:42 +08:00
Kian-Meng Ang
7eef4407fc
docs: fix typos ()
Found via `codespell -S target -L crate,nd`
2022-12-10 09:18:54 +08:00
sigoden
1329e42b9a
chore: upgrade clap to v4 () 2022-11-11 21:46:07 +08:00
sigoden
6ebf619430
feat: support unix sockets () 2022-11-11 08:57:44 +08:00
sigoden
8b4727c3a4
fix: panic on PROPFIND // () 2022-11-10 19:28:01 +08:00
Aneesh Agrawal
604ccc6556
fix: status code for MKCOL on existing resource ()
* Fix status code for MKCOL on existing resource

Per https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1,
MKCOL should return a 405 if the resource already exists.

Impetus for this change:
I am using dufs as a webdav server for [Joplin](https://joplinapp.org/)
which interpreted the previous behavior of returning a 403 as an error,
preventing syncing from working.

* add test

Co-authored-by: sigoden <sigoden@gmail.com>
2022-11-10 18:41:10 +08:00
David Politis
1a9990f04e
fix: don't search on empty query string ()
* fix: don't search on empty query string

* refactor

Co-authored-by: sigoden <sigoden@gmail.com>
2022-11-10 18:02:55 +08:00
sigoden
bd07783cde chore: cargo clippy 2022-11-10 15:38:35 +08:00
sigoden
dbf2de9cb9
fix: auth not works with --path-prefix ()
close 
2022-10-08 09:14:42 +08:00
sigoden
7eaa6f2484 chore: undo hidden arg changes 2022-09-09 21:30:27 +08:00
sigoden
a74e40aee5
feat: add --assets options to override assets ()
* feat: add --assets options to override assets

* update readme
2022-09-05 10:30:45 +08:00
sigoden
bde06fef94
chore: refactor clap multiple_occurrences and multiple_values () 2022-08-27 10:30:08 +08:00
sigoden
31c832a742
feat: support sort by name, mtime, size () 2022-08-23 14:24:42 +08:00
sigoden
3ae75d3558
fix: hide path by ext name () 2022-08-06 07:48:34 +08:00
sigoden
64e397d18a chore: update --hidden help message 2022-08-03 08:58:52 +08:00
sigoden
cc0014c183 chore: fix typo 2022-08-03 08:51:12 +08:00
sigoden
0918fb3fe4
feat: support ecdsa tls cert () 2022-08-02 09:32:11 +08:00
sigoden
ae2f878e62
feat: support customize http log format () 2022-07-31 08:27:09 +08:00
sigoden
9cfd66dab9
feat: adjust digest auth timeout to 1day () 2022-07-21 11:47:47 +08:00
sigoden
b791549ec7
feat: improve hidden to support glob () 2022-07-19 20:37:14 +08:00
sigoden
4e823e8bba
feat: make --path-prefix works on serving single file () 2022-07-08 19:30:05 +08:00
sigoden
4e84e6c532
fix: cors headers () 2022-07-08 16:18:10 +08:00
sigoden
f49b590a56 chore: update description of --path-prefix 2022-07-07 15:44:25 +08:00
sigoden
76e967fa59
feat: add completions () 2022-07-06 12:11:00 +08:00
sigoden
604cbb7412
feat: check permission on move/copy destination () 2022-07-04 23:25:05 +08:00
sigoden
2ffdcdf106
feat: allow search with --render-try-index () 2022-07-02 23:25:57 +08:00
sigoden
1e0cdafbcf
fix: unexpect stack overflow when searching a lot () 2022-07-02 22:55:22 +08:00
sigoden
2e6af671ca
fix: permissions of unzipped files () 2022-06-30 19:29:47 +08:00
sigoden
fd02a53823
chore: replace old get-if-addrs with new if-addrs () 2022-06-29 10:01:01 +08:00
sigoden
6554c1c308
feat: use feature to conditional support tls () 2022-06-29 09:19:09 +08:00
sigoden
9cfeee0df0 chore: update args help message and readme 2022-06-25 09:58:39 +08:00
sigoden
eb7a536a3f
feat: support hiding folders with --hidden () 2022-06-25 08:15:16 +08:00
sigoden
e29cf4c752
refactor: split css/js from index.html () 2022-06-21 23:01:00 +08:00
sigoden
7f062b6705
feat: use custom logger with timestamp in rfc3339 () 2022-06-21 21:19:51 +08:00
sigoden
ea8b9e9cce
fix: escape name contains html escape code () 2022-06-21 19:23:34 +08:00
sigoden
4058a2db72
feat: add option --allow-search () 2022-06-21 07:23:20 +08:00
sigoden
069cb64889
fix: decodeURI searching string () 2022-06-20 21:51:41 +08:00
sigoden
c85ea06785 chore: update cli help message and reamde 2022-06-20 19:40:09 +08:00
sigoden
68139c6263 chore: little improves 2022-06-20 15:11:39 +08:00
Joe Koop
deb6365a28
feat: added basic auth ()
* some small css fixes and changes

* added basic auth
https://stackoverflow.com/a/9534652/3642588

* most tests are passing

* fixed all the tests

* maybe now CI will pass

* implemented sigoden's suggestions

* test basic auth

* fixed some little things
2022-06-20 11:25:09 +08:00
sigoden
a67da8bdd3
feat: rename to dufs ()
close 

BREAKING CHANGE: rename duf to dufs
2022-06-19 22:53:51 +08:00