From e9c76050a3820d65138850bda4b46bf436a7b04c Mon Sep 17 00:00:00 2001 From: Taron Chatoyan Date: Tue, 16 Apr 2024 16:01:22 +0400 Subject: [PATCH] created Bluerpints Cards Carusel --- components/home/Testimonials.vue | 7 +- components/layout/BluerpintsCardsCarusel.vue | 168 +++++++++++++++++++ components/layout/Container.vue | 8 +- 3 files changed, 175 insertions(+), 8 deletions(-) create mode 100644 components/layout/BluerpintsCardsCarusel.vue diff --git a/components/home/Testimonials.vue b/components/home/Testimonials.vue index f78b496b54..72e46c8abb 100644 --- a/components/home/Testimonials.vue +++ b/components/home/Testimonials.vue @@ -39,18 +39,13 @@ import TestimonialsItem from './TestimonialsItem.vue'; import ArrowLeft from "vue-material-design-icons/ArrowLeft.vue"; import ArrowRight from "vue-material-design-icons/ArrowRight.vue"; - import 'vue3-carousel/dist/carousel.css' - import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel' + export default { components: { Section, TestimonialsItem, ArrowLeft, ArrowRight, - Carousel, - Slide, - Pagination, - Navigation, }, data() { return { diff --git a/components/layout/BluerpintsCardsCarusel.vue b/components/layout/BluerpintsCardsCarusel.vue new file mode 100644 index 0000000000..fca2e21420 --- /dev/null +++ b/components/layout/BluerpintsCardsCarusel.vue @@ -0,0 +1,168 @@ + + + + + + \ No newline at end of file diff --git a/components/layout/Container.vue b/components/layout/Container.vue index 8287dffa9c..a64209878b 100644 --- a/components/layout/Container.vue +++ b/components/layout/Container.vue @@ -33,6 +33,7 @@ data-bs-target="#nav-toc" /> + @@ -52,6 +53,7 @@ const route = useRoute() const slug = computed(() => `/${props.type}/${route.params.slug instanceof Array ? route.params.slug.join('/') : route.params.slug}`); let page; + let queryType; const fetchNavigation = async () => { let navigationFetch; @@ -95,9 +97,11 @@ const parts = slug.value.split('/'); let pageUrl; if (parts.length > 3) { - pageUrl = `/api/plugins?page=${parts[parts.length - 1].replace(/.md$/, "")}&type=definitions` + queryType = parts[parts.length - 1] + pageUrl = `/api/plugins?page=${queryType.replace(/.md$/, "")}&type=definitions` } else { - pageUrl = `/api/plugins?page=${parts[2]}&type=plugin` + queryType = parts[2]; + pageUrl = `/api/plugins?page=${queryType}&type=plugin` } const {data: pluginInformation} = await useAsyncData(`Container-${hash(pageUrl)}`, () => {