8000 ✨feat: 💻client: assignments feature implemented · b-l-i-n-d/edTech@c00698c · GitHub 10000
[go: up one dir, main page]

Skip to content

Commit c00698c

Browse files
committed
✨feat: 💻client: assignments feature implemented
1 parent e55184a commit c00698c

File tree

8 files changed

+649
-11
lines changed

8 files changed

+649
-11
lines changed

client/interfaces/index.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,39 @@ export interface Options {
6060
isCorrect: boolean;
6161
}
6262

63+
export interface AssignmentsQueryParams {
64+
title?: string;
65+
videoId?: string;
66+
sortBy?: string;
67+
page?: number;
68+
limit?: number;
69+
}
70+
71+
export interface Assignments {
72+
results: Assignment[];
73+
totalResults: number;
74+
limit: number;
75+
page: number;
76+
totalPages: number;
77+
}
78+
79+
export interface Assignment {
80+
id: string;
81+
title: string;
82+
video: string | Video;
83+
description?: string;
84+
dueDate: string;
85+
totalMarks: number;
86+
}
87+
88+
export interface AssignmentParams {
89+
title: string;
90+
video: string;
91+
description?: string;
92+
dueDate: string;
93+
totalMarks: number;
94+
}
95+
6396
export type ModalType = "add" | "edit" | "show";
6497

6598
export interface DebounceSelectProps<ValueType = any>

client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
"dependencies": {
3636
"@ant-design/icons": "^5.1.3",
3737
"@reduxjs/toolkit": "^1.9.5",
38+
"dayjs": "^1.11.8",
3839
"next-redux-wrapper": "^8.1.0",
3940
"react-icons": "^4.9.0",
4041
"react-redux": "^8.0.5",
4142
"react-youtube": "^10.1.0",
4243
"redux-persist": "^6.0.0"
4344
}
44-
}
45+
}

0 commit comments

Comments
 (0)
0