From b09bc2fb09dcbb4a677b628922bab732ccd3a85e Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 2 Feb 2025 21:18:38 +0330 Subject: [PATCH 01/20] Update typo leading sizes --- frontend/assets/css/typo.utils.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/assets/css/typo.utils.css b/frontend/assets/css/typo.utils.css index 43e281a..763b533 100644 --- a/frontend/assets/css/typo.utils.css +++ b/frontend/assets/css/typo.utils.css @@ -55,27 +55,27 @@ /* TYPE PARAGRAPH */ @utility typo-p-2xl { - @apply text-[24px] leading-[40px] font-light ; + @apply text-[24px] leading-[42px] font-light ; } @utility typo-p-xl { - @apply text-[20px] leading-[32px] font-light ; + @apply text-[20px] leading-[34px] font-light ; } @utility typo-p-lg { - @apply text-[18px] leading-[32px] font-light ; + @apply text-[18px] leading-[34px] font-light ; } @utility typo-p-md { - @apply text-[16px] leading-[28px] font-light ; + @apply text-[16px] leading-[30px] font-light ; } @utility typo-p-sm { - @apply text-[14px] leading-[24px] font-light ; + @apply text-[14px] leading-[26px] font-light ; } @utility typo-p-xs { - @apply text-[12px] leading-[16px] font-light ; + @apply text-[12px] leading-[18px] font-light ; } /* TYPO LABEL */ From 633631c285909329a49e850242c8af3656b1fab0 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 2 Feb 2025 21:18:49 +0330 Subject: [PATCH 02/20] Create articles masonry list --- frontend/components/articles/ArticlesList.vue | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 frontend/components/articles/ArticlesList.vue diff --git a/frontend/components/articles/ArticlesList.vue b/frontend/components/articles/ArticlesList.vue new file mode 100644 index 0000000..4413d94 --- /dev/null +++ b/frontend/components/articles/ArticlesList.vue @@ -0,0 +1,63 @@ + + + + + \ No newline at end of file From a1248828deca0ead749fc8a0629fc108b974330e Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 2 Feb 2025 21:19:08 +0330 Subject: [PATCH 03/20] Updated --- frontend/components/global/products/FilterProducts.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/components/global/products/FilterProducts.vue b/frontend/components/global/products/FilterProducts.vue index daadb14..2dcd364 100644 --- a/frontend/components/global/products/FilterProducts.vue +++ b/frontend/components/global/products/FilterProducts.vue @@ -44,9 +44,7 @@ const filters = computed(() => { const { data: categories, suspense } = useGetCategories(); -await useAsyncData(async () => { - await suspense(); -}); +await suspense(); const { isPending: productsIsPending } = useGetProducts(filters); From 65ea8b38082e9cf71ef8f5416a753dc1a34aa782 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 2 Feb 2025 21:19:16 +0330 Subject: [PATCH 04/20] Updated --- frontend/components/global/BlogPost.vue | 160 ++++++++++++------------ 1 file changed, 79 insertions(+), 81 deletions(-) diff --git a/frontend/components/global/BlogPost.vue b/frontend/components/global/BlogPost.vue index 485bf58..76f425f 100644 --- a/frontend/components/global/BlogPost.vue +++ b/frontend/components/global/BlogPost.vue @@ -3,12 +3,11 @@ // types type Props = { + id: number; tag: string; date: string; - comments: number; title: string; description: string; - link: string; variant?: "sm" | "lg"; image: string, } @@ -23,96 +22,95 @@ const {} = toRefs(props); \ No newline at end of file From ebc7a14103e0d552c6664d6a9d5b00712f10a490 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 2 Feb 2025 21:19:33 +0330 Subject: [PATCH 05/20] Add mute/unmute button for slider videos --- frontend/components/home/Hero.vue | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/frontend/components/home/Hero.vue b/frontend/components/home/Hero.vue index 02843e5..adf07db 100644 --- a/frontend/components/home/Hero.vue +++ b/frontend/components/home/Hero.vue @@ -10,6 +10,7 @@ import useHomeData from "~/composables/api/home/useHomeData"; const { data: homeData } = useHomeData(); const swiper_instance = ref(null); +const isMuted = ref(true); // methods @@ -37,18 +38,29 @@ const onChange = (swiper: SwiperClass) => { @slide-change="onChange" >
-
-
-
- - -
-
- - -
-
+ + + \ No newline at end of file From c22f5db23f7167db3196759f31b947a7a65d15cf Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 2 Feb 2025 21:20:13 +0330 Subject: [PATCH 07/20] Sanitize product description content before render --- frontend/components/product/ProductHero.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/components/product/ProductHero.vue b/frontend/components/product/ProductHero.vue index baad819..e186b38 100644 --- a/frontend/components/product/ProductHero.vue +++ b/frontend/components/product/ProductHero.vue @@ -3,6 +3,7 @@ // import import useGetProduct from "~/composables/api/product/useGetProduct"; +import { sanitize } from "isomorphic-dompurify"; // state @@ -14,6 +15,9 @@ const { data: product } = useGetProduct(id); const quantity = ref(1); const selectedSlide = ref(0); + +// computed + const slides = computed(() => { return [ { @@ -30,6 +34,11 @@ const slides = computed(() => { } ]; }); + +const sanitizedProductDescription = computed(() => { + return sanitize(product.value!.description); +}); +