From 4d53327521787ae982366a24dff8e39dc3ce5798 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Mon, 3 Mar 2025 22:21:18 +0100 Subject: [PATCH] merge basic and advanced "screen", fix category in api --- components/BasicQuestionBlock.vue | 4 +- components/Media.vue | 4 +- components/RightBar.vue | 62 ++++++++++++++++++++++++------- pages/exam.vue | 37 ++++++++++++------ pages/index.vue | 4 +- server/api/basic.get.ts | 14 +++---- 6 files changed, 87 insertions(+), 38 deletions(-) diff --git a/components/BasicQuestionBlock.vue b/components/BasicQuestionBlock.vue index 138c9eb..e575d6e 100644 --- a/components/BasicQuestionBlock.vue +++ b/components/BasicQuestionBlock.vue @@ -1,6 +1,4 @@ - + {{ question?.pytanie }} diff --git a/components/Media.vue b/components/Media.vue index bee5e5f..8ed9ab1 100644 --- a/components/Media.vue +++ b/components/Media.vue @@ -11,7 +11,7 @@ defineProps<{ - + - Brak mediów + Brak mediów diff --git a/components/RightBar.vue b/components/RightBar.vue index d322662..51b17fa 100644 --- a/components/RightBar.vue +++ b/components/RightBar.vue @@ -3,30 +3,32 @@ import "7.css/dist/7.scoped.css"; defineProps<{ questionaries: BasicQuestion[] | null; - count: number; - data: BasicQuestion[] | null; + countBasic: number; + countAdvanced: number; + dataBasic: BasicQuestion[] | null; + dataAdvanced: AdvancedQuestion[] | null; }>(); - + Zakończ egzamin - + Pytania podstawowe - - - {{ count + 1 }} / {{ data?.length }} + + + {{ countBasic + 1 }} / {{ dataBasic?.length }} @@ -34,10 +36,43 @@ defineProps<{ Pytania specjalistyczne - {{ count + 1 }} / {{ data?.length }} + + + + + {{ countAdvanced + 1 }} / {{ dataAdvanced?.length }} + + + + + + + + Czas na zapoznanie się z treścią pytania + Czas na odpowiedź + START + + + + + 10 sekund + + + - TimeLeft (implement) Następne pytanie @@ -45,6 +80,7 @@ defineProps<{ - {{ questionaries }} + + {{ questionaries }} diff --git a/pages/exam.vue b/pages/exam.vue index fd4a914..185e5f4 100644 --- a/pages/exam.vue +++ b/pages/exam.vue @@ -1,20 +1,29 @@