mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-15 01:40:46 +02:00
useHead
This commit is contained in:
@@ -21,8 +21,8 @@ const { data: fileLibraries } = await useApi('/v2/FileLibrary', { key: FetchKeys
|
||||
const busy = ref(false);
|
||||
const deleteLibrary = async (library: FileLibrary) => {
|
||||
busy.value = true;
|
||||
await useApi('/v2/FileLibrary/{FileLibraryId}', { path: { FileLibraryId: library.key }, method: 'DELETE' })
|
||||
.then(() => refreshNuxtData(FetchKeys.FileLibraries))
|
||||
.finally(() => (busy.value = false));
|
||||
await useApi('/v2/FileLibrary/{FileLibraryId}', { path: { FileLibraryId: library.key }, method: 'DELETE' });
|
||||
await refreshNuxtData(FetchKeys.FileLibraries);
|
||||
busy.value = false;
|
||||
};
|
||||
</script>
|
||||
|
@@ -37,4 +37,6 @@ const onDownloadClick = async () => {
|
||||
});
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
useHead({title: `Download ${manga.value?.name} from ${mangaConnector.value?.name}`});
|
||||
</script>
|
||||
|
@@ -12,4 +12,6 @@
|
||||
const { data: manga, refresh } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All, lazy: true });
|
||||
onMounted(() => refresh());
|
||||
const expanded = ref(-1);
|
||||
|
||||
useHead({title: 'Tranga'});
|
||||
</script>
|
||||
|
@@ -56,4 +56,6 @@ const setRequestedFrom = async (MangaConnectorName: string, IsRequested: boolean
|
||||
});
|
||||
await refreshNuxtData(FetchKeys.Manga.Id(mangaId));
|
||||
};
|
||||
|
||||
useHead({title: `Manga ${manga.value?.name}`});
|
||||
</script>
|
||||
|
@@ -20,4 +20,6 @@ const mangaId = route.params.mangaId as string;
|
||||
|
||||
const { data: target } = await useApi('/v2/Manga/{MangaId}', { path: { MangaId: targetId }, key: FetchKeys.Manga.Id(targetId) });
|
||||
const { data: manga } = await useApi('/v2/Manga/{MangaId}', { path: { MangaId: mangaId }, key: FetchKeys.Manga.Id(mangaId) });
|
||||
|
||||
useHead({title: `Merge ${manga.value?.name} with ${target.value?.name}`});
|
||||
</script>
|
||||
|
@@ -18,4 +18,6 @@ const mangaId = route.params.mangaId as string;
|
||||
|
||||
const { data: manga } = await useApi('/v2/Manga/{MangaId}', { path: { MangaId: mangaId }, key: FetchKeys.Manga.Id(mangaId) });
|
||||
const { data: mangas } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All });
|
||||
|
||||
useHead({title: `Merge Manga ${manga.value?.name}`});
|
||||
</script>
|
||||
|
@@ -119,4 +119,6 @@ const items = ref<StepperItem[]>([
|
||||
{ title: 'Site', description: 'Select the site on which to search', icon: 'i-lucide-panel-top' },
|
||||
{ title: 'Results', icon: 'i-lucide-logs' },
|
||||
]);
|
||||
|
||||
useHead({title: 'Search Manga'});
|
||||
</script>
|
||||
|
@@ -49,8 +49,10 @@ const setUrl = async () => {
|
||||
const cleanUpDatabaseBusy = ref(false);
|
||||
const cleanUpDatabase = async () => {
|
||||
cleanUpDatabaseBusy.value = true;
|
||||
await useApi('/v2/Maintenance/CleanupNoDownloadManga', { method: 'POST' })
|
||||
.then(() => refreshNuxtData(FetchKeys.Manga.All))
|
||||
.finally(() => (cleanUpDatabaseBusy.value = false));
|
||||
await useApi('/v2/Maintenance/CleanupNoDownloadManga', { method: 'POST' });
|
||||
await refreshNuxtData(FetchKeys.Manga.All);
|
||||
cleanUpDatabaseBusy.value = false;
|
||||
};
|
||||
|
||||
useHead({title: 'Settings'});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user