Showing
1 changed file
with
65 additions
and
102 deletions
| 1 | import { FormSchema } from '/@/components/Form'; | 1 | import { FormSchema } from '/@/components/Form'; |
| 2 | import { findDictItemByCode } from '/@/api/system/dict'; | 2 | import { findDictItemByCode } from '/@/api/system/dict'; |
| 3 | import { ref } from 'vue'; | 3 | import { ref } from 'vue'; |
| 4 | -// import { useMessage } from '/@/hooks/web/useMessage'; | ||
| 5 | import { isExistDataManagerNameApi } from '/@/api/datamanager/dataManagerApi'; | 4 | import { isExistDataManagerNameApi } from '/@/api/datamanager/dataManagerApi'; |
| 6 | -// const { createMessage } = useMessage(); | ||
| 7 | 5 | ||
| 8 | const typeValue = ref(''); | 6 | const typeValue = ref(''); |
| 9 | - | ||
| 10 | export enum CredentialsEnum { | 7 | export enum CredentialsEnum { |
| 11 | IS_ANONYMOUS = 'anonymous', | 8 | IS_ANONYMOUS = 'anonymous', |
| 12 | IS_BASIC = 'basic', | 9 | IS_BASIC = 'basic', |
| 13 | IS_PEM = 'pem', | 10 | IS_PEM = 'pem', |
| 14 | } | 11 | } |
| 15 | - | ||
| 16 | export const isBasic = (type: string) => { | 12 | export const isBasic = (type: string) => { |
| 17 | return type === CredentialsEnum.IS_BASIC; | 13 | return type === CredentialsEnum.IS_BASIC; |
| 18 | }; | 14 | }; |
| @@ -55,31 +51,6 @@ export const modeForm: FormSchema[] = [ | @@ -55,31 +51,6 @@ export const modeForm: FormSchema[] = [ | ||
| 55 | }, | 51 | }, |
| 56 | ]; | 52 | ]; |
| 57 | 53 | ||
| 58 | -export const modeApiInseretKeyAndValueForm: FormSchema[] = [ | ||
| 59 | - { | ||
| 60 | - field: 'key', | ||
| 61 | - label: 'Header', | ||
| 62 | - colProps: { span: 12 }, | ||
| 63 | - required: true, | ||
| 64 | - component: 'Input', | ||
| 65 | - componentProps: { | ||
| 66 | - maxLength: 255, | ||
| 67 | - placeholder: '请输入Header', | ||
| 68 | - }, | ||
| 69 | - }, | ||
| 70 | - { | ||
| 71 | - field: 'value', | ||
| 72 | - label: 'Value', | ||
| 73 | - colProps: { span: 12 }, | ||
| 74 | - required: true, | ||
| 75 | - component: 'Input', | ||
| 76 | - componentProps: { | ||
| 77 | - maxLength: 255, | ||
| 78 | - placeholder: '请输入Value', | ||
| 79 | - }, | ||
| 80 | - }, | ||
| 81 | -]; | ||
| 82 | - | ||
| 83 | export const modeKafkaForm: FormSchema[] = [ | 54 | export const modeKafkaForm: FormSchema[] = [ |
| 84 | { | 55 | { |
| 85 | field: 'name', | 56 | field: 'name', |
| @@ -117,7 +88,7 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -117,7 +88,7 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 117 | defaultValue: 'my-topic', | 88 | defaultValue: 'my-topic', |
| 118 | componentProps: { | 89 | componentProps: { |
| 119 | maxLength: 255, | 90 | maxLength: 255, |
| 120 | - placeholder: '请输入Topic pattern', | 91 | + placeholder: '请输入消息次数', |
| 121 | }, | 92 | }, |
| 122 | }, | 93 | }, |
| 123 | { | 94 | { |
| @@ -140,7 +111,6 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -140,7 +111,6 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 140 | defaultValue: 0, | 111 | defaultValue: 0, |
| 141 | componentProps: { | 112 | componentProps: { |
| 142 | maxLength: 255, | 113 | maxLength: 255, |
| 143 | - placeholder: '请输入Automatically retry times if fails', | ||
| 144 | }, | 114 | }, |
| 145 | }, | 115 | }, |
| 146 | { | 116 | { |
| @@ -151,7 +121,6 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -151,7 +121,6 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 151 | defaultValue: 16384, | 121 | defaultValue: 16384, |
| 152 | componentProps: { | 122 | componentProps: { |
| 153 | maxLength: 255, | 123 | maxLength: 255, |
| 154 | - placeholder: '请输入Produces batch size in bytes', | ||
| 155 | }, | 124 | }, |
| 156 | }, | 125 | }, |
| 157 | { | 126 | { |
| @@ -162,7 +131,6 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -162,7 +131,6 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 162 | defaultValue: 0, | 131 | defaultValue: 0, |
| 163 | componentProps: { | 132 | componentProps: { |
| 164 | maxLength: 255, | 133 | maxLength: 255, |
| 165 | - placeholder: '请输入Time to buffer locally(ms)', | ||
| 166 | }, | 134 | }, |
| 167 | }, | 135 | }, |
| 168 | { | 136 | { |
| @@ -173,7 +141,6 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -173,7 +141,6 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 173 | defaultValue: 33554432, | 141 | defaultValue: 33554432, |
| 174 | componentProps: { | 142 | componentProps: { |
| 175 | maxLength: 255, | 143 | maxLength: 255, |
| 176 | - placeholder: '请输入Client buffer max size in bytes', | ||
| 177 | }, | 144 | }, |
| 178 | }, | 145 | }, |
| 179 | { | 146 | { |
| @@ -183,7 +150,7 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -183,7 +150,7 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 183 | colProps: { span: 12 }, | 150 | colProps: { span: 12 }, |
| 184 | defaultValue: '-1', | 151 | defaultValue: '-1', |
| 185 | componentProps: { | 152 | componentProps: { |
| 186 | - placeholder: '请选择Number of acknowledgments', | 153 | + placeholder: '请选择响应码', |
| 187 | options: [ | 154 | options: [ |
| 188 | { label: 'all', value: 'all' }, | 155 | { label: 'all', value: 'all' }, |
| 189 | { label: '-1', value: '-1' }, | 156 | { label: '-1', value: '-1' }, |
| @@ -224,7 +191,7 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -224,7 +191,7 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 224 | }, | 191 | }, |
| 225 | { | 192 | { |
| 226 | field: 'addMetadataKeyValuesAsKafkaHeaders', | 193 | field: 'addMetadataKeyValuesAsKafkaHeaders', |
| 227 | - label: '', | 194 | + label: '是否启用', |
| 228 | colProps: { span: 12 }, | 195 | colProps: { span: 12 }, |
| 229 | component: 'Checkbox', | 196 | component: 'Checkbox', |
| 230 | renderComponentContent: '将消息的元数据以键值对的方式添加到Kafka消息头中', | 197 | renderComponentContent: '将消息的元数据以键值对的方式添加到Kafka消息头中', |
| @@ -232,12 +199,12 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -232,12 +199,12 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 232 | { | 199 | { |
| 233 | field: 'kafkaHeadersCharset', | 200 | field: 'kafkaHeadersCharset', |
| 234 | component: 'Select', | 201 | component: 'Select', |
| 235 | - label: 'Charset', | 202 | + label: '字符集', |
| 236 | required: true, | 203 | required: true, |
| 237 | colProps: { span: 12 }, | 204 | colProps: { span: 12 }, |
| 238 | defaultValue: 'UTF-8', | 205 | defaultValue: 'UTF-8', |
| 239 | componentProps: { | 206 | componentProps: { |
| 240 | - placeholder: '请选择Charset encoding', | 207 | + placeholder: '请选择字符集编码', |
| 241 | options: [ | 208 | options: [ |
| 242 | { label: 'US-ASCII', value: 'US' }, | 209 | { label: 'US-ASCII', value: 'US' }, |
| 243 | { label: 'ISO-8859-1', value: 'ISO-8859-1' }, | 210 | { label: 'ISO-8859-1', value: 'ISO-8859-1' }, |
| @@ -277,7 +244,7 @@ export const modeMqttForm: FormSchema[] = [ | @@ -277,7 +244,7 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 277 | }, | 244 | }, |
| 278 | { | 245 | { |
| 279 | field: 'topicPattern', | 246 | field: 'topicPattern', |
| 280 | - label: 'Topic', | 247 | + label: '主题模式', |
| 281 | colProps: { span: 12 }, | 248 | colProps: { span: 12 }, |
| 282 | required: true, | 249 | required: true, |
| 283 | component: 'Input', | 250 | component: 'Input', |
| @@ -289,7 +256,7 @@ export const modeMqttForm: FormSchema[] = [ | @@ -289,7 +256,7 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 289 | }, | 256 | }, |
| 290 | { | 257 | { |
| 291 | field: 'host', | 258 | field: 'host', |
| 292 | - label: 'Host', | 259 | + label: '主机', |
| 293 | colProps: { span: 12 }, | 260 | colProps: { span: 12 }, |
| 294 | component: 'Input', | 261 | component: 'Input', |
| 295 | componentProps: { | 262 | componentProps: { |
| @@ -299,7 +266,7 @@ export const modeMqttForm: FormSchema[] = [ | @@ -299,7 +266,7 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 299 | }, | 266 | }, |
| 300 | { | 267 | { |
| 301 | field: 'port', | 268 | field: 'port', |
| 302 | - label: 'Port', | 269 | + label: '端口', |
| 303 | colProps: { span: 12 }, | 270 | colProps: { span: 12 }, |
| 304 | component: 'InputNumber', | 271 | component: 'InputNumber', |
| 305 | defaultValue: 1883, | 272 | defaultValue: 1883, |
| @@ -311,7 +278,7 @@ export const modeMqttForm: FormSchema[] = [ | @@ -311,7 +278,7 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 311 | }, | 278 | }, |
| 312 | { | 279 | { |
| 313 | field: 'connectTimeoutSec', | 280 | field: 'connectTimeoutSec', |
| 314 | - label: 'Connection', | 281 | + label: '连接超时(秒)', |
| 315 | colProps: { span: 12 }, | 282 | colProps: { span: 12 }, |
| 316 | component: 'InputNumber', | 283 | component: 'InputNumber', |
| 317 | defaultValue: 10, | 284 | defaultValue: 10, |
| @@ -323,7 +290,7 @@ export const modeMqttForm: FormSchema[] = [ | @@ -323,7 +290,7 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 323 | }, | 290 | }, |
| 324 | { | 291 | { |
| 325 | field: 'clientId', | 292 | field: 'clientId', |
| 326 | - label: 'Client ID', | 293 | + label: '客户端ID', |
| 327 | colProps: { span: 12 }, | 294 | colProps: { span: 12 }, |
| 328 | component: 'Input', | 295 | component: 'Input', |
| 329 | componentProps: ({ formActionType }) => { | 296 | componentProps: ({ formActionType }) => { |
| @@ -353,29 +320,29 @@ export const modeMqttForm: FormSchema[] = [ | @@ -353,29 +320,29 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 353 | colProps: { span: 12 }, | 320 | colProps: { span: 12 }, |
| 354 | defaultValue: false, | 321 | defaultValue: false, |
| 355 | component: 'Checkbox', | 322 | component: 'Checkbox', |
| 356 | - renderComponentContent: 'Add Service ID as suffix to Client ID', | 323 | + renderComponentContent: '将服务ID作为后缀添加到客户端ID', |
| 357 | show: false, | 324 | show: false, |
| 358 | }, | 325 | }, |
| 359 | { | 326 | { |
| 360 | field: 'cleanSession', | 327 | field: 'cleanSession', |
| 361 | - label: 'Clean', | 328 | + label: '是否启用', |
| 362 | colProps: { span: 12 }, | 329 | colProps: { span: 12 }, |
| 363 | defaultValue: true, | 330 | defaultValue: true, |
| 364 | component: 'Checkbox', | 331 | component: 'Checkbox', |
| 365 | - renderComponentContent: 'Clean session', | 332 | + renderComponentContent: '清除会话', |
| 366 | }, | 333 | }, |
| 367 | { | 334 | { |
| 368 | field: 'ssl', | 335 | field: 'ssl', |
| 369 | - label: 'Enable', | 336 | + label: '是否启用', |
| 370 | colProps: { span: 12 }, | 337 | colProps: { span: 12 }, |
| 371 | defaultValue: false, | 338 | defaultValue: false, |
| 372 | component: 'Checkbox', | 339 | component: 'Checkbox', |
| 373 | - renderComponentContent: 'Enable SSL', | 340 | + renderComponentContent: '启用SSL', |
| 374 | }, | 341 | }, |
| 375 | { | 342 | { |
| 376 | field: 'type', | 343 | field: 'type', |
| 377 | component: 'Select', | 344 | component: 'Select', |
| 378 | - label: 'type', | 345 | + label: '凭据类型', |
| 379 | colProps: { span: 12 }, | 346 | colProps: { span: 12 }, |
| 380 | defaultValue: 'anonymous', | 347 | defaultValue: 'anonymous', |
| 381 | componentProps: { | 348 | componentProps: { |
| @@ -460,12 +427,12 @@ export const modeMqttForm: FormSchema[] = [ | @@ -460,12 +427,12 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 460 | }, | 427 | }, |
| 461 | { | 428 | { |
| 462 | field: 'password', | 429 | field: 'password', |
| 463 | - label: 'Password', | 430 | + label: '密码', |
| 464 | colProps: { span: 12 }, | 431 | colProps: { span: 12 }, |
| 465 | component: 'InputPassword', | 432 | component: 'InputPassword', |
| 466 | componentProps: { | 433 | componentProps: { |
| 467 | maxLength: 255, | 434 | maxLength: 255, |
| 468 | - placeholder: '请输入Password', | 435 | + placeholder: '请输入密码', |
| 469 | }, | 436 | }, |
| 470 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), | 437 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), |
| 471 | }, | 438 | }, |
| @@ -511,31 +478,31 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -511,31 +478,31 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 511 | }, | 478 | }, |
| 512 | { | 479 | { |
| 513 | field: 'exchangeNamePattern', | 480 | field: 'exchangeNamePattern', |
| 514 | - label: 'Exchange', | 481 | + label: '交换名称模式', |
| 515 | colProps: { span: 12 }, | 482 | colProps: { span: 12 }, |
| 516 | component: 'Input', | 483 | component: 'Input', |
| 517 | componentProps: { | 484 | componentProps: { |
| 518 | maxLength: 255, | 485 | maxLength: 255, |
| 519 | - placeholder: '请输入pattern', | 486 | + placeholder: '请输入模式', |
| 520 | }, | 487 | }, |
| 521 | }, | 488 | }, |
| 522 | { | 489 | { |
| 523 | field: 'routingKeyPattern', | 490 | field: 'routingKeyPattern', |
| 524 | - label: 'Routing', | 491 | + label: '路由密钥模式', |
| 525 | colProps: { span: 12 }, | 492 | colProps: { span: 12 }, |
| 526 | component: 'Input', | 493 | component: 'Input', |
| 527 | componentProps: { | 494 | componentProps: { |
| 528 | maxLength: 255, | 495 | maxLength: 255, |
| 529 | - placeholder: '请输入pattern', | 496 | + placeholder: '请输入模式', |
| 530 | }, | 497 | }, |
| 531 | }, | 498 | }, |
| 532 | { | 499 | { |
| 533 | field: 'messageProperties', | 500 | field: 'messageProperties', |
| 534 | component: 'Select', | 501 | component: 'Select', |
| 535 | - label: 'Message', | 502 | + label: '消息属性', |
| 536 | colProps: { span: 12 }, | 503 | colProps: { span: 12 }, |
| 537 | componentProps: { | 504 | componentProps: { |
| 538 | - placeholder: '请选择Message properties', | 505 | + placeholder: '请选择消息属性', |
| 539 | options: [ | 506 | options: [ |
| 540 | { label: 'BASIC', value: 'BASIC' }, | 507 | { label: 'BASIC', value: 'BASIC' }, |
| 541 | { label: 'TEXT_PLAIN', value: 'TEXT_PLAIN' }, | 508 | { label: 'TEXT_PLAIN', value: 'TEXT_PLAIN' }, |
| @@ -548,7 +515,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -548,7 +515,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 548 | }, | 515 | }, |
| 549 | { | 516 | { |
| 550 | field: 'host', | 517 | field: 'host', |
| 551 | - label: 'Host', | 518 | + label: '主机', |
| 552 | colProps: { span: 12 }, | 519 | colProps: { span: 12 }, |
| 553 | component: 'Input', | 520 | component: 'Input', |
| 554 | required: true, | 521 | required: true, |
| @@ -560,7 +527,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -560,7 +527,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 560 | }, | 527 | }, |
| 561 | { | 528 | { |
| 562 | field: 'port', | 529 | field: 'port', |
| 563 | - label: 'Port', | 530 | + label: '端口', |
| 564 | colProps: { span: 12 }, | 531 | colProps: { span: 12 }, |
| 565 | component: 'InputNumber', | 532 | component: 'InputNumber', |
| 566 | defaultValue: 5672, | 533 | defaultValue: 5672, |
| @@ -572,7 +539,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -572,7 +539,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 572 | }, | 539 | }, |
| 573 | { | 540 | { |
| 574 | field: 'virtualHost', | 541 | field: 'virtualHost', |
| 575 | - label: 'Virtual', | 542 | + label: '虚拟端口', |
| 576 | colProps: { span: 12 }, | 543 | colProps: { span: 12 }, |
| 577 | component: 'Input', | 544 | component: 'Input', |
| 578 | defaultValue: '/', | 545 | defaultValue: '/', |
| @@ -583,36 +550,36 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -583,36 +550,36 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 583 | }, | 550 | }, |
| 584 | { | 551 | { |
| 585 | field: 'username', | 552 | field: 'username', |
| 586 | - label: 'Username', | 553 | + label: '用户名', |
| 587 | colProps: { span: 12 }, | 554 | colProps: { span: 12 }, |
| 588 | component: 'Input', | 555 | component: 'Input', |
| 589 | defaultValue: 'guest', | 556 | defaultValue: 'guest', |
| 590 | componentProps: { | 557 | componentProps: { |
| 591 | maxLength: 255, | 558 | maxLength: 255, |
| 592 | - placeholder: '请输入Username', | 559 | + placeholder: '请输入用户名', |
| 593 | }, | 560 | }, |
| 594 | }, | 561 | }, |
| 595 | { | 562 | { |
| 596 | field: 'password', | 563 | field: 'password', |
| 597 | - label: 'Password', | 564 | + label: '密码', |
| 598 | colProps: { span: 12 }, | 565 | colProps: { span: 12 }, |
| 599 | component: 'InputPassword', | 566 | component: 'InputPassword', |
| 600 | defaultValue: 'guest', | 567 | defaultValue: 'guest', |
| 601 | componentProps: { | 568 | componentProps: { |
| 602 | maxLength: 255, | 569 | maxLength: 255, |
| 603 | - placeholder: '请输入Password', | 570 | + placeholder: '请输入密码', |
| 604 | }, | 571 | }, |
| 605 | }, | 572 | }, |
| 606 | { | 573 | { |
| 607 | field: 'automaticRecoveryEnabled', | 574 | field: 'automaticRecoveryEnabled', |
| 608 | - label: ' Automatic', | 575 | + label: '是否启用', |
| 609 | colProps: { span: 12 }, | 576 | colProps: { span: 12 }, |
| 610 | component: 'Checkbox', | 577 | component: 'Checkbox', |
| 611 | - renderComponentContent: 'Automatic recovery', | 578 | + renderComponentContent: '自动恢复', |
| 612 | }, | 579 | }, |
| 613 | { | 580 | { |
| 614 | field: 'connectionTimeout', | 581 | field: 'connectionTimeout', |
| 615 | - label: 'Connect', | 582 | + label: '连接超时(毫秒)', |
| 616 | colProps: { span: 12 }, | 583 | colProps: { span: 12 }, |
| 617 | component: 'InputNumber', | 584 | component: 'InputNumber', |
| 618 | defaultValue: 60000, | 585 | defaultValue: 60000, |
| @@ -623,7 +590,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -623,7 +590,7 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 623 | }, | 590 | }, |
| 624 | { | 591 | { |
| 625 | field: 'handshakeTimeout', | 592 | field: 'handshakeTimeout', |
| 626 | - label: 'Handshake', | 593 | + label: '握手超时(毫秒)', |
| 627 | colProps: { span: 12 }, | 594 | colProps: { span: 12 }, |
| 628 | component: 'InputNumber', | 595 | component: 'InputNumber', |
| 629 | defaultValue: 10000, | 596 | defaultValue: 10000, |
| @@ -697,7 +664,7 @@ export const modeApiForm: FormSchema[] = [ | @@ -697,7 +664,7 @@ export const modeApiForm: FormSchema[] = [ | ||
| 697 | }, | 664 | }, |
| 698 | { | 665 | { |
| 699 | field: 'restEndpointUrlPattern', | 666 | field: 'restEndpointUrlPattern', |
| 700 | - label: 'Endpoint', | 667 | + label: '端点URL模式', |
| 701 | colProps: { span: 12 }, | 668 | colProps: { span: 12 }, |
| 702 | required: true, | 669 | required: true, |
| 703 | defaultValue: 'http://localhost/api', | 670 | defaultValue: 'http://localhost/api', |
| @@ -710,7 +677,7 @@ export const modeApiForm: FormSchema[] = [ | @@ -710,7 +677,7 @@ export const modeApiForm: FormSchema[] = [ | ||
| 710 | { | 677 | { |
| 711 | field: 'requestMethod', | 678 | field: 'requestMethod', |
| 712 | component: 'Select', | 679 | component: 'Select', |
| 713 | - label: 'Request', | 680 | + label: '请求方式', |
| 714 | colProps: { span: 12 }, | 681 | colProps: { span: 12 }, |
| 715 | defaultValue: 'POST', | 682 | defaultValue: 'POST', |
| 716 | componentProps: { | 683 | componentProps: { |
| @@ -725,15 +692,15 @@ export const modeApiForm: FormSchema[] = [ | @@ -725,15 +692,15 @@ export const modeApiForm: FormSchema[] = [ | ||
| 725 | }, | 692 | }, |
| 726 | { | 693 | { |
| 727 | field: 'enableProxy', | 694 | field: 'enableProxy', |
| 728 | - label: '选择', | 695 | + label: '是否启用', |
| 729 | colProps: { span: 12 }, | 696 | colProps: { span: 12 }, |
| 730 | component: 'Checkbox', | 697 | component: 'Checkbox', |
| 731 | - renderComponentContent: 'Enable proxy', | 698 | + renderComponentContent: '启用代理', |
| 732 | }, | 699 | }, |
| 733 | 700 | ||
| 734 | { | 701 | { |
| 735 | field: 'proxyHost', | 702 | field: 'proxyHost', |
| 736 | - label: 'Host', | 703 | + label: '代理主机', |
| 737 | colProps: { span: 12 }, | 704 | colProps: { span: 12 }, |
| 738 | required: true, | 705 | required: true, |
| 739 | component: 'Input', | 706 | component: 'Input', |
| @@ -747,7 +714,7 @@ export const modeApiForm: FormSchema[] = [ | @@ -747,7 +714,7 @@ export const modeApiForm: FormSchema[] = [ | ||
| 747 | }, | 714 | }, |
| 748 | { | 715 | { |
| 749 | field: 'proxyPort', | 716 | field: 'proxyPort', |
| 750 | - label: 'Port', | 717 | + label: '代理端口', |
| 751 | colProps: { span: 12 }, | 718 | colProps: { span: 12 }, |
| 752 | required: true, | 719 | required: true, |
| 753 | component: 'InputNumber', | 720 | component: 'InputNumber', |
| @@ -762,13 +729,13 @@ export const modeApiForm: FormSchema[] = [ | @@ -762,13 +729,13 @@ export const modeApiForm: FormSchema[] = [ | ||
| 762 | }, | 729 | }, |
| 763 | { | 730 | { |
| 764 | field: 'proxyUser', | 731 | field: 'proxyUser', |
| 765 | - label: 'User', | 732 | + label: '代理用户', |
| 766 | colProps: { span: 12 }, | 733 | colProps: { span: 12 }, |
| 767 | required: true, | 734 | required: true, |
| 768 | component: 'Input', | 735 | component: 'Input', |
| 769 | componentProps: { | 736 | componentProps: { |
| 770 | maxLength: 255, | 737 | maxLength: 255, |
| 771 | - placeholder: '请输入Proxy user', | 738 | + placeholder: '请输入代理用户', |
| 772 | }, | 739 | }, |
| 773 | ifShow: ({ values }) => { | 740 | ifShow: ({ values }) => { |
| 774 | return !!values.enableProxy; | 741 | return !!values.enableProxy; |
| @@ -776,13 +743,13 @@ export const modeApiForm: FormSchema[] = [ | @@ -776,13 +743,13 @@ export const modeApiForm: FormSchema[] = [ | ||
| 776 | }, | 743 | }, |
| 777 | { | 744 | { |
| 778 | field: 'proxyPassword', | 745 | field: 'proxyPassword', |
| 779 | - label: 'Password', | 746 | + label: '代理密码', |
| 780 | colProps: { span: 12 }, | 747 | colProps: { span: 12 }, |
| 781 | required: true, | 748 | required: true, |
| 782 | component: 'InputPassword', | 749 | component: 'InputPassword', |
| 783 | componentProps: { | 750 | componentProps: { |
| 784 | maxLength: 255, | 751 | maxLength: 255, |
| 785 | - placeholder: '请输入Proxy password', | 752 | + placeholder: '请输入代理密码', |
| 786 | }, | 753 | }, |
| 787 | ifShow: ({ values }) => { | 754 | ifShow: ({ values }) => { |
| 788 | return !!values.enableProxy; | 755 | return !!values.enableProxy; |
| @@ -791,21 +758,20 @@ export const modeApiForm: FormSchema[] = [ | @@ -791,21 +758,20 @@ export const modeApiForm: FormSchema[] = [ | ||
| 791 | 758 | ||
| 792 | { | 759 | { |
| 793 | field: 'useSystemProxyProperties', | 760 | field: 'useSystemProxyProperties', |
| 794 | - label: '选择', | 761 | + label: '是否启用', |
| 795 | colProps: { span: 12 }, | 762 | colProps: { span: 12 }, |
| 796 | component: 'Checkbox', | 763 | component: 'Checkbox', |
| 797 | - renderComponentContent: 'Use system proxy properties', | 764 | + renderComponentContent: '使用系统代理属性', |
| 798 | }, | 765 | }, |
| 799 | { | 766 | { |
| 800 | field: 'maxParallelRequestsCount', | 767 | field: 'maxParallelRequestsCount', |
| 801 | - label: 'Max', | 768 | + label: '最大并行请求数', |
| 802 | colProps: { span: 12 }, | 769 | colProps: { span: 12 }, |
| 803 | required: true, | 770 | required: true, |
| 804 | component: 'InputNumber', | 771 | component: 'InputNumber', |
| 805 | defaultValue: 0, | 772 | defaultValue: 0, |
| 806 | componentProps: { | 773 | componentProps: { |
| 807 | maxLength: 255, | 774 | maxLength: 255, |
| 808 | - placeholder: '请输入Max number of paraller requests', | ||
| 809 | }, | 775 | }, |
| 810 | ifShow: ({ values }) => { | 776 | ifShow: ({ values }) => { |
| 811 | return !!values.useSystemProxyProperties; | 777 | return !!values.useSystemProxyProperties; |
| @@ -813,21 +779,20 @@ export const modeApiForm: FormSchema[] = [ | @@ -813,21 +779,20 @@ export const modeApiForm: FormSchema[] = [ | ||
| 813 | }, | 779 | }, |
| 814 | { | 780 | { |
| 815 | field: 'ignoreRequestBody', | 781 | field: 'ignoreRequestBody', |
| 816 | - label: '选择', | 782 | + label: '是否启用', |
| 817 | colProps: { span: 12 }, | 783 | colProps: { span: 12 }, |
| 818 | component: 'Checkbox', | 784 | component: 'Checkbox', |
| 819 | - renderComponentContent: 'Without request body', | 785 | + renderComponentContent: '无请求正文', |
| 820 | }, | 786 | }, |
| 821 | { | 787 | { |
| 822 | field: 'readTimeoutMs', | 788 | field: 'readTimeoutMs', |
| 823 | - label: 'Read', | 789 | + label: '读取超时(毫秒)', |
| 824 | colProps: { span: 12 }, | 790 | colProps: { span: 12 }, |
| 825 | required: true, | 791 | required: true, |
| 826 | component: 'InputNumber', | 792 | component: 'InputNumber', |
| 827 | defaultValue: 0, | 793 | defaultValue: 0, |
| 828 | componentProps: { | 794 | componentProps: { |
| 829 | maxLength: 255, | 795 | maxLength: 255, |
| 830 | - placeholder: '请输入Read timeout in times', | ||
| 831 | }, | 796 | }, |
| 832 | ifShow: ({ values }) => { | 797 | ifShow: ({ values }) => { |
| 833 | return !values.useSystemProxyProperties; | 798 | return !values.useSystemProxyProperties; |
| @@ -835,14 +800,13 @@ export const modeApiForm: FormSchema[] = [ | @@ -835,14 +800,13 @@ export const modeApiForm: FormSchema[] = [ | ||
| 835 | }, | 800 | }, |
| 836 | { | 801 | { |
| 837 | field: 'maxParallelRequestsCount', | 802 | field: 'maxParallelRequestsCount', |
| 838 | - label: 'Max', | 803 | + label: '最大并行请求数', |
| 839 | colProps: { span: 12 }, | 804 | colProps: { span: 12 }, |
| 840 | required: true, | 805 | required: true, |
| 841 | component: 'InputNumber', | 806 | component: 'InputNumber', |
| 842 | defaultValue: 0, | 807 | defaultValue: 0, |
| 843 | componentProps: { | 808 | componentProps: { |
| 844 | maxLength: 255, | 809 | maxLength: 255, |
| 845 | - placeholder: '请输入Max number of paraller requests', | ||
| 846 | }, | 810 | }, |
| 847 | ifShow: ({ values }) => { | 811 | ifShow: ({ values }) => { |
| 848 | return !values.useSystemProxyProperties; | 812 | return !values.useSystemProxyProperties; |
| @@ -858,31 +822,30 @@ export const modeApiForm: FormSchema[] = [ | @@ -858,31 +822,30 @@ export const modeApiForm: FormSchema[] = [ | ||
| 858 | 822 | ||
| 859 | { | 823 | { |
| 860 | field: 'useRedisQueueForMsgPersistence', | 824 | field: 'useRedisQueueForMsgPersistence', |
| 861 | - label: '选择', | 825 | + label: '是否启用', |
| 862 | colProps: { span: 12 }, | 826 | colProps: { span: 12 }, |
| 863 | component: 'Checkbox', | 827 | component: 'Checkbox', |
| 864 | - renderComponentContent: 'Use redis queue for message persistence', | 828 | + renderComponentContent: '使用redis队列进行消息持久性', |
| 865 | }, | 829 | }, |
| 866 | { | 830 | { |
| 867 | field: 'trimQueue', | 831 | field: 'trimQueue', |
| 868 | - label: '选择', | 832 | + label: '是否启用', |
| 869 | colProps: { span: 12 }, | 833 | colProps: { span: 12 }, |
| 870 | component: 'Checkbox', | 834 | component: 'Checkbox', |
| 871 | - renderComponentContent: 'Trim redis queue', | 835 | + renderComponentContent: '修剪redis队列', |
| 872 | ifShow: ({ values }) => { | 836 | ifShow: ({ values }) => { |
| 873 | return !!values.useRedisQueueForMsgPersistence; | 837 | return !!values.useRedisQueueForMsgPersistence; |
| 874 | }, | 838 | }, |
| 875 | }, | 839 | }, |
| 876 | { | 840 | { |
| 877 | field: 'maxQueueSize', | 841 | field: 'maxQueueSize', |
| 878 | - label: 'Redis', | 842 | + label: 'Redis队列最大数', |
| 879 | colProps: { span: 12 }, | 843 | colProps: { span: 12 }, |
| 880 | required: true, | 844 | required: true, |
| 881 | component: 'InputNumber', | 845 | component: 'InputNumber', |
| 882 | defaultValue: 0, | 846 | defaultValue: 0, |
| 883 | componentProps: { | 847 | componentProps: { |
| 884 | maxLength: 255, | 848 | maxLength: 255, |
| 885 | - placeholder: '请输入Redis queue max size', | ||
| 886 | }, | 849 | }, |
| 887 | ifShow: ({ values }) => { | 850 | ifShow: ({ values }) => { |
| 888 | return !!values.useRedisQueueForMsgPersistence; | 851 | return !!values.useRedisQueueForMsgPersistence; |
| @@ -892,11 +855,11 @@ export const modeApiForm: FormSchema[] = [ | @@ -892,11 +855,11 @@ export const modeApiForm: FormSchema[] = [ | ||
| 892 | { | 855 | { |
| 893 | field: 'type', | 856 | field: 'type', |
| 894 | component: 'Select', | 857 | component: 'Select', |
| 895 | - label: 'type', | 858 | + label: '凭据类型', |
| 896 | colProps: { span: 12 }, | 859 | colProps: { span: 12 }, |
| 897 | defaultValue: 'anonymous', | 860 | defaultValue: 'anonymous', |
| 898 | componentProps: { | 861 | componentProps: { |
| 899 | - placeholder: '请选择Number of acknowledgments', | 862 | + placeholder: '请选择凭据类型', |
| 900 | options: [ | 863 | options: [ |
| 901 | { label: 'Anonymous', value: 'anonymous' }, | 864 | { label: 'Anonymous', value: 'anonymous' }, |
| 902 | { label: 'Basic', value: 'basic' }, | 865 | { label: 'Basic', value: 'basic' }, |
| @@ -906,25 +869,25 @@ export const modeApiForm: FormSchema[] = [ | @@ -906,25 +869,25 @@ export const modeApiForm: FormSchema[] = [ | ||
| 906 | }, | 869 | }, |
| 907 | { | 870 | { |
| 908 | field: 'username', | 871 | field: 'username', |
| 909 | - label: 'Username', | 872 | + label: '用户名', |
| 910 | colProps: { span: 12 }, | 873 | colProps: { span: 12 }, |
| 911 | component: 'Input', | 874 | component: 'Input', |
| 912 | required: true, | 875 | required: true, |
| 913 | componentProps: { | 876 | componentProps: { |
| 914 | maxLength: 255, | 877 | maxLength: 255, |
| 915 | - placeholder: '请输入Username', | 878 | + placeholder: '请输入用户名', |
| 916 | }, | 879 | }, |
| 917 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), | 880 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
| 918 | }, | 881 | }, |
| 919 | { | 882 | { |
| 920 | field: 'password', | 883 | field: 'password', |
| 921 | - label: 'Password', | 884 | + label: '密码', |
| 922 | colProps: { span: 12 }, | 885 | colProps: { span: 12 }, |
| 923 | component: 'InputPassword', | 886 | component: 'InputPassword', |
| 924 | required: true, | 887 | required: true, |
| 925 | componentProps: { | 888 | componentProps: { |
| 926 | maxLength: 255, | 889 | maxLength: 255, |
| 927 | - placeholder: '请输入Password', | 890 | + placeholder: '请输入密码', |
| 928 | }, | 891 | }, |
| 929 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), | 892 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
| 930 | }, | 893 | }, |
| @@ -978,12 +941,12 @@ export const modeApiForm: FormSchema[] = [ | @@ -978,12 +941,12 @@ export const modeApiForm: FormSchema[] = [ | ||
| 978 | }, | 941 | }, |
| 979 | { | 942 | { |
| 980 | field: 'password', | 943 | field: 'password', |
| 981 | - label: 'Password', | 944 | + label: '密码', |
| 982 | colProps: { span: 12 }, | 945 | colProps: { span: 12 }, |
| 983 | component: 'InputPassword', | 946 | component: 'InputPassword', |
| 984 | componentProps: { | 947 | componentProps: { |
| 985 | maxLength: 255, | 948 | maxLength: 255, |
| 986 | - placeholder: '请输入Password', | 949 | + placeholder: '请输入密码', |
| 987 | }, | 950 | }, |
| 988 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), | 951 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), |
| 989 | }, | 952 | }, |