- Adapted more of the design to be more responsive;
- Revamped some of the UserSolutions; - Transformed the homepage chart to use actual dynamic values; - Created an endpoint for the stats;
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import {Module} from ".";
|
||||
import {UserSolution} from "./exam";
|
||||
|
||||
export interface User {
|
||||
email: string;
|
||||
name: string;
|
||||
@@ -7,4 +10,16 @@ export interface User {
|
||||
type: Type;
|
||||
}
|
||||
|
||||
export interface Stat {
|
||||
user: string;
|
||||
exam: string;
|
||||
exercise: string;
|
||||
module: Module;
|
||||
solutions: any[];
|
||||
score: {
|
||||
correct: number;
|
||||
total: number;
|
||||
};
|
||||
}
|
||||
|
||||
export type Type = "student" | "teacher" | "admin" | "owner" | "developer";
|
||||
|
||||
Reference in New Issue
Block a user