mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 21:29:50 +02:00
nuxt rewrite
This commit is contained in:
20
website/app/pages/index.vue
Normal file
20
website/app/pages/index.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
|
||||
<MangaCard
|
||||
v-for="(m, i) in manga"
|
||||
:manga="m"
|
||||
:expanded="i === expanded"
|
||||
@click="expanded = expanded === i ? -1 : i">
|
||||
<template #actions="manga">
|
||||
<UButton :to="`manga/${manga.key}`">Details</UButton>
|
||||
</template>
|
||||
</MangaCard>
|
||||
</UPageBody>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { data: manga } = useApi('/v2/Manga/Downloading');
|
||||
const expanded = ref(-1);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
Reference in New Issue
Block a user