From c97bf51b0df1f582e35ec8e49de32688e42c2500 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Sat, 27 Apr 2024 19:56:21 +0100 Subject: [PATCH] Fix images --- CHANGELOG.md | 16 ---------------- netlify.toml | 9 --------- woonuxt_base/components/CategoryCard.vue | 5 +++-- .../components/generalElements/HeroBanner.vue | 6 ++++-- .../components/productElements/ProductCard.vue | 3 ++- .../productElements/ProductImageGallery.vue | 11 +++++++---- 6 files changed, 16 insertions(+), 34 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100644 netlify.toml diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 2da42ac..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,16 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. I'll try my best to keep it updated. - -## 3.4.27 (06-04-2024) - -### Bug Fixes - -- The default variation is now respected. Also, if there are no defaults set, the first of each attribute is selected. IMO I think that is better than having the user select the first option for each attribute. [#141](https://github.com/scottyzen/woonuxt/issues/141) - -## 3.4.26 (06-04-2024) - -### Bug Fixes - -- Fix bug where a product variation that wasn't available was able to be added to the cart. -- Product gallery showing not all variations and won't change image [#139](https://github.com/scottyzen/woonuxt/issues/139) diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 36c1f95..0000000 --- a/netlify.toml +++ /dev/null @@ -1,9 +0,0 @@ -[template.environment] - GQL_HOST = "WordPress URL http://example.com" - NUXT_IMAGE_DOMAINS = "Comma separated list of domains. example.com,example2.com" - -[build] - command = "nuxt generate" - -[images] - remote_images = ["https://secure.woonuxt.com/.*"] diff --git a/woonuxt_base/components/CategoryCard.vue b/woonuxt_base/components/CategoryCard.vue index b95bd15..b0bebac 100644 --- a/woonuxt_base/components/CategoryCard.vue +++ b/woonuxt_base/components/CategoryCard.vue @@ -14,11 +14,12 @@ const ImageHeight = Math.round(imageWidth * 1.25); + loading="lazy" + placeholder />
diff --git a/woonuxt_base/components/generalElements/HeroBanner.vue b/woonuxt_base/components/generalElements/HeroBanner.vue index 7746e26..d7dbf59 100644 --- a/woonuxt_base/components/generalElements/HeroBanner.vue +++ b/woonuxt_base/components/generalElements/HeroBanner.vue @@ -3,13 +3,15 @@ + preload + placeholder + placeholder-class="blur-xl" />

Just landed.

The New Year Collection

diff --git a/woonuxt_base/components/productElements/ProductCard.vue b/woonuxt_base/components/productElements/ProductCard.vue index baaf059..cdb0b3b 100644 --- a/woonuxt_base/components/productElements/ProductCard.vue +++ b/woonuxt_base/components/productElements/ProductCard.vue @@ -48,7 +48,8 @@ const imagetoDisplay = computed(() => { :alt="node.image?.altText || node.name" :title="node.image?.title || node.name" :loading="index <= 3 ? 'eager' : 'lazy'" - class="skeleton" /> + placeholder + placeholder-class="blur-xl" />
diff --git a/woonuxt_base/components/productElements/ProductImageGallery.vue b/woonuxt_base/components/productElements/ProductImageGallery.vue index 9c17b7c..e10f0cc 100644 --- a/woonuxt_base/components/productElements/ProductImageGallery.vue +++ b/woonuxt_base/components/productElements/ProductImageGallery.vue @@ -41,25 +41,28 @@ watch(
+ fetchpriority="high" + placeholder + placeholder-class="blur-xl" />