-
Notifications
You must be signed in to change notification settings - Fork 2
밥팟 만들기 페이지 리펙토링 + 몇가지 자잘한 요청사항 #32
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
18 commits
Select commit
Hold shift + click to select a range
22c3b21
chore: 밥팟 만들기 버튼을 잘보이도록 UI 수정
jihostudy 1d5400c
chore: 알람 왔으면 헤더에 알림 왔다고 깜빡이기, 알림에 은행 표시
jihostudy d905b43
fix: 로그아웃 하면 메인페이지로 강제 이동
jihostudy d5d37c3
refactor: cleaning up
jihostudy 0ca1034
refactor: 밥팟 만들기 페이지 리펙토링
jihostudy 5a2bd7a
fix: build error
jihostudy 8061d6e
chore: change image of chat character
jihostudy 86af419
Docs: update readme for fellows
jihostudy 5d84e72
style: 밥팟 만들기 버튼을 잘보이도록 UI 수정
jihostudy 9809fba
chore: 알람 왔으면 헤더에 알림 왔다고 깜빡이기, 알림에 은행 표시
jihostudy b49ec55
fix: 로그아웃 하면 메인페이지로 강제 이동
jihostudy f14e566
refactor: cleaning up
jihostudy c6ef0b5
refactor: 밥팟 만들기 페이지 리펙토링
jihostudy b36376f
fix: build error
jihostudy aa2b725
chore: change image of chat character
jihostudy 90a6cd0
Docs: update readme for fellows
jihostudy d47b0b7
Merge remote-tracking branch 'origin/feat/feat-requests' into feat/fe…
jihostudy d074360
refactor: formatString 형식 변경
jihostudy 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,4 +41,6 @@ yarn-error.log* | |
| next-env.d.ts | ||
|
|
||
| # Linting Cache file | ||
| .eslintcache | ||
| .eslintcache | ||
|
|
||
| .vscode/* | ||
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 |
|---|---|---|
| @@ -1,36 +1,153 @@ | ||
| This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). | ||
| ## 밥팟 FE 레포 | ||
|
|
||
| ## Getting Started | ||
| ### 폴더 구조 | ||
|
|
||
| First, run the development server: | ||
|
|
||
| ```bash | ||
| npm run dev | ||
| # or | ||
| yarn dev | ||
| # or | ||
| pnpm dev | ||
| # or | ||
| bun dev | ||
| ``` | ||
| ├── Dockerfile | ||
| ├── README.md | ||
| ├── components.json | ||
| ├── eslint.config.mjs | ||
| ├── next-env.d.ts | ||
| ├── next.config.ts | ||
| ├── package-lock.json | ||
| ├── package.json | ||
| ├── pnpm-lock.yaml | ||
| ├── postcss.config.mjs | ||
| ├── public // 정적 데이터 | ||
| │ ├── data | ||
| │ │ ├── ChatResponse.ts // ✅ 채팅 생성 클래스입니다. (상황에 맞는 채팅 생성) | ||
| │ │ ├── categories.ts // 하드코딩된 음식점 카테고리 | ||
| │ │ ├── index.ts // 어디넣어야 할지 모르는 것들 | ||
| │ │ ├── restaurant.ts // AI 검색 음식점 리스트 | ||
| │ │ └── tracks.ts // 트랙 데이터 | ||
| │ ├── fonts | ||
| │ │ ├── font.ts | ||
| │ │ └── subset-PretendardVariable-Regular.woff2 | ||
| │ └── images // 서비스 이미지 (모두 SVG 추후 최적화 변경) | ||
| │ ├── babpul.svg | ||
| │ ├── logo.svg | ||
| │ ├── part_example.svg | ||
| │ └── spoon.svg | ||
| ├── scripts | ||
| │ └── deploy.sh // 🌥️ 클라우드 관리 파일 | ||
| ├── src | ||
| │ ├── app | ||
| │ │ ├── (header) // ✅ 헤더 + 푸터 존재 구조 | ||
| │ │ │ ├── layout.tsx | ||
| │ │ │ ├── mypage // 마이페이지 | ||
| │ │ │ │ ├── layout.tsx | ||
| │ │ │ │ ├── babpart // 내 밥팟 | ||
| │ │ │ │ │ └── page.tsx | ||
| │ │ │ │ ├── requests // 받은 정산 요청 | ||
| │ │ │ │ │ └── page.tsx | ||
| │ │ │ │ └── settlement // 정산 요청하기 | ||
| │ │ │ │ └── page.tsx | ||
| │ │ │ └── page.tsx | ||
| │ │ ├── (headerless) // ❌ 헤더 + 푸터 미존재 구조 | ||
| │ │ │ ├── layout.tsx | ||
| │ │ │ └── part | ||
| │ │ │ └── page.tsx // 밥팟 생성 페이지 | ||
| │ │ │ ├── auth | ||
| │ │ │ │ ├── layout.tsx | ||
| │ │ │ │ ├── login // 로그인 페이지 | ||
| │ │ │ │ │ └── page.tsx | ||
| │ │ │ │ └── register // 회원가입 페이지 | ||
| │ │ │ │ └── page.tsx | ||
| │ │ ├── favicon.ico | ||
| │ │ ├── globals.css | ||
| │ │ └── layout.tsx | ||
| │ ├── components // 공용 컴포넌트 | ||
| │ │ ├── Footer.tsx | ||
| │ │ ├── Header.tsx | ||
| │ │ ├── auth | ||
| │ │ │ └── Introduce.tsx // 소개 문구 | ||
| │ │ ├── common | ||
| │ │ │ ├── AutoSlider.tsx // 메인페이지 (자동 슬라이더 기능) | ||
| │ │ │ ├── Backdrop.tsx // 백드롭 | ||
| │ │ │ ├── KakaoMap.tsx // ✅ 카카오맵 컴포넌트 (SDK 활용) | ||
| │ │ │ ├── LoadingShimmer.tsx // AI 응답 대기 문구 | ||
| │ │ │ ├── MapPin.tsx // 카카오맵 핀 | ||
| │ │ │ └── Pagination.tsx // 페이지네이션 컴포넌트 | ||
| │ │ ├── main // ⬇️ 아래부터는 각 서비스별로 필요한 컴포넌트입니다 | ||
| │ │ │ ├── Alarm | ||
| │ │ │ │ └── HeaderAlarm.tsx | ||
| │ │ │ ├── PartCards | ||
| │ │ │ │ ├── PartCard.tsx | ||
| │ │ │ │ └── PartCardList.tsx | ||
| │ │ │ ├── Recommend | ||
| │ │ │ │ └── RecommendCard.tsx | ||
| │ │ │ └── RecommendCardList.tsx | ||
| │ │ ├── mypage | ||
| │ │ │ ├── RouteHeader.tsx | ||
| │ │ │ ├── RouteText.tsx | ||
| │ │ │ └── settlement | ||
| │ │ │ ├── RequestSettlementModal.tsx | ||
| │ │ │ └── SettlementTable.tsx | ||
| │ │ ├── part | ||
| │ │ │ ├── AIChatButtonFrame.tsx | ||
| │ │ │ ├── AIChatFrame.tsx // AI 응답에 대한 프레임 | ||
| │ │ │ ├── ChatRoom.tsx | ||
| │ │ │ ├── PartCreationModal.tsx | ||
| │ │ │ ├── PlaceList.tsx | ||
| │ │ │ └── RefuseModal.tsx | ||
| │ │ └── ui // Shadcn 설치 파일 | ||
| │ │ ├── DatePicker.tsx | ||
| │ │ ├── FilterSelector.tsx | ||
| │ │ ├── Loading.tsx | ||
| │ │ ├── button.tsx | ||
| │ │ ├── calendar.tsx | ||
| │ │ ├── checkbox.tsx | ||
| │ │ ├── input.tsx | ||
| │ │ ├── label.tsx | ||
| │ │ ├── pagination.tsx | ||
| │ │ ├── popover.tsx | ||
| │ │ ├── select.tsx | ||
| │ │ ├── sonner.tsx | ||
| │ │ └── timepicker | ||
| │ │ ├── input.tsx | ||
| │ │ ├── timepicker.tsx | ||
| │ │ └── utils.tsx | ||
| │ └── lib | ||
| │ ├── HTTP // ✅ 통신 관련 파일들입니다 | ||
| │ │ ├── API // 각 서비스별로 모아둔 API입니다. | ||
| │ │ │ ├── auth.ts | ||
| │ │ │ ├── chat.ts | ||
| │ │ │ ├── mypage | ||
| │ │ │ │ └── settlement.ts | ||
| │ │ │ └── part.ts | ||
| │ │ ├── Fetch.ts // 커스텀 페칭함수 | ||
| │ │ ├── index.ts | ||
| │ │ └── tanstack-query.ts // 🔥 React-Query 캐싱키 관리 및 Mutation 설정 파일입니다 중요! 🔥 | ||
| │ ├── colors | ||
| │ │ └── colors.ts | ||
| │ ├── constants | ||
| │ │ ├── endpoint.ts | ||
| │ │ └── routes.ts | ||
| │ ├── context // zustand 활용 전역 데이터 | ||
| │ │ └── responsiveStore.ts | ||
| │ ├── hooks // ✅ 커스텀 훅입니다!! | ||
| │ │ ├── useAuthData.ts | ||
| │ │ ├── useKakaoLoader.tsx | ||
| │ │ ├── useModal.tsx | ||
| │ │ ├── usePagination.tsx | ||
| │ │ ├── useScrollLock.tsx // 모달에서 스크롤 잠그기 | ||
| │ │ ├── useServiceError.tsx // HTTP 통신에서 에러 핸들링 | ||
| │ │ └── useToggle.ts | ||
| │ ├── provider | ||
| │ │ ├── LucideIcon.tsx // 아이콘 라이브러리 제공 컴포넌트 | ||
| │ │ ├── QueryClientProvider.tsx // React-Query | ||
| │ │ └── useResponsiveProvider.tsx // zustand + tailwind(형식)으로 반응형 제공 프로바이더 | ||
| │ ├── types | ||
| │ │ ├── auth | ||
| │ │ └── part | ||
| │ │ └── part.ts | ||
| │ └── utils | ||
| │ ├── date | ||
| │ │ ├── fromDateString.ts // 일반 Date String 형식을 변환하기 위한 정적 클래스 | ||
| │ │ └── fromISOString.ts // ISO String 형식을 변환하기 위한 정적 클래스 | ||
| │ ├── typeUtils.ts // 타입스크립트 유틸함수 모음 | ||
| │ └── utils.ts | ||
| ├── tailwind.config.ts | ||
| └── tsconfig.json | ||
|
|
||
| Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
|
||
| You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
|
||
| This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. | ||
|
|
||
| ## Learn More | ||
|
|
||
| To learn more about Next.js, take a look at the following resources: | ||
|
|
||
| - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
| - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
|
||
| You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! | ||
|
|
||
| ## Deploy on Vercel | ||
|
|
||
| The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
|
||
| Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. | ||
| ``` | ||
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.
폴더 구조 정리 잘 봤습니다 굿