aliyundrive-webdav: update to 1.1.0 (#8512)

Co-authored-by: messense <messense@icloud.com>
This commit is contained in:
Beginner 2021-12-26 01:24:35 +08:00 committed by GitHub
parent f687033810
commit c68d427fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 4 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=aliyundrive-webdav PKG_NAME:=aliyundrive-webdav
PKG_VERSION:=1.0.0 PKG_VERSION:=1.1.0
PKG_RELEASE:=$(AUTORELESE) PKG_RELEASE:=$(AUTORELESE)
PKG_LICENSE:=MIT PKG_LICENSE:=MIT

View File

@ -12,3 +12,4 @@ config server
option root '/' option root '/'
option no_trash '0' option no_trash '0'
option domain_id '' option domain_id ''
option read_only '0'

View File

@ -38,6 +38,13 @@ start_service() {
;; ;;
*) ;; *) ;;
esac esac
case "$(uci_get_by_type server read_only 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --read-only"
;;
*) ;;
esac
fi fi
procd_open_instance procd_open_instance

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-aliyundrive-webdav PKG_NAME:=luci-app-aliyundrive-webdav
PKG_VERSION:=1.0.0 PKG_VERSION:=1.1.0
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=MIT PKG_LICENSE:=MIT

View File

@ -47,6 +47,10 @@ cache_ttl.datatype = "uinteger"
no_trash = e:option(Flag, "no_trash", translate("Delete file permanently instead of trashing")) no_trash = e:option(Flag, "no_trash", translate("Delete file permanently instead of trashing"))
no_trash.rmempty = false no_trash.rmempty = false
read_only = e:option(Flag, "read_only", translate("Enable read only mode"))
read_only.description = translate("Disallow upload, modify and delete file operations")
read_only.rmempty = false
domain_id = e:option(Value, "domain_id", translate("Domain ID")) domain_id = e:option(Value, "domain_id", translate("Domain ID"))
domain_id.description = translate("Input domain_id option will use <a href=\"https://www.aliyun.com/product/storage/pds\" target=\"_blank\">Aliyun PDS</a> instead of <a href=\"https://www.aliyundrive.com\" target=\"_blank\">AliyunDrive</a>") domain_id.description = translate("Input domain_id option will use <a href=\"https://www.aliyun.com/product/storage/pds\" target=\"_blank\">Aliyun PDS</a> instead of <a href=\"https://www.aliyundrive.com\" target=\"_blank\">AliyunDrive</a>")

View File

@ -4,9 +4,9 @@ XHR.poll(3, '<%=url([[admin]], [[services]], [[aliyundrive-webdav]], [[status]])
var tb = document.getElementById('aliyundrive-webdav_status'); var tb = document.getElementById('aliyundrive-webdav_status');
if (data && tb) { if (data && tb) {
if (data.running) { if (data.running) {
tb.innerHTML = '<em><b><font color=green>' + data.application + '<%:RUNNING%></font></b></em>'; tb.innerHTML = '<em><b style=color:green>' + data.application + '<%:RUNNING%></b></em>';
} else { } else {
tb.innerHTML = '<em><b><font color=red>' + data.application + '<%:NOT RUNNING%></font></b></em>'; tb.innerHTML = '<em><b style=color:red>' + data.application + '<%:NOT RUNNING%></b></em>';
} }
} }
} }

View File

@ -67,6 +67,12 @@ msgstr "限制只能访问该云盘目录,默认为 / 表示不限制,注意
msgid "Delete file permanently instead of trashing" msgid "Delete file permanently instead of trashing"
msgstr "删除文件不放入回收站" msgstr "删除文件不放入回收站"
msgid "Enable read only mode"
msgstr "启用只读模式"
msgid "Disallow upload, modify and delete file operations"
msgstr "禁止上传、修改和删除文件操作"
msgid "Domain ID" msgid "Domain ID"
msgstr "阿里云相册与云盘服务 domainId" msgstr "阿里云相册与云盘服务 domainId"