-
Notifications
You must be signed in to change notification settings - Fork 1
[REFACTOR] 프로젝트 구조 FSD로 개편 #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e8a5abf
#25 [REFACTOR] shared 레이어를 FSD 구조로 이동
waldls 48fe12a
#25 [REFACTOR] 새 외주 작성 관련 폴더 구조 개편
waldls 470bdc6
#25 [REFACTOR] 온보딩, 강사 홈 폴더 구조 개편
waldls 0294263
#25 [MOVE] 강사 홈 entities를 features로 이동
waldls 3f1a4bb
#25 [FEAT] features 모듈 외부 참조를 배럴 파일 경로로 통일
waldls 6b4d5c4
#25 [REFACTOR] shared의 features 참조를 없애기 위해 BankDropdown을 features/sig…
waldls File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,16 @@ | ||
| export { getDDay } from "@/features/instructor/home/lib/getDDay"; | ||
| export type { | ||
| DraftSubmissionItem, | ||
| MatchingItem, | ||
| ModifyingItem, | ||
| } from "@/features/instructor/home/model/home"; | ||
| export { | ||
| CATEGORY_DISPLAY_MAP, | ||
| draftSubmissionStatusData, | ||
| matchingStatusData, | ||
| modifyingStatusData, | ||
| } from "@/features/instructor/home/model/home"; | ||
| export { default as CommissionsHeader } from "@/features/instructor/home/ui/CommissionsHeader"; | ||
| export { default as DraftSubmissionStatusRow } from "@/features/instructor/home/ui/DraftSubmissionStatusRow"; | ||
| export { default as MatchingCommissionsRow } from "@/features/instructor/home/ui/MatchingCommissionsRow"; | ||
| export { default as ModifyingCommissionsRow } from "@/features/instructor/home/ui/ModifyingCommissionsRow"; |
This file contains hidden or 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,8 @@ | ||
| export const getDDay = (deadline: string) => { | ||
| const today = new Date(); | ||
| today.setHours(0, 0, 0, 0); | ||
| const target = new Date(deadline); | ||
| target.setHours(0, 0, 0, 0); | ||
| const diff = Math.ceil((target.getTime() - today.getTime()) / (1000 * 60 * 60 * 24)); | ||
| return diff >= 0 ? `D-${diff}` : `D+${Math.abs(diff)}`; | ||
| }; | ||
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
...tructor/home/DraftSubmissionStatusRow.tsx → ...ctor/home/ui/DraftSubmissionStatusRow.tsx
This file contains hidden or 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
8 changes: 4 additions & 4 deletions
8
...nstructor/home/MatchingCommissionsRow.tsx → ...ructor/home/ui/MatchingCommissionsRow.tsx
This file contains hidden or 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
10 changes: 5 additions & 5 deletions
10
...structor/home/ModifyingCommissionsRow.tsx → ...uctor/home/ui/ModifyingCommissionsRow.tsx
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
src/constants/write.ts → ...features/instructor/write/config/write.ts
This file contains hidden or 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 hidden or 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,13 @@ | ||
| export * from "@/features/instructor/write/config/write"; | ||
| export type { RgbaColor } from "@/features/instructor/write/lib/color"; | ||
| export { formatDate, getMinFinalDate, getYesterday } from "@/features/instructor/write/lib/date"; | ||
| export type { BasicInfo } from "@/features/instructor/write/model/writeFormStore"; | ||
| export { useWriteFormStore } from "@/features/instructor/write/model/writeFormStore"; | ||
| export { default as ColorChooseCard } from "@/features/instructor/write/ui/ColorChooseCard"; | ||
| export { default as ColorPicker } from "@/features/instructor/write/ui/ColorPicker"; | ||
| export { default as ConceptKeywordCard } from "@/features/instructor/write/ui/ConceptKeywordCard"; | ||
| export { default as PaperSizeCard } from "@/features/instructor/write/ui/PaperSizeCard"; | ||
| export { default as PaymentModal } from "@/features/instructor/write/ui/PaymentModal/PaymentModal"; | ||
| export { default as PlanChooseCard } from "@/features/instructor/write/ui/PlanChooseCard"; | ||
| export { default as SizeRecommendedCard } from "@/features/instructor/write/ui/SizeRecommendedCard"; | ||
| export { default as StepHeader } from "@/features/instructor/write/ui/StepHeader"; |
File renamed without changes.
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
src/types/write.ts → src/features/instructor/write/model/write.ts
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유효하지 않은 날짜 입력 시
D+NaN이 반환됩니다.new Date(deadline)가 Invalid Date인 경우 현재 분기에서 그대로 문자열이 만들어져 잘못된 D-Day가 노출됩니다.Number.isNaN(target.getTime())검증 후 안전한 fallback(예:"-"반환 또는 예외 처리)을 넣어 주세요.🤖 Prompt for AI Agents