This commit is contained in:
2025-09-27 22:48:22 +02:00
parent 01021ef28b
commit 3fc3a573a6
8 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<template>
<MangaDetailPage :manga="manga" back-path="/search"> </MangaDetailPage>
<MangaDetailPage :manga="manga" back-path="/search"/>
</template>
<script setup lang="ts">

View File

@@ -1,5 +1,5 @@
<template>
<UPageHeader class="text-3xl px-4">Merge <span v-if="manga">{{ manga.name }}</span><USkeleton v-else as="span" class="w-60 h-lh"></USkeleton> into</UPageHeader>
<UPageHeader class="text-3xl px-4">Merge <span v-if="manga">{{ manga.name }}</span><USkeleton v-else as="span" class="w-60 h-lh"/> into</UPageHeader>
<UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
<NuxtLink v-for="m in mangas" :to="`${m.key}`">
<MangaCard :manga="m" />

View File

@@ -9,15 +9,15 @@
<div class="flex gap-1 w-full justify-center">
<UButton
v-for="c in connectors"
@click="connectorClick(c)"
:color="connector?.key == c.key ? 'success' : 'neutral'"
:disabled="busy">
:disabled="busy"
@click="connectorClick(c)">
<template #leading>
<NuxtImg :src="c.iconUrl" class="h-lh" />
</template>
{{ c.name }}
</UButton>
<UButton color="secondary" :disabled="busy" @click="performSearch" :loading="busy"
<UButton color="secondary" :disabled="busy" :loading="busy" @click="performSearch"
>Search</UButton
>
</div>

View File

@@ -1,12 +1,12 @@
<template>
<UPageSection title="Settings"> </UPageSection>
<UPageSection title="Settings"/>
<UPageSection title="Libraries" orientation="horizontal">
<FileLibraries />
<UButton icon="i-lucide-plus" @click="() => addLibraryModal.open()" class="w-fit">Add</UButton>
<UButton icon="i-lucide-plus" class="w-fit" @click="() => addLibraryModal.open()">Add</UButton>
</UPageSection>
<UPageSection title="Maintenance" orientation="horizontal">
<div class="flex flex-col gap-1 items-end basis-1">
<UButton icon="i-lucide-database" :loading="cleanUpDatabaseBusy" @click="cleanUpDatabase" class="w-fit"
<UButton icon="i-lucide-database" :loading="cleanUpDatabaseBusy" class="w-fit" @click="cleanUpDatabase"
>Clean database</UButton
>
</div>
@@ -15,13 +15,13 @@
<script setup lang="ts">
import { LazyAddLibraryModal } from '#components';
import FileLibraries from '~/components/FileLibraries.vue';
const overlay = useOverlay();
const config = useRuntimeConfig();
const addLibraryModal = overlay.create(LazyAddLibraryModal);
import FileLibraries from '~/components/FileLibraries.vue';
const cleanUpDatabaseBusy = ref(false);
const cleanUpDatabase = () => {
cleanUpDatabaseBusy.value = true;