diff --git a/src/api/collection.js b/src/api/collection.js deleted file mode 100644 index dd8f7bd..0000000 --- a/src/api/collection.js +++ /dev/null @@ -1,28 +0,0 @@ -import { authInstance } from './index'; - -// 콜렉션 추가 -function addCollection(collectionData) { - return authInstance.post('collections/add', collectionData); -} - -// 콜렉션 수정 -function updateCollection(collectionData) { - return authInstance.post('collections/update', collectionData); -} - -// 콜렉션 삭제 -function deleteCollection(collectionId) { - return authInstance.delete(`collections/delete/${collectionId}`); -} - -// 콜렉션 즐겨찾기 추가 -function addFavoriteCollection(collectionId) { - return authInstance.patch(`collections/favorite/${collectionId}`); -} - -export { - addCollection, - updateCollection, - deleteCollection, - addFavoriteCollection, -}; diff --git a/src/api/user.js b/src/api/user.js index 42732c6..d0111f5 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -1,18 +1,18 @@ -import { instance, authInstance } from "./index"; +import { instance, authInstance } from './index'; // 프로필 수정 function editProfile(userData) { - return authInstance.post("users/edit", userData); + return authInstance.post('users/edit', userData); } // 비밀번호 재설정 function resetPw(pwData) { - return instance.post("users/reset-password", pwData); + return instance.post('users/reset-password', pwData); } // 프로필 조회 function fetchProfile() { - return authInstance.get("users/me"); + return authInstance.get('users/me'); } // 자신의 콘텐츠 조회 @@ -20,19 +20,14 @@ function fetchMyContents(categoryId) { return authInstance.get(`users/load-contents?categoryId=${categoryId}`); } -// 자신의 콜렉션 조회 -function fetchMyCollections(categoryId) { - return authInstance.get(`users/load-collections?categoryId=${categoryId}`); -} - // 자신의 카테고리 목록 조회 function fetchMyCategory() { - return authInstance.get("users/load-categories"); + return authInstance.get('users/load-categories'); } // 자신의 즐겨찾기 조회 function fetchMyFavorites() { - return authInstance.get("users/load-favorites"); + return authInstance.get('users/load-favorites'); } export { @@ -41,6 +36,5 @@ export { fetchProfile, fetchMyContents, fetchMyCategory, - fetchMyCollections, fetchMyFavorites, }; diff --git a/src/components/MainComponent.vue b/src/components/MainComponent.vue index 3a699a9..acac40e 100644 --- a/src/components/MainComponent.vue +++ b/src/components/MainComponent.vue @@ -49,16 +49,14 @@ @close-modal="isModalActive = false" @isLinkNotSingle="isLinkNotSingle" :linkList="linkList" - @openCollectionModal="openCollectionModal" > - - - - diff --git a/src/components/MainComponentSocial.vue b/src/components/MainComponentSocial.vue index 5156ef4..50bc7dc 100644 --- a/src/components/MainComponentSocial.vue +++ b/src/components/MainComponentSocial.vue @@ -49,7 +49,6 @@ @close-modal="isModalActive = false" @isLinkNotSingle="isLinkNotSingle" :linkList="linkList" - @openCollectionModal="openCollectionModal" > @@ -57,7 +56,6 @@ - - - - diff --git a/src/components/category/AllCategoryComponent.vue b/src/components/category/AllCategoryComponent.vue index b0250c3..ed008b2 100644 --- a/src/components/category/AllCategoryComponent.vue +++ b/src/components/category/AllCategoryComponent.vue @@ -9,14 +9,8 @@ -
-

아직 콘텐츠&콜렉션이 없습니다😯

+
+

아직 콘텐츠가 없습니다😯

@@ -24,11 +18,6 @@ :contents="data" v-if="!newArr[index].contents" > - -
@@ -56,7 +45,6 @@ diff --git a/src/components/collection/CollectionComponent.vue b/src/components/collection/CollectionComponent.vue deleted file mode 100644 index 15cf01a..0000000 --- a/src/components/collection/CollectionComponent.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - diff --git a/src/components/modal/CollectionEditModalComponent.vue b/src/components/modal/CollectionEditModalComponent.vue deleted file mode 100644 index e40ad44..0000000 --- a/src/components/modal/CollectionEditModalComponent.vue +++ /dev/null @@ -1,270 +0,0 @@ - - - - - diff --git a/src/components/modal/CollectionModalComponent.vue b/src/components/modal/CollectionModalComponent.vue deleted file mode 100644 index 5a62504..0000000 --- a/src/components/modal/CollectionModalComponent.vue +++ /dev/null @@ -1,203 +0,0 @@ - - - - - diff --git a/src/components/modal/ContentsModalComponent.vue b/src/components/modal/ContentsModalComponent.vue index 89f8deb..d105f06 100644 --- a/src/components/modal/ContentsModalComponent.vue +++ b/src/components/modal/ContentsModalComponent.vue @@ -73,19 +73,6 @@
- -
@@ -32,28 +27,25 @@