migrate: fix broken pages
This commit is contained in:
1 parent
b5429cc1d8
commit
2540536773
2 files changed
+2
-7
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
import { UAParser } from 'ua-parser-js'
|
||||
|
||||
let { data } = $props();
|
||||
let { data } = $props()
|
||||
|
||||
let checked: {
|
||||
[token: string]: boolean
|
||||
@@ -28,7 +28,6 @@
|
||||
class="divide-x border-b divide-slate-200 dark:divide-zinc-800 h-12 *:px-4
|
||||
bg-slate-50 dark:bg-zinc-900"
|
||||
>
|
||||
<th class="w-4"></th>
|
||||
<th align="left">User Agent</th>
|
||||
<th align="left">IP</th>
|
||||
<th align="right" class="w-24">Date</th>
|
||||
@@ -41,10 +40,6 @@
|
||||
{#each data.tokens as token}
|
||||
{@const ua = new UAParser(token.user_agent).getResult()}
|
||||
<tr class="divide-x *:px-3 divide-slate-200 dark:divide-zinc-800">
|
||||
<td class="!pr-1">
|
||||
<Checkbox bind:checked={checked[token.user_id]} />
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="text-base">{ua.os.name} {ua.os.version}</div>
|
||||
<div class="text-sm">{ua.browser.name}</div>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
/>
|
||||
<MarkdownEditor
|
||||
images={false}
|
||||
bind:value={formData.bio}
|
||||
bind:value={() => formData.bio ?? '', (v) => (formData.bio = v)}
|
||||
label={$t('form.profile.bio')}
|
||||
previewButton
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user