Commit Graph
129 Commits
Author SHA1 Message Date
Lin, Hung-Shin 08e28f7725 feat: load user progress and check before click
* not display completed and unlocked status yet
2023-11-16 13:22:24 +08:00
Lin, Hung-Shin 34e9b20f2e feat: fetch quests from api 2023-11-16 13:09:35 +08:00
Lin, Hung-Shin b19d6bf6e2 feat: center the same layers 2023-11-16 12:53:44 +08:00
Lin, Hung-Shin 7a8df716da feat: add x coordinates and links, use SVG 2023-11-16 12:46:53 +08:00
Lin, Hung-Shin ca8215486c feat: add dag into frontend (work in progress) 2023-11-15 14:58:00 +08:00
Lin, Hung-Shin c92a2e1d70 feat: install echarts and initialize graph chart 2023-11-15 14:02:33 +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 1af85651b8 fix: enhance error handling for frontend session 2023-11-14 10:45:24 +08:00
wancat d0e2a4125d feat: add vue-toastification for alerting 2023-11-14 10:45:24 +08:00
wancat f973982ec4 feat: use dynamic route to select quest (no error handling yet) 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
dependabot[bot] 710eb8fc2e build(deps): bump axios from 1.4.0 to 1.6.0 (#62)
Bumps [axios](https://github.com/axios/axios) from 1.4.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.4.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-12 00:48:27 +08:00
Lin, Hung-Shin 7d7ad154ab Fix re-login error (#60)
* refactor: put all session ref into one reactive store

* fix relogin duplicate signal

* fix: put quest data into store, fix hint reactivity

* fix: duplicate after relogin

* only register listener once
2023-11-08 14:22:08 +08:00
Lin, Hung-Shin 4c2f3f5397 feat: put survey and bug report url to backend (#57)
* feat: put survey and bug report url to backend

* fix: centralize hardcoded url to config

* fix: validate url before redirecting
2023-11-03 21:32:12 +08:00
CHEN, TAI-LINandLin, Hung-Shin f93b4d757b fix: ui revise (#56)
* fix: ui revise

* fix: change to v-else

---------

Co-authored-by: Lin, Hung-Shin <wancat@wancat.cc>
2023-11-03 16:15:06 +08:00
Lin, Hung-Shin 3664df68b6 feat: add bug report url 2023-11-03 15:01:14 +08:00
Chen, Tai-Lin fd6d2e284b feat: add bug report button 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin 5731d5de1a feat: improve UI and warning on mobile 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin 2af1e4f742 fix: fix HTML title 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin b552783c8c fix: fix space and line break issue 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin e3300b7ea1 fix: add condition describe in AuthForm 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin f66ba08049 update ChooseUsernamePage 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin 778c3d1a92 remove catalog draft 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin f62f910956 feat: add catalog draft 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin b920891ddf fix: fix line break error in QuestPart 2023-11-03 13:58:31 +08:00
Chen, Tai-Lin 92daa99d93 refactor: update tailwind configure contant 2023-11-03 13:58:31 +08:00
dependabot[bot] bdeaecfb34 build(deps-dev): bump postcss from 8.4.26 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.26 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.26...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 06:14:22 +00:00
Lin, Hung-Shin 72aded98b1 feat: move out env from docker-compose.prod.yml 2023-11-02 12:39:25 +08:00
Lin, Hung-Shin a5896e7c15 feat: remove username length limit 2023-11-02 11:36:53 +08:00
Lin, Hung-Shin b09aa0debf feat: refactor frontend auth error handling 2023-11-02 11:36:42 +08:00
wancat bcb9f1f803 fix: update frontend error handling 2023-11-01 23:30:28 +08:00
wancat bcfdf15559 feat: add error handling for choose username 2023-11-01 22:44:32 +08:00
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