How benitez1010/libreria-papelitos-frontend works
This is a Spanish-language inventory and administration web application for Librería Papelitos, built with React. Users sign in, enter a protected workspace, and navigate inventory, category, user, and access-management screens; inventory operators can record contextual stock movements, while the dashboard presents stock and replenishment views. Routing, permission checks, and the API endpoint configuration are useful internal layers. The README is only the Vite template and does not document product capabilities. Several page excerpts are partial, so unverified API interactions are shown as dashed links.
Main entry points: App.jsx Route application · api.js API endpoints · ListaProductos.jsx Product catalog · ProtectorRuta.jsx Permission guard
Components 24
Workspace and routing
- Route application
src/App.jsx - Main layout
src/layouts/MainLayout.jsx - Navigation sidebar
src/components/Sidebar.jsx
Authentication and access
- Sign in
src/pages/Login/Login.jsx - Session guard
src/components/RutaPrivada.jsx - Permission guard
src/components/ProtectorRuta.jsx - Inactivity control
src/components/ControlInactividad.jsx
Inventory operations
- Product catalog
src/pages/Productos/ListaProductos.jsx - Product registration
src/pages/Productos/RegistrarProductoModal.jsx - Product editing
src/pages/Productos/EditarProducto.jsx - Stock movements
src/pages/Productos/RegistrarMovimiento.jsx - Critical stock alert
src/components/AlertaStockCritico.jsx - Transaction viewer
src/components/BotonTransacciones.jsx - Data export
src/components/BotonExportar.jsx
Management and insights
- Category catalog
src/pages/Categorias/Categorias.jsx - Category registration
src/pages/Categorias/RegistrarCategoriaModal.jsx - Category editing
src/pages/Categorias/EditarCategoria.jsx - Stock dashboard
src/pages/Dashboard/Dashboard.jsx - User administration
src/pages/Usuarios/Usuarios.jsx - User role access
src/pages/Configuracion/UsuarioAcceso.jsx - Role editor
src/pages/Configuracion/AccesoRol.jsx
API integration
- API endpoints
src/services/api.js
Other components
- User
- Application backend
Connections 36
- User → Route application: uses
- Route application → Sign in: routes to
src/App.jsx - Route application → Session guard: protects routes
src/App.jsx - Route application → Main layout: renders
src/App.jsx - Route application → Inactivity control: wraps workspace
src/App.jsx - Route application → Permission guard: guards modules
src/App.jsx - Route application → Stock dashboard: routes to
src/App.jsx - Route application → Product catalog: routes to
src/App.jsx - Route application → Product editing: routes to
src/App.jsx - Route application → Stock movements: routes to
src/App.jsx - Route application → Category catalog: routes to
src/App.jsx - Route application → Category editing: routes to
src/App.jsx - Route application → User administration: routes to
src/App.jsx - Route application → User role access: routes to
src/App.jsx - Main layout → Navigation sidebar: renders
src/layouts/MainLayout.jsx - Category catalog → Category registration: renders
src/pages/Categorias/Categorias.jsx - Product catalog → Product registration: imports
src/pages/Productos/ListaProductos.jsx - Product catalog → Transaction viewer: imports
src/pages/Productos/ListaProductos.jsx - Product catalog → Data export: imports
src/pages/Productos/ListaProductos.jsx - Stock movements → Critical stock alert: imports
src/pages/Productos/RegistrarMovimiento.jsx - User role access → Role editor: uses
src/pages/Configuracion/UsuarioAcceso.jsx - Permission guard → API endpoints: reads endpoint
src/components/ProtectorRuta.jsx - Permission guard → Application backend: checks permissions
src/components/ProtectorRuta.jsx - Role editor → Application backend: updates role
src/pages/Configuracion/AccesoRol.jsx - Sign in → API endpoints: uses endpoints
src/pages/Login/Login.jsx - Product catalog → API endpoints: uses endpoints
src/pages/Productos/ListaProductos.jsx - Product registration → API endpoints: uses endpoints
src/pages/Productos/RegistrarProductoModal.jsx - Product editing → API endpoints: uses endpoints
src/pages/Productos/EditarProducto.jsx - Stock movements → API endpoints: uses endpoints
src/pages/Productos/RegistrarMovimiento.jsx - Category catalog → API endpoints: uses endpoints
src/pages/Categorias/Categorias.jsx - Category registration → API endpoints: uses endpoints
src/pages/Categorias/RegistrarCategoriaModal.jsx - Category editing → API endpoints: uses endpoints
src/pages/Categorias/EditarCategoria.jsx - Stock dashboard → API endpoints: uses endpoints
src/pages/Dashboard/Dashboard.jsx - User administration → API endpoints: uses endpoints
src/pages/Usuarios/Usuarios.jsx - User role access → API endpoints: uses endpoints
src/pages/Configuracion/UsuarioAcceso.jsx - API endpoints → Application backend: configures base URL