chore: little improves
parent
deb6365a28
commit
68139c6263
|
@ -53,6 +53,8 @@ OPTIONS:
|
||||||
-p, --port <port> Specify port to listen on [default: 5000]
|
-p, --port <port> Specify port to listen on [default: 5000]
|
||||||
--path-prefix <path> Specify an url path prefix
|
--path-prefix <path> Specify an url path prefix
|
||||||
-a, --auth <rule>... Add auth for path
|
-a, --auth <rule>... Add auth for path
|
||||||
|
--auth-method <value> Select auth method [default: digest] [possible values: basic,
|
||||||
|
digest]
|
||||||
-A, --allow-all Allow all operations
|
-A, --allow-all Allow all operations
|
||||||
--allow-upload Allow upload files/folders
|
--allow-upload Allow upload files/folders
|
||||||
--allow-delete Allow delete files/folders
|
--allow-delete Allow delete files/folders
|
||||||
|
|
|
@ -186,6 +186,12 @@ body {
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.path a {
|
||||||
|
min-width: 400px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* dark theme */
|
/* dark theme */
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
body {
|
body {
|
||||||
|
|
16
src/args.rs
16
src/args.rs
|
@ -48,14 +48,6 @@ fn app() -> Command<'static> {
|
||||||
.value_name("path")
|
.value_name("path")
|
||||||
.help("Specify an url path prefix"),
|
.help("Specify an url path prefix"),
|
||||||
)
|
)
|
||||||
.arg(
|
|
||||||
Arg::new("auth-method")
|
|
||||||
.long("auth-method")
|
|
||||||
.help("Choose auth method")
|
|
||||||
.possible_values(["basic", "digest"])
|
|
||||||
.default_value("digest")
|
|
||||||
.value_name("value"),
|
|
||||||
)
|
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("auth")
|
Arg::new("auth")
|
||||||
.short('a')
|
.short('a')
|
||||||
|
@ -65,6 +57,14 @@ fn app() -> Command<'static> {
|
||||||
.multiple_occurrences(true)
|
.multiple_occurrences(true)
|
||||||
.value_name("rule"),
|
.value_name("rule"),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::new("auth-method")
|
||||||
|
.long("auth-method")
|
||||||
|
.help("Select auth method")
|
||||||
|
.possible_values(["basic", "digest"])
|
||||||
|
.default_value("digest")
|
||||||
|
.value_name("value"),
|
||||||
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("allow-all")
|
Arg::new("allow-all")
|
||||||
.short('A')
|
.short('A')
|
||||||
|
|
Loading…
Reference in New Issue