Skip to content

Commit 831d2cb

Browse files
committed
refactor(fsd): reorganize app layers (#1)
1 parent 2ef14b9 commit 831d2cb

31 files changed

Lines changed: 294 additions & 309 deletions

public/mock/app-shell.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

public/mock/login-dialog.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "로그인 모달 기본 세팅",
3+
"description": "Zustand로 열림 상태를 관리하고 있고, 이후 실제 로그인 폼을 여기에 붙이면 됩니다.",
4+
"stack": [
5+
{ "label": "Data layer", "value": "Axios + Zod" },
6+
{ "label": "Server state", "value": "TanStack Query" },
7+
{ "label": "UI state", "value": "Zustand" }
8+
]
9+
}

src/App.test.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/App.tsx

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/app/router/app-router.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Route, Routes } from 'react-router-dom'
2+
3+
import ChatPage from '../../pages/chat/ui/chat-page'
4+
import HistoryPage from '../../pages/history/ui/history-page'
5+
import HomePage from '../../pages/home/ui/home-page'
6+
import NotFoundPage from '../../pages/not-found/ui/not-found-page'
7+
import SettingsPage from '../../pages/settings/ui/settings-page'
8+
import StocksPage from '../../pages/stocks/ui/stocks-page'
9+
import AppLayout from '../../widgets/app-layout/ui/app-layout'
10+
11+
function AppRouter() {
12+
return (
13+
<Routes>
14+
<Route element={<AppLayout />}>
15+
<Route index element={<HomePage />} />
16+
<Route path="stocks" element={<StocksPage />} />
17+
<Route path="history" element={<HistoryPage />} />
18+
<Route path="chat" element={<ChatPage />} />
19+
<Route path="settings" element={<SettingsPage />} />
20+
<Route path="*" element={<NotFoundPage />} />
21+
</Route>
22+
</Routes>
23+
)
24+
}
25+
26+
export default AppRouter
File renamed without changes.
File renamed without changes.

src/components/AppLayout.tsx

Lines changed: 0 additions & 145 deletions
This file was deleted.

src/features/app-shell/api.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)