Skip to content

Commit dc845a5

Browse files
committed
Add remote node connections to admin panel
1 parent 78069ea commit dc845a5

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ COPY ./src/environments/environment.$environment.ts ./src/environments/environme
4040
RUN npm run build_prod
4141

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

4545
WORKDIR /frontend
4646

src/app/network-info/network-info.component.html

+21
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,27 @@
211211
<i *ngIf="isOpen.desoNode" class="fas fa-caret-down"></i>
212212
DeSo Node Info
213213
</span>
214+
<div class="ml-15px">
215+
Remote Node Connections
216+
<table class="fs-12px">
217+
<thead>
218+
<td>IP</td>
219+
<td>Status</td>
220+
<td>Validator Info</td>
221+
</thead>
222+
<tbody>
223+
<tr *ngFor="let connection of globalVars.nodeInfo.RemoteNodeConnections">
224+
<td>{{ connection.PeerResponse.IP + ':' + connection.PeerResponse.ProtocolPort }}</td>
225+
<td>
226+
<i [ngClass]="connection.PeerConnected ? 'fas fa-solid fa-check fc-green' : 'fas fa-solid fa-x fc-red'"></i>
227+
{{ connection.RemoteNodeStatus }}
228+
</td>
229+
<td class="text-truncate">
230+
{{ connection?.ValidatorResponse?.ValidatorPublicKeyBase58Check }}
231+
</td>
232+
</tr>
233+
</table>
234+
</div>
214235
<div *ngIf="isOpen.desoNode && updatingDeSoPeer" class="ml-15px fc-muted">
215236
Updating DeSo peers...
216237
</div>

0 commit comments

Comments
 (0)