From e48f8b775984ff3bfafbfb54780a531ad6bebd05 Mon Sep 17 00:00:00 2001 From: marsalva Date: Sun, 1 Mar 2026 12:16:00 +0000 Subject: [PATCH] Actualizar js/layout.js --- js/layout.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/layout.js b/js/layout.js index 068f644..935000c 100644 --- a/js/layout.js +++ b/js/layout.js @@ -1,5 +1,7 @@ // 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", () => { // 1. Verificar Token @@ -34,11 +36,13 @@ const menuItems = [ { name: "Dashboard", link: "panel.html", icon: "layout-dashboard" }, { name: "Servicios", link: "servicios.html", icon: "briefcase" }, { 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: "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: "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" }, ];