diff --git a/luci-app-webdav/Makefile b/luci-app-webdav/Makefile deleted file mode 100644 index 420b2177d..000000000 --- a/luci-app-webdav/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -include $(TOPDIR)/rules.mk - -PKG_NAME:=luci-app-webdav -PKG_VERSION:=4.1.1 -PKG_RELEASE:=1 -PKG_PO_VERSION:=$(PKG_VERSION)-$(PKG_RELEASE) - -PKG_LICENSE:=MIT -PKG_MAINTAINER:=hacdias - -LUCI_TITLE:=LuCI Support for webdav server -LUCI_PKGARCH:=all -LUCI_DEPENDS:=+webdav - -include $(TOPDIR)/feeds/luci/luci.mk - -# call BuildPackage - OpenWrt buildroot signature diff --git a/luci-app-webdav/luasrc/controller/webdav.lua b/luci-app-webdav/luasrc/controller/webdav.lua deleted file mode 100755 index ae48081e8..000000000 --- a/luci-app-webdav/luasrc/controller/webdav.lua +++ /dev/null @@ -1,40 +0,0 @@ -module("luci.controller.webdav", package.seeall) - -function index() - if not nixio.fs.access("/etc/config/webdav") then - return - end - - local page - page = entry({"admin", "services", "webdav"}, alias("admin", "services", "webdav", "client"), _("WebDAV"), 10) -- 首页 - page.dependent = true - page.acl_depends = { "luci-app-webdav" } - - entry({"admin", "services", "webdav", "client"}, cbi("webdav/client"), _("Settings"), 10).leaf = true -- 客户端配置 - entry({"admin", "services", "webdav", "log"}, form("webdav/log"), _("Log"), 30).leaf = true -- 日志页面 - - entry({"admin", "services", "webdav", "status"}, call("action_status")).leaf = true -- 运行状态 - entry({"admin", "services", "webdav", "logtail"}, call("action_logtail")).leaf = true -- 日志采集 -end - -function action_status() - local e = {} - e.running = luci.sys.call("pidof webdav >/dev/null") == 0 - e.application = luci.sys.exec("webdav --version") - luci.http.prepare_content("application/json") - luci.http.write_json(e) -end - -function action_logtail() - local fs = require "nixio.fs" - local log_path = "/var/log/webdav.log" - local e = {} - e.running = luci.sys.call("pidof webdav >/dev/null") == 0 - if fs.access(log_path) then - e.log = luci.sys.exec("tail -n 100 %s | sed 's/\\x1b\\[[0-9;]*m//g'" % log_path) - else - e.log = "" - end - luci.http.prepare_content("application/json") - luci.http.write_json(e) -end diff --git a/luci-app-webdav/luasrc/model/cbi/webdav/client.lua b/luci-app-webdav/luasrc/model/cbi/webdav/client.lua deleted file mode 100755 index 084916bc0..000000000 --- a/luci-app-webdav/luasrc/model/cbi/webdav/client.lua +++ /dev/null @@ -1,60 +0,0 @@ -m = Map("webdav") -m.title = translate("AliyunDrive WebDAV") -m.description = translate("Project GitHub URL") - -m:section(SimpleSection).template = "webdav/webdav_status" - -e = m:section(TypedSection, "server") -e.anonymous = true - -enable = e:option(Flag, "enable", translate("Enable")) -enable.rmempty = false - -refresh_token = e:option(Value, "refresh_token", translate("Refresh Token")) -refresh_token.description = translate("How to get refresh token") - -root = e:option(Value, "root", translate("Root Directory")) -root.description = translate("Restrict access to a folder of aliyundrive, defaults to / which means no restrictions") -root.default = "/" - -host = e:option(Value, "host", translate("Host")) -host.default = "0.0.0.0" -host.datatype = "ipaddr" - -port = e:option(Value, "port", translate("Port")) -port.default = "8080" -port.datatype = "port" - -tls_cert = e:option(Value, "tls_cert", translate("TLS certificate file path")) -tls_key = e:option(Value, "tls_key", translate("TLS private key file path")) - -auth_user = e:option(Value, "auth_user", translate("Username")) -auth_password = e:option(Value, "auth_password", translate("Password")) -auth_password.password = true - -read_buffer_size = e:option(Value, "read_buffer_size", translate("Read Buffer Size")) -read_buffer_size.default = "10485760" -read_buffer_size.datatype = "uinteger" - -cache_size = e:option(Value, "cache_size", translate("Cache Size")) -cache_size.default = "1000" -cache_size.datatype = "uinteger" - -cache_ttl = e:option(Value, "cache_ttl", translate("Cache Expiration Time (seconds)")) -cache_ttl.default = "600" -cache_ttl.datatype = "uinteger" - -no_trash = e:option(Flag, "no_trash", translate("Delete file permanently instead of trashing")) -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.description = translate("Input domain_id option will use Aliyun PDS instead of AliyunDrive") - -debug = e:option(Flag, "debug", translate("Debug Mode")) -debug.rmempty = false - -return m diff --git a/luci-app-webdav/luasrc/model/cbi/webdav/log.lua b/luci-app-webdav/luasrc/model/cbi/webdav/log.lua deleted file mode 100755 index a7e418392..000000000 --- a/luci-app-webdav/luasrc/model/cbi/webdav/log.lua +++ /dev/null @@ -1,9 +0,0 @@ -log = SimpleForm("logview") -log.submit = false -log.reset = false - -t = log:field(DummyValue, '', '') -t.rawhtml = true -t.template = 'webdav/webdav_log' - -return log diff --git a/luci-app-webdav/luasrc/view/webdav/aliyundrive-webdav_status.htm b/luci-app-webdav/luasrc/view/webdav/aliyundrive-webdav_status.htm deleted file mode 100755 index e5ec62255..000000000 --- a/luci-app-webdav/luasrc/view/webdav/aliyundrive-webdav_status.htm +++ /dev/null @@ -1,21 +0,0 @@ - - -
-

