feat(quest): add full CRUD and image handling for hunt quests

This commit is contained in:
2026-07-31 01:03:54 +02:00
parent 77becc453e
commit 24632742ef
15 changed files with 1228 additions and 7 deletions
+7 -3
View File
@@ -73,8 +73,12 @@ async function submit() {
<VaCardContent>
<VaForm class="flex flex-col gap-4">
<div class="grid grid-cols-1 gap-2 md:grid-cols-2">
<h3 class="text-center">{{ t('page.create_hunt.de') }}</h3>
<h3 class="text-center">{{ t('page.create_hunt.en') }}</h3>
<h3 class="hidden text-center md:block">
{{ t('page.create_hunt.de') }}
</h3>
<h3 class="hidden text-center md:block">
{{ t('page.create_hunt.en') }}
</h3>
<VaInput
v-model="form.name_de"
:label="t('page.create_hunt.name_de')"
@@ -126,7 +130,7 @@ async function submit() {
v-model="form.revealAnswers"
:label="t('page.create_hunt.reveal_answers')"
/>
<hr />
<VaDivider />
<div class="flex flex-row gap-2">
<VaCheckbox
:label="t('page.create_hunt.has_start')"
+4 -2
View File
@@ -8,8 +8,7 @@ import { useTitleStore } from '~/stores/title';
import { fullDate } from '~~/server/utils/date';
definePageMeta({
middleware: ['auth'],
keepalive: false
middleware: ['auth']
});
const app = useNuxtApp();
@@ -380,6 +379,9 @@ async function deleteImage() {
</VaButtonGroup>
</div>
<VaDivider />
<AdminQuestList :hunt-id="id" />
<VaDivider />
<h2 class="text-2xl">Hunt admin members:</h2>
<div