replace all occurrences of fetch with openapi-fetch in routes

This commit is contained in:
maxDorninger
2025-08-29 21:06:59 +02:00
parent 5a71246623
commit ded9503169
21 changed files with 1043 additions and 1358 deletions

View File

@@ -7,11 +7,12 @@
import { base } from '$app/paths';
import type { MetaDataProviderSearchResult } from '$lib/types.js';
import { SvelteURLSearchParams } from 'svelte/reactivity';
import type {components} from "$lib/api/api";
const apiUrl = env.PUBLIC_API_URL;
let loading = $state(false);
let errorMessage = $state<string | null>(null);
let { result, isShow = true }: { result: MetaDataProviderSearchResult; isShow: boolean } =
let { result, isShow = true }: { result: components['schemas']['MetaDataProviderSearchResult']; isShow: boolean } =
$props();
console.log('Add Show Card Result: ', result);

View File

@@ -5,13 +5,14 @@
import { Button } from '$lib/components/ui/button';
import { ChevronRight } from 'lucide-svelte';
import { base } from '$app/paths';
import type {components} from "$lib/api/api";
let {
media,
isShow,
isLoading
}: {
media: MetaDataProviderSearchResult[];
media: components['schemas']['MetaDataProviderSearchResult'][];
isShow: boolean;
isLoading: boolean;
} = $props();