mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
1377e93e69
commit
36f6e21679
|
@ -87,7 +87,6 @@ ipcRenderer.on("action-update-mesh-table", (event, arg) => {
|
|||
routerText.innerHTML += `<span class="badge ms-2 bg-secondary">${call}</span>`;
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
router.appendChild(routerText);
|
||||
|
||||
|
@ -156,7 +155,6 @@ ipcRenderer.on("action-update-mesh-table", (event, arg) => {
|
|||
destinationText.innerHTML += `<span class="badge ms-2 bg-secondary">${call}</span>`;
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
destination.appendChild(destinationText);
|
||||
|
||||
|
@ -193,37 +191,33 @@ ipcRenderer.on("action-update-mesh-table", (event, arg) => {
|
|||
//statusText.innerText = routes[i]["status"];
|
||||
switch (routes[i]["status"]) {
|
||||
case "acknowledged":
|
||||
var status_icon = '<i class="bi bi-check-circle-fill"></i>'
|
||||
var status_color = 'bg-success'
|
||||
var status_icon = '<i class="bi bi-check-circle-fill"></i>';
|
||||
var status_color = "bg-success";
|
||||
break;
|
||||
case "acknowledging":
|
||||
var status_icon = '<i class="bi bi-check-circle"></i>'
|
||||
var status_color = 'bg-warning'
|
||||
var status_icon = '<i class="bi bi-check-circle"></i>';
|
||||
var status_color = "bg-warning";
|
||||
break;
|
||||
case "forwarding":
|
||||
var status_icon = '<i class="bi bi-arrow-left-right"></i>'
|
||||
var status_color = 'bg-secondary'
|
||||
var status_icon = '<i class="bi bi-arrow-left-right"></i>';
|
||||
var status_color = "bg-secondary";
|
||||
break;
|
||||
case "awaiting_ack":
|
||||
var status_icon = '<i class="bi bi-clock-history"></i>'
|
||||
var status_color = 'bg-info'
|
||||
var status_icon = '<i class="bi bi-clock-history"></i>';
|
||||
var status_color = "bg-info";
|
||||
break;
|
||||
default:
|
||||
var status_icon = '<i class="bi bi-question-circle-fill"></i>'
|
||||
var status_color = 'bg-primary'
|
||||
var status_icon = '<i class="bi bi-question-circle-fill"></i>';
|
||||
var status_color = "bg-primary";
|
||||
break;
|
||||
}
|
||||
|
||||
statusText.innerHTML = `
|
||||
<span class="badge ${status_color}">${status_icon}</span>
|
||||
<span class="badge ${status_color}">${routes[i]["status"]}</span>
|
||||
`
|
||||
`;
|
||||
status.appendChild(statusText);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
row.appendChild(timestamp);
|
||||
row.appendChild(destination);
|
||||
row.appendChild(origin);
|
||||
|
|
|
@ -98,7 +98,10 @@
|
|||
aria-labelledby="nav-signaling-tab"
|
||||
>
|
||||
<div class="container-fluid">
|
||||
<div class="table-responsive overflow-auto" style="max-width: 99vw;max-height: 99vh;">
|
||||
<div
|
||||
class="table-responsive overflow-auto"
|
||||
style="max-width: 99vw; max-height: 99vh"
|
||||
>
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -115,7 +118,6 @@
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
class="tab-pane fade"
|
||||
|
|
Loading…
Reference in a new issue