Files
Trigalarm/src/pkjs/config.js
T

95 lines
2.7 KiB
JavaScript

module.exports = [
{
"type": "heading",
"defaultValue": "Trigalarm | Settings"
},
{
"type": "section",
"items": [
{
"type": "heading",
"size": 3,
"defaultValue": "Pavlok Integration"
},
{
"id": "pavlok_enable",
"type": "toggle",
"messageKey": "PKJS_PAVLOK_ENABLE",
"defaultValue": false,
"label": "Enabled"
},
{
"id": "pavlok_api_key",
"type": "input",
"messageKey": "PKJS_PAVLOK_API_KEY",
"label": "API Key"
},
{
"id": "pavlok_zap_intensity",
"type": "slider",
"messageKey": "PKJS_PAVLOK_ZAP_INTENSITY",
"defaultValue": 30,
"min": 5,
"max": 100,
"step": 5,
"label": "Zap Intensity"
},
{
"id": "pavlok_zap_interval",
"type": "slider",
"messageKey": "PKJS_PAVLOK_ZAP_INTERVAL",
"defaultValue": 10,
"min": 1,
"max": 60,
"step": 1,
"label": "Zap Repeat Interval"
},
{
"id": "pavlok_test_button",
"type": "button",
"messageKey": "PKJS_PAVLOK_TEST_BUTTON",
"defaultValue": "Test Beep"
}
]
},
{
"type": "section",
"items": [
{
"type": "heading",
"size": 3,
"defaultValue": "Awareness Alarm"
},
{
"id": "awareness_time_gap",
"type": "slider",
"messageKey": "PKJS_AWARENESS_TIME_GAP",
"defaultValue": 9,
"min": 1,
"max": 30,
"label": "Gap From Main Alarm (Minutes)"
},
{
"id": "awareness_time_limit",
"type": "slider",
"messageKey": "PKJS_AWARENESS_TIME_LIMIT",
"defaultValue": 30,
"min": 3,
"max": 120,
"label": "Time Limit (Seconds)"
},
{
"id": "awareness_nudge_enable",
"type": "toggle",
"messageKey": "PKJS_AWARENESS_NUDGE_ENABLE",
"defaultValue": true,
"label": "Awareness Nudge"
}
]
},
{
"type": "submit",
"defaultValue": "Save Settings"
}
];