Skip to content

Commit bee418f

Browse files
flatten script config (#57)
1 parent d64cb07 commit bee418f

4 files changed

Lines changed: 126 additions & 270 deletions

File tree

properties_pane/container_level/containerLevelConfig.json

Lines changed: 42 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -134,116 +134,68 @@ making sure that you maintain a proper JSON format.
134134
{
135135
"propertyName": "Before CREATE SCHEMA",
136136
"propertyKeyword": "beforeCreateContainer",
137-
"propertyType": "block",
138-
"propertyTooltip": "",
139-
"structure": [
140-
{
141-
"propertyName": "Script",
142-
"propertyKeyword": "script",
143-
"propertyType": "details",
144-
"markdown": false,
145-
"template": "codeEditor",
146-
"templateOptions": {
147-
"editorDialect": "sql",
148-
"customScriptVariables": true
149-
}
150-
}
151-
]
137+
"propertyType": "details",
138+
"markdown": false,
139+
"template": "codeEditor",
140+
"templateOptions": {
141+
"editorDialect": "sql",
142+
"customScriptVariables": true
143+
}
152144
},
153145
{
154146
"propertyName": "After CREATE SCHEMA",
155147
"propertyKeyword": "afterCreateContainer",
156-
"propertyType": "block",
157-
"propertyTooltip": "",
158-
"structure": [
159-
{
160-
"propertyName": "Script",
161-
"propertyKeyword": "script",
162-
"propertyType": "details",
163-
"markdown": false,
164-
"template": "codeEditor",
165-
"templateOptions": {
166-
"editorDialect": "sql",
167-
"customScriptVariables": true
168-
}
169-
}
170-
]
148+
"propertyType": "details",
149+
"markdown": false,
150+
"template": "codeEditor",
151+
"templateOptions": {
152+
"editorDialect": "sql",
153+
"customScriptVariables": true
154+
}
171155
},
172156
{
173157
"propertyName": "Before each CREATE TABLE",
174158
"propertyKeyword": "beforeCreateEntity",
175-
"propertyType": "block",
176-
"propertyTooltip": "",
177-
"structure": [
178-
{
179-
"propertyName": "Script",
180-
"propertyKeyword": "script",
181-
"propertyType": "details",
182-
"markdown": false,
183-
"template": "codeEditor",
184-
"templateOptions": {
185-
"editorDialect": "sql",
186-
"customScriptVariables": true
187-
}
188-
}
189-
]
159+
"propertyType": "details",
160+
"markdown": false,
161+
"template": "codeEditor",
162+
"templateOptions": {
163+
"editorDialect": "sql",
164+
"customScriptVariables": true
165+
}
190166
},
191167
{
192168
"propertyName": "After each CREATE TABLE",
193169
"propertyKeyword": "afterCreateEntity",
194-
"propertyType": "block",
195-
"propertyTooltip": "",
196-
"structure": [
197-
{
198-
"propertyName": "Script",
199-
"propertyKeyword": "script",
200-
"propertyType": "details",
201-
"markdown": false,
202-
"template": "codeEditor",
203-
"templateOptions": {
204-
"editorDialect": "sql",
205-
"customScriptVariables": true
206-
}
207-
}
208-
]
170+
"propertyType": "details",
171+
"markdown": false,
172+
"template": "codeEditor",
173+
"templateOptions": {
174+
"editorDialect": "sql",
175+
"customScriptVariables": true
176+
}
209177
},
210178
{
211179
"propertyName": "Before each CREATE VIEW",
212180
"propertyKeyword": "beforeCreateView",
213-
"propertyType": "block",
214-
"propertyTooltip": "",
215-
"structure": [
216-
{
217-
"propertyName": "Script",
218-
"propertyKeyword": "script",
219-
"propertyType": "details",
220-
"markdown": false,
221-
"template": "codeEditor",
222-
"templateOptions": {
223-
"editorDialect": "sql",
224-
"customScriptVariables": true
225-
}
226-
}
227-
]
181+
"propertyType": "details",
182+
"markdown": false,
183+
"template": "codeEditor",
184+
"templateOptions": {
185+
"editorDialect": "sql",
186+
"customScriptVariables": true
187+
}
228188
},
229189
{
230190
"propertyName": "After each CREATE VIEW",
231191
"propertyKeyword": "afterCreateView",
232-
"propertyType": "block",
233-
"propertyTooltip": "",
234-
"structure": [
235-
{
236-
"propertyName": "Script",
237-
"propertyKeyword": "script",
238-
"propertyType": "details",
239-
"markdown": false,
240-
"template": "codeEditor",
241-
"templateOptions": {
242-
"editorDialect": "sql",
243-
"customScriptVariables": true
244-
}
245-
}
246-
]
192+
"propertyType": "details",
193+
"markdown": false,
194+
"template": "codeEditor",
195+
"templateOptions": {
196+
"editorDialect": "sql",
197+
"customScriptVariables": true
198+
}
247199
}
248200
]
249201
},

properties_pane/entity_level/entityLevelConfig.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -366,40 +366,24 @@ making sure that you maintain a proper JSON format.
366366
{
367367
"propertyName": "Before CREATE TABLE",
368368
"propertyKeyword": "beforeCreateEntity",
369-
"propertyType": "block",
370-
"propertyTooltip": "",
371-
"structure": [
372-
{
373-
"propertyName": "Script",
374-
"propertyKeyword": "script",
375-
"propertyType": "details",
376-
"markdown": false,
377-
"template": "codeEditor",
378-
"templateOptions": {
379-
"editorDialect": "sql",
380-
"customScriptVariables": true
381-
}
382-
}
383-
]
369+
"propertyType": "details",
370+
"markdown": false,
371+
"template": "codeEditor",
372+
"templateOptions": {
373+
"editorDialect": "sql",
374+
"customScriptVariables": true
375+
}
384376
},
385377
{
386378
"propertyName": "After CREATE TABLE",
387379
"propertyKeyword": "afterCreateEntity",
388-
"propertyType": "block",
389-
"propertyTooltip": "",
390-
"structure": [
391-
{
392-
"propertyName": "Script",
393-
"propertyKeyword": "script",
394-
"propertyType": "details",
395-
"markdown": false,
396-
"template": "codeEditor",
397-
"templateOptions": {
398-
"editorDialect": "sql",
399-
"customScriptVariables": true
400-
}
401-
}
402-
]
380+
"propertyType": "details",
381+
"markdown": false,
382+
"template": "codeEditor",
383+
"templateOptions": {
384+
"editorDialect": "sql",
385+
"customScriptVariables": true
386+
}
403387
}
404388
]
405389
},

0 commit comments

Comments
 (0)