]> OzVa Git service - ozva-cloud/commitdiff
chore: little improves
authorsigoden <sigoden@gmail.com>
Mon, 20 Jun 2022 07:11:39 +0000 (15:11 +0800)
committersigoden <sigoden@gmail.com>
Mon, 20 Jun 2022 07:11:39 +0000 (15:11 +0800)
README.md
assets/index.css
src/args.rs

index 02af983a1e2f7c896283a1f130e67746a382af98..fd39687c2494c49e11909b1cb40c9b25ca25974e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -49,22 +49,24 @@ ARGS:
     <path>    Path to a root directory for serving files [default: .]
 
 OPTIONS:
-    -b, --bind <addr>...        Specify bind address
-    -p, --port <port>           Specify port to listen on [default: 5000]
-        --path-prefix <path>    Specify an url path prefix
-    -a, --auth <rule>...        Add auth for path
-    -A, --allow-all             Allow all operations
-        --allow-upload          Allow upload files/folders
-        --allow-delete          Allow delete files/folders
-        --allow-symlink         Allow symlink to files/folders outside root directory
-        --enable-cors           Enable CORS, sets `Access-Control-Allow-Origin: *`
-        --render-index          Render index.html when requesting a directory
-        --render-try-index      Render index.html if it exists when requesting a directory
-        --render-spa            Render for single-page application
-        --tls-cert <path>       Path to an SSL/TLS certificate to serve with HTTPS
-        --tls-key <path>        Path to the SSL/TLS certificate's private key
-    -h, --help                  Print help information
-    -V, --version               Print version information
+    -b, --bind <addr>...         Specify bind address
+    -p, --port <port>            Specify port to listen on [default: 5000]
+        --path-prefix <path>     Specify an url path prefix
+    -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
+        --allow-upload           Allow upload files/folders
+        --allow-delete           Allow delete files/folders
+        --allow-symlink          Allow symlink to files/folders outside root directory
+        --enable-cors            Enable CORS, sets `Access-Control-Allow-Origin: *`
+        --render-index           Render index.html when requesting a directory
+        --render-try-index       Render index.html if it exists when requesting a directory
+        --render-spa             Render for single-page application
+        --tls-cert <path>        Path to an SSL/TLS certificate to serve with HTTPS
+        --tls-key <path>         Path to the SSL/TLS certificate's private key
+    -h, --help                   Print help information
+    -V, --version                Print version information
 ```
 
 ## Examples
index 0c3820a22a9d1825174329962a44b51962ba0d02..4cbf7efc5281af980513414bbbd1c4d68ff7ec32 100644 (file)
@@ -186,6 +186,12 @@ body {
   padding-right: 1em;
 }
 
+@media (min-width: 768px) {
+  .path a {
+    min-width: 400px;
+  }
+}
+
 /* dark theme */
 @media (prefers-color-scheme: dark) {
   body {
index 34f82745e5cf8baaf8afb9900e261d43efe8b155..662d440313a971443ce3c5033ab0b903665c0f26 100644 (file)
@@ -48,14 +48,6 @@ fn app() -> Command<'static> {
                 .value_name("path")
                 .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::new("auth")
                 .short('a')
@@ -65,6 +57,14 @@ fn app() -> Command<'static> {
                 .multiple_occurrences(true)
                 .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::new("allow-all")
                 .short('A')