From 2aad0cbe700de1fc6ffec68552e9eaf58f224bb5 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 17 Oct 2022 20:43:27 +0200 Subject: [PATCH] webapp: create interface for NetworkStatus --- webapp/src/components/InterfaceApInfo.vue | 10 +++--- .../src/components/InterfaceNetworkInfo.vue | 28 +++++++--------- webapp/src/components/WifiApInfo.vue | 17 +++++----- webapp/src/components/WifiStationInfo.vue | 19 ++++++----- webapp/src/types/NetworkStatus.ts | 22 +++++++++++++ webapp/src/views/NetworkInfoView.vue | 32 ++++--------------- 6 files changed, 61 insertions(+), 67 deletions(-) create mode 100644 webapp/src/types/NetworkStatus.ts diff --git a/webapp/src/components/InterfaceApInfo.vue b/webapp/src/components/InterfaceApInfo.vue index 21c1324..adea981 100644 --- a/webapp/src/components/InterfaceApInfo.vue +++ b/webapp/src/components/InterfaceApInfo.vue @@ -9,11 +9,11 @@ IP Address - {{ ap_ip }} + {{ networkStatus.ap_ip }} MAC Address - {{ ap_mac }} + {{ networkStatus.ap_mac }} @@ -23,12 +23,12 @@ diff --git a/webapp/src/components/InterfaceNetworkInfo.vue b/webapp/src/components/InterfaceNetworkInfo.vue index c640da5..dd0902a 100644 --- a/webapp/src/components/InterfaceNetworkInfo.vue +++ b/webapp/src/components/InterfaceNetworkInfo.vue @@ -1,7 +1,7 @@ diff --git a/webapp/src/components/WifiApInfo.vue b/webapp/src/components/WifiApInfo.vue index bdf1eb9..ee057e5 100644 --- a/webapp/src/components/WifiApInfo.vue +++ b/webapp/src/components/WifiApInfo.vue @@ -10,20 +10,20 @@ Status - enabled + enabled disabled SSID - {{ ap_ssid }} + {{ networkStatus.ap_ssid }} # Stations - {{ ap_stationnum }} + {{ networkStatus.ap_stationnum }} @@ -33,13 +33,12 @@ diff --git a/webapp/src/components/WifiStationInfo.vue b/webapp/src/components/WifiStationInfo.vue index a3e3e04..52fcf64 100644 --- a/webapp/src/components/WifiStationInfo.vue +++ b/webapp/src/components/WifiStationInfo.vue @@ -10,24 +10,24 @@ Status - enabled + enabled disabled SSID - {{ sta_ssid }} + {{ networkStatus.sta_ssid }} Quality - {{ getRSSIasQuality(sta_rssi) }} % + {{ getRSSIasQuality(networkStatus.sta_rssi) }} % RSSI - {{ sta_rssi }} + {{ networkStatus.sta_rssi }} @@ -37,13 +37,12 @@