Add eslint

This commit is contained in:
2025-08-20 23:40:00 +02:00
parent cc544322b2
commit 16956d12f4
31 changed files with 1214 additions and 913 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ async function submit() {
submitPending.value = true;
try {
const result = await $fetch(`/api/hunt/${props.huntId}/join`, {
await $fetch(`/api/hunt/${props.huntId}/join`, {
body: JSON.stringify(data),
method: 'POST'
});
@@ -78,8 +78,8 @@ async function submit() {
<h3 class="text-3xl">Join a team</h3>
<div class="mt-4 flex flex-col gap-4">
<VaSelect
:options="teams"
v-model="data.team"
:options="teams"
value-by="id"
track-by="id"
searchable
@@ -104,7 +104,7 @@ async function submit() {
</template>
</VaInput>
<VaAlert color="danger" v-if="error">{{ t(error) }}</VaAlert>
<VaAlert v-if="error" color="danger">{{ t(error) }}</VaAlert>
</div>
<template #footer>
<VaButtonGroup
@@ -117,8 +117,8 @@ async function submit() {
:disabled="
data.password.length < 3 || data.team === null || submitPending
"
@click="submit"
:loading="submitPending || pending"
@click="submit"
>Join</VaButton
>
</VaButtonGroup>