80 lines
1.9 KiB
JavaScript
80 lines
1.9 KiB
JavaScript
module.exports = [
|
|
{
|
|
"type": "heading",
|
|
"defaultValue": "App configuration"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"defaultValue": "Add/remove/update up to 24 items. Name character limit is 40. If more than 10 characters, font goes smaller. If numbers go higher than 1000, use percentage."
|
|
},
|
|
|
|
{
|
|
"type": "section",
|
|
"items": [
|
|
{
|
|
"type": "heading",
|
|
"defaultValue": "Item"
|
|
},
|
|
{
|
|
"type": "input",
|
|
"messageKey": "ITEM_NAME",
|
|
"label": "Name",
|
|
"description": "Non-case sensitive. Use existing name to replace/remove",
|
|
"defaultValue": ""
|
|
},
|
|
{
|
|
"type": "input",
|
|
"messageKey": "ITEM_SUCCESS",
|
|
"label": "Success",
|
|
"description": "Set success value. 0 keeps old value if available",
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"type": "input",
|
|
"messageKey": "ITEM_FAIL",
|
|
"label": "Fail",
|
|
"description": "Set fail value. 0 keeps old value if available",
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"type": "slider",
|
|
"messageKey": "RED_LIMIT",
|
|
"defaultValue": 10,
|
|
"label": "Red limit",
|
|
"description": "Turns color to red below this limit",
|
|
"min": 1,
|
|
"max": 100,
|
|
"step": 1
|
|
},
|
|
{
|
|
"type": "slider",
|
|
"messageKey": "ORANGE_LIMIT",
|
|
"defaultValue": 40,
|
|
"label": "Orange limit",
|
|
"description": "Turns color to orange below this limit",
|
|
"min": 1,
|
|
"max": 100,
|
|
"step": 1
|
|
},
|
|
{
|
|
"type": "toggle",
|
|
"messageKey": "ITEM_PERCENTAGE",
|
|
"label": "Show percentage",
|
|
"description": "Disabled shows success/total. Enabled shows percentage instead",
|
|
"defaultValue": false
|
|
},
|
|
{
|
|
"type": "toggle",
|
|
"messageKey": "ITEM_REMOVE",
|
|
"label": "Remove item",
|
|
"description": "Disabled adds/updates item. Enabled removes item",
|
|
"defaultValue": false
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"type": "submit",
|
|
"defaultValue": "Save Settings"
|
|
}
|
|
]; |