28 Commits
Author SHA1 Message Date
wancat 7cdc542c19 refactor: rewrite session store using pinia and fix start button 2024-06-27 11:23:21 +08:00
wancat 1d725d82ae feat: add register-guest api 2024-06-17 19:23:30 +08:00
wancat 92181d960f feat: check if a quest is unlocked before creating session 2023-11-14 10:45:24 +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 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 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 72b2711367 feat: make social login optional 2023-10-05 13:32:02 +08:00
wancat d745531a14 feat: update swagger, secure cookie 2023-09-17 12:48:50 +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 49417c405a feat: add login in frontend
* extract icon library from main.js
* extract router from main.js
* failure with error in passport
* add example to swagger
2023-09-13 14:02:28 +08:00
wancat b55b7aa1ec feat: add register, checkUsername, update swagger 2023-09-12 23:01:49 +08:00
wancat 0f53696f71 feat: apply auth to container and cli client 2023-09-12 00:12:09 +08:00
wancat bcdd04715d feat: add password login 2023-09-11 22:59:41 +08:00
wancat e16b328892 feat: refactor stage to multiple route design 2023-08-30 18:05:11 +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 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 0d9b068678 Update spec to use _id 2023-07-20 16:24:39 +08:00
wancat 5e8115be11 Add quest to API spec
+ Remove timestamps
+ Add 404 error handling
2023-07-20 15:36:51 +08:00
wancat 87f5e86108 Update API spec
+ to use json as post data
+ new SessionSummary component to return as list
2023-07-19 20:00:35 +08:00
wancat da4b1b18a4 Create fake auth middleware
Work in progress
2023-07-19 16:54:32 +08:00
wancat 04edfdd0dc Define routes, controllers of sessions
Work in progress, debugging
2023-07-19 16:42:09 +08:00
wancat 50443b96e0 Connect to mongodb, define schemas 2023-07-19 15:30:36 +08:00
wancat d51a75e5bc Re-organize code 2023-07-18 20:33:08 +08:00