Showing
4 changed files
with
37 additions
and
37 deletions
| ... | ... | @@ -46,7 +46,7 @@ export const modeApiForm: FormSchema[] = [ |
| 46 | 46 | component: 'Input', |
| 47 | 47 | componentProps: { |
| 48 | 48 | maxLength: 32, |
| 49 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.name')}`, | |
| 49 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.name')}`, | |
| 50 | 50 | }, |
| 51 | 51 | }, |
| 52 | 52 | { |
| ... | ... | @@ -58,7 +58,7 @@ export const modeApiForm: FormSchema[] = [ |
| 58 | 58 | component: 'Input', |
| 59 | 59 | componentProps: { |
| 60 | 60 | maxLength: 255, |
| 61 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 61 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 62 | 62 | 'rule.dataflow.index.restEndpointUrlPattern' |
| 63 | 63 | )}`, |
| 64 | 64 | }, |
| ... | ... | @@ -70,7 +70,7 @@ export const modeApiForm: FormSchema[] = [ |
| 70 | 70 | colProps: { span: 12 }, |
| 71 | 71 | defaultValue: ApiFormPartialConfig.requestMethod, |
| 72 | 72 | componentProps: { |
| 73 | - placeholder: `${t('rule.dataflow.index.pleaseSelect')} ${t( | |
| 73 | + placeholder: `${t('rule.dataflow.index.pleaseSelect')}${t( | |
| 74 | 74 | 'rule.dataflow.index.requestMethod' |
| 75 | 75 | )}`, |
| 76 | 76 | options: ApiFormPartialConfig.getRequestMethod(), |
| ... | ... | @@ -106,7 +106,7 @@ export const modeApiForm: FormSchema[] = [ |
| 106 | 106 | component: 'InputNumber', |
| 107 | 107 | defaultValue: ApiFormPartialConfig.proxyPort, |
| 108 | 108 | componentProps: { |
| 109 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.proxyPort')}`, | |
| 109 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.proxyPort')}`, | |
| 110 | 110 | maxLength: 255, |
| 111 | 111 | min: 1, |
| 112 | 112 | max: 65535, |
| ... | ... | @@ -123,7 +123,7 @@ export const modeApiForm: FormSchema[] = [ |
| 123 | 123 | component: 'Input', |
| 124 | 124 | componentProps: { |
| 125 | 125 | maxLength: 255, |
| 126 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.proxyUser')}`, | |
| 126 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.proxyUser')}`, | |
| 127 | 127 | }, |
| 128 | 128 | ifShow: ({ values }) => { |
| 129 | 129 | return !!values.enableProxy; |
| ... | ... | @@ -137,7 +137,7 @@ export const modeApiForm: FormSchema[] = [ |
| 137 | 137 | component: 'InputPassword', |
| 138 | 138 | componentProps: { |
| 139 | 139 | maxLength: 255, |
| 140 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 140 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 141 | 141 | 'rule.dataflow.index.proxyPassword' |
| 142 | 142 | )}`, |
| 143 | 143 | }, |
| ... | ... | @@ -248,7 +248,7 @@ export const modeApiForm: FormSchema[] = [ |
| 248 | 248 | colProps: { span: 12 }, |
| 249 | 249 | defaultValue: ApiFormPartialConfig.type, |
| 250 | 250 | componentProps: { |
| 251 | - placeholder: `${t('rule.dataflow.index.pleaseSelect')} ${t( | |
| 251 | + placeholder: `${t('rule.dataflow.index.pleaseSelect')}${t( | |
| 252 | 252 | 'rule.dataflow.index.credentialsType' |
| 253 | 253 | )}`, |
| 254 | 254 | options: ApiFormPartialConfig.getType(), |
| ... | ... | @@ -270,7 +270,7 @@ export const modeApiForm: FormSchema[] = [ |
| 270 | 270 | required: true, |
| 271 | 271 | componentProps: { |
| 272 | 272 | maxLength: 255, |
| 273 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.username')}`, | |
| 273 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.username')}`, | |
| 274 | 274 | }, |
| 275 | 275 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
| 276 | 276 | }, |
| ... | ... | @@ -282,7 +282,7 @@ export const modeApiForm: FormSchema[] = [ |
| 282 | 282 | required: true, |
| 283 | 283 | componentProps: { |
| 284 | 284 | maxLength: 255, |
| 285 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.password')}`, | |
| 285 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.password')}`, | |
| 286 | 286 | }, |
| 287 | 287 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
| 288 | 288 | }, |
| ... | ... | @@ -293,7 +293,7 @@ export const modeApiForm: FormSchema[] = [ |
| 293 | 293 | component: 'InputPassword', |
| 294 | 294 | componentProps: { |
| 295 | 295 | maxLength: 255, |
| 296 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.password')}`, | |
| 296 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.password')}`, | |
| 297 | 297 | }, |
| 298 | 298 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), |
| 299 | 299 | }, |
| ... | ... | @@ -306,7 +306,7 @@ export const modeApiForm: FormSchema[] = [ |
| 306 | 306 | componentProps: { |
| 307 | 307 | maxLength: 255, |
| 308 | 308 | rows: 4, |
| 309 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.remark')}`, | |
| 309 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.remark')}`, | |
| 310 | 310 | }, |
| 311 | 311 | }, |
| 312 | 312 | ]; | ... | ... |
| ... | ... | @@ -49,7 +49,7 @@ export const modelKafkaForm: FormSchema[] = [ |
| 49 | 49 | component: 'Input', |
| 50 | 50 | componentProps: { |
| 51 | 51 | maxLength: 32, |
| 52 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.name')}`, | |
| 52 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.name')}`, | |
| 53 | 53 | }, |
| 54 | 54 | }, |
| 55 | 55 | { |
| ... | ... | @@ -61,7 +61,7 @@ export const modelKafkaForm: FormSchema[] = [ |
| 61 | 61 | defaultValue: KafkaFormPartialConfig.topicPattern, |
| 62 | 62 | componentProps: { |
| 63 | 63 | maxLength: 255, |
| 64 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 64 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 65 | 65 | 'rule.dataflow.index.topicPattern' |
| 66 | 66 | )}`, |
| 67 | 67 | }, |
| ... | ... | @@ -125,7 +125,7 @@ export const modelKafkaForm: FormSchema[] = [ |
| 125 | 125 | colProps: { span: 12 }, |
| 126 | 126 | defaultValue: KafkaFormPartialConfig.acks, |
| 127 | 127 | componentProps: { |
| 128 | - placeholder: `${t('rule.dataflow.index.pleaseSelect')} ${t('rule.dataflow.index.acks')}`, | |
| 128 | + placeholder: `${t('rule.dataflow.index.pleaseSelect')}${t('rule.dataflow.index.acks')}`, | |
| 129 | 129 | options: KafkaFormPartialConfig.getAcks(), |
| 130 | 130 | }, |
| 131 | 131 | }, |
| ... | ... | @@ -176,7 +176,7 @@ export const modelKafkaForm: FormSchema[] = [ |
| 176 | 176 | colProps: { span: 12 }, |
| 177 | 177 | defaultValue: KafkaFormPartialConfig.kafkaHeadersCharset, |
| 178 | 178 | componentProps: { |
| 179 | - placeholder: `${t('rule.dataflow.index.pleaseSelect')} ${t( | |
| 179 | + placeholder: `${t('rule.dataflow.index.pleaseSelect')}${t( | |
| 180 | 180 | 'rule.dataflow.index.characterSet' |
| 181 | 181 | )}`, |
| 182 | 182 | options: KafkaFormPartialConfig.getkafkaHeadersCharset(), |
| ... | ... | @@ -193,7 +193,7 @@ export const modelKafkaForm: FormSchema[] = [ |
| 193 | 193 | componentProps: { |
| 194 | 194 | maxLength: 255, |
| 195 | 195 | rows: 4, |
| 196 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.remark')}`, | |
| 196 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.remark')}`, | |
| 197 | 197 | }, |
| 198 | 198 | }, |
| 199 | 199 | ]; | ... | ... |
| ... | ... | @@ -34,7 +34,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 34 | 34 | required: true, |
| 35 | 35 | componentProps: { |
| 36 | 36 | maxLength: 32, |
| 37 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.name')}`, | |
| 37 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.name')}`, | |
| 38 | 38 | }, |
| 39 | 39 | }, |
| 40 | 40 | { |
| ... | ... | @@ -46,7 +46,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 46 | 46 | defaultValue: MqttFormPartialConfig.topicPattern, |
| 47 | 47 | componentProps: { |
| 48 | 48 | maxLength: 255, |
| 49 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 49 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 50 | 50 | 'rule.dataflow.index.topicPattern' |
| 51 | 51 | )}`, |
| 52 | 52 | }, |
| ... | ... | @@ -59,7 +59,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 59 | 59 | required: true, |
| 60 | 60 | componentProps: { |
| 61 | 61 | maxLength: 255, |
| 62 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.host')}`, | |
| 62 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.host')}`, | |
| 63 | 63 | }, |
| 64 | 64 | }, |
| 65 | 65 | { |
| ... | ... | @@ -71,7 +71,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 71 | 71 | required: true, |
| 72 | 72 | componentProps: { |
| 73 | 73 | maxLength: 255, |
| 74 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.port')}`, | |
| 74 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.port')}`, | |
| 75 | 75 | }, |
| 76 | 76 | }, |
| 77 | 77 | { |
| ... | ... | @@ -83,7 +83,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 83 | 83 | required: true, |
| 84 | 84 | componentProps: { |
| 85 | 85 | maxLength: 255, |
| 86 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 86 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 87 | 87 | 'rule.dataflow.index.connectTimeoutSec' |
| 88 | 88 | )}`, |
| 89 | 89 | }, |
| ... | ... | @@ -109,7 +109,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 109 | 109 | } |
| 110 | 110 | }, |
| 111 | 111 | maxLength: 255, |
| 112 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.clientId')}`, | |
| 112 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.clientId')}`, | |
| 113 | 113 | }; |
| 114 | 114 | }, |
| 115 | 115 | }, |
| ... | ... | @@ -147,7 +147,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 147 | 147 | componentProps: ({ formActionType }) => { |
| 148 | 148 | const { setFieldsValue } = formActionType; |
| 149 | 149 | return { |
| 150 | - placeholder: `${t('rule.dataflow.index.pleaseSelect')} ${t( | |
| 150 | + placeholder: `${t('rule.dataflow.index.pleaseSelect')}${t( | |
| 151 | 151 | 'rule.dataflow.index.credentialsType' |
| 152 | 152 | )}`, |
| 153 | 153 | options: MqttFormPartialConfig.getType(), |
| ... | ... | @@ -178,7 +178,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 178 | 178 | required: true, |
| 179 | 179 | componentProps: { |
| 180 | 180 | maxLength: 255, |
| 181 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.username')}`, | |
| 181 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.username')}`, | |
| 182 | 182 | }, |
| 183 | 183 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
| 184 | 184 | }, |
| ... | ... | @@ -189,7 +189,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 189 | 189 | component: 'InputPassword', |
| 190 | 190 | componentProps: { |
| 191 | 191 | maxLength: 255, |
| 192 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.password')}`, | |
| 192 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.password')}`, | |
| 193 | 193 | }, |
| 194 | 194 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
| 195 | 195 | }, |
| ... | ... | @@ -200,7 +200,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 200 | 200 | component: 'InputPassword', |
| 201 | 201 | componentProps: { |
| 202 | 202 | maxLength: 255, |
| 203 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.password')}`, | |
| 203 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.password')}`, | |
| 204 | 204 | }, |
| 205 | 205 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), |
| 206 | 206 | }, |
| ... | ... | @@ -212,7 +212,7 @@ export const modeMqttForm: FormSchema[] = [ |
| 212 | 212 | componentProps: { |
| 213 | 213 | maxLength: 255, |
| 214 | 214 | rows: 4, |
| 215 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.remark')}`, | |
| 215 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.remark')}`, | |
| 216 | 216 | }, |
| 217 | 217 | }, |
| 218 | 218 | ]; | ... | ... |
| ... | ... | @@ -38,7 +38,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 38 | 38 | component: 'Input', |
| 39 | 39 | componentProps: { |
| 40 | 40 | maxLength: 32, |
| 41 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.name')}`, | |
| 41 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.name')}`, | |
| 42 | 42 | }, |
| 43 | 43 | }, |
| 44 | 44 | { |
| ... | ... | @@ -49,7 +49,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 49 | 49 | defaultValue: '', |
| 50 | 50 | componentProps: { |
| 51 | 51 | maxLength: 255, |
| 52 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 52 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 53 | 53 | 'rule.dataflow.index.exchangeNamePattern' |
| 54 | 54 | )}`, |
| 55 | 55 | }, |
| ... | ... | @@ -62,7 +62,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 62 | 62 | component: 'Input', |
| 63 | 63 | componentProps: { |
| 64 | 64 | maxLength: 255, |
| 65 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 65 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 66 | 66 | 'rule.dataflow.index.routingKeyPattern' |
| 67 | 67 | )}`, |
| 68 | 68 | }, |
| ... | ... | @@ -74,7 +74,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 74 | 74 | colProps: { span: 12 }, |
| 75 | 75 | defaultValue: null, |
| 76 | 76 | componentProps: { |
| 77 | - placeholder: `${t('rule.dataflow.index.pleaseSelect')} ${t( | |
| 77 | + placeholder: `${t('rule.dataflow.index.pleaseSelect')}${t( | |
| 78 | 78 | 'rule.dataflow.index.routingKeyPattern' |
| 79 | 79 | )}`, |
| 80 | 80 | options: RabbitMqFormPartialConfig.getMessageProperties(), |
| ... | ... | @@ -101,7 +101,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 101 | 101 | required: true, |
| 102 | 102 | componentProps: { |
| 103 | 103 | maxLength: 255, |
| 104 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.port')}`, | |
| 104 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.port')}`, | |
| 105 | 105 | }, |
| 106 | 106 | }, |
| 107 | 107 | { |
| ... | ... | @@ -123,7 +123,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 123 | 123 | defaultValue: RabbitMqFormPartialConfig.username, |
| 124 | 124 | componentProps: { |
| 125 | 125 | maxLength: 255, |
| 126 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.username')}`, | |
| 126 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.username')}`, | |
| 127 | 127 | }, |
| 128 | 128 | }, |
| 129 | 129 | { |
| ... | ... | @@ -134,7 +134,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 134 | 134 | defaultValue: RabbitMqFormPartialConfig.password, |
| 135 | 135 | componentProps: { |
| 136 | 136 | maxLength: 255, |
| 137 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.password')}`, | |
| 137 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.password')}`, | |
| 138 | 138 | }, |
| 139 | 139 | }, |
| 140 | 140 | { |
| ... | ... | @@ -153,7 +153,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 153 | 153 | defaultValue: RabbitMqFormPartialConfig.connectionTimeout, |
| 154 | 154 | componentProps: { |
| 155 | 155 | maxLength: 255, |
| 156 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 156 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 157 | 157 | 'rule.dataflow.index.connectionTimeout' |
| 158 | 158 | )}`, |
| 159 | 159 | }, |
| ... | ... | @@ -166,7 +166,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 166 | 166 | defaultValue: RabbitMqFormPartialConfig.handshakeTimeout, |
| 167 | 167 | componentProps: { |
| 168 | 168 | maxLength: 255, |
| 169 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t( | |
| 169 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t( | |
| 170 | 170 | 'rule.dataflow.index.handshakeTimeout' |
| 171 | 171 | )}`, |
| 172 | 172 | }, |
| ... | ... | @@ -186,7 +186,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
| 186 | 186 | componentProps: { |
| 187 | 187 | maxLength: 255, |
| 188 | 188 | rows: 4, |
| 189 | - placeholder: `${t('rule.dataflow.index.pleaseEnter')} ${t('rule.dataflow.index.remark')}`, | |
| 189 | + placeholder: `${t('rule.dataflow.index.pleaseEnter')}${t('rule.dataflow.index.remark')}`, | |
| 190 | 190 | }, |
| 191 | 191 | }, |
| 192 | 192 | ]; | ... | ... |