format: whole project
This commit is contained in:
1 parent
b883b5f6e0
commit
80269cf275
79 files changed
+590
-612
No files matched your search
@@ -1,14 +1,13 @@
|
||||
<script lang="ts">
|
||||
import { Icon, type IconSource } from 'svelte-hero-icons'
|
||||
|
||||
|
||||
interface Props {
|
||||
icon?: IconSource | undefined;
|
||||
title: string;
|
||||
description?: string | undefined;
|
||||
center?: boolean;
|
||||
class?: string;
|
||||
children?: import('svelte').Snippet;
|
||||
icon?: IconSource | undefined
|
||||
title: string
|
||||
description?: string | undefined
|
||||
center?: boolean
|
||||
class?: string
|
||||
children?: import('svelte').Snippet
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -17,9 +16,8 @@
|
||||
description = undefined,
|
||||
center = false,
|
||||
class: clazz = '',
|
||||
children
|
||||
}: Props = $props();
|
||||
|
||||
children,
|
||||
}: Props = $props()
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<script lang="ts">
|
||||
import { run } from 'svelte/legacy';
|
||||
import { run } from 'svelte/legacy'
|
||||
|
||||
import { expoOut } from 'svelte/easing'
|
||||
import { tweened } from 'svelte/motion'
|
||||
|
||||
interface Props {
|
||||
progress?: number;
|
||||
progress?: number
|
||||
}
|
||||
|
||||
let { progress = 0 }: Props = $props();
|
||||
let { progress = 0 }: Props = $props()
|
||||
|
||||
let tween = tweened(progress, { easing: expoOut })
|
||||
|
||||
run(() => {
|
||||
tween.set(progress)
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
small?: boolean;
|
||||
class?: string;
|
||||
children?: import('svelte').Snippet;
|
||||
small?: boolean
|
||||
class?: string
|
||||
children?: import('svelte').Snippet
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
let { small = false, class: clazz = '', children, ...rest }: Props = $props();
|
||||
|
||||
let { small = false, class: clazz = '', children, ...rest }: Props = $props()
|
||||
</script>
|
||||
|
||||
<span
|
||||
{...rest}
|
||||
class="{!small ? 'text-lg' : 'text-xs'} font-semibold {clazz}"
|
||||
>
|
||||
<span {...rest} class="{!small ? 'text-lg' : 'text-xs'} font-semibold {clazz}">
|
||||
{@render children?.()}
|
||||
</span>
|
||||
@@ -1,11 +1,10 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
class?: string;
|
||||
children?: import('svelte').Snippet;
|
||||
class?: string
|
||||
children?: import('svelte').Snippet
|
||||
}
|
||||
|
||||
let { class: clazz = '', children }: Props = $props();
|
||||
|
||||
let { class: clazz = '', children }: Props = $props()
|
||||
</script>
|
||||
|
||||
<aside
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
<script lang="ts">
|
||||
import { settings } from '$lib/settings.svelte.js'
|
||||
import { themeVars } from '$lib/ui/colors'
|
||||
import { routes } from '$lib/util.svelte.js'
|
||||
import { writable, type Readable, type Writable } from 'svelte/store'
|
||||
|
||||
interface Props {
|
||||
@@ -102,9 +101,6 @@
|
||||
...rest
|
||||
}: Props = $props()
|
||||
|
||||
let title = $derived(
|
||||
route ? routes[(route.id as keyof typeof routes) ?? ''] : '',
|
||||
)
|
||||
let sidePadding = $derived(
|
||||
calculatePadding($dockProps.noGap, $dockProps.top, false),
|
||||
)
|
||||
@@ -147,7 +143,6 @@
|
||||
: `border-slate-200 dark:border-zinc-800 shadow-2xl
|
||||
bg-white/50 dark:bg-zinc-950/70`
|
||||
}`,
|
||||
title,
|
||||
style: 'transition: border-radius 250ms;',
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -338,16 +338,14 @@ export function getGroups(
|
||||
default: t.get('filter.view.compact'),
|
||||
}),
|
||||
icon: ViewColumns,
|
||||
handle: () =>
|
||||
settings.view = 'compact'
|
||||
handle: () => (settings.view = 'compact'),
|
||||
},
|
||||
{
|
||||
name: t.get('nav.commands.setViewTo', {
|
||||
default: t.get('filter.view.cozy'),
|
||||
}),
|
||||
icon: ViewColumns,
|
||||
handle: () =>
|
||||
settings.view = 'cozy'
|
||||
handle: () => (settings.view = 'cozy'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -6,15 +6,14 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
interface Props {
|
||||
wrap?: keyof typeof wrapClass;
|
||||
class?: string;
|
||||
children?: import('svelte').Snippet;
|
||||
wrap?: keyof typeof wrapClass
|
||||
class?: string
|
||||
children?: import('svelte').Snippet
|
||||
}
|
||||
|
||||
let { wrap = 'wrap', class: clazz = '', children }: Props = $props();
|
||||
|
||||
let { wrap = 'wrap', class: clazz = '', children }: Props = $props()
|
||||
|
||||
let classes = $derived(`${wrapClass[wrap]} ${clazz ?? ''}`)
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user