feat: Agregar modulo de Sistema (mongosh, logs, export/import)

This commit is contained in:
2026-08-12 03:17:28 +00:00
parent e038c25e9e
commit 205c8f1c7c
6 changed files with 450 additions and 3 deletions
+11
View File
@@ -14,6 +14,7 @@ import { EditIngreso } from '@/sections/EditIngreso';
import { Login } from '@/sections/Login';
import { GestionUsuarios } from '@/sections/GestionUsuarios';
import { PendientesSala } from '@/sections/PendientesSala';
import { SeccionSistema } from '@/sections/SeccionSistema';
import { Spinner } from '@/components/ui/spinner';
import { Button } from '@/components/ui/button';
import { ThemeProvider } from "@/components/theme-provider";
@@ -306,6 +307,16 @@ function AppContent() {
return (
<GestionUsuarios />
);
case 'sistema':
if (store.currentUser?.rol !== 'admin') {
return (
<div className="p-8 text-center text-red-500 font-semibold">
<p>No tiene permisos para acceder a esta sección.</p>
<Button className="mt-4" onClick={() => store.setVista('dashboard')}>Volver al Dashboard</Button>
</div>
);
}
return <SeccionSistema />;
default:
return null;
}