mirror of
https://github.com/dralkh/spaceforge.git
synced 2026-07-22 06:45:03 +00:00
| .. | ||
| interfaces.ts | ||
| README.md | ||
| review-batch-controller.ts | ||
| review-controller-core.ts | ||
| review-controller-mcq.ts | ||
| review-controller.ts | ||
| review-navigation-controller.ts | ||
| review-session-controller.ts | ||
Controllers Directory
This directory contains controller files that handle the business logic of the Spaceforge spaced repetition system.
Files
interfaces.ts- Contains interfaces for all controllersreview-controller.ts- Main controller that coordinates between specialized controllersreview-controller-core.ts- Handles core review functionalityreview-navigation-controller.ts- Manages navigation between notesreview-session-controller.ts- Handles session management and link analysisreview-batch-controller.ts- Manages batch review operationsreview-controller-mcq.ts- Manages the Multiple Choice Question (MCQ) functionality
Architecture
The controllers follow a modular architecture:
- The
ReviewControlleracts as a facade that delegates to specialized controllers - Each specialized controller has a specific responsibility
- Controllers communicate through the main plugin instance
- UI components in the
ui/directory interact with controllers through well-defined interfaces
This modular approach makes the codebase more maintainable and easier to extend.