Justin Lin
92173bb7e9
refactor: migrate session management to TRPC and remove legacy API endpoints
2025-04-23 16:37:12 +08:00
Justin Lin
66434ff897
fix: save new created session
2025-04-22 19:06:57 +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
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
a4ed4cf533
feat: remove unnecessary quest Dockerfiles
2024-10-14 12:40:53 +08:00
wancat
c64043316e
feat: replace getOrCreateActive session to getActiveSession
2024-06-27 11:54:28 +08:00
wancat
198dcae3f8
feat: add isGuest field in user model
2024-06-17 19:50:58 +08:00
wancat
1d725d82ae
feat: add register-guest api
2024-06-17 19:23:30 +08:00
wancat
fd543ed594
finish session controller
2024-02-22 20:10:03 +08:00
wancat
c912319967
refactor: userController and add req user type
2024-02-19 23:51:21 +08:00
wancat
4c421b4cb3
refactor: game
2024-02-19 23:13:37 +08:00
wancat
d6c95cea4a
refactor utils
2024-02-19 18:05:00 +08:00
wancat
79a5dac7f1
fix mongo no matching document when deleting container
2024-02-07 10:37:38 +08:00
Lin, Hung-Shin
93e2485dee
Merge branch 'main' into quest
2023-11-23 23:40:03 +08:00
wancat
1a5655d7ce
feat: rename numberOfCompletedQuests to score
2023-11-23 15:49:06 +08:00
wancat
196187d5c9
feat: add leaderboard api
2023-11-23 15:42:31 +08:00
Lin, Hung-Shin
21ca083628
Merge branch 'main' into quest-file
2023-11-22 11:39:24 +08:00
Lin, Hung-Shin
3fed851b7b
feat: reload all quest on starting
2023-11-21 11:04:52 +08:00
Lin, Hung-Shin
82d1004ecf
wip: removing console log
2023-11-20 14:59:14 +08:00
wancat
f81c96be62
fix: fix createUser without password
2023-11-18 18:22:27 +08:00
wancat
81581c4635
BREAKING: change user social login schema
2023-11-18 16:29:37 +08:00
Chen, Tai-Lin
0ac1dbed96
Merge branch 'main' into feat-build-quests
2023-11-17 15:12:32 +08:00
Lin, Hung-Shin
1f77328362
feat: add testing setup in backend
2023-11-17 10:59:47 +08:00
wancat
50bf514805
feat: separate db models from server
2023-10-14 15:34:46 +08:00
wancat
182fcf643f
feat: pick username
...
* put new registered social login user to session data
* ask to choose username
* simplify checkUsername functions
2023-10-13 00:05:59 +08:00
Annie Huang
ad5344c98b
feat: github auth
2023-10-12 16:12:07 +08:00
Lin, Hung-Shin
1880b30029
feat: use google to login
2023-10-05 11:50:00 +08:00
wancat
bcdd04715d
feat: add password login
2023-09-11 22:59:41 +08:00
wancat
dd7829b3e9
feat: combine task with stage
2023-09-01 14:56:28 +08:00
wancat
e16b328892
feat: refactor stage to multiple route design
2023-08-30 18:05:11 +08:00
wancat
3dae9e8552
feat: store graph in session manager
2023-08-29 14:28:09 +08:00
wancat
ee7cd083bd
feat: handle discover in server
2023-08-29 13:28:18 +08:00
wancat
27f8525585
fix: add missing "error" field in command
2023-08-24 11:35:43 +08:00
wancat
ad3dd2fb18
fix: default retrieve active session
...
+ typo 'deactive' -> 'inactive',
2023-08-23 12:27:20 +08:00
wancat
2c866d2e83
feat: add status, lastActivityAt column to session
2023-08-23 11:50:49 +08:00
wancat
a151d2d667
feat: add type and color to response
2023-08-09 21:14:57 +08:00
wancat
6f368f761e
feat: add hints to session, update API
2023-08-08 20:38:27 +08:00
wancat
094332da53
feat: add commandHandler
2023-08-08 20:38:27 +08:00
wancat
0de4b6ac9d
feat: design game file and parse it to mongo
...
* 取消用 README 來寫關卡說明
2023-08-08 20:38:27 +08:00
wancat
b9643e7d5c
feat: capture output and exit code of commands
...
+ ignore interactive commands like vim, top or nano
2023-07-27 17:56:32 +08:00
wancat
3cea54ce71
feat: add new API for recording executed commands
...
- Add the `jsonwebtoken` dependency to the server's `package.json`
- Add a new file `commandController.js` to the server's API controllers
- Add a new route `/commands` to the server's API routes
- Add a new file `commands.js` to the server's API routes
- Modify the `index.js` file in the server's API routes to import and use the `commands.js` route
- Add a `newCommand` function to the `commandController.js` file
- Add a `Command` model to the `command.js` file in the server's models
- Add the `genSessionJWT` and `verifySessionJWT` functions to the `auth.js` file in the server's utils
- Modify the `attachContainer` function in the `docker.js` file in the server's utils to include a `token` parameter
- Modify the `swagger.yaml` file to include a new route `/commands` for recording executed commands in a session
Signed-off-by: wancat <wancat@wancat.cc >
2023-07-24 16:39:04 +08:00
wancat
c4e14fa271
Update README, format script
2023-07-20 17:05:01 +08:00
wancat
43f54b4f93
Create and get session list api
2023-07-20 16:25:54 +08:00
wancat
3e9e14399a
Directly use folder name as _id in Quest
2023-07-20 16:25:10 +08:00
wancat
237d6d5797
Create session
2023-07-20 15:54:27 +08:00
wancat
5e8115be11
Add quest to API spec
...
+ Remove timestamps
+ Add 404 error handling
2023-07-20 15:36:51 +08:00
wancat
247c75ff84
Get quest list and quest details
...
+ Add timestamps to quest
2023-07-20 15:23:39 +08:00
wancat
3637d41529
Load and update quests on startup
2023-07-20 15:08:47 +08:00