Implemented the Writing exercise's solution display
This commit is contained in:
@@ -69,13 +69,23 @@ export type Exercise =
|
||||
| WritingExercise
|
||||
| SpeakingExercise;
|
||||
|
||||
export interface WritingEvaluation {
|
||||
comment: string;
|
||||
overall: number;
|
||||
task_response: {[key: string]: number};
|
||||
}
|
||||
|
||||
export interface WritingExercise {
|
||||
id: string;
|
||||
type: "writing";
|
||||
info: string; //* The information about the task, like the amount of time they should spend on it
|
||||
prompt: string; //* The context given to the user containing what they should write about
|
||||
wordCounter: WordCounter; //* The minimum or maximum amount of words that should be written
|
||||
attachment?: string; //* The url for an image to work as an attachment to show the user
|
||||
attachment?: {
|
||||
url: string;
|
||||
description: string;
|
||||
}; //* The url for an image to work as an attachment to show the user
|
||||
evaluation?: WritingEvaluation;
|
||||
userSolutions: {
|
||||
id: string;
|
||||
solution: string;
|
||||
|
||||
Reference in New Issue
Block a user