Created a simple "assignment" dashboard for teachers

This commit is contained in:
Tiago Ribeiro
2023-11-05 14:53:54 +00:00
parent 37baa11987
commit 40f095191a
9 changed files with 277 additions and 3 deletions

View File

@@ -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;
}