From 7553ad8b4508a530c81ea44774075c290e379db1 Mon Sep 17 00:00:00 2001 From: Christian Ditaputratama Date: Thu, 12 Sep 2024 03:11:17 +0700 Subject: [PATCH] feat: Display node IP addresses #84 --- frontend/src/app.d.ts | 1 + .../components/datatables/xmr/HostPortCell.svelte | 15 +++++++++++---- frontend/src/routes/remote-nodes/+page.svelte | 1 + .../src/routes/remote-nodes/logs/+page.svelte | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/frontend/src/app.d.ts b/frontend/src/app.d.ts index b8cff3e..6c321e2 100644 --- a/frontend/src/app.d.ts +++ b/frontend/src/app.d.ts @@ -21,6 +21,7 @@ declare global { is_tor: boolean; is_available: boolean; nettype: string; + ip_addresses: string; } interface ApiResponse { diff --git a/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte b/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte index 9a230cd..28e2732 100644 --- a/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte +++ b/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte @@ -16,6 +16,8 @@ export let hostname; export let port; export let ipv6_only; + /** @type {string} */ + export let ip_addresses; /** * @param {string} onionAddr @@ -35,7 +37,7 @@ {#if is_tor}