From 2106f3f40bc61805eca87d89eddc870f3979090f Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sat, 22 Mar 2025 23:43:49 +0330 Subject: [PATCH] Updated --- frontend/app.vue | 2 +- .../components/cart/delivery/AddressModal.vue | 2 +- .../components/cart/global/CartSummary.vue | 19 ++- .../components/cart/global/OrderSummary.vue | 2 +- frontend/components/global/Avatar.vue | 7 +- frontend/components/global/ComboBox.vue | 4 +- frontend/components/global/FileInput.vue | 8 +- frontend/components/global/LoadingOverlay.vue | 2 +- .../components/global/ServiceHighlights.vue | 8 +- .../components/global/product/Accordion.vue | 4 +- .../global/products/FilterProducts.vue | 8 +- frontend/components/home/Categories.vue | 2 +- .../product/ChatBox/ChatBoxContainer.vue | 13 +- .../components/product/ChatBox/ChatButton.vue | 6 +- .../product/ChatBox/ChatMessage.vue | 2 +- .../components/product/ProductDetails.vue | 8 +- frontend/components/product/ProductVideo.vue | 2 +- .../profile/tickets/index/TicketsTableRow.vue | 2 +- .../composables/api/blog/useGetArticle.ts | 6 +- .../api/chat/useCreateChatMessage.ts | 5 +- .../composables/api/orders/useGetAllOrders.ts | 1 + .../composables/api/product/useGetProduct.ts | 4 +- frontend/composables/global/useImageColor.ts | 2 +- frontend/layouts/Cart.vue | 2 +- frontend/nuxt.config.ts | 4 + frontend/package.json | 11 +- frontend/pages/index.vue | 3 +- frontend/pages/products.vue | 8 +- frontend/pages/profile/index.vue | 6 +- .../profile/purchases-and-orders/index.vue | 10 +- frontend/pages/profile/tickets/index.vue | 8 +- frontend/pages/signin.vue | 4 +- frontend/pages/tools/server-logs.vue | 11 +- ...gradient-2.png => categories-gradient.png} | Bin frontend/public/img/footer-bg-2.jpg | Bin 7406323 -> 0 bytes frontend/public/img/footer-bg-3.jpg | Bin 8041082 -> 0 bytes frontend/public/img/hero-bg.jpg | Bin 5445672 -> 0 bytes .../img/{ => heymlz}/footer-security.svg | 0 .../public/img/{ => heymlz}/footer-send.svg | 0 .../public/img/{ => heymlz}/footer-share.svg | 0 .../img/{ => heymlz}/footer-support.svg | 0 .../public/img/{ => heymlz}/heymlz-eyes.png | Bin .../heymlz/heymlz-idle.gif} | Bin .../img/{ => heymlz}/heymlz-loading-1.gif | Bin .../img/{ => heymlz}/heymlz-loading-2.gif | Bin .../img/{ => heymlz}/heymlz-main-body.png | Bin .../public/img/heymlz/heymlz-pulling.webp | Bin 0 -> 850230 bytes frontend/public/img/heymlz/heymlz-seat-2.webp | Bin 0 -> 1060266 bytes .../public/img/{ => heymlz}/heymlz-seat.gif | Bin frontend/public/img/product-1.jpg | Bin 374230 -> 0 bytes frontend/public/sw.js | 128 +++++++++--------- frontend/server/api/server-logger.ts | 2 +- frontend/tools/logger.ts | 11 +- frontend/types/global.d.ts | 6 +- frontend/utils/index.ts | 19 +++ frontend/vitest.config.ts | 7 - 56 files changed, 198 insertions(+), 161 deletions(-) rename frontend/public/img/{gradient-2.png => categories-gradient.png} (100%) delete mode 100644 frontend/public/img/footer-bg-2.jpg delete mode 100644 frontend/public/img/footer-bg-3.jpg delete mode 100644 frontend/public/img/hero-bg.jpg rename frontend/public/img/{ => heymlz}/footer-security.svg (100%) rename frontend/public/img/{ => heymlz}/footer-send.svg (100%) rename frontend/public/img/{ => heymlz}/footer-share.svg (100%) rename frontend/public/img/{ => heymlz}/footer-support.svg (100%) rename frontend/public/img/{ => heymlz}/heymlz-eyes.png (100%) rename frontend/public/{video/loading-2.gif => img/heymlz/heymlz-idle.gif} (100%) rename frontend/public/img/{ => heymlz}/heymlz-loading-1.gif (100%) rename frontend/public/img/{ => heymlz}/heymlz-loading-2.gif (100%) rename frontend/public/img/{ => heymlz}/heymlz-main-body.png (100%) create mode 100644 frontend/public/img/heymlz/heymlz-pulling.webp create mode 100644 frontend/public/img/heymlz/heymlz-seat-2.webp rename frontend/public/img/{ => heymlz}/heymlz-seat.gif (100%) delete mode 100644 frontend/public/img/product-1.jpg delete mode 100644 frontend/vitest.config.ts diff --git a/frontend/app.vue b/frontend/app.vue index a73cb04..d570ea3 100644 --- a/frontend/app.vue +++ b/frontend/app.vue @@ -35,6 +35,6 @@ const closeModal = () => { /> - + diff --git a/frontend/components/cart/delivery/AddressModal.vue b/frontend/components/cart/delivery/AddressModal.vue index 5b2aff8..c8a33f5 100644 --- a/frontend/components/cart/delivery/AddressModal.vue +++ b/frontend/components/cart/delivery/AddressModal.vue @@ -109,7 +109,7 @@ watch( (newValue) => { if (!isEditing.value) { addressData.value.phone = - newValue == "بله" ? account.value?.phone : ""; + newValue == "بله" ? account.value!.phone : ""; } }, { diff --git a/frontend/components/cart/global/CartSummary.vue b/frontend/components/cart/global/CartSummary.vue index 8ed8a79..fe35394 100644 --- a/frontend/components/cart/global/CartSummary.vue +++ b/frontend/components/cart/global/CartSummary.vue @@ -21,18 +21,17 @@ const discountCode = ref(cart.value?.discount_code?.code || ""); const { mutateAsync: submitDiscountCode, - isPending: submitDiscountCodeIsPending, + isPending: submitDiscountCodeIsPending } = useSubmitDiscountCode(); const { mutateAsync: deleteDiscountCode, - isPending: deleteDiscountCodeIsPending, + isPending: deleteDiscountCodeIsPending } = useDeleteDiscountCode(); // computed -const nextPage: ComputedRef<{ name: string; label: string } | undefined> = - computed(() => route.meta.nextPage); +const nextPage = computed(() => route.meta.nextPage as { name: string; label: string } | undefined); const hasSubmittedDiscountCode = computed(() => !!cart.value?.discount_code); @@ -49,11 +48,11 @@ const handleSubmitDiscountCode = () => { addToast({ message: "خطایی در ثبت کد تخفیف رخ داد", options: { - status: "error", - }, + status: "error" + } }); discountCode.value = ""; - }, + } } ); }; @@ -68,11 +67,11 @@ const handleDeleteDiscountCode = () => { addToast({ message: "خطایی در حذف کد تخفیف رخ داد", options: { - status: "error", - }, + status: "error" + } }); discountCode.value = ""; - }, + } }); }; diff --git a/frontend/components/cart/global/OrderSummary.vue b/frontend/components/cart/global/OrderSummary.vue index 026a3aa..3a08d1b 100644 --- a/frontend/components/cart/global/OrderSummary.vue +++ b/frontend/components/cart/global/OrderSummary.vue @@ -44,7 +44,7 @@ const { data: cart, isLoading: cartIsLoading } = useGetCartOrders();