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

@@ -11,7 +11,7 @@
<template #default> <template #default>
<NuxtLink to="/"> <NuxtLink to="/">
<div class="h-full flex gap-2 items-center"> <div class="h-full flex gap-2 items-center">
<img src="/blahaj.png" class="h-lh cursor-grab" /> <img src="/blahaj.png" class="h-lh cursor-grab" >
<p <p
style=" style="
background: linear-gradient(110deg, var(--color-pink), var(--color-blue)); background: linear-gradient(110deg, var(--color-pink), var(--color-blue));

View File

@@ -8,7 +8,7 @@
<UFormField label="Directory Path" required> <UFormField label="Directory Path" required>
<UInput v-model="path" placeholder="Path for the library" class="w-full" :disabled="busy" /> <UInput v-model="path" placeholder="Path for the library" class="w-full" :disabled="busy" />
</UFormField> </UFormField>
<UButton icon="i-lucide-plus" @click="onAddClick" :loading="busy">Add</UButton> <UButton icon="i-lucide-plus" :loading="busy" @click="onAddClick">Add</UButton>
</div> </div>
</template> </template>
</UModal> </UModal>

View File

@@ -7,7 +7,7 @@
:title="l.libraryName" :title="l.libraryName"
:description="l.basePath" :description="l.basePath"
orientation="horizontal"> orientation="horizontal">
<UButton color="warning" @click="deleteLibrary(l)" :loading="busy">Delete</UButton> <UButton color="warning" :loading="busy" @click="deleteLibrary(l)">Delete</UButton>
</UPageCard> </UPageCard>
</UPageList> </UPageList>
</template> </template>

View File

@@ -10,8 +10,8 @@
</p> </p>
<USkeleton v-else class="text-xl h-20 w-full" /> <USkeleton v-else class="text-xl h-20 w-full" />
<div v-if="manga" class="flex flex-row gap-1 flex-wrap"> <div v-if="manga" class="flex flex-row gap-1 flex-wrap">
<UBadge variant="outline" v-for="author in manga.authors" color="neutral">{{ author.name }}</UBadge> <UBadge v-for="author in manga.authors" variant="outline" color="neutral">{{ author.name }}</UBadge>
<UBadge variant="outline" v-for="tag in manga.tags">{{ tag }}</UBadge> <UBadge v-for="tag in manga.tags" variant="outline">{{ tag }}</UBadge>
<NuxtLink v-for="link in manga.links" :to="link.url"> <NuxtLink v-for="link in manga.links" :to="link.url">
<UBadge variant="outline" color="warning">{{ link.provider }}</UBadge> <UBadge variant="outline" color="warning">{{ link.provider }}</UBadge>
</NuxtLink> </NuxtLink>

View File

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

View File

@@ -1,5 +1,5 @@
<template> <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"> <UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
<NuxtLink v-for="m in mangas" :to="`${m.key}`"> <NuxtLink v-for="m in mangas" :to="`${m.key}`">
<MangaCard :manga="m" /> <MangaCard :manga="m" />

View File

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

View File

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