refac
This commit is contained in:
parent
2d94b8e905
commit
aee7aaae68
|
@ -339,30 +339,6 @@
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
<th
|
|
||||||
scope="col"
|
|
||||||
class="px-2.5 py-2 cursor-pointer select-none"
|
|
||||||
on:click={() => setSortKey('oauth_sub')}
|
|
||||||
>
|
|
||||||
<div class="flex gap-1.5 items-center">
|
|
||||||
{$i18n.t('OAuth ID')}
|
|
||||||
|
|
||||||
{#if orderBy === 'oauth_sub'}
|
|
||||||
<span class="font-normal"
|
|
||||||
>{#if direction === 'asc'}
|
|
||||||
<ChevronUp className="size-2" />
|
|
||||||
{:else}
|
|
||||||
<ChevronDown className="size-2" />
|
|
||||||
{/if}
|
|
||||||
</span>
|
|
||||||
{:else}
|
|
||||||
<span class="invisible">
|
|
||||||
<ChevronUp className="size-2" />
|
|
||||||
</span>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th scope="col" class="px-2.5 py-2 text-right" />
|
<th scope="col" class="px-2.5 py-2 text-right" />
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -408,8 +384,6 @@
|
||||||
{dayjs(user.created_at * 1000).format('LL')}
|
{dayjs(user.created_at * 1000).format('LL')}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class=" px-3 py-1"> {user.oauth_sub ?? ''} </td>
|
|
||||||
|
|
||||||
<td class="px-3 py-1 text-right">
|
<td class="px-3 py-1 text-right">
|
||||||
<div class="flex justify-end w-full">
|
<div class="flex justify-end w-full">
|
||||||
{#if $config.features.enable_admin_chat_access && user.role !== 'admin'}
|
{#if $config.features.enable_admin_chat_access && user.role !== 'admin'}
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="overflow-hidden w-full">
|
<div class="overflow-hidden w-full">
|
||||||
<div class=" self-center capitalize font-semibold truncate">{selectedUser.name}</div>
|
<div class=" self-center capitalize font-medium truncate">{selectedUser.name}</div>
|
||||||
|
|
||||||
<div class="text-xs text-gray-500">
|
<div class="text-xs text-gray-500">
|
||||||
{$i18n.t('Created at')}
|
{$i18n.t('Created at')}
|
||||||
|
@ -145,6 +145,21 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<div class="flex flex-col w-full">
|
||||||
|
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('Name')}</div>
|
||||||
|
|
||||||
|
<div class="flex-1">
|
||||||
|
<input
|
||||||
|
class="w-full text-sm bg-transparent outline-hidden"
|
||||||
|
type="text"
|
||||||
|
bind:value={_user.name}
|
||||||
|
placeholder={$i18n.t('Enter Your Name')}
|
||||||
|
autocomplete="off"
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col w-full">
|
<div class="flex flex-col w-full">
|
||||||
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('Email')}</div>
|
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('Email')}</div>
|
||||||
|
|
||||||
|
@ -160,20 +175,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col w-full">
|
{#if _user?.oauth_sub}
|
||||||
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('Name')}</div>
|
<div class="flex flex-col w-full">
|
||||||
|
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('OAuth ID')}</div>
|
||||||
|
|
||||||
<div class="flex-1">
|
<div class="flex-1 text-sm break-all mb-1">
|
||||||
<input
|
{_user.oauth_sub ?? ''}
|
||||||
class="w-full text-sm bg-transparent outline-hidden"
|
</div>
|
||||||
type="text"
|
|
||||||
bind:value={_user.name}
|
|
||||||
placeholder={$i18n.t('Enter Your Name')}
|
|
||||||
autocomplete="off"
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
|
|
||||||
<div class="flex flex-col w-full">
|
<div class="flex flex-col w-full">
|
||||||
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('New Password')}</div>
|
<div class=" mb-1 text-xs text-gray-500">{$i18n.t('New Password')}</div>
|
||||||
|
|
Loading…
Reference in New Issue