From 6849bd8f6d1be499ea4967b8d488878f24bffd77 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 16 Jun 2022 00:01:17 +0200 Subject: [PATCH] Webapp: Beautify different views --- webapp/src/components/MqttAdminView.vue | 5 +- webapp/src/components/MqttInfoView.vue | 155 +++++++++++----------- webapp/src/components/NetworkInfoView.vue | 14 +- webapp/src/components/NtpInfoView.vue | 97 +++++++------- webapp/src/components/SystemInfoView.vue | 11 +- 5 files changed, 139 insertions(+), 143 deletions(-) diff --git a/webapp/src/components/MqttAdminView.vue b/webapp/src/components/MqttAdminView.vue index 3480c4ad..455c3242 100644 --- a/webapp/src/components/MqttAdminView.vue +++ b/webapp/src/components/MqttAdminView.vue @@ -21,7 +21,8 @@ -
+ +
MqTT Broker Parameter
@@ -123,7 +124,7 @@
-
+
LWT Parameters
diff --git a/webapp/src/components/MqttInfoView.vue b/webapp/src/components/MqttInfoView.vue index e0d0c6ed..36be1a3e 100644 --- a/webapp/src/components/MqttInfoView.vue +++ b/webapp/src/components/MqttInfoView.vue @@ -3,87 +3,82 @@ -
-
-
- Configuration Summary -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Status - enabled - disabled -
Server{{ mqttDataList.mqtt_hostname }}
Port{{ mqttDataList.mqtt_port }}
Username{{ mqttDataList.mqtt_username }}
Base Topic{{ mqttDataList.mqtt_topic }}
Retain - enabled - disabled -
-
-
-
-
- Runtime Summary -
-
-
- - - - - - - -
Connection Status - connected - disconnected -
-
-
+
+
Configuration Summary
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Status + enabled + disabled +
Server{{ mqttDataList.mqtt_hostname }}
Port{{ mqttDataList.mqtt_port }}
Username{{ mqttDataList.mqtt_username }}
Base Topic{{ mqttDataList.mqtt_topic }}
Retain + enabled + disabled +
+
+
+
+ +
+
Runtime Summary
+
+
+ + + + + + + +
Connection Status + connected + disconnected +
diff --git a/webapp/src/components/NetworkInfoView.vue b/webapp/src/components/NetworkInfoView.vue index 863c2a77..e3bf2a0a 100644 --- a/webapp/src/components/NetworkInfoView.vue +++ b/webapp/src/components/NetworkInfoView.vue @@ -3,12 +3,14 @@ -
- - - - -
+ +
+ +
+ +
+ +
diff --git a/webapp/src/components/NtpInfoView.vue b/webapp/src/components/NtpInfoView.vue index 4ff870de..49e714e7 100644 --- a/webapp/src/components/NtpInfoView.vue +++ b/webapp/src/components/NtpInfoView.vue @@ -3,59 +3,56 @@ -
-
-
- Configuration Summary -
-
-
- - - - - - - - - - - - - - - -
Server{{ ntpDataList.ntp_server }}
Timezone{{ ntpDataList.ntp_timezone }}
Timezone Description{{ ntpDataList.ntp_timezone_descr }}
-
+ +
+
Configuration Summary
+
+
+ + + + + + + + + + + + + + + +
Server{{ ntpDataList.ntp_server }}
Timezone{{ ntpDataList.ntp_timezone }}
Timezone Description{{ ntpDataList.ntp_timezone_descr }}
+
-
-
Current Time
-
-
- - - - - - - - - - - -
Status - synced - not synced -
Local Time{{ ntpDataList.ntp_localtime }}
-
+
+
Current Time
+
+
+ + + + + + + + + + + +
Status + synced + not synced +
Local Time{{ ntpDataList.ntp_localtime }}
diff --git a/webapp/src/components/SystemInfoView.vue b/webapp/src/components/SystemInfoView.vue index b7ab4dfe..ea7ef64a 100644 --- a/webapp/src/components/SystemInfoView.vue +++ b/webapp/src/components/SystemInfoView.vue @@ -3,11 +3,12 @@ -
- - - -
+ +
+ +
+ +