diff --git a/public/locales/en-US/application.json b/public/locales/en-US/application.json index a6e9646..dcfd15c 100644 --- a/public/locales/en-US/application.json +++ b/public/locales/en-US/application.json @@ -457,6 +457,8 @@ "action": "Action", "readonlyOn": "Turn on readonly", "readonlyOff": "Turn off readonly", + "useProxyOn": "Turn on reverse proxy", + "useProxyOff": "Turn off reverse proxy", "delete": "Delete", "listEmpty": "No records.", "createNewAccount": "Create new account", diff --git a/public/locales/en-US/dashboard.json b/public/locales/en-US/dashboard.json index ffa3300..c086f9d 100644 --- a/public/locales/en-US/dashboard.json +++ b/public/locales/en-US/dashboard.json @@ -700,6 +700,8 @@ "allowDownloadShareDes": "If disabled, user cannot download shared files.", "allowWabDAV": "WebDAV", "allowWabDAVDes": "If disabled, users cannot connect to the storage via the WebDAV protocol", + "allowWabDAVProxy": "WebDAV Proxy", + "allowWabDAVProxyDes": "If enabled, users can configure the WebDAV to proxy traffic when downloading files", "disableMultipleDownload": "Disable multiple download requests", "disableMultipleDownloadDes": "Valid only for local storage policies. When disabled, users cannot use the multi-threaded download tool.", "allowRemoteDownload": "Remote download", diff --git a/public/locales/zh-CN/application.json b/public/locales/zh-CN/application.json index 36a54a9..6121535 100644 --- a/public/locales/zh-CN/application.json +++ b/public/locales/zh-CN/application.json @@ -457,6 +457,8 @@ "action": "操作", "readonlyOn": "开启只读", "readonlyOff": "关闭只读", + "useProxyOn": "开启反代", + "useProxyOff": "关闭反代", "delete": "删除", "listEmpty": "没有记录", "createNewAccount": "创建新账号", diff --git a/public/locales/zh-CN/dashboard.json b/public/locales/zh-CN/dashboard.json index 967817c..6ac186b 100644 --- a/public/locales/zh-CN/dashboard.json +++ b/public/locales/zh-CN/dashboard.json @@ -700,6 +700,8 @@ "allowDownloadShareDes": "关闭后,用户无法下载别人创建的文件分享", "allowWabDAV": "WebDAV", "allowWabDAVDes": "关闭后,用户无法通过 WebDAV 协议连接至网盘", + "allowWabDAVProxy": "WebDAV 代理", + "allowWabDAVProxyDes": "启用后, 用户可以配置 WebDAV 代理下载文件的流量", "disableMultipleDownload": "禁止多次下载请求", "disableMultipleDownloadDes": "只针对本机存储策略有效。开启后,用户无法使用多线程下载工具。", "allowRemoteDownload": "离线下载", diff --git a/public/locales/zh-TW/application.json b/public/locales/zh-TW/application.json index 9101cc6..443481b 100644 --- a/public/locales/zh-TW/application.json +++ b/public/locales/zh-TW/application.json @@ -457,6 +457,8 @@ "action": "操作", "readonlyOn": "開啓只讀", "readonlyOff": "關閉只讀", + "useProxyOn": "開啓反代", + "useProxyOff": "關閉反代", "delete": "刪除", "listEmpty": "沒有記錄", "createNewAccount": "創建新帳號", diff --git a/public/locales/zh-TW/dashboard.json b/public/locales/zh-TW/dashboard.json index a9b1d1f..c7737f0 100644 --- a/public/locales/zh-TW/dashboard.json +++ b/public/locales/zh-TW/dashboard.json @@ -700,6 +700,8 @@ "allowDownloadShareDes": "關閉後,用戶無法下載別人創建的文件分享", "allowWabDAV": "WebDAV", "allowWabDAVDes": "關閉後,用戶無法通過 WebDAV 協議連接至網路硬碟", + "allowWabDAVProxy": "WebDAV 代理", + "allowWabDAVProxyDes": "啓用後, 用戶可以配置 WebDAV 代理下載文件的流量", "disableMultipleDownload": "禁止多次下載請求", "disableMultipleDownloadDes": "只針對本機儲存策略有效。開啟後,用戶無法使用多執行緒下載工具。", "allowRemoteDownload": "離線下載", diff --git a/src/component/Admin/Group/EditGroup.js b/src/component/Admin/Group/EditGroup.js index 7de3017..8fc557b 100644 --- a/src/component/Admin/Group/EditGroup.js +++ b/src/component/Admin/Group/EditGroup.js @@ -32,6 +32,7 @@ export default function EditGroupPreload() { "archive_task", "one_time_download", "share_download", + "webdav_proxy", "aria2", "redirected_source", "advance_delete" diff --git a/src/component/Admin/Group/GroupForm.js b/src/component/Admin/Group/GroupForm.js index 8c832f2..34d8f4e 100644 --- a/src/component/Admin/Group/GroupForm.js +++ b/src/component/Admin/Group/GroupForm.js @@ -156,6 +156,7 @@ export default function GroupForm(props) { "archive_task", "one_time_download", "share_download", + "webdav_proxy", "aria2", "redirected_source", "advance_delete" @@ -409,6 +410,30 @@ export default function GroupForm(props) { )} + {group.ID !== 3 && group.WebDAVEnabled === "true" && ( +