Refactor PK page and add Trellis setup

This commit is contained in:
2026-06-30 21:03:33 +08:00
parent 908bad097c
commit 1d566bd3c0
119 changed files with 17053 additions and 538 deletions
+32
View File
@@ -0,0 +1,32 @@
export type Team = "red" | "blue";
export type AnswerState = "idle" | "correct" | "wrong";
export type Grade = "小班" | "中班" | "大班";
export type ClassType = {
id: number;
name: string;
enabled: boolean;
};
export type WordItem = {
id: number;
grade: Grade;
classTypeId: number;
classTypeName: string;
english: string;
chinese: string;
image: string;
audio: string;
enabled: boolean;
};
export type AppSettings = {
ttsVoice: string;
ttsRate: string;
scorePerCorrect: number;
scorePerWrong: number;
autoSpeak: boolean;
wordDisplayMode: "uppercase" | "capitalize" | "input";
pkWordCount: number;
pkOptionCount: number;
};