format: whole project

This commit is contained in:
James Xylight committed 2025-02-04 16:23:31 -08:00
1 parent b883b5f6e0
commit 80269cf275
79 files changed
+590 -612

No files matched your search

+5 -11
View File
@@ -4,20 +4,14 @@
import { backOut, expoOut } from 'svelte/easing'
import { slide } from 'svelte/transition'
interface Props {
title: string;
id: string;
open?: boolean;
children?: import('svelte').Snippet;
title: string
id: string
open?: boolean
children?: import('svelte').Snippet
}
let {
title,
id,
open = $bindable(true),
children
}: Props = $props();
let { title, id, open = $bindable(true), children }: Props = $props()
</script>
<div class="flex flex-col max-w-full w-full">
+20 -22
View File
@@ -8,33 +8,31 @@
Icon,
} from 'svelte-hero-icons'
interface Props {
supportedPlatforms?: any;
mainClass?: string;
itemsClass?: string;
optionClass?: string;
class?: string;
title?: import('svelte').Snippet;
description?: import('svelte').Snippet;
children?: import('svelte').Snippet;
supportedPlatforms?: any
mainClass?: string
itemsClass?: string
optionClass?: string
class?: string
title?: import('svelte').Snippet
description?: import('svelte').Snippet
children?: import('svelte').Snippet
}
let {
supportedPlatforms = {
desktop: true,
tablet: true,
mobile: true,
},
desktop: true,
tablet: true,
mobile: true,
},
mainClass = '',
itemsClass = '',
optionClass = '',
class: clazz = '',
title,
description,
children
}: Props = $props();
children,
}: Props = $props()
</script>
<div
@@ -45,24 +43,24 @@
{#if supportedPlatforms.desktop}
<Badge>
{#snippet icon()}
<Icon src={ComputerDesktop} micro size="14" />
{/snippet}
<Icon src={ComputerDesktop} micro size="14" />
{/snippet}
{$t('settings.desktop')}
</Badge>
{/if}
{#if supportedPlatforms.tablet}
<Badge>
{#snippet icon()}
<Icon src={DeviceTablet} micro size="14" />
{/snippet}
<Icon src={DeviceTablet} micro size="14" />
{/snippet}
{$t('settings.tablet')}
</Badge>
{/if}
{#if supportedPlatforms.mobile}
<Badge>
{#snippet icon()}
<Icon src={DevicePhoneMobile} micro size="14" />
{/snippet}
<Icon src={DevicePhoneMobile} micro size="14" />
{/snippet}
{$t('settings.mobile')}
</Badge>
{/if}
+16 -17
View File
@@ -9,13 +9,12 @@
Icon,
} from 'svelte-hero-icons'
interface Props {
title: string;
description?: string | undefined;
checked?: boolean;
beta?: boolean;
supportedPlatforms?: any;
title: string
description?: string | undefined
checked?: boolean
beta?: boolean
supportedPlatforms?: any
}
let {
@@ -24,11 +23,11 @@
checked = $bindable(false),
beta = false,
supportedPlatforms = {
desktop: true,
tablet: true,
mobile: true,
}
}: Props = $props();
desktop: true,
tablet: true,
mobile: true,
},
}: Props = $props()
</script>
<div class="flex flex-col w-full justify-between gap-2 max-w-full">
@@ -41,24 +40,24 @@
{#if supportedPlatforms.desktop}
<Badge>
{#snippet icon()}
<Icon src={ComputerDesktop} micro size="14" />
{/snippet}
<Icon src={ComputerDesktop} micro size="14" />
{/snippet}
{$t('settings.desktop')}
</Badge>
{/if}
{#if supportedPlatforms.tablet}
<Badge>
{#snippet icon()}
<Icon src={DeviceTablet} micro size="14" />
{/snippet}
<Icon src={DeviceTablet} micro size="14" />
{/snippet}
{$t('settings.tablet')}
</Badge>
{/if}
{#if supportedPlatforms.mobile}
<Badge>
{#snippet icon()}
<Icon src={DevicePhoneMobile} micro size="14" />
{/snippet}
<Icon src={DevicePhoneMobile} micro size="14" />
{/snippet}
{$t('settings.mobile')}
</Badge>
{/if}
+6 -12
View File
@@ -2,18 +2,13 @@
import { Material, Popover } from 'mono-svelte'
interface Props {
href: string;
size?: keyof typeof sizes;
title?: string;
children?: import('svelte').Snippet;
href: string
size?: keyof typeof sizes
title?: string
children?: import('svelte').Snippet
}
let {
href,
size = 'medium',
title = '',
children
}: Props = $props();
let { href, size = 'medium', title = '', children }: Props = $props()
const sizes = {
large: 'h-24',
@@ -24,13 +19,12 @@
<Popover openOnHover placement="right">
{#snippet target()}
<a {href} >
<a {href}>
{@render children?.()}
</a>
{/snippet}
{#snippet popover()}
<Material
padding="none"
rounding="xl"
elevation="medium"