-
Notifications
You must be signed in to change notification settings - Fork 0
[NUGUDI-202] 특정 구내식당 상세 정보 연결 #220
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
5 commits
Select commit
Hold shift + click to select a range
bd0f62b
[NUGUDI-202] fix(tab): 탭 스크롤 이슈 수정
hijjoy 0d92a71
[NUGUDI-202] refactor(web): cafeteria 도메인 DI Container를 실제 API 연결로 변경
hijjoy c67a8a0
[NUGUDI-202] chore(web): Biome non-null assertion 규칙 비활성화
hijjoy 70c1258
[NUGUDI-202] fix(web): 식당 상세 페이지 Query Hook 패턴 적용 및 비즈니스 로직 개선
hijjoy 3a2ce16
[NUGUDI-202] refactor(web): CafeteriaTabSection Query Hook 적용 및 Suspe…
hijjoy 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| /** | ||
| * Time Parsing Utilities | ||
| * | ||
| * 시간 문자열 파싱 유틸리티 함수들 | ||
| */ | ||
|
|
||
| /** | ||
| * 시간 문자열에서 시(hour) 파싱 | ||
| * | ||
| * @param hourStr - 시간 문자열 (예: "11", "09") | ||
| * @returns 0-23 범위의 숫자, 유효하지 않으면 null | ||
| * | ||
| * @example | ||
| * parseHour("11") // 11 | ||
| * parseHour("09") // 9 | ||
| * parseHour("25") // null (범위 초과) | ||
| * parseHour("abc") // null (숫자 아님) | ||
| */ | ||
| export function parseHour(hourStr: string): number | null { | ||
| const hour = Number.parseInt(hourStr, 10); | ||
| if (Number.isNaN(hour) || hour < 0 || hour > 23) return null; | ||
| return hour; | ||
| } | ||
|
|
||
| /** | ||
| * 시간 문자열에서 분(minute) 파싱 | ||
| * | ||
| * @param minuteStr - 분 문자열 (예: "30", "05") | ||
| * @returns 0-59 범위의 숫자, 유효하지 않으면 null | ||
| * | ||
| * @example | ||
| * parseMinute("30") // 30 | ||
| * parseMinute("05") // 5 | ||
| * parseMinute("60") // null (범위 초과) | ||
| */ | ||
| export function parseMinute(minuteStr: string): number | null { | ||
| const minute = Number.parseInt(minuteStr, 10); | ||
| if (Number.isNaN(minute) || minute < 0 || minute > 59) return null; | ||
| return minute; | ||
| } | ||
|
|
||
| /** | ||
| * 시간 문자열에서 초(second) 파싱 | ||
| * | ||
| * @param secondStr - 초 문자열 (선택적, 예: "00", "45") | ||
| * @returns 0-59 범위의 숫자, 없으면 0, 유효하지 않으면 0 | ||
| * | ||
| * @example | ||
| * parseSecond("45") // 45 | ||
| * parseSecond("00") // 0 | ||
| * parseSecond(undefined) // 0 | ||
| * parseSecond("60") // 0 (범위 초과) | ||
| */ | ||
| export function parseSecond(secondStr: string | undefined): number { | ||
| if (!secondStr) return 0; | ||
| const second = Number.parseInt(secondStr, 10); | ||
| if (Number.isNaN(second) || second < 0 || second > 59) return 0; | ||
| return second; | ||
| } | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.