From 6796213ccf367efb48772f665cc26fce5f9b2bb7 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Thu, 14 May 2026 21:18:44 +0330 Subject: [PATCH] Update comment flow --- .../global/product-detail/Rating.vue | 2 +- .../components/global/product/Comment.vue | 5 +- .../components/product/ProductComments.vue | 143 +++++++++++++++--- .../components/product/ProductHero/index.vue | 8 +- .../api/product/useCreateComment.ts | 1 + .../composables/api/product/useRateProduct.ts | 32 ++++ frontend/constants/index.ts | 1 + frontend/pages/product/[id].vue | 2 +- frontend/types/global.d.ts | 4 +- 9 files changed, 168 insertions(+), 30 deletions(-) create mode 100644 frontend/composables/api/product/useRateProduct.ts diff --git a/frontend/components/global/product-detail/Rating.vue b/frontend/components/global/product-detail/Rating.vue index bd75dee..b4ffc64 100644 --- a/frontend/components/global/product-detail/Rating.vue +++ b/frontend/components/global/product-detail/Rating.vue @@ -14,7 +14,7 @@ defineProps();