Commit Graph
97 Commits
Author SHA1 Message Date
wancat f65b72c5b4 feat: add rate limit for authentication
* improve error handling in frontend
2023-11-01 22:11:17 +08:00
wancat 203114cd5e feat: add validation for login 2023-11-01 21:35:25 +08:00
wancat fc6ac11c60 feat: complete register validation
* add password policy in frontend
2023-11-01 21:02:01 +08:00
wancat 3b9ea9ea50 feat: setup proxy and x-forwarded-for header 2023-10-31 00:15:39 +08:00
wancat 252781477a feat: socket error handling
* create a new session when failed to connect to socket
* reset termnal on connect
2023-10-30 23:31:58 +08:00
wancat 9c3c6adb16 refactor: centralize all variable to sessionManager 2023-10-30 23:12:50 +08:00
wancat 5a7c4da628 refactor: add getOrCreateSession to simplify process 2023-10-30 22:43:27 +08:00
Lin, Hung-Shin f8254b55c9 Merge pull request #45 from linux-odyssey/quest
Add new functions for quest:

* new condition logic `or` & `not`: able to create nested condition
* new condition `files`: checks if a file or folder exists in the container
  * not support globbing yet
* send "pending" status when executing story, and set it back after execution
* include completed stage id in command

Dockerfile refactor:
* use multi-staged building
* remove Dockerfile.dev

Container:

* use axios instead of `fetch`

Other improvements:

* deactivate other sessions when creating a new one
* clear terminal on reset
2023-10-30 14:42:34 +08:00
Lin, Hung-Shin 8a0512aac8 feat: clear terminal on reset
* TODO: have some trailing
2023-10-30 13:58:33 +08:00
Lin, Hung-Shin 0392fe9a65 refactor: separate Terminal instance 2023-10-30 13:55:10 +08:00
CHEN, TAI-LIN f418410d04 Update tailwind.config.js 2023-10-30 13:45:26 +08:00
Chen, Tai-Lin 7c8c4df922 fix: fixed error message color 2023-10-30 13:34:22 +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
Lin, Hung-Shin 38f3dbcd65 feat: install docker cli in backend
* change the copy order to improve performance
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin 579d53a273 feat: refactor dockerfiles
* combine dev and prod into multi-stages dockerfile
* replace node with node:20-alpine to reduce image size
2023-10-29 17:41:38 +08:00
Chen, Tai-Lin b4a37f7606 fix: remove order in game schema 2023-10-29 17:41:38 +08:00
Chen, Tai-Lin 9e12657def fix: modify tree color 2023-10-27 15:58:46 +08:00
Chen, Tai-Lin ea81f2feb4 fix: hide unimplemented buttons 2023-10-26 15:07:04 +08:00
Chen, Tai-Lin 00fcf353ba fix: improve game page UI 2023-10-26 14:52:02 +08:00
Chen, Tai-Lin 93d4f9d46b fix: Improve log-in page UI 2023-10-26 14:52:02 +08:00
Lin, Hung-Shin c76f877255 Update index.html 2023-10-26 13:13:04 +08:00
Lin, Hung-Shin 64596b57dc Add analytics script 2023-10-15 07:48:05 +08:00
Annie Huang d55bfc54a0 Add username instruction 2023-10-15 00:23:26 +08:00
wancat 6f8d297b04 fix: change complete modal title 2023-10-14 23:04:39 +08:00
wancat 5e1457c007 feat: show modal on quest completing
TODO: use setTimeout for now
need to change to capture user's activity in container in the future
2023-10-14 22:52:57 +08:00
wancat 4ad1b865d6 feat: add survey modal ui 2023-10-14 22:44:11 +08:00
Lin, Hung-Shin 5c7acd88ca refactor: reuse AuthForm in ChooseUsernamePage 2023-10-13 17:21:10 +08:00
Lin, Hung-Shin c5ccf03ac5 feat: add username and email check in frontend 2023-10-13 16:38:25 +08:00
Lin, Hung-Shin 30aeacaf06 feat: separate Login and Register Page 2023-10-13 16:13: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
Annie Huang 3da0afb356 Fix ui spelling 2023-10-12 16:18:58 +08:00
Annie Huang ad5344c98b feat: github auth 2023-10-12 16:12:07 +08:00
Lin, Hung-Shin 6654f8880a fix: display block only when social logins enabled
* text-m -> text-base
2023-10-11 10:50:22 +08:00
Lin, Hung-Shin 50bed23d37 fix: remove unnecessary console log 2023-10-05 14:22:47 +08:00
Lin, Hung-Shin 72b2711367 feat: make social login optional 2023-10-05 13:32:02 +08:00
Lin, Hung-Shin 9ac7fc9752 feat: add login with google in frontend
fix vite proxy setting
2023-10-05 12:02:23 +08:00
Annie Huang dfd417401f update: use tailwind color setting 2023-09-28 16:15:24 +08:00
Annie Huang 2fc9784477 update: hint reassign, UI 2023-09-28 14:42:17 +08:00
Annie Huang 764f558307 hintpart rebase 2023-09-27 23:26:57 +08:00
wancat b8e520152b fix: change cookie setting, prevent form trigger twice 2023-09-18 23:37:25 +08:00
wancat 45231dda11 fix: update client to authenticate by session 2023-09-18 22:51:20 +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
Lin, Hung-Shin a6d02f2616 refactor: simplify register flow 2023-09-15 15:50:36 +08:00
Lin, Hung-Shin 5dd56308ce feat: add login by username or email 2023-09-14 18:58:09 +08:00
Lin, Hung-Shin f5c465ab69 feat: add login & signup flow 2023-09-14 18:54:40 +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 ac8e2bc73a Merge branch 'main' into app-neil 2023-09-10 20:12:43 +08:00
wancat c3b7968a76 feat: use vue router to organize pages 2023-09-10 20:06:23 +08:00