From 629e8d47fb5fe920e3ee0c8c18e5b88d3400128a Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 2 Jan 2025 02:03:25 +1300 Subject: [PATCH] ui improvements for interfaces page --- .../components/interfaces/Interface.vue | 54 ++++++++++++------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/src/frontend/components/interfaces/Interface.vue b/src/frontend/components/interfaces/Interface.vue index 3ec90ce..47f6063 100644 --- a/src/frontend/components/interfaces/Interface.vue +++ b/src/frontend/components/interfaces/Interface.vue @@ -48,34 +48,22 @@
- +
{{ iface.type }} • Ethernet and WiFi - +
- +
{{ iface.type }} • {{ iface.target_host }}:{{ iface.target_port }} - +
- +
{{ iface.type }} • {{ iface.listen_ip }}:{{ iface.listen_port }} - +
- - - {{ iface.type }} • {{ iface.listen_ip }}:{{ iface.listen_port }} • {{ iface.forward_ip }}:{{ iface.forward_port }} - - - - - {{ iface.type }} • {{ iface.port }} • freq={{ iface.frequency }} • bw={{ iface.bandwidth }} • power={{ iface.txpower }}dBm • sf={{ iface.spreadingfactor }} • cr={{ iface.codingrate }} - - - - - {{ iface.type ?? 'Unknown Interface Type' }} - + +
{{ iface.type }}
@@ -167,6 +155,29 @@ + +
+
+ + +
+
Listen: {{ iface.listen_ip }}:{{ iface.listen_port }}
+
Forward: {{ iface.forward_ip }}:{{ iface.forward_port }}
+
+ + +
+
Port: {{ iface.port }}
+
Frequency: {{ formatFrequency(iface.frequency) }}
+
Bandwidth: {{ formatFrequency(iface.bandwidth) }}
+
Spreading Factor: {{ iface.spreadingfactor }}
+
Coding Rate: {{ iface.codingrate }}
+
Transmit Power: {{ iface.txpower }}dBm
+
+ +
+
+
@@ -234,6 +245,9 @@ export default { formatBytes: function(bytes) { return Utils.formatBytes(bytes); }, + formatFrequency(hz) { + return Utils.formatFrequency(hz); + }, }, }