This commit is contained in:
2025-10-12 01:01:23 +02:00
parent 517e022e4a
commit d933a1b437
10 changed files with 46 additions and 25 deletions

View File

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

View File

@@ -3,19 +3,24 @@
<UPageCard
v-for="chapter in chapters"
:key="chapter.key"
:title="chapter.title"
orientation="horizontal"
:ui="{ container: 'p-2 sm:p-2' }">
<template #title>
<p class="text-primary">{{ chapter.title }}</p>
</template>
<template #leading>
<p class="mr-1">Downloaded:</p>
<Icon v-if="chapter.downloaded" name="i-lucide-circle-x" />
<Icon v-else name="i-lucide-circle-check-big" class="stroke-green-500" />
</template>
<template #footer>
<p v-if="chapter.volume" class="inline mr-1">Vol. {{ chapter.volume }}</p>
<p class="inline">Ch. {{ chapter.chapterNumber }}</p>
<p class="text-secondary">
<span v-if="chapter.volume" class="mr-1">Vol. {{ chapter.volume }}</span>
<span class="inline">Ch. {{ chapter.chapterNumber }}</span>
</p>
</template>
<template #description>
{{ chapter.fileName }}
<p>{{ chapter.fileName }}</p>
</template>
<template #default>
<div>

View File

@@ -21,7 +21,7 @@
<div class="absolute -top-4 -right-4 flex flex-col bg-pink rounded-full">
<MangaconnectorIcon v-for="m in manga.mangaConnectorIds" v-bind="m" :key="m.key" />
</div>
<div class="flex flex-col h-[350px] shrink mx-2">
<div class="flex flex-col h-[350px] shrink mx-2 mt-4">
<p class="font-semibold text-xl">{{ manga.name }}</p>
<p class="max-h-30 overflow-y-hidden grow">{{ manga.description }}</p>
</div>

View File

@@ -9,7 +9,7 @@
backdrop-filter: blur(2px) brightness(70%);
-webkit-backdrop-filter: blur(2px) brightness(70%);
">
<p class="p-3 text-xl font-semibold max-h-full overflow-clip">{{ manga?.name }}</p>
<p class="p-3 text-xl font-semibold max-h-full overflow-clip text-shadow-lg">{{ manga?.name }}</p>
</div>
<LazyNuxtImg
:src="`${$config.public.openFetch.api.baseURL}v2/Manga/${manga.key}/Cover/Medium`"

View File

@@ -13,9 +13,9 @@
<UBadge v-for="author in manga.authors" :key="author.key" variant="outline" color="neutral">{{
author.name
}}</UBadge>
<UBadge v-for="tag in manga.tags" :key="tag" variant="outline">{{ tag }}</UBadge>
<UBadge v-for="tag in manga.tags" :key="tag" variant="outline" color="primary">{{ tag }}</UBadge>
<NuxtLink v-for="link in manga.links" :key="link.key" :to="link.url" external no-prefetch>
<UBadge variant="outline" color="warning">{{ link.provider }}</UBadge>
<UBadge variant="outline" color="secondary">{{ link.provider }}</UBadge>
</NuxtLink>
</div>
<USkeleton v-else class="w-full h-lh" />
@@ -25,14 +25,14 @@
<USkeleton v-else class="w-full h-30" />
</div>
</template>
<UPageBody class="relative pr-4">
<UPageBody class="relative pr-12">
<div class="w-full flex flex-row justify-between">
<div>
<UButton variant="soft" :to="backPath ?? '/'" icon="i-lucide-arrow-left">Back</UButton>
<p v-if="title" class="text-3xl">{{ title }}</p>
</div>
<div v-if="manga" class="flex flex-row gap-2">
<UButton trailing-icon="i-lucide-merge" :to="`${manga.key}/merge/`">Merge</UButton>
<UButton trailing-icon="i-lucide-merge" :to="`${manga.key}/merge/`" color="secondary" >Merge</UButton>
<slot name="actions" />
</div>
</div>

View File

@@ -1,14 +1,16 @@
<template>
<div class="w-6 h-6 inline-block align-middle m-1">
<NuxtLink :href="$props.websiteUrl ?? ''">
<NuxtImg
v-if="mangaConnector"
:src="mangaConnector?.iconUrl"
:class="[
<NuxtLink :href="props.websiteUrl ?? ''">
<UTooltip :text="`${props.useForDownload ? 'Downloading' : 'Not downloading'}, click to see website`">
<NuxtImg
v-if="mangaConnector"
:src="mangaConnector?.iconUrl"
:class="[
'w-full rounded-full outline-2 -outline-offset-1',
props.useForDownload ? 'outline-green-500' : 'outline-red-500',
]" />
<p v-else>{{ mangaConnectorName }}</p>
<p v-else>{{ mangaConnectorName }}</p>
</UTooltip>
</NuxtLink>
</div>
</template>