Refactor PVC models and update tests

- Updated the PVC models in the database and adjusted the tests accordingly to reflect the new model counts and codes.
- Removed deprecated models from the JSON data for PVC systems.
- Added new GLB models for "scorrevole_sf_3_ante" and "scorrevole_sf_4_ante".
- Enhanced the development scripts to streamline the build process for both frontends.
- Updated documentation to reflect changes in the development environment and deployment process.
- Improved the styling of texture radio options for better visibility.
- Fixed URL handling in the configurator to ensure proper routing and API calls.
This commit is contained in:
2026-10-20 18:40:59 +02:00
parent b6a32edfe6
commit 0dfda3a338
33 changed files with 339 additions and 366 deletions
+9 -7
View File
@@ -1,11 +1,13 @@
#!/bin/bash
# Compila i due frontend dentro backoffice/public, da cui li serve Laravel:
# configuratore 3D -> backoffice/public/configuratore (URL /configuratore/)
# app cliente -> backoffice/public/preventivo (URL /preventivo/)
set -euo pipefail
if [ ! -f .env.production ]; then
echo "Errore: .env.production non trovato." >&2
echo "Copia .env.production.example in .env.production e imposta l'URL reale dell'API prima del deploy." >&2
exit 1
fi
ROOT="$(cd "$(dirname "$0")" && pwd)"
rm -rf kreios kreios.zip
npm run build && mv dist kreios && zip -r kreios.zip kreios
[ -d "$ROOT/node_modules" ] || (cd "$ROOT" && pnpm install)
[ -d "$ROOT/backoffice/cliente/node_modules" ] || (cd "$ROOT/backoffice/cliente" && pnpm install)
(cd "$ROOT" && pnpm build)
(cd "$ROOT/backoffice/cliente" && pnpm build)