-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
타임서비스 이름 변경 및 타임테이블 모달 내부 요소 추가
- Loading branch information
Showing
12 changed files
with
318 additions
and
85 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,3 +1,8 @@ | ||
const GRADE = ['1학년', '2학년', '3학년', '4학년', '5학년', '6학년'] as const; | ||
|
||
export default GRADE; | ||
export const GRADE = [ | ||
'1학년', | ||
'2학년', | ||
'3학년', | ||
'4학년', | ||
'5학년', | ||
'6학년', | ||
] as const; |
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,2 +1,4 @@ | ||
export * from './period'; | ||
export { default as GRADE } from './grade'; | ||
export * from './grade'; | ||
export * from './region'; | ||
export * from './lecture'; |
14 changes: 14 additions & 0 deletions
14
apps/time/src/widgets/time-table/model/constants/lecture.ts
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,14 @@ | ||
import { LectureKey, LectureValue } from '@/widgets/time-table'; | ||
|
||
export const LECTURE = { | ||
CULTURE: '교양', | ||
MAJOR: '전공', | ||
TEACHING: '교직이수', | ||
ROTC: 'ROTC', | ||
LINKEDFUSION: '연계융합', | ||
} as const; | ||
|
||
export const LECTURE_ARRAY = Object.entries(LECTURE) as [ | ||
LectureKey, | ||
LectureValue, | ||
][]; |
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,6 @@ | ||
export const REGION = { | ||
campus1: '수원', | ||
campus2: '서울', | ||
} as const; | ||
|
||
export const REGION_VALUE_ARRAY = Object.values(REGION); |
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,3 +1,5 @@ | ||
export * from './day-status'; | ||
export * from './grade'; | ||
export * from './period'; | ||
export * from './lecture'; | ||
export * from './region'; |
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,5 @@ | ||
import { LECTURE } from '@/widgets/time-table'; | ||
|
||
export type LectureKey = keyof typeof LECTURE; | ||
|
||
export type LectureValue = (typeof LECTURE)[keyof typeof LECTURE]; |
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,7 @@ | ||
import { DAY_PERIOD, NIGHT_PERIOD } from '@/widgets/time-table'; | ||
import { DAY_PERIOD, NIGHT_PERIOD, SPECIAL_PERIOD } from '@/widgets/time-table'; | ||
|
||
type DayPeriod = keyof typeof DAY_PERIOD; | ||
export type SpecialPeriod = (typeof SPECIAL_PERIOD)[number]; | ||
|
||
type NightPeriod = keyof typeof NIGHT_PERIOD; | ||
export type DayPeriod = keyof typeof DAY_PERIOD | SpecialPeriod; | ||
|
||
export type { DayPeriod, NightPeriod }; | ||
export type NightPeriod = keyof typeof NIGHT_PERIOD | SpecialPeriod; |
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,3 @@ | ||
import { REGION } from '@/widgets/time-table'; | ||
|
||
export type Region = (typeof REGION)[keyof typeof REGION]; |
Oops, something went wrong.