From af4b18130acdee010db75f95a91360871f4cd57f Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Thu, 9 Jan 2025 10:30:51 +0900 Subject: [PATCH 01/12] =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83?= =?UTF-8?q?=ED=95=84=EC=9A=94=EC=97=86=EC=9D=84=EB=95=8C=20=EC=98=88?= =?UTF-8?q?=EC=8B=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 30eaabd..41b78a5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,11 +26,12 @@ const routes = [ } ] }, - { - path: '/login', - component: () => import('@v/user/TheLogin.vue'), - meta: { layout: 'NoLayout' }, - }, + // 레이아웃 필요없을 때 예시 + // { + // path: '/login', + // component: () => import('@v/user/TheLogin.vue'), + // meta: { layout: 'NoLayout' }, + // }, { path: '/sample', component: () => import('@c/calendar/SampleCalendar.vue'), From 76981b956a9569977169107be06cb4ac08b1e8de Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Thu, 9 Jan 2025 10:49:35 +0900 Subject: [PATCH 02/12] =?UTF-8?q?=EB=B2=84=ED=8A=BC,=ED=9C=B4=EA=B0=80?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EC=B6=94=EA=B0=80=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 12 +- src/components/board/BoardProfile.vue | 14 +- src/components/button/DeleteButton.vue | 13 ++ src/components/button/EditButton.vue | 13 ++ src/components/button/PlusButton.vue | 13 ++ src/layouts/TheMenu.vue | 6 + src/router/index.js | 4 + src/stores/calendarStore.js | 20 +++ src/views/AddEventModal.vue | 55 +++++++ src/views/vacation/ProfileList.vue | 56 +++++++ src/views/vacation/VacationManagement.vue | 181 ++++++++++++++++++++++ 11 files changed, 373 insertions(+), 14 deletions(-) create mode 100644 src/components/button/DeleteButton.vue create mode 100644 src/components/button/EditButton.vue create mode 100644 src/components/button/PlusButton.vue create mode 100644 src/stores/calendarStore.js create mode 100644 src/views/AddEventModal.vue create mode 100644 src/views/vacation/ProfileList.vue create mode 100644 src/views/vacation/VacationManagement.vue diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index ecb3fec..bc718f3 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -3,13 +3,12 @@
  • 저도 궁금합니다.
    - +
    • 저도 궁금합니다.
      -
    @@ -17,13 +16,13 @@
  • 저도 궁금합니다.
    - +
  • - +
    저도 궁금합니다.
    - +
  • @@ -36,6 +35,7 @@ import BoardProfile from './BoardProfile.vue'; import BoardComentArea from './BoardComentArea.vue'; import { ref, computed } from 'vue'; import Pagination from '../pagination/Pagination.vue'; +import PlusButton from '../button/PlusButton.vue'; const comment = ref(false); @@ -63,4 +63,4 @@ const toggleComment = () => { .btn-text-primary:focus { background-color: transparent } - \ No newline at end of file + diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue index fb0e6bb..359ed9c 100644 --- a/src/components/board/BoardProfile.vue +++ b/src/components/board/BoardProfile.vue @@ -24,12 +24,8 @@
    diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 734b05a..8d6e9db 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -5,9 +5,7 @@
    - +
    @@ -39,8 +43,8 @@ \ No newline at end of file + diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue index d747800..cfe80e3 100644 --- a/src/components/board/BoardProfile.vue +++ b/src/components/board/BoardProfile.vue @@ -24,72 +24,96 @@
    diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index c2ed3c0..02c8b18 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -1,23 +1,43 @@ - diff --git a/src/router/index.js b/src/router/index.js index 417ef6c..a19d7da 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,5 +1,4 @@ import { createRouter, createWebHistory } from 'vue-router' -import BoardWrite from '@v/board/BoardWrite.vue'; // 초기 렌더링 속도를 위해 지연 로딩 사용 const routes = [ @@ -14,6 +13,7 @@ const routes = [ children: [ { path: '', + name: 'BoardList', component: () => import('@v/board/BoardList.vue') }, { @@ -21,8 +21,14 @@ const routes = [ component: () => import('@v/board/BoardWrite.vue') }, { - path: 'get/:id', + path: ':id', + name: 'BoardDetail', component: () => import('@v/board/BoardView.vue') + }, + { + path: 'edit/:id', + name: 'BoardEdit', + component: () => import('@v/board/BoardEdit.vue') } ] }, diff --git a/src/stores/calendarStore.js b/src/stores/calendarStore.js index 80c8525..a3616f9 100644 --- a/src/stores/calendarStore.js +++ b/src/stores/calendarStore.js @@ -4,12 +4,12 @@ import axios from 'axios'; const events = ref([]); const fetchEvents = async () => { - const response = await axios.get('/api/calendar/events'); + const response = await axios.get('/calendar/events'); events.value = response.data; }; const addEvent = async (event) => { - await axios.post('/api/calendar/event', event); + await axios.post('/calendar/event', event); fetchEvents(); }; diff --git a/src/views/board/BoardEdit.vue b/src/views/board/BoardEdit.vue new file mode 100644 index 0000000..36e81bd --- /dev/null +++ b/src/views/board/BoardEdit.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 25109bd..691fdba 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -1,30 +1,30 @@