Skip to content

Commit 943295a

Browse files
flatten script config (#72)
1 parent a41cee1 commit 943295a

File tree

4 files changed

+126
-270
lines changed

4 files changed

+126
-270
lines changed

properties_pane/container_level/containerLevelConfig.json

Lines changed: 42 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -188,116 +188,68 @@ making sure that you maintain a proper JSON format.
188188
{
189189
"propertyName": "Before CREATE DATABASE",
190190
"propertyKeyword": "beforeCreateContainer",
191-
"propertyType": "block",
192-
"propertyTooltip": "",
193-
"structure": [
194-
{
195-
"propertyName": "Script",
196-
"propertyKeyword": "script",
197-
"propertyType": "details",
198-
"markdown": false,
199-
"template": "codeEditor",
200-
"templateOptions": {
201-
"editorDialect": "sql",
202-
"customScriptVariables": true
203-
}
204-
}
205-
]
191+
"propertyType": "details",
192+
"markdown": false,
193+
"template": "codeEditor",
194+
"templateOptions": {
195+
"editorDialect": "sql",
196+
"customScriptVariables": true
197+
}
206198
},
207199
{
208200
"propertyName": "After CREATE DATABASE",
209201
"propertyKeyword": "afterCreateContainer",
210-
"propertyType": "block",
211-
"propertyTooltip": "",
212-
"structure": [
213-
{
214-
"propertyName": "Script",
215-
"propertyKeyword": "script",
216-
"propertyType": "details",
217-
"markdown": false,
218-
"template": "codeEditor",
219-
"templateOptions": {
220-
"editorDialect": "sql",
221-
"customScriptVariables": true
222-
}
223-
}
224-
]
202+
"propertyType": "details",
203+
"markdown": false,
204+
"template": "codeEditor",
205+
"templateOptions": {
206+
"editorDialect": "sql",
207+
"customScriptVariables": true
208+
}
225209
},
226210
{
227211
"propertyName": "Before each CREATE TABLE",
228212
"propertyKeyword": "beforeCreateEntity",
229-
"propertyType": "block",
230-
"propertyTooltip": "",
231-
"structure": [
232-
{
233-
"propertyName": "Script",
234-
"propertyKeyword": "script",
235-
"propertyType": "details",
236-
"markdown": false,
237-
"template": "codeEditor",
238-
"templateOptions": {
239-
"editorDialect": "sql",
240-
"customScriptVariables": true
241-
}
242-
}
243-
]
213+
"propertyType": "details",
214+
"markdown": false,
215+
"template": "codeEditor",
216+
"templateOptions": {
217+
"editorDialect": "sql",
218+
"customScriptVariables": true
219+
}
244220
},
245221
{
246222
"propertyName": "After each CREATE TABLE",
247223
"propertyKeyword": "afterCreateEntity",
248-
"propertyType": "block",
249-
"propertyTooltip": "",
250-
"structure": [
251-
{
252-
"propertyName": "Script",
253-
"propertyKeyword": "script",
254-
"propertyType": "details",
255-
"markdown": false,
256-
"template": "codeEditor",
257-
"templateOptions": {
258-
"editorDialect": "sql",
259-
"customScriptVariables": true
260-
}
261-
}
262-
]
224+
"propertyType": "details",
225+
"markdown": false,
226+
"template": "codeEditor",
227+
"templateOptions": {
228+
"editorDialect": "sql",
229+
"customScriptVariables": true
230+
}
263231
},
264232
{
265233
"propertyName": "Before each CREATE VIEW",
266234
"propertyKeyword": "beforeCreateView",
267-
"propertyType": "block",
268-
"propertyTooltip": "",
269-
"structure": [
270-
{
271-
"propertyName": "Script",
272-
"propertyKeyword": "script",
273-
"propertyType": "details",
274-
"markdown": false,
275-
"template": "codeEditor",
276-
"templateOptions": {
277-
"editorDialect": "sql",
278-
"customScriptVariables": true
279-
}
280-
}
281-
]
235+
"propertyType": "details",
236+
"markdown": false,
237+
"template": "codeEditor",
238+
"templateOptions": {
239+
"editorDialect": "sql",
240+
"customScriptVariables": true
241+
}
282242
},
283243
{
284244
"propertyName": "After each CREATE VIEW",
285245
"propertyKeyword": "afterCreateView",
286-
"propertyType": "block",
287-
"propertyTooltip": "",
288-
"structure": [
289-
{
290-
"propertyName": "Script",
291-
"propertyKeyword": "script",
292-
"propertyType": "details",
293-
"markdown": false,
294-
"template": "codeEditor",
295-
"templateOptions": {
296-
"editorDialect": "sql",
297-
"customScriptVariables": true
298-
}
299-
}
300-
]
246+
"propertyType": "details",
247+
"markdown": false,
248+
"template": "codeEditor",
249+
"templateOptions": {
250+
"editorDialect": "sql",
251+
"customScriptVariables": true
252+
}
301253
}
302254
]
303255
},

properties_pane/entity_level/entityLevelConfig.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -654,40 +654,24 @@ making sure that you maintain a proper JSON format.
654654
{
655655
"propertyName": "Before CREATE TABLE",
656656
"propertyKeyword": "beforeCreateEntity",
657-
"propertyType": "block",
658-
"propertyTooltip": "",
659-
"structure": [
660-
{
661-
"propertyName": "Script",
662-
"propertyKeyword": "script",
663-
"propertyType": "details",
664-
"markdown": false,
665-
"template": "codeEditor",
666-
"templateOptions": {
667-
"editorDialect": "sql",
668-
"customScriptVariables": true
669-
}
670-
}
671-
]
657+
"propertyType": "details",
658+
"markdown": false,
659+
"template": "codeEditor",
660+
"templateOptions": {
661+
"editorDialect": "sql",
662+
"customScriptVariables": true
663+
}
672664
},
673665
{
674666
"propertyName": "After CREATE TABLE",
675667
"propertyKeyword": "afterCreateEntity",
676-
"propertyType": "block",
677-
"propertyTooltip": "",
678-
"structure": [
679-
{
680-
"propertyName": "Script",
681-
"propertyKeyword": "script",
682-
"propertyType": "details",
683-
"markdown": false,
684-
"template": "codeEditor",
685-
"templateOptions": {
686-
"editorDialect": "sql",
687-
"customScriptVariables": true
688-
}
689-
}
690-
]
668+
"propertyType": "details",
669+
"markdown": false,
670+
"template": "codeEditor",
671+
"templateOptions": {
672+
"editorDialect": "sql",
673+
"customScriptVariables": true
674+
}
691675
}
692676
]
693677
},

0 commit comments

Comments
 (0)