From 61cc98e378451736e2080c9e7a7a16ef57357b1f Mon Sep 17 00:00:00 2001 From: Christian Ditaputratama Date: Mon, 9 Sep 2024 19:17:39 +0700 Subject: [PATCH] feat!: Added IPv6 only information to the table The IP address information of the remote node is replaced with information on whether the remote node only supports IPv6 or not. --- .../datatables/xmr/HostPortCell.svelte | 29 ++++++++++--------- frontend/src/routes/remote-nodes/+page.svelte | 2 +- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte b/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte index be3f93a..afc45a6 100644 --- a/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte +++ b/frontend/src/lib/components/datatables/xmr/HostPortCell.svelte @@ -2,18 +2,19 @@ import { getModalStore } from '@skeletonlabs/skeleton'; const modalStore = getModalStore(); - /** @type {string} */ - export let ip; - /** @type {boolean} */ - export let is_tor; - /** @type {string} */ - export let hostname; - /** @type {number} */ - export let port; - // if (is_tor) { - // hostname = hostname.substring(0, 8) + '[...].onion'; - // } + /** + * @type {{ + * is_tor: boolean, + * hostname: string, + * port: number, + * ipv6_only: boolean + * }} + */ + export let is_tor; + export let hostname; + export let port; + export let ipv6_only; /** * @param {string} onionAddr @@ -40,8 +41,8 @@
.onion:{port} (TOR) {:else} - {hostname}:{port} - {#if ip !== ''} -
{ip} + {hostname}:{port}
+ {#if ipv6_only} + (IPv6 only) {/if} {/if} diff --git a/frontend/src/routes/remote-nodes/+page.svelte b/frontend/src/routes/remote-nodes/+page.svelte index c99cb49..d4f06b5 100644 --- a/frontend/src/routes/remote-nodes/+page.svelte +++ b/frontend/src/routes/remote-nodes/+page.svelte @@ -211,10 +211,10 @@ [Logs]