refactor: split classroomController.js into 7 domain files (phase 2 of 2)

1618-line monolith split into:
  classroom/_shared.js     — GUEST_EVENTS, emitToSession, hasAccess, canDraw
  classroom/sessions.js    — lifecycle + guest tokens (12 functions)
  classroom/strokes.js     — CRUD + cursor + preview (7 functions)
  classroom/pages.js       — page CRUD + theme (8 functions)
  classroom/chat.js        — messages, reactions, attachments, export (7 functions)
  classroom/permissions.js — draw, hand, mute, screen, attendance (11 functions)
  classroom/sim.js         — simulation relay (5 functions)
  classroom/admin.js       — history, notes, templates, admin views (14 functions)

classroomController.js is now a 9-line re-export facade.
routes/classroom.js unchanged. All 65 exports verified. Tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Maxim Dolgolyov
2026-05-06 17:30:37 +03:00
parent 0e2c3d2939
commit 977e46e75b
9 changed files with 1257 additions and 1616 deletions
File diff suppressed because it is too large Load Diff