24 lines
675 B
Svelte
24 lines
675 B
Svelte
<script lang="ts">
|
|
import "$lib/components/prompt-tools/prompt-tools.css";
|
|
import "./app.css";
|
|
import { initTheme } from "$lib/theme";
|
|
import { onMount } from "svelte";
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/svelte-query";
|
|
import ToastHost from "$lib/components/ToastHost.svelte";
|
|
import { initReduceMotion } from "$lib/reduceMotion.svelte";
|
|
|
|
const queryClient = new QueryClient({
|
|
defaultOptions: {
|
|
queries: { refetchOnWindowFocus: false, retry: 1 },
|
|
},
|
|
});
|
|
|
|
onMount(() => initReduceMotion());
|
|
onMount(initTheme);
|
|
</script>
|
|
|
|
<QueryClientProvider client={queryClient}>
|
|
<slot />
|
|
<ToastHost />
|
|
</QueryClientProvider>
|