ee
This commit is contained in:
parent
d22f4d7578
commit
96a12939c8
@ -1,37 +1,43 @@
|
||||
export type Tag = {
|
||||
label: string;
|
||||
color: string;
|
||||
id_code: string;
|
||||
label: string;
|
||||
color: string;
|
||||
id_code: string;
|
||||
};
|
||||
|
||||
export type ExerciceShort = {
|
||||
id_code: string;
|
||||
name: string;
|
||||
consigne: string;
|
||||
pdfSupport: boolean;
|
||||
csvSupport: boolean;
|
||||
webSupport: boolean;
|
||||
tags: Array<Tag>;
|
||||
id_code: string;
|
||||
name: string;
|
||||
consigne: string;
|
||||
pdfSupport: boolean;
|
||||
csvSupport: boolean;
|
||||
webSupport: boolean;
|
||||
tags: Array<Tag>;
|
||||
|
||||
examples: { type: string; data: Array<{ calcul: string }> };
|
||||
examples: { type: string; data: Array<{ calcul: string }> };
|
||||
};
|
||||
|
||||
export type Author = {
|
||||
username: string
|
||||
}
|
||||
|
||||
export type Exercice = {
|
||||
id_code: string;
|
||||
name: string;
|
||||
consigne: string;
|
||||
pdfSupport: boolean;
|
||||
csvSupport: boolean;
|
||||
webSupport: boolean;
|
||||
tags: Array<Tag>;
|
||||
is_author: boolean;
|
||||
examples: { type: string; data: Array<{ calcul: string }> };
|
||||
private: boolean,
|
||||
exo_source_name: string
|
||||
author: Author,
|
||||
origin: {id_code: string} | null
|
||||
username: string;
|
||||
};
|
||||
|
||||
type supports = {
|
||||
pdf: boolean;
|
||||
csv: boolean;
|
||||
web: boolean;
|
||||
};
|
||||
export type Exercice = {
|
||||
id_code: string;
|
||||
name: string;
|
||||
consigne: string;
|
||||
supports: supports;
|
||||
tags: Array<Tag>;
|
||||
is_author: boolean;
|
||||
examples: {
|
||||
type: string;
|
||||
data: Array<{ calcul: string; correction: string }>;
|
||||
};
|
||||
private: boolean;
|
||||
exo_source_name: string;
|
||||
author: Author;
|
||||
origin: { id_code: string } | null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user