wordle backend and some frontend changes
Build / Build-image (push) Successful in 1m13s

This commit is contained in:
2026-08-27 22:33:19 +02:00
parent 865ac153b2
commit 5d5250287d
6 changed files with 92 additions and 47 deletions
+29 -6
View File
@@ -1,20 +1,43 @@
<template>
<Transition appear>
<div v-if="true" class="gw-div" :class="{ 'less': correctness==-3, 'more': correctness==-2, 'default': correctness==0, 'cw-cp': correctness==4, 'cw-ip': correctness==3, 'cf-cp': correctness==2, 'cf-ip': correctness==1 }">
<button v-if="true"
@click="onclick"
class="gw-div"
:class="{
'less': correctness==-3,
'more': correctness==-2,
'default': correctness==0,
'cw-cp': correctness==4,
'cw-ip': correctness==3,
'cf-cp': correctness==2,
'cf-ip': correctness==1
}">
<slot></slot>
</div>
</Transition>
</button>
</template>
<script lang="ts">
import { Transition } from 'vue';
export default {
data() {
return {
modal_open: false,
}
},
props: {
correctness: {
type: Number,
default: 0,
correct: {
type: String,
default: ''
}
},
}
},
methods: {
onclick () {
if (this.correctness == 2) this.modal_open = true;
}
},
}
</script>