|
|
@@ -248,6 +248,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入corpId',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
corpSecret: {
|
|
|
@@ -271,6 +275,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入corpSecret',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
appId: {
|
|
|
@@ -294,6 +302,12 @@ const Detail = observer(() => {
|
|
|
title: 'AppSecret',
|
|
|
'x-component': 'Input',
|
|
|
required: true,
|
|
|
+ 'x-validator': [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入secret',
|
|
|
+ },
|
|
|
+ ],
|
|
|
'x-decorator': 'FormItem',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入secret',
|
|
|
@@ -342,6 +356,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入AppKey',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
appSecret: {
|
|
|
@@ -357,6 +375,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入AppSecret',
|
|
|
+ },
|
|
|
],
|
|
|
'x-reactions': {
|
|
|
dependencies: ['provider'],
|
|
|
@@ -375,6 +397,12 @@ const Detail = observer(() => {
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入webhook',
|
|
|
},
|
|
|
+ 'x-validator': [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入webhook',
|
|
|
+ },
|
|
|
+ ],
|
|
|
'x-reactions': {
|
|
|
dependencies: ['provider'],
|
|
|
fulfill: {
|
|
|
@@ -422,6 +450,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入accessKeyId',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
secret: {
|
|
|
@@ -437,6 +469,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入secret',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
@@ -472,6 +508,12 @@ const Detail = observer(() => {
|
|
|
width: '180px',
|
|
|
},
|
|
|
},
|
|
|
+ 'x-validator': [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入服务器地址',
|
|
|
+ },
|
|
|
+ ],
|
|
|
'x-component': 'FAutoComplete',
|
|
|
'x-decorator': 'FormItem',
|
|
|
enum: [
|
|
|
@@ -499,6 +541,10 @@ const Detail = observer(() => {
|
|
|
max: 65535,
|
|
|
message: '请输入1~65535之间的正整数',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入端口',
|
|
|
+ },
|
|
|
],
|
|
|
'x-component': 'NumberPicker',
|
|
|
'x-decorator': 'FormItem',
|
|
|
@@ -545,6 +591,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入发件人',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
username: {
|
|
|
@@ -560,6 +610,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入用户名',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
password: {
|
|
|
@@ -575,6 +629,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入密码',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
@@ -597,6 +655,12 @@ const Detail = observer(() => {
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入Webhook',
|
|
|
},
|
|
|
+ 'x-validator': [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入Webhook',
|
|
|
+ },
|
|
|
+ ],
|
|
|
'x-component': 'Input',
|
|
|
'x-decorator': 'FormItem',
|
|
|
},
|
|
|
@@ -627,6 +691,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入KEY',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
@@ -646,6 +714,10 @@ const Detail = observer(() => {
|
|
|
max: 64,
|
|
|
message: '最多可输入64个字符',
|
|
|
},
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入VALUE',
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
},
|