generated from Team-INSERT/Repository-generator-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Team-INSERT/feat/timetable
시간표 페이지 완성
- Loading branch information
Showing
15 changed files
with
334 additions
and
168 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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import { IClassInfo } from "@/interfaces"; | ||
|
||
const emptyClassInfo: IClassInfo = { | ||
className: "", | ||
endTime: "23:59:59", | ||
startTime: "00:00:00", | ||
type: "normal", | ||
isNow: false, | ||
period: "", | ||
subject: "", | ||
endTime: { | ||
hour: 0, | ||
minute: 0, | ||
}, | ||
startTime: { | ||
hour: 0, | ||
minute: 0, | ||
}, | ||
}; | ||
|
||
export default emptyClassInfo; |
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,12 @@ | ||
const getTimetableType = (type: string) => { | ||
switch (type) { | ||
case "bar": | ||
return "막대 형식"; | ||
case "table": | ||
return "표 형식"; | ||
default: | ||
return type; | ||
} | ||
}; | ||
|
||
export default getTimetableType; |
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
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
export default interface IClassInfo { | ||
className: string; | ||
endTime: string; | ||
startTime: string; | ||
type: string; | ||
isNow: boolean; | ||
period: string; | ||
subject: string; | ||
endTime: { | ||
hour: number; | ||
minute: number; | ||
}; | ||
startTime: { | ||
hour: number; | ||
minute: number; | ||
}; | ||
} |
Oops, something went wrong.