mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-05 20:41:43 -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]) {
|
||||
peerData.lastOnline = peer.paths[0].lastReceive;
|
||||
peerData.physicalAddress = peer.paths[0].address.split("/")[0];
|
||||
peerData.physicalPort = peer.paths[0].address.split("/")[1];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
peerData.online = 0;
|
||||
}
|
||||
|
||||
delete data.lastAuthorizedCredential;
|
||||
delete data.lastAuthorizedCredentialType;
|
||||
|
|
|
@ -101,9 +101,9 @@ function NetworkMembers({ network }) {
|
|||
name: "Peer status",
|
||||
minWidth: "100px",
|
||||
cell: (row) =>
|
||||
(row.online == 0) ? (
|
||||
(row.online === 0) ? (
|
||||
<Typography color="error">OFFLINE</Typography>
|
||||
) : ( (row.online == 1) ? (
|
||||
) : ( (row.online === 1) ? (
|
||||
|
||||
<Typography style={{ color: "#008000" }}>
|
||||
{"ONLINE (v" +
|
||||
|
@ -123,8 +123,25 @@ function NetworkMembers({ network }) {
|
|||
"." +
|
||||
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",
|
||||
name: "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue