Commit Graph
58 Commits
Author SHA1 Message Date
Chen, Tai-Lin ceb9416fab update: mongoose version 2023-12-13 15:05:46 +08:00
Lin, Hung-Shin abaacf7ee7 feat: display markdown to html 2023-11-26 23:16:13 +08:00
Annie Huang ce6d5aad66 Add complete animation 2023-11-23 16:16:20 +08:00
AnnieHuang 63c2443802 Add animejs for further usage 2023-11-23 13:57:41 +08:00
Lin, Hung-Shin a4a261291d Merge branch 'main' into feat-translate-ch 2023-11-21 22:28:57 +08:00
Annie Huang 4c85516bcb fix cypress /map problem
update packages
2023-11-21 22:24:34 +08:00
Lin, Hung-Shin 9f9a31719e Add logger in backend (#69)
* Replace `console.log` `console.error` with Winston logger
* Add ESLint warning of `console`
2023-11-21 22:16:56 +08:00
Lin, Hung-Shin f6c3b33da9 Feat quests page (#67)
Feat quests page
2023-11-20 16:24:25 +08:00
Lin, Hung-Shin 515aefcadc feat: add winston 2023-11-20 14:36:38 +08:00
wancat 1ab394f187 feat: add basic auth to analytics 2023-11-18 22:22:34 +08:00
Lin, Hung-Shin 1f77328362 feat: add testing setup in backend 2023-11-17 10:59:47 +08:00
Lin, Hung-Shin cb376caff0 Merge branch 'main' into feat-automation-test 2023-11-17 09:43:26 +08:00
Lin, Hung-Shin c92a2e1d70 feat: install echarts and initialize graph chart 2023-11-15 14:02:33 +08:00
wancat d0e2a4125d feat: add vue-toastification for alerting 2023-11-14 10:45:24 +08:00
Annie Huang f9914b8095 renew config and package 2023-11-13 23:08:29 +08:00
Annie Huang 610eb3d2b7 update tests
- having bug testing blocked by limited reset time
- not yet check the playing part is fine

(cherry picked from commit c510e4a541)
2023-11-13 22:20:10 +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 c6c70a4285 Merge pull request #53 from linux-odyssey/dependabot/npm_and_yarn/postcss-8.4.31
build(deps-dev): bump postcss from 8.4.26 to 8.4.31
2023-11-02 14:19:56 +08:00
dependabot[bot] fc9926f8e2 build(deps): bump @babel/traverse from 7.22.8 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 06:14:26 +00: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
wancat fc6ac11c60 feat: complete register validation
* add password policy in frontend
2023-11-01 21:02:01 +08:00
Lin, Hung-Shin f18ec35a9f feat: generate secure secret key and prevent default 2023-11-01 14:19:18 +08:00
wancat c10b05c401 feat: add global and session rate limit 2023-10-30 23:46:39 +08:00
wancat d724f97403 feat: add pending signal to status 2023-10-29 17:42:31 +08:00
wancat fb687094ee feat: new analytics package, setup template 2023-10-14 16:03:44 +08:00
wancat 50bf514805 feat: separate db models from server 2023-10-14 15:34:46 +08:00
Annie Huang ad5344c98b feat: github auth 2023-10-12 16:12:07 +08:00
Lin, Hung-Shin 44b3304046 feat: login to google success 2023-10-04 13:23:16 +08:00
Lin, Hung-Shin 94e8940369 feat: init cypress 2023-09-25 13:28:52 +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
wancat bcdd04715d feat: add password login 2023-09-11 22:59:41 +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
wancat 0ea44e1f71 feat: add initial task on session creation 2023-09-01 17:16:32 +08:00
wancat 22060070b9 feat: add session expiry deletion script and scheduler 2023-08-23 12:22:15 +08:00
wancat 9aa9367f9e refactor: move quests out of server
+ move quests from server/quests to ./quests
+ add frontend image in docker compose development
2023-08-22 11:48:44 +08:00
wancat 34d5ace664 feat: use minimist to refactor cli 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 4efce2c6b8 fix: remove cors 2023-08-21 20:27:44 +08:00
wancat e122800c81 feat: add sessionManagerto connect session 2023-08-17 20:21:32 +08:00
wancat 7fa5ab5bc6 Create a pty cli, not useful 2023-08-17 19:45:18 +08:00
wancat a74233d7f9 feat: connect to localhost 2023-08-17 19:43:55 +08:00
Annie Huang 9b4335a628 changed WidgetTerminal to TerminalPart, add xterm attach but seemed not fit to use on http://localhost:3000 2023-08-17 19:43:55 +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 e2e585329f Create a pty cli, not useful 2023-08-08 20:38:27 +08:00
wancat 66cc1036b4 feat: use axios, extract api to another file 2023-08-01 20:54:49 +08:00
Chen, Tai-Lin 06220e6b30 import fontawesome api 2023-08-01 20:54:05 +08:00
wancat ec90c484b4 feat: add parameters and subcommand to client.js
- Added `"commander": "^11.0.0"` as a dependency in the `package.json` file
- Added an `import { program } from 'commander'` statement in the `client.js` file
- Modified the `createdSession` function in the `client.js` file to use `program.opts().host` instead of `API_ENDPOINT`
- Added a `getSessionList` function in the `client.js` file to fetch the list of sessions
- Added a `lastSession` function in the `client.js` file to get the last session from the session list
- Added a `connect` function in the `client.js` file to establish a socket connection
- Modified the `main` function in the `client.js` file to use `program.opts().session` instead of `process.argv[2]` to get the session ID
- Modified the `main` function in the `client.js` file to use `program.opts().host` instead of `API_ENDPOINT` to initialize the socket connection
- Added a `program` object with options and actions in the `client.js` file
- Added `.bash_history` to the `.gitignore` file
- Added `.viminfo` to the `.gitignore` file
- Added `*.swp` to the `.gitignore` file

Signed-off-by: wancat <wancat@wancat.cc>
2023-07-31 15:42:58 +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 b2173d180d Read all quest data in the folder 2023-07-19 20:01:14 +08:00