mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-13 05:05:41 +08:00
feat(classroom): rebuild curriculum and mastery assessment
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export interface LessonProgress {
|
||||
best: number
|
||||
done: boolean
|
||||
assessmentVersion?: number
|
||||
successfulVariants?: number
|
||||
}
|
||||
|
||||
export type LearnProgress = Record<string, Record<string, LessonProgress>>
|
||||
@@ -14,12 +16,17 @@ export interface LearnConfig {
|
||||
}
|
||||
|
||||
export interface LearnState {
|
||||
/** Legacy compatibility only. Classroom no longer awards or displays XP. */
|
||||
xp: number
|
||||
progress: LearnProgress
|
||||
config: LearnConfig
|
||||
/** Legacy compatibility only. All Classroom modules are now available. */
|
||||
unlockedModules: string[]
|
||||
}
|
||||
|
||||
export const CLASSROOM_ASSESSMENT_VERSION = 2
|
||||
export const CLASSROOM_VARIANTS_FOR_MASTERY = 2
|
||||
|
||||
export const LEARN_CONFIG_DEFAULTS: LearnConfig = {
|
||||
tts: false,
|
||||
radioLevel: 5,
|
||||
|
||||
Reference in New Issue
Block a user