basklee-nuxt 0.0.0-stage → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1190 -2
- package/bin/basklee-nuxt.mjs +173 -0
- package/package.json +69 -4
- package/runtime/api.mjs +14 -0
- package/runtime/domain.mjs +15 -0
- package/runtime/marketplace.mjs +905 -0
- package/runtime/seo.mjs +17 -0
- package/src/asset-loading-plugin.mjs +10 -0
- package/src/favicon-handler.mjs +12 -0
- package/src/install.mjs +361 -0
- package/src/migrate.mjs +124 -0
- package/src/module.d.ts +3 -0
- package/src/module.mjs +88 -0
- package/src/project-readme.mjs +702 -0
- package/src/service.mjs +186 -0
- package/src/setup.mjs +250 -0
- package/src/sitemap.mjs +93 -0
- package/src/update.mjs +54 -0
- package/src/validation.mjs +33 -0
- package/templates/.vscode/settings.json +5 -0
- package/templates/app/app.vue +52 -0
- package/templates/app/assets/css/basklee-tokens.css +21 -0
- package/templates/app/assets/css/basklee.css +28 -0
- package/templates/app/components/basklee/account/AccountActivity.README.md +31 -0
- package/templates/app/components/basklee/account/AccountActivity.vue +61 -0
- package/templates/app/components/basklee/account/AccountPromocodes.README.md +50 -0
- package/templates/app/components/basklee/account/AccountPromocodes.vue +267 -0
- package/templates/app/components/basklee/account/AccountSection.README.md +31 -0
- package/templates/app/components/basklee/account/AccountSection.vue +132 -0
- package/templates/app/components/basklee/account/ProfileAvatar.vue +139 -0
- package/templates/app/components/basklee/account/ProfileDeleteAccount.vue +161 -0
- package/templates/app/components/basklee/account/ProfileDetailsForm.vue +182 -0
- package/templates/app/components/basklee/account/ProfileEmailSettings.vue +269 -0
- package/templates/app/components/basklee/account/ProfilePasswordForm.vue +201 -0
- package/templates/app/components/basklee/account/ProfileSignIn.vue +446 -0
- package/templates/app/components/basklee/account/SignInHistory.README.md +27 -0
- package/templates/app/components/basklee/account/SignInHistory.vue +218 -0
- package/templates/app/components/basklee/account/StorefrontLogout.README.md +15 -0
- package/templates/app/components/basklee/account/StorefrontLogout.vue +109 -0
- package/templates/app/components/basklee/account/StorefrontProfile.README.md +145 -0
- package/templates/app/components/basklee/account/StorefrontProfile.vue +168 -0
- package/templates/app/components/basklee/account/account.css +1047 -0
- package/templates/app/components/basklee/account/profile.css +696 -0
- package/templates/app/components/basklee/address/AddressForm.README.md +67 -0
- package/templates/app/components/basklee/address/AddressForm.vue +537 -0
- package/templates/app/components/basklee/address/StorefrontAddresses.README.md +44 -0
- package/templates/app/components/basklee/address/StorefrontAddresses.vue +438 -0
- package/templates/app/components/basklee/banners/MainBanner.vue +171 -0
- package/templates/app/components/basklee/banners/examples/BannerExample.vue +6 -0
- package/templates/app/components/basklee/blog/BlogArticle.README.md +44 -0
- package/templates/app/components/basklee/blog/BlogArticle.vue +1023 -0
- package/templates/app/components/basklee/blog/BlogCommentForm.README.md +28 -0
- package/templates/app/components/basklee/blog/BlogCommentForm.vue +129 -0
- package/templates/app/components/basklee/blog/BlogComments.README.md +36 -0
- package/templates/app/components/basklee/blog/BlogComments.vue +373 -0
- package/templates/app/components/basklee/blog/BlogPostCard.vue +307 -0
- package/templates/app/components/basklee/blog/BlogPostGroup.vue +108 -0
- package/templates/app/components/basklee/blog/StorefrontJournal.README.md +42 -0
- package/templates/app/components/basklee/blog/StorefrontJournal.vue +670 -0
- package/templates/app/components/basklee/branding/BrandLogos.vue +25 -0
- package/templates/app/components/basklee/branding/examples/BrandLogosExample.vue +6 -0
- package/templates/app/components/basklee/cart/CartCheckoutDetails.README.md +85 -0
- package/templates/app/components/basklee/cart/CartCheckoutDetails.vue +377 -0
- package/templates/app/components/basklee/cart/CartDeliverySelector.README.md +95 -0
- package/templates/app/components/basklee/cart/CartDeliverySelector.vue +724 -0
- package/templates/app/components/basklee/cart/CartItemOptions.README.md +98 -0
- package/templates/app/components/basklee/cart/CartItemOptions.vue +693 -0
- package/templates/app/components/basklee/cart/CartLineItem.README.md +70 -0
- package/templates/app/components/basklee/cart/CartLineItem.vue +271 -0
- package/templates/app/components/basklee/cart/CartPreview.README.md +43 -0
- package/templates/app/components/basklee/cart/CartPreview.vue +263 -0
- package/templates/app/components/basklee/cart/DeliveryMap.README.md +48 -0
- package/templates/app/components/basklee/cart/DeliveryMap.vue +155 -0
- package/templates/app/components/basklee/cart/StorefrontCart.README.md +89 -0
- package/templates/app/components/basklee/cart/StorefrontCart.vue +689 -0
- package/templates/app/components/basklee/catalog/CatalogHeader.vue +681 -0
- package/templates/app/components/basklee/catalog/CatalogRepresentative.vue +59 -0
- package/templates/app/components/basklee/catalog/StorefrontCatalog.README.md +35 -0
- package/templates/app/components/basklee/catalog/StorefrontCatalog.vue +179 -0
- package/templates/app/components/basklee/catalog/examples/CatalogHeaderExample.vue +6 -0
- package/templates/app/components/basklee/categories/CategoryGroup.vue +125 -0
- package/templates/app/components/basklee/categories/StorefrontCategory.README.md +60 -0
- package/templates/app/components/basklee/categories/StorefrontCategory.vue +277 -0
- package/templates/app/components/basklee/categories/examples/CategoryGroupExample.vue +7 -0
- package/templates/app/components/basklee/contact/AboutPage.README.md +23 -0
- package/templates/app/components/basklee/contact/AboutPage.vue +409 -0
- package/templates/app/components/basklee/contact/ContactForm.README.md +29 -0
- package/templates/app/components/basklee/contact/ContactForm.vue +289 -0
- package/templates/app/components/basklee/contact/EmailUnsubscribe.README.md +27 -0
- package/templates/app/components/basklee/contact/EmailUnsubscribe.vue +95 -0
- package/templates/app/components/basklee/contact/StorefrontContact.README.md +18 -0
- package/templates/app/components/basklee/contact/StorefrontContact.vue +89 -0
- package/templates/app/components/basklee/contact/examples/ContactExample.vue +6 -0
- package/templates/app/components/basklee/currencies/MainCurrencySwitcher.vue +80 -0
- package/templates/app/components/basklee/currencies/examples/CurrencyExample.vue +6 -0
- package/templates/app/components/basklee/events/EventEnrollmentDialog.README.md +58 -0
- package/templates/app/components/basklee/events/EventEnrollmentDialog.vue +294 -0
- package/templates/app/components/basklee/events/EventsBlock.vue +138 -0
- package/templates/app/components/basklee/events/examples/EventsExample.vue +6 -0
- package/templates/app/components/basklee/legal/CookieNotice.README.md +34 -0
- package/templates/app/components/basklee/legal/CookieNotice.vue +84 -0
- package/templates/app/components/basklee/legal/StorefrontPrivacy.README.md +35 -0
- package/templates/app/components/basklee/legal/StorefrontPrivacy.vue +124 -0
- package/templates/app/components/basklee/locale/MainLanguageSwitcher.vue +506 -0
- package/templates/app/components/basklee/locale/examples/LocaleExample.vue +6 -0
- package/templates/app/components/basklee/manufacturers/ManufacturerIndex.README.md +36 -0
- package/templates/app/components/basklee/manufacturers/ManufacturerIndex.vue +495 -0
- package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.README.md +30 -0
- package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.vue +263 -0
- package/templates/app/components/basklee/orders/OrderDetails.README.md +39 -0
- package/templates/app/components/basklee/orders/OrderDetails.vue +1074 -0
- package/templates/app/components/basklee/orders/OrderPaymentForm.README.md +59 -0
- package/templates/app/components/basklee/orders/OrderPaymentForm.vue +73 -0
- package/templates/app/components/basklee/orders/StorefrontOrders.README.md +39 -0
- package/templates/app/components/basklee/orders/StorefrontOrders.vue +869 -0
- package/templates/app/components/basklee/orders/orders.css +612 -0
- package/templates/app/components/basklee/payments/PaymentPanel.README.md +76 -0
- package/templates/app/components/basklee/payments/PaymentPanel.vue +108 -0
- package/templates/app/components/basklee/products/HoverImageViewer.vue +190 -0
- package/templates/app/components/basklee/products/ProductCard.README.md +63 -0
- package/templates/app/components/basklee/products/ProductCard.vue +911 -0
- package/templates/app/components/basklee/products/ProductCardActions.README.md +33 -0
- package/templates/app/components/basklee/products/ProductCardActions.vue +412 -0
- package/templates/app/components/basklee/products/ProductCardBadges.vue +83 -0
- package/templates/app/components/basklee/products/ProductCardDescription.vue +46 -0
- package/templates/app/components/basklee/products/ProductCardFavorite.vue +99 -0
- package/templates/app/components/basklee/products/ProductCardPrice.vue +66 -0
- package/templates/app/components/basklee/products/ProductCardRating.vue +65 -0
- package/templates/app/components/basklee/products/ProductCardSeller.vue +66 -0
- package/templates/app/components/basklee/products/ProductCardStockNotice.vue +43 -0
- package/templates/app/components/basklee/products/ProductCardTitle.vue +46 -0
- package/templates/app/components/basklee/products/ProductCardVariants.vue +388 -0
- package/templates/app/components/basklee/products/ProductGroup.vue +259 -0
- package/templates/app/components/basklee/products/ProductPreorderDialog.README.md +22 -0
- package/templates/app/components/basklee/products/ProductPreorderDialog.vue +471 -0
- package/templates/app/components/basklee/products/ProductReviewForm.README.md +39 -0
- package/templates/app/components/basklee/products/ProductReviewForm.vue +312 -0
- package/templates/app/components/basklee/products/ProductReviewGallery.README.md +28 -0
- package/templates/app/components/basklee/products/ProductReviewGallery.vue +141 -0
- package/templates/app/components/basklee/products/ProductReviewImageViewer.README.md +52 -0
- package/templates/app/components/basklee/products/ProductReviewImageViewer.vue +425 -0
- package/templates/app/components/basklee/products/ProductReviews.README.md +70 -0
- package/templates/app/components/basklee/products/ProductReviews.vue +1025 -0
- package/templates/app/components/basklee/products/ProductSecondaryVariantModal.vue +460 -0
- package/templates/app/components/basklee/products/ProductSpecificationsDialog.README.md +65 -0
- package/templates/app/components/basklee/products/ProductSpecificationsDialog.vue +174 -0
- package/templates/app/components/basklee/products/StorefrontProduct.README.md +52 -0
- package/templates/app/components/basklee/products/StorefrontProduct.vue +1468 -0
- package/templates/app/components/basklee/products/StorefrontWishlist.README.md +33 -0
- package/templates/app/components/basklee/products/StorefrontWishlist.vue +290 -0
- package/templates/app/components/basklee/products/examples/FeaturedExample.vue +6 -0
- package/templates/app/components/basklee/products/examples/FeaturedHoverImageViewerExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardActionsExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardBadgesExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardDescriptionExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardFavoriteExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardPriceExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardRatingExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardSellerExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardStockNoticeExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardTitleExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardVariantsExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/ProductsExample.vue +6 -0
- package/templates/app/components/basklee/products/examples/ProductsHoverImageViewerExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardActionsExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardBadgesExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardDescriptionExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardFavoriteExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardPriceExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardRatingExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardSellerExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardStockNoticeExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardTitleExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardVariantsExample.vue +13 -0
- package/templates/app/components/basklee/promo/PromoProducts.README.md +45 -0
- package/templates/app/components/basklee/promo/PromoProducts.vue +287 -0
- package/templates/app/components/basklee/search/MainSearch.vue +340 -0
- package/templates/app/components/basklee/search/ProductSearchResults.README.md +81 -0
- package/templates/app/components/basklee/search/ProductSearchResults.vue +506 -0
- package/templates/app/components/basklee/search/SearchFilters.vue +546 -0
- package/templates/app/components/basklee/search/examples/MainSearchExample.vue +6 -0
- package/templates/app/components/basklee/sellers/SellerFilters.README.md +32 -0
- package/templates/app/components/basklee/sellers/SellerFilters.vue +317 -0
- package/templates/app/components/basklee/sellers/SellerPhotoGallery.README.md +45 -0
- package/templates/app/components/basklee/sellers/SellerPhotoGallery.vue +406 -0
- package/templates/app/components/basklee/sellers/SellerSummary.README.md +33 -0
- package/templates/app/components/basklee/sellers/SellerSummary.vue +162 -0
- package/templates/app/components/basklee/sellers/StorefrontSellers.README.md +73 -0
- package/templates/app/components/basklee/sellers/StorefrontSellers.vue +300 -0
- package/templates/app/components/basklee/shared/BaskleeAvatar.README.md +30 -0
- package/templates/app/components/basklee/shared/BaskleeAvatar.vue +83 -0
- package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.README.md +65 -0
- package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.vue +118 -0
- package/templates/app/components/basklee/shared/BaskleeEmptyState.README.md +38 -0
- package/templates/app/components/basklee/shared/BaskleeEmptyState.vue +143 -0
- package/templates/app/components/basklee/shared/BaskleeImage.vue +84 -0
- package/templates/app/components/basklee/shared/BaskleeInfoHint.README.md +32 -0
- package/templates/app/components/basklee/shared/BaskleeInfoHint.vue +158 -0
- package/templates/app/components/basklee/shared/BaskleePasswordInput.README.md +30 -0
- package/templates/app/components/basklee/shared/BaskleePasswordInput.vue +197 -0
- package/templates/app/components/basklee/shared/BaskleeSearchSelect.README.md +38 -0
- package/templates/app/components/basklee/shared/BaskleeSearchSelect.vue +411 -0
- package/templates/app/components/basklee/shared/BaskleeSelect.README.md +31 -0
- package/templates/app/components/basklee/shared/BaskleeSelect.vue +525 -0
- package/templates/app/components/basklee/shared/StorefrontErrorPage.README.md +55 -0
- package/templates/app/components/basklee/shared/StorefrontErrorPage.vue +151 -0
- package/templates/app/components/basklee/shared/StorefrontPagination.README.md +50 -0
- package/templates/app/components/basklee/shared/StorefrontPagination.vue +148 -0
- package/templates/app/components/basklee/shared/dialogs.css +36 -0
- package/templates/app/components/basklee/shared/features.css +364 -0
- package/templates/app/components/basklee/social/SocialLinks.vue +72 -0
- package/templates/app/components/basklee/social/examples/SocialLinksExample.vue +6 -0
- package/templates/app/components/basklee/storefront/StorefrontAccount.README.md +47 -0
- package/templates/app/components/basklee/storefront/StorefrontAccount.vue +332 -0
- package/templates/app/components/basklee/storefront/StorefrontCartButton.vue +68 -0
- package/templates/app/components/basklee/storefront/StorefrontFooter.README.md +26 -0
- package/templates/app/components/basklee/storefront/StorefrontFooter.vue +236 -0
- package/templates/app/components/basklee/storefront/StorefrontHeader.README.md +93 -0
- package/templates/app/components/basklee/storefront/StorefrontHeader.vue +509 -0
- package/templates/app/components/basklee/storefront/StorefrontHome.README.md +79 -0
- package/templates/app/components/basklee/storefront/StorefrontHome.vue +315 -0
- package/templates/app/components/basklee/storefront/StorefrontWishlistButton.vue +105 -0
- package/templates/app/components/basklee/storefront/examples/StorefrontAccountExample.vue +7 -0
- package/templates/app/components/basklee/stores/StorefrontStores.README.md +41 -0
- package/templates/app/components/basklee/stores/StorefrontStores.vue +346 -0
- package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.README.md +151 -0
- package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.vue +851 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariff.README.md +38 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariff.vue +555 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariffs.README.md +36 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariffs.vue +416 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.README.md +39 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.vue +292 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.README.md +85 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.vue +874 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.README.md +53 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.vue +536 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.README.md +101 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.vue +286 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md +138 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.vue +134 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md +85 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.vue +364 -0
- package/templates/app/components/basklee/support/StorefrontSupport.README.md +39 -0
- package/templates/app/components/basklee/support/StorefrontSupport.vue +484 -0
- package/templates/app/components/basklee/support/TicketConversation.README.md +38 -0
- package/templates/app/components/basklee/support/TicketConversation.vue +524 -0
- package/templates/app/components/basklee/support/TicketImage.README.md +27 -0
- package/templates/app/components/basklee/support/TicketImage.vue +186 -0
- package/templates/app/components/basklee/support/TicketItemCard.README.md +59 -0
- package/templates/app/components/basklee/support/TicketItemCard.vue +177 -0
- package/templates/app/components/basklee/support/TicketMessageForm.README.md +35 -0
- package/templates/app/components/basklee/support/TicketMessageForm.vue +258 -0
- package/templates/app/components/basklee/support/TicketSubscriptionCard.README.md +40 -0
- package/templates/app/components/basklee/support/TicketSubscriptionCard.vue +154 -0
- package/templates/app/components/basklee/tariffs/TariffCard.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCard.vue +251 -0
- package/templates/app/components/basklee/tariffs/TariffCardDescription.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardDescription.vue +97 -0
- package/templates/app/components/basklee/tariffs/TariffCardFeatures.README.md +14 -0
- package/templates/app/components/basklee/tariffs/TariffCardFeatures.vue +172 -0
- package/templates/app/components/basklee/tariffs/TariffCardImage.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardImage.vue +33 -0
- package/templates/app/components/basklee/tariffs/TariffCardPrices.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardPrices.vue +300 -0
- package/templates/app/components/basklee/tariffs/TariffCardTitle.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardTitle.vue +30 -0
- package/templates/app/components/basklee/tariffs/TariffCards.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCards.vue +94 -0
- package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.README.md +31 -0
- package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.vue +411 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardDescriptionExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardFeaturesExample.vue +14 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardImageExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardPricesExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardTitleExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardsExample.vue +6 -0
- package/templates/app/components/basklee/theme/BaskleeThemeProvider.vue +38 -0
- package/templates/app/components/basklee/units/UnitSwitcher.vue +71 -0
- package/templates/app/components/basklee/units/examples/LengthExample.vue +6 -0
- package/templates/app/components/basklee/units/examples/WeightExample.vue +6 -0
- package/templates/app/components/basklee/wallet/StorefrontWallet.README.md +117 -0
- package/templates/app/components/basklee/wallet/StorefrontWallet.vue +863 -0
- package/templates/app/components/basklee/wallet/WalletBalance.vue +47 -0
- package/templates/app/components/basklee/wallet/WalletTopUpForm.README.md +32 -0
- package/templates/app/components/basklee/wallet/WalletTopUpForm.vue +224 -0
- package/templates/app/components/basklee/wallet/examples/WalletExample.vue +6 -0
- package/templates/app/composables/useBaskleeActionMenu.ts +126 -0
- package/templates/app/composables/useBaskleeAddressEditor.ts +343 -0
- package/templates/app/composables/useBaskleeAddresses.ts +75 -0
- package/templates/app/composables/useBaskleeApi.ts +190 -0
- package/templates/app/composables/useBaskleeAppLoad.ts +83 -0
- package/templates/app/composables/useBaskleeBlogComments.ts +325 -0
- package/templates/app/composables/useBaskleeBlogReading.ts +270 -0
- package/templates/app/composables/useBaskleeCart.ts +226 -0
- package/templates/app/composables/useBaskleeCartPreview.ts +142 -0
- package/templates/app/composables/useBaskleeCategoryLink.ts +24 -0
- package/templates/app/composables/useBaskleeCategoryProducts.ts +16 -0
- package/templates/app/composables/useBaskleeFeature.ts +100 -0
- package/templates/app/composables/useBaskleeFeaturedProducts.ts +14 -0
- package/templates/app/composables/useBaskleeGeolocation.ts +28 -0
- package/templates/app/composables/useBaskleeHomeProducts.ts +90 -0
- package/templates/app/composables/useBaskleeManufacturerIndex.ts +83 -0
- package/templates/app/composables/useBaskleeMap.ts +240 -0
- package/templates/app/composables/useBaskleeMediaFormat.ts +24 -0
- package/templates/app/composables/useBaskleeMissingPage.ts +67 -0
- package/templates/app/composables/useBaskleeOrders.ts +185 -0
- package/templates/app/composables/useBaskleePageSeo.ts +133 -0
- package/templates/app/composables/useBaskleeProductActions.ts +116 -0
- package/templates/app/composables/useBaskleeProductLink.ts +24 -0
- package/templates/app/composables/useBaskleeProductSearch.ts +363 -0
- package/templates/app/composables/useBaskleeProductVariants.ts +176 -0
- package/templates/app/composables/useBaskleeProfile.ts +309 -0
- package/templates/app/composables/useBaskleeProgress.ts +89 -0
- package/templates/app/composables/useBaskleeReviews.ts +242 -0
- package/templates/app/composables/useBaskleeSearchHistory.ts +23 -0
- package/templates/app/composables/useBaskleeSearchScopeNames.ts +99 -0
- package/templates/app/composables/useBaskleeServerData.ts +72 -0
- package/templates/app/composables/useBaskleeSignIn.ts +66 -0
- package/templates/app/composables/useBaskleeStableHeight.ts +69 -0
- package/templates/app/composables/useBaskleeStorefront.ts +29 -0
- package/templates/app/composables/useBaskleeSubscriptions.ts +260 -0
- package/templates/app/composables/useBaskleeTheme.ts +27 -0
- package/templates/app/composables/useBaskleeTicketSubject.ts +180 -0
- package/templates/app/composables/useBaskleeTickets.ts +335 -0
- package/templates/app/composables/useBaskleeWallet.ts +166 -0
- package/templates/app/error.vue +108 -0
- package/templates/app/interfaces/basklee/accounts/IContact.ts +21 -0
- package/templates/app/interfaces/basklee/accounts/IEmailNotificationLocale.ts +17 -0
- package/templates/app/interfaces/basklee/accounts/IEmailVerification.ts +59 -0
- package/templates/app/interfaces/basklee/accounts/IProfileActions.ts +38 -0
- package/templates/app/interfaces/basklee/accounts/IProfileData.ts +125 -0
- package/templates/app/interfaces/basklee/accounts/IProfileMedia.ts +17 -0
- package/templates/app/interfaces/basklee/accounts/IStorefrontProfile.ts +54 -0
- package/templates/app/interfaces/basklee/address/IAddressCitySuggestion.ts +19 -0
- package/templates/app/interfaces/basklee/address/IAddressEditor.ts +9 -0
- package/templates/app/interfaces/basklee/address/IAddressLocationSuggestion.ts +22 -0
- package/templates/app/interfaces/basklee/address/IAddressRegionSearch.ts +30 -0
- package/templates/app/interfaces/basklee/address/IAddressSuggestion.ts +20 -0
- package/templates/app/interfaces/basklee/address/IUserAddress.ts +87 -0
- package/templates/app/interfaces/basklee/apiBase/TMethod.ts +1 -0
- package/templates/app/interfaces/basklee/appBase/IAppLoad.ts +16 -0
- package/templates/app/interfaces/basklee/appBase/IAppLoadCommon.ts +47 -0
- package/templates/app/interfaces/basklee/appBase/IApploadUserProfile.ts +15 -0
- package/templates/app/interfaces/basklee/appBase/IForm.ts +21 -0
- package/templates/app/interfaces/basklee/appBase/ISEO.ts +21 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonBanner.ts +11 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonContact.ts +8 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonCurrency.ts +15 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonEvents.ts +18 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLocale.ts +14 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLogos.ts +6 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonPath.ts +22 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSEO.ts +26 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSocial.ts +15 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonTariff.ts +7 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonUnit.ts +12 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVariables.ts +8 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVisualSettings.ts +11 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonWalletValue.ts +3 -0
- package/templates/app/interfaces/basklee/blog/IBlogApi.ts +247 -0
- package/templates/app/interfaces/basklee/blog/IBlogPostPreview.ts +30 -0
- package/templates/app/interfaces/basklee/cart/ICartActions.ts +67 -0
- package/templates/app/interfaces/basklee/cart/ICartData.ts +382 -0
- package/templates/app/interfaces/basklee/cart/ICartDeliveryActions.ts +68 -0
- package/templates/app/interfaces/basklee/cart/ICartModal.ts +22 -0
- package/templates/app/interfaces/basklee/cart/IDeliveryMap.ts +29 -0
- package/templates/app/interfaces/basklee/catalog/ICatalogDirectory.ts +75 -0
- package/templates/app/interfaces/basklee/category/ICategory.ts +41 -0
- package/templates/app/interfaces/basklee/domains/IDomain.ts +13 -0
- package/templates/app/interfaces/basklee/forms/ICustomerSubfilter.ts +19 -0
- package/templates/app/interfaces/basklee/index.ts +57 -0
- package/templates/app/interfaces/basklee/marketing/IPromoActions.ts +51 -0
- package/templates/app/interfaces/basklee/orders/IOrderActions.ts +99 -0
- package/templates/app/interfaces/basklee/orders/IOrderHistory.ts +259 -0
- package/templates/app/interfaces/basklee/orders/IProductPreorder.ts +31 -0
- package/templates/app/interfaces/basklee/payments/IInvoice.ts +147 -0
- package/templates/app/interfaces/basklee/products/IProduct.ts +262 -0
- package/templates/app/interfaces/basklee/products/IProductFeedbackApi.ts +218 -0
- package/templates/app/interfaces/basklee/products/IProductSearchApi.ts +146 -0
- package/templates/app/interfaces/basklee/products/IProductSearchFacets.ts +35 -0
- package/templates/app/interfaces/basklee/products/IProductSecondaryVariantRequest.ts +15 -0
- package/templates/app/interfaces/basklee/products/IProductSpecification.ts +14 -0
- package/templates/app/interfaces/basklee/products/IWishlist.ts +22 -0
- package/templates/app/interfaces/basklee/sellers/ISellerDirectory.ts +70 -0
- package/templates/app/interfaces/basklee/shared/IBreadcrumb.ts +10 -0
- package/templates/app/interfaces/basklee/shared/IGeoCoordinates.ts +4 -0
- package/templates/app/interfaces/basklee/shared/IStorefrontControls.ts +13 -0
- package/templates/app/interfaces/basklee/shared/ITransformValue.ts +3 -0
- package/templates/app/interfaces/basklee/state.ts +4 -0
- package/templates/app/interfaces/basklee/stores/IStoreDirectory.ts +63 -0
- package/templates/app/interfaces/basklee/subscribeOptions/ISubscribeOption.ts +9 -0
- package/templates/app/interfaces/basklee/subscribeTariff/ISubscribeTariff.ts +56 -0
- package/templates/app/interfaces/basklee/subscribeTariff/ITariffSelection.ts +11 -0
- package/templates/app/interfaces/basklee/subscribes/ISubscribe.ts +28 -0
- package/templates/app/interfaces/basklee/subscribes/ISubscriptionApi.ts +127 -0
- package/templates/app/interfaces/basklee/tickets/ICustomerTicketApi.ts +223 -0
- package/templates/app/interfaces/basklee/transport.ts +34 -0
- package/templates/app/layouts/default.vue +382 -0
- package/templates/app/middleware/00.basklee.global.ts +27 -0
- package/templates/app/middleware/01.basklee-sellers.global.ts +15 -0
- package/templates/app/middleware/basklee-account.ts +40 -0
- package/templates/app/pages/activity.vue +19 -0
- package/templates/app/pages/addresses.vue +23 -0
- package/templates/app/pages/browse.vue +253 -0
- package/templates/app/pages/cart.vue +20 -0
- package/templates/app/pages/catalog.vue +17 -0
- package/templates/app/pages/category/[id].vue +150 -0
- package/templates/app/pages/contact.vue +17 -0
- package/templates/app/pages/featured.vue +152 -0
- package/templates/app/pages/index.vue +194 -0
- package/templates/app/pages/journal/[id].vue +164 -0
- package/templates/app/pages/journal/index.vue +74 -0
- package/templates/app/pages/logout.vue +71 -0
- package/templates/app/pages/manufacturers.vue +33 -0
- package/templates/app/pages/orders.vue +40 -0
- package/templates/app/pages/privacy.vue +17 -0
- package/templates/app/pages/product/[id].vue +150 -0
- package/templates/app/pages/profile.vue +118 -0
- package/templates/app/pages/promo/[id].vue +67 -0
- package/templates/app/pages/promocodes.vue +21 -0
- package/templates/app/pages/sellers.vue +203 -0
- package/templates/app/pages/stores.vue +36 -0
- package/templates/app/pages/subscriptions.vue +21 -0
- package/templates/app/pages/tariffs/[slug]/[id].vue +126 -0
- package/templates/app/pages/tariffs/index.vue +50 -0
- package/templates/app/pages/tickets.vue +56 -0
- package/templates/app/pages/unsubscribe.vue +32 -0
- package/templates/app/pages/wallet.vue +23 -0
- package/templates/app/pages/wishlist.vue +48 -0
- package/templates/app/stores/basklee.ts +493 -0
- package/templates/app/stores/baskleeBrowse.ts +79 -0
- package/templates/app/stores/baskleeCatalog.ts +141 -0
- package/templates/app/stores/baskleeDomainAccess.ts +55 -0
- package/templates/app/stores/baskleeProducts.ts +249 -0
- package/templates/app/stores/baskleeSelections.ts +132 -0
- package/templates/app/themes/basklee.ts +108 -0
- package/templates/app/utils/basklee/accountLabels.ts +29 -0
- package/templates/app/utils/basklee/activityLabels.ts +96 -0
- package/templates/app/utils/basklee/activityPresentation.ts +16 -0
- package/templates/app/utils/basklee/addressChanges.ts +26 -0
- package/templates/app/utils/basklee/addressRegions.ts +17 -0
- package/templates/app/utils/basklee/api.ts +333 -0
- package/templates/app/utils/basklee/blogArticleHtml.ts +318 -0
- package/templates/app/utils/basklee/blogComments.ts +133 -0
- package/templates/app/utils/basklee/blogImageViewer.ts +84 -0
- package/templates/app/utils/basklee/blogLabels.ts +167 -0
- package/templates/app/utils/basklee/blogLayout.ts +108 -0
- package/templates/app/utils/basklee/blogProductPlacements.ts +105 -0
- package/templates/app/utils/basklee/breadcrumbLabels.ts +14 -0
- package/templates/app/utils/basklee/browseLabels.ts +145 -0
- package/templates/app/utils/basklee/cartAddress.ts +94 -0
- package/templates/app/utils/basklee/cartLabels.ts +390 -0
- package/templates/app/utils/basklee/cartOptions.ts +143 -0
- package/templates/app/utils/basklee/cartPreview.ts +123 -0
- package/templates/app/utils/basklee/cartPromo.ts +150 -0
- package/templates/app/utils/basklee/cartShipment.ts +74 -0
- package/templates/app/utils/basklee/cartSnapshot.ts +20 -0
- package/templates/app/utils/basklee/catalog.ts +106 -0
- package/templates/app/utils/basklee/category.ts +52 -0
- package/templates/app/utils/basklee/categoryLabels.ts +44 -0
- package/templates/app/utils/basklee/contactLabels.ts +152 -0
- package/templates/app/utils/basklee/currency.ts +128 -0
- package/templates/app/utils/basklee/deliveryMap.ts +89 -0
- package/templates/app/utils/basklee/directoryLabels.ts +196 -0
- package/templates/app/utils/basklee/emptyStateArt.ts +231 -0
- package/templates/app/utils/basklee/errorPageLabels.ts +95 -0
- package/templates/app/utils/basklee/featureData.ts +25 -0
- package/templates/app/utils/basklee/featureLabels.ts +406 -0
- package/templates/app/utils/basklee/featuredLabels.ts +38 -0
- package/templates/app/utils/basklee/files.ts +71 -0
- package/templates/app/utils/basklee/footerLabels.ts +53 -0
- package/templates/app/utils/basklee/guestSession.ts +50 -0
- package/templates/app/utils/basklee/headerLabels.ts +98 -0
- package/templates/app/utils/basklee/homeContent.ts +129 -0
- package/templates/app/utils/basklee/homeLabels.ts +74 -0
- package/templates/app/utils/basklee/htmlText.ts +59 -0
- package/templates/app/utils/basklee/links.ts +14 -0
- package/templates/app/utils/basklee/manufacturerIndex.ts +108 -0
- package/templates/app/utils/basklee/modalWindow.ts +109 -0
- package/templates/app/utils/basklee/nativeApp.ts +361 -0
- package/templates/app/utils/basklee/notice.ts +22 -0
- package/templates/app/utils/basklee/orderLabels.ts +454 -0
- package/templates/app/utils/basklee/orderPresentation.ts +629 -0
- package/templates/app/utils/basklee/pageSeo.ts +662 -0
- package/templates/app/utils/basklee/paginationScroll.ts +131 -0
- package/templates/app/utils/basklee/phone.ts +22 -0
- package/templates/app/utils/basklee/presentation.ts +72 -0
- package/templates/app/utils/basklee/privacyLabels.ts +273 -0
- package/templates/app/utils/basklee/productActionLabels.ts +108 -0
- package/templates/app/utils/basklee/productActions.ts +574 -0
- package/templates/app/utils/basklee/productAvailability.ts +36 -0
- package/templates/app/utils/basklee/productGallery.ts +72 -0
- package/templates/app/utils/basklee/productLabels.ts +119 -0
- package/templates/app/utils/basklee/productListLocation.ts +130 -0
- package/templates/app/utils/basklee/productManufacturer.ts +30 -0
- package/templates/app/utils/basklee/productPage.ts +46 -0
- package/templates/app/utils/basklee/productPhotos.ts +67 -0
- package/templates/app/utils/basklee/productSearchScope.ts +237 -0
- package/templates/app/utils/basklee/productSeller.ts +51 -0
- package/templates/app/utils/basklee/productStructuredData.ts +221 -0
- package/templates/app/utils/basklee/profile.ts +148 -0
- package/templates/app/utils/basklee/profileLabels.ts +229 -0
- package/templates/app/utils/basklee/promoLabels.ts +111 -0
- package/templates/app/utils/basklee/promoPresentation.ts +381 -0
- package/templates/app/utils/basklee/reviewLabels.ts +256 -0
- package/templates/app/utils/basklee/reviewScope.ts +41 -0
- package/templates/app/utils/basklee/richText.ts +13 -0
- package/templates/app/utils/basklee/searchFilters.ts +99 -0
- package/templates/app/utils/basklee/searchHistory.ts +144 -0
- package/templates/app/utils/basklee/sellerDirectory.ts +134 -0
- package/templates/app/utils/basklee/seo.ts +52 -0
- package/templates/app/utils/basklee/serverCookies.ts +88 -0
- package/templates/app/utils/basklee/sessionLabels.ts +38 -0
- package/templates/app/utils/basklee/signInReturn.ts +89 -0
- package/templates/app/utils/basklee/storeDirectory.ts +50 -0
- package/templates/app/utils/basklee/subscriptionChanges.ts +167 -0
- package/templates/app/utils/basklee/subscriptionLabels.ts +100 -0
- package/templates/app/utils/basklee/subscriptionManageLabels.ts +424 -0
- package/templates/app/utils/basklee/subscriptionPlans.ts +162 -0
- package/templates/app/utils/basklee/subscriptionRemote.ts +110 -0
- package/templates/app/utils/basklee/subscriptionUsage.ts +82 -0
- package/templates/app/utils/basklee/tariffLabels.ts +182 -0
- package/templates/app/utils/basklee/tariffPage.ts +77 -0
- package/templates/app/utils/basklee/tariffVariables.ts +203 -0
- package/templates/app/utils/basklee/tariffs.ts +333 -0
- package/templates/app/utils/basklee/ticketItems.ts +87 -0
- package/templates/app/utils/basklee/ticketLabels.ts +428 -0
- package/templates/app/utils/basklee/ticketLocation.ts +79 -0
- package/templates/app/utils/basklee/walletTransaction.ts +135 -0
- package/templates/app/utils/baskleeAppLoad.ts +83 -0
- package/templates/basklee/COMPONENT-DOWNLOAD.md +40 -0
- package/templates/basklee/COMPONENTS.md +1993 -0
- package/templates/basklee/THEMES.md +94 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
const en = {
|
|
2
|
+
loading: 'Loading…',
|
|
3
|
+
failed: 'The request could not be completed. Please try again.',
|
|
4
|
+
retry: 'Retry',
|
|
5
|
+
refresh: 'Refresh',
|
|
6
|
+
save: 'Save',
|
|
7
|
+
saved: 'Saved',
|
|
8
|
+
cancel: 'Cancel',
|
|
9
|
+
close: 'Close',
|
|
10
|
+
delete: 'Delete',
|
|
11
|
+
edit: 'Edit',
|
|
12
|
+
add: 'Add',
|
|
13
|
+
back: 'Back',
|
|
14
|
+
next: 'Next',
|
|
15
|
+
previous: 'Previous',
|
|
16
|
+
page: 'Page',
|
|
17
|
+
empty: 'Nothing here yet',
|
|
18
|
+
noMatches: 'No matches',
|
|
19
|
+
account: 'My account',
|
|
20
|
+
accountSignIn:
|
|
21
|
+
'Sign in to open your orders, addresses, wallet and other account pages.',
|
|
22
|
+
required: 'Required',
|
|
23
|
+
search: 'Search',
|
|
24
|
+
all: 'All',
|
|
25
|
+
continue: 'Continue',
|
|
26
|
+
balance: 'Balance',
|
|
27
|
+
navigation: {
|
|
28
|
+
profile: 'Profile',
|
|
29
|
+
addresses: 'Addresses',
|
|
30
|
+
orders: 'Orders',
|
|
31
|
+
tickets: 'Support',
|
|
32
|
+
wallet: 'Wallet',
|
|
33
|
+
subscriptions: 'Subscriptions',
|
|
34
|
+
wishlist: 'Wishlist',
|
|
35
|
+
promocodes: 'My promo codes',
|
|
36
|
+
activity: 'My activity',
|
|
37
|
+
},
|
|
38
|
+
logout: 'Logout',
|
|
39
|
+
addresses: {
|
|
40
|
+
title: 'My addresses',
|
|
41
|
+
description: 'Saved addresses for delivery.',
|
|
42
|
+
add: 'Add address',
|
|
43
|
+
edit: 'Edit address',
|
|
44
|
+
label: 'Address name',
|
|
45
|
+
country: 'Country',
|
|
46
|
+
region: 'Region',
|
|
47
|
+
findRegion: 'Start typing a region',
|
|
48
|
+
city: 'City',
|
|
49
|
+
street: 'Street',
|
|
50
|
+
house: 'House',
|
|
51
|
+
postcode: 'Postal code',
|
|
52
|
+
line2: 'Additional address line',
|
|
53
|
+
entrance: 'Entrance',
|
|
54
|
+
intercom: 'Intercom',
|
|
55
|
+
floor: 'Floor',
|
|
56
|
+
apartment: 'Apartment',
|
|
57
|
+
details: 'Additional details',
|
|
58
|
+
default: 'Default delivery address',
|
|
59
|
+
makeDefault: 'Default',
|
|
60
|
+
makeDefaultHint: 'Use for delivery by default',
|
|
61
|
+
clearDefault: 'Unmark',
|
|
62
|
+
clearDefaultHint: 'Clear default selection',
|
|
63
|
+
empty: 'Add a delivery address to get started.',
|
|
64
|
+
chooseCountry: 'Choose a country',
|
|
65
|
+
locate: 'Locate',
|
|
66
|
+
locationFailed: 'Could not determine the address. Enter it manually.',
|
|
67
|
+
regionFailed: 'Could not load regions. Try again.',
|
|
68
|
+
hintsFailed:
|
|
69
|
+
'Suggestions are unavailable. You can continue entering the address manually.',
|
|
70
|
+
deleteQuestion: 'Delete this saved address?',
|
|
71
|
+
actions: 'Address actions',
|
|
72
|
+
suggestionsLoading: 'Loading suggestions…',
|
|
73
|
+
savedTitle: 'Address saved',
|
|
74
|
+
savedAsSent: 'This is how the address is saved in your account.',
|
|
75
|
+
savedRefined:
|
|
76
|
+
'The address service refined the address. Check the marked fields and edit them if needed.',
|
|
77
|
+
refined: 'refined',
|
|
78
|
+
done: 'Done',
|
|
79
|
+
defaultKept:
|
|
80
|
+
'This is your default delivery address. To clear the mark, use the address menu.',
|
|
81
|
+
noShipping: 'No delivery to this country',
|
|
82
|
+
noShippingDefault:
|
|
83
|
+
'There is no delivery to this country, so this address can not be the default.',
|
|
84
|
+
},
|
|
85
|
+
wallet: {
|
|
86
|
+
title: 'Wallet and payments',
|
|
87
|
+
description: 'Top up your balance and follow your payment history.',
|
|
88
|
+
topUp: 'Top up balance',
|
|
89
|
+
topUpAction: 'Deposit',
|
|
90
|
+
amount: 'Amount',
|
|
91
|
+
payment: 'Payment method',
|
|
92
|
+
currency: 'Currency',
|
|
93
|
+
create: 'Continue',
|
|
94
|
+
history: 'Payment history',
|
|
95
|
+
wallet: 'Wallet',
|
|
96
|
+
orders: 'Orders',
|
|
97
|
+
paid_subs: 'Subscriptions',
|
|
98
|
+
empty: 'No payments in this category yet.',
|
|
99
|
+
unavailable: 'No payment methods are available.',
|
|
100
|
+
pay: 'Pay',
|
|
101
|
+
cancelInvoice: 'Cancel',
|
|
102
|
+
cancelQuestion: 'Cancel this unpaid invoice?',
|
|
103
|
+
refunds: 'Refunds',
|
|
104
|
+
refundToBalance: 'Returned to the balance',
|
|
105
|
+
refundToMethod: 'Returned to the payment method',
|
|
106
|
+
invoice: 'Invoice',
|
|
107
|
+
paymentTitle: 'Payment',
|
|
108
|
+
check: 'Check',
|
|
109
|
+
transactionId: 'Payment transaction ID',
|
|
110
|
+
comment: 'Comment',
|
|
111
|
+
relatedOrder: 'Order',
|
|
112
|
+
relatedSubscription: 'Subscription',
|
|
113
|
+
openOrder: 'Open the order',
|
|
114
|
+
openSubscription: 'Open my subscriptions',
|
|
115
|
+
purpose: {
|
|
116
|
+
topUp: 'Balance top-up',
|
|
117
|
+
deduction: 'Deducted from the balance',
|
|
118
|
+
orderPayment: 'Order payment',
|
|
119
|
+
subscriptionPayment: 'Subscription payment',
|
|
120
|
+
bonus: 'Credited to the balance',
|
|
121
|
+
refund: 'Refund',
|
|
122
|
+
},
|
|
123
|
+
// Invoice states by their number: the backend sends the state name
|
|
124
|
+
// in English only.
|
|
125
|
+
statuses: {
|
|
126
|
+
'-4': 'Canceled',
|
|
127
|
+
'-3': 'Expired',
|
|
128
|
+
'-2': 'Blocked',
|
|
129
|
+
'-1': 'Failed',
|
|
130
|
+
'0': 'Created',
|
|
131
|
+
'1': 'Completed',
|
|
132
|
+
} as Record<string, string>,
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const ru: typeof en = {
|
|
137
|
+
loading: 'Загрузка…',
|
|
138
|
+
failed: 'Не удалось выполнить запрос. Попробуйте ещё раз.',
|
|
139
|
+
retry: 'Повторить',
|
|
140
|
+
refresh: 'Обновить',
|
|
141
|
+
save: 'Сохранить',
|
|
142
|
+
saved: 'Сохранено',
|
|
143
|
+
cancel: 'Отмена',
|
|
144
|
+
close: 'Закрыть',
|
|
145
|
+
delete: 'Удалить',
|
|
146
|
+
edit: 'Изменить',
|
|
147
|
+
add: 'Добавить',
|
|
148
|
+
back: 'Назад',
|
|
149
|
+
next: 'Далее',
|
|
150
|
+
previous: 'Назад',
|
|
151
|
+
page: 'Страница',
|
|
152
|
+
empty: 'Здесь пока ничего нет',
|
|
153
|
+
noMatches: 'Ничего не найдено',
|
|
154
|
+
account: 'Личный кабинет',
|
|
155
|
+
accountSignIn:
|
|
156
|
+
'Войдите, чтобы открыть заказы, адреса, кошелёк и другие разделы личного кабинета.',
|
|
157
|
+
required: 'Обязательное поле',
|
|
158
|
+
search: 'Поиск',
|
|
159
|
+
all: 'Все',
|
|
160
|
+
continue: 'Продолжить',
|
|
161
|
+
balance: 'Баланс',
|
|
162
|
+
navigation: {
|
|
163
|
+
profile: 'Профиль',
|
|
164
|
+
addresses: 'Адреса',
|
|
165
|
+
orders: 'Заказы',
|
|
166
|
+
tickets: 'Поддержка',
|
|
167
|
+
wallet: 'Кошелёк',
|
|
168
|
+
subscriptions: 'Подписки',
|
|
169
|
+
wishlist: 'Избранное',
|
|
170
|
+
promocodes: 'Мои промокоды',
|
|
171
|
+
activity: 'Моя активность',
|
|
172
|
+
},
|
|
173
|
+
logout: 'Выйти',
|
|
174
|
+
addresses: {
|
|
175
|
+
title: 'Мои адреса',
|
|
176
|
+
description: 'Сохранённые адреса для доставки.',
|
|
177
|
+
add: 'Добавить адрес',
|
|
178
|
+
edit: 'Изменить адрес',
|
|
179
|
+
label: 'Название адреса',
|
|
180
|
+
country: 'Страна',
|
|
181
|
+
region: 'Регион',
|
|
182
|
+
findRegion: 'Начните вводить регион',
|
|
183
|
+
city: 'Город',
|
|
184
|
+
street: 'Улица',
|
|
185
|
+
house: 'Дом',
|
|
186
|
+
postcode: 'Индекс',
|
|
187
|
+
line2: 'Дополнение к адресу',
|
|
188
|
+
entrance: 'Подъезд',
|
|
189
|
+
intercom: 'Домофон',
|
|
190
|
+
floor: 'Этаж',
|
|
191
|
+
apartment: 'Квартира',
|
|
192
|
+
details: 'Дополнительные сведения',
|
|
193
|
+
default: 'Основной адрес доставки',
|
|
194
|
+
makeDefault: 'Основной',
|
|
195
|
+
makeDefaultHint: 'Основной адрес доставки',
|
|
196
|
+
clearDefault: 'Снять',
|
|
197
|
+
clearDefaultHint: 'Снять отметку основного адреса',
|
|
198
|
+
empty: 'Добавьте адрес для доставки.',
|
|
199
|
+
chooseCountry: 'Выберите страну',
|
|
200
|
+
locate: 'Определить',
|
|
201
|
+
locationFailed: 'Не удалось определить адрес. Введите его вручную.',
|
|
202
|
+
regionFailed: 'Не удалось загрузить регионы. Попробуйте ещё раз.',
|
|
203
|
+
hintsFailed:
|
|
204
|
+
'Подсказки недоступны. Адрес можно продолжить вводить вручную.',
|
|
205
|
+
deleteQuestion: 'Удалить этот сохранённый адрес?',
|
|
206
|
+
actions: 'Действия с адресом',
|
|
207
|
+
suggestionsLoading: 'Загрузка подсказок…',
|
|
208
|
+
savedTitle: 'Адрес сохранён',
|
|
209
|
+
savedAsSent: 'Так адрес сохранён в вашем аккаунте.',
|
|
210
|
+
savedRefined:
|
|
211
|
+
'Служба адресов уточнила адрес. Проверьте отмеченные поля и при необходимости измените их.',
|
|
212
|
+
refined: 'уточнено',
|
|
213
|
+
done: 'Готово',
|
|
214
|
+
defaultKept:
|
|
215
|
+
'Это ваш основной адрес доставки. Снять отметку можно в меню адреса.',
|
|
216
|
+
noShipping: 'Нет доставки в эту страну',
|
|
217
|
+
noShippingDefault:
|
|
218
|
+
'В эту страну нет доставки, поэтому адрес не может быть основным.',
|
|
219
|
+
},
|
|
220
|
+
wallet: {
|
|
221
|
+
title: 'Кошелёк и платежи',
|
|
222
|
+
description: 'Пополнение баланса и история платежей.',
|
|
223
|
+
topUp: 'Пополнить баланс',
|
|
224
|
+
topUpAction: 'Пополнить',
|
|
225
|
+
amount: 'Сумма',
|
|
226
|
+
payment: 'Способ оплаты',
|
|
227
|
+
currency: 'Валюта',
|
|
228
|
+
create: 'Продолжить',
|
|
229
|
+
history: 'История платежей',
|
|
230
|
+
wallet: 'Кошелёк',
|
|
231
|
+
orders: 'Заказы',
|
|
232
|
+
paid_subs: 'Подписки',
|
|
233
|
+
empty: 'В этой категории пока нет платежей.',
|
|
234
|
+
unavailable: 'Нет доступных способов оплаты.',
|
|
235
|
+
pay: 'Оплатить',
|
|
236
|
+
cancelInvoice: 'Отменить',
|
|
237
|
+
cancelQuestion: 'Отменить этот неоплаченный счёт?',
|
|
238
|
+
refunds: 'Возвраты',
|
|
239
|
+
refundToBalance: 'Возвращено на баланс',
|
|
240
|
+
refundToMethod: 'Возвращено на способ оплаты',
|
|
241
|
+
invoice: 'Счёт',
|
|
242
|
+
paymentTitle: 'Оплата',
|
|
243
|
+
check: 'Проверить',
|
|
244
|
+
transactionId: 'ID платёжной транзакции',
|
|
245
|
+
comment: 'Комментарий',
|
|
246
|
+
relatedOrder: 'Заказ',
|
|
247
|
+
relatedSubscription: 'Подписка',
|
|
248
|
+
openOrder: 'Открыть заказ',
|
|
249
|
+
openSubscription: 'Открыть мои подписки',
|
|
250
|
+
purpose: {
|
|
251
|
+
topUp: 'Пополнение баланса',
|
|
252
|
+
deduction: 'Списание с баланса',
|
|
253
|
+
orderPayment: 'Оплата заказа',
|
|
254
|
+
subscriptionPayment: 'Оплата подписки',
|
|
255
|
+
bonus: 'Зачисление на баланс',
|
|
256
|
+
refund: 'Возврат',
|
|
257
|
+
},
|
|
258
|
+
statuses: {
|
|
259
|
+
'-4': 'Отменён',
|
|
260
|
+
'-3': 'Истёк',
|
|
261
|
+
'-2': 'Заблокирован',
|
|
262
|
+
'-1': 'Не прошёл',
|
|
263
|
+
'0': 'Создан',
|
|
264
|
+
'1': 'Выполнен',
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const es: typeof en = {
|
|
270
|
+
loading: 'Cargando…',
|
|
271
|
+
failed: 'No se ha podido completar la solicitud. Inténtalo de nuevo.',
|
|
272
|
+
retry: 'Reintentar',
|
|
273
|
+
refresh: 'Actualizar',
|
|
274
|
+
save: 'Guardar',
|
|
275
|
+
saved: 'Guardado',
|
|
276
|
+
cancel: 'Cancelar',
|
|
277
|
+
close: 'Cerrar',
|
|
278
|
+
delete: 'Eliminar',
|
|
279
|
+
edit: 'Editar',
|
|
280
|
+
add: 'Añadir',
|
|
281
|
+
back: 'Atrás',
|
|
282
|
+
next: 'Siguiente',
|
|
283
|
+
previous: 'Anterior',
|
|
284
|
+
page: 'Página',
|
|
285
|
+
empty: 'Todavía no hay nada aquí',
|
|
286
|
+
noMatches: 'Sin coincidencias',
|
|
287
|
+
account: 'Mi cuenta',
|
|
288
|
+
accountSignIn:
|
|
289
|
+
'Inicia sesión para abrir tus pedidos, direcciones, monedero y las demás páginas de la cuenta.',
|
|
290
|
+
required: 'Obligatorio',
|
|
291
|
+
search: 'Buscar',
|
|
292
|
+
all: 'Todos',
|
|
293
|
+
continue: 'Continuar',
|
|
294
|
+
balance: 'Saldo',
|
|
295
|
+
navigation: {
|
|
296
|
+
profile: 'Perfil',
|
|
297
|
+
addresses: 'Direcciones',
|
|
298
|
+
orders: 'Pedidos',
|
|
299
|
+
tickets: 'Soporte',
|
|
300
|
+
wallet: 'Monedero',
|
|
301
|
+
subscriptions: 'Suscripciones',
|
|
302
|
+
wishlist: 'Favoritos',
|
|
303
|
+
promocodes: 'Mis códigos promocionales',
|
|
304
|
+
activity: 'Mi actividad',
|
|
305
|
+
},
|
|
306
|
+
logout: 'Cerrar sesión',
|
|
307
|
+
addresses: {
|
|
308
|
+
title: 'Mis direcciones',
|
|
309
|
+
description: 'Direcciones guardadas para la entrega.',
|
|
310
|
+
add: 'Añadir dirección',
|
|
311
|
+
edit: 'Editar dirección',
|
|
312
|
+
label: 'Nombre de la dirección',
|
|
313
|
+
country: 'País',
|
|
314
|
+
region: 'Región',
|
|
315
|
+
findRegion: 'Empieza a escribir una región',
|
|
316
|
+
city: 'Ciudad',
|
|
317
|
+
street: 'Calle',
|
|
318
|
+
house: 'Número',
|
|
319
|
+
postcode: 'Código postal',
|
|
320
|
+
line2: 'Línea de dirección adicional',
|
|
321
|
+
entrance: 'Portal',
|
|
322
|
+
intercom: 'Portero automático',
|
|
323
|
+
floor: 'Planta',
|
|
324
|
+
apartment: 'Piso',
|
|
325
|
+
details: 'Detalles adicionales',
|
|
326
|
+
default: 'Dirección de entrega predeterminada',
|
|
327
|
+
makeDefault: 'Predeterminada',
|
|
328
|
+
makeDefaultHint: 'Usar para la entrega por defecto',
|
|
329
|
+
clearDefault: 'Desmarcar',
|
|
330
|
+
clearDefaultHint: 'Quitar la selección predeterminada',
|
|
331
|
+
empty: 'Añade una dirección de entrega para empezar.',
|
|
332
|
+
chooseCountry: 'Elige un país',
|
|
333
|
+
locate: 'Localizar',
|
|
334
|
+
locationFailed: 'No se ha podido determinar la dirección. Introdúcela a mano.',
|
|
335
|
+
regionFailed: 'No se han podido cargar las regiones. Inténtalo de nuevo.',
|
|
336
|
+
hintsFailed:
|
|
337
|
+
'Las sugerencias no están disponibles. Puedes seguir introduciendo la dirección a mano.',
|
|
338
|
+
deleteQuestion: '¿Eliminar esta dirección guardada?',
|
|
339
|
+
actions: 'Acciones de la dirección',
|
|
340
|
+
suggestionsLoading: 'Cargando sugerencias…',
|
|
341
|
+
savedTitle: 'Dirección guardada',
|
|
342
|
+
savedAsSent: 'Así se guarda la dirección en tu cuenta.',
|
|
343
|
+
savedRefined:
|
|
344
|
+
'El servicio de direcciones ha precisado la dirección. Revisa los campos marcados y edítalos si hace falta.',
|
|
345
|
+
refined: 'precisado',
|
|
346
|
+
done: 'Listo',
|
|
347
|
+
defaultKept:
|
|
348
|
+
'Esta es tu dirección de entrega predeterminada. Para quitar la marca, usa el menú de la dirección.',
|
|
349
|
+
noShipping: 'No hay envío a este país',
|
|
350
|
+
noShippingDefault:
|
|
351
|
+
'No hay envío a este país, así que esta dirección no puede ser la predeterminada.',
|
|
352
|
+
},
|
|
353
|
+
wallet: {
|
|
354
|
+
title: 'Monedero y pagos',
|
|
355
|
+
description: 'Recarga tu saldo y sigue tu historial de pagos.',
|
|
356
|
+
topUp: 'Recargar saldo',
|
|
357
|
+
topUpAction: 'Depósito',
|
|
358
|
+
amount: 'Importe',
|
|
359
|
+
payment: 'Método de pago',
|
|
360
|
+
currency: 'Moneda',
|
|
361
|
+
create: 'Continuar',
|
|
362
|
+
history: 'Historial de pagos',
|
|
363
|
+
wallet: 'Monedero',
|
|
364
|
+
orders: 'Pedidos',
|
|
365
|
+
paid_subs: 'Suscripciones',
|
|
366
|
+
empty: 'Todavía no hay pagos en esta categoría.',
|
|
367
|
+
unavailable: 'No hay métodos de pago disponibles.',
|
|
368
|
+
pay: 'Pagar',
|
|
369
|
+
cancelInvoice: 'Cancelar',
|
|
370
|
+
cancelQuestion: '¿Cancelar esta factura sin pagar?',
|
|
371
|
+
refunds: 'Reembolsos',
|
|
372
|
+
refundToBalance: 'Devuelto al saldo',
|
|
373
|
+
refundToMethod: 'Devuelto al método de pago',
|
|
374
|
+
invoice: 'Factura',
|
|
375
|
+
paymentTitle: 'Pago',
|
|
376
|
+
check: 'Justificante',
|
|
377
|
+
transactionId: 'ID de transacción del pago',
|
|
378
|
+
comment: 'Comentario',
|
|
379
|
+
relatedOrder: 'Pedido',
|
|
380
|
+
relatedSubscription: 'Suscripción',
|
|
381
|
+
openOrder: 'Abrir el pedido',
|
|
382
|
+
openSubscription: 'Abrir mis suscripciones',
|
|
383
|
+
purpose: {
|
|
384
|
+
topUp: 'Recarga de saldo',
|
|
385
|
+
deduction: 'Descontado del saldo',
|
|
386
|
+
orderPayment: 'Pago de pedido',
|
|
387
|
+
subscriptionPayment: 'Pago de suscripción',
|
|
388
|
+
bonus: 'Abonado en el saldo',
|
|
389
|
+
refund: 'Reembolso',
|
|
390
|
+
},
|
|
391
|
+
// Invoice states by their number: the backend sends the state name
|
|
392
|
+
// in English only.
|
|
393
|
+
statuses: {
|
|
394
|
+
'-4': 'Cancelado',
|
|
395
|
+
'-3': 'Caducado',
|
|
396
|
+
'-2': 'Bloqueado',
|
|
397
|
+
'-1': 'Fallido',
|
|
398
|
+
'0': 'Creado',
|
|
399
|
+
'1': 'Completado',
|
|
400
|
+
} as Record<string, string>,
|
|
401
|
+
},
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
export function featureLabels(locale: string) {
|
|
405
|
+
return locale.toLowerCase().startsWith('ru') ? ru : locale.toLowerCase().startsWith('es') ? es : en;
|
|
406
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getAvailableValueFromObject } from '@/utils/basklee/presentation';
|
|
2
|
+
|
|
3
|
+
const labels = {
|
|
4
|
+
en: {
|
|
5
|
+
title: 'Featured',
|
|
6
|
+
description: 'Products from categories you have searched for.',
|
|
7
|
+
empty:
|
|
8
|
+
'Search for products: recommendations come from the categories you search.',
|
|
9
|
+
guestTitle: 'Sign in to see recommendations',
|
|
10
|
+
guestDescription:
|
|
11
|
+
'Recommendations are selected from categories you have searched for.',
|
|
12
|
+
home: 'Home',
|
|
13
|
+
},
|
|
14
|
+
ru: {
|
|
15
|
+
title: 'Рекомендуем',
|
|
16
|
+
description: 'Товары из категорий, которые вы искали.',
|
|
17
|
+
empty:
|
|
18
|
+
'Поищите товары: рекомендации подбираются по категориям ваших запросов.',
|
|
19
|
+
guestTitle: 'Войдите, чтобы увидеть рекомендации',
|
|
20
|
+
guestDescription:
|
|
21
|
+
'Рекомендации подбираются по категориям, которые вы искали.',
|
|
22
|
+
home: 'Главная',
|
|
23
|
+
},
|
|
24
|
+
es: {
|
|
25
|
+
title: 'Destacados',
|
|
26
|
+
description: 'Productos de las categorías que has buscado.',
|
|
27
|
+
empty:
|
|
28
|
+
'Busca productos: las recomendaciones salen de las categorías que buscas.',
|
|
29
|
+
guestTitle: 'Inicia sesión para ver recomendaciones',
|
|
30
|
+
guestDescription:
|
|
31
|
+
'Las recomendaciones se eligen entre las categorías que has buscado.',
|
|
32
|
+
home: 'Inicio',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export function featuredLabels(locale: string) {
|
|
37
|
+
return getAvailableValueFromObject(labels, locale) ?? labels.en;
|
|
38
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BaskleeApiError } from '@/utils/basklee/api';
|
|
2
|
+
import type { BaskleeApiResponse } from '@/utils/basklee/api';
|
|
3
|
+
import { saveAppFile } from '@/utils/basklee/nativeApp';
|
|
4
|
+
|
|
5
|
+
export function responseFile(response: BaskleeApiResponse) {
|
|
6
|
+
const type =
|
|
7
|
+
response.headers?.['content-type'] ??
|
|
8
|
+
(response.body instanceof Blob ? response.body.type : '');
|
|
9
|
+
if (
|
|
10
|
+
response.status < 200 ||
|
|
11
|
+
response.status >= 300 ||
|
|
12
|
+
!(response.body instanceof Blob) ||
|
|
13
|
+
/(?:application\/json|text\/html)/i.test(type)
|
|
14
|
+
) {
|
|
15
|
+
const body = response.body as {
|
|
16
|
+
form_errors?: Record<string, { message: string }[]>;
|
|
17
|
+
} | null;
|
|
18
|
+
const errors = Object.fromEntries(
|
|
19
|
+
Object.entries(body?.form_errors ?? {}).map(([key, messages]) => [
|
|
20
|
+
key,
|
|
21
|
+
messages.map((item) => item.message).join(' '),
|
|
22
|
+
]),
|
|
23
|
+
);
|
|
24
|
+
throw new BaskleeApiError('failed', errors, response.status);
|
|
25
|
+
}
|
|
26
|
+
return response.body;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function downloadName(disposition: string, fallback: string) {
|
|
30
|
+
const encoded = /filename\*=UTF-8''([^;]+)/i.exec(disposition)?.[1];
|
|
31
|
+
const quoted = /filename="([^"]+)"/i.exec(disposition)?.[1];
|
|
32
|
+
const plain = /filename=([^;]+)/i.exec(disposition)?.[1];
|
|
33
|
+
let name = quoted || plain?.trim() || fallback;
|
|
34
|
+
if (encoded) {
|
|
35
|
+
try {
|
|
36
|
+
name = decodeURIComponent(encoded);
|
|
37
|
+
} catch {
|
|
38
|
+
name = fallback;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return (
|
|
42
|
+
name
|
|
43
|
+
.split(/[\\/]/)
|
|
44
|
+
.pop()
|
|
45
|
+
?.replace(/[\u0000-\u001f\u007f]/g, '') || 'download'
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export async function saveResponseFile(
|
|
50
|
+
response: BaskleeApiResponse,
|
|
51
|
+
fallback: string,
|
|
52
|
+
) {
|
|
53
|
+
const blob = responseFile(response);
|
|
54
|
+
const name = downloadName(
|
|
55
|
+
response.headers?.['content-disposition'] ?? '',
|
|
56
|
+
fallback,
|
|
57
|
+
);
|
|
58
|
+
// The Android app saves the file itself; its WebView ignores the link.
|
|
59
|
+
if (await saveAppFile(blob, name)) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const url = URL.createObjectURL(blob);
|
|
63
|
+
const anchor = document.createElement('a');
|
|
64
|
+
anchor.href = url;
|
|
65
|
+
anchor.download = name;
|
|
66
|
+
anchor.hidden = true;
|
|
67
|
+
document.body.append(anchor);
|
|
68
|
+
anchor.click();
|
|
69
|
+
anchor.remove();
|
|
70
|
+
setTimeout(() => URL.revokeObjectURL(url), 1000);
|
|
71
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export function footerLabels(locale: string) {
|
|
2
|
+
return locale.toLowerCase().startsWith('ru')
|
|
3
|
+
? {
|
|
4
|
+
catalog: 'Каталог',
|
|
5
|
+
sellers: 'Продавцы',
|
|
6
|
+
stores: 'Магазины',
|
|
7
|
+
manufacturers: 'Производители',
|
|
8
|
+
sections: 'Покупателям',
|
|
9
|
+
contact: 'Контакты',
|
|
10
|
+
privacy: 'Политика конфиденциальности',
|
|
11
|
+
home: 'На главную',
|
|
12
|
+
profile: 'Личный кабинет',
|
|
13
|
+
journal: 'Журнал',
|
|
14
|
+
rights: 'Все права защищены.',
|
|
15
|
+
products: 'Товары',
|
|
16
|
+
discounts: 'Скидки',
|
|
17
|
+
new: 'Новинки',
|
|
18
|
+
featured: 'Рекомендуем',
|
|
19
|
+
}
|
|
20
|
+
: locale.toLowerCase().startsWith('es') ? {
|
|
21
|
+
catalog: 'Catálogo',
|
|
22
|
+
sellers: 'Vendedores',
|
|
23
|
+
stores: 'Tiendas',
|
|
24
|
+
manufacturers: 'Fabricantes',
|
|
25
|
+
sections: 'Descubre',
|
|
26
|
+
contact: 'Contacto',
|
|
27
|
+
privacy: 'Política de privacidad',
|
|
28
|
+
home: 'Inicio',
|
|
29
|
+
profile: 'Mi cuenta',
|
|
30
|
+
journal: 'Blog',
|
|
31
|
+
rights: 'Todos los derechos reservados.',
|
|
32
|
+
products: 'Productos',
|
|
33
|
+
discounts: 'Descuentos',
|
|
34
|
+
new: 'Novedades',
|
|
35
|
+
featured: 'Destacados',
|
|
36
|
+
} : {
|
|
37
|
+
catalog: 'Catalog',
|
|
38
|
+
sellers: 'Sellers',
|
|
39
|
+
stores: 'Stores',
|
|
40
|
+
manufacturers: 'Manufacturers',
|
|
41
|
+
sections: 'Discover',
|
|
42
|
+
contact: 'Contact',
|
|
43
|
+
privacy: 'Privacy policy',
|
|
44
|
+
home: 'Home',
|
|
45
|
+
profile: 'My account',
|
|
46
|
+
journal: 'Journal',
|
|
47
|
+
rights: 'All rights reserved.',
|
|
48
|
+
products: 'Products',
|
|
49
|
+
discounts: 'Discounts',
|
|
50
|
+
new: 'New arrivals',
|
|
51
|
+
featured: 'Featured',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AppLoadResult } from '@/interfaces/basklee/transport';
|
|
2
|
+
import type { IProduct, IAppLoadProduct } from '@/interfaces/basklee/products/IProduct';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* The backend answered HTTP 401 while the store still held a signed-in
|
|
6
|
+
* snapshot. Until Application Load confirms the guest session, the store keeps
|
|
7
|
+
* the public storefront data and drops everything that belonged to the
|
|
8
|
+
* account: profile, authenticated discovery, wallet and session counters.
|
|
9
|
+
*/
|
|
10
|
+
export function guestProduct<T extends IProduct | IAppLoadProduct>(product: T): T {
|
|
11
|
+
return {
|
|
12
|
+
...product,
|
|
13
|
+
whishlist_id: null,
|
|
14
|
+
subscription_id: null,
|
|
15
|
+
cart_counts: null,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function guestAppLoadResult(result: AppLoadResult): AppLoadResult {
|
|
20
|
+
const page = result.response.page_data;
|
|
21
|
+
const variables = { ...page.init.variables };
|
|
22
|
+
|
|
23
|
+
// Unknown until the guest Application Load returns the new session's values.
|
|
24
|
+
delete variables.c_cart_positions;
|
|
25
|
+
delete variables.c_wishlist;
|
|
26
|
+
|
|
27
|
+
const init = {
|
|
28
|
+
...page.init,
|
|
29
|
+
is_authenticated: false,
|
|
30
|
+
variables,
|
|
31
|
+
products: page.init.products?.map(guestProduct),
|
|
32
|
+
featured: page.init.featured?.map(guestProduct),
|
|
33
|
+
};
|
|
34
|
+
const guest = { ...page, init };
|
|
35
|
+
|
|
36
|
+
delete init.wallet;
|
|
37
|
+
delete guest.user;
|
|
38
|
+
delete guest.auth;
|
|
39
|
+
delete guest.view_key;
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
...result,
|
|
43
|
+
response: {
|
|
44
|
+
...result.response,
|
|
45
|
+
user_groups: undefined,
|
|
46
|
+
user_perms: undefined,
|
|
47
|
+
page_data: guest,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|