chore(web): migration svelte 5 syntax (#13883)

This commit is contained in:
Alex
2024-11-14 08:43:25 -06:00
committed by GitHub
parent 9203a61709
commit 0b3742cf13
310 changed files with 6435 additions and 4176 deletions
@@ -7,18 +7,22 @@
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
import { t } from 'svelte-i18n';
export let data: PageData;
export let isShowKeyboardShortcut = false;
interface Props {
data: PageData;
isShowKeyboardShortcut?: boolean;
}
let { data, isShowKeyboardShortcut = $bindable(false) }: Props = $props();
</script>
<UserPageLayout title={data.meta.title}>
<svelte:fragment slot="buttons">
{#snippet buttons()}
<CircleIconButton
icon={mdiKeyboard}
title={$t('show_keyboard_shortcuts')}
on:click={() => (isShowKeyboardShortcut = !isShowKeyboardShortcut)}
onclick={() => (isShowKeyboardShortcut = !isShowKeyboardShortcut)}
/>
</svelte:fragment>
{/snippet}
<section class="mx-4 flex place-content-center">
<div class="w-full max-w-3xl">
<UserSettingsList keys={data.keys} sessions={data.sessions} />