mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-21 05:15:13 +02:00
replace all occurrences of fetch with openapi-fetch in routes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user