【调整】SSH地址支持域名形式

【新增】支持自定义监控端口
【新增】通知类型-企业微信
【新增】申请证书(Buypass)、自定义ACME服务器地址
【新增】授权API管理(namesilo、Bunny、Gcore、name.com、京东云)
This commit is contained in:
chudong
2025-06-07 17:37:42 +08:00
parent 87ae1c9570
commit f0d83d23c6
106 changed files with 1570 additions and 223 deletions

View File

@@ -35,6 +35,7 @@ const {
workflowFormData,
deleteExistingWorkflow,
executeExistingWorkflow,
stopExistingWorkflow,
setWorkflowActive,
setWorkflowExecType,
caFormData,
@@ -220,7 +221,7 @@ export const useController = () => {
useModal({
title: workflow ? `${workflow.name}】 - ${$t('t_9_1745215914666')}` : $t('t_9_1745215914666'),
component: HistoryModal,
area: 800,
area: 850,
componentProps: { id: workflow.id.toString() },
})
}
@@ -422,6 +423,23 @@ export const useHistoryController = (id: string) => {
})
}
/**
* @description 停止工作流执行
* @param {WorkflowHistoryItem} historyItem - 工作流历史记录项
*/
const handleStopWorkflow = async (historyItem: WorkflowHistoryItem) => {
useDialog({
title: $t('t_0_1749204565782'),
content: $t('t_1_1749204570473'),
onPositiveClick: async () => {
await stopExistingWorkflow(historyItem.id)
await fetch() // 刷新历史记录表格
// 触发外部主表格刷新
refreshTable.value = true
},
})
}
/**
* @description 创建历史记录表格列配置
* @returns {DataTableColumn<WorkflowHistoryItem>[]} 返回表格列配置数组
@@ -430,7 +448,7 @@ export const useHistoryController = (id: string) => {
{
title: $t('t_4_1745227838558'),
key: 'create_time',
width: 230,
width: 200,
render: (row: WorkflowHistoryItem) => {
// 处理数字类型的时间戳
return row.create_time ? row.create_time : '-'
@@ -439,7 +457,7 @@ export const useHistoryController = (id: string) => {
{
title: $t('t_5_1745227839906'),
key: 'end_time',
width: 230,
width: 200,
render: (row: WorkflowHistoryItem) => {
// 处理数字类型的时间戳
return row.end_time ? row.end_time : '-'
@@ -448,7 +466,7 @@ export const useHistoryController = (id: string) => {
{
title: $t('t_6_1745227838798'),
key: 'exec_type',
width: 110,
width: 120,
render: (row: WorkflowHistoryItem) => (
<NTag type={row.exec_type === 'auto' ? 'info' : 'default'} size="small" bordered={false}>
{row.exec_type === 'auto' ? $t('t_2_1745215915397') : $t('t_3_1745215914237')}
@@ -461,9 +479,14 @@ export const useHistoryController = (id: string) => {
key: 'actions',
fixed: 'right',
align: 'right',
width: 80,
width: 180,
render: (row: WorkflowHistoryItem) => (
<NSpace justify="end">
<NSpace justify="end" size="small">
{row.status === 'running' && (
<NButton size="tiny" strong secondary type="error" onClick={() => handleStopWorkflow(row)}>
{$t('t_0_1749204565782')}
</NButton>
)}
<NButton
size="tiny"
strong