【新增】部署类型七牛云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,60 @@
import { defineComponent } from 'vue'
import { NButton } from 'naive-ui'
import { PlusOutlined } from '@vicons/antd'
import { $t } from '@locales/index'
import { useCAManageController } from '../useController'
import EmptyState from '@components/TableEmptyState'
import BaseComponent from '@components/BaseLayout'
/**
* CA授权管理模态框组件
*/
export default defineComponent({
name: 'CAManageModal',
setup() {
const { CATable, CATablePage, handleOpenAddForm, total } = useCAManageController()
/**
* 处理空状态添加按钮点击事件
*/
const handleEmptyAddClick = () => {
handleOpenAddForm()
}
return () => (
<BaseComponent
v-slots={{
headerLeft: () => (
<NButton type="primary" onClick={handleOpenAddForm}>
<PlusOutlined class="text-[var(--text-color-3)] mr-1" />
<span>{$t('t_4_1747903685371')}</span>
</NButton>
),
content: () => (
<div class="rounded-lg">
<CATable
size="medium"
v-slots={{
empty: () => <EmptyState addButtonText={$t('t_4_1747903685371')} onAddClick={handleEmptyAddClick} />,
}}
/>
</div>
),
footerRight: () => (
<div class="flex justify-end mt-4">
<CATablePage
v-slots={{
prefix: () => (
<span>
{$t('t_15_1745227839354')} {total.value} {$t('t_16_1745227838930')}
</span>
),
}}
/>
</div>
),
}}
/>
)
},
})