feat(ui): WorkflowNew page

This commit is contained in:
Fu Diwei
2025-01-02 20:24:16 +08:00
parent b6dd2248c8
commit c6a8f923e4
21 changed files with 415 additions and 225 deletions

View File

@@ -3,7 +3,7 @@ import { initReactI18next } from "react-i18next";
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import resources, { LOCALE_ZH_NAME, LOCALE_EN_NAME } from "./locales";
import resources, { LOCALE_EN_NAME, LOCALE_ZH_NAME } from "./locales";
i18n
.use(LanguageDetector)

View File

@@ -3,9 +3,8 @@
"common.button.cancel": "Cancel",
"common.button.copy": "Copy",
"common.button.delete": "Delete",
"common.button.disable": "Disable",
"common.button.edit": "Edit",
"common.button.enable": "Enable",
"common.button.more": "More",
"common.button.ok": "Ok",
"common.button.reset": "Reset",
"common.button.save": "Save",

View File

@@ -7,14 +7,9 @@
"workflow.action.edit": "Edit workflow",
"workflow.action.delete": "Delete workflow",
"workflow.action.delete.confirm": "Are you sure to delete this workflow?",
"workflow.action.discard": "Discard changes",
"workflow.action.discard.confirm": "Are you sure to discard your changes?",
"workflow.action.release": "Release",
"workflow.action.release.confirm": "Are you sure to release your changes?",
"workflow.action.release.failed.uncompleted": "Please complete the orchestration first",
"workflow.action.run": "Run",
"workflow.action.run.confirm": "There are unreleased changes, are you sure to run this workflow based on the latest released version?",
"workflow.action.enable": "Enable",
"workflow.action.enable.failed.uncompleted": "Please complete the orchestration and publish the changes first",
"workflow.action.disable": "Disable",
"workflow.props.name": "Name",
"workflow.props.description": "Description",
@@ -28,14 +23,28 @@
"workflow.props.created_at": "Created at",
"workflow.props.updated_at": "Updated at",
"workflow.detail.orchestration.tab": "Orchestration",
"workflow.detail.runs.tab": "History runs",
"workflow.new.title": "Create Workflow",
"workflow.new.subtitle": "Apply, deploy and notify with Workflows",
"workflow.new.templates.title": "Choose a Workflow Template",
"workflow.new.templates.template.standard.title": "Standard template",
"workflow.new.templates.template.standard.description": "A standard operating procedure that includes application, deployment, and notification steps.",
"workflow.new.templates.template.blank.title": "Blank template",
"workflow.new.templates.template.blank.description": "Customize all the contents of the workflow from the beginning.",
"workflow.detail.baseinfo.modal.title": "Workflow base information",
"workflow.detail.baseinfo.form.name.label": "Name",
"workflow.detail.baseinfo.form.name.placeholder": "Please enter name",
"workflow.detail.baseinfo.form.description.label": "Description",
"workflow.detail.baseinfo.form.description.placeholder": "Please enter description",
"workflow.detail.orchestration.tab": "Orchestration",
"workflow.detail.orchestration.action.discard": "Discard changes",
"workflow.detail.orchestration.action.discard.confirm": "Are you sure to discard your changes?",
"workflow.detail.orchestration.action.release": "Release",
"workflow.detail.orchestration.action.release.confirm": "Are you sure to release your changes?",
"workflow.detail.orchestration.action.release.failed.uncompleted": "Please complete the orchestration first",
"workflow.detail.orchestration.action.run": "Run",
"workflow.detail.orchestration.action.run.confirm": "There are unreleased changes, are you sure to run this workflow based on the latest released version?",
"workflow.detail.runs.tab": "History runs",
"workflow.common.certificate.label": "Certificate",
"workflow.node.setting.label": "Setting Node",

View File

@@ -3,9 +3,8 @@
"common.button.cancel": "取消",
"common.button.copy": "复制",
"common.button.delete": "刪除",
"common.button.disable": "禁用",
"common.button.edit": "编辑",
"common.button.enable": "启用",
"common.button.more": "更多",
"common.button.ok": "确定",
"common.button.reset": "重置",
"common.button.save": "保存",

View File

@@ -7,14 +7,9 @@
"workflow.action.edit": "编辑工作流",
"workflow.action.delete": "删除工作流",
"workflow.action.delete.confirm": "确定要删除此工作流吗?",
"workflow.action.discard": "撤销更改",
"workflow.action.discard.confirm": "确定要撤销更改并回退到最近一次发布的版本吗?",
"workflow.action.release": "发布更改",
"workflow.action.release.confirm": "确定要发布更改吗?",
"workflow.action.release.failed.uncompleted": "请先完成流程编排",
"workflow.action.run": "执行",
"workflow.action.run.confirm": "存在未发布的更改,确定要按最近一次发布的版本来执行此工作流吗?",
"workflow.action.enable": "启用",
"workflow.action.enable.failed.uncompleted": "请先完成流程编排并发布更改",
"workflow.action.disable": "禁用",
"workflow.props.name": "名称",
"workflow.props.description": "描述",
@@ -28,14 +23,28 @@
"workflow.props.created_at": "创建时间",
"workflow.props.updated_at": "更新时间",
"workflow.detail.orchestration.tab": "流程编排",
"workflow.detail.runs.tab": "执行历史",
"workflow.new.title": "新建工作流",
"workflow.new.subtitle": "使用工作流来申请证书、部署上传和发送通知",
"workflow.new.templates.title": "选择工作流模板",
"workflow.new.templates.template.standard.title": "标准模板",
"workflow.new.templates.template.standard.description": "一个包含申请 + 部署 + 通知步骤的标准工作流程。",
"workflow.new.templates.template.blank.title": "空白模板",
"workflow.new.templates.template.blank.description": "从零开始自定义工作流的任务内容。",
"workflow.detail.baseinfo.modal.title": "编辑基本信息",
"workflow.detail.baseinfo.form.name.label": "名称",
"workflow.detail.baseinfo.form.name.placeholder": "请输入工作流名称",
"workflow.detail.baseinfo.form.description.label": "描述",
"workflow.detail.baseinfo.form.description.placeholder": "请输入工作流描述",
"workflow.detail.orchestration.tab": "流程编排",
"workflow.detail.orchestration.action.discard": "撤销更改",
"workflow.detail.orchestration.action.discard.confirm": "确定要撤销更改并回退到最近一次发布的版本吗?",
"workflow.detail.orchestration.action.release": "发布更改",
"workflow.detail.orchestration.action.release.confirm": "确定要发布更改吗?",
"workflow.detail.orchestration.action.release.failed.uncompleted": "流程编排未完成,请检查是否有节点未设置",
"workflow.detail.orchestration.action.run": "执行",
"workflow.detail.orchestration.action.run.confirm": "此工作流存在未发布的更改,将以最近一次发布的版本为准,确定要继续执行吗?",
"workflow.detail.runs.tab": "执行历史",
"workflow.common.certificate.label": "证书",
"workflow.node.setting.label": "设置节点",