[REFACTOR]: 불필요한 파일 제거 및 라우팅 구조 개선 및 폴더 구조 개선 및 스타일 중복 커스텀 #172
Merged
[REFACTOR]: 불필요한 파일 제거 및 라우팅 구조 개선 및 폴더 구조 개선 및 스타일 중복 커스텀 #172
Conversation
1 task
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
개요
Resolves: #171
불필요한 파일 제거 및 라우팅 구조 개선 및 폴더 구조 개선 및 스타일 중복 커스텀
PR 유형
어떤 변경 사항이 있나요?
작업 내용
1. 라우팅 구조 개선
RootLayout,BottomLayout등 레이아웃 기반의 중첩 라우팅 구조로 변경했습니다.React.lazy와Suspense를 적용하여 초기 로딩 성능 최적화를 진행했습니다.2. 폴더 구조 개선
utils폴더에 있던throttle함수를hooks의useThrottle함수로 이동하면서 로직을 수정했습니다.clsx라이브러리를 사용하는cn함수를lib폴더로 이동하였습니다.routes의path를 상수로 옮기면서 네이밍을 수정하였습니다. 라우팅 구조를 개선함에 따라 몇몇 구조도 함께 변경되었습니다.3. 불필요한 파일 제거
4. 페이지 스타일 중복 커스텀
page라는 커스텀 스타일로 만들어서 재사용성을 높였습니다.스크린샷
변경된 라우팅 구조
lazy 로딩 적용
AI 분석 토글 색상 변경