migrate: run bunx migrate

This commit is contained in:
James Xylight committed 2025-06-06 11:26:00 -07:00
1 parent 964baccfa0
commit bc05ad549a
115 files changed
+329 -326

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
{#if page?.error?.message}
{@const error = getError(page?.error?.message)}
{#if error.code}
<code class="rounded-md dark:!bg-zinc-950 px-2 py-1 min-w-48">
<code class="rounded-md dark:bg-zinc-950! px-2 py-1 min-w-48">
{error.string}
</code>
{:else}
+3 -3
View File
@@ -109,7 +109,7 @@
</svelte:head>
<Button
class="fixed -top-16 focus:top-0 left-0 m-4 z-[300] transition-all"
class="fixed -top-16 focus:top-0 left-0 m-4 z-300 transition-all"
href="#main"
>
{#snippet prefix()}
@@ -147,14 +147,14 @@
<div class=" {c}" style={s}>
{#if page.data.slots?.sidebar?.component}
{@const SvelteComponent = page.data.slots.sidebar.component}
<SvelteComponent {...page.data.slots.sidebar.props} class="!pt-0" />
<SvelteComponent {...page.data.slots.sidebar.props} class="pt-0!" />
{:else if site.data}
<SiteCard
site={site.data.site_view}
taglines={site.data.taglines}
admins={site.data.admins}
version={site.data.version}
class="!pt-0"
class="pt-0!"
/>
{:else}
<div class="h-64 w-full grid place-items-center">
+1 -1
View File
@@ -27,7 +27,7 @@
>
{name}
{#if badge}
<Badge color="gray-subtle" class="!p-0.5 !px-2">{badge}</Badge>
<Badge color="gray-subtle" class="p-0.5! px-2!">{badge}</Badge>
{/if}
</a>
<span class="text-sm">{description}</span>
@@ -164,7 +164,7 @@
size="square-md"
class="hover:bg-slate-200 {application.creator_local_user
.accepted_application === false && application.admin
? '!text-red-500'
? 'text-red-500!'
: ''}"
aria-label={$t('routes.admin.applications.deny')}
onclick={() => review(false)}
@@ -179,7 +179,7 @@
size="square-md"
class="hover:bg-slate-200 {application.creator_local_user
.accepted_application
? '!text-green-500'
? 'text-green-500!'
: ''}"
title={$t('routes.admin.applications.approve')}
onclick={() => review(true)}
+4 -4
View File
@@ -193,7 +193,7 @@
{/snippet}
</FileInput>
<div class="flex flex-col md:flex-row gap-4">
<div class="flex-1 w-full max-h-[42rem] h-full flex flex-col gap-2">
<div class="flex-1 w-full max-h-168 h-full flex flex-col gap-2">
<h2 class="font-bold text-lg">{$t('routes.admin.federation.blocked')}</h2>
<form
onsubmit={preventDefault(() =>
@@ -216,7 +216,7 @@
</form>
<Material class="h-full overflow-auto" color="distinct">
<ul
class="[&>*]:py-3 dark:!divide-zinc-800 {allowInstance.instance != ''
class="*:py-3 dark:divide-zinc-800! {allowInstance.instance != ''
? 'opacity-50'
: ''}"
>
@@ -264,7 +264,7 @@
</ul>
</Material>
</div>
<div class="md:flex-1 w-full max-h-[42rem] flex flex-col gap-2">
<div class="md:flex-1 w-full max-h-168 flex flex-col gap-2">
<h2 class="font-bold text-lg flex items-center space-x-1">
<span>{$t('routes.admin.federation.allowed')}</span>
{#if allowInstance.instance || !(data.federated_instances.federated_instances.allowed?.length == 0)}
@@ -303,7 +303,7 @@
</Button>
</form>
<Material class="h-full overflow-auto" color="distinct">
<ul class="[&>*]:py-3 dark:!divide-zinc-800">
<ul class="*:py-3 dark:divide-zinc-800!">
{#if data.federated_instances.federated_instances.allowed.length > 0}
{#each data.federated_instances.federated_instances.allowed.sort( (b, a) => b.domain.localeCompare(a.domain), ) as instance (instance.id)}
<div
+1 -1
View File
@@ -85,7 +85,7 @@
{@const missing = data.community.value.discussion_languages.filter(
(i) => !profile.data.user?.discussion_languages.includes(i),
)}
<Note class="!p-1 !pl-3 flex-col md:flex-row">
<Note class="p-1! pl-3! flex-col md:flex-row">
<div>{$t('routes.community.languageWarning')}</div>
<Button
class="inline-block ml-auto"
@@ -154,7 +154,7 @@
loading={formData.addingModerator}
disabled={formData.addingModerator}
size="lg"
class="w-max flex-shrink-0"
class="w-max shrink-0"
color="primary"
submit
>
+6 -6
View File
@@ -69,14 +69,14 @@
name="q"
aria-label={$t('routes.search.query')}
size="lg"
class="flex-1 !rounded-full h-full"
class="flex-1 rounded-full! h-full"
placeholder={$t('routes.communities.search.placeholder')}
/>
<Button
submit
color="primary"
size="custom"
class="flex-shrink-0 h-full aspect-square"
class="shrink-0 h-full aspect-square"
title="Search"
rounding="pill"
loading={navigating.to != null}
@@ -130,11 +130,11 @@
{/if}
{#if showTop}
<SectionTitle class="!border-0 pb-2">
<SectionTitle class="border-0! pb-2">
{$t('routes.search.top')}
</SectionTitle>
<div
class="grid md:grid-cols-2 lg:grid-cols-3 gap-4 items-center mb-6 !border-0"
class="grid md:grid-cols-2 lg:grid-cols-3 gap-4 items-center mb-6 border-0!"
>
{#each data.communities.value.slice(0, 3) as community, index (community.community.id)}
<div
@@ -165,7 +165,7 @@
{/if}
{#if data.communities.value.slice(showTop ? 3 : 0).length > 0}
<SectionTitle class="!border-0 pb-2">
<SectionTitle class="border-0! pb-2">
{$t('routes.search.other')}
</SectionTitle>
{/if}
@@ -174,7 +174,7 @@
<div class="-mx-4 sm:-mx-6 h-full">
{#each sliced as community, index (community.community.id)}
<div
class="px-6 hover:bg-slate-50 hover:dark:bg-zinc-900 transition-colors @container
class="px-6 hover:bg-slate-50 dark:hover:bg-zinc-900 transition-colors @container
border-b border-slate-100 dark:border-zinc-900"
in:fly|global={{
duration: 1000,
+4 -4
View File
@@ -113,7 +113,7 @@
</div>
</div>
<div class="flex-1"></div>
<div class="flex gap-2 max-md:hidden flex-shrink-0">
<div class="flex gap-2 max-md:hidden shrink-0">
<Button
color={item.read ? 'secondary' : 'primary'}
{loading}
@@ -124,7 +124,7 @@
}}
size="sm"
rounding="pill"
class="flex-shrink-0"
class="shrink-0"
>
{#snippet prefix()}
<Icon src={item.read ? EyeSlash : Eye} size="16" micro />
@@ -139,7 +139,7 @@
: `/inbox/messages/${item.item.private_message.creator_id}`}
size="sm"
rounding="pill"
class="flex-shrink-0"
class="shrink-0"
>
{$t('common.jump')}
</Button>
@@ -184,7 +184,7 @@
community={false}
view="cozy"
meta={false}
commentClass="!pt-0 pb-0"
commentClass="pt-0! pb-0"
class="pt-0"
/>
{:else}
+3 -3
View File
@@ -71,7 +71,7 @@
<a
href="/inbox/messages/{preview.user.id}"
class="flex flex-row gap-2 py-3 -mx-4 px-4 sm:-mx-6 sm:px-6 w-full min-w-0
hover:bg-slate-100 hover:dark:bg-zinc-900 transition-colors"
hover:bg-slate-100 dark:hover:bg-zinc-900 transition-colors"
in:fly|global={{
duration: 700,
easing: backOut,
@@ -83,8 +83,8 @@
<div class="flex flex-col w-full overflow-hidden">
<div class="font-medium">{preview.user.name}</div>
<div
class="text-sm overflow-ellipsis whitespace-nowrap
bg-gradient-to-r from-slate-700 via-slate-700 to-slate-700/0 dark:from-zinc-300 dark:via-zinc-300 dark:to-zinc-300/0
class="text-sm text-ellipsis whitespace-nowrap
bg-linear-to-r from-slate-700 via-slate-700 to-slate-700/0 dark:from-zinc-300 dark:via-zinc-300 dark:to-zinc-300/0
text-transparent bg-clip-text"
>
{preview.message.content}
@@ -96,7 +96,7 @@
rounding="2xl"
padding="none"
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900
w-full overflow-auto mt-6 relative max-h-[32rem] h-full"
w-full overflow-auto mt-6 relative max-h-128 h-full"
>
<div class="h-full overflow-auto" bind:this={chatWindow}>
<ul id="chat-window" class=" h-full flex flex-col gap-1 flex-1 px-4 py-4">
@@ -161,7 +161,7 @@
>
<TextInput
bind:value={textbox.message}
class="!rounded-xl h-full flex-1 dark:!bg-zinc-925"
class="rounded-xl! h-full flex-1 dark:bg-zinc-925!"
/>
<Button
@@ -37,7 +37,7 @@
{#snippet target()}
<Button
color="tertiary"
class="opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-all flex-shrink-0"
class="opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-all shrink-0"
size="square-md"
rounding="pill"
title={$t('post.actions.more.actions')}
+4 -4
View File
@@ -13,7 +13,7 @@
<Header pageHeader>Linked Instances</Header>
{#if data}
<div class="flex flex-col md:flex-row gap-4">
<div class="flex-1 w-full max-h-[42rem] h-full flex flex-col gap-2">
<div class="flex-1 w-full max-h-168 h-full flex flex-col gap-2">
<h2 class="font-bold text-xl flex flex-row items-center gap-1">
Linked
<Popover openOnHover>
@@ -27,7 +27,7 @@
</Popover>
</h2>
<Material
class="h-full overflow-auto divide-y [&>*]:py-3 divide-slate-200 dark:divide-zinc-800"
class="h-full overflow-auto divide-y *:py-3 divide-slate-200 dark:divide-zinc-800"
color="distinct"
>
{#if data.linked && data.linked.length > 0}
@@ -54,7 +54,7 @@
{/if}
</Material>
</div>
<div class="flex-1 w-full max-h-[42rem] h-full flex flex-col gap-2">
<div class="flex-1 w-full max-h-168 h-full flex flex-col gap-2">
<h2 class="font-bold text-xl flex flex-row items-center gap-1">
Blocked
@@ -69,7 +69,7 @@
</Popover>
</h2>
<Material
class="h-full overflow-auto divide-y [&>*]:py-3 divide-slate-200 dark:divide-zinc-800"
class="h-full overflow-auto divide-y *:py-3 divide-slate-200 dark:divide-zinc-800"
color="distinct"
>
{#if data.blocked && data.blocked.length > 0}
+1 -1
View File
@@ -166,7 +166,7 @@
{$t('account.login')}
</Button>
<hr class="border-slate-200 dark:border-zinc-800" />
<div class="flex flex-row items-center gap-2 overflow-auto *:flex-shrink-0">
<div class="flex flex-row items-center gap-2 overflow-auto *:shrink-0">
<Button rounding="pill" color="ghost" href="/signup">
<Icon src={Identification} mini size="16" />
{$t('account.signup')}
+3 -3
View File
@@ -111,7 +111,7 @@
<Button
onclick={resolve}
class="h-max self-end {item.resolved
? '!text-green-600 dark:!text-green-400'
? 'text-green-600! dark:text-green-400!'
: ''}"
loading={resolving}
disabled={resolving}
@@ -129,9 +129,9 @@
<Material rounding="xl" color="uniform" class="dark:bg-zinc-950">
{#if item.type == 'comment'}
<CommentItem community={true} comment={item.item} class="!p-0" />
<CommentItem community={true} comment={item.item} class="p-0!" />
{:else if item.type == 'post'}
<Post post={item.item} class="!p-0" />
<Post post={item.item} class="p-0!" />
{:else if item.type == 'message'}
<PrivateMessage
message={{
+1 -1
View File
@@ -160,7 +160,7 @@
)
}}
size="square-lg"
class="self-end flex-shrink-0"
class="self-end shrink-0"
title="Clear filters"
>
<Icon src={XMark} size="16" mini />
+1 -1
View File
@@ -158,7 +158,7 @@
<span class="font-bold">
<span class="flex items-center gap-1 {actionData.class}">
<Icon src={actionData.icon} size="16" mini class="inline flex-shrink-0" />
<Icon src={actionData.icon} size="16" mini class="inline shrink-0" />
{actionData.text}
</span>
</span>
@@ -183,7 +183,7 @@
view="cozy"
/>
{#if data.post.value.post_view.post.body}
<div class="text-base text-slate-800 dark:text-zinc-300 leading-[1.5]">
<div class="text-base text-slate-800 dark:text-zinc-300 leading-normal">
<Markdown source={data.post.value.post_view.post.body} />
</div>
{/if}
@@ -215,7 +215,7 @@
</div>
{/snippet}
<div
class="!divide-y divide-slate-200 dark:divide-zinc-800 flex flex-col"
class="divide-y! divide-slate-200 dark:divide-zinc-800 flex flex-col"
>
{#key crossposts}
{#each crossposts as crosspost}
@@ -279,7 +279,7 @@
delay: index * 50,
}}
class="animate-pulse flex flex-col gap-2 w-full
*:bg-slate-100 *:dark:bg-zinc-800 *:rounded-md"
*:bg-slate-100 dark:*:bg-zinc-800 *:rounded-md"
>
<div class="w-96 h-3"></div>
<div class="w-full h-12"></div>
@@ -41,7 +41,7 @@
<div class="w-full h-full flex flex-col justify-center mx-auto max-w-xl gap-6">
<header class="space-y-1">
<div class="font-mono bg-zinc-950 rounded-sm p-0.5 px-1 w-max">
<div class="font-mono bg-zinc-950 rounded-xs p-0.5 px-1 w-max">
{page.params.instance}/post/{page.params.id}
</div>
<Header>
@@ -53,7 +53,7 @@
</SidebarButton>
{/each}
</nav>
<div class="flex-[3] max-w-full w-full min-w-0">
<div class="flex-3 max-w-full w-full min-w-0">
{@render children?.()}
</div>
</div>
@@ -51,7 +51,7 @@
</p>
{#if totpEnabled || totpLink}
{#if totpLink && !totpEnabled}
<Material color="transparent" class="!fill-white">
<Material color="transparent" class="fill-white!">
<svg use:qr={{ data: totpLink, logo: '/img/logo-isolated.svg' }} />
</Material>
<TextInput
@@ -117,11 +117,11 @@
<Material
color="distinct"
class="border-2 !border-red-500 text-red-600 dark:text-red-400 flex flex-col gap-4"
class="border-2 border-red-500! text-red-600 dark:text-red-400 flex flex-col gap-4"
padding="xl"
rounding="2xl"
>
<Header class="mx-auto w-max !font-bold">
<Header class="mx-auto w-max font-bold!">
{$t('routes.profile.delete.title')}
</Header>
<p class="text-base">
@@ -16,7 +16,7 @@
<Material
color="transparent"
class="flex flex-col gap-4 border overflow-auto max-h-[40rem]
class="flex flex-col gap-4 border overflow-auto max-h-160
h-full w-full
min-w-0 max-w-full"
rounding="2xl"
+2 -2
View File
@@ -70,8 +70,8 @@
color="none"
class="bg-white/60 dark:bg-zinc-800/60
border border-slate-200/60 dark:border-zinc-800
backdrop-blur-xl shadow-xl hover:bg-slate-100 hover:dark:bg-zinc-800
flex-shrink-0"
backdrop-blur-xl shadow-xl hover:bg-slate-100 dark:hover:bg-zinc-800
shrink-0"
>
<Icon src={EllipsisHorizontal} size="16" mini />
</Button>
+6 -6
View File
@@ -77,13 +77,13 @@
name="q"
aria-label={$t('routes.search.query')}
size="lg"
class="flex-1 !rounded-full h-full !text-base"
class="flex-1 rounded-full! h-full text-base!"
/>
<Button
submit
color="primary"
size="custom"
class="flex-shrink-0 h-full aspect-square"
class="shrink-0 h-full aspect-square"
title="Search"
rounding="pill"
loading={navigating.to?.route.id == '/search'}
@@ -182,7 +182,7 @@
<div transition:slide={{ axis: 'y', easing: expoOut }}>
{#if object.community}
<div
class="-mx-4 sm:-mx-6 px-6 hover:bg-slate-100 hover:dark:bg-zinc-800 transition-colors"
class="-mx-4 sm:-mx-6 px-6 hover:bg-slate-100 dark:hover:bg-zinc-800 transition-colors"
>
<CommunityItem
community={object.community}
@@ -204,7 +204,7 @@
{/if}
{/await}
<div
class="flex flex-col mt-4 divide-slate-200 dark:divide-zinc-800 !divide-y"
class="flex flex-col mt-4 divide-slate-200 dark:divide-zinc-800 divide-y!"
>
{#key data.results.value}
{#each data.results.value as result}
@@ -214,13 +214,13 @@
<CommentItem comment={result} />
{:else if isCommunityView(result)}
<div
class="-mx-4 sm:-mx-6 px-6 hover:bg-slate-100 hover:dark:bg-zinc-800 transition-colors"
class="-mx-4 sm:-mx-6 px-6 hover:bg-slate-100 dark:hover:bg-zinc-800 transition-colors"
>
<CommunityItem community={result} showCounts={false} class="py-3" />
</div>
{:else if isUser(result)}
<div
class="-mx-4 sm:-mx-6 px-6 hover:bg-slate-100 hover:dark:bg-zinc-800 transition-colors"
class="-mx-4 sm:-mx-6 px-6 hover:bg-slate-100 dark:hover:bg-zinc-800 transition-colors"
>
<UserItem user={result} showCounts={false} class="py-3" />
</div>
+6 -6
View File
@@ -299,8 +299,8 @@
{/snippet}
</Setting>
<Setting
optionClass="flex-[2] max-w-full flex-wrap min-w-0 "
itemsClass="flex-col !items-start lg:!items-center lg:flex-row"
optionClass="flex-2 max-w-full flex-wrap min-w-0 "
itemsClass="flex-col items-start! lg:items-center! lg:flex-row"
>
{#snippet title()}
<span>{$t('settings.app.sort.title')}</span>
@@ -455,16 +455,16 @@
{$t('settings.app.titleTags.rules.title')}
{/snippet}
<div
class="flex flex-col divide-y [&>*]:py-2 items-end divide-slate-200 dark:divide-zinc-800"
class="flex flex-col divide-y *:py-2 items-end divide-slate-200 dark:divide-zinc-800"
>
{#each Object.keys(settings.tagRules) as rule}
<div class="flex flex-row flex-wrap items-center gap-2">
<span class="text-lg font-medium">{rule}</span>
<MultiSelect
bind:selected={settings.tagRules[rule]}
options={['blur', 'hide']}
options={['blur-sm', 'hide']}
optionNames={[
$t('settings.app.titleTags.rules.blur'),
$t('settings.app.titleTags.rules.blur-sm'),
$t('settings.app.titleTags.rules.hide'),
]}
/>
@@ -610,7 +610,7 @@
</Section>
<Section id="moderation" title={$t('settings.moderation.title')}>
<Setting itemsClass="!flex-col !items-start">
<Setting itemsClass="flex-col! items-start!">
{#snippet title()}
<span>{$t('settings.moderation.replyPresets.title')}</span>
{/snippet}
+2 -2
View File
@@ -70,7 +70,7 @@
class="flex flex-col @md/setting:flex-row items-center gap-2 {itemsClass}"
>
<div
class="flex flex-col gap-0.5 flex-[2] w-full flex-shrink-0 min-w-48 {clazz}"
class="flex flex-col gap-0.5 flex-2 w-full shrink-0 min-w-48 {clazz}"
>
<h1 class="font-medium text-base">{@render title?.()}</h1>
{#if description}
@@ -82,7 +82,7 @@
{#if children}
<div
class="w-full flex flex-col gap-2 flex-1 max-w-full
@md/setting:items-end flex-shrink-0 {optionClass}"
@md/setting:items-end shrink-0 {optionClass}"
>
{@render children?.()}
</div>
+3 -3
View File
@@ -86,16 +86,16 @@
width={32}
url={instance.icon}
alt={instance.name}
class="flex-shrink-0"
class="shrink-0"
/>
<div class="flex flex-col max-h-full w-full">
<span
class="font-medium text-base whitespace-nowrap overflow-ellipsis"
class="font-medium text-base whitespace-nowrap text-ellipsis"
>
{instance.name}
</span>
<span
class="whitespace-nowrap overflow-ellipsis overflow-hidden w-full"
class="whitespace-nowrap text-ellipsis overflow-hidden w-full"
>
{instance.desc}
</span>
+2 -2
View File
@@ -181,7 +181,7 @@
return true
}}
class="!w-12 !h-12 col-span-1"
class="w-12! h-12! col-span-1"
/>
<ColorSwatch
value={themeData.current.colors.primary?.[100]}
@@ -196,7 +196,7 @@
return true
}}
class="!w-12 !h-12 col-span-1"
class="w-12! h-12! col-span-1"
/>
<span class="font-semibold text-base">
{$t('nav.menu.colorscheme.light')}
+1 -1
View File
@@ -17,7 +17,7 @@
</script>
<div
class="w-full h-8 relative rounded-md border dark:border-zinc-600 hover:dark:border-zinc-400
class="w-full h-8 relative rounded-md border dark:border-zinc-600 dark:hover:border-zinc-400
transition-colors {clazz}"
style="background-color: rgb({value});"
>
+2 -2
View File
@@ -36,7 +36,7 @@
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</div>
<div
class="bg-white dark:bg-zinc-900 w-8 h-4 rounded-sm border border-slate-200 dark:border-zinc-800"
class="bg-white dark:bg-zinc-900 w-8 h-4 rounded-xs border border-slate-200 dark:border-zinc-800"
></div>
<div
class="w-3 h-3 bg-primary-900 dark:bg-primary-100 rounded-full ml-auto"
@@ -69,7 +69,7 @@
<Button
color="ghost"
size="square-md"
class="flex-shrink-0"
class="shrink-0"
onclick={() => {
modal({
actions: [
+1 -1
View File
@@ -339,7 +339,7 @@
/>
{:else}
<div
class="!divide-y divide-slate-200 dark:divide-zinc-800 flex flex-col"
class="divide-y! divide-slate-200 dark:divide-zinc-800 flex flex-col"
>
{#key data.items}
{#each data.items.value as item}