ronds-metadata 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
- .metadata-edit {
2
- height: 100%;
3
- width: 100%;
4
- .ant-row {
5
- display: block;
6
- }
7
- .pr-10 {
8
- padding-right: 10px;
9
- }
10
- }
1
+ .metadata-edit {
2
+ height: 100%;
3
+ width: 100%;
4
+ .ant-row {
5
+ display: block;
6
+ }
7
+ .pr-10 {
8
+ padding-right: 10px;
9
+ }
10
+ }
@@ -1,20 +1,20 @@
1
- export interface IMetaFileds {
2
- id: string;
3
- type: 'object';
4
- properties: any[];
5
- value: any;
6
- }
7
-
8
- export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
-
10
- export type IMetaProperty = {
11
- /**
12
- * 属性的名称
13
- */
14
- id: string;
15
- /**
16
- * 类型
17
- */
18
- type: string;
19
- enum?: any[];
20
- };
1
+ export interface IMetaFileds {
2
+ id: string;
3
+ type: 'object';
4
+ properties: any[];
5
+ value: any;
6
+ }
7
+
8
+ export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
+
10
+ export type IMetaProperty = {
11
+ /**
12
+ * 属性的名称
13
+ */
14
+ id: string;
15
+ /**
16
+ * 类型
17
+ */
18
+ type: string;
19
+ enum?: any[];
20
+ };
@@ -1,35 +1,35 @@
1
- .with-add-on-after {
2
- --card-bg: #ffffff;
3
- position: relative;
4
- width: 100%;
5
-
6
- .ant-form-item-label {
7
- padding: 0 !important;
8
- }
9
-
10
- & > .ant-form-item {
11
- padding: 0 0 8px !important;
12
- flex: 1;
13
- }
14
- &-extra {
15
- position: absolute;
16
- right: 20px;
17
- top: 18px;
18
- padding: 0 6px;
19
- background-color: var(--card-bg);
20
- z-index: 1000;
21
- }
22
- &-ref {
23
- position: absolute;
24
- right: 20px;
25
- top: -10px;
26
- padding: 0 6px;
27
- background-color: var(--card-bg);
28
- z-index: 1000;
29
- }
30
- /* .ant-col-2.7 {
31
- display: block;
32
- flex: 0 0 75%;
33
- max-width: 75%;
34
- } */
35
- }
1
+ .with-add-on-after {
2
+ --card-bg: #ffffff;
3
+ position: relative;
4
+ width: 100%;
5
+
6
+ .ant-form-item-label {
7
+ padding: 0 !important;
8
+ }
9
+
10
+ & > .ant-form-item {
11
+ padding: 0 0 8px !important;
12
+ flex: 1;
13
+ }
14
+ &-extra {
15
+ position: absolute;
16
+ right: 20px;
17
+ top: 18px;
18
+ padding: 0 6px;
19
+ background-color: var(--card-bg);
20
+ z-index: 1000;
21
+ }
22
+ &-ref {
23
+ position: absolute;
24
+ right: 20px;
25
+ top: -10px;
26
+ padding: 0 6px;
27
+ background-color: var(--card-bg);
28
+ z-index: 1000;
29
+ }
30
+ /* .ant-col-2.7 {
31
+ display: block;
32
+ flex: 0 0 75%;
33
+ max-width: 75%;
34
+ } */
35
+ }
@@ -4,6 +4,7 @@
4
4
  // }
5
5
  .ant-form-item {
6
6
  margin: 0 !important;
7
+ flex-wrap: nowrap !important;
7
8
  }
