luci-app-gowebdav: adjust settings

This commit is contained in:
CN_SZTL 2020-04-19 23:43:41 +08:00
parent 3e16fa51e0
commit 9916ccef79
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
4 changed files with 3 additions and 10 deletions

View File

@ -7,4 +7,4 @@ config gowebdav 'config'
option root_dir '/mnt'
option read_only '0'
option allow_wan '0'
option advanced_mode '0'
option use_https '0'

View File

@ -13,7 +13,6 @@ init_conf() {
config_get "root_dir" "config" "root_dir" "/mnt"
config_get "read_only" "config" "read_only" "0"
config_get "allow_wan" "config" "allow_wan" "0"
config_get "advanced_mode" "config" "advanced_mode" "0"
config_get "use_https" "config" "use_https" "0"
config_get "cert_crt" "config" "cert_crt"
config_get "cert_key" "config" "cert_key"

View File

@ -42,11 +42,8 @@ read_only.rmempty = false
allow_wan = s:option(Flag, "allow_wan", translate("Allow Access From Internet"))
allow_wan.rmempty = false
advanced_mode = s:option(Flag, "advanced_mode", translate("Advanced Mode"))
advanced_mode.rmempty = false
use_https = s:option(Flag, "use_https", translate("Use HTTPS instead of HTTP"))
use_https:depends("advanced_mode", 1)
use_https.rmempty = false
cert_crt = s:option(Value, "cert_crt", translate("Path to Certificate"))
cert_crt.datatype = "file"
@ -56,7 +53,7 @@ cert_key = s:option(Value, "cert_key", translate("Path to Certificate Key"))
cert_key.datatype = "file"
cert_key:depends("use_https", 1)
download_reg=s:option(DummyValue,"opennewwindow",translate("<input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"Download Reg File\" onclick=\"window.open('https://raw.githubusercontent.com/1715173329/gowebdav/master/allow_http.reg')\" />"))
download_reg = s:option(DummyValue,"opennewwindow",translate("<input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"Download Reg File\" onclick=\"window.open('https://raw.githubusercontent.com/1715173329/gowebdav/master/allow_http.reg')\" />"))
download_reg.description = translate("Windows doesn't allow HTTP auth by default, you need to import this reg key to enable it (Reboot needed).")
return m

View File

@ -34,9 +34,6 @@ msgstr "Windows 系统默认不允许 HTTP 鉴权,您需要手动导入注册
msgid "Allow Access From Internet"
msgstr "允许从外网访问"
msgid "Advanced Mode"
msgstr "高级模式"
msgid "Use HTTPS instead of HTTP"
msgstr "使用 HTTPS 模式"