From 8cbfe4a8649fae1c9c46193ec7e245fe7b98dde2 Mon Sep 17 00:00:00 2001 From: icurfer Date: Sun, 18 May 2025 23:38:52 +0900 Subject: [PATCH] =?UTF-8?q?Add=20todo=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EA=B8=B0=EB=8A=A5=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +- .env.production | 3 +- src/App.js | 3 + src/api/todoApi.js | 20 ++++ src/components/Navbar.js | 2 +- src/components/Todo/TodoDetail.js | 112 +++++++++++++++++++ src/components/Todo/TodoForm.js | 124 ++++++++++++++++++++ src/components/Todo/TodoItem.js | 65 +++++++++++ src/components/Todo/TodoList.js | 22 ++++ src/pages/TaskPage.js | 180 ++++++++++++++++++++++++++++++ version | 2 +- 11 files changed, 532 insertions(+), 4 deletions(-) create mode 100644 src/api/todoApi.js create mode 100644 src/components/Todo/TodoDetail.js create mode 100644 src/components/Todo/TodoForm.js create mode 100644 src/components/Todo/TodoItem.js create mode 100644 src/components/Todo/TodoList.js create mode 100644 src/pages/TaskPage.js diff --git a/.env.development b/.env.development index 625030d..f0bfd02 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,3 @@ REACT_APP_API_AUTH=http://127.0.0.1:8000 -REACT_APP_API_BLOG=http://127.0.0.1:8800 \ No newline at end of file +REACT_APP_API_BLOG=http://127.0.0.1:8800 +REACT_APP_API_TODO=http://127.0.0.1:8880 \ No newline at end of file diff --git a/.env.production b/.env.production index e7069ae..9dc9f27 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,3 @@ REACT_APP_API_AUTH=https://www.demo.test -REACT_APP_API_BLOG=https://www.demo.test \ No newline at end of file +REACT_APP_API_BLOG=https://www.demo.test +REACT_APP_API_TODO=https://www.demo.test \ No newline at end of file diff --git a/src/App.js b/src/App.js index d4f5200..66e8a5f 100644 --- a/src/App.js +++ b/src/App.js @@ -12,6 +12,8 @@ import PostCategory from "./pages/PostCategory"; import Login from "./pages/Login"; import Register from './pages/Register'; import Profile from "./pages/Profile"; +import TaskPage from "./pages/TaskPage"; + import { AuthProvider } from "./context/AuthContext"; function App() { @@ -32,6 +34,7 @@ function App() { } /> } /> } /> + } />