From c99576617bd49002d13929fcdaf9e323c9d58fd1 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Mon, 28 Apr 2025 13:11:07 +0200 Subject: [PATCH] many minor fixes: nuxtimg, categories composabled, tailwind config in js, remove comments, next question operation, media fit --- README.md | 27 +- app.vue | 4 - assets/{css => }/main.css | 11 - categories.ts | 14 + components/{Loading.vue => LoadingScreen.vue} | 0 components/Media.vue | 35 - components/MediaBox.vue | 50 ++ components/bar/Top.vue | 2 +- components/bar/right/Result.vue | 10 +- components/question/Basic.vue | 2 +- nuxt.config.ts | 18 +- package.json | 4 +- pages/exam.vue | 49 +- pages/index.vue | 25 +- pages/result.vue | 16 +- pnpm-lock.yaml | 673 ++++++++++++++++-- providers/selfhost.ts | 18 + server/api/advanced.get.ts | 18 +- server/api/basic.get.ts | 17 +- tailwind.config.ts => tailwind.config.js | 1 + 20 files changed, 791 insertions(+), 203 deletions(-) rename assets/{css => }/main.css (61%) create mode 100644 categories.ts rename components/{Loading.vue => LoadingScreen.vue} (100%) delete mode 100644 components/Media.vue create mode 100644 components/MediaBox.vue create mode 100644 providers/selfhost.ts rename tailwind.config.ts => tailwind.config.js (99%) diff --git a/README.md b/README.md index 7aa879d..2e864bf 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,35 @@ This project utilizes `pnpm`, thus it is recommended -Also use [db-prawo-jazdy](https://git.mandarynki.eu/netman/db-prawo-jazdy) for running this project - ```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 newest at the moment of me writing this (19th of April 2025) are the (visualisations for questions from the 18th of January of 2024)[https://www.gov.pl/pliki/mi/wizualizacje_do_pytan_18_01_2024.zip] + # To-do: - [x] re-forge database structure (good for now) -- [ ] db: script for processing, share appropriate files - [x] choose category (good for now) -- [ ] beautify website -- [ ] better answer click recognition - [x] come up with how to show results appropriately -- [ ] i18n - pl, en, de, ua (not all questions are not available in ua, api handle) -- [ ] exam (maybe also results?) warning leave message on exit (refresh) +- [x] db: script for processing, share appropriate files +- [x] better answer click recognition +- [x] beautify website (good for now) +- [ ] fix pinia middleware between pages, MAJOR ISSUE - finishing exam sometimes redirects to homepage instead of results, help appreciated +- [ ] exam (& results?) warning leave message on exit and timer end (and definitely on refresh) +- [ ] question timers - [ ] lazy loading -- [ ] question timers, and at end of total timer show a message for a while before immediatly navigating to results (maybe sth similar also when normally ending exam) +- [ ] i18n - pl, en, de, ua (not all questions are not available in ua, api handle) + +## Some info + +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 + +This project is an SSR 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 ## Development Server diff --git a/app.vue b/app.vue index 6701a98..2b1be09 100644 --- a/app.vue +++ b/app.vue @@ -1,7 +1,3 @@ - -