From a84aae87a1e59222a2c354203e48cd3550e0151c Mon Sep 17 00:00:00 2001 From: mattreim <80219712+mattreim@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:10:53 +0200 Subject: [PATCH] Basic framework for admin5UI It is based on the current UI and is unfortunately not functional. Unfortunately I can't get any further. --- admin/jsonConfig.json | 223 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 admin/jsonConfig.json diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json new file mode 100644 index 0000000..40159ed --- /dev/null +++ b/admin/jsonConfig.json @@ -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": "" + } + ] + } + } + } + } +} \ No newline at end of file