From 3c519941262915a2543ec7da12eebdb17f780cd5 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 5 Dec 2024 17:35:46 +1300 Subject: [PATCH] refactor traceroute snr label to vue component --- src/components/TraceRouteSnrLabel.vue | 18 ++++++++++++++++++ src/components/pages/TraceRoutePage.vue | 18 ++++++------------ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 src/components/TraceRouteSnrLabel.vue diff --git a/src/components/TraceRouteSnrLabel.vue b/src/components/TraceRouteSnrLabel.vue new file mode 100644 index 0000000..866cc5a --- /dev/null +++ b/src/components/TraceRouteSnrLabel.vue @@ -0,0 +1,18 @@ + + \ No newline at end of file diff --git a/src/components/pages/TraceRoutePage.vue b/src/components/pages/TraceRoutePage.vue index e6d2a34..fbdd1ad 100644 --- a/src/components/pages/TraceRoutePage.vue +++ b/src/components/pages/TraceRoutePage.vue @@ -35,9 +35,7 @@
{{ getNodeLongName(traceRoute.to) || '???' }}
{{ getNodeHexId(traceRoute.to) }}
Started the traceroute
- -
- {{ traceRoute.data.snrTowards[0] / 4 }}dB SNR +
@@ -58,9 +56,7 @@
{{ getNodeLongName(route) || '???' }}
{{ getNodeHexId(route) }}
Forwarded the packet
-
-
- {{ traceRoute.data.snrTowards[index + 1] / 4 }}dB SNR +
@@ -81,9 +77,7 @@
{{ getNodeLongName(traceRoute.from) || '???' }}
{{ getNodeHexId(traceRoute.from) }}
Replied to traceroute
-
-
- {{ traceRoute.data.snrBack[0] / 4 }}dB SNR +
@@ -109,9 +103,7 @@
{{ getNodeHexId(route) }}
Forwarded the packet
- -
- {{ traceRoute.data.snrBack[index + 1] / 4 }}dB SNR +
@@ -166,10 +158,12 @@ import ChannelUtils from "../../js/ChannelUtils.js"; import TimeUtils from "../../js/TimeUtils.js"; import Database from "../../js/Database.js"; import NodeDropDownMenu from "../nodes/NodeDropDownMenu.vue"; +import TraceRouteSnrLabel from "../TraceRouteSnrLabel.vue"; export default { name: 'TraceRoutePage', components: { + TraceRouteSnrLabel, NodeDropDownMenu, NodeIcon, Page,