mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 13:01:46 -07:00
Updated to include Physical address, port, and latency
This commit is contained in:
parent
cd6699d9b7
commit
ade8c3596e
2 changed files with 22 additions and 2 deletions
|
@ -45,10 +45,13 @@ async function getMemberAdditionalData(data) {
|
||||||
if (peer.paths[0]) {
|
if (peer.paths[0]) {
|
||||||
peerData.lastOnline = peer.paths[0].lastReceive;
|
peerData.lastOnline = peer.paths[0].lastReceive;
|
||||||
peerData.physicalAddress = peer.paths[0].address.split("/")[0];
|
peerData.physicalAddress = peer.paths[0].address.split("/")[0];
|
||||||
|
peerData.physicalPort = peer.paths[0].address.split("/")[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
peerData.online = 0;
|
peerData.online = 0;
|
||||||
|
}
|
||||||
|
|
||||||
delete data.lastAuthorizedCredential;
|
delete data.lastAuthorizedCredential;
|
||||||
delete data.lastAuthorizedCredentialType;
|
delete data.lastAuthorizedCredentialType;
|
||||||
|
|
|
@ -101,9 +101,9 @@ function NetworkMembers({ network }) {
|
||||||
name: "Peer status",
|
name: "Peer status",
|
||||||
minWidth: "100px",
|
minWidth: "100px",
|
||||||
cell: (row) =>
|
cell: (row) =>
|
||||||
(row.online == 0) ? (
|
(row.online === 0) ? (
|
||||||
<Typography color="error">OFFLINE</Typography>
|
<Typography color="error">OFFLINE</Typography>
|
||||||
) : ( (row.online == 1) ? (
|
) : ( (row.online === 1) ? (
|
||||||
|
|
||||||
<Typography style={{ color: "#008000" }}>
|
<Typography style={{ color: "#008000" }}>
|
||||||
{"ONLINE (v" +
|
{"ONLINE (v" +
|
||||||
|
@ -123,8 +123,25 @@ function NetworkMembers({ network }) {
|
||||||
"." +
|
"." +
|
||||||
row.config.vRev +
|
row.config.vRev +
|
||||||
")"}
|
")"}
|
||||||
|
</Typography>
|
||||||
)),
|
)),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "physicalip",
|
||||||
|
name: "Physical IP / Latency",
|
||||||
|
minWidth: "220px",
|
||||||
|
cell: (row) =>
|
||||||
|
(row.online === 1) ? (
|
||||||
|
<p>
|
||||||
|
{row.physicalAddress +
|
||||||
|
"/" +
|
||||||
|
row.physicalPort}<br />{
|
||||||
|
"(" +
|
||||||
|
row.latency +
|
||||||
|
" ms)"}
|
||||||
|
</p>
|
||||||
|
) : (""),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "delete",
|
id: "delete",
|
||||||
name: "",
|
name: "",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue