From 33336ef3b3235293d30f29c64fad1e7a674abb27 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 10:12:27 +0300
Subject: [PATCH] feat: add catalog page
---
app.config.ts | 4 +--
src/entities/product/index.ts | 1 +
src/entities/product/ui/ProductCard.vue | 38 ++++++++++++++++++++++++
src/entities/product/ui/index.ts | 1 +
src/pages/catalog/index.ts | 1 +
src/pages/catalog/ui/CatalogPage.vue | 12 ++++++++
src/pages/catalog/ui/index.ts | 1 +
src/shared/ui/components/InputNumber.vue | 34 +++++++++++++++++++++
src/shared/ui/components/index.ts | 1 +
src/shared/ui/index.ts | 1 +
10 files changed, 92 insertions(+), 2 deletions(-)
create mode 100644 src/entities/product/index.ts
create mode 100644 src/entities/product/ui/ProductCard.vue
create mode 100644 src/entities/product/ui/index.ts
create mode 100644 src/pages/catalog/index.ts
create mode 100644 src/pages/catalog/ui/CatalogPage.vue
create mode 100644 src/pages/catalog/ui/index.ts
create mode 100644 src/shared/ui/components/InputNumber.vue
create mode 100644 src/shared/ui/components/index.ts
create mode 100644 src/shared/ui/index.ts
diff --git a/app.config.ts b/app.config.ts
index 46952a6..260e93b 100644
--- a/app.config.ts
+++ b/app.config.ts
@@ -2,5 +2,5 @@ export default defineAppConfig({
ui: {
primary: 'lime',
gray: 'neutral',
- }
-})
\ No newline at end of file
+ },
+})
diff --git a/src/entities/product/index.ts b/src/entities/product/index.ts
new file mode 100644
index 0000000..5c91d75
--- /dev/null
+++ b/src/entities/product/index.ts
@@ -0,0 +1 @@
+export { ProductCard } from './ui'
diff --git a/src/entities/product/ui/ProductCard.vue b/src/entities/product/ui/ProductCard.vue
new file mode 100644
index 0000000..d96c8ae
--- /dev/null
+++ b/src/entities/product/ui/ProductCard.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+ {{ badge }}
+
+
+
+
+ 155 rub
+
+
+
+
+
Name
+
+ Price
+
+
+
+ Buy
+
+
+
+
+
+
diff --git a/src/entities/product/ui/index.ts b/src/entities/product/ui/index.ts
new file mode 100644
index 0000000..50c64fe
--- /dev/null
+++ b/src/entities/product/ui/index.ts
@@ -0,0 +1 @@
+export { default as ProductCard } from './ProductCard.vue'
diff --git a/src/pages/catalog/index.ts b/src/pages/catalog/index.ts
new file mode 100644
index 0000000..f2a2bfe
--- /dev/null
+++ b/src/pages/catalog/index.ts
@@ -0,0 +1 @@
+export { CatalogPage } from './ui'
diff --git a/src/pages/catalog/ui/CatalogPage.vue b/src/pages/catalog/ui/CatalogPage.vue
new file mode 100644
index 0000000..c9ecfcb
--- /dev/null
+++ b/src/pages/catalog/ui/CatalogPage.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/src/pages/catalog/ui/index.ts b/src/pages/catalog/ui/index.ts
new file mode 100644
index 0000000..7a76791
--- /dev/null
+++ b/src/pages/catalog/ui/index.ts
@@ -0,0 +1 @@
+export { default as CatalogPage } from './CatalogPage.vue'
diff --git a/src/shared/ui/components/InputNumber.vue b/src/shared/ui/components/InputNumber.vue
new file mode 100644
index 0000000..c224346
--- /dev/null
+++ b/src/shared/ui/components/InputNumber.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
diff --git a/src/shared/ui/components/index.ts b/src/shared/ui/components/index.ts
new file mode 100644
index 0000000..f92ff64
--- /dev/null
+++ b/src/shared/ui/components/index.ts
@@ -0,0 +1 @@
+export { default as InputNumber } from './InputNumber.vue'
diff --git a/src/shared/ui/index.ts b/src/shared/ui/index.ts
new file mode 100644
index 0000000..5f2c191
--- /dev/null
+++ b/src/shared/ui/index.ts
@@ -0,0 +1 @@
+export { InputNumber } from './components'