From 42b60060a1c2c12d6297cdd68b6d7771cb013817 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 18 Feb 2023 23:20:08 +0100 Subject: [PATCH] webapp: Change badge style and encapsulate it into component --- webapp/src/components/RadioInfo.vue | 32 +++++------ webapp/src/components/StatusBadge.vue | 32 +++++++++++ webapp/src/components/WifiApInfo.vue | 10 ++-- webapp/src/components/WifiStationInfo.vue | 10 ++-- webapp/src/views/MqttInfoView.vue | 67 ++++++----------------- webapp/src/views/NtpInfoView.vue | 20 +++---- 6 files changed, 82 insertions(+), 89 deletions(-) create mode 100644 webapp/src/components/StatusBadge.vue diff --git a/webapp/src/components/RadioInfo.vue b/webapp/src/components/RadioInfo.vue index 2aae902b..8f16a212 100644 --- a/webapp/src/components/RadioInfo.vue +++ b/webapp/src/components/RadioInfo.vue @@ -5,26 +5,24 @@ {{ $t('radioinfo.ChipStatus') }} - - {{ $t('radioinfo.Connected') }} - {{ $t('radioinfo.NotConnected') }} + + {{ $t('radioinfo.ChipType') }} - - nRF24L01+ - nRF24L01 - {{ $t('radioinfo.Unknown') }} + + + + + + @@ -35,12 +33,14 @@ \ No newline at end of file diff --git a/webapp/src/components/WifiApInfo.vue b/webapp/src/components/WifiApInfo.vue index f00858ca..e2647dda 100644 --- a/webapp/src/components/WifiApInfo.vue +++ b/webapp/src/components/WifiApInfo.vue @@ -5,12 +5,8 @@ {{ $t('wifiapinfo.Status') }} - - {{ $t('wifiapinfo.Enabled') }} - {{ $t('wifiapinfo.Disabled') }} + + @@ -29,12 +25,14 @@