mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
* fix: release workflow * feat: move mostly to internal tasks system * feat: migrate object clean to new task system * fix: release not getting good base version * chore: set version v0.3.0 * chore: style * feat: basic task concurrency * feat: temp pages to fill in page links * feat: inital i18n support * feat: localize store page * chore: style * fix: weblate doesn't like multifile thing * fix: update nuxt * feat: improved error logging * fix: using old task api * feat: basic translation docs * feat: add i18n eslint plugin * feat: translate store and auth pages * feat: more translation progress * feat: admin dash i18n progress * feat: enable update check by default in prod * fix: using wrong i18n keys * fix: crash in library sources page * feat: finish i18n work * fix: missing i18n translations * feat: use twemoji for emojis * feat: sanatize object ids * fix: EmojiText's alt text * fix: UserWidget not using links * feat: cache and auth for emoji api * fix: add more missing translations
68 lines
1.7 KiB
Vue
68 lines
1.7 KiB
Vue
<template>
|
|
<div class="flex flex-col">
|
|
<div class="max-w-2xl">
|
|
<div class="flex items-center gap-x-3 mb-4">
|
|
<NuxtLink
|
|
to="/library"
|
|
class="transition text-sm/6 font-semibold text-zinc-400 hover:text-zinc-100 inline-flex gap-x-2 items-center duration-200 hover:scale-105"
|
|
>
|
|
<ArrowLeftIcon class="h-4 w-4" aria-hidden="true" />
|
|
{{ $t("library.back") }}
|
|
</NuxtLink>
|
|
</div>
|
|
<h2 class="text-2xl font-bold font-display text-zinc-100">
|
|
{{ collection?.name }}
|
|
</h2>
|
|
<p class="mt-2 text-zinc-400">
|
|
{{ $t("library.gameCount", collection?.entries?.length || 0) }}
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Games grid -->
|
|
<div
|
|
class="mt-4 flex flex-row gap-4 flex-wrap justify-center sm:justify-start"
|
|
>
|
|
<GamePanel
|
|
v-for="entry in collection?.entries"
|
|
:key="entry.gameId"
|
|
:game="entry.game"
|
|
:href="`/library/game/${entry.game.id}`"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ArrowLeftIcon } from "@heroicons/vue/20/solid";
|
|
|
|
const route = useRoute();
|
|
const collections = await useCollections();
|
|
const { t } = useI18n();
|
|
const collection = computed(() =>
|
|
collections.value.find((e) => e.id == route.params.id),
|
|
);
|
|
if (collection.value === undefined) {
|
|
throw createError({
|
|
statusCode: 404,
|
|
statusMessage: t("library.collection.notFound"),
|
|
});
|
|
}
|
|
|
|
useHead({
|
|
title: collection.value?.name || t("library.collection.title"),
|
|
});
|
|
</script>
|
|
|
|
<style scoped>
|
|
.fade-enter-active,
|
|
.fade-leave-active {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.fade-enter-from,
|
|
.fade-leave-to {
|
|
opacity: 0;
|
|
transform: translateX(30px);
|
|
}
|
|
</style>
|