Add quest page

This commit is contained in:
2025-08-01 22:15:30 +02:00
parent 13ad0eeb56
commit 624bb7e124
12 changed files with 497 additions and 15 deletions
+6
View File
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { useTitleStore } from '~/stores/title';
const app = useNuxtApp();
const { user } = useUserSession();
const localePath = useLocalePath();
@@ -6,6 +8,8 @@ const { t } = useI18n();
const { name, id } = app.$slugData.huntSlug!;
const titleStore = useTitleStore();
const { data, pending } = await useFetch(`/api/hunt/${id}`);
const hideAnswers = ref(true);
@@ -15,6 +19,8 @@ useHead({
title: data.value?.name || name
})
});
titleStore.title = data.value?.name;
</script>
<template>