From 1fd9fd292db7639cd88c22c5b262af8a66ae9fcf 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: Tue, 6 Aug 2024 10:47:36 +0300 Subject: [PATCH] feat: add breadcrumbs --- src/features/breadcrumbs/index.ts | 1 + src/features/breadcrumbs/ui/Breadcrumbs.vue | 41 +++++++++++++++++++++ src/features/breadcrumbs/ui/index.ts | 1 + src/pages/catalog/ui/CatalogPage.vue | 21 ++++++++--- src/pages/position/ui/PositionPage.vue | 24 +++++++++--- src/shared/ui/layouts/StandardLayout.vue | 2 +- src/widgets/header/ui/Header.vue | 8 +++- 7 files changed, 84 insertions(+), 14 deletions(-) create mode 100644 src/features/breadcrumbs/index.ts create mode 100644 src/features/breadcrumbs/ui/Breadcrumbs.vue create mode 100644 src/features/breadcrumbs/ui/index.ts diff --git a/src/features/breadcrumbs/index.ts b/src/features/breadcrumbs/index.ts new file mode 100644 index 0000000..359a27a --- /dev/null +++ b/src/features/breadcrumbs/index.ts @@ -0,0 +1 @@ +export { Breadcrumbs } from './ui' diff --git a/src/features/breadcrumbs/ui/Breadcrumbs.vue b/src/features/breadcrumbs/ui/Breadcrumbs.vue new file mode 100644 index 0000000..39a2d3a --- /dev/null +++ b/src/features/breadcrumbs/ui/Breadcrumbs.vue @@ -0,0 +1,41 @@ + + + diff --git a/src/features/breadcrumbs/ui/index.ts b/src/features/breadcrumbs/ui/index.ts new file mode 100644 index 0000000..1d30591 --- /dev/null +++ b/src/features/breadcrumbs/ui/index.ts @@ -0,0 +1 @@ +export { Breadcrumbs } from './Breadcrumbs.vue' diff --git a/src/pages/catalog/ui/CatalogPage.vue b/src/pages/catalog/ui/CatalogPage.vue index 1545347..5fabe65 100644 --- a/src/pages/catalog/ui/CatalogPage.vue +++ b/src/pages/catalog/ui/CatalogPage.vue @@ -5,6 +5,7 @@ import { Sidebar } from '~/src/widgets/sidebar' import { StandardLayout } from '~/src/shared/ui' import { Header } from '~/src/widgets/header' import { Footer } from '~/src/widgets/footer' +import Breadcrumbs from '~/src/features/breadcrumbs/ui/Breadcrumbs.vue' const { data: positions } = useCRMGetPositions('0') @@ -14,14 +15,24 @@ const { data: positions } = useCRMGetPositions('0') -
- -
-
- +
+
+ +

+ Все товары +

+
+ +
+ +
+
+ +
+ diff --git a/src/pages/position/ui/PositionPage.vue b/src/pages/position/ui/PositionPage.vue index 5473f80..e94560e 100644 --- a/src/pages/position/ui/PositionPage.vue +++ b/src/pages/position/ui/PositionPage.vue @@ -1,14 +1,18 @@