fix(dev): bind frontend to 127.0.0.1:8080 and avoid EACCES\nfix(backend): bind server to 127.0.0.1:8081, add permissive CORS whitelist\nfix(auth): login form UX remove default username, clarify placeholder, add test account autofill\nchore(api): set frontend API_BASE_URL to 127.0.0.1:8081\nrefactor(assignments): lifecycle/state logic and archive endpoint\nfeat(analytics): add exam stats endpoint and client method\nchore(lint): add eslint configs

This commit is contained in:
Nexus Dev
2025-11-30 21:55:28 +08:00
parent 38244630a7
commit 4b84a09538
63 changed files with 8478 additions and 3694 deletions

17
.eslintrc.json Normal file
View File

@@ -0,0 +1,17 @@
{
"root": true,
"extends": ["next/core-web-vitals"],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": ["./tsconfig.json"],
"tsconfigRootDir": "."
},
"ignorePatterns": [
"node_modules/",
".next/",
"backend/dist/",
"backend/node_modules/",
"dist/"
]
}