Forgot to stage it

This commit is contained in:
Carlos-Mesquita
2024-11-09 06:53:17 +00:00
parent 50481a836e
commit c507eae507
12 changed files with 887 additions and 189 deletions

View File

@@ -29,6 +29,11 @@ const defaultSettings = (module: Module) => {
isAudioContextOpen: false,
isAudioGenerationOpen: false,
}
case 'speaking':
return {
...baseSettings,
isGenerateAudio: false
}
default:
return baseSettings;
}

View File

@@ -11,6 +11,7 @@ const useExamEditorStore = create<
title: "",
globalEdit: [],
currentModule: "reading",
speakingAvatars: [],
modules: {
reading: defaultModuleSettings("reading", 60),
writing: defaultModuleSettings("writing", 60),

View File

@@ -22,6 +22,7 @@ export interface SectionSettings {
export interface SpeakingSectionSettings extends SectionSettings {
secondTopic?: string;
isGenerateAudio: boolean;
}
export interface ReadingSectionSettings extends SectionSettings {
@@ -62,9 +63,15 @@ export interface ModuleState {
edit: number[];
}
export interface Avatar {
name: string;
gender: string;
}
export default interface ExamEditorStore {
title: string;
currentModule: Module;
speakingAvatars: Avatar[];
modules: {
[K in Module]: ModuleState
};