console/frontend: remove "preview" command

This is not really needed. See
https://stackoverflow.com/questions/71703933/what-is-the-difference-between-vite-and-vite-preview

And document how to work on the frontend part more easily.
This commit is contained in:
Vincent Bernat
2025-05-19 13:49:02 +02:00
parent d97b346617
commit ddb4b4b06f
2 changed files with 5 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ Akvorado, then use `docker compose up` to run Docker compose. Beware to not
destroy the volume for GeoIP at each tentative as there is a per-day limit on destroy the volume for GeoIP at each tentative as there is a per-day limit on
the number of times one IP can fetch the GeoIP database. the number of times one IP can fetch the GeoIP database.
If you need to work on the frontend part, you can spawn the Docker compsoe
setup, then in `console/frontend`, use `npm run dev` and point your browser to
`http://localhost:5173` instead of `http://localhost:8080`. Any change of
frontend-related files should be applied immediately.
# Licensing # Licensing
The code is licensed under AGPL-3.0-only. When creating new files, be sure to The code is licensed under AGPL-3.0-only. When creating new files, be sure to

View File

@@ -7,7 +7,6 @@
"dev": "vite", "dev": "vite",
"build": "run-p type-check build-only", "build": "run-p type-check build-only",
"build-only": "vite build", "build-only": "vite build",
"preview": "vite preview",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint '{src/**/,}*.{js,ts,vue}'", "lint": "eslint '{src/**/,}*.{js,ts,vue}'",
"format": "prettier --log-level warn --write '{src/**/,}*.{ts,js,vue,html}'", "format": "prettier --log-level warn --write '{src/**/,}*.{ts,js,vue,html}'",