-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from dnd-side-project/sprint/refactor-the-project
Refactor: 프로젝트의 전반적인 리팩토링
- Loading branch information
Showing
75 changed files
with
483 additions
and
508 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'CI' | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
name: Checkout repository | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}/.next/cache | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}- | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Check typescript | ||
run: yarn run type:check | ||
|
||
- name: Check eslint | ||
run: yarn run lint |
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
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
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,17 @@ | ||
import AppDownloadBanner from '../../components/Header/AppDownloadBanner'; | ||
import { StrictPropsWithChildren } from '@/types'; | ||
import { isIOS } from '@/utils'; | ||
|
||
export function MainFooter({ children }: StrictPropsWithChildren) { | ||
return ( | ||
<> | ||
<div className="fixed inset-x-0 bottom-0 z-30"> | ||
<div className="mx-auto max-w-layout bg-white px-20 pb-24 pt-10"> | ||
<div className="flex gap-8 [&>*]:flex-1 [&>*]:grow">{children}</div> | ||
</div> | ||
{isIOS() && <AppDownloadBanner />} | ||
</div> | ||
<div className="h-88" /> | ||
</> | ||
); | ||
} |
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,23 @@ | ||
'use client'; | ||
|
||
import { QueryAsyncBoundary } from '@suspensive/react-query'; | ||
|
||
import FeedContent from './FeedContent'; | ||
import FilterSheet from './FilterSheet'; | ||
import { RejectedFallback } from '@/components/ErrorBoundary'; | ||
import { Loading } from '@/components/Loading'; | ||
import { PageAnimation } from '@/components/PageAnimation'; | ||
|
||
export default function FeedComponent() { | ||
return ( | ||
<QueryAsyncBoundary | ||
rejectedFallback={RejectedFallback} | ||
pendingFallback={<Loading className="h-[calc(100dvh-178px)]" />} | ||
> | ||
<PageAnimation> | ||
<FeedContent /> | ||
<FilterSheet /> | ||
</PageAnimation> | ||
</QueryAsyncBoundary> | ||
); | ||
} |
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
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,23 +1,5 @@ | ||
'use client'; | ||
|
||
import { QueryAsyncBoundary } from '@suspensive/react-query'; | ||
|
||
import FeedContent from './FeedContent'; | ||
import FilterSheet from './FilterSheet'; | ||
import { RejectedFallback } from '@/components/ErrorBoundary'; | ||
import { Loading } from '@/components/Loading'; | ||
import { PageAnimation } from '@/components/PageAnimation'; | ||
import FeedComponent from './FeedComponent'; | ||
|
||
export default function Feed() { | ||
return ( | ||
<QueryAsyncBoundary | ||
rejectedFallback={RejectedFallback} | ||
pendingFallback={<Loading className="h-[calc(100dvh-178px)]" />} | ||
> | ||
<PageAnimation> | ||
<FeedContent /> | ||
<FilterSheet /> | ||
</PageAnimation> | ||
</QueryAsyncBoundary> | ||
); | ||
return <FeedComponent />; | ||
} |
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,23 @@ | ||
'use client'; | ||
|
||
import { PrimaryButton } from '@/components/Button'; | ||
import EmptyCase from '@/components/Feed/EmptyCase'; | ||
import { PreparingPopup } from '@/components/Modal'; | ||
import { useOverlay } from '@/components/Overlay/useOverlay'; | ||
|
||
export default function MyPoseComponent() { | ||
const { open } = useOverlay(); | ||
|
||
return ( | ||
<EmptyCase | ||
title={'나만의 포즈를 추가해 보세요!'} | ||
text={'포즈피드에 네컷사진을 업로드할 수 있어요'} | ||
> | ||
<PrimaryButton | ||
onClick={() => open(({ exit }) => <PreparingPopup onClose={exit} />)} | ||
text="포즈 등록하기" | ||
variant="secondary" | ||
/> | ||
</EmptyCase> | ||
); | ||
} |
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
Oops, something went wrong.