Add announce address to debug page

This commit is contained in:
Shaun Orssaud 2024-01-08 16:28:24 +09:00
parent 52217354f0
commit 2c468fa66b
2 changed files with 9 additions and 2 deletions

View File

@ -31,6 +31,12 @@ function NodeInfoItemComponent(props: {
{props.data.spr} {props.data.spr}
</p> </p>
</div> </div>
<div id="info-row">
<p>
<span>Announce Adresses: </span>
{props.data.announceAddresses.join(", ")}
</p>
</div>
<div> <div>
<h3>Local Node</h3> <h3>Local Node</h3>
<div id="info-row"> <div id="info-row">
@ -53,8 +59,8 @@ function NodeInfoItemComponent(props: {
{`${props.data.table.localNode.seen {`${props.data.table.localNode.seen
.toString()[0] .toString()[0]
.toUpperCase()}${props.data.table.localNode.seen .toUpperCase()}${props.data.table.localNode.seen
.toString() .toString()
.slice(1)}`} .slice(1)}`}
</p> </p>
</div> </div>
</div> </div>

View File

@ -5,6 +5,7 @@ export interface DebugNodeInfoModel {
spr: string; spr: string;
table: Table; table: Table;
codex: Codex; codex: Codex;
announceAddresses: string[];
} }
export interface Codex { export interface Codex {