From 59497e8b014e44b3f339de358b27cf181fe3d20f Mon Sep 17 00:00:00 2001
From: NetMan <13informatyka14@gmail.com>
Date: Mon, 15 Dec 2025 21:05:54 +0100
Subject: [PATCH] exam: warning on refresh and end-exam
warning on end-exam if it isn't the last question - otherwise exam ends without warning
---
README.md | 45 +++++++++++++++++++++++------------
components/EndModal.vue | 29 ++++++++++++++++++++++
components/bar/right/Exam.vue | 13 ++++++++--
pages/exam.vue | 25 ++++++++++++++++---
4 files changed, 92 insertions(+), 20 deletions(-)
create mode 100644 components/EndModal.vue
diff --git a/README.md b/README.md
index fcd1e0b..e34ada9 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,12 @@
# nuxt-prawo-jazdy
-## Setup
-
-This project utilizes `pnpm`, thus it is recommended
-
-```bash
-pnpm install
-```
-
## Required
The [db-prawo-jazdy](https://git.mandarynki.eu/netman/db-prawo-jazdy) project is designed for this one in mind, so use it in conjunction with this - visit it for more details
-You also need the exam media files from the (Ministry of Infrasture)[https://www.gov.pl/web/infrastruktura/prawo-jazdy] - the latest files should be there. The newest at the moment of me writing this (13th of Decemver 2025) are the (visualisations for questions from November(?) of 2025)[https://www.gov.pl/pliki/mi/pytania_egzaminacyjne_na_prawo_jazdy_11_2025.zip]
+You also need the exam media files from the (Ministry of Infrasture)[https://www.gov.pl/web/infrastruktura/prawo-jazdy] - the latest files should be there
+
+The newest at the moment of me writing this (December 13th 2025) are the (visualisations for questions from November 2025)[https://www.gov.pl/pliki/mi/pytania_egzaminacyjne_na_prawo_jazdy_11_2025.zip]
# To-do:
@@ -21,20 +15,41 @@ You also need the exam media files from the (Ministry of Infrasture)[https://www
- [x] come up with how to show results appropriately
- [x] better answer click recognition
- [x] beautify website (good for now)
-- [x] Fixed? Needs testing, but should be fine question-mark? - fix pinia middleware between pages, MAJOR ISSUE - finishing exam sometimes redirects to homepage instead of results, help appreciated
-- [x] (scrapped - lazy loading)
+- [x] Fixed? Needs testing, but should be fine question-mark? - fix pinia middleware between pages, MAJOR ISSUE - finishing exam sometimes redirects to homepage instead of results
- [x] question timers
-- [ ] exam (& results?) warning leave message on exit and timer end (and definitely on refresh)
+- [x] exam (& results?) warning leave message on exit and timer end (and definitely on refresh)
+- [ ] add keybinds:
+ - S - start
+ - D - nast.pyt
+ - X - koniec egzaminu (na pewno chcesz zakonczyc egzamin?)
+ - T - Tak
+ - N - Nie
+ - A - A
+ - B - B
+ - C - C
- [ ] i18n - pl, en, de, ua (not all questions are available in ua, api handle)
- UI i18n
- db: examstore add language field, api handle languages
- [ ] db: (revise) script for processing, (revise and) share appropriate files
+- [ ] clean up js code in exam.vue and result.vue (currently a little bit of a mess)
-## Some info
+## Some information about the project
-My intention is, to share access to test exams free of charge - all data is free of charge and is already available as public information, either on the gov website, or by writing to the MI
+My intention is, to share access to test exams free of charge, you don't have to pay me - although you can, I greatly appreciate if you donate!
-This project is a website mimicking an official driver's license exam (for different categories) with a seperate CDN for media, connected using an ORM to a postgres DB
+In the future I will host this project publicly `aaS`, and will probably put non-invasive, privacy friendly ads if it gains enough traction
+
+All data used by this software is public information by definition provided in the Polish Constitution - (article 61.)[https://www.sejm.gov.pl/prawo/konst/polski/kon1.htm], and can be acquired by either checking above links on the gov website, or by writing to the Ministry ((if something happened to be missing))[placeholder_for_post_about_missing_points_column]
+
+This project is a website mimicking an official driver's license theoritical exam (for different license categories) with a seperate media server, connected using drizzle ORM to a SQLite database
+
+## Setup
+
+This project utilizes `pnpm`, thus it is recommended
+
+```bash
+pnpm install
+```
## Development Server
diff --git a/components/EndModal.vue b/components/EndModal.vue
new file mode 100644
index 0000000..430cf49
--- /dev/null
+++ b/components/EndModal.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
diff --git a/components/bar/right/Exam.vue b/components/bar/right/Exam.vue
index 9ebeb90..f082c3c 100644
--- a/components/bar/right/Exam.vue
+++ b/components/bar/right/Exam.vue
@@ -1,5 +1,5 @@