2024-03-06 19:34:12 +00:00
|
|
|
<div class="tomahawk">
|
2024-03-04 18:35:34 +00:00
|
|
|
<div class="links">
|
2024-03-06 19:34:12 +00:00
|
|
|
<span>Monitoring</span>
|
|
|
|
<a [routerLink]='"/nodes"'>Nodes</a>
|
2024-03-04 18:35:34 +00:00
|
|
|
</div>
|
2024-03-06 19:34:12 +00:00
|
|
|
|
|
|
|
<app-start [showLoadingIndicator]="true"></app-start>
|
|
|
|
<app-footer [inline]="true"></app-footer>
|
2024-03-04 18:35:34 +00:00
|
|
|
|
2024-03-03 20:31:02 +00:00
|
|
|
<ng-container *ngIf="(hosts$ | async) as hosts">
|
|
|
|
<div class="status-panel">
|
2024-03-05 23:16:20 +00:00
|
|
|
<table class="status-table table table-fixed table-borderless table-striped" *ngIf="(tip$ | async) as tip">
|
2024-03-03 20:31:02 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2024-03-05 23:16:20 +00:00
|
|
|
<th class="rank"></th>
|
|
|
|
<th class="flag"></th>
|
2024-03-03 20:31:02 +00:00
|
|
|
<th class="host">Host</th>
|
2024-03-06 19:34:12 +00:00
|
|
|
<th class="updated">Last checked</th>
|
2024-03-05 23:16:20 +00:00
|
|
|
<th class="rtt only-small">RTT</th>
|
|
|
|
<th class="rtt only-large">RTT</th>
|
2024-03-03 20:31:02 +00:00
|
|
|
<th class="height">Height</th>
|
|
|
|
</tr>
|
2024-03-05 23:16:20 +00:00
|
|
|
<tr *ngFor="let host of hosts; let i = index; trackBy: trackByFn">
|
|
|
|
<td class="rank">{{ i + 1 }}</td>
|
|
|
|
<td class="flag">{{ host.active ? '⭐️' : host.flag }}</td>
|
|
|
|
<td class="host">{{ host.link }}</td>
|
2024-03-06 19:34:12 +00:00
|
|
|
<td class="updated">{{ getLastUpdateSeconds(host) }}</td>
|
2024-03-05 23:16:20 +00:00
|
|
|
<td class="rtt only-small">{{ (host.rtt / 1000) | number : '1.1-1' }} {{ host.rtt == null ? '' : 's'}} {{ !host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅') }}</td>
|
|
|
|
<td class="rtt only-large">{{ host.rtt | number : '1.0-0' }} {{ host.rtt == null ? '' : 'ms'}} {{ !host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅') }}</td>
|
2024-03-03 20:31:02 +00:00
|
|
|
<td class="height">{{ host.latestHeight }} {{ !host.checked ? '⏳' : (host.outOfSync ? '🚫' : (host.latestHeight && host.latestHeight < tip ? '🟧' : '✅')) }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|