feat: drag and drop for files, code redactor in task + competition session decomposed

This commit is contained in:
rngsurrounded
2025-03-01 22:52:51 +09:00
parent c79b3df909
commit 758d0de9ed
17 changed files with 784 additions and 132 deletions
+49 -8
View File
@@ -53,14 +53,55 @@ const mockCompetitions: Competition[] = [
];
const mockTasks: Task[] = [
{ id: "1", number: "1.1", status: "uncleared" },
{ id: "2", number: "1.2", status: "checking" },
{ id: "3", number: "1.3", status: "correct" },
{ id: "4", number: "2.1", status: "partial" },
{ id: "5", number: "2.2", status: "wrong" },
{ id: "6", number: "2.3", status: "uncleared" },
{ id: "7", number: "3.1", status: "checking" },
{ id: "8", number: "3.2", status: "correct" },
{
id: "1",
number: "1.1",
status: "uncleared",
solutionType: "input"
},
{
id: "2",
number: "1.2",
status: "checking",
solutionType: "file"
},
{
id: "3",
number: "1.3",
status: "correct",
solutionType: "code"
},
{
id: "4",
number: "2.1",
status: "partial",
solutionType: "input"
},
{
id: "5",
number: "2.2",
status: "wrong",
solutionType: "file"
},
{
id: "6",
number: "2.3",
status: "uncleared",
solutionType: "code"
},
{
id: "7",
number: "3.1",
status: "checking",
solutionType: "file"
},
{
id: "8",
number: "3.2",
status: "correct",
solutionType: "input"
},
];
export { mockCompetitions, mockTasks };
+2
View File
@@ -14,11 +14,13 @@ interface Competition {
}
type TaskStatus = "uncleared" | "checking" | "correct" | "partial" | "wrong";
type SolutionType = "input" | "file" | "code";
interface Task {
id: string;
number: string;
status: TaskStatus;
solutionType: SolutionType;
}
export { CompetitionStatus };