From 0337cebc63e6ce507a6652da4c0cec18e819ca9b Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Thu, 15 Jan 2026 00:33:17 +0700 Subject: [PATCH] Simplify OfferResultCard and use daisyUI Steps - Remove sourceName, latitude, longitude props from OfferResultCard - Remove LocationMiniMap component (not needed, main map is on the side) - Convert RouteStepper to use daisyUI steps-horizontal - Update hub page and CalcResultContent to remove unused props --- app/components/CalcResultContent.vue | 3 - app/components/catalog/LocationMiniMap.vue | 103 --------------------- app/components/catalog/OfferResultCard.vue | 33 ++----- app/components/catalog/RouteStepper.vue | 20 ++-- app/pages/catalog/hubs/[id].vue | 3 - 5 files changed, 19 insertions(+), 143 deletions(-) delete mode 100644 app/components/catalog/LocationMiniMap.vue diff --git a/app/components/CalcResultContent.vue b/app/components/CalcResultContent.vue index bfe6814..ce17d53 100644 --- a/app/components/CalcResultContent.vue +++ b/app/components/CalcResultContent.vue @@ -20,14 +20,11 @@ diff --git a/app/components/catalog/LocationMiniMap.vue b/app/components/catalog/LocationMiniMap.vue deleted file mode 100644 index 59a9706..0000000 --- a/app/components/catalog/LocationMiniMap.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - diff --git a/app/components/catalog/OfferResultCard.vue b/app/components/catalog/OfferResultCard.vue index 69207ef..31980da 100644 --- a/app/components/catalog/OfferResultCard.vue +++ b/app/components/catalog/OfferResultCard.vue @@ -1,32 +1,18 @@ @@ -34,14 +20,11 @@ import type { RouteStage } from './RouteStepper.vue' const props = withDefaults(defineProps<{ - sourceName: string locationName?: string productName?: string pricePerUnit?: number | null currency?: string | null unit?: string | null - latitude?: number | null - longitude?: number | null stages?: RouteStage[] }>(), { stages: () => [] diff --git a/app/components/catalog/RouteStepper.vue b/app/components/catalog/RouteStepper.vue index 83b0829..cb85275 100644 --- a/app/components/catalog/RouteStepper.vue +++ b/app/components/catalog/RouteStepper.vue @@ -1,13 +1,14 @@