tree: 8261066b54a0970b396c5c9e66ee2ac33c040bad [path history] [tgz]
  1. public/
  2. src/
  3. tools/
  4. .browserslistrc
  5. .editorconfig
  6. .env.example
  7. .gitignore
  8. .licenserc.yaml
  9. .prettierignore
  10. babel.config.js
  11. embed.go
  12. index.html
  13. jsconfig.json
  14. LICENSE
  15. LICENSE.tpl
  16. Makefile
  17. package-lock.json
  18. package.json
  19. prettier.config.js
  20. README.md
  21. vite.config.mjs
ui/README.md

ui

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Setting up Environment Variables

First, you need to copy .env.example as .env.development.local. The environment variables explanation is as follows:

  1. VITE_API_PROXY is to enable proxy to a API backend.
  2. VITE_MONITOR_PROXY is to enable proxy to a monintor backend.

Example .env.development.local is as the following:

VITE_API_PROXY=http://127.0.0.1:17913
VITE_MONITOR_PROXY=http://127.0.0.1:2121

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Keep consistent style by parsing code

npm run format

Compile and Minify for Production

npm run build