From 6b687a8be2eb56ebbb1dcbdc6890236f274d40e3 Mon Sep 17 00:00:00 2001 From: frcarlos <307100636@pcpuma.acatlan.unam.mx> Date: Wed, 25 Feb 2026 20:22:19 -0500 Subject: [PATCH] new view is create Periodo --- app/(private)/Periodo/page.tsx | 39 ++++++++++++++++++++++++++++++++++ proxy.ts | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 app/(private)/Periodo/page.tsx diff --git a/app/(private)/Periodo/page.tsx b/app/(private)/Periodo/page.tsx new file mode 100644 index 0000000..887a3a1 --- /dev/null +++ b/app/(private)/Periodo/page.tsx @@ -0,0 +1,39 @@ +"use client"; + +import { useState } from "react"; + +export default function PeriodoPage() { + const [periodos] = useState([ + { id: 1, nombre: "2024-2", activo: true }, + { id: 2, nombre: "2025-1", activo: false }, + { id: 3, nombre: "2025-2", activo: false }, + { id: 4, nombre: "2026-1", activo: true }, + { id: 5, nombre: "2026-2", activo: false }, + { id: 6, nombre: "2027-1", activo: false }, + ]); + + return ( +
+

PERIODO ESCOLAR

+ + + + + + + + + + + {periodos.map((p) => ( + + + + + + ))} + +
IDPeriodoActivo
{p.id}{p.nombre}{p.activo ? "Sí" : "No"}
+
+ ); +} \ No newline at end of file diff --git a/proxy.ts b/proxy.ts index 36cf5db..66a5657 100644 --- a/proxy.ts +++ b/proxy.ts @@ -41,6 +41,7 @@ export async function proxy(request: NextRequest) { "/AsignacionEquipo", "/Monitor", "/ActivosMantenimiento", + "/Periodo", ]; if (role === 5 && !onlyImpresiones.includes(pathname)) { @@ -66,6 +67,7 @@ export const config = { matcher: [ "/", "/Reportes", + "/Periodo", "/Monitor", "/QuitarSancion", "/Programas",