Vincent23412
af2f1ef707
feat(auth): add LoginAttempt schema and record login attempts with failure rate limit
...
- Added `LoginAttempt` Mongoose schema to store login history
- Integrated login attempt recording into login flow (success/failure)
- Created `rateLimitByAccount` middleware to block login if 10 failed attempts in 10 minutes
2025-04-27 15:57:34 +08:00
Justin Lin and Copilot
0a8ef9a37e
Update packages/container/cli.js
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-04-26 18:45:35 +08:00
Justin Lin
aeed963a75
fix: use wrong parsed command body
2025-04-26 18:43:43 +08:00
Justin Lin
94389d4e1c
fix: analytics dockerfile
2025-04-26 17:27:49 +08:00
Justin Lin
9498bb77ef
fix: linting
2025-04-26 17:02:47 +08:00
Justin Lin
6fe49c4f38
fix: dockerfile, production env settings
2025-04-26 16:38:32 +08:00
Justin Lin
3985d5d089
fix: server and app build
2025-04-26 13:22:32 +08:00
Justin Lin
253564376d
fix: analytics type errors
2025-04-26 13:10:48 +08:00
Justin Lin
f7e2b00358
fix: test in game and file-graph
2025-04-26 12:52:12 +08:00
Justin Lin
26e79690f8
feat: add pwd handling to session and update related components
2025-04-25 11:33:16 +08:00
Justin Lin
b3ed0e646e
fix: app import inteface
2025-04-24 23:23:58 +08:00
Justin Lin
87b8ca5d04
wip: replace packages with pure files
2025-04-24 23:20:40 +08:00
Justin Lin
2d95ca382f
wip: integrate filegraph into session
2025-04-24 22:05:10 +08:00
Justin Lin
cdd22634e0
refactor: replace "folder" with "directory" across file handling components and tests
2025-04-24 21:24:55 +08:00
Justin Lin
7e50c8e06c
refactor: remove condition tests and update file node interfaces in game session
...
TODO: replace "folder" with "directory"
2025-04-24 18:10:47 +08:00
Justin Lin
0685d71299
refactor: remove print.js and simplify response handling in cli.js
2025-04-24 18:08:09 +08:00
Justin Lin
56049a0a29
fix: DAG setLayer logic
2025-04-23 17:58:24 +08:00
Justin Lin
ab63595fba
feat: add JSON schema for quest
2025-04-23 17:40:55 +08:00
Justin Lin
52e9a13645
feat: add isFinished method to GameSession and update commandController to handle session completion
2025-04-23 17:10:51 +08:00
Justin Lin
cfbc386c16
refactor: update file-graph package structure and integrate with game session management
2025-04-23 17:04:00 +08:00
Justin Lin
b4b8f8baee
feat: load responses and tasks from existing session
2025-04-23 16:17:10 +08:00
Justin Lin
a711e08328
refactor: update QuestMap component to use new node structure and simplify DAG class
2025-04-22 18:58:23 +08:00
Justin Lin
1616f62755
wip: migrate backend to new game package
2025-04-21 22:40:11 +08:00
Justin Lin
1d843f7355
refactor: remove unused quest-related schemas and consolidate exports
2025-04-21 21:42:54 +08:00
Justin Lin
d2cdd1304a
feat: getTasks
2025-04-21 18:31:33 +08:00
Justin Lin
254e4f75ed
feat: include responses from Exceptions
2025-04-21 12:31:53 +08:00
Justin Lin
0f0f43b838
refactor: Create a new super class Event and prevent duplicate logic
2025-04-21 12:23:09 +08:00
Justin Lin
2dc40a2254
refactor: add new name "Event" for the set Stage and Exception
2025-04-21 11:58:05 +08:00
Justin Lin
6e804f0ed4
refactor: reuse satisfies function in condition
2025-04-21 11:53:32 +08:00
Justin Lin
3656868b66
feat: catch-all exceptions
2025-04-21 11:45:23 +08:00
Justin Lin
cfce5ececa
feat: add global exceptions
2025-04-21 11:41:07 +08:00
Justin Lin
fb823814e0
feat: add stage exceptions
2025-04-21 11:19:59 +08:00
Justin Lin
f7780c3d98
feat: add get responses
2025-04-18 15:17:25 +08:00
Justin Lin
dae9e841ca
feat: add run command
2025-04-18 15:04:28 +08:00
Justin Lin
e622011b21
feat: add quest class and session getActiveStages
2025-04-18 14:54:10 +08:00
Justin Lin
471b781d85
refactor: separate schema to files
2025-04-18 14:33:41 +08:00
Justin Lin
57d8f24930
Merge branch 'game' into refactor-trpc
2025-04-18 14:27:41 +08:00
Justin Lin
6043226142
wip: migrating game handler
2025-04-18 14:27:36 +08:00
Justin Lin
61d1871e95
feat: parse all quest
2025-04-16 19:06:47 +08:00
Justin Lin
ed4d04b658
feat: parse quest using zod, basic
2025-04-16 17:37:42 +08:00
Justin Lin
963655c1f7
wip: get active session
2025-04-16 16:58:24 +08:00
Justin Lin
423548804a
feat: migreate get user profile to trpc
2025-04-16 16:40:03 +08:00
Justin Lin
ac92950177
feat: migrate quest api to trpc
2025-04-16 16:24:29 +08:00
Justin Lin
a901ce005c
fix: pass env file to containers directly
2024-10-21 12:53:39 +08:00
Justin Lin
19c44fbe52
wip: game schema
2024-10-10 16:22:20 +08:00
Justin Lin
2a868ead48
Merge branch 'main' into game
2024-08-28 14:52:13 +08:00
wancat
9ddfcd2a86
feat: add edges (straight line for now)
2024-07-31 18:11:18 +08:00
wancat
1572b2ea06
feat: rewrite map state handling
2024-07-31 17:54:59 +08:00
wancat
7cdc542c19
refactor: rewrite session store using pinia and fix start button
2024-06-27 11:23:21 +08:00
wancat
198dcae3f8
feat: add isGuest field in user model
2024-06-17 19:50:58 +08:00