Add typecheck

This commit is contained in:
2025-08-21 00:17:01 +02:00
parent 79c900955d
commit 5d1a029a54
12 changed files with 44 additions and 24 deletions
+1
View File
@@ -77,6 +77,7 @@ async function submit() {
<VaModal v-model="isOpen" close-button hide-default-actions>
<h3 class="text-3xl">Join a team</h3>
<div class="mt-4 flex flex-col gap-4">
<!-- @vue-ignore more specific than vuestic-->
<VaSelect
v-model="data.team"
:options="teams"
+2 -2
View File
@@ -190,7 +190,7 @@ async function submit() {
}}
</p>
<VaTextarea
v-model="formData.cloned.value.review"
v-model="formData.cloned.value.review as any"
label="Review"
messages="Will be shown publicly!"
max-length="2000"
@@ -198,7 +198,7 @@ async function submit() {
/>
<VaDivider />
<VaTextarea
v-model="formData.cloned.value.internalNote"
v-model="formData.cloned.value.internalNote as any"
label="Internal note"
messages="Only internal, the team won't see this!"
max-length="256"
+2 -2
View File
@@ -204,7 +204,7 @@ async function addUser() {
label="Start?"
:model-value="!!formData.cloned.value.start"
@update:model-value="
(newVal) =>
(newVal: boolean) =>
(formData.cloned.value!.start = newVal ? new Date() : null)
"
/>
@@ -227,7 +227,7 @@ async function addUser() {
label="End?"
:model-value="!!formData.cloned.value.end"
@update:model-value="
(newVal) =>
(newVal: boolean) =>
(formData.cloned.value!.end = newVal ? new Date() : null)
"
/>
+7 -1
View File
@@ -29,7 +29,13 @@ type Picture = {
const { data, refresh, error } = await useFetch(`/api/hunt/${id}/diashow`, {
transform: (input) => {
if (!input || input.quests.length <= 0)
return { id: 0, name: '', cols: [] as Picture[][], count: 0 };
return {
id: 0,
name_de: '',
name_en: '',
cols: [] as Picture[][],
count: 0
};
const { quests, ...rest } = input;
const pictures: Picture[] = [];