Training update, most of the styles in the old tips were standardized, before all the styles were hardcoded into the tip, the new tips may still have some hardcoded styles but the vast majority only uses standard html or custom ones that are picked up in FormatTip to attribute styles
This commit is contained in:
@@ -29,7 +29,7 @@ export interface ITrainingTip {
|
||||
standalone: boolean;
|
||||
exercise?: {
|
||||
question: string;
|
||||
highlightable: string;
|
||||
additional?: string;
|
||||
segments: WalkthroughConfigs[]
|
||||
}
|
||||
}
|
||||
@@ -38,16 +38,31 @@ export interface WalkthroughConfigs {
|
||||
html: string;
|
||||
wordDelay: number;
|
||||
holdDelay: number;
|
||||
highlight: string[];
|
||||
highlight?: HighlightConfig[];
|
||||
insertHTML?: InsertHtmlConfig[];
|
||||
}
|
||||
|
||||
export type HighlightTarget = 'question' | 'additional' | 'segment' | 'all';
|
||||
|
||||
export interface HighlightConfig {
|
||||
targets: HighlightTarget[];
|
||||
phrases: string[];
|
||||
}
|
||||
|
||||
export interface InsertHtmlConfig {
|
||||
target: 'question' | 'additional' | 'segment';
|
||||
targetId: string;
|
||||
html: string;
|
||||
position: 'append' | 'prepend' | 'replace';
|
||||
}
|
||||
|
||||
|
||||
export interface TimelineEvent {
|
||||
type: 'text' | 'highlight';
|
||||
type: 'text' | 'highlight' | 'insert';
|
||||
start: number;
|
||||
end: number;
|
||||
segmentIndex: number;
|
||||
content?: string[];
|
||||
content?: HighlightConfig[] | InsertHtmlConfig[];
|
||||
}
|
||||
|
||||
export interface SegmentRef extends WalkthroughConfigs {
|
||||
|
||||
Reference in New Issue
Block a user