Skip to content

Commit

Permalink
(simatec) Responsive Design added
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec authored Nov 3, 2024
1 parent 1b54c02 commit 464ff5f
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 35 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
],
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
}
]
],
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ default: state-ID converted to a mqtt topic.
### __WORK IN PROGRESS__
-->
## Changelog
### __WORK IN PROGRESS__
* (simatec) Responsive Design added

### 2.0.1 (2024-09-23)
* (@klein0r) Added missing information in configuration dialog
* (@klein0r) Fixed type of port configuration to avoid conflicts
Expand Down
83 changes: 62 additions & 21 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"i18n": true,
"type": "tabs",
"tabsStyle": {
"width": "calc(100% - 100px)"
},
"iconPosition": "top",
"items": {
"_general": {
Expand All @@ -11,19 +14,23 @@
"host": {
"newLine": true,
"type": "text",
"sm": 10,
"md": 4,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4,
"label": "host"
},
"port": {
"type": "number",
"min": 1,
"max": 65535,
"step": 1,
"sm": 2,
"md": 4,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4,
"label": "port"
},
"mqttVersion": {
Expand All @@ -42,138 +49,170 @@
"value": 5
}
],
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "MQTT Version"
},
"websocket": {
"newLine": true,
"type": "checkbox",
"sm": 4,
"md": 4,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4,
"label": "Use websockets"
},
"ssl": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "ssl"
},
"rejectUnauthorized": {
"hidden": "!data.ssl",
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "rejectUnauthorized"
},
"clientId": {
"newLine": true,
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "Client ID"
},
"username": {
"newLine": true,
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "username"
},
"password": {
"type": "password",
"repeat": false,
"visible": true,
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "password"
},
"_headerCustomOptions": {
"newLine": true,
"type": "header",
"size": 2,
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12,
"text": "Custom options"
},
"onConnectTopic": {
"newLine": true,
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "on connect topic",
"validator": "!data.onConnectTopic.startsWith('/')",
"validatorErrorText": "Topic must not start with /",
"validatorNoSaveOnError": true
},
"onConnectMessage": {
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "on connect message"
},
"onDisconnectTopic": {
"newLine": true,
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "on disconnect topic",
"validator": "!data.onDisconnectTopic.startsWith('/')",
"validatorErrorText": "Topic must not start with /",
"validatorNoSaveOnError": true
},
"onDisconnectMessage": {
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "on disconnect message"
},
"lastWillTopic": {
"newLine": true,
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "last will topic",
"validator": "!data.lastWillTopic.startsWith('/')",
"validatorErrorText": "Topic must not start with /",
"validatorNoSaveOnError": true
},
"lastWillMessage": {
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "last will message"
},
"inbox": {
"newLine": true,
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "prefix for subscribing topics",
"validator": "!data.inbox.endsWith('/')",
"validatorErrorText": "Topic must not end with /",
"validatorNoSaveOnError": true
},
"outbox": {
"type": "text",
"xs": 12,
"sm": 12,
"md": 4,
"md": 6,
"lg": 4,
"xl": 4,
"label": "prefix for publishing topics",
"validator": "!data.outbox.endsWith('/')",
"validatorErrorText": "Topic must not end with /",
Expand All @@ -183,9 +222,11 @@
"type": "chips",
"label": "additional subscriptions",
"delimiter": ",",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12
"lg": 12,
"xl": 12
}
}
}
Expand Down
Loading

0 comments on commit 464ff5f

Please sign in to comment.