feat: show oauth sub in admin panel

This commit is contained in:
Jun Siang Cheah
2024-06-21 14:21:34 +01:00
parent 983112d17c
commit 49a00d61ac
38 changed files with 51 additions and 0 deletions

View File

@@ -195,6 +195,18 @@
<span class="invisible"></span>
{/if}
</th>
<th
scope="col"
class="px-3 py-2 cursor-pointer select-none"
on:click={() => setSortKey('oauth_sub')}
>
{$i18n.t('OAuth ID')}
{#if sortKey === 'oauth_sub'}
{sortOrder === 'asc' ? '▲' : '▼'}
{:else}
<span class="invisible"></span>
{/if}
</th>
<th
scope="col"
class="px-3 py-2 cursor-pointer select-none"
@@ -283,6 +295,8 @@
</td>
<td class=" px-3 py-2"> {user.email} </td>
<td class=" px-3 py-2"> {user.oauth_sub ?? ""} </td>
<td class=" px-3 py-2">
{dayjs(user.last_active_at * 1000).fromNow()}
</td>