module.exports = [
{
"type": "heading",
"defaultValue": "DSCam Home Swtich Configuration"
},
{
"type": "text",
"defaultValue": "Set your Synology account and server."
},
{
"type": "section",
"items":
[
{
"type": "heading",
"defaultValue": "Your synology account"
}, {
"type": "input",
"messageKey": "server",
"label": "Your DSM Server",
"attributes":
{
"type": "url",
"maxlength": 255
}
},
{
"type": "input",
"messageKey": "username",
"label": "Your DSM Username",
"attributes":
{
"maxlength":40
}
},
{
"type": "input",
"messageKey": "password",
"label": "Your DSM Password",
"attributes":
{
"type": "password",
"maxlength":40
}
},
{
"type": "toggle",
"messageKey": "OTP_enabled",
"label": "toggle on if 2FA enabled on user"
},
{
"type": "input",
"messageKey": "OTP_seed",
"label": "seed provided by DSM for the user"
}
]
},
{
"type": "submit",
"defaultValue": "Save Settings"
}
];