-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
1,944 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const baseURL = 'http://localhost:5000/' | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
import { SubjectClass } from "@/types/subject"; | ||
|
||
export const mockSubjectClasses: SubjectClass[] = [ | ||
{ | ||
id: 'INT3209 1', | ||
lessonStart: 1, | ||
lessonEnd: 3, | ||
group: 'CL', | ||
name: 'Khai phá dữ liệu', | ||
place: '309-GĐ2', | ||
credits: 3, | ||
teacherName: 'Hà Quang Thuỵ', | ||
weekDay: 2, | ||
numberOfStudents: 100, | ||
highlightColor: '#EFEF98', | ||
}, | ||
{ | ||
id: 'INT3401 4', | ||
lessonStart: 7, | ||
lessonEnd: 9, | ||
group: 'CL', | ||
name: 'Trí tuệ nhân tạo', | ||
place: '206-GĐ3', | ||
credits: 3, | ||
teacherName: 'Nguyễn Thanh Thuỷ', | ||
weekDay: 2, | ||
numberOfStudents: 100, | ||
highlightColor: '#F5A56D', | ||
description: 'Thầy dạy hay vcl' | ||
}, | ||
{ | ||
id: 'INT3306 3', | ||
lessonStart: 10, | ||
lessonEnd: 11, | ||
group: 'CL', | ||
name: 'Web', | ||
place: '206-GĐ3', | ||
credits: 3, | ||
teacherName: 'Hoàng Xuân Tùng', | ||
weekDay: 2, | ||
numberOfStudents: 50, | ||
highlightColor: '#CC66FF', | ||
}, | ||
{ | ||
id: 'PES1075 4', | ||
lessonStart: 3, | ||
lessonEnd: 4, | ||
group: 'CL', | ||
name: 'Bóng chuyền hơi', | ||
place: 'SVĐ ĐHNN', | ||
credits: 2, | ||
teacherName: 'Giảng viên GDTC', | ||
weekDay: 3, | ||
numberOfStudents: 50, | ||
highlightColor: '#F7CECE', | ||
}, | ||
{ | ||
id: 'INT3403 1', | ||
lessonStart: 11, | ||
lessonEnd: 12, | ||
group: '1', | ||
name: 'Đồ hoạ máy tính', | ||
place: 'PM501-E5', | ||
credits: 3, | ||
teacherName: 'Ma Thị Châu', | ||
weekDay: 3, | ||
numberOfStudents: 50, | ||
highlightColor: '#8BEFB8', | ||
}, | ||
{ | ||
id: 'PHI1002 2', | ||
lessonStart: 3, | ||
lessonEnd: 4, | ||
group: 'CL', | ||
name: 'Chủ nghĩa xã hội khoa học', | ||
place: '308-GĐ2', | ||
credits: 2, | ||
teacherName: 'Nguyễn Thị Lan', | ||
weekDay: 4, | ||
numberOfStudents: 50, | ||
highlightColor: '#9BC2E6', | ||
}, | ||
{ | ||
id: 'INT3403 1', | ||
lessonStart: 7, | ||
lessonEnd: 8, | ||
group: 'CL', | ||
name: 'Đồ hoạ máy tính', | ||
place: '301-GĐ2', | ||
credits: 3, | ||
teacherName: 'Ma Thị Châu', | ||
weekDay: 4, | ||
numberOfStudents: 50, | ||
highlightColor: '#8BEFB8', | ||
}, | ||
{ | ||
id: 'INT3306 3', | ||
lessonStart: 9, | ||
lessonEnd: 10, | ||
group: '1', | ||
name: 'Web', | ||
place: 'PM208-G2', | ||
credits: 3, | ||
teacherName: '??', | ||
weekDay: 4, | ||
numberOfStudents: 50, | ||
highlightColor: '#CC66FF', | ||
}, | ||
{ | ||
id: 'MAT1101 4', | ||
lessonStart: 7, | ||
lessonEnd: 9, | ||
group: 'CL', | ||
name: 'Xác suất thống kê', | ||
place: '105-GĐ3', | ||
credits: 3, | ||
teacherName: 'Lê Sỹ Vinh', | ||
weekDay: 6, | ||
numberOfStudents: 50, | ||
highlightColor: '#BAAB7E', | ||
}, | ||
{ | ||
id: 'INT3111 1', | ||
lessonStart: 1, | ||
lessonEnd: 3, | ||
group: 'CL', | ||
name: 'Quản lý dự án phần mềm', | ||
place: '106-GĐ3', | ||
credits: 3, | ||
teacherName: 'Trần Hoàng Việt', | ||
weekDay: 7, | ||
numberOfStudents: 50, | ||
highlightColor: '#F2EBE6', | ||
}, | ||
{ | ||
id: 'INT3514 2', | ||
lessonStart: 5, | ||
lessonEnd: 6, | ||
group: 'CL', | ||
name: 'Pháp luật và đạo đức trong CNTT', | ||
place: '105-GĐ3', | ||
credits: 2, | ||
teacherName: 'Trần Văn Luân', | ||
weekDay: 7, | ||
numberOfStudents: 50, | ||
highlightColor: '#B7C8D4', | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Schedule from "@/components/common/Schedule/Schedule"; | ||
import { ScheduleInfo } from "@/types/schedule"; | ||
import { mockSubjectClasses } from "./mocks/subject"; | ||
import { THEME } from "@/styles/theme"; | ||
|
||
export function getScheduleInfo(shouldDispatch: boolean = true): ScheduleInfo { | ||
let scheduleInfo: ScheduleInfo = { | ||
subjectClassData: mockSubjectClasses, | ||
scheduleStyle: { | ||
hasBorder: false, | ||
roundedBorder: true, | ||
lessonColumnColor: "#FEF2CB", | ||
timeColumnColor: "#FFD965", | ||
headerRowColor: THEME.PRIMARY_COLOR, | ||
dividerRowColor: "#262626", | ||
hasDivider: true, | ||
displayColumnSettings: false, | ||
} | ||
} | ||
|
||
return scheduleInfo; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SubjectClass } from "@/types/subject"; | ||
import { mockSubjectClasses } from "./mocks/subject" | ||
|
||
export function getSubjectClasses(): SubjectClass[] { | ||
return mockSubjectClasses; | ||
} | ||
|
7 changes: 7 additions & 0 deletions
7
app/(dashboard)/schedule/(subject)/[subjectIdAndGroup]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function page() { | ||
return ( | ||
<div>page</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function page() { | ||
return ( | ||
<div>page</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function page() { | ||
return ( | ||
<div>page</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.