8
9
  .ant-form-item-label > label .ant-form-item-tooltip {
9
10
  margin-left: 5px;
@@ -1,227 +1,227 @@
1
1
  @font-face {
2
- font-family: "fa"; /* Project id 2247093 */
3
- src: url('iconfont.woff2?t=1677143238460') format('woff2'),
4
- url('iconfont.woff?t=1677143238460') format('woff'),
5
- url('iconfont.ttf?t=1677143238460') format('truetype');
2
+ font-family: "mt"; /* Project id 2247093 */
3
+ src: url('iconfont.woff2?t=1677200873461') format('woff2'),
4
+ url('iconfont.woff?t=1677200873461') format('woff'),
5
+ url('iconfont.ttf?t=1677200873461') format('truetype');
6
6
  }
7
7
 
8
- .fa {
9
- font-family: "fa" !important;
8
+ .mt {
9
+ font-family: "mt" !important;
10
10
  font-size: 16px;
11
11
  font-style: normal;
12
12
  -webkit-font-smoothing: antialiased;
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
- .fa-elasticsearch:before {
16
+ .mt-elasticsearch:before {
17
17
  content: "\e6a1";
18
18
  }
19
19
 
20
- .fa-transform:before {
20
+ .mt-transform:before {
21
21
  content: "\ed70";
22
22
  }
23
23
 
24
- .fa-info:before {
24
+ .mt-info:before {
25
25
  content: "\e7dc";
26
26
  }
27
27
 
28
- .fa-expert:before {
28
+ .mt-expert:before {
29
29
  content: "\e60c";
30
30
  }
31
31
 
32
- .fa-ai1:before {
32
+ .mt-ai1:before {
33
33
  content: "\e60d";
34
34
  }
35
35
 
36
- .fa-ai2:before {
36
+ .mt-ai2:before {
37
37
  content: "\e893";
38
38
  }
39
39
 
40
- .fa-ai:before {
40
+ .mt-ai:before {
41
41
  content: "\e887";
42
42
  }
43
43
 
44
- .fa-signal:before {
44
+ .mt-signal:before {
45
45
  content: "\ec4a";
46
46
  }
47
47
 
48
- .fa-circle:before {
48
+ .mt-circle:before {
49
49
  content: "\e660";
50
50
  }
51
51
 
52
- .fa-scan:before {
52
+ .mt-scan:before {
53
53
  content: "\e6df";
54
54
  }
55
55
 
56
- .fa-py:before {
56
+ .mt-py:before {
57
57
  content: "\e916";
58
58
  }
59
59
 
60
- .fa-Redis:before {
60
+ .mt-Redis:before {
61
61
  content: "\e669";
62
62
  }
63
63
 
64
- .fa-hezi:before {
64
+ .mt-hezi:before {
65
65
  content: "\e60b";
66
66
  }
67
67
 
68
- .fa-message:before {
68
+ .mt-message:before {
69
69
  content: "\e637";
70
70
  }
71
71
 
72
- .fa-shujuku:before {
72
+ .mt-shujuku:before {
73
73
  content: "\e645";
74
74
  }
75
75
 
76
- .fa-hourglass:before {
76
+ .mt-hourglass:before {
77
77
  content: "\e66b";
78
78
  }
79
79
 
80
- .fa-Bucket:before {
80
+ .mt-Bucket:before {
81
81
  content: "\e8ce";
82
82
  }
83
83
 
84
- .fa-RondsLake:before {
84
+ .mt-RondsLake:before {
85
85
  content: "\e8a2";
86
86
  }
87
87
 
88
- .fa-Schema:before {
88
+ .mt-Schema:before {
89
89
  content: "\e62a";
90
90
  }
91
91
 
92
- .fa-Minio:before {
92
+ .mt-Minio:before {
93
93
  content: "\e64e";
94
94
  }
95
95
 
96
- .fa-color:before {
96
+ .mt-color:before {
97
97
  content: "\e678";
98
98
  }
99
99
 
100
- .fa-Neo4j:before {
100
+ .mt-Neo4j:before {
101
101
  content: "\e612";
102
102
  }
103
103
 
104
- .fa-knowledge:before {
104
+ .mt-knowledge:before {
105
105
  content: "\e621";
106
106
  }
107
107
 
108
- .fa-evaluate:before {
108
+ .mt-evaluate:before {
109
109
  content: "\e608";
110
110
  }
111
111
 
112
- .fa-json1:before {
112
+ .mt-json1:before {
113
113
  content: "\e7bd";
114
114
  }
115
115
 
116
- .fa-result:before {
116
+ .mt-result:before {
117
117
  content: "\e64c";
118
118
  }
119
119
 
120
- .fa-analysis:before {
120
+ .mt-analysis:before {
121
121
  content: "\e72e";
122
122
  }
123
123
 
124
- .fa-select:before {
124
+ .mt-select:before {
125
125
  content: "\e701";
126
126
  }
127
127
 
128
- .fa-Http:before {
128
+ .mt-Http:before {
129
129
  content: "\e668";
130
130
  }
131
131
 
132
- .fa-question:before {
132
+ .mt-question:before {
133
133
  content: "\e60e";
134
134
  }
135
135
 
136
- .fa-monitor:before {
136
+ .mt-monitor:before {
137
137
  content: "\e61f";
138
138
  }
139
139
 
140
- .fa-algorithm_lab:before {
140
+ .mt-algorithm_lab:before {
141
141
  content: "\e607";
142
142
  }
143
143
 
144
- .fa-engine:before {
144
+ .mt-engine:before {
145
145
  content: "\e610";
146
146
  }
147
147
 
148
- .fa-user:before {
148
+ .mt-user:before {
149
149
  content: "\e713";
150
150
  }
151
151
 
152
- .fa-logout:before {
152
+ .mt-logout:before {
153
153
  content: "\e611";
154
154
  }
155
155
 
156
- .fa-screen:before {
156
+ .mt-screen:before {
157
157
  content: "\e606";
158
158
  }
159
159
 
160
- .fa-password:before {
160
+ .mt-password:before {
161
161
  content: "\e605";
162
162
  }
163
163
 
164
- .fa-news:before {
164
+ .mt-news:before {
165
165
  content: "\e638";
166
166
  }
167
167
 
168
- .fa-record:before {
168
+ .mt-record:before {
169
169
  content: "\e648";
170
170
  }
171
171
 
172
- .fa-home:before {
172
+ .mt-home:before {
173
173
  content: "\e609";
174
174
  }
175
175
 
176
- .fa-json:before {
176
+ .mt-json:before {
177
177
  content: "\e61a";
178
178
  }
179
179
 
180
- .fa-code:before {
180
+ .mt-code:before {
181
181
  content: "\e654";
182
182
  }
183
183
 
184
- .fa-diagram:before {
184
+ .mt-diagram:before {
185
185
  content: "\e60a";
186
186
  }
187
187
 
188
- .fa-setting:before {
188
+ .mt-setting:before {
189
189
  content: "\e84b";
190
190
  }
191
191
 
192
- .fa-datasource:before {
192
+ .mt-datasource:before {
193
193
  content: "\e62e";
194
194
  }
195
195
 
196
- .fa-stream:before {
196
+ .mt-stream:before {
197
197
  content: "\ec56";
198
198
  }
199
199
 
200
- .fa-Kafka:before {
200
+ .mt-Kafka:before {
201
201
  content: "\e64f";
202
202
  }
203
203
 
204
- .fa-Table:before {
204
+ .mt-Table:before {
205
205
  content: "\e72d";
206
206
  }
207
207
 
208
- .fa-PostgreSql:before {
208
+ .mt-PostgreSql:before {
209
209
  content: "\e63b";
210
210
  }
211
211
 
212
- .fa-link:before {
212
+ .mt-link:before {
213
213
  content: "\e636";
214
214
  }
215
215
 
216
- .fa-LocalFileSystem:before {
216
+ .mt-LocalFileSystem:before {
217
217
  content: "\e600";
218
218
  }
219
219
 
220
- .fa-Cassandra:before {
220
+ .mt-Cassandra:before {
221
221
  content: "\e74f";
222
222
  }
223
223
 
224
- .fa-DataBase:before {
224
+ .mt-DataBase:before {
225
225
  content: "\e797";
226
226
  }
227
227
 
@@ -1,98 +1,98 @@
1
- /*
2
- * @Author: wangxian
3
- * @Date: 2021-09-18 14:15:04
4
- * @LastEditTime: 2023-02-09 18:37:15
5
- */
6
- export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
7
-
8
- export type IMetaData = {
9
- /**
10
- * 类名称/属性名称
11
- */
12
- id: string;
13
- /**
14
- * 类型
15
- */
16
- type: IMetaType;
17
- /**
18
- * 属性
19
- */
20
- properties?: IMetaProperties[];
21
-
22
- /**
23
- * 引用id
24
- */
25
- refId?: string;
26
- /**
27
- * 静态的变量
28
- */
29
- fields?: IMetaFileds[];
30
- /**
31
- * 内部类
32
- */
33
- types?: IMetaData[];
34
- };
35
-
36
- export type IMetaProperties = {
37
- /**
38
- * 类规则名称
39
- */
40
- id: string;
41
-
42
- /**
43
- * 类型
44
- */
45
- type: IMetaType;
46
-
47
- /**
48
- * 引用id
49
- */
50
- refId?: string;
51
- /**
52
- * 静态的变量
53
- */
54
- fields?: IMetaFileds[];
55
- /**
56
- * 枚举值
57
- */
58
- enum?: { value: string }[];
59
- /**
60
- * 数组类型
61
- */
62
- items?: { type: IMetaType; refId?: string };
63
- };
64
-
65
- export type IMetaFileds = {
66
- /**
67
- * 规则名称
68
- */
69
- id: string;
70
-
71
- /**
72
- * 类型
73
- */
74
- type: IMetaType;
75
-
76
- /**
77
- * 引用id
78
- */
79
- refId?: string;
80
-
81
- /**
82
- * 规则值
83
- */
84
- value: any;
85
- };
86
-
87
- export interface IAPI {
88
- // 获取元数据列表
89
- GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
90
- // 通过元数据Id获取元数据详情
91
- GetMetadataDetailById(metadataId: string): Promise<any>;
92
- // 新增元数据
93
- SaveMetadata(data: any, metadataTag: string): Promise<any>;
94
- // 获取元数据的值
95
- GetMetadataObjList(data: any): Promise<any[]>;
96
- /** 通过扩展规则获取枚举类型的值 */
97
- GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
98
- }
1
+ /*
2
+ * @Author: wangxian
3
+ * @Date: 2021-09-18 14:15:04
4
+ * @LastEditTime: 2023-02-09 18:37:15
5
+ */
6
+ export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
7
+
8
+ export type IMetaData = {
9
+ /**
10
+ * 类名称/属性名称
11
+ */
12
+ id: string;
13
+ /**
14
+ * 类型
15
+ */
16
+ type: IMetaType;
17
+ /**
18
+ * 属性
19
+ */
20
+ properties?: IMetaProperties[];
21
+
22
+ /**
23
+ * 引用id
24
+ */
25
+ refId?: string;
26
+ /**
27
+ * 静态的变量
28
+ */
29
+ fields?: IMetaFileds[];
30
+ /**
31
+ * 内部类
32
+ */
33
+ types?: IMetaData[];
34
+ };
35
+
36
+ export type IMetaProperties = {
37
+ /**
38
+ * 类规则名称
39
+ */
40
+ id: string;
41
+
42
+ /**
43
+ * 类型
44
+ */
45
+ type: IMetaType;
46
+
47
+ /**
48
+ * 引用id
49
+ */
50
+ refId?: string;
51
+ /**
52
+ * 静态的变量
53
+ */
54
+ fields?: IMetaFileds[];
55
+ /**
56
+ * 枚举值
57
+ */
58
+ enum?: { value: string }[];
59
+ /**
60
+ * 数组类型
61
+ */
62
+ items?: { type: IMetaType; refId?: string };
63
+ };
64
+
65
+ export type IMetaFileds = {
66
+ /**
67
+ * 规则名称
68
+ */
69
+ id: string;
70
+
71
+ /**
72
+ * 类型
73
+ */
74
+ type: IMetaType;
75
+
76
+ /**
77
+ * 引用id
78
+ */
79
+ refId?: string;
80
+
81
+ /**
82
+ * 规则值
83
+ */
84
+ value: any;
85
+ };
86
+
87
+ export interface IAPI {
88
+ // 获取元数据列表
89
+ GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
90
+ // 通过元数据Id获取元数据详情
91
+ GetMetadataDetailById(metadataId: string): Promise<any>;
92
+ // 新增元数据
93
+ SaveMetadata(data: any, metadataTag: string): Promise<any>;
94
+ // 获取元数据的值
95
+ GetMetadataObjList(data: any): Promise<any[]>;
96
+ /** 通过扩展规则获取枚举类型的值 */
97
+ GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
98
+ }