-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathHuaweiDrsKafkaConvertor.js
More file actions
119 lines (109 loc) · 3.38 KB
/
HuaweiDrsKafkaConvertor.js
File metadata and controls
119 lines (109 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import i18n from '@tap/i18n'
import { NodeType } from './extends/NodeType'
export class UnwindProcessor extends NodeType {
constructor() {
super()
}
type = 'huawei_drs_kafka_convertor'
maxInputs = 1 // 最大输入个数
maxOutputs = 1 // 最大输出个数
group = 'processor'
formSchema = {
type: 'object',
properties: {
$inputs: {
type: 'array',
display: 'none'
},
tabs: {
type: 'void',
'x-component': 'FormTab',
'x-component-props': {
class: 'config-tabs',
formTab: '{{formTab}}'
},
properties: {
tab1: {
type: 'void',
'x-component': 'FormTab.TabPane',
'x-component-props': {
label: i18n.t('public_basic_settings')
},
properties: {
nameWrap: {
type: 'void',
title: i18n.t('public_node_name'),
'x-decorator': 'FormItem',
'x-decorator-props': {
asterisk: true,
feedbackLayout: 'none'
},
'x-component': 'FormFlex',
'x-component-props': {
gap: 8,
align: 'start'
},
properties: {
name: {
type: 'string',
required: true,
'x-decorator': 'FormItem',
'x-decorator-props': {
style: {
flex: 1
}
},
'x-component': 'Input',
'x-component-props': {
onChange: `{{() => { $values.attrs.hasNameEdited = true }}}`
}
},
clipboardButton: {
type: 'void',
'x-component': 'ClipboardButton',
'x-component-props': {
tooltip: i18n.t('packages_dag_copy_node_id'),
finishTooltip: i18n.t('packages_dag_nodes_table_yifuzhi'),
content: '{{$values.id}}'
}
}
}
},
storeType: {
title: i18n.t('public_store_type'),
type: 'string',
default: 'JSON',
enum: ['AVRO', 'JSON', 'JSON_C'],
'x-decorator': 'FormItem',
'x-component': 'Radio.Group',
'x-display': 'hidden'
},
fromDBType: {
title: i18n.t('public_from_db_type'),
type: 'string',
default: 'MYSQL',
enum: ['MYSQL', 'GAUSSDB_MYSQL', 'GAUSSDB', 'ORACLE', 'MSSQL', 'POSTGRESQL'],
'x-decorator': 'FormItem',
'x-component': 'Select'
},
sampleSize: {
title: i18n.t('public_sample_size'),
type: 'number',
default: 10,
'x-decorator': 'FormItem',
'x-component': 'InputNumber',
'x-component-props': {
min: 1
}
},
schemaPreview: {
type: 'void',
'x-component': 'SchemaPreview'
}
}
}
}
}
}
}
}