From 6ccbdeb89a6b5639a537ca72bd75f807f686a8a5 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 7 Mar 2025 12:27:22 +0800 Subject: [PATCH] feat(ui): update default standard workflow template --- ui/src/domain/workflow.ts | 3 +++ ui/src/i18n/locales/en/nls.settings.json | 2 +- ui/src/i18n/locales/zh/nls.settings.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/domain/workflow.ts b/ui/src/domain/workflow.ts index 6b8543f0..8886dee4 100644 --- a/ui/src/domain/workflow.ts +++ b/ui/src/domain/workflow.ts @@ -196,6 +196,9 @@ export const initWorkflow = (options: InitWorkflowOptions = {}): WorkflowModel = current.next = newNode(WorkflowNodeType.Deploy, {}); current = current.next; + current.next = newNode(WorkflowNodeType.ExecuteResultBranch, {}); + + current = current.next!.branches![1]; current.next = newNode(WorkflowNodeType.Notify, {}); } diff --git a/ui/src/i18n/locales/en/nls.settings.json b/ui/src/i18n/locales/en/nls.settings.json index 0bb6ba40..e23c7d97 100644 --- a/ui/src/i18n/locales/en/nls.settings.json +++ b/ui/src/i18n/locales/en/nls.settings.json @@ -16,7 +16,7 @@ "settings.password.form.password.errmsg.not_matched": "Passwords do not match", "settings.notification.tab": "Notification", - "settings.notification.template.card.title": "Template", + "settings.notification.template.card.title": "Certificate expiration notification template", "settings.notification.template.form.subject.label": "Subject", "settings.notification.template.form.subject.placeholder": "Please enter notification subject", "settings.notification.template.form.subject.extra": "Supported variables (${COUNT}: number of expiring soon)", diff --git a/ui/src/i18n/locales/zh/nls.settings.json b/ui/src/i18n/locales/zh/nls.settings.json index c2204d4d..7b0de81e 100644 --- a/ui/src/i18n/locales/zh/nls.settings.json +++ b/ui/src/i18n/locales/zh/nls.settings.json @@ -16,13 +16,13 @@ "settings.password.form.password.errmsg.not_matched": "两次密码不一致", "settings.notification.tab": "消息推送", - "settings.notification.template.card.title": "通知模板", + "settings.notification.template.card.title": "证书过期通知模板(全局)", "settings.notification.template.form.subject.label": "通知主题", "settings.notification.template.form.subject.placeholder": "请输入通知主题", "settings.notification.template.form.subject.extra": "支持的变量(${COUNT}: 即将过期张数)", "settings.notification.template.form.message.label": "通知内容", "settings.notification.template.form.message.placeholder": "请输入通知内容", - "settings.notification.template.form.message.extra": "支持的变量(${COUNT}: 即将过期张数;${DOMAINS}: 域名列表)", + "settings.notification.template.form.message.extra": "过期前 20 天发送通知。支持的变量(${COUNT}: 即将过期张数;${DOMAINS}: 域名列表)", "settings.notification.channels.card.title": "通知渠道", "settings.notification.channel.enabled.on": "启用", "settings.notification.channel.enabled.off": "停用",