Compare commits

...

37 commits

Author SHA1 Message Date
JubaAzul
23ba586b44 Merge branch 'main' into JubaAzul/issue202 2025-01-30 23:32:26 -05:00
JubaAzul
00884d0bb9 Merge branch 'main' into JubaAzul/issue202 2025-01-30 23:31:16 -05:00
Christopher (Cris) Fuhrman
fd5db0559d
Merge pull request #215 from ets-cfuhrman-pfe/fuhrmanator/issue214
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
add config info, type for react in the vite.config.ts file
2025-01-29 11:37:56 -05:00
C. Fuhrman
bb2e2e931f add config info, type for react in the vite.config.ts file 2025-01-29 11:35:45 -05:00
Christopher (Cris) Fuhrman
763f606712
Merge pull request #211 from ets-cfuhrman-pfe/gift-pegjs-2.0
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
Gift pegjs 2.0
2025-01-28 15:29:54 -05:00
C. Fuhrman
d8b1134756 Merge branch 'main' into gift-pegjs-2.0 2025-01-28 15:28:45 -05:00
Christopher (Cris) Fuhrman
cd96cad26d
Merge pull request #213 from ets-cfuhrman-pfe/fuhrmanator/issue201
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
Fixes #201
2025-01-28 09:39:09 -05:00
C. Fuhrman
29fd478523 Fixes #201
Copilot GPT 4o a suggéré la nouvelle fonction pour remplacer les `\n` seulement en dehors des PATH svg.
2025-01-27 13:14:50 -05:00
C. Fuhrman
842c5956c2 new snapshots, npm audit fix 2025-01-27 12:50:36 -05:00
C. Fuhrman
77df751708 css tweaking answer weights 2025-01-26 22:41:11 -05:00
C. Fuhrman
357fd1a271 Renommer dossier à nom existant donne erreur
Le middleware des erreurs ne fonctionnait pas correctement, parce que les routeurs ne passaient pas à next
J'ai ajouté asyncHandler pour passer les erreurs dans les routeurs
Supprimer messages de console
Fix tests
2025-01-26 21:50:57 -05:00
C. Fuhrman
cf13ac6767 refresh page après renommage 2025-01-26 16:56:49 -05:00
C. Fuhrman
55b6c41148 new test for resized images 2025-01-26 16:50:15 -05:00
C. Fuhrman
917d7d03c7 Cheat sheet with image resize example 2025-01-26 16:42:21 -05:00
C. Fuhrman
4232afc57c render images (changer taille) 2025-01-26 16:31:47 -05:00
C. Fuhrman
7fed2bb135 update snapshots 2025-01-26 15:43:14 -05:00
C. Fuhrman
122685b0de separate numerical answers, weight, feedback (tf and mc) snapshot updates, css 2025-01-26 15:42:31 -05:00
C. Fuhrman
23ff2324ef Test under node 20 2025-01-26 13:30:06 -05:00
C. Fuhrman
c55baed45c fix template, update snapshots numerical answers (formatted stem, multiple answers with feedback) 2025-01-26 13:26:17 -05:00
C. Fuhrman
e51551ec9b turn off debug msg 2025-01-26 13:25:29 -05:00
C. Fuhrman
bc0d2b1f14 true false snapshots (formattedStem) 2025-01-26 12:51:15 -05:00
C. Fuhrman
688869188c update snapshots (formatted Stem) 2025-01-26 12:50:14 -05:00
C. Fuhrman
1f241a45fe turn off debug messages 2025-01-26 12:49:50 -05:00
C. Fuhrman
f1375d8e10 multiple choice snapshots updated 2025-01-26 12:45:10 -05:00
C. Fuhrman
7af156f726 Fix tests 2025-01-26 11:51:12 -05:00
C. Fuhrman
910b83def2 Rename 2025-01-26 09:33:42 -05:00
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
ffa2200606 remove top-level packages (should be either client or server) 2025-01-24 14:54:37 -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
3 changed files with 11 additions and 8 deletions

View file

@ -51,7 +51,7 @@
"@types/react-latex": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint": "^9.18.0",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0-rc-206df66e-20240912",
@ -4947,16 +4947,15 @@
}
},
"node_modules/@vitejs/plugin-react-swc": {
"version": "3.7.1",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.7.1.tgz",
"integrity": "sha512-vgWOY0i1EROUK0Ctg1hwhtC3SdcDjZcdit4Ups4aPkDcB1jYhmo+RMYWY87cmXMhvtD5uf8lV89j2w16vkdSVg==",
"version": "3.7.2",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.7.2.tgz",
"integrity": "sha512-y0byko2b2tSVVf5Gpng1eEhX1OvPC7x8yns1Fx8jDzlJp4LS6CMkCPfLw47cjyoMrshQDoQw4qcgjsU9VvlCew==",
"dev": true,
"license": "MIT",
"dependencies": {
"@swc/core": "^1.7.26"
},
"peerDependencies": {
"vite": "^4 || ^5"
"vite": "^4 || ^5 || ^6"
}
},
"node_modules/abab": {

View file

@ -55,7 +55,7 @@
"@types/react-latex": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint": "^9.18.0",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0-rc-206df66e-20240912",

View file

@ -3,6 +3,8 @@ import react from '@vitejs/plugin-react-swc';
import pluginChecker from 'vite-plugin-checker';
import EnvironmentPlugin from 'vite-plugin-environment';
console.log("⚡ Vite config is being loaded!");
// Filter out environment variables with invalid identifiers
const filteredEnv = Object.keys(process.env).reduce((acc, key) => {
// Only include environment variables with valid JavaScript identifiers
@ -27,13 +29,15 @@ export default defineConfig({
},
preview: {
port: 5173,
strictPort: true
strictPort: true,
allowedHosts: ['frontend', 'localhost'],
},
server: {
port: 5173,
strictPort: true,
host: true,
origin: "http://0.0.0.0:5173",
allowedHosts: ['frontend', 'localhost'],
},
build: {
sourcemap: true, // Enable source maps