Skip to content

Commit 01c08a8

Browse files
authored
fix: OneDrive 增加操作描述信息 (#1513)
1 parent dd9f2ed commit 01c08a8

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

frontend/src/lang/modules/en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,8 @@ const message = {
965965
backupDir: 'Backup dir',
966966
isCN: 'Domestic version',
967967
code: 'Auth code',
968+
codeHelper:
969+
'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.',
968970
loadCode: 'Acquire',
969971
COS: 'Tencent COS',
970972
KODO: 'Qiniu Kodo',

frontend/src/lang/modules/tw.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ const message = {
924924
backupDir: '備份路徑',
925925
isCN: '國內版',
926926
code: '授權碼',
927+
codeHelper:
928+
'請點擊獲取按鈕,然後登錄 OneDrive 復製跳轉鏈接中 code 後面的內容,粘貼到該輸入框中,具體操作可參考官方文檔。',
927929
loadCode: '獲取',
928930
COS: '騰訊雲 COS',
929931
KODO: '七牛雲 Kodo',

frontend/src/lang/modules/zh.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,8 @@ const message = {
930930
backupDir: '备份路径',
931931
isCN: '国内版',
932932
code: '授权码',
933+
codeHelper:
934+
'请点击获取按钮,然后登录 OneDrive 复制跳转链接中 code 后面的内容,粘贴到该输入框中,具体操作可参考官方文档。',
933935
loadCode: '获取',
934936
COS: '腾讯云 COS',
935937
KODO: '七牛云 Kodo',

frontend/src/views/setting/backup-account/operate/index.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@
5959
<el-button @click="jumpAzure">{{ $t('setting.loadCode') }}</el-button>
6060
</template>
6161
</el-input>
62+
<span class="input-help">
63+
{{ $t('setting.codeHelper') }}
64+
<el-link
65+
style="font-size: 12px; margin-left: 5px"
66+
icon="Position"
67+
@click="toDoc()"
68+
type="primary"
69+
>
70+
{{ $t('firewall.quickJump') }}
71+
</el-link>
72+
</span>
6273
</el-form-item>
6374
<el-form-item
6475
v-if="dialogData.rowData!.type === 'S3' || dialogData.rowData!.type === 'COS'"
@@ -320,6 +331,10 @@ function hasEndpoint(val: string) {
320331
return val === 'OSS' || val === 'S3';
321332
}
322333
334+
const toDoc = () => {
335+
window.open('https://1panel.cn/docs/user_manual/settings/', '_blank');
336+
};
337+
323338
const getBuckets = async (formEl: FormInstance | undefined) => {
324339
if (!formEl) return;
325340
formEl.validate(async (valid) => {

0 commit comments

Comments
 (0)