@emqx/shared-ui-i18n 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './enActionsLabel';
3
3
  export * from './zhActionsLabel';
4
4
  export * from './enConnectorsLabel';
5
5
  export * from './zhConnectorsLabel';
6
+ export * from './authHelpCodeMap';
package/dist/index.js CHANGED
@@ -179,7 +179,7 @@ FROM
179
179
  request_ttl: "Request TTL",
180
180
  inflight_window: "Inflight Window",
181
181
  max_buffer_bytes: "Max Buffer Queue Size",
182
- sql: "SQL",
182
+ sql: "SQL Template",
183
183
  batch_size: "Batch Size",
184
184
  topic: "Kafka Topic",
185
185
  key: "Message Key",
@@ -199,7 +199,9 @@ FROM
199
199
  per_partition_limit: "Per-partition Buffer Limit",
200
200
  segment_bytes: "Segment File Bytes",
201
201
  memory_overload_protection: "Memory Overload Protection",
202
- sync_query_timeout: "Synchronous Query Timeout"
202
+ sync_query_timeout: "Synchronous Query Timeout",
203
+ template: "Message Template",
204
+ partitions_limit: "Partitions Limit"
203
205
  },
204
206
  kafka_producer: {
205
207
  timestamp: "Message Timestamp",
@@ -238,8 +240,7 @@ FROM
238
240
  },
239
241
  syskeeper_forwarder: {
240
242
  target_topic: "Topic",
241
- target_qos: "QoS",
242
- template: '"Message Template'
243
+ target_qos: "QoS"
243
244
  },
