【新增】西部数码和火山引擎DNS配置

This commit is contained in:
chudong
2025-05-16 11:26:15 +08:00
parent 1818421e24
commit 5093ca7c60
87 changed files with 300 additions and 115 deletions

View File

@@ -9194,5 +9194,90 @@
"arDZ": "الرجاء إدخال مفتاح Leichi WAF-API الصحيح"
},
"timestamp": "2025-05-15T09:13:05.223Z"
},
"请输入西部数码的Username": {
"text": "请输入西部数码的Username",
"key": "t_0_1747365600180",
"translations": {
"zhCN": "请输入西部数码的用户名",
"zhTW": "請輸入西部數碼的用戶名",
"enUS": "Please enter the Western Digital username",
"jaJP": "Western Digitalのユーザー名を入力してください",
"koKR": "Western Digital 사용자 이름을 입력하세요",
"ruRU": "Пожалуйста, введите имя пользователя Western Digital",
"ptBR": "Por favor, insira o nome de usuário da Western Digital",
"frFR": "Veuillez saisir le nom d'utilisateur Western Digital",
"esAR": "Por favor, ingrese el nombre de usuario de Western Digital",
"arDZ": "الرجاء إدخال اسم المستخدم Western Digital"
},
"timestamp": "2025-05-16T03:20:03.108Z"
},
"请输入西部数码的Password": {
"text": "请输入西部数码的Password",
"key": "t_1_1747365603108",
"translations": {
"zhCN": "请输入西部数码的密码",
"zhTW": "請輸入西部數碼的密碼",
"enUS": "Please enter the Western Digital password",
"jaJP": "ウェスタンデジタルのパスワードを入力してください",
"koKR": "웨스턴 디지털의 비밀번호를 입력하세요",
"ruRU": "Пожалуйста, введите пароль Western Digital",
"ptBR": "Por favor, insira a senha da Western Digital",
"frFR": "Veuillez entrer le mot de passe de Western Digital",
"esAR": "Por favor, ingrese la contraseña de Western Digital",
"arDZ": "الرجاء إدخال كلمة مرور ويسترن ديجيتال"
},
"timestamp": "2025-05-16T03:20:03.108Z"
},
"请输入SSH的Password": {
"text": "请输入SSH的Password",
"key": "t_2_1747365599051",
"translations": {
"zhCN": "请输入SSH的Password",
"zhTW": "請輸入SSH的Password",
"enUS": "Please enter the SSH Password",
"jaJP": "SSHのパスワードを入力してください",
"koKR": "SSH 비밀번호를 입력하세요",
"ruRU": "Пожалуйста, введите пароль SSH",
"ptBR": "Por favor, insira a senha SSH",
"frFR": "Veuillez entrer le mot de passe SSH",
"esAR": "Por favor ingrese la contraseña SSH",
"arDZ": "يرجى إدخال كلمة مرور SSH"
},
"timestamp": "2025-05-16T03:20:03.108Z"
},
"请输入火山引擎的AccessKey": {
"text": "请输入火山引擎的AccessKey",
"key": "t_3_1747365600828",
"translations": {
"zhCN": "请输入火山引擎的AccessKey",
"zhTW": "請輸入火山引擎的AccessKey",
"enUS": "Please enter the AccessKey of Volcano Engine",
"jaJP": "ボルケーエンジンのAccessKeyを入力してください",
"koKR": "볼케이노 엔진의 AccessKey를 입력하세요",
"ruRU": "Пожалуйста, введите AccessKey Volcano Engine",
"ptBR": "Por favor, insira a AccessKey do Volcano Engine",
"frFR": "Veuillez saisir la clé d'accès du moteur Volcano",
"esAR": "Por favor ingrese la AccessKey de Volcano Engine",
"arDZ": "يرجى إدخال مفتاح الوصول AccessKey لمحرك Volcano"
},
"timestamp": "2025-05-16T03:20:03.108Z"
},
"请输入火山引擎的SecretKey": {
"text": "请输入火山引擎的SecretKey",
"key": "t_4_1747365600137",
"translations": {
"zhCN": "请输入火山引擎的SecretKey",
"zhTW": "請輸入火山引擎的SecretKey",
"enUS": "Please enter the SecretKey of Volcano Engine",
"jaJP": "火山エンジンのSecretKeyを入力してください",
"koKR": "볼케이노 엔진의 SecretKey를 입력하세요",
"ruRU": "Введите SecretKey Volcano Engine",
"ptBR": "Por favor, insira o SecretKey do Volcano Engine",
"frFR": "Veuillez entrer le SecretKey de Volcano Engine",
"esAR": "Por favor ingrese el SecretKey de Volcano Engine",
"arDZ": "الرجاء إدخال SecretKey لمحرك بركان"
},
"timestamp": "2025-05-16T03:20:03.108Z"
}
}

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1747365642427" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4628" width="40" height="40" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M865.905929 472.578561l-137.917759 539.191238a9.407847 9.407847 0 0 0 0 4.479927 10.047837 10.047837 0 0 0 9.983838 7.679875h275.643521a9.983838 9.983838 0 0 0 10.047836-7.679875 9.983838 9.983838 0 0 0 0-4.479927l-138.493749-539.191238a10.175835 10.175835 0 0 0-19.327686 0M107.07026 594.752575l-106.878263 416.953225a9.983838 9.983838 0 0 0 10.111836 12.159802h212.796542a10.239834 10.239834 0 0 0 8.063869-3.583942 9.727842 9.727842 0 0 0 1.919968-4.031934 9.407847 9.407847 0 0 0 0-4.479927l-106.878263-417.081223a9.791841 9.791841 0 0 0-3.583942-5.119916 10.239834 10.239834 0 0 0-11.967805 0 9.791841 9.791841 0 0 0-3.583942 5.119916z" fill="#00E5E5" p-id="4629"></path><path d="M295.3552 249.478186L100.798362 1011.833798a9.727842 9.727842 0 0 0 1.919969 8.319865 9.983838 9.983838 0 0 0 7.679875 3.839937h389.241675a10.111836 10.111836 0 0 0 9.983838-7.615876 10.047837 10.047837 0 0 0 0.063999-4.479927L314.618887 249.414187a9.791841 9.791841 0 0 0-3.64794-5.119917 10.239834 10.239834 0 0 0-11.967806 0 9.791841 9.791841 0 0 0-3.647941 5.119917" fill="#006EFF" p-id="4630"></path><path d="M631.029746 7.050125a9.791841 9.791841 0 0 0-3.583942-5.119916 10.239834 10.239834 0 0 0-11.967806 0 9.791841 9.791841 0 0 0-3.64794 5.119916l-265.979678 1004.783673a9.983838 9.983838 0 0 0 10.047837 12.031804h531.575362a10.175835 10.175835 0 0 0 10.047836-7.615876 10.111836 10.111836 0 0 0 0-4.479927L631.029746 7.050125z" fill="#006EFF" p-id="4631"></path><path d="M435.640921 360.324385L266.939662 1011.769799a9.599844 9.599844 0 0 0 1.983968 8.57586 9.983838 9.983838 0 0 0 8.063869 3.647941h336.63453a10.239834 10.239834 0 0 0 8.127868-3.71194 10.111836 10.111836 0 0 0 1.983967-8.511861L454.904608 360.260386a10.239834 10.239834 0 0 0-9.599844-7.039886 10.239834 10.239834 0 0 0-9.599844 7.039886" fill="#00E5E5" p-id="4632"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1747365740690" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7399" width="40" height="40" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M735.899826 924.582957a467.656348 467.656348 0 0 1-223.944348 56.765217c-81.029565 0-157.295304-20.569043-223.855304-56.765217H735.944348z m111.081739-83.878957c-15.582609 15.894261-32.322783 30.675478-49.997913 44.210087H227.06087a467.166609 467.166609 0 0 1-49.997913-44.210087h669.96313zM912.517565 756.869565c-9.349565 15.36-19.589565 30.052174-30.675478 44.165565H142.157913a475.225043 475.225043 0 0 1-30.675478-44.165565h801.03513z m66.159305-294.956522a467.033043 467.033043 0 0 1-44.432696 255.198609H89.755826a467.033043 467.033043 0 0 1-44.477217-254.664348l138.106434 2.715826 180.313044 201.19374 147.945739-173.100522 183.563131 179.734261 156.850086-211.033044h126.619827zM512 42.651826c204.176696 0 377.856 130.359652 442.412522 312.409044H824.987826l-131.650783 157.161739-177.730782-164.062609-156.493913 165.888L235.52 356.173913H69.186783C133.431652 173.545739 307.46713 42.651826 512 42.651826z" fill="#0070B6" p-id="7400"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -26,6 +26,8 @@ const types = {
'aliyun-oss': '阿里云OSS',
'1panel-site': '1Panel网站',
'btpanel-site': '宝塔面板网站',
volcengine: '火山引擎',
westcn: '西部数码',
}
export const AuthApiTypeIcon = defineComponent({
@@ -82,6 +84,8 @@ export const AuthApiTypeIcon = defineComponent({
'btpanel-site': 'btpanel',
baidu: 'baidu',
safeline: 'safeline',
volcengine: 'volcengine',
westcn: 'westcn',
}
// 返回匹配的图标路径或默认图标

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "الرجاء إدخال اسم المستخدم Western Digital",
"t_1_1747365603108": "الرجاء إدخال كلمة مرور ويسترن ديجيتال",
"t_2_1747365599051": "يرجى إدخال كلمة مرور SSH",
"t_3_1747365600828": "يرجى إدخال مفتاح الوصول AccessKey لمحرك Volcano",
"t_4_1747365600137": "الرجاء إدخال SecretKey لمحرك بركان",
"t_0_1744098811152": "تحذير: لقد دخلتم منطقة غير معروفة، الصفحة التي تحاول زيارتها غير موجودة، يرجى الضغط على الزر للعودة إلى الصفحة الرئيسية.",
"t_1_1744098801860": "رجوع إلى الصفحة الرئيسية",
"t_2_1744098804908": "نصيحة أمنية: إذا كنت تعتقد أن هذا خطأ، يرجى الاتصال بالمدير على الفور",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Please enter the Western Digital username",
"t_1_1747365603108": "Please enter the Western Digital password",
"t_2_1747365599051": "Please enter the SSH Password",
"t_3_1747365600828": "Please enter the AccessKey of Volcano Engine",
"t_4_1747365600137": "Please enter the SecretKey of Volcano Engine",
"t_0_1744098811152": "Warning: You have entered an unknown area, the page you are visiting does not exist, please click the button to return to the homepage.",
"t_1_1744098801860": "Return Home",
"t_2_1744098804908": "Safety Tip: If you think this is an error, please contact the administrator immediately",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Por favor, ingrese el nombre de usuario de Western Digital",
"t_1_1747365603108": "Por favor, ingrese la contraseña de Western Digital",
"t_2_1747365599051": "Por favor ingrese la contraseña SSH",
"t_3_1747365600828": "Por favor ingrese la AccessKey de Volcano Engine",
"t_4_1747365600137": "Por favor ingrese el SecretKey de Volcano Engine",
"t_0_1744098811152": "Advertencia: Ha ingresado a una zona desconocida, la página que intenta visitar no existe, por favor, haga clic en el botón para regresar a la página de inicio.",
"t_1_1744098801860": "Volver al inicio",
"t_2_1744098804908": "Consejo de seguridad: Si piensa que es un error, póngase en contacto con el administrador inmediatamente",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Veuillez saisir le nom d'utilisateur Western Digital",
"t_1_1747365603108": "Veuillez entrer le mot de passe de Western Digital",
"t_2_1747365599051": "Veuillez entrer le mot de passe SSH",
"t_3_1747365600828": "Veuillez saisir la clé d'accès du moteur Volcano",
"t_4_1747365600137": "Veuillez entrer le SecretKey de Volcano Engine",
"t_0_1744098811152": "Avertissement : Vous avez entré dans une zone inconnue, la page que vous visitez n'existe pas, veuillez cliquer sur le bouton pour revenir à la page d'accueil.",
"t_1_1744098801860": "Retour à l'accueil",
"t_2_1744098804908": "Avis de sécurité : Si vous pensez que c'est une erreur, veuillez contacter l'administrateur immédiatement",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Western Digitalのユーザー名を入力してください",
"t_1_1747365603108": "ウェスタンデジタルのパスワードを入力してください",
"t_2_1747365599051": "SSHのパスワードを入力してください",
"t_3_1747365600828": "ボルケーエンジンのAccessKeyを入力してください",
"t_4_1747365600137": "火山エンジンのSecretKeyを入力してください",
"t_0_1744098811152": "警告:未知のエリアに進入しました。アクセスしようとしたページは存在しません。ボタンをクリックしてホームページに戻ってください。",
"t_1_1744098801860": "ホームに戻る",
"t_2_1744098804908": "安全注意:これが誤りだと思われる場合は、すぐに管理者に連絡してください",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Western Digital 사용자 이름을 입력하세요",
"t_1_1747365603108": "웨스턴 디지털의 비밀번호를 입력하세요",
"t_2_1747365599051": "SSH 비밀번호를 입력하세요",
"t_3_1747365600828": "볼케이노 엔진의 AccessKey를 입력하세요",
"t_4_1747365600137": "볼케이노 엔진의 SecretKey를 입력하세요",
"t_0_1744098811152": "경고: 알 수 없는 영역에 진입했습니다. 방문하려는 페이지가 존재하지 않습니다. 버튼을 클릭하여 홈페이지로 돌아가세요。",
"t_1_1744098801860": "홈으로 돌아가기",
"t_2_1744098804908": "안전 유의사항: 이가 오류라면 즉시 관리자에게 연락하십시오",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Por favor, insira o nome de usuário da Western Digital",
"t_1_1747365603108": "Por favor, insira a senha da Western Digital",
"t_2_1747365599051": "Por favor, insira a senha SSH",
"t_3_1747365600828": "Por favor, insira a AccessKey do Volcano Engine",
"t_4_1747365600137": "Por favor, insira o SecretKey do Volcano Engine",
"t_0_1744098811152": "Aviso: Você entrou em uma área desconhecida, a página que você está visitando não existe, por favor, clique no botão para voltar para a página inicial.",
"t_1_1744098801860": "Voltar para a homepage",
"t_2_1744098804908": "Dica de Segurança: Se você acha que isso é um erro, entre em contato com o administrador imediatamente",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "Пожалуйста, введите имя пользователя Western Digital",
"t_1_1747365603108": "Пожалуйста, введите пароль Western Digital",
"t_2_1747365599051": "Пожалуйста, введите пароль SSH",
"t_3_1747365600828": "Пожалуйста, введите AccessKey Volcano Engine",
"t_4_1747365600137": "Введите SecretKey Volcano Engine",
"t_0_1744098811152": "Предупреждение: Вы вошли в неизвестную зону, посещаемая страница не существует, пожалуйста, нажмите кнопку, чтобы вернуться на главную страницу.",
"t_1_1744098801860": "Вернуться на главную",
"t_2_1744098804908": "Совет по безопасности: Если вы считаете, что это ошибка, немедленно свяжитесь с администратором",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "请输入西部数码的用户名",
"t_1_1747365603108": "请输入西部数码的密码",
"t_2_1747365599051": "请输入SSH的Password",
"t_3_1747365600828": "请输入火山引擎的AccessKey",
"t_4_1747365600137": "请输入火山引擎的SecretKey",
"t_0_1744098811152": "警告:您已进入未知区域,所访问的页面不存在,请点击按钮返回首页。",
"t_1_1744098801860": "返回首页",
"t_2_1744098804908": "安全提示:如果您认为这是个错误,请立即联系管理员",

View File

@@ -1,4 +1,9 @@
{
"t_0_1747365600180": "請輸入西部數碼的用戶名",
"t_1_1747365603108": "請輸入西部數碼的密碼",
"t_2_1747365599051": "請輸入SSH的Password",
"t_3_1747365600828": "請輸入火山引擎的AccessKey",
"t_4_1747365600137": "請輸入火山引擎的SecretKey",
"t_0_1744098811152": "警告:您已進入未知區域,所訪問的頁面不存在,請點擊按鈕返回首頁。",
"t_1_1744098801860": "返回首頁",
"t_2_1744098804908": "安全提示:如果您認為這是個錯誤,請立即聯繫管理員",

View File

@@ -44,6 +44,8 @@ export interface AddAccessParams<
| HuaWeiCloudAccessConfig
| CloudflareAccessConfig
| BaiduCloudAccessConfig
| VolcengineAccessConfig
| WestcnAccessConfig
| BtWafSiteAccessConfig,
> {
name: string
@@ -61,7 +63,9 @@ export interface UpdateAccessParams<
| HuaWeiCloudAccessConfig
| CloudflareAccessConfig
| BaiduCloudAccessConfig
| BtWafSiteAccessConfig,
| BtWafSiteAccessConfig
| VolcengineAccessConfig
| WestcnAccessConfig,
> extends AddAccessParams<T> {
id: string
}
@@ -116,6 +120,12 @@ export interface HuaWeiCloudAccessConfig {
* 百度云授权配置
*/
export interface BaiduCloudAccessConfig extends HuaWeiCloudAccessConfig {}
/**
* 火山引擎授权配置
*/
export interface VolcengineAccessConfig extends HuaWeiCloudAccessConfig {}
/**
* cloudflare 授权配置
*/
@@ -124,6 +134,14 @@ export interface CloudflareAccessConfig {
email: string
}
/**
* 西部数码授权配置
*/
export interface WestcnAccessConfig {
username: string
password: string
}
/** 删除授权请求参数 */
export interface DeleteAccessParams {

View File

@@ -41,6 +41,7 @@ import type {
SshAccessConfig,
TencentCloudAccessConfig,
UpdateAccessParams,
WestcnAccessConfig,
} from '@/types/access'
import type { FormConfig } from '@baota/naive-ui/types/form'
@@ -278,11 +279,24 @@ export const useApiFormController = (props: { data: AccessItem }) => {
trigger: 'input',
message: $t('t_3_1744164839524'),
},
password: {
username: {
required: true,
message: $t('t_4_1744164840458'),
message: $t('t_0_1747365600180'),
trigger: 'input',
},
password: {
trigger: 'input',
validator: (rule: FormItemRule, value: string, callback: (error?: Error) => void) => {
if (!value) {
const mapTips = {
westcn: $t('t_1_1747365603108'),
ssh: $t('t_2_1747365599051'),
}
return callback(new Error(mapTips[param.value.type as keyof typeof mapTips]))
}
callback()
},
},
key: {
required: true,
message: $t('t_31_1745289355715'),
@@ -333,16 +347,14 @@ export const useApiFormController = (props: { data: AccessItem }) => {
message: $t('t_6_1745317313383'),
trigger: 'input',
},
access_key: {
required: true,
message: $t('t_4_1747042966254'),
trigger: 'input',
validator: (rule: FormItemRule, value: string, callback: (error?: Error) => void) => {
if (!value.length) {
if (!value) {
const mapTips = {
huawei: $t('t_2_1747271295877'),
baidu: $t('t_3_1747271294475'),
volcengine: $t('t_3_1747365600828'),
}
return callback(new Error(mapTips[param.value.type as keyof typeof mapTips]))
}
@@ -357,6 +369,7 @@ export const useApiFormController = (props: { data: AccessItem }) => {
tencentcloud: $t('t_2_1747042967277'),
huawei: $t('t_3_1747042967608'),
baidu: $t('t_4_1747271294621'),
volcengine: $t('t_4_1747365600137'),
}
return callback(new Error(mapTips[param.value.type as keyof typeof mapTips]))
}
@@ -490,6 +503,7 @@ export const useApiFormController = (props: { data: AccessItem }) => {
break
case 'huaweicloud':
case 'baidu':
case 'volcengine':
items.push(
useFormInput('AccessKey', 'config.access_key', {
onInput: (val: string) => ((param.value.config as HuaWeiCloudAccessConfig).access_key = val.trim()),
@@ -509,6 +523,16 @@ export const useApiFormController = (props: { data: AccessItem }) => {
}),
)
break
case 'westcn':
items.push(
useFormInput('Username', 'config.username', {
onInput: (val: string) => ((param.value.config as WestcnAccessConfig).username = val.trim()),
}),
useFormInput('Password', 'config.password', {
onInput: (val: string) => ((param.value.config as WestcnAccessConfig).password = val.trim()),
}),
)
break
default:
break
}

View File

@@ -64,6 +64,8 @@ export const useLayoutStore = defineStore('layout-store', () => {
cloudflare: { name: 'Cloudflare', access: ['dns'] },
baidu: { name: '百度云', access: ['dns'] },
safeline: { name: '雷池WAF', access: ['host'] },
volcengine: { name: '火山引擎', access: ['dns'] },
westcn: { name: '西部数码', access: ['dns'] },
})
/**