Add "TrangaPage" composable

This commit is contained in:
2025-10-14 21:08:30 +02:00
parent a622c7c45a
commit 39a1cb3857
13 changed files with 109 additions and 109 deletions

View File

@@ -1,9 +1,11 @@
<template>
<MangaCard v-for="(m, i) in manga" :key="m.key" :manga="m" :expanded="i === expanded" @click="expanded = expanded === i ? -1 : i">
<template #actions="forManga">
<UButton :to="`/manga/${forManga.key}`">Details</UButton>
</template>
</MangaCard>
<div class="flex flex-row flex-wrap gap-2">
<MangaCard v-for="(m, i) in manga" :key="m.key" :manga="m" :expanded="i === expanded" @click="expanded = expanded === i ? -1 : i">
<template #actions="forManga">
<UButton :to="`/manga/${forManga.key}`">Details</UButton>
</template>
</MangaCard>
</div>
</template>
<script setup lang="ts">