From 8ac93e4ec313256fe1fc68b5b652b66aee94197f Mon Sep 17 00:00:00 2001 From: Zh3nyaZh3nya Date: Wed, 11 Dec 2024 13:35:24 +0500 Subject: [PATCH] added new components galleries --- package.json | 2 +- playground/nuxt.config.ts | 4 +- src/module.ts | 20 ++ src/runtime/components/Pages/TestVuetify.vue | 173 ++++++++++--- src/runtime/components/Parts/Gallery/Row.vue | 88 +++++++ src/runtime/components/Parts/Gallery/View.vue | 229 ++++++++++++++++++ 6 files changed, 487 insertions(+), 29 deletions(-) create mode 100644 src/runtime/components/Parts/Gallery/Row.vue create mode 100644 src/runtime/components/Parts/Gallery/View.vue diff --git a/package.json b/package.json index 59bd713..ea34687 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ibecsystems/nuxt3-ui-kit", - "version": "1.0.57", + "version": "1.0.58", "description": "Ibec Nuxt3 UI components", "repository": { "type": "git", diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index 24c50f6..b40e00a 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -51,7 +51,9 @@ export default defineNuxtConfig({ 'partsCardErgNews', 'partsFilesErg', 'partsPagination', - 'pagesErrorErg' + 'pagesErrorErg', + 'partsGalleryRow', + 'partsGalleryView' ] }, devtools: { enabled: false }, diff --git a/src/module.ts b/src/module.ts index ab6c542..b4f8511 100644 --- a/src/module.ts +++ b/src/module.ts @@ -192,5 +192,25 @@ export default defineNuxtModule({ ), }); } + + // Gallery + + if (options.components.includes("partsGalleryRow")) { + addComponent({ + name: "partsGalleryRow", + filePath: resolver.resolve( + "runtime/components/Parts/Gallery/Row.vue" + ), + }); + } + + if (options.components.includes("partsGalleryView")) { + addComponent({ + name: "partsGalleryView", + filePath: resolver.resolve( + "runtime/components/Parts/Gallery/View.vue" + ), + }); + } }, }); diff --git a/src/runtime/components/Pages/TestVuetify.vue b/src/runtime/components/Pages/TestVuetify.vue index 9e14799..c1a7138 100644 --- a/src/runtime/components/Pages/TestVuetify.vue +++ b/src/runtime/components/Pages/TestVuetify.vue @@ -42,33 +42,43 @@
- - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + gfdgfsdgf + +
@@ -100,6 +110,115 @@ + + diff --git a/src/runtime/components/Parts/Gallery/View.vue b/src/runtime/components/Parts/Gallery/View.vue new file mode 100644 index 0000000..0ed1632 --- /dev/null +++ b/src/runtime/components/Parts/Gallery/View.vue @@ -0,0 +1,229 @@ + + + + +