Commit graph

189 commits

Author SHA1 Message Date
C. Fuhrman
a59574a8b3 clean an error 2025-01-25 14:38:58 -05:00
C. Fuhrman
bb5b2b5e61 Renames, centralize sanitize(), StemTemplate 2025-01-25 14:19:31 -05:00
C. Fuhrman
7dbbfbfe65 Latest beta of gift, true-false and mc tweaks, stem style 2025-01-25 10:36:07 -05:00
C. Fuhrman
82b904ef82 Some template (snapshot) tests reveal trouble 2025-01-25 02:07:38 -05:00
C. Fuhrman
cb46a18370 Renames, passing many tests 2025-01-25 02:02:18 -05:00
C. Fuhrman
00e45f0f09 rename template 2025-01-24 16:51:30 -05:00
C. Fuhrman
54dc6b48a6 Renames (Display), fixes 2025-01-24 16:50:01 -05:00
C. Fuhrman
8a7a444718 baby steps (getting tests running) 2025-01-24 14:51:58 -05:00
C. Fuhrman
d047c787b7 fix broken import 2025-01-23 22:43:50 -05:00
C. Fuhrman
39a7ecce31 Some tests passing (MultipleChoiceQuestionDisplay.test.ts) 2025-01-23 22:38:22 -05:00
JubaAzul
b49057a8ff Only show the current question for teacher mode 2025-01-23 20:23:15 -05:00
JubaAzul
226cc24532 Indiquer le numéro de la question dans l'affichage enseignant
Fixes #207
2025-01-23 20:12:47 -05:00
Christopher (Cris) Fuhrman
6f270b5436
Merge pull request #198 from ets-cfuhrman-pfe/JubaAzul/issue197
Some checks failed
CI/CD Pipeline for Backend / build_and_push_backend (push) Has been cancelled
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Has been cancelled
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Has been cancelled
Tests / tests (client) (push) Has been cancelled
Tests / tests (server) (push) Has been cancelled
Juba azul/issue197
2025-01-22 20:55:08 -05:00
Christopher (Cris) Fuhrman
4b133400d4
Merge pull request #205 from ets-cfuhrman-pfe/JubaAzul/issue145
Juba azul/issue145
2025-01-22 20:49:54 -05:00
Christopher (Cris) Fuhrman
70e74e2342
Merge pull request #206 from ets-cfuhrman-pfe/JubaAzul/issue74
Update editorQuiz.css
2025-01-22 20:48:13 -05:00
JubaAzul
da4e54534e Update editorQuiz.css 2025-01-22 16:46:09 -05:00
JubaAzul
5018625693 Fix tests 2025-01-22 16:06:23 -05:00
JubaAzul
22f988f2ad Confusion avec la navigation dans les questions à rythme de l'enseignant
Fixes #145
2025-01-22 15:28:45 -05:00
JubaAzul
3e9152fa5c Confusion avec la navigation dans les questions à rythme de l'enseignant
Fixes #145
2025-01-21 15:35:07 -05:00
JubaAzul
394bcf8bc4 enlever modifications de eslint 2025-01-20 12:23:02 -05:00
JubaAzul
70bad72350 Update eslint.config.js 2025-01-20 12:17:50 -05:00
JubaAzul
0a6383b2ec Exemples (copiés) ne sont pas valides et les directives ne sont pas bonnes
Fixes #197
2025-01-20 12:16:21 -05:00
JubaAzul
9323763046 Merge branch 'main' into JubaAzul/issue137 2025-01-17 12:13:45 -05:00
JubaAzul
a04ec3a2e7
Merge branch 'main' into add-composant-and-snapshot-tests-for-the-EditorQuiz 2025-01-17 10:50:04 -05:00
Christopher (Cris) Fuhrman
4f58c4d412
Merge pull request #194 from ets-cfuhrman-pfe/Scroll-up-arrow-inside-quizEditor
Some checks are pending
CI/CD Pipeline for Backend / build_and_push_backend (push) Waiting to run
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Waiting to run
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Waiting to run
Tests / tests (client) (push) Waiting to run
Tests / tests (server) (push) Waiting to run
Button pour monter en haut de la page d'éditeur de quiz
2025-01-16 17:05:41 -05:00
JubaAzul
734f48b30a Ajout de configuration de jest.config.cjs 2025-01-16 16:22:16 -05:00
JubaAzul
1c928c8350 Chemin absolu pour les imports 2025-01-16 12:37:07 -05:00
JubaAzul
89dd55ca8f try import react inside class 2025-01-16 12:02:13 -05:00
JubaAzul
b46e2e3985 removed import in every class, try to update react 2025-01-16 12:02:13 -05:00
JubaAzul
6d56454b02 remove change in .eslintrc.cjs, workflow did not run 2025-01-16 12:02:07 -05:00
JubaAzul
0a932d9617 ignore @ts-expect-error in pipeline 2025-01-16 12:02:07 -05:00
JubaAzul
3eb7ef084c Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer 2025-01-16 12:00:48 -05:00
JubaAzul
3c9b14dd9d Used "@ts-expect-error" instead of "@ts-ignore" 2025-01-16 12:00:48 -05:00
JubaAzul
15805e2e7e import react inside class for pipeline, not IDE 2025-01-16 11:59:02 -05:00
JubaAzul
159ed5fa5c removed import in every class, try to update react 2025-01-16 10:40:27 -05:00
JubaAzul
f595ccca20 remove change in .eslintrc.cjs, workflow did not run 2025-01-15 11:47:52 -05:00
JubaAzul
d6774b300f ignore @ts-expect-error in pipeline 2025-01-15 11:08:17 -05:00
JubaAzul
470d856afc Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer 2025-01-15 10:40:40 -05:00
JubaAzul
8d14e49095 Used "@ts-expect-error" instead of "@ts-ignore" 2025-01-15 10:30:45 -05:00
JubaAzul
9444603a93 import react inside class for pipeline, not IDE 2025-01-15 10:27:28 -05:00
JubaAzul
77d5ae2862 Fix pipeline, error tests 2025-01-15 09:29:46 -05:00
JubaAzul
f43da4c8ba Risques sécurité dangerouslySetInnerHTML()
Fixes #192
2025-01-15 09:07:56 -05:00
JubaAzul
d18c2c502a Button pour monter en haut de la page d'éditeur de quiz 2025-01-14 17:37:29 -05:00
JubaAzul
69b5d3f2f9 Amélioration avec interaction 2025-01-14 16:21:32 -05:00
JubaAzul
ce6d9f9a2e Ce n'est pas évident que le format [markdown] doit être utilisé pour les images
Fixes #137
2025-01-14 15:06:41 -05:00
JubaAzul
59b7fa02e0 try import react inside class 2025-01-13 20:03:12 -05:00
JubaAzul
b834c8f06f Import react in tests classes 2025-01-13 19:47:37 -05:00
JubaAzul
f201305064 Revert node change 2025-01-13 18:47:28 -05:00
JubaAzul
12b376d606 Correciton pull 2025-01-13 18:34:25 -05:00
C. Fuhrman
ec2f6cc358 Renommer .env à .env.development
Vite est censé ignorer ça en production (docker) tandis que .env serait toujours chargé
2025-01-11 11:27:36 -05:00
C. Fuhrman
9fa277c8d7 fix errors: 'React' is declared but its value is never read. 2025-01-11 02:32:14 -05:00
C. Fuhrman
50e92fb458 install eslint (client), fix errors (many) 2025-01-11 02:22:14 -05:00
C. Fuhrman
fd81e3b0d1 Install eslint in server, fix errors
configure
2025-01-11 00:03:05 -05:00
Christopher (Cris) Fuhrman
e5e7f61b71
Merge pull request #184 from ets-cfuhrman-pfe/fuhrmanator/issue171
Some checks are pending
CI/CD Pipeline for Backend / build_and_push_backend (push) Waiting to run
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Waiting to run
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Waiting to run
Tests / tests (client) (push) Waiting to run
Tests / tests (server) (push) Waiting to run
Fuhrmanator/issue171
2025-01-10 23:46:01 -05:00
Christopher (Cris) Fuhrman
839ee79912
Merge pull request #153 from ets-cfuhrman-pfe/fuhrmanator/issue78
Some checks are pending
CI/CD Pipeline for Backend / build_and_push_backend (push) Waiting to run
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Waiting to run
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Waiting to run
Tests / tests (client) (push) Waiting to run
Tests / tests (server) (push) Waiting to run
Nom du dossier pour chaque quiz devrait être affiché lorsque "tous les dossiers" sont affichés
2025-01-10 22:38:07 -05:00
JubaAzul
427182e7a8 Adding snapshot tests for editor 2025-01-10 17:39:19 -05:00
C. Fuhrman
ea6454550c vite needs to understand the src mapping (redundant with tsconfig.json) 2025-01-10 15:56:43 -05:00
C. Fuhrman
6c73cfddc9 use src/constants (abs path) so it can remap when jest runs 2025-01-10 15:46:17 -05:00
C. Fuhrman
51d3d9f473 got back to import.meta (so dev version works) 2025-01-10 15:45:07 -05:00
C. Fuhrman
3faed3625e allow always using 'src/constants' (a kind of absolute path) 2025-01-10 15:44:22 -05:00
C. Fuhrman
535e726e6e use correct env variable 2025-01-10 15:43:12 -05:00
C. Fuhrman
3366fbe18c map the constants import to a mocked one 2025-01-10 15:42:47 -05:00
JubaAzul
81eedfbd29 Login affiche "Nom de la salle" plutôt que "Mot de passe" et "Nom d'utilisateur" au lieu d' "Adresse courriel"
Fixes #179
2025-01-10 13:20:40 -05:00
JubaAzul
ebc0c64ef4 Added tests 2025-01-10 12:39:52 -05:00
C. Fuhrman
4959e02acf Fix broken merge, npm audit fix 2025-01-10 11:09:06 -05:00
Christopher (Cris) Fuhrman
e0ac770230
Merge branch 'main' into fuhrmanator/issue78 2025-01-10 11:01:29 -05:00
Christopher (Cris) Fuhrman
f4e21ee7a9
Merge pull request #175 from ets-cfuhrman-pfe/JubaAzul/issue170
Some checks are pending
CI/CD Pipeline for Backend / build_and_push_backend (push) Waiting to run
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Waiting to run
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Waiting to run
Tests / tests (client) (push) Waiting to run
Tests / tests (server) (push) Waiting to run
LaTeX mal affichée quand on lance le quiz (mais ok en Prévisualisation)
2025-01-09 16:30:09 -05:00
JubaAzul
ebd6101a64 LaTeX mal affichée quand on lance le quiz (mais ok en Prévisualisation)
Fixes #170
2025-01-08 16:45:48 -05:00
JubaAzul
c3de76cd20 Ajustement de l'interface problématique dans l'éditeur de quiz
Fixes #74
2025-01-08 13:48:03 -05:00
JubaAzul
5c64f60021 Icône pour dupliquer est l'icône pour copier (presse papiers)
Fixes #146
2025-01-08 10:35:56 -05:00
C. Fuhrman
3712464873 Clean up ENV variables
Define one for SOCKET url (testing), if it's not defined socket.io defaults to window.location.host
2024-10-31 11:31:26 -04:00
C. Fuhrman
e2c4e5cba2 look at protocol in the env variable 2024-10-31 01:00:26 -04:00
C. Fuhrman
327875dceb make sure backend env is set for client 2024-10-30 23:58:56 -04:00
C. Fuhrman
ed78dc12ef be sure to get the right variable 2024-10-30 23:42:21 -04:00
C. Fuhrman
e04d09b8c5 npm update and set rollupOptions in vite config
The goal is to prevent errors with source maps
2024-10-30 22:04:48 -04:00
C. Fuhrman
123c49662f Enable source maps for Vite (frontend) to help debugging in the browser. 2024-10-30 21:40:35 -04:00
C. Fuhrman
8be2efbe48 try to force the correct url (ws: or wss:) on the socket when it's created 2024-10-30 17:20:13 -04:00
C. Fuhrman
46dae02d47 Console.log debug info 2024-10-30 17:19:11 -04:00
C. Fuhrman
e4aa91863c Don't make an HTTPS server, but configure sockets.io to use secure sockets 2024-10-29 10:10:13 -04:00
C. Fuhrman
d57c61f78f Nom du dossier pour chaque quiz devrait être affiché lorsque "tous les dossiers" sont affichés
Fixes #78
Uses Cards in Material UI to display the quizzes by folder
2024-10-19 22:58:49 -04:00
C. Fuhrman
c089824b05 Fix some updating bugs 2024-10-03 22:18:03 -04:00
C. Fuhrman
0fe07b84c6 Dependency injection of models to controllers, export controllers from app.js 2024-10-02 10:23:56 -04:00
C. Fuhrman
c0cc4d01e0 Fixes #133
Redesign how answers are submitted and updated (react state management)
2024-09-26 00:57:57 -04:00
C. Fuhrman
ab18283db0 state and prop confusion in ManageRoom and LiveResults. 2024-09-25 16:31:38 -04:00
C. Fuhrman
91fa75131a One StudentType that also has answers 2024-09-25 14:53:17 -04:00
C. Fuhrman
fa4b6b5bd3 User -> Student (page, tests) 2024-09-25 13:20:09 -04:00
C. Fuhrman
68d7d8c0a9 Rename UserType -> StudentType 2024-09-25 13:05:36 -04:00
C. Fuhrman
35770dd105 Try to use a map for results, but it's still not clean 2024-09-25 11:17:06 -04:00
C. Fuhrman
9925b7f039 Après réponse par étudiant dans mode rythme de l'enseignant, ça passe à la question suivante (sans afficher rétroaction)
Fixes #86
2024-09-24 19:56:47 -04:00
C. Fuhrman
2091084bba Nom de la salle devrait être en premier sur /student/join-room
Fixes #80
2024-09-24 18:24:04 -04:00
C. Fuhrman
ebb526aa52 Fixes #79
npm audit fix
2024-09-24 14:32:32 -04:00
C. Fuhrman
b410a6da29 Améliorations - table des résultats défile horizontalement avec la première colonne fixe 2024-09-24 09:49:15 -04:00
C. Fuhrman
7562898438 refactor, remove react-latex (katex should be used) 2024-09-23 15:55:37 -04:00
C. Fuhrman
fefe278d79 Actualiser l'aide pour exemples avec markdown, images, etc.
Fixes #102
2024-09-17 18:56:13 -04:00
C. Fuhrman
65f704041a Affichage de \\neq (katex) n'est pas correct (KaTeX_Main n'est pas chargée?)
Fixes #96
2024-09-17 01:48:38 -04:00
C. Fuhrman
1fb04376dc Fixes #54 Créer compte affiche "Nom de la salle" plutôt que "Mot de passe"
Corrigé d'autres placeholders en même temps
2024-09-16 11:06:20 -04:00
C. Fuhrman
d27b02aaee Quiz exporté n'est pas du GIFT valide
Fixes #57
2024-09-15 23:06:01 -04:00
C. Fuhrman
b502d2ab23 add test for HTML 2024-09-15 22:49:03 -04:00
C. Fuhrman
868ac21f43 try again to fix dep conflicts
https://github.com/facebook/react/issues/30932
2024-09-15 22:34:20 -04:00
C. Fuhrman
6982126636 try to fix npm dependency conflicts 2024-09-15 22:13:35 -04:00