Repository navigation
[CHORE] 도메인별 페이지 폴더 구조 스캐폴딩 #38
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
Changes from 6 commits
40e1db0
f8dc540
7d375f9
5eca5dd
591fec9
bc66396
a1aeb1f
f09c658
bc1e837
bec6edf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function FocusPage() { | ||
| return <></>; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function HomePage() { | ||
| return <></>; | ||
| } | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function OnboardingPage() { | ||
| return <></>; | ||
| } | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function SettingsAccountPage() { | ||
| return <></>; | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| export default function SettingsLayout({ | ||
| children, | ||
| }: { | ||
| children: React.ReactNode; | ||
| }) { | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| return <>{children}</>; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function SettingsPage() { | ||
| return <></>; | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function SettingsTermPage() { | ||
| return <></>; | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function StatisticsPage() { | ||
| return <></>; | ||
| } | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function TodayPage() { | ||
| return <></>; | ||
| } | ||
|
kimminna marked this conversation as resolved.
Resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ app/(domain)/page.tsx ← 라우팅·레이아웃 조 | |
| ``` | ||
|
|
||
| - **pages** (`app/.../page.tsx`): 라우팅 단위. 데이터 페칭(React Query) 및 레이아웃만 담당 | ||
| - **도메인 종속** (`_components/`, `_containers/`, `_queries/`, `_hooks/`, `_utils/`): 해당 도메인 라우트 내부에서만 사용. `_` 접두사로 Next.js 라우팅에서 제외됨 | ||
| - **도메인 종속** (`_components/`, `_containers/`, `_queries/`): 해당 도메인 라우트 내부에서만 사용. `_` 접두사로 Next.js 라우팅에서 제외됨 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그냥 궁금해서 그런데
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 제외했다기보단 필요할 때마다 추가해서 사용하는 편이 나을 것 같아서 일단 스캐폴딩 범위에선 제외했숩니다! 각자 작업하다가 폴더 추가가 필요하다고 느낄 경우(도메인에 종속되는 훅, 유틸이 생성되었을 때) 추가하면 될 것 같아요!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 확실이 모든 도메인에서 필요하지 않을 것 같네요. 답변 감사합니당-! |
||
| - `_components/` — props만 받는 순수 UI. `'use client'` 없이도 동작 가능 | ||
| - `_containers/` — `'use client'` 필수. useQuery·zustand 등 외부 상태와 결합된 클라이언트 컨테이너 | ||
| - `_queries/` — 해당 도메인 전용 React Query hooks (useQuery · useMutation · queryKey 정의) | ||
|
|
@@ -22,8 +22,6 @@ app/ | |
| _components/ # LoginForm, SocialLoginButton 등 순수 UI | ||
| _containers/ # LoginFormContainer (useQuery·zustand 결합) | ||
| _queries/ # useLoginMutation, useUserProfileQuery 등 | ||
| _hooks/ # useLoginForm 등 auth 전용 커스텀 훅 | ||
| _utils/ # validatePassword 등 auth 전용 유틸 | ||
| page.tsx # 레이아웃 조합만 (Server Component) | ||
| layout.tsx | ||
| ``` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.