From 06e2c6b5d07eb7ff116519feb400442206621fac Mon Sep 17 00:00:00 2001 From: The Nguyen <6950941+treoden@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:36:25 +0700 Subject: [PATCH 1/2] Fix loading extensions multiple time when no extension is actived --- packages/evershop/bin/extension/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/evershop/bin/extension/index.js b/packages/evershop/bin/extension/index.js index b68687e27..460238a22 100644 --- a/packages/evershop/bin/extension/index.js +++ b/packages/evershop/bin/extension/index.js @@ -5,7 +5,7 @@ const { getConfig } = require('@evershop/evershop/src/lib/util/getConfig'); const { getCoreModules } = require('@evershop/evershop/bin/lib/loadModules'); const { warning } = require('@evershop/evershop/src/lib/log/logger'); -let extensions = []; +let extensions; function loadExtensions() { const coreModules = getCoreModules(); @@ -42,7 +42,7 @@ function loadExtensions() { } module.exports.getEnabledExtensions = function getEnabledExtensions() { - if (extensions.length === 0) { + if (extensions === undefined) { extensions = loadExtensions(); } return extensions; From 89393a867a1996ff212965bc8adc14c27e5a2da2 Mon Sep 17 00:00:00 2001 From: The Nguyen <6950941+treoden@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:27:51 +0700 Subject: [PATCH 2/2] Reset tailwind configuration. Use the default options #322 --- .prettierignore | 4 +- .../categoryView/filter/AttributeFilter.jsx | 4 +- .../categoryView/filter/CategoryFilter.jsx | 2 +- .../frontStore/catalog/product/list/List.jsx | 8 +- .../catalog/product/list/Pagination.jsx | 2 +- .../catalog/product/list/Sorting.jsx | 4 +- .../catalog/product/list/item/Name.jsx | 2 +- .../frontStore/checkout/cart/Empty.jsx | 6 +- .../checkout/cart/items/ItemOptions.jsx | 2 +- .../cart/items/ItemVariantOptions.jsx | 2 +- .../frontStore/checkout/cart/items/Items.jsx | 6 +- .../payment/paymentStep/StepContent.jsx | 12 +- .../checkout/checkout/summary/Items.jsx | 2 +- .../checkout/checkout/summary/Items.scss | 1 - .../frontStore/customer/checkout/Edit.jsx | 6 +- .../stripe/checkout/CheckoutForm.jsx | 6 +- .../frontStore/stripe/checkout/TestCards.jsx | 4 +- .../graphql/types/Category/Category.graphql | 2 +- .../types/Collection/Collection.graphql | 2 +- .../frontStore/categoryView/CategoryView.jsx | 2 +- .../homepage/FeaturedCategories.jsx | 16 +-- .../frontStore/homepage/FeaturedProducts.jsx | 4 +- .../pages/frontStore/productView/Form.jsx | 6 +- .../frontStore/productView/GeneralInfo.jsx | 2 +- .../pages/frontStore/productView/Images.jsx | 2 +- .../pages/frontStore/productView/Layout.jsx | 2 +- .../pages/frontStore/productView/Variants.jsx | 19 +-- .../pages/frontStore/cart/ShoppingCart.jsx | 2 +- .../pages/frontStore/cart/Summary.jsx | 8 +- .../pages/frontStore/checkout/Checkout.jsx | 10 +- .../frontStore/checkout/ShippingMethods.jsx | 8 +- .../checkoutSuccess/CheckoutSuccess.jsx | 2 +- .../checkoutSuccess/CustomerInfo.jsx | 20 ++-- .../cms/pages/frontStore/all/Breadcrumb.jsx | 2 +- .../cms/pages/frontStore/all/Layout.jsx | 2 +- .../modules/cms/pages/frontStore/all/Menu.jsx | 2 +- .../services/tailwind.frontStore.config.js | 112 +----------------- .../frontStore/checkout/CashOnDelivery.jsx | 2 +- .../frontStore/account/AccountDetails.jsx | 6 +- .../pages/frontStore/account/Layout.jsx | 10 +- .../pages/frontStore/account/OrderHistory.jsx | 2 +- .../pages/frontStore/checkout/Paypal.jsx | 7 +- .../pages/frontStore/cart/Coupon.jsx | 4 +- .../pages/frontStore/checkout/Stripe.jsx | 4 +- 44 files changed, 113 insertions(+), 220 deletions(-) diff --git a/.prettierignore b/.prettierignore index b6d6f4433..58ad2bacf 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,4 +2,6 @@ /* # Except packages: -!/packages \ No newline at end of file +!/packages +!/themes +!/extensions \ No newline at end of file diff --git a/packages/evershop/src/components/frontStore/catalog/categoryView/filter/AttributeFilter.jsx b/packages/evershop/src/components/frontStore/catalog/categoryView/filter/AttributeFilter.jsx index 233f3c1cf..7b79084ee 100644 --- a/packages/evershop/src/components/frontStore/catalog/categoryView/filter/AttributeFilter.jsx +++ b/packages/evershop/src/components/frontStore/catalog/categoryView/filter/AttributeFilter.jsx @@ -66,7 +66,7 @@ export function AttributeFilter({ return ( <> {availableAttributes.map((a) => ( -