Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-10-21 09:43:07 +00:00
commit 5d8ba245a9

View File

@ -63,7 +63,7 @@ export default class extends Instruction {
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'WorkflowVariableInput', 'x-component': 'WorkflowVariableInput',
'x-component-props': { 'x-component-props': {
useTypedConstant: ['string'], useTypedConstant: [['string', { placeholder: 'smtp.example.com' }]],
}, },
}, },
}, },
@ -140,12 +140,12 @@ export default class extends Instruction {
properties: { properties: {
'auth.user': { 'auth.user': {
type: 'string', type: 'string',
required: true, // required: true,
title: `{{t("User", { ns: "${NAMESPACE}" })}}`, title: `{{t("User", { ns: "${NAMESPACE}" })}}`,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'WorkflowVariableInput', 'x-component': 'WorkflowVariableInput',
'x-component-props': { 'x-component-props': {
useTypedConstant: ['string'], useTypedConstant: [['string', { placeholder: 'example@domain.com' }]],
}, },
}, },
}, },
@ -156,7 +156,7 @@ export default class extends Instruction {
properties: { properties: {
'auth.pass': { 'auth.pass': {
type: 'string', type: 'string',
required: true, // required: true,
title: `{{t("Password", { ns: "${NAMESPACE}" })}}`, title: `{{t("Password", { ns: "${NAMESPACE}" })}}`,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'WorkflowVariableInput', 'x-component': 'WorkflowVariableInput',
@ -179,7 +179,7 @@ export default class extends Instruction {
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'WorkflowVariableInput', 'x-component': 'WorkflowVariableInput',
'x-component-props': { 'x-component-props': {
useTypedConstant: ['string'], useTypedConstant: [['string', { placeholder: 'noreply <example@domain.com>' }]],
}, },
}, },
to: { to: {
@ -308,7 +308,7 @@ export default class extends Instruction {
}, },
subject: { subject: {
type: 'string', type: 'string',
required: true, // required: true,
title: `{{t("Subject", { ns: "${NAMESPACE}" })}}`, title: `{{t("Subject", { ns: "${NAMESPACE}" })}}`,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'WorkflowVariableTextArea', 'x-component': 'WorkflowVariableTextArea',
@ -326,7 +326,7 @@ export default class extends Instruction {
}, },
html: { html: {
type: 'string', type: 'string',
required: true, // required: true,
title: `{{t("Content", { ns: "${NAMESPACE}" })}}`, title: `{{t("Content", { ns: "${NAMESPACE}" })}}`,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-decorator-props': {}, 'x-decorator-props': {},
@ -350,7 +350,7 @@ export default class extends Instruction {
}, },
text: { text: {
type: 'string', type: 'string',
required: true, // required: true,
title: `{{t("Content", { ns: "${NAMESPACE}" })}}`, title: `{{t("Content", { ns: "${NAMESPACE}" })}}`,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-decorator-props': {}, 'x-decorator-props': {},