diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index b25236353..0cc732196 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -1239,6 +1239,28 @@ const message = {
'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',
+ ap_beijing_1: 'Beijing Zone 1',
+ ap_beijing: 'Beijing',
+ ap_nanjing: 'Nanjing',
+ ap_shanghai: 'Shanghai',
+ ap_guangzhou: 'Guangzhou',
+ ap_chengdu: 'Chengdu',
+ ap_chongqing: 'Chongqing',
+ ap_shenzhen_fsi: 'Shenzhen Financial',
+ ap_shanghai_fsi: 'Shanghai Financial',
+ ap_beijing_fsi: 'Beijing Financial',
+ ap_hongkong: 'Hong Kong, China',
+ ap_singapore: 'Singapore',
+ ap_mumbai: 'Mumbai',
+ ap_jakarta: 'Jakarta',
+ ap_seoul: 'Seoul',
+ ap_bangkok: 'Bangkok',
+ ap_tokyo: 'Tokyo',
+ na_siliconvalley: 'Silicon Valley (US West)',
+ na_ashburn: 'Ashburn (US East)',
+ na_toronto: 'Toronto',
+ sa_saopaulo: 'Sao Paulo',
+ eu_frankfurt: 'Frankfurt',
KODO: 'Qiniu Kodo',
scType: ' Storage type',
typeStandard: 'Standard',
@@ -1253,7 +1275,6 @@ const message = {
scDeep_Archive: 'Durable cold storage is suitable for business scenarios with extremely low access frequency.',
archiveHelper:
'Archival storage files cannot be downloaded directly and must first be restored through the corresponding cloud service provider`s website. Please use with caution!',
- domainHelper: 'The accelerated domain name must contain http:// or https://',
backupAlert:
"In theory, as long as the cloud provider is compatible with the S3 protocol, existing Amazon S3 cloud storage can be used for backup. For specific configurations, please refer to the official documentation. ",
domain: 'Accelerate domain',
diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts
index e147f9cb3..ff6a8e9c7 100644
--- a/frontend/src/lang/modules/tw.ts
+++ b/frontend/src/lang/modules/tw.ts
@@ -1165,6 +1165,28 @@ const message = {
'請點擊獲取按鈕,然後登錄 OneDrive 復製跳轉鏈接中 code 後面的內容,粘貼到該輸入框中,具體操作可參考官方文檔。',
loadCode: '獲取',
COS: '騰訊雲 COS',
+ ap_beijing_1: '北京一區',
+ ap_beijing: '北京',
+ ap_nanjing: '南京',
+ ap_shanghai: '上海',
+ ap_guangzhou: '廣州',
+ ap_chengdu: '成都',
+ ap_chongqing: '重慶',
+ ap_shenzhen_fsi: '深圳金融',
+ ap_shanghai_fsi: '上海金融',
+ ap_beijing_fsi: '北京金融',
+ ap_hongkong: '中國香港',
+ ap_singapore: '新加坡',
+ ap_mumbai: '孟買',
+ ap_jakarta: '雅加達',
+ ap_seoul: '首爾',
+ ap_bangkok: '曼谷',
+ ap_tokyo: '東京',
+ na_siliconvalley: '硅谷(美西)',
+ na_ashburn: '弗吉尼亞(美東)',
+ na_toronto: '多倫多',
+ sa_saopaulo: '聖保羅',
+ eu_frankfurt: '法蘭克福',
KODO: '七牛雲 Kodo',
scType: '存儲類型',
typeStandard: '標準存儲',
@@ -1176,7 +1198,6 @@ const message = {
scArchive: '歸檔存儲,適用於極低訪問頻率(例如半年訪問1次)的業務場景。',
scDeep_Archive: '深度歸檔存儲,適用於極低訪問頻率(例如1年訪問1~2次)的業務場景。',
archiveHelper: '歸檔存儲的文件無法直接下載,需要先在對應的雲服務商網站進行恢復操作,請謹慎使用!',
- domainHelper: '加速域名必須包含 http:// 或者 https://',
backupAlert:
"理論上只要雲廠商兼容 S3 協議,就可以用現有的亞馬遜 S3 雲存儲來備份,具體配置參考 官方文檔 ",
domain: '加速域名',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 2a86c1d04..5963c8cba 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -1166,6 +1166,28 @@ const message = {
'请点击获取按钮,然后登录 OneDrive 复制跳转链接中 code 后面的内容,粘贴到该输入框中,具体操作可参考官方文档。',
loadCode: '获取',
COS: '腾讯云 COS',
+ ap_beijing_1: '北京一区',
+ ap_beijing: '北京',
+ ap_nanjing: '南京',
+ ap_shanghai: '上海',
+ ap_guangzhou: '广州',
+ ap_chengdu: '成都',
+ ap_chongqing: '重庆',
+ ap_shenzhen_fsi: '深圳金融',
+ ap_shanghai_fsi: '上海金融',
+ ap_beijing_fsi: '北京金融',
+ ap_hongkong: '中国香港',
+ ap_singapore: '新加坡',
+ ap_mumbai: '孟买',
+ ap_jakarta: '雅加达',
+ ap_seoul: '首尔',
+ ap_bangkok: '曼谷',
+ ap_tokyo: '东京',
+ na_siliconvalley: '硅谷(美西)',
+ na_ashburn: '弗吉尼亚(美东)',
+ na_toronto: '多伦多',
+ sa_saopaulo: '圣保罗',
+ eu_frankfurt: '法兰克福',
KODO: '七牛云 Kodo',
scType: '存储类型',
typeStandard: '标准存储',
@@ -1177,7 +1199,6 @@ const message = {
scArchive: '归档存储,适用于极低访问频率(例如半年访问1次)的业务场景。',
scDeep_Archive: '深度归档存储,适用于极低访问频率(例如1年访问1~2次)的业务场景。',
archiveHelper: '归档存储的文件无法直接下载,需要先在对应的云服务商网站进行恢复操作,请谨慎使用!',
- domainHelper: '加速域名必须包含 http:// 或者 https://',
backupAlert:
"理论上只要云厂商兼容 S3 协议,就可以用现有的亚马逊 S3 云存储来备份,具体配置参考 官方文档 ",
domain: '加速域名',
diff --git a/frontend/src/utils/util.ts b/frontend/src/utils/util.ts
index 2fc0e4f4b..6e3f2d242 100644
--- a/frontend/src/utils/util.ts
+++ b/frontend/src/utils/util.ts
@@ -370,6 +370,19 @@ export function transTimeUnit(val: string): any {
return val + i18n.global.t('commons.units.second');
}
+export function splitHttp(url: string) {
+ if (url.indexOf('https://') != -1) {
+ return { proto: 'https', url: url.replaceAll('https://', '') };
+ }
+ if (url.indexOf('http://') != -1) {
+ return { proto: 'http', url: url.replaceAll('http://', '') };
+ }
+ return { proto: '', url: url };
+}
+export function spliceHttp(proto: string, url: string) {
+ return proto + '://' + url.replaceAll('https://', '').replaceAll('http://', '');
+}
+
export function getAge(d1: string): string {
const dateBegin = new Date(d1);
const dateEnd = new Date();
diff --git a/frontend/src/views/setting/backup-account/cos/index.vue b/frontend/src/views/setting/backup-account/cos/index.vue
new file mode 100644
index 000000000..3aefc044f
--- /dev/null
+++ b/frontend/src/views/setting/backup-account/cos/index.vue
@@ -0,0 +1,255 @@
+
+