migrate: run bunx migrate
This commit is contained in:
115 files changed
+329
-326
No files matched your search
@@ -66,7 +66,7 @@
|
||||
{alt}
|
||||
{width}
|
||||
{title}
|
||||
class={['aspect-square object-cover overflow-hidden flex-shrink-0', clazz]}
|
||||
class={['aspect-square object-cover overflow-hidden shrink-0', clazz]}
|
||||
style="width: {width}px; height: {width}px; {style}"
|
||||
class:rounded-full={circle}
|
||||
class:rounded-md={!circle}
|
||||
@@ -74,7 +74,7 @@
|
||||
{:else}
|
||||
<div
|
||||
style="width: {width}px; height: {width}px;"
|
||||
class={['aspect-square object-cover overflow-hidden flex-shrink-0', clazz]}
|
||||
class={['aspect-square object-cover overflow-hidden shrink-0', clazz]}
|
||||
class:rounded-full={circle}
|
||||
class:rounded-md={!circle}
|
||||
>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
this={url ? 'a' : 'span'}
|
||||
href={url}
|
||||
class="text-xl font-semibold {url
|
||||
? 'hover:underline hover:text-primary-900 hover:dark:text-primary-100'
|
||||
? 'hover:underline hover:text-primary-900 dark:hover:text-primary-100'
|
||||
: ''}"
|
||||
>
|
||||
{name}
|
||||
@@ -97,7 +97,7 @@
|
||||
<div
|
||||
class={[
|
||||
'overflow-hidden whitespace-nowrap',
|
||||
'bg-gradient-to-r from-slate-700 via-slate-700 to-slate-700/0',
|
||||
'bg-linear-to-r from-slate-700 via-slate-700 to-slate-700/0',
|
||||
'dark:from-zinc-400 dark:via-zinc-400 dark:to-zinc-400/0',
|
||||
'text-transparent bg-clip-text',
|
||||
'max-w-[50%] overflow-hidden',
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
{#snippet summary()}
|
||||
<div
|
||||
class="font-medium w-full text-left flex flex-row items-center justify-between hover:text-primary-900
|
||||
hover:dark:text-primary-100 transition-colors h-full z-0 group relative"
|
||||
dark:hover:text-primary-100 transition-colors h-full z-0 group relative"
|
||||
>
|
||||
<div class="flex flex-row gap-1 items-center w-full">
|
||||
{@render title?.(open)}
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
||||
<!-- svelte-ignore a11y_positive_tabindex -->
|
||||
<div
|
||||
class="fixed top-0 left-0 w-screen h-[100svh] overflow-auto bg-white/50 dark:bg-black/50
|
||||
flex flex-col z-[100] backdrop-blur-sm"
|
||||
class="fixed top-0 left-0 w-screen h-svh overflow-auto bg-white/50 dark:bg-black/50
|
||||
flex flex-col z-100 backdrop-blur-xs"
|
||||
transition:fade={{ duration: 150 }}
|
||||
onclick={() => history.back()}
|
||||
onkeydown={(e) => {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
viewBox="0 0 100 100"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="inline fill-black dark:fill-white hover:fill-slate-700 hover:dark:fill-zinc-300 transition-colors"
|
||||
class="inline fill-black dark:fill-white hover:fill-slate-700 dark:hover:fill-zinc-300 transition-colors"
|
||||
>
|
||||
<path
|
||||
id="hexagon"
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
title={$t('common.back')}
|
||||
size="square-md"
|
||||
rounding="pill"
|
||||
class="text-inherit dark:text-inherit disabled:!opacity-20 disabled:!bg-transparent"
|
||||
class="text-inherit dark:text-inherit disabled:opacity-20! disabled:bg-transparent!"
|
||||
disabled={(cursor?.back == undefined && cursor?.next != undefined) ||
|
||||
page <= 0}
|
||||
data-sveltekit-preload-data="off"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</script>
|
||||
|
||||
<aside
|
||||
class="sticky top-0 left-0 break-words flex flex-shrink
|
||||
class="sticky top-0 left-0 break-words flex shrink
|
||||
flex-col gap-4 px-6 pt-4 max-w-full w-full h-full
|
||||
overflow-auto text-sm border-slate-200 dark:border-zinc-800 {clazz}"
|
||||
>
|
||||
|
||||
@@ -69,16 +69,16 @@
|
||||
>
|
||||
{@render sidebar?.({
|
||||
class: `hidden md:flex sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950
|
||||
z-40 lg:!pt-20`,
|
||||
z-40 lg:pt-20!`,
|
||||
style: 'grid-area: sidebar; width: 100% !important;',
|
||||
})}
|
||||
{@render main?.({
|
||||
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-sm z-0 main !pb-22 lg:!pb-0 lg:!pt-22`,
|
||||
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-xs z-0 main pb-22! lg:pb-0! lg:pt-22!`,
|
||||
style: 'grid-area: main',
|
||||
})}
|
||||
{@render suffix?.({
|
||||
class: `max-xl:hidden w-full sticky top-0 left-0 max-h-screen bg-slate-50 dark:bg-zinc-950
|
||||
z-40 lg:!pt-20`,
|
||||
z-40 lg:pt-20!`,
|
||||
style: 'grid-area: suffix;',
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
<a
|
||||
onclick={() => invalidateAll()}
|
||||
href={buildUrl(currentRoute, route.href)}
|
||||
class="font-medium rounded-full px-4 py-1 hover:bg-slate-200/40 hover:dark:bg-zinc-700/40
|
||||
transition-colors duration-100 relative z-0 flex-shrink-0"
|
||||
class="font-medium rounded-full px-4 py-1 hover:bg-slate-200/40 dark:hover:bg-zinc-700/40
|
||||
transition-colors duration-100 relative z-0 shrink-0"
|
||||
>
|
||||
{route.name}
|
||||
{#if isSelected(page.url, currentRoute, route.href, defaultRoute)}
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
color="none"
|
||||
{...rest}
|
||||
class={[
|
||||
'flex-shrink-0 rounded-full w-10 h-10 lg:w-max lg:h-8 lg:px-3 lg:rounded-xl',
|
||||
'shrink-0 rounded-full w-10 h-10 lg:w-max lg:h-8 lg:px-3 lg:rounded-xl',
|
||||
isSelected &&
|
||||
'bg-slate-200 dark:bg-zinc-900 text-primary-900 dark:!text-primary-100',
|
||||
'bg-slate-200 dark:bg-zinc-900 text-primary-900 dark:text-primary-100!',
|
||||
!rest.color && buttonColor.tertiary,
|
||||
!rest.color &&
|
||||
'lg:bg-white lg:dark:bg-zinc-900 border lg:border-slate-200 lg:border-b-slate-300 lg:dark:border-zinc-800 lg:dark:border-t-zinc-700/50 lg:hover:bg-slate-100 lg:hover:dark:bg-zinc-800 lg:active:bg-slate-200 lg:active:dark:bg-zinc-950',
|
||||
'lg:bg-white lg:dark:bg-zinc-900 border lg:border-slate-200 lg:border-b-slate-300 lg:dark:border-zinc-800 lg:dark:border-t-zinc-700/50 lg:hover:bg-slate-100 lg:dark:hover:bg-zinc-800 lg:active:bg-slate-200 lg:dark:active:bg-zinc-950',
|
||||
clazz,
|
||||
]}
|
||||
size="custom"
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
}}
|
||||
href="/"
|
||||
label={$t('nav.home')}
|
||||
class="ml-2 lg:ml-2 logo border-0 lg:!rounded-full lg:w-10 lg:h-10 lg:!p-0"
|
||||
class="ml-2 lg:ml-2 logo border-0 lg:rounded-full! lg:w-10 lg:h-10 lg:p-0!"
|
||||
adaptive={false}
|
||||
>
|
||||
{#snippet customIcon()}
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<button
|
||||
class="w-10 h-10 rounded-full border-slate-200 dark:border-zinc-700
|
||||
transition-all bg-slate-50 dark:bg-zinc-900 relative
|
||||
hover:bg-slate-200 hover:dark:bg-zinc-700 group {buttonClass}"
|
||||
hover:bg-slate-200 dark:hover:bg-zinc-700 group {buttonClass}"
|
||||
title={$t('profile.profile')}
|
||||
>
|
||||
{#if profile.data?.user}
|
||||
@@ -111,7 +111,7 @@
|
||||
{/snippet}
|
||||
{$t('profile.inbox')}
|
||||
{#if $notifications.inbox > 0}
|
||||
<Badge color="red-subtle" class="text-xs ml-auto font-bold !py-0.5">
|
||||
<Badge color="red-subtle" class="text-xs ml-auto font-bold py-0.5!">
|
||||
{$notifications.inbox > 99 ? '∞' : $notifications.inbox}
|
||||
</Badge>
|
||||
{/if}
|
||||
@@ -136,7 +136,7 @@
|
||||
{/snippet}
|
||||
{$t('nav.menu.settings')}
|
||||
</MenuButton>
|
||||
<MenuButton class="!py-0">
|
||||
<MenuButton class="py-0!">
|
||||
{#snippet prefix()}
|
||||
<Icon
|
||||
src={theme.colorScheme == 'system'
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
alignment="left"
|
||||
color="tertiary"
|
||||
size="lg"
|
||||
class="focus:bg-slate-200 focus:dark:bg-zinc-800 block w-full {clazz}"
|
||||
class="focus:bg-slate-200 dark:focus:bg-zinc-800 block w-full {clazz}"
|
||||
data-sveltekit-preload-code="viewport"
|
||||
data-sveltekit-preload-data="tap"
|
||||
{...rest}
|
||||
|
||||
@@ -255,12 +255,12 @@
|
||||
|
||||
<TextInput
|
||||
bind:value={search}
|
||||
class="sticky rounded-none border-t-0 border-x-0 focus-within:dark:border-zinc-800"
|
||||
class="sticky rounded-none border-t-0 border-x-0 dark:focus-within:border-zinc-800"
|
||||
size="lg"
|
||||
placeholder={$t('nav.commands.prompt')}
|
||||
bind:element={input}
|
||||
/>
|
||||
<div class="h-[32rem] overflow-auto border-slate-200 dark:border-zinc-800 p-5">
|
||||
<div class="h-128 overflow-auto border-slate-200 dark:border-zinc-800 p-5">
|
||||
{#if breadcrumbs.length > 0}
|
||||
<div class="flex items-center gap-2 my-1">
|
||||
<button
|
||||
@@ -299,7 +299,7 @@
|
||||
handleSelect(action)
|
||||
}}
|
||||
class="{globalIndex == selectedIndex
|
||||
? '!bg-slate-100 dark:!bg-zinc-800 text-inherit'
|
||||
? 'bg-slate-100! dark:bg-zinc-800! text-inherit'
|
||||
: 'text-slate-600 dark:text-zinc-400'} block"
|
||||
/>
|
||||
</li>
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
<svelte:window onkeydown={handleKeydown} />
|
||||
|
||||
{#if open}
|
||||
<Modal bind:open title={null} class="!p-0 !gap-0">
|
||||
<Modal bind:open title={null} class="p-0! gap-0!">
|
||||
{#await import('./Commands.svelte')}
|
||||
<div class="h-[32rem] flex flex-col gap-2 items-center justify-center">
|
||||
<div class="h-128 flex flex-col gap-2 items-center justify-center">
|
||||
<Spinner width={32} />
|
||||
<span class="font-medium text-lg">
|
||||
{$t('nav.commands.downloading')}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
{#each items.toSorted( (a, b) => a.title.localeCompare(b.title), ) as follow (follow.id)}
|
||||
<div
|
||||
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-900
|
||||
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 dark:hover:bg-zinc-900
|
||||
transition-colors rounded-lg"
|
||||
animate:flip={{ duration: 500, easing: expoOut }}
|
||||
>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
switching = false
|
||||
}}
|
||||
class="w-full font-normal {profile.data?.id == prof.id
|
||||
? '!bg-slate-100 dark:!bg-zinc-900'
|
||||
? 'bg-slate-100! dark:bg-zinc-900!'
|
||||
: ''}"
|
||||
>
|
||||
{#snippet customIcon()}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
{$t('profile.inbox')}
|
||||
{#if $notifications.inbox}
|
||||
<Badge
|
||||
class="min-w-5 h-5 !p-0 px-0.5 grid place-items-center ml-auto"
|
||||
class="min-w-5 h-5 p-0! px-0.5 grid place-items-center ml-auto"
|
||||
color="red-subtle"
|
||||
>
|
||||
{$notifications.inbox > 99 ? '∞' : $notifications.inbox}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
rounding="pill"
|
||||
{...rest}
|
||||
{href}
|
||||
class="font-normal block !origin-left border border-transparent hover:dark:bg-zinc-900 {!selected
|
||||
class="font-normal block origin-left! border border-transparent dark:hover:bg-zinc-900 {!selected
|
||||
? 'text-slate-600 dark:text-zinc-400'
|
||||
: 'bg-slate-100 dark:bg-zinc-925'} {clazz}"
|
||||
>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" module>
|
||||
const wrapClass = {
|
||||
wrap: '',
|
||||
'no-wrap': 'overflow-hidden overflow-ellipsis whitespace-nowrap',
|
||||
'no-wrap': 'overflow-hidden text-ellipsis whitespace-nowrap',
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user