Compare commits

...

2 commits

Author SHA1 Message Date
NetMan
940a93c232 minor, add points and resultTF to rightbar 2025-04-16 20:19:26 +02:00
NetMan
05b2b81db7 fix depends and answer basic question choosing 2025-04-15 21:35:35 +02:00
5 changed files with 1347 additions and 2862 deletions

View file

@ -77,7 +77,10 @@ const emit = defineEmits<{
"
/>
</div>
<div class="flex-1"></div>
<div class="flex-1">
<div class="*:inline">Punkty: <slot name="points" /> / 74</div>
<div class="*:inline">Wynik: <slot name="resultTrueFalse" /></div>
</div>
<NuxtLink to="/exam" class="btn btn-warning btn-xl">
Rozpocznij jeszcze raz
</NuxtLink>

View file

@ -22,17 +22,17 @@ const answer = defineModel<string | null | undefined>();
v-model="answer"
type="radio"
name="tak_nie"
:value="value"
:value="value.toString()"
class="btn btn-primary btn-xl"
:aria-label="element"
:class="
answer == null
? false
: answer === value?.toString()
: answer === value.toString()
? '!btn-secondary'
: ''
"
:checked="answer == null ? false : answer === value?.toString()"
:checked="answer == null ? false : answer === value.toString()"
/>
</div>
</div>

View file

@ -15,15 +15,17 @@
},
"dependencies": {
"@nuxt/fonts": "0.11.1",
"@nuxtjs/tailwindcss": "6.13.1",
"@nuxtjs/tailwindcss": "6.13.2",
"@pinia/nuxt": "0.11.0",
"array-shuffle": "^3.0.0",
"daisyui": "^5.0.20",
"date-fns": "^4.1.0",
"dotenv": "^16.5.0",
"drizzle-kit": "^0.31.0",
"drizzle-orm": "^0.42.0",
"eslint": "^9.24.0",
"lodash": "^4.17.21",
"nuxt": "~3.15.4",
"nuxt": "~3.16.2",
"pg": "^8.14.1",
"pinia": "^3.0.2",
"vue": "latest",
@ -31,11 +33,9 @@
},
"packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af",
"devDependencies": {
"array-shuffle": "^3.0.0",
"@nuxt/eslint": "1.3.0",
"@types/lodash": "^4.17.16",
"@types/pg": "^8.11.13",
"drizzle-kit": "^0.30.5",
"eslint-config-prettier": "^10.1.2",
"prettier": "^3.5.3",
"tsx": "^4.19.3",

View file

@ -115,7 +115,10 @@ function changeCount(num: number) {
:now="now"
@change-now="changeNow"
@change-count="changeCount"
/>
>
<template #points>{{ points }}</template>
<template #resultTrueFalse>{{ resultTrueFalse }}</template>
</BarRightResult>
</div>
</div>
</div>

4185
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff