From 602c5dbb31e32d5d6f692a6222c96ddffc99c9b8 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Mon, 25 Aug 2025 15:07:09 -0600 Subject: [PATCH] feat: update API endpoints to use production URL and enhance UI components in authenticated routes --- src/lib/api.ts | 2 +- src/routes/_authenticated.tsx | 24 +++++++--------- src/routes/_authenticated/archivos.tsx | 2 +- .../asignatura/$asignaturaId.tsx | 2 +- src/routes/_authenticated/plan/$planId.tsx | 28 +++++++++---------- 5 files changed, 27 insertions(+), 31 deletions(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 2983361..ed76dce 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -1,7 +1,7 @@ // api.ts const API_BASE = (import.meta.env.VITE_API_BASE?.replace(/\/$/, "")) || - "http://localhost:3001"; // 👈 tu Bun.serve real + "https://genesis-engine.apps.lci.ulsa.mx"; // 👈 tu Bun.serve real export async function postAPI(path: string, body: any): Promise { const url = `${API_BASE}${path}`; diff --git a/src/routes/_authenticated.tsx b/src/routes/_authenticated.tsx index 5bdf818..70b436f 100644 --- a/src/routes/_authenticated.tsx +++ b/src/routes/_authenticated.tsx @@ -13,7 +13,7 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" -import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet" +import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet" import { ModeToggle } from "@/components/mode-toggle" import { Menu, @@ -94,17 +94,17 @@ function Layout() { - { }} /> + + Menú de Navegación + { }} /> {/* Brand */} - U -
- La Salle · Ingeniería - Génesis -
+ + + {/* Search */} @@ -154,13 +154,7 @@ function Sidebar({ onNavigate }: { onNavigate?: () => void }) { return (
-
- U -
- La Salle · Ingeniería -
Génesis
-
-
+