From 38c87ef39f3dcf6c4d35d39701f75fc88cafd84d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 29 Apr 2023 11:37:21 +0200 Subject: [PATCH] Added frontend component for the `Variable` entity. --- .../backend/http/webapp/src/assets/icons.json | 3 + .../components/panels/Entities/Variable.vue | 108 ++++++++++++++++++ .../src/components/panels/Entities/meta.json | 8 ++ 3 files changed, 119 insertions(+) create mode 100644 platypush/backend/http/webapp/src/components/panels/Entities/Variable.vue diff --git a/platypush/backend/http/webapp/src/assets/icons.json b/platypush/backend/http/webapp/src/assets/icons.json index 5f5350887..a0594746c 100644 --- a/platypush/backend/http/webapp/src/assets/icons.json +++ b/platypush/backend/http/webapp/src/assets/icons.json @@ -125,6 +125,9 @@ "tv.samsung.ws": { "class": "fas fa-tv" }, + "variable": { + "class": "fas fa-square-root-variable" + }, "zigbee.mqtt": { "imgUrl": "/icons/zigbee.svg" }, diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Variable.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Variable.vue new file mode 100644 index 000000000..744ed1acf --- /dev/null +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Variable.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/meta.json b/platypush/backend/http/webapp/src/components/panels/Entities/meta.json index d0c504a62..41a050a03 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/meta.json +++ b/platypush/backend/http/webapp/src/components/panels/Entities/meta.json @@ -343,6 +343,14 @@ } }, + "variable": { + "name": "Variable", + "name_plural": "Variables", + "icon": { + "class": "fas fa-square-root-variable" + } + }, + "voltage_sensor": { "name": "Sensor", "name_plural": "Sensors",