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,1023 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, nextTick, onMounted, ref, shallowRef, watch } from 'vue';
|
|
3
|
+
import { useRuntimeConfig } from '#imports';
|
|
4
|
+
import { useBaskleeStore } from '@/stores/basklee';
|
|
5
|
+
import { useBaskleeProductsStore } from '@/stores/baskleeProducts';
|
|
6
|
+
import { useBaskleeSelectionsStore } from '@/stores/baskleeSelections';
|
|
7
|
+
import {
|
|
8
|
+
useBaskleeFeatureApi,
|
|
9
|
+
useBaskleeTask,
|
|
10
|
+
} from '@/composables/useBaskleeFeature';
|
|
11
|
+
import { useBaskleeBlogReading } from '@/composables/useBaskleeBlogReading';
|
|
12
|
+
import { blogLabels } from '@/utils/basklee/blogLabels';
|
|
13
|
+
import { featureLabels } from '@/utils/basklee/featureLabels';
|
|
14
|
+
import {
|
|
15
|
+
getAvailableNestedValueFromObject,
|
|
16
|
+
safePublicUrl,
|
|
17
|
+
} from '@/utils/basklee/presentation';
|
|
18
|
+
import {
|
|
19
|
+
removeLeadingDuplicateBlogHeading,
|
|
20
|
+
safeBlogArticleHtml,
|
|
21
|
+
} from '@/utils/basklee/blogArticleHtml';
|
|
22
|
+
import { htmlTextParagraphs } from '@/utils/basklee/htmlText';
|
|
23
|
+
import {
|
|
24
|
+
appMediaUrl,
|
|
25
|
+
nativeAppOrigin,
|
|
26
|
+
} from '@/utils/basklee/nativeApp';
|
|
27
|
+
import { requestBlogPost } from '@/utils/basklee/blogLayout';
|
|
28
|
+
import {
|
|
29
|
+
blogPlacementProductIds,
|
|
30
|
+
blogPlacementRequests,
|
|
31
|
+
blogProductPlacements,
|
|
32
|
+
} from '@/utils/basklee/blogProductPlacements';
|
|
33
|
+
import type { IBlogProductPlacement } from '@/utils/basklee/blogProductPlacements';
|
|
34
|
+
import type { IProductSearchSeller } from '@/interfaces/basklee/products/IProduct';
|
|
35
|
+
import {
|
|
36
|
+
blogViewerImage,
|
|
37
|
+
blogViewerImages,
|
|
38
|
+
blogViewerPhotos,
|
|
39
|
+
blogViewerIndex,
|
|
40
|
+
isBlogViewerOpenKey,
|
|
41
|
+
markBlogViewerImages,
|
|
42
|
+
} from '@/utils/basklee/blogImageViewer';
|
|
43
|
+
import type { IBlogViewerImage } from '@/utils/basklee/blogImageViewer';
|
|
44
|
+
import ProductReviewImageViewer from '@/components/basklee/products/ProductReviewImageViewer.vue';
|
|
45
|
+
import type { IBlogPost } from '@/interfaces/basklee/blog/IBlogApi';
|
|
46
|
+
import type { IProductSecondaryVariantRequest } from '@/interfaces/basklee/products/IProductSecondaryVariantRequest';
|
|
47
|
+
import type {
|
|
48
|
+
IProduct,
|
|
49
|
+
IProductSeller,
|
|
50
|
+
IProductSecondaryVariant,
|
|
51
|
+
IProductVariantValue,
|
|
52
|
+
} from '@/interfaces/basklee/products/IProduct';
|
|
53
|
+
import { NuxtLink } from '#components';
|
|
54
|
+
import BlogComments from '@/components/basklee/blog/BlogComments.vue';
|
|
55
|
+
import ProductGroup from '@/components/basklee/products/ProductGroup.vue';
|
|
56
|
+
import ProductCard from '@/components/basklee/products/ProductCard.vue';
|
|
57
|
+
import '@/components/basklee/shared/features.css';
|
|
58
|
+
import BaskleeEmptyState from '@/components/basklee/shared/BaskleeEmptyState.vue';
|
|
59
|
+
|
|
60
|
+
// `initialPost` is the article loaded during the server render.
|
|
61
|
+
const props = withDefaults(
|
|
62
|
+
defineProps<{
|
|
63
|
+
postId: number;
|
|
64
|
+
productActionsDisabled?: boolean;
|
|
65
|
+
initialPost?: IBlogPost | null;
|
|
66
|
+
}>(),
|
|
67
|
+
{ productActionsDisabled: false, initialPost: null },
|
|
68
|
+
);
|
|
69
|
+
const emit = defineEmits<{
|
|
70
|
+
back: [];
|
|
71
|
+
loaded: [post: IBlogPost];
|
|
72
|
+
missing: [];
|
|
73
|
+
selectProduct: [product: IProduct];
|
|
74
|
+
selectSeller: [seller: IProductSeller];
|
|
75
|
+
selectVariant: [
|
|
76
|
+
selection: { product: number; variant: IProductVariantValue },
|
|
77
|
+
];
|
|
78
|
+
requestSecondaryVariants: [selection: IProductSecondaryVariantRequest];
|
|
79
|
+
selectSecondaryVariant: [
|
|
80
|
+
selection: { product: number; variant: IProductSecondaryVariant },
|
|
81
|
+
];
|
|
82
|
+
toggleFavorite: [selection: { product: number; selected: boolean }];
|
|
83
|
+
add: [selection: { product: number; quantity: number }];
|
|
84
|
+
remove: [selection: { product: number; cartItem: number }];
|
|
85
|
+
subscribe: [selection: { product: number }];
|
|
86
|
+
unsubscribe: [selection: { product: number }];
|
|
87
|
+
preorder: [selection: { product: number }];
|
|
88
|
+
}>();
|
|
89
|
+
const store = useBaskleeStore();
|
|
90
|
+
const productStore = useBaskleeProductsStore();
|
|
91
|
+
const selectionStore = useBaskleeSelectionsStore();
|
|
92
|
+
const api = useBaskleeFeatureApi();
|
|
93
|
+
const task = useBaskleeTask();
|
|
94
|
+
const post = ref<IBlogPost>();
|
|
95
|
+
const article = ref<HTMLElement>();
|
|
96
|
+
const coverImage = ref<HTMLImageElement>();
|
|
97
|
+
// The cover and the text images open larger in the viewer.
|
|
98
|
+
const viewerImages = ref<IBlogViewerImage[]>([]);
|
|
99
|
+
const viewerStart = ref(-1);
|
|
100
|
+
const accessChanged = ref(false);
|
|
101
|
+
const coverFailed = ref(false);
|
|
102
|
+
const appOrigin = nativeAppOrigin(
|
|
103
|
+
useRuntimeConfig().public.baskleeAppOrigin,
|
|
104
|
+
);
|
|
105
|
+
const productIds = ref<number[]>([]);
|
|
106
|
+
// Product cards the author placed in the text (see blogProductPlacements).
|
|
107
|
+
const placements = shallowRef<IBlogProductPlacement[]>([]);
|
|
108
|
+
const wasShown = ref(false);
|
|
109
|
+
const settled = ref(false);
|
|
110
|
+
const labels = computed(() => blogLabels(selectionStore.localeCode));
|
|
111
|
+
const common = computed(() => featureLabels(selectionStore.localeCode));
|
|
112
|
+
const full = computed(
|
|
113
|
+
() => post.value?.is_full && post.value.has_full_access,
|
|
114
|
+
);
|
|
115
|
+
// The first request in the browser shows a placeholder with the article
|
|
116
|
+
// layout; a retry after a failed first request shows it again. An article
|
|
117
|
+
// loaded during the server render is shown at once.
|
|
118
|
+
const showSkeleton = computed(
|
|
119
|
+
() => !post.value && !settled.value && !task.state.error,
|
|
120
|
+
);
|
|
121
|
+
// Widths of the placeholder title, meta and paragraph lines.
|
|
122
|
+
const skeletonTitle = ['w-11/12', 'w-3/5'];
|
|
123
|
+
const skeletonMeta = ['w-28', 'w-20', 'w-24'];
|
|
124
|
+
const skeletonText = [
|
|
125
|
+
'w-full',
|
|
126
|
+
'w-full',
|
|
127
|
+
'w-11/12',
|
|
128
|
+
'w-full',
|
|
129
|
+
'w-4/5',
|
|
130
|
+
'w-full',
|
|
131
|
+
'w-2/3',
|
|
132
|
+
];
|
|
133
|
+
// A related product placeholder: name, price and the purchase button.
|
|
134
|
+
const skeletonCard = ['h-3 w-4/5', 'h-3 w-1/2', 'h-9 w-full'];
|
|
135
|
+
// `premium_tariff_ids` lists the plans that include this article. The plans
|
|
136
|
+
// page accepts them as `?ids=3,7` and then shows only those plans; without
|
|
137
|
+
// them the link opens the whole list.
|
|
138
|
+
const plansLink = computed(() => {
|
|
139
|
+
const ids = post.value?.premium_tariff_ids ?? [];
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
path: '/tariffs',
|
|
143
|
+
query: {
|
|
144
|
+
locale: selectionStore.localeCode,
|
|
145
|
+
...(ids.length ? { ids: ids.join(',') } : {}),
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
const title = computed(() => field('post_title'));
|
|
150
|
+
const source = computed(() =>
|
|
151
|
+
field(full.value ? 'post_view_text' : 'post_preview_text'),
|
|
152
|
+
);
|
|
153
|
+
const articleSource = computed(() =>
|
|
154
|
+
removeLeadingDuplicateBlogHeading(source.value, title.value),
|
|
155
|
+
);
|
|
156
|
+
const html = computed(() =>
|
|
157
|
+
safeBlogArticleHtml(articleSource.value, undefined, appOrigin),
|
|
158
|
+
);
|
|
159
|
+
// The server render and hydration show the text as plain paragraphs;
|
|
160
|
+
// the sanitized HTML replaces them once the component is mounted.
|
|
161
|
+
const mounted = ref(false);
|
|
162
|
+
const paragraphs = computed(() => htmlTextParagraphs(articleSource.value));
|
|
163
|
+
const cover = computed(() => {
|
|
164
|
+
const images = [...(post.value?.preview_images ?? [])].sort(
|
|
165
|
+
(left, right) => left.display_order - right.display_order,
|
|
166
|
+
);
|
|
167
|
+
return appMediaUrl(
|
|
168
|
+
safePublicUrl(images[0]?.image_url || post.value?.preview_image_urls?.[0]),
|
|
169
|
+
appOrigin,
|
|
170
|
+
);
|
|
171
|
+
});
|
|
172
|
+
// The backend sends video addresses as `/ps3/...` paths.
|
|
173
|
+
const videos = computed(() =>
|
|
174
|
+
(post.value?.videos ?? []).flatMap((video) => {
|
|
175
|
+
const source = safePublicUrl(video.video_url);
|
|
176
|
+
|
|
177
|
+
return source
|
|
178
|
+
? [{
|
|
179
|
+
id: video.id,
|
|
180
|
+
source: appMediaUrl(source, appOrigin),
|
|
181
|
+
poster: appMediaUrl(safePublicUrl(video.preview_url), appOrigin),
|
|
182
|
+
}]
|
|
183
|
+
: [];
|
|
184
|
+
}),
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
function field(name: keyof IBlogPost['locale'][string]) {
|
|
188
|
+
return (
|
|
189
|
+
getAvailableNestedValueFromObject(
|
|
190
|
+
post.value?.locale,
|
|
191
|
+
selectionStore.localeCode,
|
|
192
|
+
name,
|
|
193
|
+
) || ''
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function lockArticle() {
|
|
198
|
+
accessChanged.value = true;
|
|
199
|
+
if (post.value) {
|
|
200
|
+
post.value = {
|
|
201
|
+
...post.value,
|
|
202
|
+
is_full: false,
|
|
203
|
+
has_full_access: false,
|
|
204
|
+
locale: Object.fromEntries(
|
|
205
|
+
Object.entries(post.value.locale).map(([locale, value]) => {
|
|
206
|
+
const { post_view_text: _content, ...preview } = value;
|
|
207
|
+
return [locale, preview];
|
|
208
|
+
}),
|
|
209
|
+
),
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
useBaskleeBlogReading(post, article, lockArticle);
|
|
214
|
+
|
|
215
|
+
// The requested article carries complete product objects; the cards read
|
|
216
|
+
// them from the store like every other product list.
|
|
217
|
+
function showProducts(products: IProduct[] = []) {
|
|
218
|
+
for (const product of products) {
|
|
219
|
+
productStore.setProduct(product, 'products');
|
|
220
|
+
}
|
|
221
|
+
productIds.value = products.map((product) => product.id);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function load() {
|
|
225
|
+
return task.run('load', async (signal) => {
|
|
226
|
+
post.value = await requestBlogPost(api, props.postId, signal);
|
|
227
|
+
accessChanged.value = false;
|
|
228
|
+
settled.value = true;
|
|
229
|
+
showProducts(post.value?.related_products);
|
|
230
|
+
if (post.value) {
|
|
231
|
+
wasShown.value = true;
|
|
232
|
+
emit('loaded', post.value);
|
|
233
|
+
} else if (!wasShown.value) {
|
|
234
|
+
// The first successful response without this article is a missing
|
|
235
|
+
// page. An article that disappears after a session change keeps the
|
|
236
|
+
// unavailable state on the page instead.
|
|
237
|
+
emit('missing');
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
watch(
|
|
242
|
+
() => store.isAuthenticated,
|
|
243
|
+
(authenticated) => {
|
|
244
|
+
if (!authenticated) {
|
|
245
|
+
lockArticle();
|
|
246
|
+
}
|
|
247
|
+
void load();
|
|
248
|
+
},
|
|
249
|
+
);
|
|
250
|
+
const preloaded = props.initialPost?.id === props.postId;
|
|
251
|
+
if (preloaded && props.initialPost) {
|
|
252
|
+
post.value = props.initialPost;
|
|
253
|
+
settled.value = true;
|
|
254
|
+
wasShown.value = true;
|
|
255
|
+
showProducts(props.initialPost.related_products);
|
|
256
|
+
}
|
|
257
|
+
function placementShown(placement: IBlogProductPlacement) {
|
|
258
|
+
return placement.productIds.some((id) => productStore.getProduct(id, 'products'));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// Placed products that no list loaded yet come with one request per 35.
|
|
262
|
+
async function loadPlacementProducts(ids: number[]) {
|
|
263
|
+
const missing = ids.filter((id) => !productStore.getProduct(id, 'products'));
|
|
264
|
+
|
|
265
|
+
for (const chunk of blogPlacementRequests(missing)) {
|
|
266
|
+
try {
|
|
267
|
+
const data = await api.request<{
|
|
268
|
+
products?: { data?: IProduct[] };
|
|
269
|
+
selects?: { sellers?: IProductSearchSeller[] };
|
|
270
|
+
}>('products_search', {
|
|
271
|
+
filters: { id_in: chunk.join(',') },
|
|
272
|
+
paginate: { page: 1, pp_items: chunk.length },
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
for (const product of data?.products?.data ?? []) {
|
|
276
|
+
productStore.setProduct(product, 'products', data?.selects?.sellers ?? []);
|
|
277
|
+
}
|
|
278
|
+
} catch {
|
|
279
|
+
// A placement without its products stays empty and hidden.
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// New text replaces the placement blocks: the cards leave them first.
|
|
285
|
+
watch(html, () => {
|
|
286
|
+
placements.value = [];
|
|
287
|
+
}, { flush: 'pre' });
|
|
288
|
+
watch(
|
|
289
|
+
[html, mounted, () => post.value?.id],
|
|
290
|
+
() => {
|
|
291
|
+
void nextTick(() => {
|
|
292
|
+
placements.value = mounted.value ? blogProductPlacements(article.value) : [];
|
|
293
|
+
void loadPlacementProducts(blogPlacementProductIds(placements.value));
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
{ flush: 'post' },
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
function openableImages() {
|
|
300
|
+
return blogViewerImages([coverImage.value, article.value]);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// The text is set with v-html: its images become buttons after each render.
|
|
304
|
+
watch(
|
|
305
|
+
[html, cover, mounted, () => labels.value.imageOpen, () => post.value?.id],
|
|
306
|
+
() => {
|
|
307
|
+
void nextTick(() => markBlogViewerImages(openableImages(), labels.value.imageOpen));
|
|
308
|
+
},
|
|
309
|
+
{ flush: 'post' },
|
|
310
|
+
);
|
|
311
|
+
|
|
312
|
+
function openViewer(event: Event) {
|
|
313
|
+
const images = openableImages();
|
|
314
|
+
const index = blogViewerIndex(event.target, images);
|
|
315
|
+
if (index < 0) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
event.preventDefault();
|
|
319
|
+
viewerImages.value = images.map((image) => {
|
|
320
|
+
const shown = blogViewerImage(image);
|
|
321
|
+
return image === coverImage.value ? { ...shown, alt: shown.alt || title.value } : shown;
|
|
322
|
+
});
|
|
323
|
+
viewerStart.value = index;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function onArticleKeydown(event: KeyboardEvent) {
|
|
327
|
+
if (isBlogViewerOpenKey(event)) {
|
|
328
|
+
openViewer(event);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// The viewer gives the focus back to the image that opened it.
|
|
333
|
+
function closeViewer() {
|
|
334
|
+
viewerStart.value = -1;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
onMounted(() => {
|
|
338
|
+
mounted.value = true;
|
|
339
|
+
if (!preloaded) {
|
|
340
|
+
void load();
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
</script>
|
|
344
|
+
|
|
345
|
+
<template>
|
|
346
|
+
<section
|
|
347
|
+
class="op-feature op-feature-stack @container/article"
|
|
348
|
+
data-feature-part="BlogArticle"
|
|
349
|
+
:aria-busy="showSkeleton || undefined"
|
|
350
|
+
>
|
|
351
|
+
<button
|
|
352
|
+
type="button"
|
|
353
|
+
class="op-feature-button self-start"
|
|
354
|
+
:aria-label="labels.backHint"
|
|
355
|
+
@click="emit('back')"
|
|
356
|
+
>
|
|
357
|
+
← {{ labels.back }}
|
|
358
|
+
</button>
|
|
359
|
+
<div
|
|
360
|
+
v-if="task.state.error || accessChanged"
|
|
361
|
+
role="alert"
|
|
362
|
+
class="op-notice op-notice-error"
|
|
363
|
+
>
|
|
364
|
+
{{ task.state.error || labels.accessChanged }}
|
|
365
|
+
<button
|
|
366
|
+
class="op-feature-button"
|
|
367
|
+
type="button"
|
|
368
|
+
:disabled="Boolean(task.state.pending)"
|
|
369
|
+
@click="load"
|
|
370
|
+
>
|
|
371
|
+
{{ common.refresh }}
|
|
372
|
+
</button>
|
|
373
|
+
</div>
|
|
374
|
+
<p
|
|
375
|
+
class="op-feature-loading"
|
|
376
|
+
v-if="task.state.pending || showSkeleton"
|
|
377
|
+
role="status"
|
|
378
|
+
>
|
|
379
|
+
<span class="sr-only">{{ common.loading }}</span>
|
|
380
|
+
</p>
|
|
381
|
+
<article
|
|
382
|
+
v-if="post"
|
|
383
|
+
class="op-feature-stack mx-auto w-full max-w-[720px]"
|
|
384
|
+
@click="openViewer"
|
|
385
|
+
@keydown="onArticleKeydown"
|
|
386
|
+
>
|
|
387
|
+
<header class="op-feature-stack">
|
|
388
|
+
<h1
|
|
389
|
+
class="
|
|
390
|
+
op-feature-title
|
|
391
|
+
font-medium! uppercase tracking-[0.04em]
|
|
392
|
+
text-2xl! @min-[592px]/article:text-3xl!
|
|
393
|
+
"
|
|
394
|
+
>
|
|
395
|
+
{{ title }}
|
|
396
|
+
</h1>
|
|
397
|
+
<div
|
|
398
|
+
class="
|
|
399
|
+
op-feature-actions op-feature-muted
|
|
400
|
+
text-xs uppercase tracking-[0.08em]
|
|
401
|
+
"
|
|
402
|
+
>
|
|
403
|
+
<span>{{ post.writer.first_name }} {{ post.writer.last_name }}</span>
|
|
404
|
+
<time>{{ post.date_created.date }}</time>
|
|
405
|
+
<span v-if="post.read_time_min">
|
|
406
|
+
{{ post.read_time_min }} {{ labels.minutes }}
|
|
407
|
+
</span>
|
|
408
|
+
</div>
|
|
409
|
+
<img
|
|
410
|
+
v-if="cover && !coverFailed"
|
|
411
|
+
ref="coverImage"
|
|
412
|
+
:src="cover"
|
|
413
|
+
alt=""
|
|
414
|
+
width="3"
|
|
415
|
+
height="2"
|
|
416
|
+
decoding="async"
|
|
417
|
+
data-blog-article-cover
|
|
418
|
+
class="
|
|
419
|
+
block aspect-[3/2] h-auto w-full
|
|
420
|
+
rounded-none bg-basklee-surface object-cover
|
|
421
|
+
"
|
|
422
|
+
@error="coverFailed = true"
|
|
423
|
+
/>
|
|
424
|
+
</header>
|
|
425
|
+
<div
|
|
426
|
+
v-if="mounted"
|
|
427
|
+
ref="article"
|
|
428
|
+
class="op-feature-prose"
|
|
429
|
+
v-html="html"
|
|
430
|
+
/>
|
|
431
|
+
<div
|
|
432
|
+
v-else
|
|
433
|
+
ref="article"
|
|
434
|
+
class="op-feature-prose"
|
|
435
|
+
>
|
|
436
|
+
<p
|
|
437
|
+
v-for="(paragraph, index) in paragraphs"
|
|
438
|
+
:key="index"
|
|
439
|
+
>
|
|
440
|
+
{{ paragraph }}
|
|
441
|
+
</p>
|
|
442
|
+
</div>
|
|
443
|
+
<template
|
|
444
|
+
v-for="(placement, index) in placements"
|
|
445
|
+
:key="index"
|
|
446
|
+
>
|
|
447
|
+
<Teleport
|
|
448
|
+
v-if="placementShown(placement)"
|
|
449
|
+
:to="placement.element"
|
|
450
|
+
>
|
|
451
|
+
<ProductCard
|
|
452
|
+
v-if="placement.layout === 'single'"
|
|
453
|
+
:product-id="placement.productIds[0]!"
|
|
454
|
+
:hidden-badges="placement.hiddenBadges"
|
|
455
|
+
:disabled="props.productActionsDisabled"
|
|
456
|
+
data-blog-placement="single"
|
|
457
|
+
@select="emit('selectProduct', $event)"
|
|
458
|
+
@select-seller="emit('selectSeller', $event)"
|
|
459
|
+
@select-variant="emit('selectVariant', $event)"
|
|
460
|
+
@request-secondary-variants="emit('requestSecondaryVariants', $event)"
|
|
461
|
+
@select-secondary-variant="emit('selectSecondaryVariant', $event)"
|
|
462
|
+
@toggle-favorite="emit('toggleFavorite', $event)"
|
|
463
|
+
@add="emit('add', $event)"
|
|
464
|
+
@remove="emit('remove', $event)"
|
|
465
|
+
@subscribe="emit('subscribe', $event)"
|
|
466
|
+
@unsubscribe="emit('unsubscribe', $event)"
|
|
467
|
+
@preorder="emit('preorder', $event)"
|
|
468
|
+
/>
|
|
469
|
+
<ProductGroup
|
|
470
|
+
v-else
|
|
471
|
+
:product-ids="placement.productIds"
|
|
472
|
+
:hidden-badges="placement.hiddenBadges"
|
|
473
|
+
:disabled="props.productActionsDisabled"
|
|
474
|
+
data-blog-placement="list"
|
|
475
|
+
@select="emit('selectProduct', $event)"
|
|
476
|
+
@select-seller="emit('selectSeller', $event)"
|
|
477
|
+
@select-variant="emit('selectVariant', $event)"
|
|
478
|
+
@request-secondary-variants="emit('requestSecondaryVariants', $event)"
|
|
479
|
+
@select-secondary-variant="emit('selectSecondaryVariant', $event)"
|
|
480
|
+
@toggle-favorite="emit('toggleFavorite', $event)"
|
|
481
|
+
@add="emit('add', $event)"
|
|
482
|
+
@remove="emit('remove', $event)"
|
|
483
|
+
@subscribe="emit('subscribe', $event)"
|
|
484
|
+
@unsubscribe="emit('unsubscribe', $event)"
|
|
485
|
+
@preorder="emit('preorder', $event)"
|
|
486
|
+
/>
|
|
487
|
+
</Teleport>
|
|
488
|
+
</template>
|
|
489
|
+
<div
|
|
490
|
+
v-if="!full"
|
|
491
|
+
class="op-feature-panel op-feature-stack"
|
|
492
|
+
data-blog-article-access
|
|
493
|
+
>
|
|
494
|
+
<h2 class="op-feature-subtitle uppercase tracking-[0.08em] text-sm!">
|
|
495
|
+
{{ labels.fullAccess }}
|
|
496
|
+
</h2>
|
|
497
|
+
<p class="op-feature-muted m-0 text-sm leading-6">
|
|
498
|
+
{{ labels.fullAccessText }}
|
|
499
|
+
</p>
|
|
500
|
+
<NuxtLink
|
|
501
|
+
class="op-feature-link op-feature-button self-start"
|
|
502
|
+
:to="plansLink"
|
|
503
|
+
:aria-label="labels.tariffsHint"
|
|
504
|
+
data-blog-article-plans
|
|
505
|
+
>
|
|
506
|
+
{{ labels.tariffs }}
|
|
507
|
+
</NuxtLink>
|
|
508
|
+
</div>
|
|
509
|
+
<template v-if="full">
|
|
510
|
+
<video
|
|
511
|
+
v-for="video in videos"
|
|
512
|
+
:key="video.id"
|
|
513
|
+
controls
|
|
514
|
+
preload="metadata"
|
|
515
|
+
:src="video.source"
|
|
516
|
+
:poster="video.poster || undefined"
|
|
517
|
+
:aria-label="labels.video"
|
|
518
|
+
class="aspect-video w-full rounded-none"
|
|
519
|
+
/>
|
|
520
|
+
</template>
|
|
521
|
+
<section
|
|
522
|
+
v-if="productIds.length"
|
|
523
|
+
class="op-feature-stack"
|
|
524
|
+
data-blog-related-products
|
|
525
|
+
>
|
|
526
|
+
<h2 class="op-feature-subtitle uppercase tracking-[0.08em] text-sm!">
|
|
527
|
+
{{ labels.related }}
|
|
528
|
+
</h2>
|
|
529
|
+
<ProductGroup
|
|
530
|
+
:product-ids="productIds"
|
|
531
|
+
layout="grid"
|
|
532
|
+
:disabled="props.productActionsDisabled"
|
|
533
|
+
@select="emit('selectProduct', $event)"
|
|
534
|
+
@select-seller="emit('selectSeller', $event)"
|
|
535
|
+
@select-variant="emit('selectVariant', $event)"
|
|
536
|
+
@request-secondary-variants="emit('requestSecondaryVariants', $event)"
|
|
537
|
+
@select-secondary-variant="emit('selectSecondaryVariant', $event)"
|
|
538
|
+
@toggle-favorite="emit('toggleFavorite', $event)"
|
|
539
|
+
@add="emit('add', $event)"
|
|
540
|
+
@remove="emit('remove', $event)"
|
|
541
|
+
@subscribe="emit('subscribe', $event)"
|
|
542
|
+
@unsubscribe="emit('unsubscribe', $event)"
|
|
543
|
+
@preorder="emit('preorder', $event)"
|
|
544
|
+
/>
|
|
545
|
+
</section>
|
|
546
|
+
<BlogComments
|
|
547
|
+
:key="post.id"
|
|
548
|
+
:post-id="post.id"
|
|
549
|
+
/>
|
|
550
|
+
</article>
|
|
551
|
+
<div
|
|
552
|
+
v-else-if="showSkeleton"
|
|
553
|
+
class="
|
|
554
|
+
op-feature-stack mx-auto w-full max-w-[720px]
|
|
555
|
+
animate-pulse motion-reduce:animate-none
|
|
556
|
+
"
|
|
557
|
+
aria-hidden="true"
|
|
558
|
+
data-blog-article-skeleton
|
|
559
|
+
>
|
|
560
|
+
<div class="op-feature-stack">
|
|
561
|
+
<div class="grid gap-3 py-1">
|
|
562
|
+
<span
|
|
563
|
+
v-for="width in skeletonTitle"
|
|
564
|
+
:key="width"
|
|
565
|
+
class="h-7 bg-basklee-border"
|
|
566
|
+
:class="width"
|
|
567
|
+
/>
|
|
568
|
+
</div>
|
|
569
|
+
<div class="flex gap-4">
|
|
570
|
+
<span
|
|
571
|
+
v-for="width in skeletonMeta"
|
|
572
|
+
:key="width"
|
|
573
|
+
class="h-3 bg-basklee-border"
|
|
574
|
+
:class="width"
|
|
575
|
+
/>
|
|
576
|
+
</div>
|
|
577
|
+
<span
|
|
578
|
+
class="
|
|
579
|
+
box-border block aspect-[3/2] w-full
|
|
580
|
+
border border-solid border-basklee-border
|
|
581
|
+
"
|
|
582
|
+
/>
|
|
583
|
+
</div>
|
|
584
|
+
<div class="grid gap-4 py-2">
|
|
585
|
+
<span
|
|
586
|
+
v-for="(width, index) in skeletonText"
|
|
587
|
+
:key="index"
|
|
588
|
+
class="h-3 bg-basklee-border"
|
|
589
|
+
:class="width"
|
|
590
|
+
/>
|
|
591
|
+
</div>
|
|
592
|
+
<div class="@container/skeleton op-feature-stack">
|
|
593
|
+
<span class="h-3 w-40 bg-basklee-border" />
|
|
594
|
+
<div
|
|
595
|
+
class="
|
|
596
|
+
grid grid-cols-2 gap-x-4 gap-y-6
|
|
597
|
+
@min-[660px]/skeleton:grid-cols-3
|
|
598
|
+
"
|
|
599
|
+
>
|
|
600
|
+
<div
|
|
601
|
+
v-for="index in 3"
|
|
602
|
+
:key="index"
|
|
603
|
+
class="grid content-start gap-3"
|
|
604
|
+
:class="{ '@max-[659px]/skeleton:hidden': index === 3 }"
|
|
605
|
+
>
|
|
606
|
+
<span
|
|
607
|
+
class="
|
|
608
|
+
box-border block aspect-[3/4] w-full
|
|
609
|
+
border border-solid border-basklee-border
|
|
610
|
+
"
|
|
611
|
+
/>
|
|
612
|
+
<span
|
|
613
|
+
v-for="line in skeletonCard"
|
|
614
|
+
:key="line"
|
|
615
|
+
class="bg-basklee-border"
|
|
616
|
+
:class="line"
|
|
617
|
+
/>
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
</div>
|
|
621
|
+
</div>
|
|
622
|
+
<BaskleeEmptyState
|
|
623
|
+
v-else-if="settled && !task.state.pending && !task.state.error"
|
|
624
|
+
kind="journal"
|
|
625
|
+
:message="labels.unavailable"
|
|
626
|
+
/>
|
|
627
|
+
<ProductReviewImageViewer
|
|
628
|
+
v-if="viewerStart >= 0 && viewerImages.length"
|
|
629
|
+
:images="blogViewerPhotos(viewerImages)"
|
|
630
|
+
:index="viewerStart"
|
|
631
|
+
:label="labels.imageViewer"
|
|
632
|
+
:alt="title || labels.imageViewer"
|
|
633
|
+
:captions="viewerImages.map((image) => image.caption || image.alt)"
|
|
634
|
+
wide
|
|
635
|
+
@close="closeViewer"
|
|
636
|
+
/>
|
|
637
|
+
</section>
|
|
638
|
+
</template>
|
|
639
|
+
|
|
640
|
+
<style scoped>
|
|
641
|
+
/*
|
|
642
|
+
* Article text is editor HTML rendered with v-html, so its typography is
|
|
643
|
+
* plain CSS for the sanitized tags (see utils/basklee/blogArticleHtml).
|
|
644
|
+
*/
|
|
645
|
+
.op-feature-prose {
|
|
646
|
+
overflow-wrap: anywhere;
|
|
647
|
+
line-height: 1.85;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.op-feature-prose::after {
|
|
651
|
+
content: '';
|
|
652
|
+
display: table;
|
|
653
|
+
clear: both;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/* Product cards placed in the text keep their own look: the text rules skip placement blocks. */
|
|
657
|
+
.op-feature-prose :deep(:where(p, ul, ol, blockquote, pre, figure):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
658
|
+
margin: 1rem 0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/* A new section or wide block starts below a floated image. */
|
|
662
|
+
.op-feature-prose :deep(:where(h1, h2, h3, h4, h5, h6, figure, table, pre):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
663
|
+
clear: both;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.op-feature-prose :deep(:where(h1, h2, h3, h4, h5, h6):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
667
|
+
margin: 2rem 0 1rem;
|
|
668
|
+
font-weight: 500;
|
|
669
|
+
line-height: 1.3;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.op-feature-prose :deep(h1:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
673
|
+
font-size: 1.875rem;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.op-feature-prose :deep(h2:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
677
|
+
font-size: 1.5rem;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.op-feature-prose :deep(h3:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
681
|
+
font-size: 1.25rem;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.op-feature-prose :deep(h4:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
685
|
+
font-size: 1.125rem;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.op-feature-prose :deep(h5:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
689
|
+
font-size: 1rem;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.op-feature-prose :deep(h6:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
693
|
+
font-size: 0.875rem;
|
|
694
|
+
text-transform: uppercase;
|
|
695
|
+
letter-spacing: 0.08em;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.op-feature-prose :deep(:where(strong, b):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
699
|
+
font-weight: 500;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.op-feature-prose :deep(:where(sub, sup):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
703
|
+
font-size: 0.75em;
|
|
704
|
+
line-height: 0;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.op-feature-prose :deep(mark:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
708
|
+
color: inherit;
|
|
709
|
+
background: var(--basklee-attention-surface);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.op-feature-prose :deep(a:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
713
|
+
color: var(--basklee-text);
|
|
714
|
+
text-decoration: none;
|
|
715
|
+
border-bottom: 1px solid currentColor;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.op-feature-prose :deep(a:not([href]):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
719
|
+
border-bottom: 0;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.op-feature-prose :deep(a:focus-visible:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
723
|
+
color: var(--basklee-accent);
|
|
724
|
+
outline: none;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
@media (hover: hover) {
|
|
728
|
+
.op-feature-prose :deep(a:hover:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
729
|
+
color: var(--basklee-accent);
|
|
730
|
+
outline: none;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.op-feature-prose :deep(:where(ul, ol):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
735
|
+
padding-left: 1.5rem;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.op-feature-prose :deep(ul:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
739
|
+
list-style: disc;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.op-feature-prose :deep(ol:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
743
|
+
list-style: decimal;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.op-feature-prose :deep(li > :where(ul, ol):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
747
|
+
margin: 0.25rem 0;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.op-feature-prose :deep(li > p:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
751
|
+
margin: 0;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.op-feature-prose :deep(ul[data-type='taskList']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
755
|
+
list-style: none;
|
|
756
|
+
padding-left: 0;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.op-feature-prose :deep(li[data-type='taskItem']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
760
|
+
display: flex;
|
|
761
|
+
align-items: flex-start;
|
|
762
|
+
gap: 0.5rem;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.op-feature-prose :deep(li[data-type='taskItem'] > label:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
766
|
+
display: flex;
|
|
767
|
+
align-items: center;
|
|
768
|
+
min-height: 1.85em;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.op-feature-prose :deep(li[data-type='taskItem'] > div > p:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
772
|
+
margin: 0;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.op-feature-prose :deep(blockquote:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
776
|
+
border-left: 2px solid var(--basklee-border);
|
|
777
|
+
padding-left: 1rem;
|
|
778
|
+
color: var(--basklee-muted);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.op-feature-prose :deep(hr:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
782
|
+
margin: 2rem 0;
|
|
783
|
+
border: 0;
|
|
784
|
+
border-top: 1px solid var(--basklee-border);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.op-feature-prose :deep(code:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
788
|
+
padding: 0.1em 0.3em;
|
|
789
|
+
font-size: 0.875em;
|
|
790
|
+
background: var(--basklee-muted-surface);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.op-feature-prose :deep(pre:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
794
|
+
overflow-x: auto;
|
|
795
|
+
padding: 1rem;
|
|
796
|
+
line-height: 1.6;
|
|
797
|
+
border: 1px solid var(--basklee-border);
|
|
798
|
+
background: var(--basklee-muted-surface);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.op-feature-prose :deep(pre code:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
802
|
+
padding: 0;
|
|
803
|
+
background: transparent;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/* A wide table scrolls inside the article instead of widening the page. */
|
|
807
|
+
.op-feature-prose :deep(table:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
808
|
+
display: block;
|
|
809
|
+
max-width: 100%;
|
|
810
|
+
overflow-x: auto;
|
|
811
|
+
margin: 1rem 0;
|
|
812
|
+
border-collapse: collapse;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.op-feature-prose :deep(:where(th, td):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
816
|
+
min-width: 6rem;
|
|
817
|
+
padding: 0.5rem 0.75rem;
|
|
818
|
+
vertical-align: top;
|
|
819
|
+
text-align: left;
|
|
820
|
+
border: 1px solid var(--basklee-border);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.op-feature-prose :deep(th:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
824
|
+
font-weight: 500;
|
|
825
|
+
background: var(--basklee-muted-surface);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.op-feature-prose :deep(caption:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
829
|
+
padding: 0.5rem 0;
|
|
830
|
+
color: var(--basklee-muted);
|
|
831
|
+
text-align: left;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.op-feature-prose :deep([data-text-align='center']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
835
|
+
text-align: center;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.op-feature-prose :deep([data-text-align='right']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
839
|
+
text-align: right;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.op-feature-prose :deep([data-vertical-align='middle']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
843
|
+
vertical-align: middle;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.op-feature-prose :deep([data-vertical-align='bottom']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
847
|
+
vertical-align: bottom;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/* Images that open in the viewer. */
|
|
851
|
+
[data-blog-article-cover][data-blog-image-viewer],
|
|
852
|
+
.op-feature-prose :deep(img[data-blog-image-viewer]:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
853
|
+
cursor: zoom-in;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
[data-blog-article-cover][data-blog-image-viewer]:focus-visible,
|
|
857
|
+
.op-feature-prose :deep(img[data-blog-image-viewer]:focus-visible:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
858
|
+
outline: 2px solid var(--basklee-accent);
|
|
859
|
+
outline-offset: 3px;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.op-feature-prose :deep(:where(img, video):where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
863
|
+
display: block;
|
|
864
|
+
max-width: 100%;
|
|
865
|
+
height: auto;
|
|
866
|
+
border-radius: 0;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* A narrow article has no room for text beside a floated image; 592px is
|
|
870
|
+
the article's width in the /journal page on a 640px screen. */
|
|
871
|
+
@container article (max-width: 591px) {
|
|
872
|
+
.op-feature-prose :deep(:where(img, video)[style*='float']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
873
|
+
float: none !important;
|
|
874
|
+
margin: 1rem auto !important;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.op-feature-prose :deep(audio:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
879
|
+
display: block;
|
|
880
|
+
width: 100%;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.op-feature-prose :deep(figcaption:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
884
|
+
margin-top: 0.5rem;
|
|
885
|
+
font-size: 0.875rem;
|
|
886
|
+
color: var(--basklee-muted);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.op-feature-prose :deep(.blog-image-gallery__track:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
890
|
+
display: flex;
|
|
891
|
+
gap: 0.5rem;
|
|
892
|
+
overflow-x: auto;
|
|
893
|
+
scroll-snap-type: x mandatory;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.op-feature-prose :deep(.blog-image-gallery__track img:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
897
|
+
flex: 0 0 auto;
|
|
898
|
+
width: auto;
|
|
899
|
+
max-width: min(80%, 32rem);
|
|
900
|
+
max-height: 24rem;
|
|
901
|
+
object-fit: cover;
|
|
902
|
+
scroll-snap-align: start;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.op-feature-prose :deep(details:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
906
|
+
margin: 1rem 0;
|
|
907
|
+
padding: 0.75rem 1rem;
|
|
908
|
+
border: 1px solid var(--basklee-border);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.op-feature-prose :deep(summary:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
912
|
+
cursor: pointer;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.op-feature-prose :deep([data-type='math-inline']:where(:not([data-product-id] *, [data-product-ids] *))),
|
|
916
|
+
.op-feature-prose :deep([data-type='math-block']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
917
|
+
font-family: ui-monospace, monospace;
|
|
918
|
+
font-size: 0.9em;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.op-feature-prose :deep([data-type='math-block']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
922
|
+
display: block;
|
|
923
|
+
margin: 1rem 0;
|
|
924
|
+
overflow-x: auto;
|
|
925
|
+
text-align: center;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/* Product placements: cards fill them; one without its products stays hidden. */
|
|
929
|
+
.op-feature-prose :deep(:where([data-product-id], [data-product-ids]):empty) {
|
|
930
|
+
display: none;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.op-feature-prose :deep([data-product-ids]) {
|
|
934
|
+
clear: both;
|
|
935
|
+
margin: 1.5rem 0;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.op-feature-prose :deep([data-product-id]:not([data-product-ids])) {
|
|
939
|
+
width: min(100%, 260px);
|
|
940
|
+
margin-block: 1.5rem;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/* The editor's float has no room beside a card on a narrow page. */
|
|
944
|
+
@container article (max-width: 480px) {
|
|
945
|
+
.op-feature-prose :deep([data-product-id]:not([data-product-ids])) {
|
|
946
|
+
float: none !important;
|
|
947
|
+
margin-inline: auto !important;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/* The editor's named colors, mixed with the theme text for contrast. */
|
|
952
|
+
.op-feature-prose :deep([data-text-color='gray']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
953
|
+
color: color-mix(in srgb, gray 70%, var(--basklee-text));
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.op-feature-prose :deep([data-bg-color='gray']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
957
|
+
background: color-mix(in srgb, gray 18%, transparent);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.op-feature-prose :deep([data-text-color='brown']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
961
|
+
color: color-mix(in srgb, brown 70%, var(--basklee-text));
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.op-feature-prose :deep([data-bg-color='brown']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
965
|
+
background: color-mix(in srgb, brown 18%, transparent);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.op-feature-prose :deep([data-text-color='orange']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
969
|
+
color: color-mix(in srgb, orange 70%, var(--basklee-text));
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.op-feature-prose :deep([data-bg-color='orange']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
973
|
+
background: color-mix(in srgb, orange 18%, transparent);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.op-feature-prose :deep([data-text-color='yellow']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
977
|
+
color: color-mix(in srgb, yellow 70%, var(--basklee-text));
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.op-feature-prose :deep([data-bg-color='yellow']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
981
|
+
background: color-mix(in srgb, yellow 18%, transparent);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.op-feature-prose :deep([data-text-color='green']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
985
|
+
color: color-mix(in srgb, green 70%, var(--basklee-text));
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.op-feature-prose :deep([data-bg-color='green']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
989
|
+
background: color-mix(in srgb, green 18%, transparent);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.op-feature-prose :deep([data-text-color='blue']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
993
|
+
color: color-mix(in srgb, blue 70%, var(--basklee-text));
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.op-feature-prose :deep([data-bg-color='blue']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
997
|
+
background: color-mix(in srgb, blue 18%, transparent);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.op-feature-prose :deep([data-text-color='purple']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
1001
|
+
color: color-mix(in srgb, purple 70%, var(--basklee-text));
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.op-feature-prose :deep([data-bg-color='purple']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
1005
|
+
background: color-mix(in srgb, purple 18%, transparent);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.op-feature-prose :deep([data-text-color='pink']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
1009
|
+
color: color-mix(in srgb, pink 70%, var(--basklee-text));
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.op-feature-prose :deep([data-bg-color='pink']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
1013
|
+
background: color-mix(in srgb, pink 18%, transparent);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.op-feature-prose :deep([data-text-color='red']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
1017
|
+
color: color-mix(in srgb, red 70%, var(--basklee-text));
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.op-feature-prose :deep([data-bg-color='red']:where(:not([data-product-id] *, [data-product-ids] *))) {
|
|
1021
|
+
background: color-mix(in srgb, red 18%, transparent);
|
|
1022
|
+
}
|
|
1023
|
+
</style>
|