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
-14
View File
@@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/jpeg" href="/kreios-logo.jpg" />
<title>Il tuo preventivo · Krèios</title>
<script type="module" crossorigin src="/assets/index-CmMOSSq4.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C_ir1rDB.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
+5 -2
View File
@@ -2,6 +2,9 @@
import { ref, reactive, computed, onMounted } from 'vue'
import { api, resolveToken, resolveReturnUrl, resolveClienteToken, clearToken, formatEuro } from './api.js'
// Servita sotto /preventivo/: i file di public/ vanno risolti rispetto alla base della build.
const logoUrl = `${import.meta.env.BASE_URL}kreios-logo.jpg`
const step = ref('cart') // cart | checkout | done
const loading = ref(true)
const submitting = ref(false)
@@ -158,7 +161,7 @@ onMounted(loadCarrello)
<template>
<header class="app-header">
<img src="/kreios-logo.jpg" alt="Krèios" />
<img :src="logoUrl" alt="Krèios" />
<h1>Il tuo preventivo</h1>
</header>
@@ -340,7 +343,7 @@ onMounted(loadCarrello)
<!-- STEP CONFERMA -->
<template v-else-if="step === 'done'">
<div class="card center">
<img class="done-logo" src="/kreios-logo.jpg" alt="Krèios" />
<img class="done-logo" :src="logoUrl" alt="Krèios" />
<div class="success-icon">✅</div>
<h2>Grazie!</h2>
<p>La tua richiesta di preventivo <b>n. {{ numeroConfermato }}</b> è stata inviata.</p>
+2 -1
View File
@@ -1,4 +1,5 @@
const BASE = import.meta.env.VITE_API_BASE || 'http://localhost:8000/api'
// L'app cliente è servita dal backend stesso (/preventivo/): l'API è sulla stessa origine.
const BASE = import.meta.env.VITE_API_BASE || `${window.location.origin}/api`
async function request(path, options = {}) {
const res = await fetch(`${BASE}${path}`, {
+6 -4
View File
@@ -3,9 +3,11 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
host: true,
port: 5199,
strictPort: true,
// L'app cliente è servita da Laravel sotto /preventivo/ (stessa origine dell'API):
// la build finisce direttamente in backoffice/public/preventivo.
base: '/preventivo/',
build: {
outDir: '../public/preventivo',
emptyOutDir: true,
},
})