From ea97302ae182d470196538e072fc708affebac09 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Tue, 28 Jan 2025 00:26:09 +0330 Subject: [PATCH] Updated --- frontend/components/home/Categories.vue | 117 +++++++++++------------- 1 file changed, 53 insertions(+), 64 deletions(-) diff --git a/frontend/components/home/Categories.vue b/frontend/components/home/Categories.vue index aed0b34..8502fe1 100644 --- a/frontend/components/home/Categories.vue +++ b/frontend/components/home/Categories.vue @@ -4,6 +4,7 @@ import { Swiper, SwiperSlide } from "swiper/vue"; import type { SwiperClass } from "swiper/react"; +import useHomeData from "~/composables/api/home/useHomeData"; type Props = {} @@ -14,30 +15,10 @@ const {} = toRefs(props); // state +const { data: homeData } = useHomeData(); + const swiper_instance = ref(null); -const slides = [ - { - id: 0, - title: "TEST" - }, - { - id: 1, - title: "TEST" - }, - { - id: 2, - title: "TEST" - }, - { - id: 3, - title: "TEST" - }, - { - id: 4, - title: "TEST" - } -]; // methods @@ -48,50 +29,58 @@ const onSwiper = (swiper: SwiperClass) => { \ No newline at end of file