-
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 #55 from team-joytas/fix/architecture
[리팩토링] fsd 폴더 구조 적용
- Loading branch information
Showing
118 changed files
with
2,632 additions
and
1,898 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
import PageListComment from '@/src/views/detail-comment' | ||
import { getCourse } from '@/src/entities/course/api' | ||
|
||
export default async function Page({ params }: { params: { id: number } }) { | ||
const course = await getCourse(params.id) | ||
|
||
return ( | ||
<PageListComment | ||
courseId={params.id} | ||
comments={course.comments_info.comments} | ||
/> | ||
) | ||
} |
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,8 @@ | ||
import { getCourse } from '@/src/entities/course/api' | ||
import DetailCourse from '@/src/views/detail-course' | ||
|
||
export default async function Page({ params }: { params: { id: number } }) { | ||
const course = await getCourse(params.id) | ||
|
||
return <DetailCourse courseId={params.id} course={course} /> | ||
} |
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,7 @@ | ||
'use client' | ||
|
||
import RegionCascader from '@/src/views/add-region' | ||
|
||
export default function Page() { | ||
return <RegionCascader /> | ||
} |
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,5 @@ | ||
import AddCoursePlan from '@/src/widgets/AddCoursePlan' | ||
|
||
export default function CourseNew() { | ||
return <AddCoursePlan type='course' /> | ||
} |
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,10 @@ | ||
import ListCourse from '@/src/views/list-course' | ||
import { getCourses } from '@/src/entities/course/api' | ||
import { getFavoriteRegions } from '@/src/entities/user/api' | ||
|
||
export default async function Page() { | ||
const courses = await getCourses() | ||
const favoriteRegions = await getFavoriteRegions() | ||
|
||
return <ListCourse courses={courses} favoriteRegions={favoriteRegions} /> | ||
} |
File renamed without changes.
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
src/app/login/components/Login.tsx → app/login/components/Login.tsx
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
4 changes: 2 additions & 2 deletions
4
src/app/login/components/Splash.tsx → app/login/components/Splash.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
import ListNotification from '@/src/views/list-notification' | ||
import { getNotifications } from '@/src/entities/notification/api' | ||
|
||
export default async function Page() { | ||
const data = await getNotifications() | ||
return <ListNotification data={data} /> | ||
} |
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,5 @@ | ||
import Main from '@/src/views/main' | ||
|
||
export default function Page() { | ||
return <Main /> | ||
} |
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,8 @@ | ||
import { getCourse } from '@/src/entities/course/api' | ||
import UpdatePlan from '@/src/views/update-plan' | ||
|
||
export default async function Page() { | ||
const course = await getCourse(1) | ||
|
||
return <UpdatePlan data={course} /> | ||
} |
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,5 @@ | ||
import AddCoursePlan from '@/src/widgets/AddCoursePlan' | ||
|
||
export default function Page() { | ||
return <AddCoursePlan type='plan' /> | ||
} |
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 @@ | ||
import CardCourse from '@/src/features/course/card-course' | ||
import FloatingWriteButton from '@/src/widgets/FloatingWriteButton' | ||
import { getCourses } from '@/src/entities/course/api' | ||
import { getUser } from '@/src/entities/user/api' | ||
|
||
export default async function Page() { | ||
const courses = await getCourses() | ||
const user = await getUser(1) | ||
|
||
const userName = user.user_info.name | ||
|
||
return ( | ||
<div className='w-full pt-[20px] pb-[20px] px-[16px] flex flex-col'> | ||
<span className='border-b text-[18px] inline-flex items-center'> | ||
<p className='font-bold'>{userName}</p> | ||
<p>님의 코스 플랜</p> | ||
</span> | ||
|
||
{courses.map((_, index) => ( | ||
<CardCourse key={index} /> | ||
))} | ||
|
||
<FloatingWriteButton /> | ||
</div> | ||
) | ||
} |
File renamed without changes.
File renamed without changes.
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,8 @@ | ||
import DetailUser from '@/src/views/detail-user' | ||
import { getUser } from '@/src/entities/user/api' | ||
|
||
export default async function Page() { | ||
const user = await getUser(1) | ||
|
||
return <DetailUser user={user} /> | ||
} |
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,7 @@ | ||
'use client' | ||
|
||
import UpdateUser from '@/src/views/update-user' | ||
|
||
export default function Page() { | ||
return <UpdateUser /> | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.