How nunezyahir768-cloud/shark-dark works
SHARK DARK is a school portal for students, teachers, and administrators. Users sign in and enter role-specific screens for school records and services; teachers capture attendance and grades, while administrators maintain accounts, groups, classes, and schedules. The client also provides QR, conduct-report, tutorial, and offline capabilities. The excerpts show client-to-module calls and some server-side validation and storage; many API routes and the client’s network transport were not sampled, so those links are omitted or marked unverified.
Main entry points: App.jsx Portal shell · server.js Portal API · sd.js Client data layer · docente.jsx Teacher tools
Components 24
Portal client
- Portal shell
client/src/App.jsx - Sign-in
client/src/Login.jsx - Shared UI
client/src/ui.jsx - Client data layer
client/src/sd.js
School workflows
- Student pages
client/src/paginas.jsx - Teacher tools
client/src/docente.jsx - Attendance rules
client/src/asistencia-reglas.js - Period management
client/src/Periodos.jsx - Conduct reports
client/src/ReportesConducta.jsx - Student QR
client/src/QRAlumno.jsx - Interactive tutorial
client/src/TutorialInteractivo.jsx - Spreadsheet tools
client/src/excel.js
Administration
- Admin services
client/src/servicios.jsx - Account imports
client/src/importar-cuentas.js - Schedule imports
client/src/importar-horarios.js - Import parser
client/src/importar-parser.js
Server and offline
- Portal API
server.js - Offline client
client/src/offline.js - Offline tickets
offline-auth.js - Admin authentication
admin-auth.js - School access rules
acceso-escolar.js - Period rules
periodos-reglas.js
Other components
- School user
- MongoDB Atlas
Connections 31
- School user → Portal shell: opens portal
client/src/App.jsx - Portal shell → Sign-in: shows sign-in
client/src/App.jsx - Portal shell → Student pages: routes to
client/src/App.jsx - Portal shell → Teacher tools: routes to
client/src/App.jsx - Portal shell → Admin services: routes to
client/src/App.jsx - Portal shell → Shared UI: uses contexts
client/src/App.jsx - Portal shell → Client data layer: loads data
client/src/App.jsx - Portal shell → Period management: renders
client/src/App.jsx - Portal shell → Conduct reports: renders
client/src/App.jsx - Portal shell → Student QR: renders
client/src/App.jsx - Portal shell → Interactive tutorial: renders
client/src/App.jsx - Sign-in → Client data layer: authenticates via
client/src/Login.jsx - Student pages → Shared UI: uses components
client/src/paginas.jsx - Student pages → Attendance rules: uses rules
client/src/paginas.jsx - Teacher tools → Attendance rules: uses rules
client/src/docente.jsx - Teacher tools → Spreadsheet tools: exports data
client/src/docente.jsx - Teacher tools → Shared UI: uses components
client/src/docente.jsx - Shared UI → Client data layer: loads cached data
client/src/ui.jsx - Admin services → Client data layer: loads records
client/src/servicios.jsx - Admin services → Account imports: uses imports
client/src/servicios.jsx - Admin services → Schedule imports: uses imports
client/src/servicios.jsx - Account imports → Import parser: parses imports
- Schedule imports → Import parser: parses imports
- Client data layer → Offline client: uses encryption
client/src/sd.js - Client data layer → Portal API: requests API
- Portal API → MongoDB Atlas: reads and writes
server.js - Portal API → Offline tickets: creates tickets
server.js - Portal API → Admin authentication: checks admin access
server.js - Portal API → School access rules: checks school access
server.js - Portal API → Attendance rules: validates attendance
server.js - Portal API → Period rules: uses period rules
server.js