Skip to content

Commit f084314

Browse files
flatten script config (#58)
1 parent 3d425d5 commit f084314

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
@@ -801,116 +801,68 @@ making sure that you maintain a proper JSON format.
801801
{
802802
"propertyName": "Before CREATE DATABASE",
803803
"propertyKeyword": "beforeCreateContainer",
804-
"propertyType": "block",
805-
"propertyTooltip": "",
806-
"structure": [
807-
{
808-
"propertyName": "Script",
809-
"propertyKeyword": "script",
810-
"propertyType": "details",
811-
"markdown": false,
812-
"template": "codeEditor",
813-
"templateOptions": {
814-
"editorDialect": "sql",
815-
"customScriptVariables": true
816-
}
817-
}
818-
]
804+
"propertyType": "details",
805+
"markdown": false,
806+
"template": "codeEditor",
807+
"templateOptions": {
808+
"editorDialect": "sql",
809+
"customScriptVariables": true
810+
}
819811
},
820812
{
821813
"propertyName": "After CREATE DATABASE",
822814
"propertyKeyword": "afterCreateContainer",
823-
"propertyType": "block",
824-
"propertyTooltip": "",
825-
"structure": [
826-
{
827-
"propertyName": "Script",
828-
"propertyKeyword": "script",
829-
"propertyType": "details",
830-
"markdown": false,
831-
"template": "codeEditor",
832-
"templateOptions": {
833-
"editorDialect": "sql",
834-
"customScriptVariables": true
835-
}
836-
}
837-
]
815+
"propertyType": "details",
816+
"markdown": false,
817+
"template": "codeEditor",
818+
"templateOptions": {
819+
"editorDialect": "sql",
820+
"customScriptVariables": true
821+
}
838822
},
839823
{
840824
"propertyName": "Before each CREATE TABLE",
841825
"propertyKeyword": "beforeCreateEntity",
842-
"propertyType": "block",
843-
"propertyTooltip": "",
844-
"structure": [
845-
{
846-
"propertyName": "Script",
847-
"propertyKeyword": "script",
848-
"propertyType": "details",
849-
"markdown": false,
850-
"template": "codeEditor",
851-
"templateOptions": {
852-
"editorDialect": "sql",
853-
"customScriptVariables": true
854-
}
855-
}
856-
]
826+
"propertyType": "details",
827+
"markdown": false,
828+
"template": "codeEditor",
829+
"templateOptions": {
830+
"editorDialect": "sql",
831+
"customScriptVariables": true
832+
}
857833
},
858834
{
859835
"propertyName": "After each CREATE TABLE",
860836
"propertyKeyword": "afterCreateEntity",
861-
"propertyType": "block",
862-
"propertyTooltip": "",
863-
"structure": [
864-
{
865-
"propertyName": "Script",
866-
"propertyKeyword": "script",
867-
"propertyType": "details",
868-
"markdown": false,
869-
"template": "codeEditor",
870-
"templateOptions": {
871-
"editorDialect": "sql",
872-
"customScriptVariables": true
873-
}
874-
}
875-
]
837+
"propertyType": "details",
838+
"markdown": false,
839+
"template": "codeEditor",
840+
"templateOptions": {
841+
"editorDialect": "sql",
842+
"customScriptVariables": true
843+
}
876844
},
877845
{
878846
"propertyName": "Before each CREATE VIEW",
879847
"propertyKeyword": "beforeCreateView",
880-
"propertyType": "block",
881-
"propertyTooltip": "",
882-
"structure": [
883-
{
884-
"propertyName": "Script",
885-
"propertyKeyword": "script",
886-
"propertyType": "details",
887-
"markdown": false,
888-
"template": "codeEditor",
889-
"templateOptions": {
890-
"editorDialect": "sql",
891-
"customScriptVariables": true
892-
}
893-
}
894-
]
848+
"propertyType": "details",
849+
"markdown": false,
850+
"template": "codeEditor",
851+
"templateOptions": {
852+
"editorDialect": "sql",
853+
"customScriptVariables": true
854+
}
895855
},
896856
{
897857
"propertyName": "After each CREATE VIEW",
898858
"propertyKeyword": "afterCreateView",
899-
"propertyType": "block",
900-
"propertyTooltip": "",
901-
"structure": [
902-
{
903-
"propertyName": "Script",
904-
"propertyKeyword": "script",
905-
"propertyType": "details",
906-
"markdown": false,
907-
"template": "codeEditor",
908-
"templateOptions": {
909-
"editorDialect": "sql",
910-
"customScriptVariables": true
911-
}
912-
}
913-
]
859+
"propertyType": "details",
860+
"markdown": false,
861+
"template": "codeEditor",
862+
"templateOptions": {
863+
"editorDialect": "sql",
864+
"customScriptVariables": true
865+
}
914866
}
915867
]
916868
},

properties_pane/entity_level/entityLevelConfig.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,40 +1503,24 @@ making sure that you maintain a proper JSON format.
15031503
{
15041504
"propertyName": "Before CREATE TABLE",
15051505
"propertyKeyword": "beforeCreateEntity",
1506-
"propertyType": "block",
1507-
"propertyTooltip": "",
1508-
"structure": [
1509-
{
1510-
"propertyName": "Script",
1511-
"propertyKeyword": "script",
1512-
"propertyType": "details",
1513-
"markdown": false,
1514-
"template": "codeEditor",
1515-
"templateOptions": {
1516-
"editorDialect": "sql",
1517-
"customScriptVariables": true
1518-
}
1519-
}
1520-
]
1506+
"propertyType": "details",
1507+
"markdown": false,
1508+
"template": "codeEditor",
1509+
"templateOptions": {
1510+
"editorDialect": "sql",
1511+
"customScriptVariables": true
1512+
}
15211513
},
15221514
{
15231515
"propertyName": "After CREATE TABLE",
15241516
"propertyKeyword": "afterCreateEntity",
1525-
"propertyType": "block",
1526-
"propertyTooltip": "",
1527-
"structure": [
1528-
{
1529-
"propertyName": "Script",
1530-
"propertyKeyword": "script",
1531-
"propertyType": "details",
1532-
"markdown": false,
1533-
"template": "codeEditor",
1534-
"templateOptions": {
1535-
"editorDialect": "sql",
1536-
"customScriptVariables": true
1537-
}
1538-
}
1539-
]
1517+
"propertyType": "details",
1518+
"markdown": false,
1519+
"template": "codeEditor",
1520+
"templateOptions": {
1521+
"editorDialect": "sql",
1522+
"customScriptVariables": true
1523+
}
15401524
}
15411525
]
15421526
},

0 commit comments

Comments
 (0)