diff --git a/website/app/app.vue b/website/app/app.vue index f8411e1..df0528d 100644 --- a/website/app/app.vue +++ b/website/app/app.vue @@ -6,12 +6,14 @@ Website - Swagger + Swagger diff --git a/website/app/components/FileLibraries.vue b/website/app/components/FileLibraries.vue index 3225532..a6456c1 100644 --- a/website/app/components/FileLibraries.vue +++ b/website/app/components/FileLibraries.vue @@ -13,8 +13,8 @@ diff --git a/website/app/components/MangaCard.vue b/website/app/components/MangaCard.vue index c74c958..ebc1afb 100644 --- a/website/app/components/MangaCard.vue +++ b/website/app/components/MangaCard.vue @@ -33,7 +33,7 @@ diff --git a/website/app/composables/FetchKeys.ts b/website/app/composables/FetchKeys.ts index 631e27a..18c7fe1 100644 --- a/website/app/composables/FetchKeys.ts +++ b/website/app/composables/FetchKeys.ts @@ -1,14 +1,6 @@ export const FetchKeys = { - FileLibraries: "FileLibraries", - Chapters: { - All: "Chapters", - }, - Manga: { - All: "Manga", - Id: (id: string) => `Manga/${id}`, - }, - MangaConnector: { - Id: (id: string) => `MangaConnector/${id}`, - All: "MangaConnector", - } -} \ No newline at end of file + FileLibraries: 'FileLibraries', + Chapters: { All: 'Chapters' }, + Manga: { All: 'Manga', Id: (id: string) => `Manga/${id}` }, + MangaConnector: { Id: (id: string) => `MangaConnector/${id}`, All: 'MangaConnector' }, +}; diff --git a/website/app/pages/download/[mangaId].vue b/website/app/pages/download/[mangaId].vue index 5b6e9e8..db10a4f 100644 --- a/website/app/pages/download/[mangaId].vue +++ b/website/app/pages/download/[mangaId].vue @@ -1,5 +1,5 @@ diff --git a/website/app/pages/manga/[mangaId]/index.vue b/website/app/pages/manga/[mangaId]/index.vue index cab8ac9..d4458f8 100644 --- a/website/app/pages/manga/[mangaId]/index.vue +++ b/website/app/pages/manga/[mangaId]/index.vue @@ -13,5 +13,8 @@ import MangaDetailPage from '~/components/MangaDetailPage.vue'; const route = useRoute(); const mangaId = route.params.MangaId as string; -const { data: manga } = await useApiData('/v2/Manga/{MangaId}', { path: { MangaId: mangaId }, key: FetchKeys.Manga.Id(mangaId) }); +const { data: manga } = await useApiData('/v2/Manga/{MangaId}', { + path: { MangaId: mangaId }, + key: FetchKeys.Manga.Id(mangaId), +}); diff --git a/website/app/pages/manga/[mangaId]/merge/[targetId].vue b/website/app/pages/manga/[mangaId]/merge/[targetId].vue index 1c966b6..7164a6d 100644 --- a/website/app/pages/manga/[mangaId]/merge/[targetId].vue +++ b/website/app/pages/manga/[mangaId]/merge/[targetId].vue @@ -24,6 +24,12 @@ const route = useRoute(); const targetId = route.params.targetId as string; const mangaId = route.params.mangaId as string; -const { data: target } = await useApiData('/v2/Manga/{MangaId}', { path: { MangaId: targetId }, key: FetchKeys.Manga.Id(targetId) }); -const { data: manga } = await useApiData('/v2/Manga/{MangaId}', { path: { MangaId: mangaId }, key: FetchKeys.Manga.Id(mangaId) }); +const { data: target } = await useApiData('/v2/Manga/{MangaId}', { + path: { MangaId: targetId }, + key: FetchKeys.Manga.Id(targetId), +}); +const { data: manga } = await useApiData('/v2/Manga/{MangaId}', { + path: { MangaId: mangaId }, + key: FetchKeys.Manga.Id(mangaId), +}); diff --git a/website/app/pages/manga/[mangaId]/merge/index.vue b/website/app/pages/manga/[mangaId]/merge/index.vue index 45a8f6b..0591e99 100644 --- a/website/app/pages/manga/[mangaId]/merge/index.vue +++ b/website/app/pages/manga/[mangaId]/merge/index.vue @@ -1,5 +1,8 @@ diff --git a/website/nuxt.config.ts b/website/nuxt.config.ts index af6e894..4d70bff 100644 --- a/website/nuxt.config.ts +++ b/website/nuxt.config.ts @@ -6,14 +6,15 @@ export default defineNuxtConfig({ vite: { plugins: [tailwindcss()] }, css: ['~/assets/css/main.css'], modules: ['@nuxt/content', '@nuxt/eslint', '@nuxt/image', '@nuxt/ui', 'nuxt-api-party'], - devServer: { host: '127.0.0.1' },runtimeConfig: { + devServer: { host: '127.0.0.1' }, + runtimeConfig: { apiParty: { endpoints: { api: { url: 'http://127.0.0.1:6531', schema: 'https://raw.githubusercontent.com/C9Glax/tranga/refs/heads/testing/API/openapi/API_v2.json', - } - } - } - } -}); \ No newline at end of file + }, + }, + }, + }, +});