backend validation change, frontend changes
Build / Build-image (push) Successful in 53s

This commit is contained in:
2026-08-10 20:39:56 +02:00
parent 48048e516a
commit f84636b31f
7 changed files with 116 additions and 26 deletions
+25 -5
View File
@@ -31,10 +31,11 @@
})
.then((response) => {
console.log(response.data);
this.guesses = response.data.guesses;
})
},
onkeyup() {
this.words = this.guess.split(" ");
this.words = this.guess.trim().split(" ");
}
}
}
@@ -44,19 +45,26 @@
<template>
<UCard>
<template #header>
<h1>Motto:</h1>
{{ hint }}
</template>
<template v-for="guess in guesses">
{{ guess }}
<div class="flex-container">
<template v-for="i in 3">
<GuessWord :correctness="Number(guess[i+2])">
{{ guess[i-1] }}
</GuessWord>
</template>
</div>
</template>
<template #footer>
<div style="display: flex; flex-direction: row;">
<div class="flex-container">
<template v-for="word in words">
<GuessWord>
<GuessWord :correctness="-1">
{{ word }}
</GuessWord>
</template>
@@ -67,4 +75,16 @@
</template>
</UCard>
</template>
</template>
<style>
.flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.hidden {
color: transparent;
}
</style>