【修复】雷池参数问题,Let's Encrypt 申请通配符限制,以及其他已知问题

This commit is contained in:
chudong
2025-05-19 09:51:50 +08:00
parent 3bfce79e11
commit 40ec5c0bbf
92 changed files with 413 additions and 229 deletions

View File

@@ -325,13 +325,17 @@ export const useApiFormController = (props: { data: AccessItem }) => {
cloudflare: $t('t_0_1747042966820'),
btpanel: $t('t_1_1747042969705'),
btwaf: $t('t_1_1747300384579'),
safeline: $t('t_2_1747300385222'),
}
return callback(new Error(mapTips[param.value.type as keyof typeof mapTips]))
}
callback()
},
},
api_token: {
required: true,
message: $t('t_0_1747617113090'),
trigger: 'input',
},
access_key_id: {
required: true,
message: $t('t_4_1745317314054'),
@@ -467,9 +471,13 @@ export const useApiFormController = (props: { data: AccessItem }) => {
useFormInput(typeUrlMap.get(param.value.type) || '', 'config.url', {
onInput: (val: string) => ((param.value.config as PanelAccessConfig).url = val.trim()),
}),
useFormInput($t('t_55_1745289355715'), 'config.api_key', {
onInput: (val: string) => ((param.value.config as PanelAccessConfig).api_key = val.trim()),
}),
useFormInput(
param.value.type === 'safeline' ? $t('t_1_1747617105179') : $t('t_55_1745289355715'),
param.value.type === 'safeline' ? 'config.api_token' : 'config.api_key',
{
onInput: (val: string) => ((param.value.config as PanelAccessConfig).api_key = val.trim()),
},
),
useFormSwitch(
$t('t_3_1746667592270'),
'config.ignore_ssl',