Skip to content

Commit

Permalink
Basic framework for admin5UI
Browse files Browse the repository at this point in the history
It is based on the current UI and is unfortunately not functional. Unfortunately I can't get any further.
  • Loading branch information
mattreim committed Aug 20, 2024
1 parent 0e910f4 commit a84aae8
Showing 1 changed file with 223 additions and 0 deletions.
223 changes: 223 additions & 0 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
{
"i18n": true,
"type": "tabs",
"items": {
"#tab-main": {
"type": "panel",
"label": "Main Settings",
"items": {
"sw_version": {
"type": "text",
"label": "deConz Version",
"readOnly": true,
"size": 2
},
"api_version": {
"type": "text",
"label": "deConz REST API Version",
"readOnly": true,
"size": 2
},
"settings": {
"newLine": true,
"type": "header",
"text": "Settings",
"size": 2
},
"bridge": {
"newLine": true,
"label": "deConz IP Adresse",
"type": "text",
"sm": 12,
"md": 3,
"lg": 3
},
"port": {
"label": "Port",
"type": "number",
"default": 80,
"min": 0,
"max": 65535,
"sm": 12,
"md": 2,
"lg": 2
},
"websocketport": {
"label": "Websocket Port",
"type": "number",
"default": 443,
"min": 0,
"max": 65535,
"sm": 12,
"md": 2,
"lg": 2
},

"user": {
"newLine": true,
"label": "API key",
"type": "text",
"sm": 12,
"md": 3,
"lg": 3
},
"create": {
"type": "sendTo",
"label": "Create API key",
"variant": "outlined",
"showProcess": true,
"command": "sendTo1",
"jsonData": "{ \"data1\": \"${data.sendTo1a}\", \"data2\": \"${data.sendTo1b}\" }",
"useNative": true
},
"deleteAPIkey": {
"type": "sendTo",
"label": "Delete API key",
"variant": "outlined",
"showProcess": true,
"command": "sendTo1",
"jsonData": "{ \"data1\": \"${data.sendTo1a}\", \"data2\": \"${data.sendTo1b}\" }",
"useNative": true
}
}
},
"#tab-manage-devices": {
"type": "panel",
"label": "Manage Devices",
"items": {
"opennetwork": {
"type": "sendTo",
"label": "Open Network",
"variant": "outlined",
"showProcess": true,
"command": "sendTo1",
"jsonData": "{ \"data1\": \"${data.sendTo1a}\", \"data2\": \"${data.sendTo1b}\" }",
"useNative": true
},
"devices": {
"newLine": true,
"type": "table",
"label": "Devices",
"noDelete": true,
"sm": 12,
"md": 12,
"lg": 12,
"items": [
{
"type": "text",
"attr": "name",
"width": "30%",
"title": "Name",
"filter": true,
"sort": false,
"default": ""
},
{
"type": "text",
"attr": "ID",
"width": "15%",
"title": "ID",
"filter": true,
"sort": true,
"default": ""
},
{
"type": "text",
"attr": "Manufacturer",
"width": "30%",
"title": "Manufacturer",
"filter": false,
"sort": false,
"default": ""
},
{
"type": "number",
"attr": "Model ID",
"width": "10%",
"title": "Model ID",
"filter": false,
"sort": false,
"default": ""
},
{
"type": "text",
"attr": "Type",
"title": "Type",
"filter": false,
"sort": false,
"default": ""
}
]
}
}
},
"#tab-manage-groups": {
"type": "panel",
"label": "Manage Groups",
"items": {
"group_name": {
"label": "Name of the new group",
"type": "text",
"sm": 12,
"md": 3,
"lg": 3
},
"create_group": {
"type": "sendTo",
"label": "Create Group",
"variant": "outlined",
"showProcess": true,
"command": "sendTo1",
"jsonData": "{ \"data1\": \"${data.sendTo1a}\", \"data2\": \"${data.sendTo1b}\" }",
"useNative": true
},
"groups": {
"newLine": true,
"type": "table",
"label": "Groups",
"noDelete": true,
"sm": 12,
"md": 12,
"lg": 12,
"items": [
{
"type": "text",
"attr": "name",
"width": "30%",
"title": "Name",
"filter": true,
"sort": false,
"default": ""
},
{
"type": "number",
"attr": "ID",
"width": "15%",
"title": "ID",
"filter": true,
"sort": true,
"default": ""
},
{
"type": "text",
"attr": "Devices (ID of Device)",
"width": "30%",
"title": "Devices (ID of Device)",
"filter": false,
"sort": false,
"default": ""
},
{
"type": "text",
"attr": "Lights (ID of Light)",
"title": "Lights (ID of Light)",
"filter": false,
"sort": false,
"default": ""
}
]
}
}
}
}
}

0 comments on commit a84aae8

Please sign in to comment.