| ... | ... |
@@ -14,6 +14,15 @@ module.exports = [ |
| 14 | 14 |
{
|
| 15 | 15 |
"type": "heading", |
| 16 | 16 |
"defaultValue": "Your synology account" |
| 17 |
+ }, {
|
|
| 18 |
+ "type": "input", |
|
| 19 |
+ "messageKey": "server", |
|
| 20 |
+ "label": "Your DSM Server", |
|
| 21 |
+ "attributes": |
|
| 22 |
+ {
|
|
| 23 |
+ "type": "url", |
|
| 24 |
+ "maxlength": 255 |
|
| 25 |
+ } |
|
| 17 | 26 |
}, |
| 18 | 27 |
{
|
| 19 | 28 |
"type": "input", |
| ... | ... |
@@ -35,14 +44,14 @@ module.exports = [ |
| 35 | 44 |
} |
| 36 | 45 |
}, |
| 37 | 46 |
{
|
| 38 |
- "type": "input", |
|
| 39 |
- "messageKey": "server", |
|
| 40 |
- "label": "Your DSM Server", |
|
| 41 |
- "attributes": |
|
| 47 |
+ "type": "toggle", |
|
| 48 |
+ "messageKey": "OTP_enabled", |
|
| 49 |
+ "label": "toggle on if 2FA enabled on user" |
|
| 50 |
+ }, |
|
| 42 | 51 |
{
|
| 43 |
- "type": "url", |
|
| 44 |
- "maxlength":255 |
|
| 45 |
- } |
|
| 52 |
+ "type": "input", |
|
| 53 |
+ "messageKey": "OTP_seed", |
|
| 54 |
+ "label": "seed provided by DSM for the user" |
|
| 46 | 55 |
} |
| 47 | 56 |
] |
| 48 | 57 |
}, |
| ... | ... |
@@ -1,15 +1,15 @@ |
| 1 | 1 |
module.exports = [ |
| 2 |
- {
|
|
| 3 |
- "type": "heading", |
|
| 4 |
- "defaultValue": "DSCam Home Swtich Configuration" |
|
| 5 |
- }, |
|
| 6 |
- {
|
|
| 7 |
- "type": "text", |
|
| 8 |
- "defaultValue": "Set your Synology account and server." |
|
| 2 |
+ {
|
|
| 3 |
+ "type": "heading", |
|
| 4 |
+ "defaultValue": "DSCam Home Swtich Configuration" |
|
| 5 |
+ }, |
|
| 6 |
+ {
|
|
| 7 |
+ "type": "text", |
|
| 8 |
+ "defaultValue": "Set your Synology account and server." |
|
| 9 | 9 |
}, |
| 10 | 10 |
{
|
| 11 | 11 |
"type": "section", |
| 12 |
- "items": |
|
| 12 |
+ "items": |
|
| 13 | 13 |
[ |
| 14 | 14 |
{
|
| 15 | 15 |
"type": "heading", |
| ... | ... |
@@ -19,7 +19,7 @@ module.exports = [ |
| 19 | 19 |
"type": "input", |
| 20 | 20 |
"messageKey": "username", |
| 21 | 21 |
"label": "Your DSM Username", |
| 22 |
- "attributes" : |
|
| 22 |
+ "attributes": |
|
| 23 | 23 |
{
|
| 24 | 24 |
"maxlength":40 |
| 25 | 25 |
} |
| ... | ... |
@@ -28,7 +28,7 @@ module.exports = [ |
| 28 | 28 |
"type": "input", |
| 29 | 29 |
"messageKey": "password", |
| 30 | 30 |
"label": "Your DSM Password", |
| 31 |
- "attributes" : |
|
| 31 |
+ "attributes": |
|
| 32 | 32 |
{
|
| 33 | 33 |
"type": "password", |
| 34 | 34 |
"maxlength":40 |
| ... | ... |
@@ -38,7 +38,7 @@ module.exports = [ |
| 38 | 38 |
"type": "input", |
| 39 | 39 |
"messageKey": "server", |
| 40 | 40 |
"label": "Your DSM Server", |
| 41 |
- "attributes" : |
|
| 41 |
+ "attributes": |
|
| 42 | 42 |
{
|
| 43 | 43 |
"type": "url", |
| 44 | 44 |
"maxlength":255 |
| ... | ... |
@@ -13,7 +13,7 @@ module.exports = [ |
| 13 | 13 |
[ |
| 14 | 14 |
{
|
| 15 | 15 |
"type": "heading", |
| 16 |
- "defaultValue": "This is a section" |
|
| 16 |
+ "defaultValue": "Your synology account" |
|
| 17 | 17 |
}, |
| 18 | 18 |
{
|
| 19 | 19 |
"type": "input", |
| ... | ... |
@@ -50,4 +50,4 @@ module.exports = [ |
| 50 | 50 |
"type": "submit", |
| 51 | 51 |
"defaultValue": "Save Settings" |
| 52 | 52 |
} |
| 53 |
-]; |
|
| 54 | 53 |
\ No newline at end of file |
| 54 |
+]; |
| ... | ... |
@@ -1,11 +1,11 @@ |
| 1 | 1 |
module.exports = [ |
| 2 | 2 |
{
|
| 3 | 3 |
"type": "heading", |
| 4 |
- "defaultValue": "Example Header Item" |
|
| 4 |
+ "defaultValue": "DSCam Home Swtich Configuration" |
|
| 5 | 5 |
}, |
| 6 | 6 |
{
|
| 7 | 7 |
"type": "text", |
| 8 |
- "defaultValue": "Example text item." |
|
| 8 |
+ "defaultValue": "Set your Synology account and server." |
|
| 9 | 9 |
}, |
| 10 | 10 |
{
|
| 11 | 11 |
"type": "section", |
| 1 | 1 |
new file mode 100755 |
| ... | ... |
@@ -0,0 +1,53 @@ |
| 1 |
+module.exports = [ |
|
| 2 |
+ {
|
|
| 3 |
+ "type": "heading", |
|
| 4 |
+ "defaultValue": "Example Header Item" |
|
| 5 |
+ }, |
|
| 6 |
+ {
|
|
| 7 |
+ "type": "text", |
|
| 8 |
+ "defaultValue": "Example text item." |
|
| 9 |
+ }, |
|
| 10 |
+ {
|
|
| 11 |
+ "type": "section", |
|
| 12 |
+ "items": |
|
| 13 |
+ [ |
|
| 14 |
+ {
|
|
| 15 |
+ "type": "heading", |
|
| 16 |
+ "defaultValue": "This is a section" |
|
| 17 |
+ }, |
|
| 18 |
+ {
|
|
| 19 |
+ "type": "input", |
|
| 20 |
+ "messageKey": "username", |
|
| 21 |
+ "label": "Your DSM Username", |
|
| 22 |
+ "attributes" : |
|
| 23 |
+ {
|
|
| 24 |
+ "maxlength":40 |
|
| 25 |
+ } |
|
| 26 |
+ }, |
|
| 27 |
+ {
|
|
| 28 |
+ "type": "input", |
|
| 29 |
+ "messageKey": "password", |
|
| 30 |
+ "label": "Your DSM Password", |
|
| 31 |
+ "attributes" : |
|
| 32 |
+ {
|
|
| 33 |
+ "type": "password", |
|
| 34 |
+ "maxlength":40 |
|
| 35 |
+ } |
|
| 36 |
+ }, |
|
| 37 |
+ {
|
|
| 38 |
+ "type": "input", |
|
| 39 |
+ "messageKey": "server", |
|
| 40 |
+ "label": "Your DSM Server", |
|
| 41 |
+ "attributes" : |
|
| 42 |
+ {
|
|
| 43 |
+ "type": "url", |
|
| 44 |
+ "maxlength":255 |
|
| 45 |
+ } |
|
| 46 |
+ } |
|
| 47 |
+ ] |
|
| 48 |
+ }, |
|
| 49 |
+ {
|
|
| 50 |
+ "type": "submit", |
|
| 51 |
+ "defaultValue": "Save Settings" |
|
| 52 |
+ } |
|
| 53 |
+]; |
|
| 0 | 54 |
\ No newline at end of file |