From 01c08a8ef939ebd1597eb9bc1ac9394c53fdfb4c Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:14:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20OneDrive=20=E5=A2=9E=E5=8A=A0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8F=8F=E8=BF=B0=E4=BF=A1=E6=81=AF=20(#1513)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 2 ++ frontend/src/lang/modules/tw.ts | 2 ++ frontend/src/lang/modules/zh.ts | 2 ++ .../setting/backup-account/operate/index.vue | 15 +++++++++++++++ 4 files changed, 21 insertions(+) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 9216f1294..27dde622f 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -965,6 +965,8 @@ const message = { backupDir: 'Backup dir', isCN: 'Domestic version', code: 'Auth code', + codeHelper: + 'Please click on the "Acquire" button, then login to OneDrive and copy the content after "code" in the redirected link. Paste it into this input box. For specific instructions, please refer to the official documentation.', loadCode: 'Acquire', COS: 'Tencent COS', KODO: 'Qiniu Kodo', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 1bcfe7259..a782133f9 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -924,6 +924,8 @@ const message = { backupDir: '備份路徑', isCN: '國內版', code: '授權碼', + codeHelper: + '請點擊獲取按鈕,然後登錄 OneDrive 復製跳轉鏈接中 code 後面的內容,粘貼到該輸入框中,具體操作可參考官方文檔。', loadCode: '獲取', COS: '騰訊雲 COS', KODO: '七牛雲 Kodo', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index e830206a5..773baf742 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -930,6 +930,8 @@ const message = { backupDir: '备份路径', isCN: '国内版', code: '授权码', + codeHelper: + '请点击获取按钮,然后登录 OneDrive 复制跳转链接中 code 后面的内容,粘贴到该输入框中,具体操作可参考官方文档。', loadCode: '获取', COS: '腾讯云 COS', KODO: '七牛云 Kodo', diff --git a/frontend/src/views/setting/backup-account/operate/index.vue b/frontend/src/views/setting/backup-account/operate/index.vue index 23949375a..e3fe1057b 100644 --- a/frontend/src/views/setting/backup-account/operate/index.vue +++ b/frontend/src/views/setting/backup-account/operate/index.vue @@ -59,6 +59,17 @@ {{ $t('setting.loadCode') }} + + {{ $t('setting.codeHelper') }} + + {{ $t('firewall.quickJump') }} + + { + window.open('https://1panel.cn/docs/user_manual/settings/', '_blank'); +}; + const getBuckets = async (formEl: FormInstance | undefined) => { if (!formEl) return; formEl.validate(async (valid) => {