feat: upgrade app to svelte-5

This commit is contained in:
2024-11-02 17:21:04 +01:00
parent a87add30ff
commit fa659ab74e
12 changed files with 1754 additions and 7340 deletions

View File

@ -1,15 +1,11 @@
<script lang="ts">
import { run } from 'svelte/legacy';
interface Props {
value: boolean;
id?: string;
}
let { value = $bindable(), id = '' }: Props = $props();
run(() => {
$effect(() => {
if (typeof value === 'string') {
value = value === 'true';
} else if (typeof value === 'number') {