【上线】雷池WAF站点和雷池WAF部署

This commit is contained in:
chudong
2025-05-15 16:29:31 +08:00
parent e23e92f937
commit f368948055
92 changed files with 10026 additions and 9912 deletions

View File

@@ -368,6 +368,13 @@ export const useApiFormController = (props: { data: AccessItem }) => {
access: value.access,
}))
const typeUrlMap = new Map<string, string>([
['btwaf', '宝塔WAF-URL'],
['btpanel', '宝塔面板-URL'],
['1panel', '1Panel-URL'],
['safeline', '雷池WAF-URL'],
])
// 表单配置
const config = computed(() => {
const items: FormConfig = [
@@ -425,8 +432,9 @@ export const useApiFormController = (props: { data: AccessItem }) => {
case '1panel':
case 'btpanel':
case 'btwaf':
case 'safeline':
items.push(
useFormInput(param.value.type === 'btwaf' ? $t('t_5_1747271291828') : $t('t_2_1746667592840'), 'config.url'),
useFormInput(typeUrlMap.get(param.value.type) || '', 'config.url'),
useFormInput($t('t_55_1745289355715'), 'config.api_key'),
useFormSwitch(
$t('t_3_1746667592270'),
@@ -439,7 +447,6 @@ export const useApiFormController = (props: { data: AccessItem }) => {
),
)
break
case 'aliyun':
items.push(
useFormInput('AccessKeyId', 'config.access_key'),

View File

@@ -63,6 +63,7 @@ export const useLayoutStore = defineStore('layout-store', () => {
huaweicloud: { name: '华为云', access: ['dns'] },
cloudflare: { name: 'Cloudflare', access: ['dns'] },
baidu: { name: '百度云', access: ['dns'] },
safeline: { name: '雷池WAF', access: ['host'] },
})
/**