minor improvements
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user