From 21366392efa376d3d5bb86ef9cf25afc434a0a42 Mon Sep 17 00:00:00 2001 From: Marcin Kwiatkowski Date: Thu, 3 Feb 2022 09:07:43 +0100 Subject: [PATCH] chore: release 1.0.0-rc.5.4 --- .env.example | 19 + components/AppHeader.vue | 9 +- components/BottomNavigation.vue | 17 +- components/CartSidebar.vue | 30 +- components/Checkout/CartPreview.vue | 9 +- components/Checkout/VsfShippingProvider.vue | 12 +- components/CurrencySelector.vue | 2 +- components/InstagramFeed.vue | 52 +-- components/LoginModal.vue | 105 +++-- components/MobileStoreBanner.vue | 12 +- components/MyAccount/AddressForm.vue | 33 +- components/MyAccount/PasswordResetForm.vue | 10 +- components/MyAccount/ProfileUpdateForm.vue | 8 +- components/ProductAddReviewForm.vue | 22 +- components/Products/BundleProductSelector.vue | 27 +- .../Products/GroupedProductSelector.vue | 15 +- components/ProductsCarousel.vue | 47 +- components/SearchResults.vue | 89 +++- components/StoreSwitcher.vue | 8 +- components/WishlistSidebar.vue | 31 +- components/__tests__/LoginModal.spec.js | 214 ++++++++++ .../__tests__/ProductAddReviewForm.spec.js | 133 ++++++ composables/index.ts | 1 + .../useImage/__tests__/useImage.spec.js | 47 ++ composables/useImage/index.ts | 33 ++ composables/useMagentoConfiguration.ts | 39 +- composables/useUiNotification/index.ts | 3 +- config.js | 62 +++ config/example.json | 13 +- enums/imageEnums.js | 14 + helpers/__tests__/asyncLocalStorage.spec.js | 70 +++ helpers/__tests__/formatCurrency.spec.js | 16 + helpers/asyncLocalStorage.ts | 42 ++ helpers/checkout/__tests__/steps.spec.js | 26 ++ helpers/checkout/steps.ts | 6 + helpers/formatCurrency.ts | 11 + lang/de.js | 392 ++++++++++------- lang/en.js | 404 ++++++++++-------- layouts/default.vue | 39 +- middleware.config.js | 9 + nuxt.config.js | 57 ++- package.json | 7 +- pages/Category.vue | 122 +++++- pages/Checkout.vue | 60 ++- pages/Checkout/Billing.vue | 73 +++- pages/Checkout/Payment.vue | 43 +- pages/Checkout/Shipping.vue | 21 +- pages/Checkout/UserAccount.vue | 44 +- pages/Checkout/__tests__/Shipping.spec.js | 44 ++ pages/Checkout/__tests__/UserAccount.spec.js | 157 ++++++- pages/Home.vue | 55 ++- pages/MyAccount.vue | 33 +- pages/MyAccount/AddressesDetails.vue | 11 +- pages/MyAccount/MyNewsletter.vue | 4 +- pages/MyAccount/MyProfile.vue | 23 +- pages/MyAccount/MyReviews.vue | 21 +- pages/MyAccount/MyWishlist.vue | 93 +++- pages/MyAccount/OrderHistory.vue | 27 +- pages/Page.vue | 6 +- pages/Product.vue | 19 +- pages/ResetPassword.vue | 40 +- pages/__tests__/ResetPassword.spec.js | 71 +++ plugins/__tests__/fcPlugin.spec.js | 10 + plugins/__tests__/i18n.spec.js | 20 +- plugins/__tests__/token-expired.spec.js | 40 +- plugins/fcPlugin.ts | 20 + plugins/i18n.ts | 33 +- plugins/token-expired.js | 27 -- plugins/token-expired.ts | 44 ++ serverMiddleware/body-parser.js | 5 + test-utils.js | 20 +- test-utils/mocks/index.js | 10 +- test-utils/mocks/useBilling.js | 16 + test-utils/mocks/useCountrySearch.js | 5 + test-utils/mocks/useForgotPassword.js | 11 + test-utils/mocks/useReview.js | 26 ++ test-utils/mocks/useShipping.js | 5 + test-utils/mocks/useUser.js | 18 +- test-utils/mocks/useUserBilling.js | 14 + tsconfig.json | 3 +- 80 files changed, 2667 insertions(+), 822 deletions(-) create mode 100644 components/__tests__/LoginModal.spec.js create mode 100644 components/__tests__/ProductAddReviewForm.spec.js create mode 100644 composables/useImage/__tests__/useImage.spec.js create mode 100644 composables/useImage/index.ts create mode 100644 enums/imageEnums.js create mode 100644 helpers/__tests__/asyncLocalStorage.spec.js create mode 100644 helpers/__tests__/formatCurrency.spec.js create mode 100644 helpers/asyncLocalStorage.ts create mode 100644 helpers/checkout/__tests__/steps.spec.js create mode 100644 helpers/checkout/steps.ts create mode 100644 helpers/formatCurrency.ts create mode 100644 pages/Checkout/__tests__/Shipping.spec.js create mode 100644 pages/__tests__/ResetPassword.spec.js create mode 100644 plugins/__tests__/fcPlugin.spec.js create mode 100644 plugins/fcPlugin.ts delete mode 100644 plugins/token-expired.js create mode 100644 plugins/token-expired.ts create mode 100644 serverMiddleware/body-parser.js create mode 100644 test-utils/mocks/useBilling.js create mode 100644 test-utils/mocks/useCountrySearch.js create mode 100644 test-utils/mocks/useForgotPassword.js create mode 100644 test-utils/mocks/useReview.js create mode 100644 test-utils/mocks/useShipping.js create mode 100644 test-utils/mocks/useUserBilling.js diff --git a/.env.example b/.env.example index 9663e1d..5ef8ad1 100644 --- a/.env.example +++ b/.env.example @@ -6,3 +6,22 @@ MAGENTO_GRAPHQL=https://{YOUR_SITE_FRONT_URL}/graphql MAGENTO_EXTERNAL_CHECKOUT=false MAGENTO_EXTERNAL_CHECKOUT_URL=https://{YOUR_SITE_FRONT_URL} MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH=/vue/cart/sync +MAGENTO_BASE_URL={YOUR_SITE_FRONT_URL} +IMAGE_PROVIDER={YOUR_IMAGE_PROVIDER} +IMAGE_PROVIDER_BASE_URL={YOUR_IMAGE_PROVIDER_BASE_URL} +MAGENTO_BASE_URL={YOUR_SITE_FRONT_URL} +IMAGE_PROVIDER={YOUR_IMAGE_PROVIDER} +IMAGE_PROVIDER_BASE_URL={YOUR_IMAGE_PROVIDER_BASE_URL} +REDIS__HOST=127.0.0.1 +REDIS__PORT=6379 +REDIS_PASSWORD= +REDIS__KEY_PREFIX= +REDIS__CACHE_INVALIDATE_URL=/cache-invalidate +REDIS__ENABLED=false +RECAPTCHA_ENABLED=true +RECAPTCHA_HIDE_BADGE=false +RECAPTCHA_VERSION=3 +RECAPTCHA_SITE_KEY= +RECAPTCHA_SECRET_KEY= +RECAPTCHA_SIZE=invisible +RECAPTCHA_MIN_SCORE=0.5 diff --git a/components/AppHeader.vue b/components/AppHeader.vue index fa12218..ed46990 100644 --- a/components/AppHeader.vue +++ b/components/AppHeader.vue @@ -10,10 +10,12 @@ :to="localePath('/')" class="sf-header__logo" > - @@ -155,7 +157,6 @@