diff --git a/src/api/zeroPrices.js b/src/api/zeroPrices.js deleted file mode 100644 index c69efd1..0000000 --- a/src/api/zeroPrices.js +++ /dev/null @@ -1,27 +0,0 @@ -import { apiClient } from '@/services/apiClient.js' - -export const useZeroPrices = () => { - const getZeroPrices = async () => { - try { - return await apiClient.get('/merch/zeroprices') - } catch (error) { - console.log('Get zero prices error: ', error) - throw error - } - } - - const deleteZeroPrices = async (list) => { - try { - await apiClient.delete('/merch/zeroprices', list) - } - catch (error) { - console.log('Delete zero prices error: ', error) - throw error - } - } - - return { - getZeroPrices, - deleteZeroPrices, - } -} diff --git a/src/components/Navbar/NavBar.vue b/src/components/Navbar/NavBar.vue index a05c67c..c2fcb65 100644 --- a/src/components/Navbar/NavBar.vue +++ b/src/components/Navbar/NavBar.vue @@ -17,7 +17,6 @@ const mainMenu = computed(() => { { label: 'Collection', key: 'collection' }, { label: 'Charts', key: 'charts' }, { label: 'Parsers', key: 'parsers' }, - { label: 'Zero prices', key: 'zeroprices' }, ] }) diff --git a/src/router/index.js b/src/router/index.js index 0a0ff85..1a83844 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,7 +8,6 @@ import PersonalView from '@/views/PersonalView.vue' import AddMerchView from '@/views/AddMerchView.vue' import DetailsView from '@/views/DetailsView.vue' import LabelsView from '@/views/LabelsView.vue' -import ZeroPricesView from '@/views/ZeroPricesView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -59,11 +58,6 @@ const router = createRouter({ name: 'labels', component: LabelsView, }, - { - path: '/zeroprices', - name: 'zeroprices', - component: ZeroPricesView, - }, ], }) diff --git a/src/services/apiClient.js b/src/services/apiClient.js index 082f10a..7bc1f10 100644 --- a/src/services/apiClient.js +++ b/src/services/apiClient.js @@ -138,14 +138,12 @@ export const apiClient = { return request(url, { method: 'POST', body: isFormData ? data : JSON.stringify(data), + // headers: isFormData ? {} : { 'Content-Type': 'application/json' } }) }, put: (url, data) => request(url, { method: 'PUT', body: JSON.stringify(data), }), - delete: (url, data) => request(url, { - method: 'DELETE', - body: data ? JSON.stringify(data) : undefined, - }), + delete: (url) => request(url, { method: 'DELETE' }), } diff --git a/src/styles/styles.css b/src/styles/styles.css index 815f71a..67d9708 100644 --- a/src/styles/styles.css +++ b/src/styles/styles.css @@ -197,8 +197,3 @@ body, justify-content: center; margin-bottom: 20px; } - -.padding-lr-30 { - padding-left: 30px; - padding-right: 30px; -} diff --git a/src/views/CollectionView/CollectionToolbar.vue b/src/views/CollectionView/CollectionToolbar.vue index ebe8bc0..67e7e84 100644 --- a/src/views/CollectionView/CollectionToolbar.vue +++ b/src/views/CollectionView/CollectionToolbar.vue @@ -1,5 +1,5 @@ - - - - diff --git a/src/views/ZeroPricesView/ZeroPriceCard.vue b/src/views/ZeroPricesView/ZeroPriceCard.vue deleted file mode 100644 index 10c80d7..0000000 --- a/src/views/ZeroPricesView/ZeroPriceCard.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/src/views/ZeroPricesView/ZeroPricesToolbar.vue b/src/views/ZeroPricesView/ZeroPricesToolbar.vue deleted file mode 100644 index 122e3d5..0000000 --- a/src/views/ZeroPricesView/ZeroPricesToolbar.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - - -