From 64c90b1ae231546a0ba52b3109f1eafc2a779dbc Mon Sep 17 00:00:00 2001 From: Farhan Date: Thu, 26 Oct 2023 06:32:07 +0700 Subject: [PATCH] fix server --- assets/css/index.css | 2 +- components/Albums.vue | 5 +- components/hero/ParallaxBackground.vue | 56 +- .../hero/ParallaxBackgroundHeroSwipe.vue | 4 +- components/navbar/NavbarSticky.vue | 79 +- content/example.md | 0 content/index.md | 1 - ...dengan-digitalisasi-sistem-pemerintahan.md | 0 ...asional-indonesia-sni-untuk-kota-cerdas.md | 0 ...ertandingan-sepak-bola-piala-dunia-2022.md | 0 ...sfv-pada-industri-kelautan-di-indonesia.md | 0 ...-daerah-melalui-seminar-smart-city-2022.md | 0 .../uang-digital-ri-akan-rilis-tahun-depan.md | 0 ...g-inovasi-teknologi-di-bidang-kesehatan.md | 0 nuxt.config.ts | 43 +- package-lock.json | 6492 +++-------------- package.json | 5 +- pages/about-us.vue | 3 +- pages/events/category/[id].vue | 2 +- server/api/categories/[id].get.ts | 14 - server/api/categories/index.get.ts | 5 - server/api/categories/index.ts | 11 + server/api/client/index.ts | 10 +- server/api/posts/index.ts | 14 +- server/api/teams/index.ts | 10 +- 25 files changed, 999 insertions(+), 5757 deletions(-) delete mode 100644 content/example.md delete mode 100644 content/index.md delete mode 100644 content/posts/kpk-ingin-menekan-korupsi-dengan-digitalisasi-sistem-pemerintahan.md delete mode 100644 content/posts/smart-city-standar-nasional-indonesia-sni-untuk-kota-cerdas.md delete mode 100644 content/posts/teknologi-var-dalam-pertandingan-sepak-bola-piala-dunia-2022.md delete mode 100644 content/posts/terapkan-smart-fisheries-village-sfv-pada-industri-kelautan-di-indonesia.md delete mode 100644 content/posts/tingkatkan-sdm-daerah-melalui-seminar-smart-city-2022.md delete mode 100644 content/posts/uang-digital-ri-akan-rilis-tahun-depan.md delete mode 100644 content/posts/wamenkes-ingin-mendorong-inovasi-teknologi-di-bidang-kesehatan.md delete mode 100644 server/api/categories/[id].get.ts delete mode 100644 server/api/categories/index.get.ts create mode 100644 server/api/categories/index.ts diff --git a/assets/css/index.css b/assets/css/index.css index 7504d3c..e77c65f 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -15,7 +15,7 @@ main { width: 100%; height: auto; overflow: hidden; - margin-top: 5rem; + /* margin-top: 5rem; */ } diff --git a/components/Albums.vue b/components/Albums.vue index 5972337..9762353 100644 --- a/components/Albums.vue +++ b/components/Albums.vue @@ -4,12 +4,15 @@ import { PostsDataType } from '~/utils/data/getInitialPostsData'; defineProps({ categoryId: { type: Number, required: true } }) -const { data: albums } = await useAsyncData('albums', () => $fetch('/api/posts')) +// const { data: albums } = await useAsyncData('albums', () => $fetch('/api/posts')) + +const { data: albums } = await useFetch('/api/posts')