Actualizar js/layout.js

This commit is contained in:
2026-03-01 12:16:00 +00:00
parent 24941df195
commit e48f8b7759

View File

@@ -1,5 +1,7 @@
// CONFIGURACIÓN GLOBAL // CONFIGURACIÓN GLOBAL
const API_URL = "https://integrarepara-api.integrarepara.es"; const API_URL = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
? 'http://localhost:3000'
: 'https://integrarepara-api.integrarepara.es';
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
// 1. Verificar Token // 1. Verificar Token
@@ -34,11 +36,13 @@ const menuItems = [
{ name: "Dashboard", link: "panel.html", icon: "layout-dashboard" }, { name: "Dashboard", link: "panel.html", icon: "layout-dashboard" },
{ name: "Servicios", link: "servicios.html", icon: "briefcase" }, { name: "Servicios", link: "servicios.html", icon: "briefcase" },
{ name: "Citas / Bloqueos", link: "agenda.html", icon: "calendar-clock" }, { name: "Citas / Bloqueos", link: "agenda.html", icon: "calendar-clock" },
{ name: "Proveedores", link: "proveedores.html", icon: "building-2" }, // Nuevo nombre para el buzón actual { name: "Proveedores", link: "proveedores.html", icon: "building-2" },
{ name: "Calendario", link: "calendario.html", icon: "calendar" }, { name: "Calendario", link: "calendario.html", icon: "calendar" },
{ name: "Clientes", link: "clientes.html", icon: "users" }, { name: "Clientes", link: "clientes.html", icon: "users" },
{ name: "Contabilidad", link: "contabilidad.html", icon: "wallet" }, // <-- NUEVO PANEL FINANCIERO
{ name: "Trazabilidad", link: "trazabilidad.html", icon: "activity" }, // <-- HISTORIAL DE LOGS
{ name: "Usuarios", link: "usuarios.html", icon: "user-cog" }, { name: "Usuarios", link: "usuarios.html", icon: "user-cog" },
{ name: "Automatizaciones", link: "automatizaciones.html", icon: "zap" }, // Queda libre para lo nuevo { name: "Automatizaciones", link: "automatizaciones.html", icon: "zap" },
{ name: "Configuración", link: "configuracion.html", icon: "settings" }, { name: "Configuración", link: "configuracion.html", icon: "settings" },
]; ];