290825-0209

This commit is contained in:
2025-08-29 05:09:44 +00:00
parent 44d1adecdc
commit 57dbd5b1fa
10 changed files with 1284 additions and 83 deletions
@@ -19,4 +19,19 @@
.badge-estado-cerrada { border-color:#6c757d; color:#6c757d; }
.badge-estado-anulada { border-color:#dc3545; color:#dc3545; }
.badge-estado-pagada { border-color:#146c43; color:#146c43; }
/* Evita crecimiento infinito de los charts */
.chart-box {
position: relative;
height: 260px; /* altura fija base */
}
@media (min-width: 992px) {
.chart-box { height: 320px; } /* un poquito más grande en desktop */
}
.chart-box > canvas {
position: absolute;
inset: 0;
width: 100% !important;
height: 100% !important; /* ocupa todo el alto del contenedor */
}
</style>
@@ -14,6 +14,13 @@
// Map de opciones por página. Usa body[data-page] o window.scPageId.
const SC_SIDEBAR_ITEMS = {
// === ejemplos ===
"dashboard": [
{ text: "Ver reportes", href: "/reportes" },
{ text: "Actualizar", href: "#", attr: { "data-action": "refresh-list" } },
{ text: "Exportar (CSV)", href: "#", attr: { "data-action": "export-csv" } },
{ text: "Nueva comanda", href: "/comandas" },
{ text: "Ir a Estado", href: "/estadoComandas" }
],
"estadoComandas": [
{ text: " Nueva comanda", href: "/comandas" },
{ text: "Solo abiertas", href: "#", attr: { "data-action": "toggle-abiertas" } },