mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-03 21:30:03 -05:00
show tcp clients as connected via the tcp server interface
This commit is contained in:
parent
9abb0e25a4
commit
2490b870aa
2 changed files with 43 additions and 11 deletions
|
|
@ -144,17 +144,32 @@ export default {
|
|||
// add interface node
|
||||
nodes.push(node);
|
||||
|
||||
// add edge from me to interface
|
||||
edges.push({
|
||||
from: "me",
|
||||
to: entry.name,
|
||||
color: "transparent",
|
||||
length: 300,
|
||||
background: {
|
||||
enabled: true,
|
||||
color: entry.status ? "#22c55e" : "#ef4444",
|
||||
},
|
||||
});
|
||||
// add edge to interface
|
||||
if(entry.parent_interface_name){
|
||||
// add edge from parent interface to interface
|
||||
edges.push({
|
||||
from: entry.parent_interface_name,
|
||||
to: entry.name,
|
||||
color: "transparent",
|
||||
length: 300,
|
||||
background: {
|
||||
enabled: true,
|
||||
color: entry.status ? "#22c55e" : "#ef4444",
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// add edge from me to interface
|
||||
edges.push({
|
||||
from: "me",
|
||||
to: entry.name,
|
||||
color: "transparent",
|
||||
length: 300,
|
||||
background: {
|
||||
enabled: true,
|
||||
color: entry.status ? "#22c55e" : "#ef4444",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue