Created a simple "assignment" dashboard for teachers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {Module} from "@/interfaces";
|
||||
import {Stat} from "./user";
|
||||
|
||||
export type UserResults = {[key in Module]: ModuleResult};
|
||||
|
||||
@@ -7,3 +8,18 @@ interface ModuleResult {
|
||||
score: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface Assignment {
|
||||
id: string;
|
||||
name: string;
|
||||
assigner: string;
|
||||
assignees: string[];
|
||||
results: {
|
||||
user: string;
|
||||
type: "academic" | "general";
|
||||
stats: Stat[];
|
||||
}[];
|
||||
exams: {id: string; module: Module}[];
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user