From f3f60684ec353714bc73e766facf840de301c74f Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 13 Aug 2024 11:35:16 +1200 Subject: [PATCH] increase thickness of line between interface and announce if it's 1 hop away --- .../network-visualiser/NetworkVisualiser.vue | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/frontend/components/network-visualiser/NetworkVisualiser.vue b/src/frontend/components/network-visualiser/NetworkVisualiser.vue index dcc1402..91eea5d 100644 --- a/src/frontend/components/network-visualiser/NetworkVisualiser.vue +++ b/src/frontend/components/network-visualiser/NetworkVisualiser.vue @@ -239,15 +239,30 @@ export default { } + const edge = { + from: entry.interface, + to: entry.hash, + color: "gray", + }; + + // if announce is 1 hop away, they are directly running on the interface they announced from + // for example, they might be a nomadnetwork node, that is hosting a TCPServerInterface + // in this case, its lxmf.delivery and nomadnetwork.node addresses would be 1 hop away + if(entry.hops === 1){ + + // make the line between the interface and the announce thicker + edge.background = { + enabled: true, + color: "gray", + }; + + } + // add node nodes.push(node); // add edge from interface to announced aspect - edges.push({ - from: entry.interface, - to: entry.hash, - color: "gray", - }); + edges.push(edge); }