This commit is contained in:
zyronon
2025-09-13 19:56:02 +08:00
parent 02e056a0c2
commit fdd872090c
20 changed files with 5518 additions and 4426 deletions

View File

@@ -44,6 +44,7 @@ export function getDefaultArticle(val: Partial<Article> = {}): Article {
textAllWords: [],
sections: [],
audioSrc: '',
audioFileId: '',
lrcPosition: [],
questions: [],
...cloneDeep(val)

View File

@@ -2,7 +2,7 @@ declare global {
interface Console {
parse(v: any): void
json(v: any, space: number): void
json(v: any, space: number): string
}
interface Window {

View File

@@ -55,7 +55,7 @@ export interface ArticleWord extends Word {
nextSpace: boolean,
isSymbol: boolean,
symbolPosition: 'start' | 'end' | '',
input:string
input: string
}
export interface Sentence {
@@ -75,6 +75,7 @@ export interface Article {
textAllWords: string[],
sections: Sentence[][],
audioSrc: string,
audioFileId: string,
lrcPosition: number[][],
questions: {
stem: string,