Updated to Svelte 5

This commit is contained in:
Mawoka
2025-09-21 12:42:04 +02:00
parent fa533257b3
commit a88cf13f82
137 changed files with 2279 additions and 1948 deletions
@@ -8,9 +8,13 @@ SPDX-License-Identifier: MPL-2.0
import BrownButton from '$lib/components/buttons/brown.svelte';
import GrayButton from '$lib/components/buttons/gray.svelte';
export let autoReturn = false;
export let quiz_id: string;
let mod_rating: number | undefined;
interface Props {
autoReturn?: boolean;
quiz_id: string;
}
let { autoReturn = false, quiz_id }: Props = $props();
let mod_rating: number | undefined = $state();
const submit = async () => {
const res = await fetch(`/api/v1/moderation/rating/set/${quiz_id}`, {