mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: drop array-style problem content (#882)
This commit is contained in:
1 parent
23dfcbeeae
commit
6ae902d3ca
9 files changed
+120
-180
No files matched your search
@@ -221,26 +221,7 @@ export interface ProblemConfig {
|
||||
hackable?: boolean;
|
||||
}
|
||||
|
||||
export interface PlainContentNode {
|
||||
type: 'Plain',
|
||||
subType: 'html' | 'markdown',
|
||||
text: string,
|
||||
}
|
||||
export interface TextContentNode {
|
||||
type: 'Text',
|
||||
subType: 'html' | 'markdown',
|
||||
sectionTitle: string,
|
||||
text: string,
|
||||
}
|
||||
export interface SampleContentNode {
|
||||
type: 'Sample',
|
||||
text: string,
|
||||
sectionTitle: string,
|
||||
payload: [string, string],
|
||||
}
|
||||
// TODO drop contentNode support
|
||||
export type ContentNode = PlainContentNode | TextContentNode | SampleContentNode;
|
||||
export type Content = string | ContentNode[] | Record<string, ContentNode[]>;
|
||||
export type Content = string | Record<string, string>;
|
||||
|
||||
export interface Document {
|
||||
_id: ObjectId;
|
||||
|
||||
Reference in new issue
Block a user