244
245
  redis: {
245
246
  command_template: "Redis Command Template"
@@ -247,6 +248,91 @@ FROM
247
248
  mongodb: {
248
249
  collection: "Collection",
249
250
  payload_template: "Payload template"
251
+ },
252
+ iotdb: {
253
+ device_id: "Device ID",
254
+ is_aligned: "Align Timeseries",
255
+ data: "Write Data",
256
+ timestamp: "Timestamp",
257
+ measurement: "Measurement",
258
+ data_type: "Data Type",
259
+ value: "Value"
260
+ },
261
+ influxdb: {
262
+ precision: "Time Precision",
263
+ write_syntax: "Write Syntax"
264
+ },
265
+ mqtt: {
266
+ topic: "Topic",
267
+ qos: "QoS",
268
+ retain: "Retain",
269
+ payload: "Payload"
270
+ },
271
+ elasticsearch: {
272
+ parameters: "Action",
273
+ index: "Index Name",
274
+ id: "Document ID",
275
+ doc: "Document Template",
276
+ routing: "Routing",
277
+ overwrite: "Overwrite Document",
278
+ doc_as_upsert: "Enable Upsert"
279
+ },
280
+ cassandra: {
281
+ cql: "CQL Template"
282
+ },
283
+ opents: {
284
+ timestamp: "Timestamp",
285
+ metric: "Metric",
286
+ tags: "Tags",
287
+ value: "Value",
288
+ data: "Write Data"
289
+ },
290
+ gcp_pubsub_consumer: {
291
+ payload_template: "Payload Template"
292
+ },
293
+ hstreamdb: {
294
+ record_template: "HStream Record Template"
295
+ },
296
+ kafka_consumer: {
297
+ payload_template: "MQTT Payload Template"
298
+ },
299
+ rabbitmq: {
300
+ exchange: "Exchange",
301
+ routing_key: "Routing Key",
302
+ delivery_mode: "Message Delivery Mode",
303
+ wait_for_publish_confirmations: "Wait for Publish Confirmations",
304
+ publish_confirmation_timeout: "Publish Confirmation Timeout",
305
+ payload_template: "Payload Template"
306
+ },
307
+ pulsar: {
308
+ message_key: "Message Key",
309
+ message_value: "Message Value"
310
+ },
311
+ kinesis: {
312
+ payload_template: "Payload template",
313
+ stream_name: "Amazon Kinesis Stream",
314
+ partition_key: "Partition key"
315
+ },
316
+ greptimedb: {
317
+ write_syntax: "Write Syntax",
318
+ precision: "Time Precision"
319
+ },
320
+ tdengine: {
321
+ database: "Database Name"
322
+ },
323
+ rocketmq: {
324
+ topic: "RocketMQ Topic",
325
+ refresh_interval: "Topic Route Refresh Interval",
326
+ send_buffer: "Send Buffer Size",
327
+ sync_timeout: "Sync Timeout"
328
+ },
329
+ clickhouse: {
330
+ batch_value_separator: "Batch Value Separator"
331
+ },
332
+ s3: {
333
+ bucket: "Bucket",
334
+ acl: "ACL",
335
+ content: "Content"
250
336
  }
251
337
  }, a = {
252
338
  common: {
@@ -259,7 +345,7 @@ FROM
259
345
  request_ttl: "请求超期",
260
346
  inflight_window: "请求飞行队列窗口",
261
347
  max_buffer_bytes: "缓存队列最大长度",
262
- sql: "SQL",
348
+ sql: "SQL 模板",
263
349
  batch_size: "最大批量请求大小",
264
350
  topic: "Kafka 主题名称",
265
351
  key: "消息的键",
@@ -279,7 +365,9 @@ FROM
279
365
  per_partition_limit: "Kafka 分区缓存上限",
280
366
  segment_bytes: "缓存文件大小",
281
367
  memory_overload_protection: "内存过载保护",
282
- sync_query_timeout: "同步查询超时时间"
368
+ sync_query_timeout: "同步查询超时时间",
369
+ template: "消息模板",
370
+ partitions_limit: "分区限制"
283
371
  },
284
372
  kafka_producer: {
285
373
  timestamp: "消息的时间戳",
@@ -318,8 +406,7 @@ FROM
318
406
  },
319
407
  syskeeper_forwarder: {
320
408
  target_topic: "主题",
321
- target_qos: "QoS",
322
- template: "消息模板"
409
+ target_qos: "QoS"
323
410
  },
324
411
  redis: {
325
412
  command_template: "Redis 命令模板"
@@ -327,6 +414,91 @@ FROM
327
414
  mongodb: {
328
415
  collection: "集合(Collection)",
329
416
  payload_template: "有效载荷模板"
417
+ },
418
+ iotdb: {
419
+ device_id: "设备 ID",
420
+ is_aligned: "对齐时间序列",
421
+ data: "写入数据",
422
+ timestamp: "时间戳",
423
+ measurement: "字段",
424
+ data_type: "数据类型",
425
+ value: "值"
426
+ },
427
+ influxdb: {
428
+ precision: "时间精度",
429
+ write_syntax: "写语句"
430
+ },
431
+ mqtt: {
432
+ topic: "主题",
433
+ qos: "QoS",
434
+ retain: "Retain",
435
+ payload: "消息模版"
436
+ },
437
+ elasticsearch: {
438
+ parameters: "操作",
439
+ index: "索引名称",
440
+ id: "文档 ID",
441
+ doc: "文档模版",
442
+ routing: "路由",
443
+ overwrite: "是否覆盖文档",
444
+ doc_as_upsert: "启用更新插入"
445
+ },
446
+ cassandra: {
447
+ cql: "CQL 模板"
448
+ },
449
+ opents: {
450
+ timestamp: "时间戳",
451
+ metric: "度量",
452
+ tags: "标签",
453
+ value: "值",
454
+ data: "写入数据"
455
+ },
456
+ gcp_pubsub_consumer: {
457
+ payload_template: "HTTP 请求消息体模板"
458
+ },
459
+ hstreamdb: {
460
+ record_template: "HStream Record 模板"
461
+ },
462
+ kafka_consumer: {
463
+ payload_template: "MQTT Payload Template"
464
+ },
465
+ rabbitmq: {
466
+ exchange: "交换机",
467
+ routing_key: "路由键",
468
+ delivery_mode: "消息传递模式",
469
+ wait_for_publish_confirmations: "等待发布确认",
470
+ publish_confirmation_timeout: "发布确认超时时间",
471
+ payload_template: "有效载荷模板"
472
+ },
473
+ pulsar: {
474
+ message_key: "消息的 Key",
475
+ message_value: "消息的 Value"
476
+ },
477
+ kinesis: {
478
+ payload_template: "载荷模板",
479
+ stream_name: "Amazon Kinesis 流",
480
+ partition_key: "分区键"
481
+ },
482
+ greptimedb: {
483
+ write_syntax: "写语法",
484
+ precision: "时间精度"
485
+ },
486
+ tdengine: {
487
+ database: "数据库名字"
488
+ },
489
+ rocketmq: {
490
+ topic: "RocketMQ 主题",
491
+ refresh_interval: "主题路由更新间隔",
492
+ send_buffer: "发送消息的缓冲区大小",
493
+ sync_timeout: "同步调用超时时间"
494
+ },
495
+ clickhouse: {
496
+ batch_value_separator: "分隔符"
497
+ },
498
+ s3: {
499
+ bucket: "存储桶",
500
+ acl: "ACL",
501
+ content: "内容"
330
502
  }
331
503
  }, r = {
332
504
  common: {
@@ -351,12 +523,14 @@ FROM
351
523
  request_ttl: "Request TTL",
352
524
  max_buffer_bytes: "Max Buffer Queue Size",
353
525
  inflight_window: "Inflight Window",
354
- servers: "Servers"
526
+ servers: "Servers",
527
+ enable_pipelining: "HTTP Pipelining"
355
528
  },
356
529
  kafka_producer: {
357
530
  kerberos_principal: "Kerberos Principal",
358
531
  kerberos_keytab_file: "Kerberos keytab file",
359
- mechanism: "Mechanism"
532
+ mechanism: "Mechanism",
533
+ authentication: "Authentication"
360
534
  },
361
535
  http: {
362
536
  url: "URL",
@@ -398,8 +572,126 @@ FROM
398
572
  wait_queue_timeout_ms: "Wait Queue Timeout",
399
573
  heartbeat_frequency_ms: "Heartbeat period",
400
574
  min_heartbeat_frequency_ms: "Minimum Heartbeat Period"
575
+ },
576
+ influxdb: {
577
+ parameters: "Version of InfluxDB",
578
+ bucket: "Bucket",
579
+ org: "Organization",
580
+ token: "Token"
581
+ },
582
+ iotdb: {
583
+ base_url: "IoTDB REST Service Base URL",
584
+ iotdb_version: "IoTDB Version"
585
+ },
586
+ elasticsearch: {
587
+ server: "Server"
588
+ },
589
+ mqtt: {
590
+ server: "MQTT Broker",
591
+ clientid_prefix: "ClientID Prefix",
592
+ proto_ver: "MQTT Version",
593
+ bridge_mode: "Bridge Mode",
594
+ clean_start: "Clean start",
595
+ keepalive: "Keepalive",
596
+ retry_interval: "Message Retry Interval",
597
+ max_inflight: "Max Inflight"
598
+ },
599
+ cassandra: {
600
+ keyspace: "Keyspace"
601
+ },
602
+ opents: {
603
+ summary: "Summary",
604
+ details: "Details"
605
+ },
606
+ clickhouse: {
607
+ url: "Server URL"
608
+ },
609
+ dynamo: {
610
+ url: "DynamoDB Endpoint",
611
+ table: "Table ",
612
+ aws_access_key_id: "AWS Access Key ID",
613
+ aws_secret_access_key: "AWS Secret Access Key"
614
+ },
615
+ gcp_pubsub_consumer: {
616
+ consumer_pubsub_topic: "GCP PubSub Topic",
617
+ consumer_mqtt_topic: "MQTT Topic",
618
+ consumer_qos: "QoS",
619
+ pipelining: "HTTP Pipelining",
620
+ service_account_json: "GCP Service Account Credentials",
621
+ topic_mapping: "Topic Mapping",
622
+ pull_max_messages: "Maximum Messages to Pull"
623
+ },
624
+ hstreamdb: {
625
+ url: "HStreamDB Server URL",
626
+ stream: "HStreamDB Stream Name",
627
+ partition_key: "HStreamDB Partition Key",
628
+ grpc_timeout: "HStreamDB gRPC Timeout"
629
+ },
630
+ kafka_consumer: {
631
+ bootstrap_hosts: "Bootstrap Hosts",
632
+ consumer_key_encoding_mode: "Key Encoding Mode",
633
+ consumer_value_encoding_mode: "Value Encoding Mode",
634
+ consumer_topic_mapping: "Topic Mapping",
635
+ consumer_offset_reset_policy: "Offset Reset Policy",
636
+ consumer_mqtt_topic: "MQTT Topic",
637
+ min_metadata_refresh_interval: "Min Metadata Refresh Interval",
638
+ metadata_request_timeout: "Metadata Request Timeout",
639
+ consumer_max_batch_bytes: "Fetch Bytes",
640
+ consumer_offset_commit_interval_seconds: "Offset Commit Interval",
641
+ topic: "Kafka Topic",
642
+ mqtt_topic: "MQTT Topic",
643
+ qos: "QoS"
644
+ },
645
+ rocketmq: {
646
+ access_key: "AccessKey",
647
+ secret_key: "SecretKey",
648
+ security_token: "Security Token"
649
+ },
650
+ sqlserver: {
651
+ driver: "SQL Server Driver Name"
652
+ },
653
+ oracle: {
654
+ sid: "Oracle Database SID",
655
+ service_name: "Oracle Database Service Name"
656
+ },
657
+ rabbitmq: {
658
+ port: "Port",
659
+ virtual_host: "Virtual Host",
660
+ heartbeat: "Heartbeat",
661
+ timeout: "Connection Timeout"
662
+ },
663
+ pulsar: {
664
+ pulsar_topic: "Pulsar Topic Name",
665
+ strategy: "Partition Strategy",
666
+ compression: "Compression",
667
+ sync_timeout: "Sync Publish Timeout",
668
+ retention_period: "Retention Period",
669
+ send_buffer: "Socket Send Buffer Size",
670
+ max_batch_bytes: "Max Batch Bytes",
671
+ buffer_mode: "Buffer Mode",
672
+ buffer_per_partition_limit: "Per-partition Buffer Limit",
673
+ buffer_segment_bytes: "Segment File Bytes",
674
+ buffer_memory_overload_protection: "Memory Overload Protection",
675
+ authentication_jwt: "JWT"
676
+ },
677
+ kinesis: {
678
+ aws_access_key_id: "AWS Access Key ID",
679
+ aws_secret_access_key: "AWS Secret Access Key",
680
+ endpoint: "Amazon Kinesis Endpoint"
681
+ },
682
+ greptimedb: {
683
+ dbname: "Database"
684
+ },
685
+ s3: {
686
+ access_key_id: "Access Key ID",
687
+ secret_access_key: "Secret Access Key",
688
+ host: "Host",
689
+ port: "Port",
690
+ ipv6_probe: "IPv6 Probe",
691
+ headers: "HTTP Headers",
692
+ request_timeout: "Request Timeout"
401
693
  }
402
- }, o = {
694
+ }, s = {
403
695
  common: {
404
696
  connect_timeout: "连接超时",
405
697
  bootstrap_hosts: "主机列表",
@@ -422,12 +714,14 @@ FROM
422
714
  request_ttl: "请求超期",
423
715
  max_buffer_bytes: "缓存队列最大长度",
424
716
  inflight_window: "请求飞行队列窗口",
425
- servers: "服务器列表"
717
+ servers: "服务器列表",
718
+ enable_pipelining: "HTTP 流水线"
426
719
  },
427
720
  kafka_producer: {
428
721
  kerberos_principal: "Kerberos Principal",
429
- kerberos_keytab_file: "Kerberos keytab 文件",
430
- mechanism: "认证方法"
722
+ kerberos_keytab_file: "Kerberos Keytab 文件",
723
+ mechanism: "认证方法",
724
+ authentication: "认证"
431
725
  },
432
726
  http: {
433
727
  url: "URL",
@@ -469,12 +763,198 @@ FROM
469
763
  wait_queue_timeout_ms: "等待队列超时",
470
764
  heartbeat_frequency_ms: "心跳期",
471
765
  min_heartbeat_frequency_ms: "最小心跳周期"
766
+ },
767
+ influxdb: {
768
+ parameters: "InfluxDB 版本",
769
+ bucket: "Bucket",
770
+ org: "组织",
771
+ token: "Token"
772
+ },
773
+ iotdb: {
774
+ base_url: "IoTDB REST 服务基础 URL",
775
+ iotdb_version: "IoTDB 版本"
776
+ },
777
+ elasticsearch: {
778
+ server: "服务器地址"
779
+ },
780
+ mqtt: {
781
+ server: "MQTT 服务地址",
782
+ clientid_prefix: "客户端 ID 前缀",
783
+ proto_ver: "MQTT 协议版本",
784
+ bridge_mode: "桥接模式",
785
+ clean_start: "清除会话",
786
+ keepalive: "Keepalive",
787
+ retry_interval: "消息重发间隔",
788
+ max_inflight: "飞行窗口"
789
+ },
790
+ cassandra: {
791
+ keyspace: "Keyspace"
792
+ },
793
+ opents: {
794
+ summary: "摘要信息",
795
+ details: "详细信息"
796
+ },
797
+ clickhouse: {
798
+ url: "服务器 URL"
799
+ },
800
+ dynamo: {
801
+ url: "DynamoDB 地址",
802
+ table: "表",
803
+ aws_access_key_id: "连接访问 ID",
804
+ aws_secret_access_key: "连接访问密钥"
805
+ },
806
+ gcp_pubsub_consumer: {
807
+ consumer_pubsub_topic: "GCP PubSub 主题",
808
+ consumer_mqtt_topic: "MQTT 主题",
809
+ consumer_qos: "QoS",
810
+ pipelining: "HTTP 流水线",
811
+ service_account_json: "GCP 服务账户凭证",
812
+ topic_mapping: "主题映射",
813
+ pull_max_messages: "拉取的最大消息数"
814
+ },
815
+ hstreamdb: {
816
+ url: "HStreamDB 服务器 URL",
817
+ stream: "HStreamDB 流名称",
818
+ partition_key: "HStreamDB 分区键",
819
+ grpc_timeout: "HStreamDB gRPC 超时"
820
+ },
821
+ kafka_consumer: {
822
+ bootstrap_hosts: "主机列表",
823
+ consumer_key_encoding_mode: "Key 编码模式",
824
+ consumer_value_encoding_mode: "Value 编码模式",
825
+ consumer_topic_mapping: "主题映射关系",
826
+ consumer_offset_reset_policy: "偏移重置策略",
827
+ consumer_mqtt_topic: "MQTT 主题",
828
+ min_metadata_refresh_interval: "元数据刷新最小间隔",
829
+ metadata_request_timeout: "元数据请求超时",
830
+ consumer_max_batch_bytes: "拉取字节数",
831
+ consumer_offset_commit_interval_seconds: "偏移提交间隔",
832
+ topic: "Kafka 主题名称",
833
+ mqtt_topic: "MQTT 主题",
834
+ qos: "QoS"
835
+ },
836
+ rocketmq: {
837
+ access_key: "AccessKey",
838
+ secret_key: "SecretKey",
839
+ security_token: "安全令牌"
840
+ },
841
+ sqlserver: {
842
+ driver: "SQL Server Driver 名称"
843
+ },
844
+ oracle: {
845
+ sid: "Oracle Database SID",
846
+ service_name: "Oracle 数据库服务名称"
847
+ },
848
+ rabbitmq: {
849
+ port: "端口",
850
+ virtual_host: "虚拟主机",
851
+ heartbeat: "心跳",
852
+ timeout: "连接超时时间"
853
+ },
854
+ pulsar: {
855
+ pulsar_topic: "Pulsar 主题名称",
856
+ strategy: "分区选择策略",
857
+ compression: "压缩",
858
+ sync_timeout: "同步发布超时",
859
+ retention_period: "保留期",
860
+ send_buffer: "Socket 发送缓存大小",
861
+ max_batch_bytes: "最大批量字节数",
862
+ buffer_mode: "缓存模式",
863
+ buffer_per_partition_limit: "Pulsar 分区缓存上限",
864
+ buffer_segment_bytes: "缓存文件大小",
865
+ buffer_memory_overload_protection: "内存过载保护",
866
+ authentication_jwt: "JWT"
867
+ },
868
+ kinesis: {
869
+ aws_access_key_id: "AWS 访问密钥 ID",
870
+ aws_secret_access_key: "AWS 秘密访问密钥",
871
+ endpoint: "Amazon Kinesis 端点"
872
+ },
873
+ greptimedb: {
874
+ dbname: "数据库"
875
+ },
876
+ s3: {
877
+ access_key_id: "访问密钥 ID",
878
+ secret_access_key: "访问密钥",
879
+ host: "地址",
880
+ port: "端口",
881
+ ipv6_probe: "IPv6 探针",
882
+ headers: "请求头",
883
+ request_timeout: "HTTP 请求超时"
884
+ }
885
+ }, o = {
886
+ authn: {
887
+ mysql: "CREATE TABLE IF NOT EXISTS `mqtt_user` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n `username` varchar(100) DEFAULT NULL,\n `password_hash` varchar(100) DEFAULT NULL,\n `salt` varchar(35) DEFAULT NULL,\n `is_superuser` tinyint(1) DEFAULT 0,\n `created` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `mqtt_username` (`username`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;",
888
+ postgresql: `CREATE TABLE mqtt_user (
889
+ id SERIAL primary key,
890
+ is_superuser boolean,
891
+ username character varying(100),
892
+ password_hash character varying(100),
893
+ salt character varying(40)
894
+ )`,
895
+ mongodb: `{
896
+ username: "emqx_user",
897
+ password_hash: "******",
898
+ salt: "foo+bar",
899
+ is_superuser: false,
900
+ created: "2021-01-01 12:00:01"
901
+ }
902
+
903
+ db.mqtt_user.findOne({"username": "emqx_user"})`,
904
+ redis: `# sample data
905
+ HMSET mqtt_user:emqx_u password_hash *** salt foo+bar is_superuser 1
906
+
907
+ # sample cmd
908
+ # HMGET mqtt_user:\${username}
909
+
910
+ ## only password
911
+ HMGET mqtt_user:emqx_u password_hash
912
+
913
+ ## password + salt
914
+ HMGET mqtt_user:emqx_u password_hash salt
915
+
916
+ ## password + salt, enable superuser
917
+ HMGET mqtt_user:emqx_u password_hash salt is_superuser
918
+
919
+ ## only password, enable superuser
920
+ HMGET mqtt_user:emqx_u password_hash is_superuser`
921
+ },
922
+ authz: {
923
+ mysql: "CREATE TABLE `mqtt_acl` (\n`id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n`ipaddress` VARCHAR(60) NOT NULL DEFAULT '',\n`username` VARCHAR(255) NOT NULL DEFAULT '',\n`clientid` VARCHAR(255) NOT NULL DEFAULT '',\n`action` ENUM('publish', 'subscribe', 'all') NOT NULL,\n`permission` ENUM('allow', 'deny') NOT NULL,\n`topic` VARCHAR(255) NOT NULL DEFAULT '',\nPRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;",
924
+ postgresql: `CREATE TYPE ACTION AS ENUM('publish','subscribe','all');
925
+ CREATE TYPE PERMISSION AS ENUM('allow','deny');
926
+
927
+ CREATE TABLE mqtt_acl (
928
+ id SERIAL PRIMARY KEY,
929
+ ipaddress CHARACTER VARYING(60) NOT NULL DEFAULT '',
930
+ username CHARACTER VARYING(255) NOT NULL DEFAULT '',
931
+ clientid CHARACTER VARYING(255) NOT NULL DEFAULT '',
932
+ action ACTION,
933
+ permission PERMISSION,
934
+ topic CHARACTER VARYING(255) NOT NULL
935
+ );`,
936
+ mongodb: `{
937
+ username: "emqx_u",
938
+ clientid: "emqx_c",
939
+ ipaddress: "127.0.0.1",
940
+ permission: "allow",
941
+ action: "all",
942
+ topics: ["#"]
943
+ }
944
+
945
+ db.mqtt_acl.findOne({"username": "emqx_user"})`,
946
+ redis: `# sample data
947
+ HSET mqtt_acl:emqx_u 't/#' subscribe
948
+
949
+ # sample cmd
950
+ HGETALL mqtt_acl:\${username}`
472
951
  }
473
952
  };
474
953
  export {
475
954
  e as SQLTemplates,
955
+ o as authHelpCodeMap,
476
956
  t as enActionsLabel,
477
957
  r as enConnectorsLabel,
478
958
  a as zhActionsLabel,
479
- o as zhConnectorsLabel
959
+ s as zhConnectorsLabel
480
960
  };
@@ -25,4 +25,58 @@ FROM
25
25
  "t/#"`,input:{x:8},outputs:{x:7}},{title:{zh:"数组处理 - 从 JSON 格式的 payload 中获取嵌套的值",en:"Array - Get nested values from JSON-formatted payload"},scene:{zh:"处理 JSON 格式的 payload,从嵌套格式中获取所需要的值。",en:"Process JSON-formatted payload and get the values needed from the nested format."},sql:`SELECT
26
26
  payload.data[1].id as id
27
27
  FROM
28
- "t/#"`,input:{data:[{id:1,name:"steve"},{id:2,name:"bill"}]},outputs:{id:1}}],a={common:{health_check_interval:"Health Check Interval",query_mode:"Query Mode",max_retries:"Max Retries",worker_pool_size:"Buffer Pool Size",start_after_created:"Start After Created",start_timeout:"Start Timeout",request_ttl:"Request TTL",inflight_window:"Inflight Window",max_buffer_bytes:"Max Buffer Queue Size",sql:"SQL",batch_size:"Batch Size",topic:"Kafka Topic",key:"Message Key",value:"Message Value",compression:"Compression",partition_strategy:"Partition Strategy",kafka_headers:"Kafka Headers",kafka_ext_headers:"More Kafka Headers",kafka_ext_header_key:"Key",kafka_ext_header_value:"Value",kafka_header_value_encode_mode:"Kafka Header Value Encode Mode",max_batch_bytes:"Max Batch Bytes",required_acks:"Required Acks",partition_count_refresh_interval:"Partition Count Refresh Interval",max_inflight:"Max Inflight",mode:"Buffer Mode",per_partition_limit:"Per-partition Buffer Limit",segment_bytes:"Segment File Bytes",memory_overload_protection:"Memory Overload Protection",sync_query_timeout:"Synchronous Query Timeout"},kafka_producer:{timestamp:"Message Timestamp",kafka_ext_header_key:"Kafka Header Key",kafka_ext_header_value:"Kafka Header Value"},http:{body:"Body",headers:"Headers",method:"Method",path:"URL Path"},azure_event_hub_producer:{topic:"Event Hub Name",key:"Message Key",value:"Message Value",partition_strategy:"Partition Strategy",required_acks:"Required Acks",kafka_headers:"Azure Event Hubs Headers",kafka_ext_headers:"Extra Azure Event Hubs headers",kafka_header_value_encode_mode:"Azure Event Hubs headers value encode mode",partition_count_refresh_interval:"Partition Count Refresh Interval",max_inflight:"Max Inflight",mode:"Buffer Mode",per_partition_limit:"Per-partition Buffer Limit",segment_bytes:"Segment File Bytes",memory_overload_protection:"Memory Overload Protection",max_batch_bytes:"Max Batch Bytes",query_mode:"Query mode"},gcp_pubsub_producer:{attributes_template:"Attributes Template",pubsub_topic:"GCP PubSub Topic",ordering_key_template:"Ordering Key template",payload_template:"Payload Template"},syskeeper_forwarder:{target_topic:"Topic",target_qos:"QoS",template:'"Message Template'},redis:{command_template:"Redis Command Template"},mongodb:{collection:"Collection",payload_template:"Payload template"}},o={common:{health_check_interval:"健康检查间隔",query_mode:"请求模式",max_retries:"最大重试次数",worker_pool_size:"缓存池大小",start_after_created:"创建后立即启动",start_timeout:"启动超时时间",request_ttl:"请求超期",inflight_window:"请求飞行队列窗口",max_buffer_bytes:"缓存队列最大长度",sql:"SQL",batch_size:"最大批量请求大小",topic:"Kafka 主题名称",key:"消息的键",value:"消息的值",compression:"压缩",partition_strategy:"分区选择策略",kafka_headers:"Kafka Headers",kafka_ext_headers:"更多的 Kafka Headers",kafka_ext_header_key:"键",kafka_ext_header_value:"值",kafka_header_value_encode_mode:"Kafka Headers 值编码类型",max_batch_bytes:"最大批量字节数",required_acks:"Kafka 确认数量",partition_count_refresh_interval:"分区数量刷新间隔",max_inflight:"飞行窗口",mode:"缓存模式",per_partition_limit:"Kafka 分区缓存上限",segment_bytes:"缓存文件大小",memory_overload_protection:"内存过载保护",sync_query_timeout:"同步查询超时时间"},kafka_producer:{timestamp:"消息的时间戳",kafka_ext_header_key:"Kafka Headers 键",kafka_ext_header_value:"Kafka Headers 值"},http:{body:"请求体",headers:"请求头",method:"请求方法",path:"URL 路径"},azure_event_hub_producer:{topic:"事件中心名称",key:"消息键",value:"消息值",partition_strategy:"分区策略",required_acks:"所需确认",kafka_headers:"Azure Event Hubs 头部",kafka_ext_headers:"额外的 Azure Event Hubs 头部信息",kafka_header_value_encode_mode:"Azure Event Hubs 头部值编码模式",partition_count_refresh_interval:"分区数刷新间隔",max_inflight:"最大传输数",mode:"缓冲区模式",per_partition_limit:"每个分区缓冲限制",segment_bytes:"段文件字节数",memory_overload_protection:"内存过载保护",max_batch_bytes:"最大批次字节数",query_mode:"查询模式"},gcp_pubsub_producer:{attributes_template:"属性模版",pubsub_topic:"GCP PubSub 主题",ordering_key_template:"排序键模板",payload_template:"HTTP 请求消息体模板"},syskeeper_forwarder:{target_topic:"主题",target_qos:"QoS",template:"消息模板"},redis:{command_template:"Redis 命令模板"},mongodb:{collection:"集合(Collection)",payload_template:"有效载荷模板"}},r={common:{connect_timeout:"Connect Timeout",bootstrap_hosts:"Bootstrap Hosts",min_metadata_refresh_interval:"Min Metadata Refresh Interval",metadata_request_timeout:"Metadata Request Timeout",tcp_keepalive:"TCP Keepalive",sndbuf:"Socket Send Buffer Size",recbuf:"Socket Receive Buffer Size",nodelay:"No Delay",username:"Username",password:"Password",pool_size:"Connection Pool Size",pool_type:"Pool Type",server:"Server Host",database:"Database Name",health_check_interval:"Health Check Interval",start_timeout:"Start Timeout",max_retries:"Max Retries",worker_pool_size:"Buffer Pool Size",request_ttl:"Request TTL",max_buffer_bytes:"Max Buffer Queue Size",inflight_window:"Inflight Window",servers:"Servers"},kafka_producer:{kerberos_principal:"Kerberos Principal",kerberos_keytab_file:"Kerberos keytab file",mechanism:"Mechanism"},http:{url:"URL",headers:"Headers",enable_pipelining:"HTTP Pipelining"},gcp_pubsub_producer:{pipelining:"HTTP Pipelining",service_account_json:"GCP Service Account Credentials",query_mode:"Query Mode",batch_size:"Batch Size"},azure_event_hub_producer:{bootstrap_hosts:"Bootstrap Hosts"},syskeeper_forwarder:{ack_mode:"ACK Mode",ack_timeout:"ACK Timeout"},redis:{parameters:"Redis Mode",sentinel:"Sentinel Mode"},mongodb:{parameters:"MongoDB Mode",w_mode:"Write Mode",r_mode:"Read Mode",srv_record:"Srv Record",use_legacy_protocol:"Use Legacy Protocol",auth_source:"Auth Source",replica_set_name:"Replica Set Name",max_overflow:"Max Overflow Workers",overflow_ttl:"Overflow TTL",overflow_check_period:"Overflow Check Period",local_threshold_ms:"Local Threshold",connect_timeout_ms:"Connect Timeout",socket_timeout_ms:"Socket Timeout",server_selection_timeout_ms:"Server Selection Timeout",wait_queue_timeout_ms:"Wait Queue Timeout",heartbeat_frequency_ms:"Heartbeat period",min_heartbeat_frequency_ms:"Minimum Heartbeat Period"}},s={common:{connect_timeout:"连接超时",bootstrap_hosts:"主机列表",min_metadata_refresh_interval:"元数据刷新最小间隔",metadata_request_timeout:"元数据请求超时",tcp_keepalive:"TCP Keepalive",sndbuf:"Socket 发送缓存大小",recbuf:"Socket 收包缓存大小",nodelay:"是否关闭延迟发送",username:"用户名",password:"密码",pool_size:"连接池大小",pool_type:"连接池类型",server:"服务器地址",database:"数据库名字",health_check_interval:"健康检查间隔",start_timeout:"启动超时时间",max_retries:"最大重试次数",worker_pool_size:"缓存池大小",request_ttl:"请求超期",max_buffer_bytes:"缓存队列最大长度",inflight_window:"请求飞行队列窗口",servers:"服务器列表"},kafka_producer:{kerberos_principal:"Kerberos Principal",kerberos_keytab_file:"Kerberos keytab 文件",mechanism:"认证方法"},http:{url:"URL",headers:"请求头",enable_pipelining:"HTTP 管道"},gcp_pubsub_producer:{pipelining:"HTTP 流水线",service_account_json:"GCP 服务账户凭证",query_mode:"请求模式",batch_size:"最大批量请求大小"},azure_event_hub_producer:{bootstrap_hosts:"引导主机"},syskeeper_forwarder:{ack_mode:"ACK 模式",ack_timeout:"ACK 超时"},redis:{parameters:"部署模式",sentinel:"哨兵模式"},mongodb:{parameters:"部署模式",w_mode:"写模式",r_mode:"读模式",srv_record:"SRV 记录",use_legacy_protocol:"使用旧协议",auth_source:"认证源",replica_set_name:"副本集名称",max_overflow:"最大溢出",overflow_ttl:"溢出 TTL",overflow_check_period:"溢出检查周期",local_threshold_ms:"本地阈值",connect_timeout_ms:"连接超时",socket_timeout_ms:"套接字操作超时",server_selection_timeout_ms:"服务器选择超时",wait_queue_timeout_ms:"等待队列超时",heartbeat_frequency_ms:"心跳期",min_heartbeat_frequency_ms:"最小心跳周期"}};e.SQLTemplates=t,e.enActionsLabel=a,e.enConnectorsLabel=r,e.zhActionsLabel=o,e.zhConnectorsLabel=s,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
28
+ "t/#"`,input:{data:[{id:1,name:"steve"},{id:2,name:"bill"}]},outputs:{id:1}}],a={common:{health_check_interval:"Health Check Interval",query_mode:"Query Mode",max_retries:"Max Retries",worker_pool_size:"Buffer Pool Size",start_after_created:"Start After Created",start_timeout:"Start Timeout",request_ttl:"Request TTL",inflight_window:"Inflight Window",max_buffer_bytes:"Max Buffer Queue Size",sql:"SQL Template",batch_size:"Batch Size",topic:"Kafka Topic",key:"Message Key",value:"Message Value",compression:"Compression",partition_strategy:"Partition Strategy",kafka_headers:"Kafka Headers",kafka_ext_headers:"More Kafka Headers",kafka_ext_header_key:"Key",kafka_ext_header_value:"Value",kafka_header_value_encode_mode:"Kafka Header Value Encode Mode",max_batch_bytes:"Max Batch Bytes",required_acks:"Required Acks",partition_count_refresh_interval:"Partition Count Refresh Interval",max_inflight:"Max Inflight",mode:"Buffer Mode",per_partition_limit:"Per-partition Buffer Limit",segment_bytes:"Segment File Bytes",memory_overload_protection:"Memory Overload Protection",sync_query_timeout:"Synchronous Query Timeout",template:"Message Template",partitions_limit:"Partitions Limit"},kafka_producer:{timestamp:"Message Timestamp",kafka_ext_header_key:"Kafka Header Key",kafka_ext_header_value:"Kafka Header Value"},http:{body:"Body",headers:"Headers",method:"Method",path:"URL Path"},azure_event_hub_producer:{topic:"Event Hub Name",key:"Message Key",value:"Message Value",partition_strategy:"Partition Strategy",required_acks:"Required Acks",kafka_headers:"Azure Event Hubs Headers",kafka_ext_headers:"Extra Azure Event Hubs headers",kafka_header_value_encode_mode:"Azure Event Hubs headers value encode mode",partition_count_refresh_interval:"Partition Count Refresh Interval",max_inflight:"Max Inflight",mode:"Buffer Mode",per_partition_limit:"Per-partition Buffer Limit",segment_bytes:"Segment File Bytes",memory_overload_protection:"Memory Overload Protection",max_batch_bytes:"Max Batch Bytes",query_mode:"Query mode"},gcp_pubsub_producer:{attributes_template:"Attributes Template",pubsub_topic:"GCP PubSub Topic",ordering_key_template:"Ordering Key template",payload_template:"Payload Template"},syskeeper_forwarder:{target_topic:"Topic",target_qos:"QoS"},redis:{command_template:"Redis Command Template"},mongodb:{collection:"Collection",payload_template:"Payload template"},iotdb:{device_id:"Device ID",is_aligned:"Align Timeseries",data:"Write Data",timestamp:"Timestamp",measurement:"Measurement",data_type:"Data Type",value:"Value"},influxdb:{precision:"Time Precision",write_syntax:"Write Syntax"},mqtt:{topic:"Topic",qos:"QoS",retain:"Retain",payload:"Payload"},elasticsearch:{parameters:"Action",index:"Index Name",id:"Document ID",doc:"Document Template",routing:"Routing",overwrite:"Overwrite Document",doc_as_upsert:"Enable Upsert"},cassandra:{cql:"CQL Template"},opents:{timestamp:"Timestamp",metric:"Metric",tags:"Tags",value:"Value",data:"Write Data"},gcp_pubsub_consumer:{payload_template:"Payload Template"},hstreamdb:{record_template:"HStream Record Template"},kafka_consumer:{payload_template:"MQTT Payload Template"},rabbitmq:{exchange:"Exchange",routing_key:"Routing Key",delivery_mode:"Message Delivery Mode",wait_for_publish_confirmations:"Wait for Publish Confirmations",publish_confirmation_timeout:"Publish Confirmation Timeout",payload_template:"Payload Template"},pulsar:{message_key:"Message Key",message_value:"Message Value"},kinesis:{payload_template:"Payload template",stream_name:"Amazon Kinesis Stream",partition_key:"Partition key"},greptimedb:{write_syntax:"Write Syntax",precision:"Time Precision"},tdengine:{database:"Database Name"},rocketmq:{topic:"RocketMQ Topic",refresh_interval:"Topic Route Refresh Interval",send_buffer:"Send Buffer Size",sync_timeout:"Sync Timeout"},clickhouse:{batch_value_separator:"Batch Value Separator"},s3:{bucket:"Bucket",acl:"ACL",content:"Content"}},r={common:{health_check_interval:"健康检查间隔",query_mode:"请求模式",max_retries:"最大重试次数",worker_pool_size:"缓存池大小",start_after_created:"创建后立即启动",start_timeout:"启动超时时间",request_ttl:"请求超期",inflight_window:"请求飞行队列窗口",max_buffer_bytes:"缓存队列最大长度",sql:"SQL 模板",batch_size:"最大批量请求大小",topic:"Kafka 主题名称",key:"消息的键",value:"消息的值",compression:"压缩",partition_strategy:"分区选择策略",kafka_headers:"Kafka Headers",kafka_ext_headers:"更多的 Kafka Headers",kafka_ext_header_key:"键",kafka_ext_header_value:"值",kafka_header_value_encode_mode:"Kafka Headers 值编码类型",max_batch_bytes:"最大批量字节数",required_acks:"Kafka 确认数量",partition_count_refresh_interval:"分区数量刷新间隔",max_inflight:"飞行窗口",mode:"缓存模式",per_partition_limit:"Kafka 分区缓存上限",segment_bytes:"缓存文件大小",memory_overload_protection:"内存过载保护",sync_query_timeout:"同步查询超时时间",template:"消息模板",partitions_limit:"分区限制"},kafka_producer:{timestamp:"消息的时间戳",kafka_ext_header_key:"Kafka Headers 键",kafka_ext_header_value:"Kafka Headers 值"},http:{body:"请求体",headers:"请求头",method:"请求方法",path:"URL 路径"},azure_event_hub_producer:{topic:"事件中心名称",key:"消息键",value:"消息值",partition_strategy:"分区策略",required_acks:"所需确认",kafka_headers:"Azure Event Hubs 头部",kafka_ext_headers:"额外的 Azure Event Hubs 头部信息",kafka_header_value_encode_mode:"Azure Event Hubs 头部值编码模式",partition_count_refresh_interval:"分区数刷新间隔",max_inflight:"最大传输数",mode:"缓冲区模式",per_partition_limit:"每个分区缓冲限制",segment_bytes:"段文件字节数",memory_overload_protection:"内存过载保护",max_batch_bytes:"最大批次字节数",query_mode:"查询模式"},gcp_pubsub_producer:{attributes_template:"属性模版",pubsub_topic:"GCP PubSub 主题",ordering_key_template:"排序键模板",payload_template:"HTTP 请求消息体模板"},syskeeper_forwarder:{target_topic:"主题",target_qos:"QoS"},redis:{command_template:"Redis 命令模板"},mongodb:{collection:"集合(Collection)",payload_template:"有效载荷模板"},iotdb:{device_id:"设备 ID",is_aligned:"对齐时间序列",data:"写入数据",timestamp:"时间戳",measurement:"字段",data_type:"数据类型",value:"值"},influxdb:{precision:"时间精度",write_syntax:"写语句"},mqtt:{topic:"主题",qos:"QoS",retain:"Retain",payload:"消息模版"},elasticsearch:{parameters:"操作",index:"索引名称",id:"文档 ID",doc:"文档模版",routing:"路由",overwrite:"是否覆盖文档",doc_as_upsert:"启用更新插入"},cassandra:{cql:"CQL 模板"},opents:{timestamp:"时间戳",metric:"度量",tags:"标签",value:"值",data:"写入数据"},gcp_pubsub_consumer:{payload_template:"HTTP 请求消息体模板"},hstreamdb:{record_template:"HStream Record 模板"},kafka_consumer:{payload_template:"MQTT Payload Template"},rabbitmq:{exchange:"交换机",routing_key:"路由键",delivery_mode:"消息传递模式",wait_for_publish_confirmations:"等待发布确认",publish_confirmation_timeout:"发布确认超时时间",payload_template:"有效载荷模板"},pulsar:{message_key:"消息的 Key",message_value:"消息的 Value"},kinesis:{payload_template:"载荷模板",stream_name:"Amazon Kinesis 流",partition_key:"分区键"},greptimedb:{write_syntax:"写语法",precision:"时间精度"},tdengine:{database:"数据库名字"},rocketmq:{topic:"RocketMQ 主题",refresh_interval:"主题路由更新间隔",send_buffer:"发送消息的缓冲区大小",sync_timeout:"同步调用超时时间"},clickhouse:{batch_value_separator:"分隔符"},s3:{bucket:"存储桶",acl:"ACL",content:"内容"}},s={common:{connect_timeout:"Connect Timeout",bootstrap_hosts:"Bootstrap Hosts",min_metadata_refresh_interval:"Min Metadata Refresh Interval",metadata_request_timeout:"Metadata Request Timeout",tcp_keepalive:"TCP Keepalive",sndbuf:"Socket Send Buffer Size",recbuf:"Socket Receive Buffer Size",nodelay:"No Delay",username:"Username",password:"Password",pool_size:"Connection Pool Size",pool_type:"Pool Type",server:"Server Host",database:"Database Name",health_check_interval:"Health Check Interval",start_timeout:"Start Timeout",max_retries:"Max Retries",worker_pool_size:"Buffer Pool Size",request_ttl:"Request TTL",max_buffer_bytes:"Max Buffer Queue Size",inflight_window:"Inflight Window",servers:"Servers",enable_pipelining:"HTTP Pipelining"},kafka_producer:{kerberos_principal:"Kerberos Principal",kerberos_keytab_file:"Kerberos keytab file",mechanism:"Mechanism",authentication:"Authentication"},http:{url:"URL",headers:"Headers",enable_pipelining:"HTTP Pipelining"},gcp_pubsub_producer:{pipelining:"HTTP Pipelining",service_account_json:"GCP Service Account Credentials",query_mode:"Query Mode",batch_size:"Batch Size"},azure_event_hub_producer:{bootstrap_hosts:"Bootstrap Hosts"},syskeeper_forwarder:{ack_mode:"ACK Mode",ack_timeout:"ACK Timeout"},redis:{parameters:"Redis Mode",sentinel:"Sentinel Mode"},mongodb:{parameters:"MongoDB Mode",w_mode:"Write Mode",r_mode:"Read Mode",srv_record:"Srv Record",use_legacy_protocol:"Use Legacy Protocol",auth_source:"Auth Source",replica_set_name:"Replica Set Name",max_overflow:"Max Overflow Workers",overflow_ttl:"Overflow TTL",overflow_check_period:"Overflow Check Period",local_threshold_ms:"Local Threshold",connect_timeout_ms:"Connect Timeout",socket_timeout_ms:"Socket Timeout",server_selection_timeout_ms:"Server Selection Timeout",wait_queue_timeout_ms:"Wait Queue Timeout",heartbeat_frequency_ms:"Heartbeat period",min_heartbeat_frequency_ms:"Minimum Heartbeat Period"},influxdb:{parameters:"Version of InfluxDB",bucket:"Bucket",org:"Organization",token:"Token"},iotdb:{base_url:"IoTDB REST Service Base URL",iotdb_version:"IoTDB Version"},elasticsearch:{server:"Server"},mqtt:{server:"MQTT Broker",clientid_prefix:"ClientID Prefix",proto_ver:"MQTT Version",bridge_mode:"Bridge Mode",clean_start:"Clean start",keepalive:"Keepalive",retry_interval:"Message Retry Interval",max_inflight:"Max Inflight"},cassandra:{keyspace:"Keyspace"},opents:{summary:"Summary",details:"Details"},clickhouse:{url:"Server URL"},dynamo:{url:"DynamoDB Endpoint",table:"Table ",aws_access_key_id:"AWS Access Key ID",aws_secret_access_key:"AWS Secret Access Key"},gcp_pubsub_consumer:{consumer_pubsub_topic:"GCP PubSub Topic",consumer_mqtt_topic:"MQTT Topic",consumer_qos:"QoS",pipelining:"HTTP Pipelining",service_account_json:"GCP Service Account Credentials",topic_mapping:"Topic Mapping",pull_max_messages:"Maximum Messages to Pull"},hstreamdb:{url:"HStreamDB Server URL",stream:"HStreamDB Stream Name",partition_key:"HStreamDB Partition Key",grpc_timeout:"HStreamDB gRPC Timeout"},kafka_consumer:{bootstrap_hosts:"Bootstrap Hosts",consumer_key_encoding_mode:"Key Encoding Mode",consumer_value_encoding_mode:"Value Encoding Mode",consumer_topic_mapping:"Topic Mapping",consumer_offset_reset_policy:"Offset Reset Policy",consumer_mqtt_topic:"MQTT Topic",min_metadata_refresh_interval:"Min Metadata Refresh Interval",metadata_request_timeout:"Metadata Request Timeout",consumer_max_batch_bytes:"Fetch Bytes",consumer_offset_commit_interval_seconds:"Offset Commit Interval",topic:"Kafka Topic",mqtt_topic:"MQTT Topic",qos:"QoS"},rocketmq:{access_key:"AccessKey",secret_key:"SecretKey",security_token:"Security Token"},sqlserver:{driver:"SQL Server Driver Name"},oracle:{sid:"Oracle Database SID",service_name:"Oracle Database Service Name"},rabbitmq:{port:"Port",virtual_host:"Virtual Host",heartbeat:"Heartbeat",timeout:"Connection Timeout"},pulsar:{pulsar_topic:"Pulsar Topic Name",strategy:"Partition Strategy",compression:"Compression",sync_timeout:"Sync Publish Timeout",retention_period:"Retention Period",send_buffer:"Socket Send Buffer Size",max_batch_bytes:"Max Batch Bytes",buffer_mode:"Buffer Mode",buffer_per_partition_limit:"Per-partition Buffer Limit",buffer_segment_bytes:"Segment File Bytes",buffer_memory_overload_protection:"Memory Overload Protection",authentication_jwt:"JWT"},kinesis:{aws_access_key_id:"AWS Access Key ID",aws_secret_access_key:"AWS Secret Access Key",endpoint:"Amazon Kinesis Endpoint"},greptimedb:{dbname:"Database"},s3:{access_key_id:"Access Key ID",secret_access_key:"Secret Access Key",host:"Host",port:"Port",ipv6_probe:"IPv6 Probe",headers:"HTTP Headers",request_timeout:"Request Timeout"}},o={common:{connect_timeout:"连接超时",bootstrap_hosts:"主机列表",min_metadata_refresh_interval:"元数据刷新最小间隔",metadata_request_timeout:"元数据请求超时",tcp_keepalive:"TCP Keepalive",sndbuf:"Socket 发送缓存大小",recbuf:"Socket 收包缓存大小",nodelay:"是否关闭延迟发送",username:"用户名",password:"密码",pool_size:"连接池大小",pool_type:"连接池类型",server:"服务器地址",database:"数据库名字",health_check_interval:"健康检查间隔",start_timeout:"启动超时时间",max_retries:"最大重试次数",worker_pool_size:"缓存池大小",request_ttl:"请求超期",max_buffer_bytes:"缓存队列最大长度",inflight_window:"请求飞行队列窗口",servers:"服务器列表",enable_pipelining:"HTTP 流水线"},kafka_producer:{kerberos_principal:"Kerberos Principal",kerberos_keytab_file:"Kerberos Keytab 文件",mechanism:"认证方法",authentication:"认证"},http:{url:"URL",headers:"请求头",enable_pipelining:"HTTP 管道"},gcp_pubsub_producer:{pipelining:"HTTP 流水线",service_account_json:"GCP 服务账户凭证",query_mode:"请求模式",batch_size:"最大批量请求大小"},azure_event_hub_producer:{bootstrap_hosts:"引导主机"},syskeeper_forwarder:{ack_mode:"ACK 模式",ack_timeout:"ACK 超时"},redis:{parameters:"部署模式",sentinel:"哨兵模式"},mongodb:{parameters:"部署模式",w_mode:"写模式",r_mode:"读模式",srv_record:"SRV 记录",use_legacy_protocol:"使用旧协议",auth_source:"认证源",replica_set_name:"副本集名称",max_overflow:"最大溢出",overflow_ttl:"溢出 TTL",overflow_check_period:"溢出检查周期",local_threshold_ms:"本地阈值",connect_timeout_ms:"连接超时",socket_timeout_ms:"套接字操作超时",server_selection_timeout_ms:"服务器选择超时",wait_queue_timeout_ms:"等待队列超时",heartbeat_frequency_ms:"心跳期",min_heartbeat_frequency_ms:"最小心跳周期"},influxdb:{parameters:"InfluxDB 版本",bucket:"Bucket",org:"组织",token:"Token"},iotdb:{base_url:"IoTDB REST 服务基础 URL",iotdb_version:"IoTDB 版本"},elasticsearch:{server:"服务器地址"},mqtt:{server:"MQTT 服务地址",clientid_prefix:"客户端 ID 前缀",proto_ver:"MQTT 协议版本",bridge_mode:"桥接模式",clean_start:"清除会话",keepalive:"Keepalive",retry_interval:"消息重发间隔",max_inflight:"飞行窗口"},cassandra:{keyspace:"Keyspace"},opents:{summary:"摘要信息",details:"详细信息"},clickhouse:{url:"服务器 URL"},dynamo:{url:"DynamoDB 地址",table:"表",aws_access_key_id:"连接访问 ID",aws_secret_access_key:"连接访问密钥"},gcp_pubsub_consumer:{consumer_pubsub_topic:"GCP PubSub 主题",consumer_mqtt_topic:"MQTT 主题",consumer_qos:"QoS",pipelining:"HTTP 流水线",service_account_json:"GCP 服务账户凭证",topic_mapping:"主题映射",pull_max_messages:"拉取的最大消息数"},hstreamdb:{url:"HStreamDB 服务器 URL",stream:"HStreamDB 流名称",partition_key:"HStreamDB 分区键",grpc_timeout:"HStreamDB gRPC 超时"},kafka_consumer:{bootstrap_hosts:"主机列表",consumer_key_encoding_mode:"Key 编码模式",consumer_value_encoding_mode:"Value 编码模式",consumer_topic_mapping:"主题映射关系",consumer_offset_reset_policy:"偏移重置策略",consumer_mqtt_topic:"MQTT 主题",min_metadata_refresh_interval:"元数据刷新最小间隔",metadata_request_timeout:"元数据请求超时",consumer_max_batch_bytes:"拉取字节数",consumer_offset_commit_interval_seconds:"偏移提交间隔",topic:"Kafka 主题名称",mqtt_topic:"MQTT 主题",qos:"QoS"},rocketmq:{access_key:"AccessKey",secret_key:"SecretKey",security_token:"安全令牌"},sqlserver:{driver:"SQL Server Driver 名称"},oracle:{sid:"Oracle Database SID",service_name:"Oracle 数据库服务名称"},rabbitmq:{port:"端口",virtual_host:"虚拟主机",heartbeat:"心跳",timeout:"连接超时时间"},pulsar:{pulsar_topic:"Pulsar 主题名称",strategy:"分区选择策略",compression:"压缩",sync_timeout:"同步发布超时",retention_period:"保留期",send_buffer:"Socket 发送缓存大小",max_batch_bytes:"最大批量字节数",buffer_mode:"缓存模式",buffer_per_partition_limit:"Pulsar 分区缓存上限",buffer_segment_bytes:"缓存文件大小",buffer_memory_overload_protection:"内存过载保护",authentication_jwt:"JWT"},kinesis:{aws_access_key_id:"AWS 访问密钥 ID",aws_secret_access_key:"AWS 秘密访问密钥",endpoint:"Amazon Kinesis 端点"},greptimedb:{dbname:"数据库"},s3:{access_key_id:"访问密钥 ID",secret_access_key:"访问密钥",host:"地址",port:"端口",ipv6_probe:"IPv6 探针",headers:"请求头",request_timeout:"HTTP 请求超时"}},i={authn:{mysql:"CREATE TABLE IF NOT EXISTS `mqtt_user` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n `username` varchar(100) DEFAULT NULL,\n `password_hash` varchar(100) DEFAULT NULL,\n `salt` varchar(35) DEFAULT NULL,\n `is_superuser` tinyint(1) DEFAULT 0,\n `created` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `mqtt_username` (`username`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;",postgresql:`CREATE TABLE mqtt_user (
29
+ id SERIAL primary key,
30
+ is_superuser boolean,
31
+ username character varying(100),
32
+ password_hash character varying(100),
33
+ salt character varying(40)
34
+ )`,mongodb:`{
35
+ username: "emqx_user",
36
+ password_hash: "******",
37
+ salt: "foo+bar",
38
+ is_superuser: false,
39
+ created: "2021-01-01 12:00:01"
40
+ }
41
+
42
+ db.mqtt_user.findOne({"username": "emqx_user"})`,redis:`# sample data
43
+ HMSET mqtt_user:emqx_u password_hash *** salt foo+bar is_superuser 1
44
+
45
+ # sample cmd
46
+ # HMGET mqtt_user:\${username}
47
+
48
+ ## only password
49
+ HMGET mqtt_user:emqx_u password_hash
50
+
51
+ ## password + salt
52
+ HMGET mqtt_user:emqx_u password_hash salt
53
+
54
+ ## password + salt, enable superuser
55
+ HMGET mqtt_user:emqx_u password_hash salt is_superuser
56
+
57
+ ## only password, enable superuser
58
+ HMGET mqtt_user:emqx_u password_hash is_superuser`},authz:{mysql:"CREATE TABLE `mqtt_acl` (\n`id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n`ipaddress` VARCHAR(60) NOT NULL DEFAULT '',\n`username` VARCHAR(255) NOT NULL DEFAULT '',\n`clientid` VARCHAR(255) NOT NULL DEFAULT '',\n`action` ENUM('publish', 'subscribe', 'all') NOT NULL,\n`permission` ENUM('allow', 'deny') NOT NULL,\n`topic` VARCHAR(255) NOT NULL DEFAULT '',\nPRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;",postgresql:`CREATE TYPE ACTION AS ENUM('publish','subscribe','all');
59
+ CREATE TYPE PERMISSION AS ENUM('allow','deny');
60
+
61
+ CREATE TABLE mqtt_acl (
62
+ id SERIAL PRIMARY KEY,
63
+ ipaddress CHARACTER VARYING(60) NOT NULL DEFAULT '',
64
+ username CHARACTER VARYING(255) NOT NULL DEFAULT '',
65
+ clientid CHARACTER VARYING(255) NOT NULL DEFAULT '',
66
+ action ACTION,
67
+ permission PERMISSION,
68
+ topic CHARACTER VARYING(255) NOT NULL
69
+ );`,mongodb:`{
70
+ username: "emqx_u",
71
+ clientid: "emqx_c",
72
+ ipaddress: "127.0.0.1",
73
+ permission: "allow",
74
+ action: "all",
75
+ topics: ["#"]
76
+ }
77
+
78
+ db.mqtt_acl.findOne({"username": "emqx_user"})`,redis:`# sample data
79
+ HSET mqtt_acl:emqx_u 't/#' subscribe
80
+
81
+ # sample cmd
82
+ HGETALL mqtt_acl:\${username}`}};e.SQLTemplates=t,e.authHelpCodeMap=i,e.enActionsLabel=a,e.enConnectorsLabel=s,e.zhActionsLabel=r,e.zhConnectorsLabel=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emqx/shared-ui-i18n",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "homepage": "https://emqx.io",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {