refactor: webhook names (#1220)

Reviewed-on: daoyoucloud/tachybase#1220
This commit is contained in:
sealday 2024-06-20 18:52:04 +08:00
parent 6e3c2c9251
commit f651f460d2
3 changed files with 18 additions and 5 deletions

View File

@ -14,7 +14,7 @@ export const collection: CollectionOptions = {
name: 'name',
interface: 'input',
uiSchema: {
title: tval('name'),
title: tval('Name'),
type: 'string',
'x-component': 'Input',
required: true,
@ -27,8 +27,9 @@ export const collection: CollectionOptions = {
uiSchema: {
title: tval('Enabled'),
type: 'string',
required: true,
enum: [
{ label: tval('On'), value: true, color: '#52c41a' },
{ label: tval('On'), value: true },
{ label: tval('Off'), value: false },
],
'x-component': 'Radio.Group',
@ -41,7 +42,7 @@ export const collection: CollectionOptions = {
name: 'workflowKey',
interface: 'select',
uiSchema: {
title: tval('name'),
title: tval('Workflow'),
type: 'string',
'x-component': 'WorkflowSelect',
'x-component-props': {
@ -59,6 +60,7 @@ export const collection: CollectionOptions = {
uiSchema: {
title: tval('Type'),
type: 'string',
required: true,
enum: [
{ label: tval('Code'), value: 'code' },
{ label: tval('Plugin'), value: 'plugin', disabled: true },
@ -300,6 +302,10 @@ const schema: ISchema = {
type: 'string',
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
'x-decorator-props': {
tooltip:
'ctx.request\nctx.body\nlib.JSON\nlib.Math\nlib.dayjs',
},
'x-collection-field': 'webhooks.code',
'x-component-props': {},
},
@ -622,6 +628,10 @@ const schema: ISchema = {
type: 'string',
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
'x-decorator-props': {
tooltip:
'ctx.request\nctx.body\nlib.JSON\nlib.Math\nlib.dayjs',
},
'x-collection-field': 'webhooks.code',
'x-component-props': {},
},

View File

@ -63,6 +63,7 @@
"Can not delete": "Can not delete",
"Canceled": "Canceled",
"Changed fields": "Changed fields",
"Code": "Code",
"Collaboratively": "Collaboratively",
"Collection event": "Collection event",
"Collection operations": "Collection operations",
@ -241,6 +242,7 @@
"Triggered at": "Triggered at",
"Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.",
"True": "True",
"Type": "Type",
"URL": "URL",
"Unconfigured": "Unconfigured",
"Unprocessed": "Unprocessed",

View File

@ -81,6 +81,7 @@
"Changed fields": "发生变动的字段",
"Clear all executions": "清除所有执行记录",
"Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "清空执行记录不会重置执行次数,且执行中的也不会被删除,确定要删除所有执行记录吗?",
"Code": "代码",
"Collaboratively": "协作处理",
"Collection event": "数据表事件",
"Collection operations": "数据表操作",
@ -106,8 +107,7 @@
"Custom form": "自定义表单",
"Data of associated collection": "关联数据表数据",
"Data of collection": "数据表数据",
"Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。",
"Data record": "数据记录",
"Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。", "Data record": "数据记录",
"Data will be updated": "更新的数据",
"Date variables": "日期变量",
"Days": "天",
@ -309,6 +309,7 @@
"Triggered when an approval request is initiated through an action button or API. Dedicated to the approval process, with exclusive approval node and block for managing documents and tracking processing processes.": "通过操作按钮或 API 发起审批申请时触发。专用于审批流程,有专属的审批节点和区块用于管理单据和追踪处理过程。",
"Triggers after specific operations on data are submitted, such as create, update, delete, etc., or directly submitting a record to the workflow.": "在对数据的特定操作提交后触发,如创建、更新、删除等,或直接提交一条数据至工作流。",
"True": "真",
"Type": "类型",
"URL": "地址",
"Unassigned fields will be set to default values, and those without default values will be set to null.": "未被赋值的字段将被设置为默认值,没有默认值的设置为空值。",
"Unconfigured": "未配置",