Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9ddcc71
refactor: shraed/ui 컴포넌트 별 파일 분리
bebusl Aug 11, 2025
0ec3f6f
refactor: entities/posts의 api 함수 분리
bebusl Aug 11, 2025
3068f34
feat: 공통 fetchClient 유틸 함수 구현 및 에러 핸들링 추가
bebusl Aug 11, 2025
c8aee6a
feat: entities/posts/api 및 models 분리
bebusl Aug 11, 2025
5482f0d
refactor: entities/tags/api 분리
bebusl Aug 11, 2025
9a7a07f
refactor: entities/users/api 분리
bebusl Aug 11, 2025
cf7c64f
refactor: entities/comments/api 분리
bebusl Aug 11, 2025
a3943fc
refactor: 놓친부분~
bebusl Aug 11, 2025
54968bb
comment: 분리 관련 주석 추가
bebusl Aug 14, 2025
4005ae8
refactor: app 디렉토리 분리
bebusl Aug 14, 2025
7092c16
chore: tanstack query provider 설정
bebusl Aug 14, 2025
d49b7c0
refactor: shared sement들 분리
bebusl Aug 14, 2025
1db13ba
refactor: posts-manager 페이지를 pages폴더로 이동
bebusl Aug 14, 2025
6a4da67
refactor: PostApi -> PostDTO로 타입 이름 변경
bebusl Aug 14, 2025
e48527e
refactor: HighlightText shared/ui로 분리
bebusl Aug 14, 2025
547720d
refactor: feature/posts-management 분리
bebusl Aug 14, 2025
ebc0732
refactor: 유저 정보 모달 feature/widgets으로 분리
bebusl Aug 14, 2025
ad23955
refactor: feature/comment-management/ui 분리
bebusl Aug 14, 2025
bcd44ef
refactor: feature/post-pagination, post-search-filter ui 분리
bebusl Aug 14, 2025
7cba4e3
refactor: 댓글 추가 모달을 widgets/features ui로 분리
bebusl Aug 15, 2025
fcd0877
refactor: 포스트 추가 모달을 widgets/features ui로 분리
bebusl Aug 15, 2025
e7b05ae
refactor: 댓글 수정 모달을 widgets/features ui로 분리
bebusl Aug 15, 2025
c86332b
refactor: 포스트 수정 모달을 widgets/features ui로 분리
bebusl Aug 15, 2025
e6e9136
refactor: 포스트 상세 모달을 widgets ui로 분리
bebusl Aug 15, 2025
8193fa8
refactor: 분리한 widgets 적용
bebusl Aug 15, 2025
e166036
refactor: fetch/mutate 함수들 tanstack-query사용으로 변경
bebusl Aug 15, 2025
e18d4c8
refactor(PostsManager): 페이지 로직을 커스텀 훅으로 분리
bebusl Aug 15, 2025
212be75
feat: Jotai atom 및 의존성 주입을 위한 Context 생성
bebusl Aug 15, 2025
9b11704
refactor: Jotai를 사용한 게시물 추가 모달 상태 관리
bebusl Aug 15, 2025
9b3b963
refactor: Jotai를 사용한 게시물 수정 모달 상태 관리
bebusl Aug 15, 2025
311e78d
refactor: Jotai를 사용한 게시물 상세 모달 상태 관리
bebusl Aug 15, 2025
df8213a
refactor: Jotai를 사용한 댓글 추가 모달 상태 관리
bebusl Aug 15, 2025
707f8ee
refactor: Jotai를 사용한 댓글 수정 모달 상태 관리
bebusl Aug 15, 2025
0ee61a7
refactor: Jotai를 사용한 사용자 정보 모달 상태 관리
bebusl Aug 15, 2025
52f42cf
refactor: Jotai를 사용한 댓글 수정 기능 리팩토링
bebusl Aug 15, 2025
a99c397
refactor: 게시물 추가 기능 로직 캡슐화
bebusl Aug 15, 2025
0858961
refactor: 게시물 수정 기능 로직 캡슐화
bebusl Aug 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/src/app/index.tsx"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"coverage": "vitest run --coverage"
},
"dependencies": {
"@tanstack/react-query": "^5.85.2",
"jotai": "^2.13.1",
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
Expand Down
60 changes: 48 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions src/App.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions src/app/app-routes.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Route, BrowserRouter as Router, Routes } from "react-router-dom"
import PostsManager from "../pages/posts-manager"
import GlobalLayout from "./ui/globalLayout"

const AppRoute = () => {
return (
<Router>
<Routes>
<Route element={<GlobalLayout />}>
<Route index element={<PostsManager />} />
</Route>
</Routes>
</Router>
)
}

export default AppRoute
12 changes: 12 additions & 0 deletions src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import AppRoutes from "./app-routes.tsx"
import TanstackProvider from "./provider/tanstack-query.tsx"

const App = () => {
return (
<TanstackProvider>
<AppRoutes />
</TanstackProvider>
)
}

export default App
File renamed without changes.
9 changes: 9 additions & 0 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { StrictMode } from "react"
import { createRoot } from "react-dom/client"
import App from "./app"

createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>,
)
12 changes: 12 additions & 0 deletions src/app/provider/tanstack-query.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { PropsWithChildren } from "react"

const queryClient = new QueryClient()

type Props = object

const TanstackProvider = ({ children }: PropsWithChildren<Props>) => {
return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
}

export default TanstackProvider
17 changes: 17 additions & 0 deletions src/app/ui/globalLayout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Outlet } from "react-router-dom"
import Header from "../../shared/ui/Header"
import Footer from "../../shared/ui/Footer"

const GlobalLayout = () => {
return (
<div className="flex flex-col min-h-screen">
<Header />
<main className="flex-grow container mx-auto px-4 py-8">
<Outlet />
</main>
<Footer />
</div>
)
}

export default GlobalLayout
Loading