minor improvements

This commit is contained in:
2024-12-22 19:45:46 -08:00
parent 3909281bc7
commit 5e3772d39b
6 changed files with 4 additions and 8 deletions

View File

@@ -26,7 +26,6 @@ export const GET: RequestHandler = async (event) => {
'type': ['peer'],
}),
};
console.log('Fetching peers from OPNsense WireGuard API: ', apiUrl, options)
const res = await fetch(apiUrl, options);
const peers = await res.json() as OpnsenseWgPeers;

View File

@@ -26,7 +26,7 @@
<Table.Cell class="truncate max-w-[10ch]">{client.privateKey}</Table.Cell>
<Table.Cell class="truncate max-w-[10ch]">{client.preSharedKey}</Table.Cell>
<Table.Cell>
<Badge class="bg-background" variant="secondary">{client.ipAllocation.id}</Badge>
<Badge class="bg-background select-auto" variant="secondary">{client.ipAllocation.id}</Badge>
</Table.Cell>
</Table.Row>
{/each}

View File

@@ -54,7 +54,7 @@
<Table.Cell>
<div class="flex flex-wrap gap-1">
{#each peer['allowed-ips'].split(',') as addr}
<Badge class="bg-background" variant="secondary">{addr}</Badge>
<Badge class="bg-background select-auto" variant="secondary">{addr}</Badge>
{/each}
</div>
</Table.Cell>