feat(dashboard): disponibilidad por piso, métricas reales, auditoría y UI/UX v3.8.17
This commit is contained in:
+9
-10
@@ -86,9 +86,9 @@ const env = nunjucks.configure(path.join(__dirname, '../views'), {
|
||||
});
|
||||
|
||||
// Versiones institucionales del sistema
|
||||
const APP_VERSION = '3.8.16';
|
||||
const FRONTEND_VERSION = '3.8.16';
|
||||
const BACKEND_VERSION = '3.8.16';
|
||||
const APP_VERSION = '3.8.17';
|
||||
const FRONTEND_VERSION = '3.8.17';
|
||||
const BACKEND_VERSION = '3.8.17';
|
||||
|
||||
env.addGlobal('app_version', APP_VERSION);
|
||||
env.addGlobal('frontend_version', FRONTEND_VERSION);
|
||||
@@ -418,16 +418,15 @@ app.post(['/api/user/theme', '/theme'], async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
// Proxy transparente de peticiones /api a Flask
|
||||
// Proxy transparente de peticiones /api a FastAPI
|
||||
app.use('/api', async (req, res) => {
|
||||
// Si es dashboard-stats mock directo
|
||||
// Si es dashboard-stats
|
||||
if (req.path === '/dashboard-stats') {
|
||||
return res.json({
|
||||
monthly_data: [
|
||||
{ month: 'Ene', reservations: 120 }, { month: 'Feb', reservations: 180 }, { month: 'Mar', reservations: 250 },
|
||||
{ month: 'Abr', reservations: 220 }, { month: 'May', reservations: 300 }, { month: 'Jun', reservations: 310 },
|
||||
{ month: 'Jul', reservations: 200 }, { month: 'Ago', reservations: 350 }, { month: 'Sep', reservations: 420 },
|
||||
{ month: 'Oct', reservations: 480 }, { month: 'Nov', reservations: 520 }, { month: 'Dic', reservations: 210 }
|
||||
status: 'success',
|
||||
floor_data: [
|
||||
{ floor: 'Piso 2', total: 1, available: 1, occupied: 0 },
|
||||
{ floor: 'Piso 3', total: 2, available: 2, occupied: 0 }
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user