Skip to content

Commit

Permalink
Add remote node connections to admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina committed Apr 12, 2024
1 parent 78069ea commit dc845a5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ COPY ./src/environments/environment.$environment.ts ./src/environments/environme
RUN npm run build_prod

# build minified version of frontend, served using caddy
FROM caddy:2.3.0-alpine
FROM caddy:2.7.6-alpine

WORKDIR /frontend

Expand Down
21 changes: 21 additions & 0 deletions src/app/network-info/network-info.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,27 @@
<i *ngIf="isOpen.desoNode" class="fas fa-caret-down"></i>
DeSo Node Info
</span>
<div class="ml-15px">
Remote Node Connections
<table class="fs-12px">
<thead>
<td>IP</td>
<td>Status</td>
<td>Validator Info</td>
</thead>
<tbody>
<tr *ngFor="let connection of globalVars.nodeInfo.RemoteNodeConnections">
<td>{{ connection.PeerResponse.IP + ':' + connection.PeerResponse.ProtocolPort }}</td>
<td>
<i [ngClass]="connection.PeerConnected ? 'fas fa-solid fa-check fc-green' : 'fas fa-solid fa-x fc-red'"></i>
{{ connection.RemoteNodeStatus }}
</td>
<td class="text-truncate">
{{ connection?.ValidatorResponse?.ValidatorPublicKeyBase58Check }}
</td>
</tr>
</table>
</div>
<div *ngIf="isOpen.desoNode && updatingDeSoPeer" class="ml-15px fc-muted">
Updating DeSo peers...
</div>
Expand Down

0 comments on commit dc845a5

Please sign in to comment.