PromucFlow_constructor/app/util/plugin-generation/plop-templates/form-json.hbs
Trisha Anand 5139be6be9
feat: Generating plugin framework using plop (#6956)
* WIP First commit

* Generating different files from different templates

* Adding file to edit for adding database changelogs

* Tested the modify file step as well.

* Completed the plugin generation for today's plugins

* Tested with all the files getting generated property

* Not tracking node_modules

* Removes node_modules

* Incorporated review comments
2021-09-02 19:22:17 +05:30

59 lines
1.6 KiB
Handlebars

{
"form": [
{
"sectionName": "Connection",
"id": 1,
"children": [
{
"sectionName": null,
"children": [
{
"label": "Host Address",
"configProperty": "datasourceConfiguration.endpoints[*].host",
"controlType": "KEYVALUE_ARRAY",
"validationMessage": "Please enter a valid host",
"validationRegex": "^((?![/:]).)*$"
},
{
"label": "Port",
"configProperty": "datasourceConfiguration.endpoints[*].port",
"dataType": "NUMBER",
"controlType": "KEYVALUE_ARRAY"
}
]
},
{
"label": "Database Name",
"configProperty": "datasourceConfiguration.authentication.databaseName",
"controlType": "INPUT_TEXT"
}
]
},
{
"sectionName": "Authentication",
"id": 2,
"children": [
{
"sectionName": null,
"children": [
{
"label": "Username",
"configProperty": "datasourceConfiguration.authentication.username",
"controlType": "INPUT_TEXT",
"placeholderText": "Username"
},
{
"label": "Password",
"configProperty": "datasourceConfiguration.authentication.password",
"dataType": "PASSWORD",
"controlType": "INPUT_TEXT",
"placeholderText": "Password",
"encrypted": true
}
]
}
]
}
]
}