Commit Graph
372 Commits
Author SHA1 Message Date
Chen, Tai-Lin caf9f55712 fix: improve quest 'helloworld' content 2023-11-12 21:23:41 +08:00
Lin, Hung-Shin 24b2c22c5c feat: move out env from docker-compose.prod.yml 2023-11-12 21:23:41 +08:00
Lin, Hung-Shin 7917d512f8 feat: specify trust proxies 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 77fffda1b8 feat: remove username length limit 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 96de0335f0 feat: refactor frontend auth error handling 2023-11-12 21:23:12 +08:00
wancat 14bde27127 fix: update frontend error handling 2023-11-12 21:23:12 +08:00
wancat 3af560bf7a feat: add cypress test script 2023-11-12 21:23:12 +08:00
wancat a953d21c97 feat: setup default secretKey for development 2023-11-12 21:23:12 +08:00
wancat 9abb7f15ba fix: container removal, no secretKey panic 2023-11-12 21:23:12 +08:00
wancat 8e6227d9b4 feat: add validation before creating session 2023-11-12 21:23:12 +08:00
wancat cbe7adc3f8 feat: add error handling for choose username 2023-11-12 21:23:12 +08:00
wancat 20225093c6 feat: add rate limit for authentication
* improve error handling in frontend
2023-11-12 21:23:12 +08:00
wancat 265352d8c6 feat: add validation for login 2023-11-12 21:23:12 +08:00
wancat 643813d69d feat: complete register validation
* add password policy in frontend
2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 040b2a71e5 feat: add validators for username, email, password
* not passed yet
2023-11-12 21:23:12 +08:00
Lin, Hung-Shin 6a64f75950 fix: remove default user 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin f1a50067c5 feat: generate secure secret key and prevent default 2023-11-12 21:23:12 +08:00
wancat 55b61dbcab feat: add get ip endpoint
* rename handler
* change rate limit
2023-11-12 21:23:12 +08:00
wancat 1d2ad733ed feat: setup proxy and x-forwarded-for header 2023-11-12 21:23:12 +08:00
wancat 14b2c1b0d5 feat: add global and session rate limit 2023-11-12 21:23:12 +08:00
wancat ed14491cfc feat: socket error handling
* create a new session when failed to connect to socket
* reset termnal on connect
2023-11-12 21:23:12 +08:00
wancat 2639c0ddda refactor: centralize all variable to sessionManager 2023-11-12 21:23:12 +08:00
wancat 801d1aa07b refactor: add getOrCreateSession to simplify process 2023-11-12 21:23:12 +08:00
wancat 610894e6d8 refactor: separate createSession to sessionManager 2023-11-12 21:23:12 +08:00
Lin, Hung-Shin ca68207139 feat: disable global network in player containers 2023-11-12 21:23:12 +08:00
Annie Huang cd7d48b322 Cypress update (not yet for playing game) 2023-11-12 21:15:36 +08:00
Annie Huang 433ced4867 update 2023-11-03 23:51:48 +08:00
Annie Huang 5171cd16fc delete redundant code 2023-11-03 23:50:51 +08:00
Annie Huang e6becf489f add testing needed files to docker 2023-10-30 15:00:30 +08:00
Annie Huang 030b7b749e Update function in command.js 2023-10-30 15:00:30 +08:00
Annie Huang a351eef898 fix usage 2023-10-30 15:00:30 +08:00
Annie Huang 839b87b478 fix remove verify by storytext add global function 2023-10-30 15:00:30 +08:00
Annie Huang ee841b42e7 fix: command update 2023-10-30 15:00:30 +08:00
Annie Huang 2089765c53 remove .env from git 2023-10-30 15:00:30 +08:00
Annie Huang 1c10b62547 change hidden to secret 2023-10-30 15:00:30 +08:00
Annie Huang be4af591af Add stage secret and try oAuth login settings 2023-10-30 15:00:30 +08:00
Annie Huang dba521b358 Quest complete, rm sh file and create json 2023-10-30 15:00:30 +08:00
Annie Huang 3df076d6fd add answer sheet and delete confirming story text 2023-10-30 15:00:30 +08:00
Annie Huang fd8433d9f9 Add read content from game but need change index 2023-10-30 15:00:30 +08:00
wancat 1eaa448685 fix: secrets must not start with "GITHUB" 2023-10-30 14:57:40 +08:00
wancat 9ac429a564 fix: add Dockerfile for cypress
* install additional dependencies for cypress
* remove duplicate cypress installation
2023-10-30 14:57:40 +08:00
Annie Huang 0c1acf1083 add testinglibrary, some basic test 2023-10-30 14:57:40 +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 51bf06e2a7 feat: remove wait for enter in dialogue 2023-10-30 14:21:52 +08:00
Lin, Hung-Shin 8782048334 Merge remote-tracking branch 'origin/quest' into quest 2023-10-30 14:00:07 +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 fcebb25b46 Update forgotten_scroll.txt 2023-10-30 13:53:43 +08:00
Lin, Hung-Shin 67c420d69e Merge pull request #48 from linux-odyssey/ui-revise
Fix: Fixed error message color
2023-10-30 13:50:07 +08:00
CHEN, TAI-LIN f418410d04 Update tailwind.config.js 2023-10-30 13:45:26 +08:00