feat(ui): new WorkflowStartNodeForm using antd

This commit is contained in:
Fu Diwei
2024-12-25 00:36:02 +08:00
parent 401fa3dcdd
commit c9024c5611
13 changed files with 262 additions and 179 deletions

View File

@@ -4,6 +4,7 @@
"certificate.nodata": "No certificates. Please create a workflow to generate certificates! 😀",
"certificate.action.view": "View Certificate",
"certificate.action.delete": "Delete Certificate",
"certificate.action.download": "Download Certificate",
"certificate.props.san": "Name",

View File

@@ -21,7 +21,7 @@
"workflow.props.updated_at": "Updated At",
"workflow.detail.orchestration.tab": "Orchestration",
"workflow.detail.runs.tab": "Workflow Runs",
"workflow.detail.runs.tab": "History Runs",
"workflow.baseinfo.modal.title": "Workflow Base Information",
"workflow.baseinfo.form.name.label": "Name",
@@ -29,6 +29,18 @@
"workflow.baseinfo.form.description.label": "Description",
"workflow.baseinfo.form.description.placeholder": "Please enter description",
"workflow.nodes.start.form.trigger.label": "Trigger",
"workflow.nodes.start.form.trigger.placeholder": "Please select trigger",
"workflow.nodes.start.form.trigger.tooltip": "Auto: Time triggered based on cron expression.<br>Manual: Manually triggered.",
"workflow.nodes.start.form.trigger.option.auto.label": "Auto",
"workflow.nodes.start.form.trigger.option.manual.label": "Manual",
"workflow.nodes.start.form.trigger_cron.label": "Cron Expression",
"workflow.nodes.start.form.trigger_cron.placeholder": "Please enter cron expression",
"workflow.nodes.start.form.trigger_cron.errmsg.invalid": "Please enter a valid cron expression",
"workflow.nodes.start.form.trigger_cron.tooltip": "Time zone is based on the server.",
"workflow.nodes.start.form.trigger_cron.extra": "Expected execution time for the last 5 times:",
"workflow.nodes.start.form.trigger_cron_alert.content": "Tips: If you have multiple workflows, it is recommended to set them to run at multiple times of the day instead of always running at specific times.<br><br>Reference links:<br>1. <a href=\"https://letsencrypt.org/docs/rate-limits/\" target=\"_blank\">Lets Encrypt rate limits</a><br>2. <a href=\"https://letsencrypt.org/docs/faq/#why-should-my-let-s-encrypt-acme-client-run-at-a-random-time\" target=\"_blank\">Why should my Lets Encrypt (ACME) client run at a random time?</a>",
"workflow_run.props.id": "ID",
"workflow_run.props.status": "Status",
"workflow_run.props.status.succeeded": "Succeeded",
@@ -60,13 +72,6 @@
"workflow.node.addBranch.label": "Add Branch",
"workflow.node.selectNodeType.label": "Select Node Type",
"workflow.node.start.form.executionMethod.label": "Execution Method",
"workflow.node.start.form.executionMethod.placeholder": "Please select execution method",
"workflow.node.start.form.executionMethod.options.manual": "Manual",
"workflow.node.start.form.executionMethod.options.auto": "Auto",
"workflow.node.start.form.crontab.label": "Crontab",
"workflow.node.start.form.crontab.placeholder": "Please enter crontab",
"workflow.node.notify.form.title.label": "Title",
"workflow.node.notify.form.title.placeholder": "Please enter title",
"workflow.node.notify.form.content.label": "Content",

View File

@@ -4,6 +4,7 @@
"certificate.nodata": "暂无证书,新建一个工作流去生成证书吧~ 😀",
"certificate.action.view": "查看证书",
"certificate.action.delete": "删除证书",
"certificate.action.download": "下载证书",
"certificate.props.san": "名称",

View File

@@ -29,6 +29,18 @@
"workflow.baseinfo.form.description.label": "描述",
"workflow.baseinfo.form.description.placeholder": "请输入工作流描述",
"workflow.nodes.start.form.trigger.label": "触发方式",
"workflow.nodes.start.form.trigger.placeholder": "请选择触发方式",
"workflow.nodes.start.form.trigger.tooltip": "自动触发:基于 Cron 表达式定时触发。<br>手动触发:手动点击执行触发。",
"workflow.nodes.start.form.trigger.option.auto.label": "自动触发",
"workflow.nodes.start.form.trigger.option.manual.label": "手动触发",
"workflow.nodes.start.form.trigger_cron.label": "Cron 表达式",
"workflow.nodes.start.form.trigger_cron.placeholder": "请输入 Cron 表达式",
"workflow.nodes.start.form.trigger_cron.errmsg.invalid": "请输入正确的 Cron 表达式",
"workflow.nodes.start.form.trigger_cron.tooltip": "时区以服务器设置为准。",
"workflow.nodes.start.form.trigger_cron.extra": "预计最近 5 次执行时间:",
"workflow.nodes.start.form.trigger_cron_alert.content": "小贴士:如果你有多个工作流,建议将它们设置为在一天中的多个时间段运行,而非总是在相同的特定时间。<br><br>参考链接:<br>1. <a href=\"https://letsencrypt.org/zh-cn/docs/rate-limits/\" target=\"_blank\">Lets Encrypt 速率限制</a><br>2. <a href=\"https://letsencrypt.org/zh-cn/docs/faq/#%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E7%9A%84-let-s-encrypt-acme-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%90%AF%E5%8A%A8%E6%97%B6%E9%97%B4%E5%BA%94%E5%BD%93%E9%9A%8F%E6%9C%BA\" target=\"_blank\">为什么我的 Lets Encrypt (ACME) 客户端启动时间应当随机?</a>",
"workflow_run.props.id": "ID",
"workflow_run.props.status": "状态",
"workflow_run.props.status.succeeded": "成功",
@@ -60,13 +72,6 @@
"workflow.node.addBranch.label": "添加分支",
"workflow.node.selectNodeType.label": "选择节点类型",
"workflow.node.start.form.executionMethod.label": "执行方式",
"workflow.node.start.form.executionMethod.placeholder": "请选择执行方式",
"workflow.node.start.form.executionMethod.options.manual": "手动",
"workflow.node.start.form.executionMethod.options.auto": "自动",
"workflow.node.start.form.crontab.label": "定时表达式",
"workflow.node.start.form.crontab.placeholder": "请输入定时表达式",
"workflow.node.notify.form.title.label": "标题",
"workflow.node.notify.form.title.placeholder": "请输入标题",
"workflow.node.notify.form.content.label": "内容",