From 3b3785eabe6a911710d1cefa371d3afd429eb196 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Thu, 18 Mar 2021 08:24:38 +0100 Subject: [PATCH] feat(ui): improved control panel (#900) * style(ui): refactor control panel actions * feat(ui): advanced dialog * fix: devices db link * fix: add confirm text to some actions * fix: lint issues * fix: remove some broadcast actions and make hard reset harder * fix: restore hard reset * fix: add some more info in confirm dialogs * fix: typo * fix: some nits in confirm texts * fix: some other nits in confirm texts --- lib/ZwaveClient.js | 4 +- src/App.vue | 59 +++- src/components/ControlPanel.vue | 321 ++++++++++----------- src/components/dialogs/DialogAdvanced.vue | 71 +++++ src/components/nodes-table/NodeDetails.vue | 248 ++++++++++------ src/components/nodes-table/index.vue | 29 -- src/components/nodes-table/nodes-table.js | 3 - 7 files changed, 431 insertions(+), 304 deletions(-) create mode 100644 src/components/dialogs/DialogAdvanced.vue diff --git a/lib/ZwaveClient.js b/lib/ZwaveClient.js index 54c15bdd7f5..d707bfc18cc 100644 --- a/lib/ZwaveClient.js +++ b/lib/ZwaveClient.js @@ -875,7 +875,9 @@ function initNode (zwaveNode) { utils.num2hex(zwaveNode.productType) ] node.hexId = `${hexIds[0]}-${hexIds[2]}-${hexIds[1]}` - node.dbLink = `https://devices.zwave-js.io/?jumpTo=${hexIds[0]}:${hexIds[2]}:${hexIds[1]}:${node.firmwareVersion}` + node.dbLink = `https://devices.zwave-js.io/?jumpTo=${hexIds[0]}:${ + hexIds[2] + }:${hexIds[1]}:${node.firmwareVersion || '0.0'}` const deviceConfig = zwaveNode.deviceConfig || { label: `Unknown product ${hexIds[1]}`, diff --git a/src/App.vue b/src/App.vue index 72a01c164aa..721f41fd12f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,17 +48,52 @@ - {{ title }} + {{ + title + }} +
{{ appInfo.controllerStatus }}
+ + + +
+
+ zwavejs2mqtt + {{ appInfo.appVersion }} +
+
+ zwave-js + {{ appInfo.zwaveVersion }} +
+
+ Home ID + {{ appInfo.homeid }} +
+
+ Home Hex + {{ appInfo.homeHex }} +
+
+
+ diff --git a/src/components/nodes-table/NodeDetails.vue b/src/components/nodes-table/NodeDetails.vue index a76a9caba7b..2e7da7906a0 100644 --- a/src/components/nodes-table/NodeDetails.vue +++ b/src/components/nodes-table/NodeDetails.vue @@ -10,47 +10,8 @@ - - - - - - - - Export - file_download - - - Clear retained - clear - - - Update topics - refresh + + Advanced @@ -120,23 +81,32 @@ + +