From 46fda097a2f6027d15eae1e4ae05fb8298594c56 Mon Sep 17 00:00:00 2001 From: The Nguyen <6950941+treoden@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:26:37 +0700 Subject: [PATCH 1/7] Revert "Reset tailwind configuration. Use the default options #322" This reverts commit 89393a867a1996ff212965bc8adc14c27e5a2da2. --- .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, 220 insertions(+), 113 deletions(-) diff --git a/.prettierignore b/.prettierignore index 58ad2bacf..b6d6f4433 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,6 +2,4 @@ /* # Except packages: -!/packages -!/themes -!/extensions \ No newline at end of file +!/packages \ 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 7b79084ee..233f3c1cf 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) => ( -
+
{a.attributeName}
@@ -79,7 +79,7 @@ export function AttributeFilter({ ); return ( -
  • +
  • +
    {_('Category')}
    diff --git a/packages/evershop/src/components/frontStore/catalog/product/list/List.jsx b/packages/evershop/src/components/frontStore/catalog/product/list/List.jsx index cd4bb5240..db6020151 100644 --- a/packages/evershop/src/components/frontStore/catalog/product/list/List.jsx +++ b/packages/evershop/src/components/frontStore/catalog/product/list/List.jsx @@ -19,16 +19,16 @@ export default function ProductList({ products = [], countPerRow = 3 }) { let className; switch (countPerRow) { case 3: - className = 'grid grid-cols-2 md:grid-cols-3 gap-10'; + className = 'grid grid-cols-2 md:grid-cols-3 gap-2'; break; case 4: - className = 'grid grid-cols-2 md:grid-cols-4 gap-10'; + className = 'grid grid-cols-2 md:grid-cols-4 gap-2'; break; case 5: - className = 'grid grid-cols-2 md:grid-cols-5 gap-10'; + className = 'grid grid-cols-2 md:grid-cols-5 gap-2'; break; default: - className = 'grid grid-cols-2 md:grid-cols-3 gap-10'; + className = 'grid grid-cols-2 md:grid-cols-3 gap-2'; } return ( diff --git a/packages/evershop/src/components/frontStore/catalog/product/list/Pagination.jsx b/packages/evershop/src/components/frontStore/catalog/product/list/Pagination.jsx index d0ac632b2..54c22824c 100644 --- a/packages/evershop/src/components/frontStore/catalog/product/list/Pagination.jsx +++ b/packages/evershop/src/components/frontStore/catalog/product/list/Pagination.jsx @@ -67,7 +67,7 @@ export function Pagination({ total, limit, currentPage }) { return (
    -
    diff --git a/packages/evershop/src/modules/checkout/pages/frontStore/checkout/Checkout.jsx b/packages/evershop/src/modules/checkout/pages/frontStore/checkout/Checkout.jsx index fcc07b134..576467e0d 100644 --- a/packages/evershop/src/modules/checkout/pages/frontStore/checkout/Checkout.jsx +++ b/packages/evershop/src/modules/checkout/pages/frontStore/checkout/Checkout.jsx @@ -20,7 +20,7 @@ function Steps() { function Breadcrumb() { const steps = useCheckoutSteps(); return ( -
    +
    {steps.map((step, index) => { const separator = index < steps.length - 1 ? ( @@ -57,12 +57,12 @@ function CompletedSteps() { } return ( -
    -
    +
    +
    {completedSteps.map((step) => (
    {step.previewTitle} @@ -105,7 +105,7 @@ export default function CheckoutPage({ getPaymentMethodAPI={getPaymentMethodAPI} checkoutSuccessUrl={checkoutSuccessUrl} > -
    +
    )} -

    {_('Shipping Method')}

    +

    {_('Shipping Method')}

    {addressProvided === true && methods.length === 0 && ( -
    +
    {_('Sorry, there is no available method for your address')}
    )} {addressProvided === false && ( -
    +
    {_('Please enter a shipping address in order to see shipping quotes')}
    )} {methods.length > 0 && ( -
    +
    +
    diff --git a/packages/evershop/src/modules/checkout/pages/frontStore/checkoutSuccess/CustomerInfo.jsx b/packages/evershop/src/modules/checkout/pages/frontStore/checkoutSuccess/CustomerInfo.jsx index c560d4d64..82c3846dd 100644 --- a/packages/evershop/src/modules/checkout/pages/frontStore/checkoutSuccess/CustomerInfo.jsx +++ b/packages/evershop/src/modules/checkout/pages/frontStore/checkoutSuccess/CustomerInfo.jsx @@ -46,11 +46,11 @@ export default function CustomerInfo({
    -
    -
    -
    -
    -
    +
    +
    +
    +
    +

    {_('Contact information')}

    @@ -59,7 +59,7 @@ export default function CustomerInfo({
    {customerEmail}
    -
    +

    {_('Shipping Address')}

    @@ -67,15 +67,15 @@ export default function CustomerInfo({
    -
    -
    -
    +
    +
    +

    {_('Payment Method')}

    {paymentMethodName}
    -
    +

    {_('Billing Address')}

    diff --git a/packages/evershop/src/modules/cms/pages/frontStore/all/Breadcrumb.jsx b/packages/evershop/src/modules/cms/pages/frontStore/all/Breadcrumb.jsx index 6fec69f18..5a5555c9e 100644 --- a/packages/evershop/src/modules/cms/pages/frontStore/all/Breadcrumb.jsx +++ b/packages/evershop/src/modules/cms/pages/frontStore/all/Breadcrumb.jsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; function Breadcrumb({ pageInfo: { breadcrumbs } }) { return breadcrumbs.length ? ( -
    +
    {breadcrumbs.map((breadcrumb, index) => index === breadcrumbs.length - 1 ? ( {breadcrumb.title} diff --git a/packages/evershop/src/modules/cms/pages/frontStore/all/Layout.jsx b/packages/evershop/src/modules/cms/pages/frontStore/all/Layout.jsx index fc54cf2e4..d65b168eb 100644 --- a/packages/evershop/src/modules/cms/pages/frontStore/all/Layout.jsx +++ b/packages/evershop/src/modules/cms/pages/frontStore/all/Layout.jsx @@ -17,7 +17,7 @@ export default function Layout() { component: { default: Area }, props: { id: 'icon-wrapper', - className: 'icon-wrapper flex justify-between space-x-5' + className: 'icon-wrapper flex justify-between space-x-1' }, sortOrder: 20 } diff --git a/packages/evershop/src/modules/cms/pages/frontStore/all/Menu.jsx b/packages/evershop/src/modules/cms/pages/frontStore/all/Menu.jsx index ec5c45c48..2fd1cd0e4 100644 --- a/packages/evershop/src/modules/cms/pages/frontStore/all/Menu.jsx +++ b/packages/evershop/src/modules/cms/pages/frontStore/all/Menu.jsx @@ -5,7 +5,7 @@ import './Menu.scss'; export default function Menu({ menu: { items } }) { return (
    -