【新增】部署类型七牛云oss、七牛云cdn、百度cdn、腾讯waf、腾讯edgeone、阿里云waf

【新增】解析类型godaddy
【新增】自定义CA授权管理
【调整】优化部署流程,减少代码冗余,提升类型添加效率
This commit is contained in:
chudong
2025-05-23 16:58:34 +08:00
parent 71de397e11
commit e5634d4992
263 changed files with 18348 additions and 14253 deletions

View File

@@ -0,0 +1,151 @@
import { $t } from '@locales/index'
// 消息推送类型
export interface MessagePushType {
name: string
type: string
}
// 定义ApiProject接口包含可选的notApi属性
export interface ApiProjectType {
name: string
icon: string
type?: string[]
notApi?: boolean
hostRelated?: Record<string, any>
sort?: number
}
// $t('t_0_1747886301644')
export const MessagePushConfig = {
email: { name: $t('t_68_1745289354676'), type: 'mail' },
wecom: { name: $t('t_33_1746773350932'), type: 'wecom' },
dingtalk: { name: $t('t_32_1746773348993'), type: 'dingtalk' },
feishu: { name: $t('t_34_1746773350153'), type: 'feishu' },
webhook: { name: 'WebHook', type: 'webhook' },
}
// CA证书授权
export const CACertificateAuthorization = {
zerossl: { name: 'ZeroSSL', type: 'zerossl' },
google: { name: 'Google', type: 'google' },
}
// 授权API管理
// 结构说明:{name: '名称', icon: '图标', type: ['类型'], notApi: 是否需要API默认需要, hostRelated: { default: { name: '默认' } }, sort: 排序}
export const ApiProjectConfig: Record<string, ApiProjectType> = {
localhost: {
name: $t('t_4_1744958838951'),
icon: 'ssh',
type: ['host'],
notApi: false,
hostRelated: { default: { name: $t('t_4_1744958838951') } },
sort: 1,
},
ssh: {
name: 'SSH',
icon: 'ssh',
type: ['host'],
hostRelated: { default: { name: 'SSH' } },
sort: 2,
},
btpanel: {
name: $t('t_10_1745735765165'),
icon: 'btpanel',
hostRelated: { default: { name: $t('t_10_1745735765165') }, site: { name: $t('t_1_1747886307276') } },
type: ['host'],
sort: 3,
},
btwaf: {
name: $t('t_3_1747886302848'),
icon: 'btwaf',
hostRelated: { site: { name: $t('t_4_1747886303229') } },
type: ['host'],
sort: 4,
},
'1panel': {
name: '1Panel',
icon: '1panel',
hostRelated: { default: { name: '1Panel' }, site: { name: $t('t_2_1747886302053') } },
type: ['host'],
sort: 5,
},
aliyun: {
name: $t('t_2_1747019616224'),
icon: 'aliyun',
type: ['host', 'dns'],
hostRelated: {
cdn: { name: $t('t_16_1745735766712') },
oss: { name: $t('t_2_1746697487164') },
waf: { name: $t('t_10_1744958860078') },
},
sort: 6,
},
tencentcloud: {
name: $t('t_3_1747019616129'),
icon: 'tencentcloud',
type: ['host', 'dns'],
hostRelated: {
cdn: { name: $t('t_14_1745735766121') },
oss: { name: $t('t_15_1745735768976') },
waf: { name: $t('t_9_1744958840634') },
teo: { name: $t('t_5_1747886301427') },
},
sort: 7,
},
safeline: {
name: $t('t_11_1747886301986'),
icon: 'safeline',
type: ['host'],
hostRelated: { panel: { name: $t('t_1_1747298114192') }, site: { name: $t('t_12_1747886302725') } },
sort: 8,
},
qiniu: {
name: $t('t_6_1747886301844'),
icon: 'qiniu',
type: ['host'],
hostRelated: { cdn: { name: $t('t_7_1747886302395') }, oss: { name: $t('t_8_1747886304014') } },
sort: 9,
},
huaweicloud: {
name: $t('t_9_1747886301128'),
icon: 'huaweicloud',
type: ['dns'],
sort: 10,
},
baidu: {
name: $t('t_10_1747886300958'),
icon: 'baidu',
type: ['host', 'dns'],
hostRelated: {
cdn: { name: '百度云CDN' },
},
sort: 11,
},
cloudflare: {
name: 'Cloudflare',
icon: 'cloudflare',
type: ['dns'],
sort: 12,
},
volcengine: {
name: $t('t_13_1747886301689'),
icon: 'volcengine',
type: ['dns'],
sort: 13,
},
westcn: {
name: $t('t_14_1747886301884'),
icon: 'westcn',
type: ['dns'],
sort: 14,
},
godaddy: {
name: 'GoDaddy',
icon: 'godaddy',
type: ['dns'],
sort: 15,
},
}

View File

@@ -1,53 +0,0 @@
;[
{
code: 'zh-CN',
name: '中文',
icon: 'cn',
},
{
code: 'zh-tw',
name: '繁體中文',
icon: 'tw',
},
{
code: 'en-US',
name: 'English',
icon: 'us',
},
{
code: 'ja-JP',
name: '日本語',
icon: 'jp',
},
{
code: 'ko-KR',
name: '한국어',
icon: 'kr',
},
{
code: 'ru-RU',
name: 'Русский',
icon: 'ru',
},
{
code: 'pt-BR',
name: 'Português',
icon: 'br',
},
{
code: 'fr-FR',
name: 'Français',
icon: 'fr',
},
{
code: 'es-AR',
name: 'Español',
icon: 'es',
},
{
code: 'ar-DZ',
name: 'العربية',
icon: 'dz',
},
]