Lin, Hung-Shin
3f8bcb5446
feat: disable quest locks when testing
2023-11-21 10:48:35 +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
Lin, Hung-Shin
1f77328362
feat: add testing setup in backend
2023-11-17 10:59:47 +08:00
wancat
92181d960f
feat: check if a quest is unlocked before creating session
2023-11-14 10:45:24 +08:00
wancat
c2dac8d385
fix: wrap all async controller with error handler
...
* add validations to newCommand
2023-11-14 10:45:24 +08:00
wancat
4ee88fe7ba
feat: add requirements in quest list api
2023-11-14 10:44:52 +08:00
wancat
1e728b413b
fix: not reexport in default
2023-11-14 10:44:52 +08:00
wancat
5df4967a85
feat: delete "deleteSession" method, validate questId and sessionId
2023-11-14 10:44:52 +08:00
wancat
a7422853fa
feat: add /users/me endpoint
2023-11-14 10:44:52 +08:00
wancat
f49fb0e4da
feat: finishSession and allow user command after finished
2023-11-14 10:44:52 +08:00
wancat
d4000eb5a6
feat: add validation before creating session
2023-11-01 22:59:32 +08:00
wancat
bcfdf15559
feat: add error handling for choose username
2023-11-01 22:44:32 +08:00
Lin, Hung-Shin
1c9d69a8e0
feat: add validators for username, email, password
...
* not passed yet
2023-11-01 15:02:30 +08:00
wancat
b9a79eb435
feat: add get ip endpoint
...
* rename handler
* change rate limit
2023-10-31 00:27:06 +08:00
wancat
5a7c4da628
refactor: add getOrCreateSession to simplify process
2023-10-30 22:43:27 +08:00
wancat
11bc793b12
refactor: separate createSession to sessionManager
2023-10-30 22:10:25 +08:00
Lin, Hung-Shin
2285192eac
feat: delete previous container on session creation
2023-10-30 13:31:59 +08:00
wancat
917083ad30
fix: remove debugging console log
2023-10-29 17:42:31 +08:00
wancat
d724f97403
feat: add pending signal to status
2023-10-29 17:42:31 +08:00
wancat
aec0cf84ad
feat: include complete stage name in command
2023-10-29 17:41:38 +08:00
wancat
50bf514805
feat: separate db models from server
2023-10-14 15:34:46 +08:00
Lin, Hung-Shin
c5ccf03ac5
feat: add username and email check in frontend
2023-10-13 16:38:25 +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
Lin, Hung-Shin
aa29098954
fix: register error message "email already exists"
2023-10-05 11:50:21 +08:00
wancat
d745531a14
feat: update swagger, secure cookie
2023-09-17 12:48:50 +08:00
wancat
d939b7eb4d
feat: add loggedIn checks for frontend
2023-09-17 12:29:45 +08:00
wancat
34c277c886
feat: update frontend to use cookie session
...
* use SessionMiddleware in socket.io server
* add back jwtStrategy for commands
2023-09-17 12:14:30 +08:00
wancat
be5cd152a9
change to use session for auth
...
+ replace BearerAuth to cookieAuth in swagger
+ add swagger.yaml to nodemon watch list
2023-09-17 11:27:37 +08:00
Lin, Hung-Shin
a6d02f2616
refactor: simplify register flow
2023-09-15 15:50:36 +08:00
Lin, Hung-Shin
f5c465ab69
feat: add login & signup flow
2023-09-14 18:54:40 +08:00
Lin, Hung-Shin
f1510df13e
feat: enhance checkUser api
...
* determine whether it's email or username, and if it exists
2023-09-14 17:43:07 +08:00
wancat
b55b7aa1ec
feat: add register, checkUsername, update swagger
2023-09-12 23:01:49 +08:00
wancat
04a0b21cf6
fix: session response payload
2023-09-12 00:12:22 +08:00
wancat
0f53696f71
feat: apply auth to container and cli client
2023-09-12 00:12:09 +08:00
wancat
0ea44e1f71
feat: add initial task on session creation
2023-09-01 17:16:32 +08:00
wancat
99da610d9e
feat: exit shell on disconnect
2023-08-30 19:52:40 +08:00
wancat
e16b328892
feat: refactor stage to multiple route design
2023-08-30 18:05:11 +08:00
wancat
3b8264e39e
refactor: refactor commandHandler to class
2023-08-29 12:08:36 +08:00
wancat
ad3dd2fb18
fix: default retrieve active session
...
+ typo 'deactive' -> 'inactive',
2023-08-23 12:27:20 +08:00
wancat
8e63284211
feat: seperate container creation and get
2023-08-23 11:51:16 +08:00
wancat
2c866d2e83
feat: add status, lastActivityAt column to session
2023-08-23 11:50:49 +08:00
wancat
096b7a7714
feat: push discover event to frontend
2023-08-21 20:40:05 +08:00
wancat
6ace18475b
refactor: move client to sperate packages, rename cli to container
2023-08-21 20:40:05 +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
6204bd0b17
feat: change to use Zsh
...
* show message from server response
* send output and error to server
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
9376e16f72
Success to send command to api
...
+ require sourcing entrypoint.sh manually
2023-07-26 00:12:10 +08:00
wancat
88ed447573
fix: error handling
...
- Remove unnecessary try-catch block in createSession function
- Add error handling for missing session ID in socket.js
- Improve error handling in connectDB function
- Add error handling middleware for server errors
- Add default export for get function in env.js
Signed-off-by: wancat <wancat@wancat.cc >
2023-07-25 15:46:59 +08:00