From a27e3ac63f3e42f63aef73aa7d6623e0c9da7819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=20=D0=A3=D0=BA=D0=BE=D0=BB=D0=BE=D0=B2?= <“ukolov.konst@gmail.com”> Date: Wed, 31 Jul 2024 12:40:02 +0300 Subject: [PATCH] feat: add server data for catalog --- orval.config.ts | 1 + src/entities/product/ui/ProductCard.vue | 74 ++++++++++++++++++++----- src/pages/catalog/ui/CatalogPage.vue | 6 +- src/shared/api/crm/crm.ts | 28 +++++----- 4 files changed, 80 insertions(+), 29 deletions(-) diff --git a/orval.config.ts b/orval.config.ts index 6b3443d..203b4b1 100644 --- a/orval.config.ts +++ b/orval.config.ts @@ -7,6 +7,7 @@ export default defineConfig({ target: 'src/shared/api', schemas: 'src/shared/model', client: 'vue-query', + baseUrl: 'https://cake-crm.3crabs.ru', // mock: true, }, input: './cakes.json', diff --git a/src/entities/product/ui/ProductCard.vue b/src/entities/product/ui/ProductCard.vue index d96c8ae..804a430 100644 --- a/src/entities/product/ui/ProductCard.vue +++ b/src/entities/product/ui/ProductCard.vue @@ -1,37 +1,85 @@