added pore routes to proxy
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
.barNavigation {
|
||||
text-align: center;
|
||||
justify-content: end;
|
||||
align-items: center;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
height: 45px;
|
||||
max-height: 40px;
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.barNavigation ul {
|
||||
@@ -31,9 +32,7 @@
|
||||
gap: 4px;
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
margin-right: 10px;
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
max-width: 45px;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
width: 100%;
|
||||
top: 0;
|
||||
height: 45px;
|
||||
max-height: 40px;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.barNavigation ul {
|
||||
@@ -31,9 +31,7 @@
|
||||
gap: 4px;
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
margin-right: 10px;
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
max-width: 45px;
|
||||
}
|
||||
@@ -163,7 +161,6 @@
|
||||
}
|
||||
|
||||
.barNavigation li:hover {
|
||||
background-color: #d59f0f;
|
||||
color: black;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
position: absolute;
|
||||
background-color: #003e79;
|
||||
height: 100%;
|
||||
min-width: 400px;
|
||||
min-width: 350px;
|
||||
transform: skew(45deg);
|
||||
z-index: 2;
|
||||
}
|
||||
@@ -72,7 +72,7 @@
|
||||
background-color: rgb(1, 92, 184);
|
||||
height: 100%;
|
||||
width: 10%;
|
||||
min-width: 400px;
|
||||
min-width: 350px;
|
||||
transform: skew(45deg);
|
||||
z-index: 2;
|
||||
}
|
||||
@@ -82,7 +82,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding-left: 80px;
|
||||
max-height: 50%;
|
||||
max-height: 60%;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,15 @@ import { usePathname } from "next/navigation";
|
||||
function Header() {
|
||||
const pathname = usePathname();
|
||||
|
||||
const publicNav = ["/escaner", "/agregarEquipo", "/editar", "/cambiarPass","/historial","/ranking"];
|
||||
const publicNav = [
|
||||
"/escaner",
|
||||
"/agregarEquipo",
|
||||
"/editar",
|
||||
"/cambiarPass",
|
||||
"/historial",
|
||||
"/ranking",
|
||||
];
|
||||
|
||||
const privateNav = ["/equipoComputo", "/crearCuenta", "/perifericos"];
|
||||
|
||||
return (
|
||||
|
||||
@@ -80,7 +80,7 @@ export const SO_POR_EQUIPO: Record<
|
||||
],
|
||||
/*"TABLETA iPAD OS"*/ 8: [
|
||||
{
|
||||
id_sistema_operativo: 20,
|
||||
id_sistema_operativo: 19,
|
||||
sistema_operativo: "IOS",
|
||||
},
|
||||
],
|
||||
|
||||
+5
-2
@@ -3,8 +3,8 @@ import type { NextRequest } from "next/server";
|
||||
import { jwtDecode } from "jwt-decode";
|
||||
|
||||
const permisos: Record<number, string[]> = {
|
||||
1: ["/crearCuenta", "/equipoComputo", "/perifericos","/escaner", "/agregarEquipo", "/editar"],
|
||||
2: ["/escaner", "/agregarEquipo", "/editar"],
|
||||
1: ["/crearCuenta", "/equipoComputo", "/perifericos","/escaner", "/agregarEquipo", "/editar","/historial","/ranking","/cambiarPass"],
|
||||
2: ["/escaner", "/agregarEquipo", "/editar","/historial","/ranking","/cambiarPass"],
|
||||
};
|
||||
|
||||
export function proxy(request: NextRequest) {
|
||||
@@ -41,6 +41,9 @@ export const config = {
|
||||
"/crearCuenta",
|
||||
"/equipoComputo",
|
||||
"/perifericos",
|
||||
"/ranking",
|
||||
"/historial",
|
||||
"/cambiarPass"
|
||||
],
|
||||
};
|
||||
//IO
|
||||
|
||||
Reference in New Issue
Block a user