From 1433b110ae7390cb1b80dcc54c9e46e041256251 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Sat, 8 Mar 2025 20:25:14 +0330 Subject: [PATCH 01/20] new sw.js version --- frontend/public/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/sw.js b/frontend/public/sw.js index b25248c..d8942a8 100644 --- a/frontend/public/sw.js +++ b/frontend/public/sw.js @@ -5,7 +5,7 @@ precacheAndRoute(self.__WB_MANIFEST); // Version -const VERSION = "1.0.9112"; +const VERSION = "1.0.2"; // Service Worker Installation self.addEventListener("install", (event) => { From 6f6d4d98f7364a790ec987a936391b807d7542a3 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Sat, 8 Mar 2025 20:32:00 +0330 Subject: [PATCH 02/20] update docker build --- frontend/dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/dockerfile b/frontend/dockerfile index ab0000d..72f8fd6 100644 --- a/frontend/dockerfile +++ b/frontend/dockerfile @@ -1,11 +1,11 @@ -FROM node:20-alpine AS build-stage +FROM node:20-alpine as build-stage WORKDIR /app COPY package*.json ./ RUN npm install --force COPY . . RUN npm run build -FROM node:20-alpine AS production-stage +FROM node:20-alpine as production-stage WORKDIR /app COPY --from=build-stage /app /app EXPOSE 3000 From 3a3706f1f9a9a8f8a89751389f12500d31187bfb Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Sat, 8 Mar 2025 23:22:25 +0330 Subject: [PATCH 03/20] show otp --- backend/account/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/account/views.py b/backend/account/views.py index 77c067f..64d6fac 100644 --- a/backend/account/views.py +++ b/backend/account/views.py @@ -61,7 +61,7 @@ Code: {otp}""" # response = sms_api.send_otp_sms(otp_input) if response['statusCode'] == 200: - return Response({'detail': 'OTP sent successfully'}, status=status.HTTP_200_OK) + return Response({'detail': f'OTP sent successfully {otp}'}, status=status.HTTP_200_OK) else: print(response) return Response({'detail': f'مشکلی در ارسال کد رخ داد'}, status=status.HTTP_200_OK) From 6508035856e3e6957247828b311075b936f988c3 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 9 Mar 2025 01:01:40 +0330 Subject: [PATCH 04/20] Add static-icon class for disabling icon color changes --- frontend/assets/css/input.comp.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/assets/css/input.comp.css b/frontend/assets/css/input.comp.css index 391c5d0..5c82387 100644 --- a/frontend/assets/css/input.comp.css +++ b/frontend/assets/css/input.comp.css @@ -1,6 +1,6 @@ @utility input-outlined-error { @apply text-danger-600 border-danger-600; - svg[class~=iconify] path { + svg[class~=iconify]:not(.static-icon) path { @apply stroke-danger-600; } } @@ -11,7 +11,7 @@ @utility input-outlined-disabled { @apply text-slate-300 border-slate-200; - svg[class~=iconify] path { + svg[class~=iconify]:not(.static-icon) path { @apply stroke-slate-300; } } @@ -28,7 +28,7 @@ &:focus-within { @apply border-black text-black; - svg[class~=iconify] path { + svg[class~=iconify]:not(.static-icon) path { @apply stroke-black; } } @@ -37,7 +37,7 @@ @utility input-outlined { @apply text-slate-500 border-slate-200; - svg[class~=iconify] path { + svg[class~=iconify]:not(.static-icon) path { @apply stroke-slate-500; } } From 949fbbb2e12ea863dafaf86fae3b08a772b0ba82 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 9 Mar 2025 01:01:46 +0330 Subject: [PATCH 05/20] Update containers --- frontend/assets/css/tailwind.css | 43 +++++++++++++------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/frontend/assets/css/tailwind.css b/frontend/assets/css/tailwind.css index ce44cf6..5143a81 100644 --- a/frontend/assets/css/tailwind.css +++ b/frontend/assets/css/tailwind.css @@ -10,6 +10,11 @@ @import "./fonts/yekan-bakh.css"; @theme { + + /* CONTAINER */ + + --app-container-padding: 20px; + /* COLORS */ --color-slate-50: hsl(210, 40%, 98%); --color-slate-100: hsl(210, 40%, 96%); @@ -128,6 +133,8 @@ /* ANIMATIONS */ --animate-marquee: marquee 20s linear infinite; --animate-marquee-reverse: marquee 20s linear infinite reverse; + --animate-fade-in: fadeIn 350ms ease-in-out; + --animate-slide-down: slideDown 300ms ease-out; --animate-slide-up: slideUp 300ms ease-out; --animate-overlay-show: overlayShow 150ms ease-in; @@ -148,6 +155,16 @@ } } + @keyframes fadeIn { + from { + opacity: 0; + } + + to { + opacity: 1; + } + } + @keyframes slideDown { from { height: 0; @@ -265,31 +282,7 @@ /* CONTAINER */ @utility container { - @apply mx-auto px-6; - - @screen 2xs { - @apply px-4; - } - - @screen xs { - @apply px-4; - } - - @screen sm { - @apply px-4; - } - - @screen md { - @apply px-8; - } - - @screen lg { - @apply px-12; - } - - @screen xl { - @apply px-20; - } + @apply mx-auto px-[var(--app-container-padding)]; } @layer { From 2a1a2a4b5a3a293ad708834683a830fabfcd0c9e Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 9 Mar 2025 01:02:16 +0330 Subject: [PATCH 06/20] Responsive ProductCard component --- .../components/global/product/ProductCard.vue | 106 ++++++++++-------- 1 file changed, 59 insertions(+), 47 deletions(-) diff --git a/frontend/components/global/product/ProductCard.vue b/frontend/components/global/product/ProductCard.vue index 84939d7..ad2e634 100644 --- a/frontend/components/global/product/ProductCard.vue +++ b/frontend/components/global/product/ProductCard.vue @@ -33,60 +33,72 @@ const { colorObject } = useImageColor(`#product-image-${id.value}`); From 59da59d8162fff6eea02c9e906607e0671d547b2 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 9 Mar 2025 01:02:24 +0330 Subject: [PATCH 07/20] Updated --- frontend/components/global/Input.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/components/global/Input.vue b/frontend/components/global/Input.vue index f467f30..014c7a0 100644 --- a/frontend/components/global/Input.vue +++ b/frontend/components/global/Input.vue @@ -15,7 +15,7 @@ const props = withDefaults(defineProps(), { disabled: false, placeholder: "وارد نشده", }); -const { variant, message, error, disabled, modelValue } = toRefs(props); +const { variant, error, modelValue } = toRefs(props); // emits @@ -29,7 +29,7 @@ const inputRef = ref(null); const value = computed({ get: () => modelValue.value ?? "", - set: (value) => emit("update:modelValue", value), + set: (value) => emit("update:modelValue", value) }); const classes = computed(() => { @@ -41,8 +41,8 @@ const classes = computed(() => { "input-effects": !error.value, [variant.value === "solid" ? "input-solid-error" - : "input-outlined-error"]: error.value, - }, + : "input-outlined-error"]: error.value + } ]; }); From ea0aac93280580b9dc845111a6b48cf79c9aeef6 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 9 Mar 2025 01:02:35 +0330 Subject: [PATCH 08/20] Create products grid component --- frontend/components/global/ProductsGrid.vue | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 frontend/components/global/ProductsGrid.vue diff --git a/frontend/components/global/ProductsGrid.vue b/frontend/components/global/ProductsGrid.vue new file mode 100644 index 0000000..0b57388 --- /dev/null +++ b/frontend/components/global/ProductsGrid.vue @@ -0,0 +1,42 @@ + + + \ No newline at end of file From 6ca398b0c96b090abc2bd464fc85e40652f1a66f Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 9 Mar 2025 01:02:47 +0330 Subject: [PATCH 09/20] Responsive services highlights --- frontend/components/global/ServiceHighlights.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/components/global/ServiceHighlights.vue b/frontend/components/global/ServiceHighlights.vue index 296387e..ea8e905 100644 --- a/frontend/components/global/ServiceHighlights.vue +++ b/frontend/components/global/ServiceHighlights.vue @@ -35,11 +35,11 @@ const highlights = ref([