- <%:Collecting data...%> -

-
diff --git a/luci-app-webdav/luasrc/view/webdav/webdav_log.htm b/luci-app-webdav/luasrc/view/webdav/webdav_log.htm deleted file mode 100755 index 2faecddda..000000000 --- a/luci-app-webdav/luasrc/view/webdav/webdav_log.htm +++ /dev/null @@ -1,15 +0,0 @@ -<%+cbi/valueheader%> - - - -<%+cbi/valuefooter%> diff --git a/luci-app-webdav/luasrc/view/webdav/webdav_status.htm b/luci-app-webdav/luasrc/view/webdav/webdav_status.htm deleted file mode 100755 index e5ec62255..000000000 --- a/luci-app-webdav/luasrc/view/webdav/webdav_status.htm +++ /dev/null @@ -1,21 +0,0 @@ - - -
-

- <%:Collecting data...%> -

-
diff --git a/luci-app-webdav/po/zh-cn/webdav.po b/luci-app-webdav/po/zh-cn/webdav.po deleted file mode 100644 index 5f9b7c3fa..000000000 --- a/luci-app-webdav/po/zh-cn/webdav.po +++ /dev/null @@ -1,86 +0,0 @@ -msgid "" -msgstr "Content-Type: text/plain; charset=UTF-8\n" - -msgid "AliyunDrive" -msgstr "阿里云盘" - -msgid "AliyunDrive WebDAV" -msgstr "阿里云盘 WebDAV" - -msgid "Enable" -msgstr "启用" - -msgid "Refresh Token" -msgstr "Refresh Token" - -msgid "Root Directory" -msgstr "云盘根目录" - -msgid "Host" -msgstr "监听主机" - -msgid "Port" -msgstr "监听端口" - -msgid "TLS certificate file path" -msgstr "TLS 证书文件路径" - -msgid "TLS private key file path" -msgstr "TLS 私钥文件路径" - -msgid "Username" -msgstr "用户名" - -msgid "Password" -msgstr "密码" - -msgid "Read Buffer Size" -msgstr "下载缓冲大小(bytes)" - -msgid "Cache Size" -msgstr "目录缓存大小" - -msgid "Cache Expiration Time (seconds)" -msgstr "目录缓存过期时间(单位为秒)" - -msgid "Collecting data..." -msgstr "获取数据中..." - -msgid "RUNNING" -msgstr "运行中" - -msgid "NOT RUNNING" -msgstr "未运行" - -msgid "Settings" -msgstr "设置" - -msgid "Log" -msgstr "日志" - -msgid "Debug Mode" -msgstr "调试模式" - -msgid "Project GitHub URL" -msgstr "GitHub 项目地址" - -msgid "How to get refresh token" -msgstr "查看获取 refresh token 的方法" - -msgid "Restrict access to a folder of aliyundrive, defaults to / which means no restrictions" -msgstr "限制只能访问该云盘目录,默认为 / 表示不限制,注意这个参数不是本地磁盘路径" - -msgid "Delete file permanently instead of trashing" -msgstr "删除文件不放入回收站" - -msgid "Enable read only mode" -msgstr "启用只读模式" - -msgid "Disallow upload, modify and delete file operations" -msgstr "禁止上传、修改和删除文件操作" - -msgid "Domain ID" -msgstr "阿里云相册与云盘服务 domainId" - -msgid "Input domain_id option will use Aliyun PDS instead of AliyunDrive" -msgstr "填写此选项将使用阿里云相册与网盘服务而不是阿里云盘" diff --git a/luci-app-webdav/po/zh_Hans b/luci-app-webdav/po/zh_Hans deleted file mode 120000 index 41451e4a1..000000000 --- a/luci-app-webdav/po/zh_Hans +++ /dev/null @@ -1 +0,0 @@ -zh-cn \ No newline at end of file diff --git a/luci-app-webdav/root/etc/uci-defaults/luci-webdav b/luci-app-webdav/root/etc/uci-defaults/luci-webdav deleted file mode 100755 index 7f43bd468..000000000 --- a/luci-app-webdav/root/etc/uci-defaults/luci-webdav +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@webdav[-1] - add ucitrack webdav - set ucitrack.@webdav[-1].init=webdav - commit ucitrack -EOF - -rm -f /tmp/luci-indexcache -exit 0 diff --git a/luci-app-webdav/root/usr/share/rpcd/acl.d/luci-app-webdav.json b/luci-app-webdav/root/usr/share/rpcd/acl.d/luci-app-webdav.json deleted file mode 100755 index eba5b4138..000000000 --- a/luci-app-webdav/root/usr/share/rpcd/acl.d/luci-app-webdav.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "luci-app-webdav": { - "description": "Grant UCI access for luci-app-webdav", - "read": { - "uci": [ "webdav" ] - }, - "write": { - "uci": [ "webdav" ] - } - } -}