From a7b7cb3697f360ba1d5948e7dbd374917463ed4b Mon Sep 17 00:00:00 2001 From: carojansing Date: Wed, 11 Sep 2024 07:28:28 +0200 Subject: [PATCH 1/7] BUS-795-CMS-Block+Element-Three-Collumns-Product-Boxes --- .env.example | 2 +- bun.lockb | Bin 456836 -> 456836 bytes .../cms/block/CmsBlockProductThreeColumn.vue | 21 +++ .../cms/element/CmsElementProductBox.vue | 14 ++ nuxt.config.ts | 128 ++++++++++-------- pages/[...all].vue | 1 + 6 files changed, 107 insertions(+), 59 deletions(-) create mode 100644 components/cms/block/CmsBlockProductThreeColumn.vue create mode 100644 components/cms/element/CmsElementProductBox.vue diff --git a/.env.example b/.env.example index 9f6ac385..129ffaa1 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,2 @@ NUXT_PUBLIC_POND_SHOPWARE_ENDPOINT=http://localhost -NUXT_PUBLIC_POND_ACCESS_TOKEN= +NUXT_PUBLIC_POND_ACCESS_TOKEN=SWSCZHNVCVDZCK5SCDNRBJJ3UW diff --git a/bun.lockb b/bun.lockb index 38159fae45e8e2baf3ca800361476a0b9a673c39..9f7fd0182473c31402c6b9b76bb32ccdd83002cf 100755 GIT binary patch delta 211 zcmZqqDBbc=x}k-!g{g&k3(LzTjAqkcEn(TpXf%DnQWhx_Lxy<_3=G^13=M0zRy}CB z*?fbEG0s5GRL_KgVI@#T4k)u?VXKP7o1Pe;jG>;9p275YOIalSjTjhi0Tu876|9|O zzqH9fRu`neK+n)n&+r*k=H>U8Ws>i!{vu>ji*qvbN*EY+hBQ>K7g+HFC}XK-sb@Gn sY#ECYvoX;0?qw{-j26@PFJqBlG@c%i$SU9deHjZ7vu^*sjIB2i00tXG!vFvP delta 187 zcmZqqDBbc=x}k-!g{g&k3(LzTjHc6HEn(TpXgGbrQWhx_1BQ7F3=G^13=M0zRy}CB z*?fbEG0s5GRL_usVI@#T4k)u?VXKP7o1Pe;jG>-^p5gR&OIakRUtG;1YxE4Lga@eP z<@cCnlJBejf|LMN0F|W{=Va!UFfi;4X{cT=u;K?$#u8|(!St|YEJn;mdPdW`m$4W# e8cg56j70)S1thY{w|`&80>rG_zb|9!4FmvDV?a>= diff --git a/components/cms/block/CmsBlockProductThreeColumn.vue b/components/cms/block/CmsBlockProductThreeColumn.vue new file mode 100644 index 00000000..95daeeab --- /dev/null +++ b/components/cms/block/CmsBlockProductThreeColumn.vue @@ -0,0 +1,21 @@ + + + diff --git a/components/cms/element/CmsElementProductBox.vue b/components/cms/element/CmsElementProductBox.vue new file mode 100644 index 00000000..043e6908 --- /dev/null +++ b/components/cms/element/CmsElementProductBox.vue @@ -0,0 +1,14 @@ + + + \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index 50c42422..bc8546d3 100755 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -5,61 +5,73 @@ const currentDir = dirname(fileURLToPath(import.meta.url)); // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - devtools: { enabled: true }, - modules: [ - '@pinia/nuxt', - '@nuxtjs/tailwindcss', - '@formkit/auto-animate/nuxt', - '@vueuse/nuxt', - 'radix-vue/nuxt', - '@nuxt/eslint', - '@nuxt/fonts', - '@formkit/nuxt', - ], - experimental: { - asyncContext: true, - sharedPrerenderData: true, - typedPages: true, - viewTransition: true, - }, - features: { - devLogs: true, - }, - future: { - compatibilityVersion: 4, - }, - runtimeConfig: { - public: { - pond: { - shopwareEndpoint: '', - accessToken: '', - }, - }, - }, - imports: { - dirs: [ - join(currentDir, 'composables/**'), - join(currentDir, 'utils'), - './node_modules/@shopware-pwa/composables-next/composables', - ], - }, - formkit: { - autoImport: true, - }, - fonts: { - defaults: { - weights: [100, 200, 300, 400, 500, 600, 700, 800, 900], - styles: ['normal', 'italic'], - }, - }, - components: { - dirs: [join(currentDir, 'components')], - global: true, - }, - tailwindcss: { - config: { - content: [join(currentDir, 'formkit.theme.ts')], - }, - }, - css: ['~/node_modules/@glidejs/glide/dist/css/glide.core.min.css'], -}); + devtools: { enabled: true }, + + modules: [ + '@pinia/nuxt', + '@nuxtjs/tailwindcss', + '@formkit/auto-animate/nuxt', + '@vueuse/nuxt', + 'radix-vue/nuxt', + '@nuxt/eslint', + '@nuxt/fonts', + '@formkit/nuxt', + ], + + experimental: { + asyncContext: true, + sharedPrerenderData: true, + typedPages: true, + viewTransition: true, + }, + + features: { + devLogs: true, + }, + + future: { + compatibilityVersion: 4, + }, + + runtimeConfig: { + public: { + pond: { + shopwareEndpoint: '', + accessToken: '', + }, + }, + }, + + imports: { + dirs: [ + join(currentDir, 'composables/**'), + join(currentDir, 'utils'), + './node_modules/@shopware-pwa/composables-next/composables', + ], + }, + + formkit: { + autoImport: true, + }, + + fonts: { + defaults: { + weights: [100, 200, 300, 400, 500, 600, 700, 800, 900], + styles: ['normal', 'italic'], + }, + }, + + components: { + dirs: [join(currentDir, 'components')], + global: true, + }, + + tailwindcss: { + config: { + content: [join(currentDir, 'formkit.theme.ts')], + }, + }, + + css: ['~/node_modules/@glidejs/glide/dist/css/glide.core.min.css'], + compatibilityDate: '2024-09-05', +}); \ No newline at end of file diff --git a/pages/[...all].vue b/pages/[...all].vue index 4a047ddf..0a90cdd3 100644 --- a/pages/[...all].vue +++ b/pages/[...all].vue @@ -1,5 +1,6 @@ \ No newline at end of file + + From e860e937ee72e9f394bc1c540f53b7c673b86297 Mon Sep 17 00:00:00 2001 From: carojansing <88533476+carojansing@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:17:36 +0200 Subject: [PATCH 7/7] Update components/cms/element/CmsElementProductBox.vue Co-authored-by: Magnus Borgmann --- components/cms/element/CmsElementProductBox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cms/element/CmsElementProductBox.vue b/components/cms/element/CmsElementProductBox.vue index aa4d4dd5..37a92eff 100644 --- a/components/cms/element/CmsElementProductBox.vue +++ b/components/cms/element/CmsElementProductBox.vue @@ -9,5 +9,5 @@ const { product } = useProduct(props.element.data.product);