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.
Files changed (538) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1190 -2
  3. package/bin/basklee-nuxt.mjs +173 -0
  4. package/package.json +69 -4
  5. package/runtime/api.mjs +14 -0
  6. package/runtime/domain.mjs +15 -0
  7. package/runtime/marketplace.mjs +905 -0
  8. package/runtime/seo.mjs +17 -0
  9. package/src/asset-loading-plugin.mjs +10 -0
  10. package/src/favicon-handler.mjs +12 -0
  11. package/src/install.mjs +361 -0
  12. package/src/migrate.mjs +124 -0
  13. package/src/module.d.ts +3 -0
  14. package/src/module.mjs +88 -0
  15. package/src/project-readme.mjs +702 -0
  16. package/src/service.mjs +186 -0
  17. package/src/setup.mjs +250 -0
  18. package/src/sitemap.mjs +93 -0
  19. package/src/update.mjs +54 -0
  20. package/src/validation.mjs +33 -0
  21. package/templates/.vscode/settings.json +5 -0
  22. package/templates/app/app.vue +52 -0
  23. package/templates/app/assets/css/basklee-tokens.css +21 -0
  24. package/templates/app/assets/css/basklee.css +28 -0
  25. package/templates/app/components/basklee/account/AccountActivity.README.md +31 -0
  26. package/templates/app/components/basklee/account/AccountActivity.vue +61 -0
  27. package/templates/app/components/basklee/account/AccountPromocodes.README.md +50 -0
  28. package/templates/app/components/basklee/account/AccountPromocodes.vue +267 -0
  29. package/templates/app/components/basklee/account/AccountSection.README.md +31 -0
  30. package/templates/app/components/basklee/account/AccountSection.vue +132 -0
  31. package/templates/app/components/basklee/account/ProfileAvatar.vue +139 -0
  32. package/templates/app/components/basklee/account/ProfileDeleteAccount.vue +161 -0
  33. package/templates/app/components/basklee/account/ProfileDetailsForm.vue +182 -0
  34. package/templates/app/components/basklee/account/ProfileEmailSettings.vue +269 -0
  35. package/templates/app/components/basklee/account/ProfilePasswordForm.vue +201 -0
  36. package/templates/app/components/basklee/account/ProfileSignIn.vue +446 -0
  37. package/templates/app/components/basklee/account/SignInHistory.README.md +27 -0
  38. package/templates/app/components/basklee/account/SignInHistory.vue +218 -0
  39. package/templates/app/components/basklee/account/StorefrontLogout.README.md +15 -0
  40. package/templates/app/components/basklee/account/StorefrontLogout.vue +109 -0
  41. package/templates/app/components/basklee/account/StorefrontProfile.README.md +145 -0
  42. package/templates/app/components/basklee/account/StorefrontProfile.vue +168 -0
  43. package/templates/app/components/basklee/account/account.css +1047 -0
  44. package/templates/app/components/basklee/account/profile.css +696 -0
  45. package/templates/app/components/basklee/address/AddressForm.README.md +67 -0
  46. package/templates/app/components/basklee/address/AddressForm.vue +537 -0
  47. package/templates/app/components/basklee/address/StorefrontAddresses.README.md +44 -0
  48. package/templates/app/components/basklee/address/StorefrontAddresses.vue +438 -0
  49. package/templates/app/components/basklee/banners/MainBanner.vue +171 -0
  50. package/templates/app/components/basklee/banners/examples/BannerExample.vue +6 -0
  51. package/templates/app/components/basklee/blog/BlogArticle.README.md +44 -0
  52. package/templates/app/components/basklee/blog/BlogArticle.vue +1023 -0
  53. package/templates/app/components/basklee/blog/BlogCommentForm.README.md +28 -0
  54. package/templates/app/components/basklee/blog/BlogCommentForm.vue +129 -0
  55. package/templates/app/components/basklee/blog/BlogComments.README.md +36 -0
  56. package/templates/app/components/basklee/blog/BlogComments.vue +373 -0
  57. package/templates/app/components/basklee/blog/BlogPostCard.vue +307 -0
  58. package/templates/app/components/basklee/blog/BlogPostGroup.vue +108 -0
  59. package/templates/app/components/basklee/blog/StorefrontJournal.README.md +42 -0
  60. package/templates/app/components/basklee/blog/StorefrontJournal.vue +670 -0
  61. package/templates/app/components/basklee/branding/BrandLogos.vue +25 -0
  62. package/templates/app/components/basklee/branding/examples/BrandLogosExample.vue +6 -0
  63. package/templates/app/components/basklee/cart/CartCheckoutDetails.README.md +85 -0
  64. package/templates/app/components/basklee/cart/CartCheckoutDetails.vue +377 -0
  65. package/templates/app/components/basklee/cart/CartDeliverySelector.README.md +95 -0
  66. package/templates/app/components/basklee/cart/CartDeliverySelector.vue +724 -0
  67. package/templates/app/components/basklee/cart/CartItemOptions.README.md +98 -0
  68. package/templates/app/components/basklee/cart/CartItemOptions.vue +693 -0
  69. package/templates/app/components/basklee/cart/CartLineItem.README.md +70 -0
  70. package/templates/app/components/basklee/cart/CartLineItem.vue +271 -0
  71. package/templates/app/components/basklee/cart/CartPreview.README.md +43 -0
  72. package/templates/app/components/basklee/cart/CartPreview.vue +263 -0
  73. package/templates/app/components/basklee/cart/DeliveryMap.README.md +48 -0
  74. package/templates/app/components/basklee/cart/DeliveryMap.vue +155 -0
  75. package/templates/app/components/basklee/cart/StorefrontCart.README.md +89 -0
  76. package/templates/app/components/basklee/cart/StorefrontCart.vue +689 -0
  77. package/templates/app/components/basklee/catalog/CatalogHeader.vue +681 -0
  78. package/templates/app/components/basklee/catalog/CatalogRepresentative.vue +59 -0
  79. package/templates/app/components/basklee/catalog/StorefrontCatalog.README.md +35 -0
  80. package/templates/app/components/basklee/catalog/StorefrontCatalog.vue +179 -0
  81. package/templates/app/components/basklee/catalog/examples/CatalogHeaderExample.vue +6 -0
  82. package/templates/app/components/basklee/categories/CategoryGroup.vue +125 -0
  83. package/templates/app/components/basklee/categories/StorefrontCategory.README.md +60 -0
  84. package/templates/app/components/basklee/categories/StorefrontCategory.vue +277 -0
  85. package/templates/app/components/basklee/categories/examples/CategoryGroupExample.vue +7 -0
  86. package/templates/app/components/basklee/contact/AboutPage.README.md +23 -0
  87. package/templates/app/components/basklee/contact/AboutPage.vue +409 -0
  88. package/templates/app/components/basklee/contact/ContactForm.README.md +29 -0
  89. package/templates/app/components/basklee/contact/ContactForm.vue +289 -0
  90. package/templates/app/components/basklee/contact/EmailUnsubscribe.README.md +27 -0
  91. package/templates/app/components/basklee/contact/EmailUnsubscribe.vue +95 -0
  92. package/templates/app/components/basklee/contact/StorefrontContact.README.md +18 -0
  93. package/templates/app/components/basklee/contact/StorefrontContact.vue +89 -0
  94. package/templates/app/components/basklee/contact/examples/ContactExample.vue +6 -0
  95. package/templates/app/components/basklee/currencies/MainCurrencySwitcher.vue +80 -0
  96. package/templates/app/components/basklee/currencies/examples/CurrencyExample.vue +6 -0
  97. package/templates/app/components/basklee/events/EventEnrollmentDialog.README.md +58 -0
  98. package/templates/app/components/basklee/events/EventEnrollmentDialog.vue +294 -0
  99. package/templates/app/components/basklee/events/EventsBlock.vue +138 -0
  100. package/templates/app/components/basklee/events/examples/EventsExample.vue +6 -0
  101. package/templates/app/components/basklee/legal/CookieNotice.README.md +34 -0
  102. package/templates/app/components/basklee/legal/CookieNotice.vue +84 -0
  103. package/templates/app/components/basklee/legal/StorefrontPrivacy.README.md +35 -0
  104. package/templates/app/components/basklee/legal/StorefrontPrivacy.vue +124 -0
  105. package/templates/app/components/basklee/locale/MainLanguageSwitcher.vue +506 -0
  106. package/templates/app/components/basklee/locale/examples/LocaleExample.vue +6 -0
  107. package/templates/app/components/basklee/manufacturers/ManufacturerIndex.README.md +36 -0
  108. package/templates/app/components/basklee/manufacturers/ManufacturerIndex.vue +495 -0
  109. package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.README.md +30 -0
  110. package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.vue +263 -0
  111. package/templates/app/components/basklee/orders/OrderDetails.README.md +39 -0
  112. package/templates/app/components/basklee/orders/OrderDetails.vue +1074 -0
  113. package/templates/app/components/basklee/orders/OrderPaymentForm.README.md +59 -0
  114. package/templates/app/components/basklee/orders/OrderPaymentForm.vue +73 -0
  115. package/templates/app/components/basklee/orders/StorefrontOrders.README.md +39 -0
  116. package/templates/app/components/basklee/orders/StorefrontOrders.vue +869 -0
  117. package/templates/app/components/basklee/orders/orders.css +612 -0
  118. package/templates/app/components/basklee/payments/PaymentPanel.README.md +76 -0
  119. package/templates/app/components/basklee/payments/PaymentPanel.vue +108 -0
  120. package/templates/app/components/basklee/products/HoverImageViewer.vue +190 -0
  121. package/templates/app/components/basklee/products/ProductCard.README.md +63 -0
  122. package/templates/app/components/basklee/products/ProductCard.vue +911 -0
  123. package/templates/app/components/basklee/products/ProductCardActions.README.md +33 -0
  124. package/templates/app/components/basklee/products/ProductCardActions.vue +412 -0
  125. package/templates/app/components/basklee/products/ProductCardBadges.vue +83 -0
  126. package/templates/app/components/basklee/products/ProductCardDescription.vue +46 -0
  127. package/templates/app/components/basklee/products/ProductCardFavorite.vue +99 -0
  128. package/templates/app/components/basklee/products/ProductCardPrice.vue +66 -0
  129. package/templates/app/components/basklee/products/ProductCardRating.vue +65 -0
  130. package/templates/app/components/basklee/products/ProductCardSeller.vue +66 -0
  131. package/templates/app/components/basklee/products/ProductCardStockNotice.vue +43 -0
  132. package/templates/app/components/basklee/products/ProductCardTitle.vue +46 -0
  133. package/templates/app/components/basklee/products/ProductCardVariants.vue +388 -0
  134. package/templates/app/components/basklee/products/ProductGroup.vue +259 -0
  135. package/templates/app/components/basklee/products/ProductPreorderDialog.README.md +22 -0
  136. package/templates/app/components/basklee/products/ProductPreorderDialog.vue +471 -0
  137. package/templates/app/components/basklee/products/ProductReviewForm.README.md +39 -0
  138. package/templates/app/components/basklee/products/ProductReviewForm.vue +312 -0
  139. package/templates/app/components/basklee/products/ProductReviewGallery.README.md +28 -0
  140. package/templates/app/components/basklee/products/ProductReviewGallery.vue +141 -0
  141. package/templates/app/components/basklee/products/ProductReviewImageViewer.README.md +52 -0
  142. package/templates/app/components/basklee/products/ProductReviewImageViewer.vue +425 -0
  143. package/templates/app/components/basklee/products/ProductReviews.README.md +70 -0
  144. package/templates/app/components/basklee/products/ProductReviews.vue +1025 -0
  145. package/templates/app/components/basklee/products/ProductSecondaryVariantModal.vue +460 -0
  146. package/templates/app/components/basklee/products/ProductSpecificationsDialog.README.md +65 -0
  147. package/templates/app/components/basklee/products/ProductSpecificationsDialog.vue +174 -0
  148. package/templates/app/components/basklee/products/StorefrontProduct.README.md +52 -0
  149. package/templates/app/components/basklee/products/StorefrontProduct.vue +1468 -0
  150. package/templates/app/components/basklee/products/StorefrontWishlist.README.md +33 -0
  151. package/templates/app/components/basklee/products/StorefrontWishlist.vue +290 -0
  152. package/templates/app/components/basklee/products/examples/FeaturedExample.vue +6 -0
  153. package/templates/app/components/basklee/products/examples/FeaturedHoverImageViewerExample.vue +14 -0
  154. package/templates/app/components/basklee/products/examples/FeaturedProductCardActionsExample.vue +14 -0
  155. package/templates/app/components/basklee/products/examples/FeaturedProductCardBadgesExample.vue +14 -0
  156. package/templates/app/components/basklee/products/examples/FeaturedProductCardDescriptionExample.vue +14 -0
  157. package/templates/app/components/basklee/products/examples/FeaturedProductCardExample.vue +14 -0
  158. package/templates/app/components/basklee/products/examples/FeaturedProductCardFavoriteExample.vue +14 -0
  159. package/templates/app/components/basklee/products/examples/FeaturedProductCardPriceExample.vue +14 -0
  160. package/templates/app/components/basklee/products/examples/FeaturedProductCardRatingExample.vue +14 -0
  161. package/templates/app/components/basklee/products/examples/FeaturedProductCardSellerExample.vue +14 -0
  162. package/templates/app/components/basklee/products/examples/FeaturedProductCardStockNoticeExample.vue +14 -0
  163. package/templates/app/components/basklee/products/examples/FeaturedProductCardTitleExample.vue +14 -0
  164. package/templates/app/components/basklee/products/examples/FeaturedProductCardVariantsExample.vue +14 -0
  165. package/templates/app/components/basklee/products/examples/ProductsExample.vue +6 -0
  166. package/templates/app/components/basklee/products/examples/ProductsHoverImageViewerExample.vue +13 -0
  167. package/templates/app/components/basklee/products/examples/ProductsProductCardActionsExample.vue +13 -0
  168. package/templates/app/components/basklee/products/examples/ProductsProductCardBadgesExample.vue +13 -0
  169. package/templates/app/components/basklee/products/examples/ProductsProductCardDescriptionExample.vue +13 -0
  170. package/templates/app/components/basklee/products/examples/ProductsProductCardExample.vue +13 -0
  171. package/templates/app/components/basklee/products/examples/ProductsProductCardFavoriteExample.vue +13 -0
  172. package/templates/app/components/basklee/products/examples/ProductsProductCardPriceExample.vue +13 -0
  173. package/templates/app/components/basklee/products/examples/ProductsProductCardRatingExample.vue +13 -0
  174. package/templates/app/components/basklee/products/examples/ProductsProductCardSellerExample.vue +13 -0
  175. package/templates/app/components/basklee/products/examples/ProductsProductCardStockNoticeExample.vue +13 -0
  176. package/templates/app/components/basklee/products/examples/ProductsProductCardTitleExample.vue +13 -0
  177. package/templates/app/components/basklee/products/examples/ProductsProductCardVariantsExample.vue +13 -0
  178. package/templates/app/components/basklee/promo/PromoProducts.README.md +45 -0
  179. package/templates/app/components/basklee/promo/PromoProducts.vue +287 -0
  180. package/templates/app/components/basklee/search/MainSearch.vue +340 -0
  181. package/templates/app/components/basklee/search/ProductSearchResults.README.md +81 -0
  182. package/templates/app/components/basklee/search/ProductSearchResults.vue +506 -0
  183. package/templates/app/components/basklee/search/SearchFilters.vue +546 -0
  184. package/templates/app/components/basklee/search/examples/MainSearchExample.vue +6 -0
  185. package/templates/app/components/basklee/sellers/SellerFilters.README.md +32 -0
  186. package/templates/app/components/basklee/sellers/SellerFilters.vue +317 -0
  187. package/templates/app/components/basklee/sellers/SellerPhotoGallery.README.md +45 -0
  188. package/templates/app/components/basklee/sellers/SellerPhotoGallery.vue +406 -0
  189. package/templates/app/components/basklee/sellers/SellerSummary.README.md +33 -0
  190. package/templates/app/components/basklee/sellers/SellerSummary.vue +162 -0
  191. package/templates/app/components/basklee/sellers/StorefrontSellers.README.md +73 -0
  192. package/templates/app/components/basklee/sellers/StorefrontSellers.vue +300 -0
  193. package/templates/app/components/basklee/shared/BaskleeAvatar.README.md +30 -0
  194. package/templates/app/components/basklee/shared/BaskleeAvatar.vue +83 -0
  195. package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.README.md +65 -0
  196. package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.vue +118 -0
  197. package/templates/app/components/basklee/shared/BaskleeEmptyState.README.md +38 -0
  198. package/templates/app/components/basklee/shared/BaskleeEmptyState.vue +143 -0
  199. package/templates/app/components/basklee/shared/BaskleeImage.vue +84 -0
  200. package/templates/app/components/basklee/shared/BaskleeInfoHint.README.md +32 -0
  201. package/templates/app/components/basklee/shared/BaskleeInfoHint.vue +158 -0
  202. package/templates/app/components/basklee/shared/BaskleePasswordInput.README.md +30 -0
  203. package/templates/app/components/basklee/shared/BaskleePasswordInput.vue +197 -0
  204. package/templates/app/components/basklee/shared/BaskleeSearchSelect.README.md +38 -0
  205. package/templates/app/components/basklee/shared/BaskleeSearchSelect.vue +411 -0
  206. package/templates/app/components/basklee/shared/BaskleeSelect.README.md +31 -0
  207. package/templates/app/components/basklee/shared/BaskleeSelect.vue +525 -0
  208. package/templates/app/components/basklee/shared/StorefrontErrorPage.README.md +55 -0
  209. package/templates/app/components/basklee/shared/StorefrontErrorPage.vue +151 -0
  210. package/templates/app/components/basklee/shared/StorefrontPagination.README.md +50 -0
  211. package/templates/app/components/basklee/shared/StorefrontPagination.vue +148 -0
  212. package/templates/app/components/basklee/shared/dialogs.css +36 -0
  213. package/templates/app/components/basklee/shared/features.css +364 -0
  214. package/templates/app/components/basklee/social/SocialLinks.vue +72 -0
  215. package/templates/app/components/basklee/social/examples/SocialLinksExample.vue +6 -0
  216. package/templates/app/components/basklee/storefront/StorefrontAccount.README.md +47 -0
  217. package/templates/app/components/basklee/storefront/StorefrontAccount.vue +332 -0
  218. package/templates/app/components/basklee/storefront/StorefrontCartButton.vue +68 -0
  219. package/templates/app/components/basklee/storefront/StorefrontFooter.README.md +26 -0
  220. package/templates/app/components/basklee/storefront/StorefrontFooter.vue +236 -0
  221. package/templates/app/components/basklee/storefront/StorefrontHeader.README.md +93 -0
  222. package/templates/app/components/basklee/storefront/StorefrontHeader.vue +509 -0
  223. package/templates/app/components/basklee/storefront/StorefrontHome.README.md +79 -0
  224. package/templates/app/components/basklee/storefront/StorefrontHome.vue +315 -0
  225. package/templates/app/components/basklee/storefront/StorefrontWishlistButton.vue +105 -0
  226. package/templates/app/components/basklee/storefront/examples/StorefrontAccountExample.vue +7 -0
  227. package/templates/app/components/basklee/stores/StorefrontStores.README.md +41 -0
  228. package/templates/app/components/basklee/stores/StorefrontStores.vue +346 -0
  229. package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.README.md +151 -0
  230. package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.vue +851 -0
  231. package/templates/app/components/basklee/subscriptions/StorefrontTariff.README.md +38 -0
  232. package/templates/app/components/basklee/subscriptions/StorefrontTariff.vue +555 -0
  233. package/templates/app/components/basklee/subscriptions/StorefrontTariffs.README.md +36 -0
  234. package/templates/app/components/basklee/subscriptions/StorefrontTariffs.vue +416 -0
  235. package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.README.md +39 -0
  236. package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.vue +292 -0
  237. package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.README.md +85 -0
  238. package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.vue +874 -0
  239. package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.README.md +53 -0
  240. package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.vue +536 -0
  241. package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.README.md +101 -0
  242. package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.vue +286 -0
  243. package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md +138 -0
  244. package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.vue +134 -0
  245. package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md +85 -0
  246. package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.vue +364 -0
  247. package/templates/app/components/basklee/support/StorefrontSupport.README.md +39 -0
  248. package/templates/app/components/basklee/support/StorefrontSupport.vue +484 -0
  249. package/templates/app/components/basklee/support/TicketConversation.README.md +38 -0
  250. package/templates/app/components/basklee/support/TicketConversation.vue +524 -0
  251. package/templates/app/components/basklee/support/TicketImage.README.md +27 -0
  252. package/templates/app/components/basklee/support/TicketImage.vue +186 -0
  253. package/templates/app/components/basklee/support/TicketItemCard.README.md +59 -0
  254. package/templates/app/components/basklee/support/TicketItemCard.vue +177 -0
  255. package/templates/app/components/basklee/support/TicketMessageForm.README.md +35 -0
  256. package/templates/app/components/basklee/support/TicketMessageForm.vue +258 -0
  257. package/templates/app/components/basklee/support/TicketSubscriptionCard.README.md +40 -0
  258. package/templates/app/components/basklee/support/TicketSubscriptionCard.vue +154 -0
  259. package/templates/app/components/basklee/tariffs/TariffCard.README.md +12 -0
  260. package/templates/app/components/basklee/tariffs/TariffCard.vue +251 -0
  261. package/templates/app/components/basklee/tariffs/TariffCardDescription.README.md +12 -0
  262. package/templates/app/components/basklee/tariffs/TariffCardDescription.vue +97 -0
  263. package/templates/app/components/basklee/tariffs/TariffCardFeatures.README.md +14 -0
  264. package/templates/app/components/basklee/tariffs/TariffCardFeatures.vue +172 -0
  265. package/templates/app/components/basklee/tariffs/TariffCardImage.README.md +12 -0
  266. package/templates/app/components/basklee/tariffs/TariffCardImage.vue +33 -0
  267. package/templates/app/components/basklee/tariffs/TariffCardPrices.README.md +12 -0
  268. package/templates/app/components/basklee/tariffs/TariffCardPrices.vue +300 -0
  269. package/templates/app/components/basklee/tariffs/TariffCardTitle.README.md +12 -0
  270. package/templates/app/components/basklee/tariffs/TariffCardTitle.vue +30 -0
  271. package/templates/app/components/basklee/tariffs/TariffCards.README.md +12 -0
  272. package/templates/app/components/basklee/tariffs/TariffCards.vue +94 -0
  273. package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.README.md +31 -0
  274. package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.vue +411 -0
  275. package/templates/app/components/basklee/tariffs/examples/TariffCardDescriptionExample.vue +13 -0
  276. package/templates/app/components/basklee/tariffs/examples/TariffCardExample.vue +13 -0
  277. package/templates/app/components/basklee/tariffs/examples/TariffCardFeaturesExample.vue +14 -0
  278. package/templates/app/components/basklee/tariffs/examples/TariffCardImageExample.vue +13 -0
  279. package/templates/app/components/basklee/tariffs/examples/TariffCardPricesExample.vue +13 -0
  280. package/templates/app/components/basklee/tariffs/examples/TariffCardTitleExample.vue +13 -0
  281. package/templates/app/components/basklee/tariffs/examples/TariffCardsExample.vue +6 -0
  282. package/templates/app/components/basklee/theme/BaskleeThemeProvider.vue +38 -0
  283. package/templates/app/components/basklee/units/UnitSwitcher.vue +71 -0
  284. package/templates/app/components/basklee/units/examples/LengthExample.vue +6 -0
  285. package/templates/app/components/basklee/units/examples/WeightExample.vue +6 -0
  286. package/templates/app/components/basklee/wallet/StorefrontWallet.README.md +117 -0
  287. package/templates/app/components/basklee/wallet/StorefrontWallet.vue +863 -0
  288. package/templates/app/components/basklee/wallet/WalletBalance.vue +47 -0
  289. package/templates/app/components/basklee/wallet/WalletTopUpForm.README.md +32 -0
  290. package/templates/app/components/basklee/wallet/WalletTopUpForm.vue +224 -0
  291. package/templates/app/components/basklee/wallet/examples/WalletExample.vue +6 -0
  292. package/templates/app/composables/useBaskleeActionMenu.ts +126 -0
  293. package/templates/app/composables/useBaskleeAddressEditor.ts +343 -0
  294. package/templates/app/composables/useBaskleeAddresses.ts +75 -0
  295. package/templates/app/composables/useBaskleeApi.ts +190 -0
  296. package/templates/app/composables/useBaskleeAppLoad.ts +83 -0
  297. package/templates/app/composables/useBaskleeBlogComments.ts +325 -0
  298. package/templates/app/composables/useBaskleeBlogReading.ts +270 -0
  299. package/templates/app/composables/useBaskleeCart.ts +226 -0
  300. package/templates/app/composables/useBaskleeCartPreview.ts +142 -0
  301. package/templates/app/composables/useBaskleeCategoryLink.ts +24 -0
  302. package/templates/app/composables/useBaskleeCategoryProducts.ts +16 -0
  303. package/templates/app/composables/useBaskleeFeature.ts +100 -0
  304. package/templates/app/composables/useBaskleeFeaturedProducts.ts +14 -0
  305. package/templates/app/composables/useBaskleeGeolocation.ts +28 -0
  306. package/templates/app/composables/useBaskleeHomeProducts.ts +90 -0
  307. package/templates/app/composables/useBaskleeManufacturerIndex.ts +83 -0
  308. package/templates/app/composables/useBaskleeMap.ts +240 -0
  309. package/templates/app/composables/useBaskleeMediaFormat.ts +24 -0
  310. package/templates/app/composables/useBaskleeMissingPage.ts +67 -0
  311. package/templates/app/composables/useBaskleeOrders.ts +185 -0
  312. package/templates/app/composables/useBaskleePageSeo.ts +133 -0
  313. package/templates/app/composables/useBaskleeProductActions.ts +116 -0
  314. package/templates/app/composables/useBaskleeProductLink.ts +24 -0
  315. package/templates/app/composables/useBaskleeProductSearch.ts +363 -0
  316. package/templates/app/composables/useBaskleeProductVariants.ts +176 -0
  317. package/templates/app/composables/useBaskleeProfile.ts +309 -0
  318. package/templates/app/composables/useBaskleeProgress.ts +89 -0
  319. package/templates/app/composables/useBaskleeReviews.ts +242 -0
  320. package/templates/app/composables/useBaskleeSearchHistory.ts +23 -0
  321. package/templates/app/composables/useBaskleeSearchScopeNames.ts +99 -0
  322. package/templates/app/composables/useBaskleeServerData.ts +72 -0
  323. package/templates/app/composables/useBaskleeSignIn.ts +66 -0
  324. package/templates/app/composables/useBaskleeStableHeight.ts +69 -0
  325. package/templates/app/composables/useBaskleeStorefront.ts +29 -0
  326. package/templates/app/composables/useBaskleeSubscriptions.ts +260 -0
  327. package/templates/app/composables/useBaskleeTheme.ts +27 -0
  328. package/templates/app/composables/useBaskleeTicketSubject.ts +180 -0
  329. package/templates/app/composables/useBaskleeTickets.ts +335 -0
  330. package/templates/app/composables/useBaskleeWallet.ts +166 -0
  331. package/templates/app/error.vue +108 -0
  332. package/templates/app/interfaces/basklee/accounts/IContact.ts +21 -0
  333. package/templates/app/interfaces/basklee/accounts/IEmailNotificationLocale.ts +17 -0
  334. package/templates/app/interfaces/basklee/accounts/IEmailVerification.ts +59 -0
  335. package/templates/app/interfaces/basklee/accounts/IProfileActions.ts +38 -0
  336. package/templates/app/interfaces/basklee/accounts/IProfileData.ts +125 -0
  337. package/templates/app/interfaces/basklee/accounts/IProfileMedia.ts +17 -0
  338. package/templates/app/interfaces/basklee/accounts/IStorefrontProfile.ts +54 -0
  339. package/templates/app/interfaces/basklee/address/IAddressCitySuggestion.ts +19 -0
  340. package/templates/app/interfaces/basklee/address/IAddressEditor.ts +9 -0
  341. package/templates/app/interfaces/basklee/address/IAddressLocationSuggestion.ts +22 -0
  342. package/templates/app/interfaces/basklee/address/IAddressRegionSearch.ts +30 -0
  343. package/templates/app/interfaces/basklee/address/IAddressSuggestion.ts +20 -0
  344. package/templates/app/interfaces/basklee/address/IUserAddress.ts +87 -0
  345. package/templates/app/interfaces/basklee/apiBase/TMethod.ts +1 -0
  346. package/templates/app/interfaces/basklee/appBase/IAppLoad.ts +16 -0
  347. package/templates/app/interfaces/basklee/appBase/IAppLoadCommon.ts +47 -0
  348. package/templates/app/interfaces/basklee/appBase/IApploadUserProfile.ts +15 -0
  349. package/templates/app/interfaces/basklee/appBase/IForm.ts +21 -0
  350. package/templates/app/interfaces/basklee/appBase/ISEO.ts +21 -0
  351. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonBanner.ts +11 -0
  352. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonContact.ts +8 -0
  353. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonCurrency.ts +15 -0
  354. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonEvents.ts +18 -0
  355. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLocale.ts +14 -0
  356. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLogos.ts +6 -0
  357. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonPath.ts +22 -0
  358. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSEO.ts +26 -0
  359. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSocial.ts +15 -0
  360. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonTariff.ts +7 -0
  361. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonUnit.ts +12 -0
  362. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVariables.ts +8 -0
  363. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVisualSettings.ts +11 -0
  364. package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonWalletValue.ts +3 -0
  365. package/templates/app/interfaces/basklee/blog/IBlogApi.ts +247 -0
  366. package/templates/app/interfaces/basklee/blog/IBlogPostPreview.ts +30 -0
  367. package/templates/app/interfaces/basklee/cart/ICartActions.ts +67 -0
  368. package/templates/app/interfaces/basklee/cart/ICartData.ts +382 -0
  369. package/templates/app/interfaces/basklee/cart/ICartDeliveryActions.ts +68 -0
  370. package/templates/app/interfaces/basklee/cart/ICartModal.ts +22 -0
  371. package/templates/app/interfaces/basklee/cart/IDeliveryMap.ts +29 -0
  372. package/templates/app/interfaces/basklee/catalog/ICatalogDirectory.ts +75 -0
  373. package/templates/app/interfaces/basklee/category/ICategory.ts +41 -0
  374. package/templates/app/interfaces/basklee/domains/IDomain.ts +13 -0
  375. package/templates/app/interfaces/basklee/forms/ICustomerSubfilter.ts +19 -0
  376. package/templates/app/interfaces/basklee/index.ts +57 -0
  377. package/templates/app/interfaces/basklee/marketing/IPromoActions.ts +51 -0
  378. package/templates/app/interfaces/basklee/orders/IOrderActions.ts +99 -0
  379. package/templates/app/interfaces/basklee/orders/IOrderHistory.ts +259 -0
  380. package/templates/app/interfaces/basklee/orders/IProductPreorder.ts +31 -0
  381. package/templates/app/interfaces/basklee/payments/IInvoice.ts +147 -0
  382. package/templates/app/interfaces/basklee/products/IProduct.ts +262 -0
  383. package/templates/app/interfaces/basklee/products/IProductFeedbackApi.ts +218 -0
  384. package/templates/app/interfaces/basklee/products/IProductSearchApi.ts +146 -0
  385. package/templates/app/interfaces/basklee/products/IProductSearchFacets.ts +35 -0
  386. package/templates/app/interfaces/basklee/products/IProductSecondaryVariantRequest.ts +15 -0
  387. package/templates/app/interfaces/basklee/products/IProductSpecification.ts +14 -0
  388. package/templates/app/interfaces/basklee/products/IWishlist.ts +22 -0
  389. package/templates/app/interfaces/basklee/sellers/ISellerDirectory.ts +70 -0
  390. package/templates/app/interfaces/basklee/shared/IBreadcrumb.ts +10 -0
  391. package/templates/app/interfaces/basklee/shared/IGeoCoordinates.ts +4 -0
  392. package/templates/app/interfaces/basklee/shared/IStorefrontControls.ts +13 -0
  393. package/templates/app/interfaces/basklee/shared/ITransformValue.ts +3 -0
  394. package/templates/app/interfaces/basklee/state.ts +4 -0
  395. package/templates/app/interfaces/basklee/stores/IStoreDirectory.ts +63 -0
  396. package/templates/app/interfaces/basklee/subscribeOptions/ISubscribeOption.ts +9 -0
  397. package/templates/app/interfaces/basklee/subscribeTariff/ISubscribeTariff.ts +56 -0
  398. package/templates/app/interfaces/basklee/subscribeTariff/ITariffSelection.ts +11 -0
  399. package/templates/app/interfaces/basklee/subscribes/ISubscribe.ts +28 -0
  400. package/templates/app/interfaces/basklee/subscribes/ISubscriptionApi.ts +127 -0
  401. package/templates/app/interfaces/basklee/tickets/ICustomerTicketApi.ts +223 -0
  402. package/templates/app/interfaces/basklee/transport.ts +34 -0
  403. package/templates/app/layouts/default.vue +382 -0
  404. package/templates/app/middleware/00.basklee.global.ts +27 -0
  405. package/templates/app/middleware/01.basklee-sellers.global.ts +15 -0
  406. package/templates/app/middleware/basklee-account.ts +40 -0
  407. package/templates/app/pages/activity.vue +19 -0
  408. package/templates/app/pages/addresses.vue +23 -0
  409. package/templates/app/pages/browse.vue +253 -0
  410. package/templates/app/pages/cart.vue +20 -0
  411. package/templates/app/pages/catalog.vue +17 -0
  412. package/templates/app/pages/category/[id].vue +150 -0
  413. package/templates/app/pages/contact.vue +17 -0
  414. package/templates/app/pages/featured.vue +152 -0
  415. package/templates/app/pages/index.vue +194 -0
  416. package/templates/app/pages/journal/[id].vue +164 -0
  417. package/templates/app/pages/journal/index.vue +74 -0
  418. package/templates/app/pages/logout.vue +71 -0
  419. package/templates/app/pages/manufacturers.vue +33 -0
  420. package/templates/app/pages/orders.vue +40 -0
  421. package/templates/app/pages/privacy.vue +17 -0
  422. package/templates/app/pages/product/[id].vue +150 -0
  423. package/templates/app/pages/profile.vue +118 -0
  424. package/templates/app/pages/promo/[id].vue +67 -0
  425. package/templates/app/pages/promocodes.vue +21 -0
  426. package/templates/app/pages/sellers.vue +203 -0
  427. package/templates/app/pages/stores.vue +36 -0
  428. package/templates/app/pages/subscriptions.vue +21 -0
  429. package/templates/app/pages/tariffs/[slug]/[id].vue +126 -0
  430. package/templates/app/pages/tariffs/index.vue +50 -0
  431. package/templates/app/pages/tickets.vue +56 -0
  432. package/templates/app/pages/unsubscribe.vue +32 -0
  433. package/templates/app/pages/wallet.vue +23 -0
  434. package/templates/app/pages/wishlist.vue +48 -0
  435. package/templates/app/stores/basklee.ts +493 -0
  436. package/templates/app/stores/baskleeBrowse.ts +79 -0
  437. package/templates/app/stores/baskleeCatalog.ts +141 -0
  438. package/templates/app/stores/baskleeDomainAccess.ts +55 -0
  439. package/templates/app/stores/baskleeProducts.ts +249 -0
  440. package/templates/app/stores/baskleeSelections.ts +132 -0
  441. package/templates/app/themes/basklee.ts +108 -0
  442. package/templates/app/utils/basklee/accountLabels.ts +29 -0
  443. package/templates/app/utils/basklee/activityLabels.ts +96 -0
  444. package/templates/app/utils/basklee/activityPresentation.ts +16 -0
  445. package/templates/app/utils/basklee/addressChanges.ts +26 -0
  446. package/templates/app/utils/basklee/addressRegions.ts +17 -0
  447. package/templates/app/utils/basklee/api.ts +333 -0
  448. package/templates/app/utils/basklee/blogArticleHtml.ts +318 -0
  449. package/templates/app/utils/basklee/blogComments.ts +133 -0
  450. package/templates/app/utils/basklee/blogImageViewer.ts +84 -0
  451. package/templates/app/utils/basklee/blogLabels.ts +167 -0
  452. package/templates/app/utils/basklee/blogLayout.ts +108 -0
  453. package/templates/app/utils/basklee/blogProductPlacements.ts +105 -0
  454. package/templates/app/utils/basklee/breadcrumbLabels.ts +14 -0
  455. package/templates/app/utils/basklee/browseLabels.ts +145 -0
  456. package/templates/app/utils/basklee/cartAddress.ts +94 -0
  457. package/templates/app/utils/basklee/cartLabels.ts +390 -0
  458. package/templates/app/utils/basklee/cartOptions.ts +143 -0
  459. package/templates/app/utils/basklee/cartPreview.ts +123 -0
  460. package/templates/app/utils/basklee/cartPromo.ts +150 -0
  461. package/templates/app/utils/basklee/cartShipment.ts +74 -0
  462. package/templates/app/utils/basklee/cartSnapshot.ts +20 -0
  463. package/templates/app/utils/basklee/catalog.ts +106 -0
  464. package/templates/app/utils/basklee/category.ts +52 -0
  465. package/templates/app/utils/basklee/categoryLabels.ts +44 -0
  466. package/templates/app/utils/basklee/contactLabels.ts +152 -0
  467. package/templates/app/utils/basklee/currency.ts +128 -0
  468. package/templates/app/utils/basklee/deliveryMap.ts +89 -0
  469. package/templates/app/utils/basklee/directoryLabels.ts +196 -0
  470. package/templates/app/utils/basklee/emptyStateArt.ts +231 -0
  471. package/templates/app/utils/basklee/errorPageLabels.ts +95 -0
  472. package/templates/app/utils/basklee/featureData.ts +25 -0
  473. package/templates/app/utils/basklee/featureLabels.ts +406 -0
  474. package/templates/app/utils/basklee/featuredLabels.ts +38 -0
  475. package/templates/app/utils/basklee/files.ts +71 -0
  476. package/templates/app/utils/basklee/footerLabels.ts +53 -0
  477. package/templates/app/utils/basklee/guestSession.ts +50 -0
  478. package/templates/app/utils/basklee/headerLabels.ts +98 -0
  479. package/templates/app/utils/basklee/homeContent.ts +129 -0
  480. package/templates/app/utils/basklee/homeLabels.ts +74 -0
  481. package/templates/app/utils/basklee/htmlText.ts +59 -0
  482. package/templates/app/utils/basklee/links.ts +14 -0
  483. package/templates/app/utils/basklee/manufacturerIndex.ts +108 -0
  484. package/templates/app/utils/basklee/modalWindow.ts +109 -0
  485. package/templates/app/utils/basklee/nativeApp.ts +361 -0
  486. package/templates/app/utils/basklee/notice.ts +22 -0
  487. package/templates/app/utils/basklee/orderLabels.ts +454 -0
  488. package/templates/app/utils/basklee/orderPresentation.ts +629 -0
  489. package/templates/app/utils/basklee/pageSeo.ts +662 -0
  490. package/templates/app/utils/basklee/paginationScroll.ts +131 -0
  491. package/templates/app/utils/basklee/phone.ts +22 -0
  492. package/templates/app/utils/basklee/presentation.ts +72 -0
  493. package/templates/app/utils/basklee/privacyLabels.ts +273 -0
  494. package/templates/app/utils/basklee/productActionLabels.ts +108 -0
  495. package/templates/app/utils/basklee/productActions.ts +574 -0
  496. package/templates/app/utils/basklee/productAvailability.ts +36 -0
  497. package/templates/app/utils/basklee/productGallery.ts +72 -0
  498. package/templates/app/utils/basklee/productLabels.ts +119 -0
  499. package/templates/app/utils/basklee/productListLocation.ts +130 -0
  500. package/templates/app/utils/basklee/productManufacturer.ts +30 -0
  501. package/templates/app/utils/basklee/productPage.ts +46 -0
  502. package/templates/app/utils/basklee/productPhotos.ts +67 -0
  503. package/templates/app/utils/basklee/productSearchScope.ts +237 -0
  504. package/templates/app/utils/basklee/productSeller.ts +51 -0
  505. package/templates/app/utils/basklee/productStructuredData.ts +221 -0
  506. package/templates/app/utils/basklee/profile.ts +148 -0
  507. package/templates/app/utils/basklee/profileLabels.ts +229 -0
  508. package/templates/app/utils/basklee/promoLabels.ts +111 -0
  509. package/templates/app/utils/basklee/promoPresentation.ts +381 -0
  510. package/templates/app/utils/basklee/reviewLabels.ts +256 -0
  511. package/templates/app/utils/basklee/reviewScope.ts +41 -0
  512. package/templates/app/utils/basklee/richText.ts +13 -0
  513. package/templates/app/utils/basklee/searchFilters.ts +99 -0
  514. package/templates/app/utils/basklee/searchHistory.ts +144 -0
  515. package/templates/app/utils/basklee/sellerDirectory.ts +134 -0
  516. package/templates/app/utils/basklee/seo.ts +52 -0
  517. package/templates/app/utils/basklee/serverCookies.ts +88 -0
  518. package/templates/app/utils/basklee/sessionLabels.ts +38 -0
  519. package/templates/app/utils/basklee/signInReturn.ts +89 -0
  520. package/templates/app/utils/basklee/storeDirectory.ts +50 -0
  521. package/templates/app/utils/basklee/subscriptionChanges.ts +167 -0
  522. package/templates/app/utils/basklee/subscriptionLabels.ts +100 -0
  523. package/templates/app/utils/basklee/subscriptionManageLabels.ts +424 -0
  524. package/templates/app/utils/basklee/subscriptionPlans.ts +162 -0
  525. package/templates/app/utils/basklee/subscriptionRemote.ts +110 -0
  526. package/templates/app/utils/basklee/subscriptionUsage.ts +82 -0
  527. package/templates/app/utils/basklee/tariffLabels.ts +182 -0
  528. package/templates/app/utils/basklee/tariffPage.ts +77 -0
  529. package/templates/app/utils/basklee/tariffVariables.ts +203 -0
  530. package/templates/app/utils/basklee/tariffs.ts +333 -0
  531. package/templates/app/utils/basklee/ticketItems.ts +87 -0
  532. package/templates/app/utils/basklee/ticketLabels.ts +428 -0
  533. package/templates/app/utils/basklee/ticketLocation.ts +79 -0
  534. package/templates/app/utils/basklee/walletTransaction.ts +135 -0
  535. package/templates/app/utils/baskleeAppLoad.ts +83 -0
  536. package/templates/basklee/COMPONENT-DOWNLOAD.md +40 -0
  537. package/templates/basklee/COMPONENTS.md +1993 -0
  538. package/templates/basklee/THEMES.md +94 -0
package/README.md CHANGED
@@ -1,3 +1,1191 @@
1
- # Temporary Holding Version
1
+ # basklee-nuxt
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A complete Nuxt 4 storefront for your Basklee marketplace, set up with one command.**
4
+
5
+ `basklee-nuxt` creates a server-rendered shop connected to your personal
6
+ marketplace API: catalog and search, product pages, cart and checkout, customer
7
+ account, journal and support, in English, Russian and Spanish. The package includes a Nuxt module, a
8
+ setup CLI and the full storefront source, so every page and component in your
9
+ project is yours to change.
10
+
11
+ - **Setup CLI:** `init`, `set backend`, `add frontend`, `set mimic`, `sitemap rebuild` and `update`.
12
+ - **Server install:** `install` builds the storefront on your Linux server and
13
+ runs it as a system service behind nginx with HTTPS.
14
+ - **API gateway:** the browser calls `/api/...` on your own domain; the server
15
+ forwards it to your marketplace backend with cookies bound to the storefront.
16
+ - **Typed store:** one Application Load request fills it before the first render.
17
+ - **124 storefront components**, each with an English and Russian README
18
+ ([list](#components)).
19
+ - **Several storefront domains** on one backend, each with its own mapping.
20
+ - **Android app** from the same project with Capacitor 8.
21
+
22
+ **Contents:** [Quick start](#quick-start-from-zero) ·
23
+ [Existing project](#existing-nuxt-4-project) · [Components](#components) ·
24
+ [Commands](#commands) · [Server install](#install-on-your-server) ·
25
+ [Android app](#android-app) · [Update](#update-an-existing-project)
26
+
27
+ Requires Node.js 22.12+ and a Node server deployment. Static-only and edge
28
+ hosting are not supported by this filesystem-based integration.
29
+
30
+ ## Android app
31
+
32
+ The same project builds as an Android app with Capacitor 8. Set
33
+ `BASKLEE_APP_ORIGIN` to your deployed public storefront (HTTPS) for that
34
+ build: the module then makes a client-only build, and every API request goes to
35
+ `<origin>/api/...` through Capacitor's native HTTP with the storefront Origin,
36
+ so your storefront gateway answers it as for the website. With the
37
+ `@capacitor/app` plugin installed, the Android back button closes an open
38
+ dialog, opens the previous page, or leaves the app on the first page. With
39
+ `@capacitor/filesystem` and `@capacitor/share`, a purchased file is saved in
40
+ the app and opened from the Android share sheet. Without
41
+ the variable nothing changes. Setup, build and release steps:
42
+ [Android app guide](https://orionmarket.place/en/sandbox/android-app).
43
+
44
+ ```bash
45
+ BASKLEE_APP_ORIGIN=https://shop.example.com npx nuxt generate
46
+ npx cap sync android
47
+ ```
48
+
49
+ ## Asset loading
50
+
51
+ The starter preloads only the current route's module graph. Navigation assets
52
+ start loading after pointer or keyboard interaction. Closed dialogs and catalog
53
+ content load when opened, while product rows and events below the first screen
54
+ hydrate as they approach the viewport.
55
+
56
+ Storefront image components emit intrinsic dimensions or a stable aspect ratio
57
+ to reserve layout space. Product cards include the primary image in the initial
58
+ page and add secondary images after hover or keyboard focus.
59
+
60
+ ## Quick start from zero
61
+
62
+ Your personal backend domain is already provided in your account at
63
+ [orionmarket.place](https://orionmarket.place). You can change it there.
64
+ Replace `your-project.orionplace.app` below with that domain and
65
+ `shop.example.com` with the public domain of your own storefront.
66
+ With Node.js 22.12+ and npm installed, run this from the parent folder;
67
+ no existing Nuxt project is needed:
68
+
69
+ ```bash
70
+ npx --yes basklee-nuxt init my-marketplace
71
+ cd my-marketplace
72
+ npm install
73
+ npx basklee-nuxt set backend your-project.orionplace.app
74
+ npx basklee-nuxt add frontend shop.example.com
75
+ npm run dev
76
+ ```
77
+
78
+ The first command creates the Nuxt configuration, app and integration README.
79
+ The first frontend becomes the local MIMIC domain. Open the local URL printed
80
+ by Nuxt (normally http://localhost:3000). The storefront opens after Application Load
81
+ succeeds. If initialization fails, check your domain mapping and backend response.
82
+ The backend command accepts either a hostname or its full HTTPS `/api` URL.
83
+ The frontend command accepts a public hostname or its root HTTPS URL.
84
+
85
+ ## Existing Nuxt 4 project
86
+
87
+ ```bash
88
+ npm install basklee-nuxt
89
+ npx basklee-nuxt init --dry-run
90
+ npx basklee-nuxt set backend your-project.orionplace.app
91
+ npx basklee-nuxt add frontend shop.example.com
92
+ npm install
93
+ npm run dev
94
+ ```
95
+
96
+ The CLI preserves unrelated Nuxt settings, scripts, and environment variables.
97
+ It supports a standard root `nuxt.config.ts`, `.js`, or `.mjs` with a literal
98
+ configuration object and module array. Resolve existing `/api` proxy or
99
+ catch-all conflicts before setup. Custom source/server directories, Nuxt layers,
100
+ and dynamic configuration expressions require manual integration.
101
+
102
+ No install or postinstall hook changes your application. Only explicitly running
103
+ the CLI writes files. Use `--cwd <directory>` to select a project and `--dry-run`
104
+ to inspect planned changes without writing them.
105
+
106
+ ## Nuxt compatibility date
107
+
108
+ The local setup implementation adds `compatibilityDate: '2025-07-15'` when it is
109
+ missing from `nuxt.config.ts`, including during updates. Existing dates are
110
+ preserved. This retains Nuxt's fallback behavior and prevents `NUXT_B5001`.
111
+ This fix will be available on npm after the next publication.
112
+
113
+ For an already generated project, add this property inside the existing
114
+ `defineNuxtConfig({ ... })` object and restart development:
115
+
116
+ ```typescript
117
+ compatibilityDate: '2025-07-15',
118
+ ```
119
+
120
+ Keep the other settings. The date controls compatibility behavior, rather than
121
+ tracking today's date; see the [Nuxt configuration reference](https://nuxt.com/docs/4.x/api/nuxt-config#compatibilitydate).
122
+
123
+ ## Import aliases
124
+
125
+ Use `@/` for application imports. Nuxt resolves it to `app/`, so an import such
126
+ as `@/stores/basklee` works from any page, composable or component folder.
127
+ Framework imports such as `#imports` keep their own names.
128
+
129
+ <!-- components:start (generated by scripts/generate-package-readme-components.mjs) -->
130
+ ## Components
131
+
132
+ The starter includes **126 storefront components**, copied into
133
+ `app/components/basklee/` of your project. Each one has a README in English and Russian
134
+ next to its source that describes its inputs, data and actions.
135
+
136
+ ### Storefront structure
137
+
138
+ Main pages and the shared storefront frame.
139
+
140
+ | Component | Name | What it does |
141
+ | --- | --- | --- |
142
+ | **Header** | `StorefrontHeader` | The storefront header and its search, catalog, manufacturer and journal links, locale, currency, account, wishlist and cart controls. |
143
+ | **Storefront logo** | `BrandLogos` | Displays one logo from store.init.logos. |
144
+ | **Product search** | `MainSearch` | A search input with suggestions in the storefront language. |
145
+ | **Language selector** | `MainLanguageSwitcher` | Selects the storefront language and its associated currency and measurement units. |
146
+ | **Currency selector** | `MainCurrencySwitcher` | Selects the current storefront currency from the available options. |
147
+ | **Storefront account** | `StorefrontAccount` | Guest sign-in button and signed-in account menu with profile and wallet actions. |
148
+ | **Wallet balance** | `WalletBalance` | Displays the wallet balance in the selected storefront currency. |
149
+ | **Sign-out page** | `StorefrontLogout` | Session sign-out, failure retry and return to the storefront. |
150
+ | **Wishlist button** | `StorefrontWishlistButton` | Displays the wishlist count and links to the wishlist page. |
151
+ | **Cart button** | `StorefrontCartButton` | Displays the cart count and emits a request to open the cart page. |
152
+ | **Cart preview** | `CartPreview` | A compact dropdown under the header's cart button with cart products, quantities and amounts in the selected currency. |
153
+ | **Catalog menu** | `CatalogHeader` | Category navigation with nested sections and representative product cards. |
154
+ | **Catalog representative** | `CatalogRepresentative` | A compact product card used in the catalog menu, with the same navigation, variant, wishlist and purchase actions. |
155
+ | **Storefront home** | `StorefrontHome` | Banners, the optional Popular categories block, product sections, storefront events and recommendations. |
156
+ | **Storefront banners** | `MainBanner` | A carousel of banner images for the current storefront language, with responsive image formats. |
157
+ | **Popular categories block** | `CategoryGroup` | Optional home-page block of public category tiles. |
158
+ | **Product group** | `ProductGroup` | Displays a collection of product cards with images, prices, variant selection and purchase controls. |
159
+ | **Product card** | `ProductCard` | Combines a product’s image, name, price, variants, wishlist button and purchase controls in one card. |
160
+ | **Product photo viewer** | `HoverImageViewer` | A separate product photo viewer with dot buttons: it switches photos with the pointer, with a swipe and from the keyboard, and a click passes the chosen photo's address to the application. |
161
+ | **Product card title** | `ProductCardTitle` | Displays the localized product name in the card. |
162
+ | **Product card description** | `ProductCardDescription` | Displays the localized short product description as plain text, with HTML tags removed. |
163
+ | **Product card badges** | `ProductCardBadges` | Marks new, popular, good-deal and low-stock products with badges in the card. |
164
+ | **Product card wishlist button** | `ProductCardFavorite` | Requests adding or removing the product from the wishlist; the supplied storefront sends guests to sign-in. |
165
+ | **Seller in the product card** | `ProductCardSeller` | Displays the product seller’s name and rating in the card. |
166
+ | **Product card rating** | `ProductCardRating` | Displays the product’s average rating and review count in the card. |
167
+ | **Product card variants** | `ProductCardVariants` | Selects a primary or secondary product variant. |
168
+ | **Secondary variant selector** | `ProductSecondaryVariantModal` | Shows primary and secondary product choices in a modal and can continue the selected purchase action. |
169
+ | **Product card price** | `ProductCardPrice` | Displays the price in the selected currency and the original price when the product is discounted. |
170
+ | **Low-stock notice** | `ProductCardStockNotice` | Warns that the product will soon run out of stock. |
171
+ | **Product card purchase controls** | `ProductCardActions` | Product-card controls for the cart, quantity, availability notifications and preorder when available. |
172
+ | **Preorder dialog** | `ProductPreorderDialog` | The selected product and contact details for a preorder request. |
173
+ | **Storefront events** | `EventsBlock` | A full-width carousel of layout-event images for the current storefront language, with responsive image formats. |
174
+ | **Event block and promotion enrollment** | `EventEnrollmentDialog` | Displaying the event block and opening promotion enrollment from the selected event. |
175
+ | **Footer** | `StorefrontFooter` | Store identity, navigation, a contact-page link and social links. |
176
+ | **Social links** | `SocialLinks` | Display the store’s published social links and icons. |
177
+ | **Error page** | `StorefrontErrorPage` | Page-not-found (404) and failure (500) page with Home, Catalog and Retry actions. |
178
+ | **Storefront theme** | `BaskleeThemeProvider` | Applies the selected light or dark storefront theme and optional color overrides to its content. |
179
+
180
+ ### Catalog and discovery
181
+
182
+ Browse categories, search results and product sources.
183
+
184
+ | Component | Name | What it does |
185
+ | --- | --- | --- |
186
+ | **Catalog component** | `StorefrontCatalog` | The component shows store categories, subcategories and product links. |
187
+ | **Category page** | `StorefrontCategory` | A category with its breadcrumb path, subcategories, filters and paginated product cards. |
188
+ | **Search results** | `ProductSearchResults` | Filters, products, loading and empty states for search, category, seller and recommendation results. |
189
+ | **Search filters** | `SearchFilters` | Price, discount, rating, review, category, seller, manufacturer and variant facets with selectable values and optional result counts. |
190
+ | **Sellers** | `StorefrontSellers` | Seller directory with filters and sorting, and a seller profile with its products. |
191
+ | **Seller filters** | `SellerFilters` | Seller name, minimum rating and category filters for the seller directory. |
192
+ | **Seller summary** | `SellerSummary` | Seller logo, name, rating, selling-since badge, product count and description. |
193
+ | **Seller photos** | `SellerPhotoGallery` | The seller’s approved photos as a square grid with a photo viewer. |
194
+ | **Stores** | `StorefrontStores` | Store addresses, map, phone numbers, opening hours and products. |
195
+ | **Manufacturers and their products** | `StorefrontManufacturers` | Alphabetical index, letter-based lists and manufacturer details. |
196
+ | **Manufacturer index** | `ManufacturerIndex` | Manufacturer logos and letter groups. |
197
+
198
+ ### Products and shopping
199
+
200
+ Product details, saved items and the cart.
201
+
202
+ | Component | Name | What it does |
203
+ | --- | --- | --- |
204
+ | **Product details** | `StorefrontProduct` | Loads and displays a published product or a secret-key preview with images, purchase choices, details and reviews. |
205
+ | **Page path** | `BaskleeBreadcrumbs` | Linked path from the storefront home page through parent categories to the current page. |
206
+ | **Product characteristics** | `ProductSpecificationsDialog` | Every characteristic of the product in a dialog over the page. |
207
+ | **Product reviews** | `ProductReviews` | Reviews, replies, ratings and the user’s submissions. |
208
+ | **Review form** | `ProductReviewForm` | Rating, text and photos for a review or reply. |
209
+ | **Customer review photos** | `ProductReviewGallery` | Review photos for the selected product. |
210
+ | **Review photo viewer** | `ProductReviewImageViewer` | The photos of one review, shown large on the same page. |
211
+ | **Promo code products** | `PromoProducts` | The products a promo code offer applies to, with the offer’s conditions. |
212
+ | **Wishlist and availability notices** | `StorefrontWishlist` | Saved products and products with availability notifications, shown as standard product cards. |
213
+ | **Cart and checkout** | `StorefrontCart` | Cart items, promo codes, delivery, payment and order creation. |
214
+ | **Cart item** | `CartLineItem` | Item name, image, price, quantity and removal. |
215
+ | **Cart item options** | `CartItemOptions` | Option products as product cards, with text and file attachment for an item. |
216
+ | **Checkout details** | `CartCheckoutDetails` | Delivery address, payment method, recipient and comment. |
217
+ | **Shipment delivery selection** | `CartDeliverySelector` | Delivery methods with icons, pickup points and their map for one shipment. |
218
+ | **Delivery map** | `DeliveryMap` | Selectable locations on Yandex Maps for delivery pickup and the store directory. |
219
+
220
+ ### Customer account
221
+
222
+ Profile, orders, addresses and account activity.
223
+
224
+ | Component | Name | What it does |
225
+ | --- | --- | --- |
226
+ | **Account sections** | `AccountSection` | Account navigation and sign-in for private storefront sections. |
227
+ | **Personal profile** | `StorefrontProfile` | Account overview and forms for personal details, verified email, notification preferences, avatar, password and account deletion. |
228
+ | **Profile photo** | `ProfileAvatar` | Upload or remove the current account’s avatar. |
229
+ | **Personal details** | `ProfileDetailsForm` | Edit the account holder’s name and date of birth. |
230
+ | **Email and notifications** | `ProfileEmailSettings` | Verify an email address and choose optional email-notification and email-language preferences. |
231
+ | **Account password** | `ProfilePasswordForm` | Create or change the account password. |
232
+ | **Password field** | `BaskleePasswordInput` | Password input with a button that shows or hides the entered password. |
233
+ | **Delete account** | `ProfileDeleteAccount` | Delete the signed-in customer's own account. |
234
+ | **Account sign-in** | `ProfileSignIn` | Phone-based account sign-in and registration. |
235
+ | **User promo codes** | `AccountPromocodes` | Available promo codes and applying a selected code to the cart. |
236
+ | **My activity** | `AccountActivity` | The user’s promo codes, reviews and sign-in history. |
237
+ | **Sign-in history** | `SignInHistory` | The user’s sign-in dates, devices, browsers and IP addresses. |
238
+ | **User orders** | `StorefrontOrders` | Order history, purchased items, payment, cancellation and repeat. |
239
+ | **Order details** | `OrderDetails` | Order items, shipments, tracking, purchased content and attachments. |
240
+ | **Order payment selection** | `OrderPaymentForm` | Available payment-method selection for an existing order. |
241
+ | **User addresses** | `StorefrontAddresses` | Saved addresses, address editing and default delivery selection. |
242
+ | **Address form** | `AddressForm` | Address creation and editing with country selection, region search, text suggestions and location lookup. |
243
+ | **Value selector** | `BaskleeSelect` | Selects one value from a labeled list, with keyboard controls, country flags and option icons. |
244
+ | **Search selector** | `BaskleeSearchSelect` | Selects one value from options searched as the user types, with a loading spinner and retry. |
245
+ | **Wallet and payments** | `StorefrontWallet` | Payment history, balance top-ups and cancellation of unpaid invoices. |
246
+ | **Wallet top-up form** | `WalletTopUpForm` | Amount, currency and payment-method selection for a wallet top-up. |
247
+ | **Payment panel** | `PaymentPanel` | Opens the payment link and lets the user refresh its status. |
248
+ | **Pagination** | `StorefrontPagination` | Previous and next controls with the current page for a returned list. |
249
+
250
+ ### Subscriptions and support
251
+
252
+ Plans, active subscriptions and support requests.
253
+
254
+ | Component | Name | What it does |
255
+ | --- | --- | --- |
256
+ | **Subscription plans** | `StorefrontTariffs` | Plans grouped by subscription, with search, sign-in for guests and subscription purchase. |
257
+ | **Subscription plan details** | `StorefrontTariff` | One public plan with its media, description, features, periods, options and subscription purchase. |
258
+ | **Subscription plans** | `TariffCards` | Plan cards in a responsive grid. |
259
+ | **Subscription plan card** | `TariffCard` | A plan card with its image, trial badge, name, description, the modules and limits of the plan, the option chooser, period prices and subscribe actions. |
260
+ | **Plan image** | `TariffCardImage` | The first small plan image. |
261
+ | **Plan name** | `TariffCardTitle` | The tariff name in its card, in the selected language. |
262
+ | **Plan description** | `TariffCardDescription` | The short plan description without HTML tags, and the full description under Details. |
263
+ | **Plan modules, limits and options** | `TariffCardFeatures` | The modules and limits of a plan from `tariff_variables_json`, each with its explanation, and the chooser of the plan options. |
264
+ | **Information hint** | `BaskleeInfoHint` | Small information button that explains the term beside it. |
265
+ | **Plan prices** | `TariffCardPrices` | The period switcher, the price for the chosen period and the Subscribe and Try actions. |
266
+ | **Plan purchase** | `TariffSubscriptionModal` | Select an option, enter a promotion code and confirm a subscription purchase. |
267
+ | **My subscriptions** | `StorefrontSubscriptions` | Subscription dates, plan, usage, service details, automatic renewal, renewal payment and support. |
268
+ | **Renewal payment** | `SubscriptionExtendDialog` | The period, the promo code and the amount for extending a subscription. |
269
+ | **Automatic renewal** | `SubscriptionRenewalDialog` | The period that is paid automatically, or turning it off. |
270
+ | **Plan and option change** | `SubscriptionChangeDialog` | The new plan or service option, its period and the amount that is charged. |
271
+ | **Subscription cancellation** | `SubscriptionCancelDialog` | The confirmation that stops automatic renewal and keeps the paid period. |
272
+ | **Plan and usage** | `SubscriptionPlanSummary` | The plan picture, description and parameters with the usage the subscription service reported. |
273
+ | **Subscription service details** | `SubscriptionRemoteDetails` | The identifier, confirmation time and host a subscription service returned. |
274
+ | **Support conversations** | `StorefrontSupport` | Customer support conversations for general questions, sellers, order items and subscriptions. |
275
+ | **Conversation messages** | `TicketConversation` | Messages, attachments, conversation closing and support rating. |
276
+ | **Conversation item** | `TicketItemCard` | The purchased item a conversation is about, with its image, variant or option, quantity and paid amount. |
277
+ | **Subscription of a conversation** | `TicketSubscriptionCard` | The subscription a support conversation is about: plan, number, state, paid-until date and automatic renewal. |
278
+ | **Conversation image** | `TicketImage` | Loading and viewing an image from the user’s conversation. |
279
+ | **Support message form** | `TicketMessageForm` | Message text and images for a new conversation or reply. |
280
+
281
+ ### Content and contact
282
+
283
+ Journal content and customer contact flows.
284
+
285
+ | Component | Name | What it does |
286
+ | --- | --- | --- |
287
+ | **Journal** | `StorefrontJournal` | Paged journal of store articles with category and author filters. |
288
+ | **Journal article** | `BlogArticle` | An article, subscription access and its discussion. |
289
+ | **Article comments** | `BlogComments` | Discussion, replies and the user’s own comments. |
290
+ | **Comment form** | `BlogCommentForm` | Text for a new comment, reply or edit. |
291
+ | **Blog posts** | `BlogPostGroup` | Publication previews in a grid, list or layout with a lead card. |
292
+ | **Blog post card** | `BlogPostCard` | Publication image, localized title, plain-text preview and reading time. |
293
+ | **Contact page** | `StorefrontContact` | Company contact and registration details, with a form for messaging the store. |
294
+ | **Contact details** | `AboutPage` | Display the store’s published company and contact information. |
295
+ | **Contact form** | `ContactForm` | Sending a question to the store. |
296
+ | **Unsubscribe from emails** | `EmailUnsubscribe` | Confirming an unsubscribe request from an email link. |
297
+ | **Privacy policy page** | `StorefrontPrivacy` | The store’s personal data policy with a cookies section and the operator’s details. |
298
+ | **Cookie notice** | `CookieNotice` | A small notice about the necessary cookies with a link to the cookies section of the policy. |
299
+
300
+ ### Shared interface
301
+
302
+ Small reusable states and identity elements.
303
+
304
+ | Component | Name | What it does |
305
+ | --- | --- | --- |
306
+ | **Empty state** | `BaskleeEmptyState` | Line drawing and message shown when a list, history or search result has no items. |
307
+ | **Avatar** | `BaskleeAvatar` | Round user photo with initials when no photo is available. |
308
+ | **Storefront image** | `BaskleeImage` | Loads a safe public image lazily and shows an accessible placeholder when the image is missing or fails. |
309
+ | **Measurement unit selector** | `UnitSwitcher` | Selects a weight or length unit from those available in the storefront. |
310
+
311
+ <!-- components:end -->
312
+
313
+ ## Commands
314
+
315
+ ```bash
316
+ npx basklee-nuxt init [directory]
317
+ npx basklee-nuxt update
318
+ npx basklee-nuxt set backend your-project.orionplace.app
319
+ npx basklee-nuxt add frontend shop.example.com
320
+ npx basklee-nuxt add frontend www.shop.example.com
321
+ npx basklee-nuxt remove frontend www.shop.example.com
322
+ npx basklee-nuxt set mimic shop.example.com
323
+ npx basklee-nuxt sitemap rebuild [shop.example.com]
324
+ npx basklee-nuxt sitemap status
325
+ sudo npx basklee-nuxt install
326
+ npx basklee-nuxt status
327
+ sudo npx basklee-nuxt restart
328
+ npx basklee-nuxt help
329
+ ```
330
+
331
+ Either domain command can run first. Both settings are needed for a usable mapping.
332
+ After setup, these npm script aliases are also available:
333
+
334
+ ```bash
335
+ npm run basklee:backend -- your-project.orionplace.app
336
+ npm run basklee:add-frontend -- shop.example.com
337
+ npm run basklee:remove-frontend -- www.shop.example.com
338
+ npm run basklee:mimic -- shop.example.com
339
+ npm run basklee:help
340
+ npm run basklee:update
341
+ npm run basklee:sitemap
342
+ ```
343
+
344
+ The storefront serves `/robots.txt` and `/sitemap.xml` (public pages, categories,
345
+ products and journal publications in every language). The sitemap is rebuilt
346
+ from the backend once an hour; `npm run basklee:sitemap` rebuilds it at once,
347
+ for example after new publications, and the running storefront serves it without
348
+ a restart.
349
+
350
+ `npm set` belongs to npm's own configuration system; use the commands above.
351
+ The setup commands configure local integration files. They do not provision a
352
+ backend, change your account or create DNS records. `install` deploys the
353
+ storefront on your server; see [Install on your server](#install-on-your-server).
354
+
355
+ ## Install on your server
356
+
357
+ Prepare a Linux server once with the Basklee server script: it installs
358
+ Node.js, nginx and certbot and adds the `basklee` command
359
+ ([server guide](https://orionmarket.place/en/sandbox/install)).
360
+
361
+ ```bash
362
+ curl -fsSLo basklee.sh https://orionmarket.place/downloads/basklee.sh
363
+ sudo sh basklee.sh setup
364
+ ```
365
+
366
+ Then create the storefront in `/srv/basklee` and install it:
367
+
368
+ ```bash
369
+ cd /srv/basklee
370
+ sudo npx --yes basklee-nuxt init shop
371
+ cd shop
372
+ sudo npm install
373
+ sudo npx basklee-nuxt install
374
+ ```
375
+
376
+ `install` asks for your backend and storefront domain when they are missing,
377
+ builds the project, runs it as the system service `basklee-shop` on a free
378
+ local port and connects each storefront domain with nginx and a Let's Encrypt
379
+ certificate. Run it again after code or package updates; the service keeps its
380
+ port. Options: `--name <service>`, `--port <port>`, `--user <user>`,
381
+ `--no-build` (install the build already in the folder), `--no-domains`, `--yes`,
382
+ `--dry-run`. Full guide:
383
+ [Install a storefront](https://orionmarket.place/en/sandbox/install/storefront).
384
+
385
+ ### Manage the service
386
+
387
+ Run these in the project folder, or name the service from anywhere with
388
+ `--name shop`:
389
+
390
+ ```bash
391
+ npx basklee-nuxt status # running?, autostart, port, home page answer, domains
392
+ sudo npx basklee-nuxt start
393
+ sudo npx basklee-nuxt stop
394
+ sudo npx basklee-nuxt restart # waits until the home page answers again
395
+ sudo npx basklee-nuxt logs 200 # last log lines; --follow keeps reading
396
+ npx basklee-nuxt list # every storefront service on this server
397
+ sudo npx basklee-nuxt uninstall # stop and remove the service (alias: cleanup)
398
+ ```
399
+
400
+ `start` and `restart` wait up to 90 seconds for the home page and print the
401
+ last log lines when it does not answer. `status` ends with code 3 when the
402
+ storefront is stopped or does not answer, so scripts and monitors can use it.
403
+ `uninstall` (or `cleanup`) stops the service, takes it out of autostart and
404
+ deletes its unit file and registration; the project folder and its build stay.
405
+ With the `basklee` server tool it runs `basklee app remove`, which also
406
+ turns the storefront's domains into a placeholder page. `--dry-run` shows what it
407
+ would remove; `--yes` skips the question.
408
+
409
+ ## Generated files
410
+
411
+ | Path | Purpose |
412
+ | --- | --- |
413
+ | `nuxt.config.ts` | Registers the module; an existing supported config keeps its filename. |
414
+ | `basklee/runtime/marketplace.mjs` | Commented domain lookup and HTTP transport. |
415
+ | `basklee/runtime/api.mjs` | Nitro handler registered for `/api/**` and blog media under `/ps3/blog/**`. |
416
+ | `basklee/runtime/domain.mjs` | Domain resolution middleware. |
417
+ | `basklee/README.md` | Your settings, API examples, file explanations, verification and VPS deployment. |
418
+ | `basklee/settings.json` | Domain values selected by the CLI. |
419
+ | `basklee/.generated.json` | File hashes used to preserve your edits on subsequent setup. |
420
+ | `sitemaps/shop.example.com.cfg` | One line: `https://your-project.orionplace.app/api`. |
421
+ | `.env` | `MIMIC_FRONT_DOMAIN="shop.example.com"` for localhost. |
422
+ | `.vscode/settings.json` | Tells the editor's CSS checker to accept Tailwind's `@apply`, `@reference` and `@theme`. An existing file is kept. |
423
+
424
+ The module executes the generated local runtime files. You can read and customize
425
+ them. Later setup runs preserve edited runtime files and the project README,
426
+ reporting which files were preserved. Unchanged generated files can be refreshed
427
+ with `npx basklee-nuxt update`. A manually edited domain file is
428
+ never silently overwritten. Keep the hash manifest in version control.
429
+
430
+ ## Multiple frontend domains
431
+
432
+ Each frontend gets its own `sitemaps/<domain>.cfg`. `add frontend` preserves other
433
+ domains and can be repeated safely. `set backend` updates every CLI-managed mapping
434
+ to the new personal API; it refuses to overwrite a manually edited mapping.
435
+
436
+ A new project starts with `MIMIC_FRONT_DOMAIN=""` in `.env`. Setting a backend
437
+ alone leaves it empty. The first added frontend becomes MIMIC; further additions
438
+ preserve that choice. `set mimic <domain>` selects an already-added frontend and
439
+ updates MIMIC without changing any domain mappings. Unknown domains are rejected;
440
+ add them with `add frontend` first.
441
+
442
+ `help`, `--help`, and `-h` display commands without writing files. The legacy
443
+ `set frontend <domain>` shortcut remains supported: it adds and selects a domain.
444
+
445
+ `remove frontend <domain>` removes that domain from the list and deletes only its
446
+ unchanged generated `.cfg`. Removing the MIMIC domain selects the first remaining
447
+ domain. Removing the last one clears MIMIC. Unknown or edited mappings cause a
448
+ clear error without changing files. Unrelated configurations remain untouched.
449
+
450
+ Restart development after domain changes to refresh Vite's allowed hosts and
451
+ Nuxt's environment. Production reloads mapping files on each API request; reload
452
+ the process environment when changing MIMIC. Configure DNS, TLS, and the hosting
453
+ proxy for each frontend separately.
454
+
455
+ Existing 0.1.0 setup state is migrated automatically, including other domain
456
+ mappings recorded in its generated-file manifest.
457
+
458
+ ## Runtime behavior
459
+
460
+ The hosting proxy must overwrite `X-Front-Domain`, `X-Forwarded-Host`, and `Host`.
461
+ The gateway selects the first valid public domain in that order, with the request
462
+ URL hostname as another fallback. On localhost it uses `MIMIC_FRONT_DOMAIN`.
463
+ An unknown public domain returns `503`; it never uses another domain's mapping.
464
+
465
+ The corresponding `.cfg` is read on every request. Backend URLs must use HTTPS,
466
+ end in `/api`, and belong to `*.orionplace.app`. API methods, query strings, bodies,
467
+ authorization and cookies are forwarded. Backend statuses are retained and cookie
468
+ Domain attributes are removed to bind cookies to the storefront. Gateway responses
469
+ use `Cache-Control: no-store`, except public blog images and videos: they keep the
470
+ backend's `private, max-age` rule, so the browser does not download them again on
471
+ every page. When the network drops the connection before the backend answers, GET,
472
+ HEAD and Application Load requests are sent once more on a new connection; other
473
+ requests are never repeated. Network failures return `502`.
474
+
475
+ A changing request (POST, PUT, PATCH, DELETE) from another site is rejected with
476
+ `403`. A request from the page's own host or the storefront domain passes, and the
477
+ backend receives it with the storefront domain's origin
478
+ (`https://shop.example.com`), the one it accepts forms from. So a host that shows
479
+ the storefront through `X-Front-Domain`, such as a preview host or a local port,
480
+ can sign in too.
481
+
482
+ A changing request (POST, PUT, PATCH, DELETE) from another site is rejected with
483
+ `403`. A request from the page's own host or the storefront domain passes, and the
484
+ backend receives it with the storefront domain's origin
485
+ (`https://shop.example.com`), the one it accepts forms from. So a host that shows
486
+ the storefront through `X-Front-Domain`, such as a preview host or a local port,
487
+ can sign in too.
488
+
489
+ Browser requests use `/api/...`. For SSR, use Nuxt's `useRequestFetch()` to pass
490
+ the current request's domain and authentication to the same gateway. See the
491
+ project README for examples and cookie handling.
492
+
493
+ The module sets private `runtimeConfig.mimicFrontDomain`, adds domain `Vary`
494
+ headers, extends Vite's allowed hosts from `.cfg` filenames, and defaults Nitro
495
+ to `node-server`. It does not set a fixed public site URL or generate canonical
496
+ links for your pages; use the resolved request domain for your own SEO metadata.
497
+
498
+ Deploy `sitemaps` with the production server, or set an absolute `SITEMAPS_DIR`.
499
+ The production process reads `MIMIC_FRONT_DOMAIN` without rebuilding. Run the
500
+ server from the project root or explicitly point it at the configuration directory.
501
+
502
+ ## Page metadata
503
+
504
+ Every supplied page sets its title, description and keywords through
505
+ `app/composables/useBaskleePageSeo.ts` and Nuxt's `useSeoMeta()`.
506
+ The homepage prefers `init.seo`, and category pages prefer their localized SEO
507
+ fields. Empty values fall back to page-specific Russian, Spanish or English copy in
508
+ `app/utils/basklee/pageSeo.ts`. Metadata updates with the current locale and
509
+ route data. The homepage retains additional backend Open Graph and Twitter tags
510
+ through `useHead()`. Profile and logout pages remain excluded from indexing;
511
+ search results retain their `noindex, follow` policy.
512
+ Pages with a canonical address also link the same page in the other storefront languages (`hreflang`) and set `og:type` and `og:locale`; a journal article adds its publication date (`article:published_time`) and schema.org `BlogPosting` data. The store icon (`logos.ico`) is the page's `<link rel="icon">`. An unknown `?locale` opens the default language.
513
+
514
+ List pages (journal, categories, stores) link their previous and next pages as real links (`?page=2`). Each later page has its own canonical address and a title with its page number; a journal page past the last one answers 404.
515
+
516
+ ## Documentation
517
+
518
+ - [Create a Nuxt frontend](https://orionmarket.place/en/sandbox/new-project/nuxt)
519
+ - [Install the Nuxt package and connect your personal backend](https://orionmarket.place/en/sandbox/new-project/nuxt)
520
+ - [Marketplace API documentation](https://orionmarket.place/en/sandbox/)
521
+ - [Android app for your Nuxt storefront](https://orionmarket.place/en/sandbox/android-app)
522
+
523
+ ## Development
524
+
525
+ In this repository checkout, the package demo uses its own
526
+ `packages/basklee-nuxt/.env` and
527
+ `packages/basklee-nuxt/sitemaps/<storefront-domain>.cfg`.
528
+ Set the storefront's `MIMIC_FRONT_DOMAIN` and personal backend mapping there.
529
+ See [local demo configuration](DEVELOPMENT.md#local-demo-configuration).
530
+
531
+
532
+ ```bash
533
+ npm install
534
+ npm test
535
+ npm pack --dry-run
536
+ ```
537
+
538
+ The published tarball includes only the CLI, module, runtime source, README,
539
+ license, starter templates, and package metadata.
540
+
541
+ ## Application Load starter
542
+
543
+ The CLI generates global route middleware, a shared Pinia store and the full
544
+ nested TypeScript contract under `app/interfaces/basklee/`. Middleware awaits
545
+ `POST /api/appload` before page setup. `useBaskleeStore()` exposes
546
+ initialization, profile and live endpoint discovery to pages and components.
547
+ `useBaskleeAppLoad()` provides explicit initialize, refresh and reset actions.
548
+ `app.vue` wraps `NuxtLayout` and `NuxtPage` in the shared theme provider and
549
+ renders `NuxtLoadingIndicator`: a thin bar in the header text color
550
+ (`inverseText`) at the top of the window during navigation and storefront
551
+ requests (`useBaskleeProgress()`).
552
+ `app/layouts/default.vue` renders the storefront header, cart preview, product
553
+ action feedback, preorder dialog and footer on every route; `pages/index.vue`
554
+ displays the home sections. A failed Application Load replaces every page with
555
+ the error page (HTTP 503, Retry reloads the page); unknown addresses keep 404.
556
+ `app/error.vue` renders `StorefrontErrorPage` for unknown addresses and unhandled
557
+ errors, keeping the HTTP status: 404 shows “Page not found” with Home and
558
+ Catalog, other statuses show “Something went wrong” with Retry and Home. Pages
559
+ use `noindex, nofollow`; customers never see error messages or stack traces.
560
+ The not-found page keeps the header and footer when Application Load succeeded;
561
+ otherwise, and for failures, it renders without the layout. See the
562
+ [error page guide](https://orionmarket.place/en/sandbox/components/nuxt/error-page).
563
+ `/product/:id`, `/tariffs/:slug/:id`, `/category/:id`, `/browse`, `/featured`,
564
+ `/journal` and `/journal/:id` load their first data while the server renders
565
+ the page, with
566
+ the visitor's cookies, so the HTML contains product names, prices, article
567
+ links and article text; the browser reuses that data without repeating the
568
+ request (`useBaskleeServerData()`). An ID that is not a positive integer, or
569
+ a record that `products_search` or `blog_posts_get` does not return, answers 404
570
+ from the server. A failed request keeps the page with its Retry button, and a
571
+ failed server request is loaded again in the browser. Product cards link to
572
+ `/product/:id` through `provideBaskleeProductLink()` in the default layout,
573
+ while `/product/:id?key=<preview key>` uses `products_preview` and lets anyone
574
+ with the complete seller or staff preview address view the key owner's product
575
+ without signing in.
576
+ Unpublished and option-only products show a preview notice, and the page uses
577
+ `noindex, nofollow`. Category tiles, banners and the category path link to `/category/:id`
578
+ through `provideBaskleeCategoryLink()`. Products
579
+ attached to a journal article are shown as standard product cards with variants
580
+ and purchase controls.
581
+ The dark header bar combines catalog navigation with Manufacturers and Journal
582
+ links, search hints and borderless currency/language selectors.
583
+ Currency labels and amounts use `symbol_left` and `symbol_right` from Application
584
+ Load. If both are empty, amounts use the uppercase currency code. This formatting
585
+ is shared by selectors, product prices, wallet balances, cart totals and tariffs;
586
+ it does not convert or round amounts.
587
+ Its home link uses `BrandLogos` with `store.init.logos.medium`; contact data is
588
+ not a header dependency. Missing or failed logo images use the shared placeholder.
589
+ Its labels follow the storefront locale (English/Russian/Spanish). `StorefrontAccount`
590
+ shows guest sign-in or an authenticated profile menu with the selected currency
591
+ wallet balance. Its `signIn`, `signOut`, `selectProfile` and `selectWallet` events are handled
592
+ by the host; the generated layout opens `/profile` for sign-in (with the current
593
+ page in `redirect`, where the user returns after sign-in) and profile
594
+ selection, `/logout` for sign-out and `/wallet` for wallet selection. The component does not
595
+ submit credentials or create payments. Its [EN/RU preview and source downloads](https://orionmarket.place/en/sandbox/appload/nuxt/init/is_authenticated)
596
+ share the maintained package component. `StorefrontWishlistButton` and
597
+ `StorefrontCartButton` display counts from `store.counters`. Their clicks emit
598
+ `selectWishlist` and `selectCart` through the header without changing data;
599
+ the generated layout opens `/wishlist` for the wishlist button and `CartPreview` for
600
+ the cart button. The starter opens `CartPreview` through
601
+ `useBaskleeCartPreview` and the discovered `cart_guest_modal_get` endpoint.
602
+ The dialog shows product images, translated names, quantities and cart-item
603
+ totals in the selected currency, with loading, empty and retry states. Closing
604
+ it cancels a pending request. Selecting a product in the preview closes it and
605
+ opens `/product/<id>`; selecting the full cart closes it and opens `/cart`.
606
+ Search opens `/browse?q=<query>`, category selection opens `/category/<id>`,
607
+ product selection opens `/product/<id>` and seller selection opens
608
+ `/sellers?seller=<id>`. Variant selection
609
+ replaces the full representative card and loads missing products or secondary choices through the
610
+ shared API client. Cart, wishlist, availability-notification and preorder events
611
+ run the product action controller described below.
612
+ See [the header contract](templates/basklee/COMPONENTS.md#storefront-header)
613
+ for the supplied slots and integration boundaries.
614
+ It preserves custom apps and edited generated files. Generated instructions in
615
+ `basklee/README.md` explain how to integrate the composable in an existing app.
616
+
617
+ ### Application Load component library
618
+
619
+ The starter also supplies `ManufacturerIndex` and its
620
+ `useBaskleeManufacturerIndex` controller. `/manufacturers` loads the discovered
621
+ manufacturer-index endpoint and renders logo previews and letter groups, with
622
+ alphabet switching, loading, empty and retry states. The home page links to this
623
+ index beside the journal. The page renders `StorefrontManufacturers`, which loads
624
+ the index itself. Letter and manufacturer selections are `ManufacturerIndex`
625
+ events; `StorefrontManufacturers` handles them by loading that letter's or that
626
+ manufacturer's records through `manufactures_manufactures_get`. See the
627
+ [component reference](https://orionmarket.place/en/sandbox/components/nuxt/manufacturer-index)
628
+ for its contract, live preview and source downloads.
629
+
630
+ The website [Components section](https://orionmarket.place/en/sandbox/components/nuxt)
631
+ sits beside Application Load and documents Header with its child components,
632
+ plus ProductGroup, ProductCard and its parts. Both English and Russian guides provide live
633
+ previews, contracts and physical source downloads.
634
+
635
+ Storefront components live under `app/components/basklee/`, grouped by feature.
636
+ The [field and component catalog](templates/basklee/COMPONENTS.md) maps each
637
+ initialization field to its consumers. Configuration, session flags and shared
638
+ counters have data references with links to the features that use them.
639
+ The catalog is also installed as `basklee/COMPONENTS.md`.
640
+
641
+ The [Application Load sandbox](https://orionmarket.place/en/sandbox/appload/nuxt) renders
642
+ these physical components and lets you edit their input locally. Component
643
+ selections emit events; account, cart and subscription requests remain the host
644
+ application's responsibility.
645
+
646
+ ### Locale selector
647
+
648
+ `app/components/basklee/locale/MainLanguageSwitcher.vue` renders the language record
649
+ from `store.locales` directly. Import it without a data prop. It accepts a
650
+ `label` (default `Language`), `disabled` (default `false`) and `codeOnly`
651
+ (default `false`). Missing names
652
+ fall back to another translation, then the human name or code. Empty data
653
+ disables the selector. The store initially selects its first available language.
654
+
655
+ Flags from `flag_img` appear beside the selected language and in every dropdown
656
+ option that has an available image. Missing or failed images leave the language
657
+ name readable. The dropdown uses the shared theme, supports arrow keys and typing
658
+ to find a language, and closes on Escape or an outside click. Press Enter, Space
659
+ or Tab to confirm the highlighted option.
660
+ Options stay on one line. The dropdown expands within the viewport; longer names
661
+ use an ellipsis, with the full name available on hover.
662
+
663
+ The component gets `selectionStore` from `useBaskleeSelectionsStore()`.
664
+ Selection calls `selectionStore.setLocale(code)`, updating `selectionStore.localeCode` and the
665
+ language’s default currency and units. It then emits `change` with the locale object. The component does not navigate or change your translation settings;
666
+ connect these events to your application's language handling as needed.
667
+
668
+ Setup installs Tailwind CSS 4 and its Vite plugin. Upgrade an existing Tailwind 3
669
+ installation first; setup rejects incompatible versions before writing files.
670
+ The module registers
671
+ `app/assets/css/basklee.css`, which scans the generated components and pages.
672
+ It includes theme variables and utilities without a global CSS reset, preserving
673
+ your application's base styles. An existing Tailwind Vite plugin is reused.
674
+ It requires no Sass or translation plugin. Keyboard focus changes the existing border and background;
675
+ controls do not use outlines. The
676
+ [locale sandbox](https://orionmarket.place/en/sandbox/appload/nuxt/init/locale)
677
+ previews the same component and provides its source and locale types.
678
+
679
+ ### Themes
680
+
681
+ Define any number of named themes in `app/themes/basklee.ts`. Components inherit
682
+ semantic colors from the active theme. Setup includes the shared
683
+ [theme guide](templates/basklee/THEMES.md) as `basklee/THEMES.md` in the
684
+ customer project; it covers adding themes, selecting the default and applying them.
685
+
686
+ ### Session and CSRF cookies
687
+
688
+ Application Load establishes the guest/customer session and CSRF cookie through HTTP
689
+ `Set-Cookie` headers, not through `page_data.init`. The browser handles the signed
690
+ HttpOnly `sessionid` cookie; never parse, rewrite, log or store its value in Pinia
691
+ or localStorage. The readable `csrftoken` supplies `X-CSRFToken` for later protected
692
+ requests through the same-origin `/api/` gateway with credentials enabled. Read
693
+ the CSRF cookie again for every action because login can rotate it.
694
+
695
+ `useBaskleeApi()` supplies the per-application `BaskleeApi` client used by
696
+ Application Load and browser requests. It resolves later endpoints from
697
+ current discovery, reads CSRF per request and renews a missing token. A
698
+ CSRF rejection (HTTP 419, or HTTP 403 with `page_data.csrf: false`) renews the
699
+ token for the next action and returns the failed request. The customer must
700
+ submit again; the client never repeats a failed request automatically. Components send discovered requests in the browser. Page data
701
+ that the server render needs goes through `useBaskleeServerApi()`, the same
702
+ class with the same transport, usually through `useBaskleeServerData()`.
703
+ The global route middleware passes `to.query.locale` to the first Application
704
+ Load request. Later requests use the selected locale held by the store.
705
+ During SSR the transport sends the incoming cookies plus every cookie the
706
+ backend set earlier in the same render (`app/utils/basklee/serverCookies.ts`),
707
+ and relays each raw response `Set-Cookie` separately to the browser. That
708
+ cookie list belongs to one render and is never shared between visitors.
709
+
710
+ Use `POST /api/csrf_renew` with `{}` to renew CSRF, then re-read the cookie.
711
+ The backend signals CSRF rejection with HTTP `419` from Django views, or with
712
+ HTTP `403` and `page_data.csrf: false` from API endpoints; a `403` without that
713
+ flag may mean permissions or origin rejection. Do not automatically
714
+ replay mutations. After confirmed login/logout, reset and refresh Application Load.
715
+ Those store actions update data; they do not authenticate or delete cookies.
716
+
717
+ HTTP `401` means the request has no signed-in session. When it arrives while
718
+ `store.isAuthenticated` is `true`, the client calls the store's `endSession()`
719
+ once: the profile, wallet, authenticated discovery, cart/wishlist counters and
720
+ account values of known products are removed at once, then Application Load
721
+ reloads for the guest session. The failed request is not repeated and no
722
+ sign-in dialog opens; a guest `401`, `403`, CSRF rejection or network failure
723
+ stays an ordinary request error.
724
+
725
+ See the [cookie lifecycle and browser example](https://orionmarket.place/en/sandbox/appload/nuxt#session-cookies)
726
+ for exact source references and a copyable component.
727
+
728
+ ## Update an existing project
729
+
730
+ After the initial setup, use one command to get the latest package and components:
731
+
732
+ ```bash
733
+ npx basklee-nuxt update
734
+ ```
735
+
736
+ It runs the latest CLI, adds new template files, refreshes unchanged generated
737
+ files, updates the package dependency and runs `npm install` to synchronize the
738
+ lockfile and installed dependencies. Edited files are preserved and listed in the
739
+ output. Review their new versions under `node_modules/basklee-nuxt/templates`
740
+ or `runtime` and merge your changes manually when needed. Removed upstream files
741
+ are retained locally; the updater does not delete customer source.
742
+
743
+ Domain mappings, domain settings and `.env` remain unchanged. The command does
744
+ not deploy your application: restart development, or rebuild and redeploy the
745
+ production frontend after updating.
746
+
747
+ ```bash
748
+ npx basklee-nuxt update --dry-run
749
+ npm run basklee:update
750
+ ```
751
+
752
+ Dry-run downloads the latest CLI into npm's cache to inspect its templates but
753
+ leaves project files and dependencies unchanged. `update --local` applies the
754
+ version of the CLI being executed instead of fetching the latest CLI; it still
755
+ installs project dependencies. Use this only when intentionally selecting a version.
756
+
757
+ For a project on 0.1.2 or older, bootstrap the new command once:
758
+
759
+ ```bash
760
+ npx --yes basklee-nuxt@latest update
761
+ ```
762
+
763
+ Updates require the existing `basklee/settings.json` and `.generated.json`.
764
+ Conflicting untracked files stop the source update before any writes. If dependency
765
+ installation fails after source generation, run `npm install` and retry `update`.
766
+
767
+
768
+ ### Projects made with orionplace-nuxt
769
+
770
+ The package was called `orionplace-nuxt` until November 2026. In such a project
771
+ run the same command:
772
+
773
+ ```bash
774
+ npx basklee-nuxt update
775
+ ```
776
+
777
+ Before the usual update it renames the project's own files: the `orionplace/`
778
+ folders, `Orionplace*` components, types and composables, `--orionplace-*` CSS
779
+ variables, `ORIONPLACE_*` keys in `.env`, the `orionplace:*` scripts and the
780
+ dependency in `package.json`. Files you edited stay edited; every file it changes
781
+ is copied first, at its old path, into `.basklee-backup-<date>/`. Your
782
+ `*.orionplace.app` backend address keeps its name. `--dry-run` lists the
783
+ renames without changing anything. A server set up before the rename keeps its
784
+ `orionplace` service names.
785
+
786
+ ## Representative product actions
787
+
788
+ The Nuxt header forwards cart, wishlist, availability-notification and preorder
789
+ intents. The generated layout binds `useBaskleeProductActions` to the shared API
790
+ client; confirmed responses update the product and `store.counters`. Controls
791
+ stay visible while disabled, and the catalog stays open. At quantity one the
792
+ trash control removes the confirmed cart item. Secondary variants must be
793
+ selected before confirming an addition, subscription or preorder in the picker.
794
+ Guest preorder collects contact details. Wishlist controls require authentication;
795
+ notifications can request sign-in, and subscription requires profile email. The
796
+ generated storefront supplies sign-in and personal details at `/profile`. Failed mutations retain confirmed
797
+ data; a failed follow-up refresh retries only that read. Components previews
798
+ record actions without changing the reader's cart or session.
799
+
800
+ ### Component compositions and source
801
+
802
+ The Components overview renders the maintained Header and StorefrontHome.
803
+ Dashed outlines identify children; child guides retain their real parent context.
804
+ Home links to its categories, banners, events and ProductGroup children.
805
+ ProductGroup links to ProductCard and its parts. Component guides finish with a
806
+ Related pages section: links to the parent composition, related controls and
807
+ Application Load fields, each with a short description. This is the last entry
808
+ in the right-hand outline; parent links are not repeated below the page title.
809
+ Links preserve the selected language and framework. AppLoad selector previews
810
+ remain standalone. Source lists contain the selected `.vue` and its primary
811
+ physical interface when one exists; imports remain supplied by the package.
812
+
813
+ MainSearch owns its input/button styling. Locale and currency `codeOnly`
814
+ controls own their compact layout and hidden accessible labels; Header supplies
815
+ layout and defaults. `BaskleeSelect.compact` defaults to false.
816
+
817
+ Header slots `logo`, `search`, `locale`, `currency`, `account`, `wishlist`, `cart`
818
+ and `catalog` preserve surrounding layout. Logo receives the localized home
819
+ `label`. Search receives `label`, `buttonLabel`, `disabled`; selectors receive
820
+ `label`, `codeOnly: true`, `disabled`; account receives `disabled`; wishlist/cart
821
+ receive `disabled` and `compact: true`; catalog receives no props. Slot replacements
822
+ must bind their own events. Replacing `actions` replaces its account, wishlist and
823
+ cart slots.
824
+ Account's `balance` slot receives `label` and `compact: true` at both wallet
825
+ locations, preserving the surrounding wallet action.
826
+
827
+ ## Storefront home sections
828
+
829
+ `StorefrontHome` follows the header with `MainBanner`, `CategoryGroup`, ordinary
830
+ products, discounts, new products, `EventsBlock` and featured products. Empty sections are
831
+ omitted. Category tiles use public catalog records, localized names and logo
832
+ images. Category count and ordering follow `visual_settings.front_categories_*`:
833
+ `order` sorts public roots by `ordering`, `views` includes public descendants and
834
+ sorts by `c_views`, and `do_not_show` hides the section. Non-shortcut roots are
835
+ preferred; when every public root is a shortcut, all public roots are included.
836
+ Equal values preserve response order; zero count includes all candidates.
837
+
838
+ `store.homeProductSections` derives four independent blocks. Ordinary products
839
+ exclude discounted, new and featured IDs. Discounts use `discount < 1`; New uses
840
+ `flags.flag_is_new`. A product may appear in both Discounts and New. Featured uses
841
+ only `store.featured` and follows events. Empty blocks are hidden, and source
842
+ order is preserved. Each section passes its own `productIds` to the same cards.
843
+
844
+ If AppLoad has no new products, the generated home page uses
845
+ `useBaskleeHomeProducts()` after mounting to call the available `products_search` endpoint with
846
+ `filters: { only_new: true }` and `paginate: { page: 1, pp_items: 20 }`.
847
+ `store.setHomeNewProducts(products, sellers)` stores the confirmed products and IDs.
848
+ A failed request can be retried explicitly. AppLoad refresh/reset clears the
849
+ supplemental IDs and cancels stale results. The home component itself does not
850
+ request products. The [Home guide](https://orionmarket.place/en/sandbox/components/nuxt/home#groups)
851
+ documents the rules and lets readers edit existing products in its preview.
852
+
853
+ `productLimit` defaults to 12 per section. More reveals the rest of the
854
+ loaded section without a request. Refresh and prop changes restore the
855
+ limit. In the Featured section, More is a link to `/featured`: an ordinary
856
+ click emits `selectFeatured` and the generated page opens that route. `ProductGroup.limit` defaults to 0 (all records). Variant and purchase
857
+ controls remain the supplied ProductCard controls. Home forwards their typed
858
+ events and the generated page binds the existing product controllers. Product
859
+ selection opens `/product/<id>` and seller selection opens `/sellers?seller=<id>`.
860
+ Category tiles, catalog actions and linked banners open `/category/<id>`;
861
+ the category view loads products through the discovered `products_search` endpoint.
862
+ Selecting an event with a `promo` opens `EventEnrollmentDialog`; enrollment is
863
+ sent with `profile_event_subscribe` only after its explicit confirmation. Events
864
+ without `promo` do nothing in the generated page. A guest's selection opens the
865
+ sign-in page at once; it returns to `/?event=<id>`, and the home page then opens
866
+ the dialog for that event.
867
+
868
+ Banners and events use `format: 'auto'` by default, which follows the window
869
+ width and picks the mobile, tablet, wide or desktop image. An explicit format
870
+ stays fixed.
871
+ MainBanner includes every image in response order, with manual wraparound arrows
872
+ and no autoplay. A missing format falls back to the first non-empty desktop,
873
+ wide, tablet or mobile set. Language, data and format changes reset the slide.
874
+ A null or omitted `category` renders an inert image with a normal cursor. A
875
+ category ID enables the pointer cursor and emits the banner through `select`;
876
+ the host handles the category navigation. Arrow controls only change slides.
877
+ EventsBlock uses the same full-width image frame as MainBanner and keeps the
878
+ image proportions inside its reserved height. One event is visible at a time, in response
879
+ order. Multiple events show a counter and manual wraparound arrows; there is no
880
+ autoplay. Language, format and event-data changes reset to the first event. Arrow
881
+ buttons only change the visible event; clicking its image emits that event object.
882
+ Event images fall back through desktop, wide, tablet, mobile and account.
883
+ Other languages and modal-only events are not substituted into layout sections.
884
+
885
+ Home slots are `banners`, `categories`, `products` and `events`. The products
886
+ slot receives `section`, `productIds`, `collection`, `disabled` and the current
887
+ `limit`; preserve `productIds` to retain each section’s grouping. The other slots
888
+ receive no props. Slots render only when their section has data. Replacement
889
+ content owns its event bindings. Source and child guides are under
890
+ [Storefront home](https://orionmarket.place/en/sandbox/components/nuxt/home),
891
+ [Categories](https://orionmarket.place/en/sandbox/components/nuxt/categories),
892
+ [Banners](https://orionmarket.place/en/sandbox/components/nuxt/banners) and
893
+ [Events](https://orionmarket.place/en/sandbox/components/nuxt/events), with matching
894
+ Russian routes. They show the physical components in their parent with dashed
895
+ highlights and link back to Application Load.
896
+
897
+ ### Visual settings, search filters and blog previews
898
+
899
+ [Visual settings](https://orionmarket.place/en/sandbox/appload/nuxt/init/visual_settings)
900
+ are consumed by the supplied Nuxt components:
901
+
902
+ - [CatalogHeader](https://orionmarket.place/en/sandbox/components/nuxt/catalog)
903
+ uses `menu_image` for shortcut thumbnails and `catalog_menu_image` inside its catalog panel.
904
+ - [ProductGroup](https://orionmarket.place/en/sandbox/components/nuxt/product-group)
905
+ becomes a swipeable row on a narrow screen. `mobile_show_arrows` controls its previous/next
906
+ buttons when the row overflows. Desktop grids and promotion carousels are unaffected.
907
+ Optional `productIds` resolves an ordered set through `productStore.getProduct`; an omitted
908
+ value uses the AppLoad collection, and an empty array displays no cards.
909
+ - [SearchFilters](https://orionmarket.place/en/sandbox/components/nuxt/search-filters)
910
+ uses `show_filter_counters` for counts supplied in `selects` and `variants`.
911
+ `browseStore.preserveSearchFacets(page_data)` retains the initial options and price
912
+ bounds from `products_search`; `browseStore.setSearchFacets` explicitly replaces them
913
+ for a new scope or editor. Selection updates `browseStore.searchFilters` before
914
+ `change` emits copied ID arrays and scalar fields. Subsequent narrowed responses
915
+ update products, leaving the original selectors available. `disabled` prevents
916
+ selection; there are no slots.
917
+ - `single_seller_mode` hides
918
+ [ProductCardSeller](https://orionmarket.place/en/sandbox/components/nuxt/productCardSeller)
919
+ and seller filters; manufacturer options remain visible.
920
+ - [BlogPostGroup](https://orionmarket.place/en/sandbox/components/nuxt/blog) uses
921
+ `blog_view_type`: `EBlogViewType.PORTRAIT` is a grid, `EBlogViewType.LIST` is a list,
922
+ and `EBlogViewType.CUSTOM` starts with a lead card, followed by groups of up to
923
+ three posts. Unknown values fall back to portrait; numeric strings are accepted.
924
+ `store.setBlogPosts(page_data.posts.data)` supplies previews from `blog_posts_get`.
925
+ [BlogPostCard](https://orionmarket.place/en/sandbox/components/nuxt/blog-post) takes
926
+ `postId` and `layout` (portrait by default, list or hero), reads the post from
927
+ the store, and shows its localized title, plain-text preview, first ordered image
928
+ and reading time. The group forwards its `select` event with `IBlogPostPreview`.
929
+ The application opens the article; neither component loads content or changes access.
930
+ The group has no props; neither component has slots. Empty collections show an empty state.
931
+
932
+ AppLoad refresh and reset clear search facets, selected filters and blog posts.
933
+ The generated `/browse?q=...` and `/browse?view=blog` pages load public responses
934
+ through endpoint discovery, handle pending/error/retry states and pagination.
935
+ Search requires at least three characters. Search connects the shared product action and variant handlers; article and
936
+ product-detail navigation remain host responsibilities.
937
+ The component guides include editable settings, real components and their maintained
938
+ source/downloads in English and Russian. Blog previews start empty when the backend
939
+ has no posts; the JSON editor accepts `IBlogPostPreview[]`.
940
+
941
+ ## Category page
942
+
943
+ `app/components/basklee/categories/StorefrontCategory.vue` renders a public
944
+ category resolved by `categoryId`, its breadcrumb path, immediate public children,
945
+ search filters and the supplied result IDs. Names and plain-text descriptions use
946
+ localized catalog fields; a missing/private category shows the not-found state.
947
+
948
+ `app/pages/category/[id].vue` binds it to `/category/:id`. Home tiles, catalog
949
+ category actions and linked banners open that route. The shared
950
+ `app/layouts/default.vue` retains the header and purchase feedback across routes;
951
+ `useBaskleeStorefront()` supplies its product-action and variant controllers.
952
+ A missing/private category opens the storefront error page (`app/error.vue`)
953
+ with HTTP 404; a failed Application Load opens it with HTTP 503 and Retry.
954
+
955
+ The category page loads the first result page during the server render with
956
+ `loadProductSearchSnapshot()` and passes it to `useBaskleeCategoryProducts()`,
957
+ which shows it without another request. Later pages and filters call
958
+ `products_search` in the browser, with `filters.categories` fixed to the
959
+ selected category and its public descendants. Category changes, filter reset and AppLoad refresh
960
+ clear filters and restart page 1. Filter changes also restart page 1. Defined
961
+ pagination fields merge with the previous result; omitted metadata is retained.
962
+ Pagination scrolls to the top. Requests are cancelled on replacement/unmount, and
963
+ late responses cannot replace current results. Errors expose an explicit retry.
964
+ Search products are cached with `setProduct`; AppLoad collections stay unchanged.
965
+
966
+ The component accepts `categoryId`, `productIds` (empty by default), `page` (1),
967
+ optional `pages` and `total`, plus `hasNext`, `pending`, `failed`, `loaded` and
968
+ `productActionsDisabled` (all false by default). It does not issue requests or
969
+ replace missing search results with home products. It emits `selectHome`,
970
+ `selectCategory`, `changeFilters`, `clearFilters`, `changePage`, `retry` and the
971
+ same typed product events as the home composition. There are no slots.
972
+
973
+ `CategoryGroup.parentId` shows immediate public children in catalog order;
974
+ omitting it preserves the home category settings. `SearchFilters.hideCategories`
975
+ is false by default and hides the category facet for a fixed category scope.
976
+ `ProductGroup.layout` defaults to `responsive` (desktop grid/mobile swipe row).
977
+ The category uses `grid`, which stays a vertical grid on a narrow screen and
978
+ shows no horizontal scroll arrows. Filters collapse behind a button in a narrow
979
+ result container; category navigation remains available while products load.
980
+
981
+ The [Category page guide](https://orionmarket.place/en/sandbox/components/nuxt/category-page)
982
+ contains the physical composition, dashed child boundaries, local preview
983
+ controls, field/input/event contracts and exact component/interface downloads.
984
+ The matching Russian guide uses `/ru/sandbox/components/nuxt/category-page`.
985
+
986
+
987
+ ## Search, logout and preorder flows
988
+
989
+ The [search results component](https://orionmarket.place/en/sandbox/components/nuxt/search-results)
990
+ serves `/browse?q=...` and the category result area. It renders initial loading
991
+ placeholders, a recoverable empty result, error/retry, totals and pagination.
992
+ Changing the URL query starts a fresh search, including changes on an already
993
+ open browse page. Product actions and variant replacement use the same handlers
994
+ as home and category cards. Search requires at least three characters. The blog
995
+ alias `/browse?view=blog` redirects to `/journal`.
996
+
997
+ The generated `/featured` page renders the same results with
998
+ `useBaskleeFeaturedProducts()` from
999
+ `app/composables/useBaskleeFeaturedProducts.ts`. It adds the fixed
1000
+ `only_featured: true` filter to every `products_search` request. The filter
1001
+ panel does not show it; selected filters narrow the featured products, while
1002
+ Clear and pagination keep it. The backend returns featured products only to a
1003
+ signed-in customer, so a guest sees a short note that recommendations appear
1004
+ after sign-in; the header's Login returns to `/featured`.
1005
+ `ProductSearchResults.emptyDescription` replaces the
1006
+ empty-result hint on that page. Application Load `init.featured` remains the
1007
+ short home selection; the page loads the full list a page at a time.
1008
+
1009
+ `useBaskleeProductSearch()` in `app/composables/useBaskleeProductSearch.ts`
1010
+ calls `products_search`. Components read each domain through its store hook:
1011
+ `useBaskleeSelectionsStore()`, `useBaskleeCatalogStore()`,
1012
+ `useBaskleeProductsStore()` or `useBaskleeBrowseStore()`.
1013
+ `app/stores/basklee.ts` owns Application Load and session changes and retains
1014
+ a compatibility API for existing integrations. Smaller Pinia stores own the data: `baskleeSelections.ts`
1015
+ (language, currency and units), `baskleeCatalog.ts` (catalog and tariffs),
1016
+ `baskleeProducts.ts` (products, variants and counters), and
1017
+ `baskleeBrowse.ts` (search and journal state). Each file is under
1018
+ `app/stores/` in the generated project. The stores share the current Pinia
1019
+ instance and preview scope, so separate server requests and documentation
1020
+ previews have separate data. Application Load refresh clears dependent results
1021
+ while preserving available selections; reset clears them all.
1022
+
1023
+ The search flow fills these values in the browse and product stores:
1024
+
1025
+ | Store value | How it is filled |
1026
+ | --- | --- |
1027
+ | `browseStore.searchFacets` | `preserveSearchFacets()` retains `page_data.selects` and `page_data.variants` from a successful search response. |
1028
+ | `browseStore.searchFilters` | `SearchFilters` writes selected conditions before emitting `change`. |
1029
+ | `productStore.productUpdates.products` | `setProduct()` saves each item from `page_data.products.data` by ID. Cards read it through `getProduct()`. |
1030
+
1031
+ The pages pass result IDs, pagination and loading state from the composable to
1032
+ `ProductSearchResults` as inputs.
1033
+
1034
+ The optional second argument of `useBaskleeProductSearch()` accepts a
1035
+ `request(body, signal)` callback for an existing API client. It must return the
1036
+ validated `products_search` page data and reject failed requests. Without it,
1037
+ the supplied API client resolves `products_search` from Application Load. Set
1038
+ `scrollToTop: false` when the results are a section further down the page, then
1039
+ call `scrollToPaginatedList()` from `app/utils/basklee/paginationScroll.ts`
1040
+ with that section after a page change. The seller page does this for its
1041
+ products, so pagination returns to the products heading.
1042
+
1043
+ `useBaskleeProductSearch` preserves the first confirmed selector set for the
1044
+ current query/category. Further filters, empty results and pagination do not
1045
+ replace options, colors, counts or price bounds with narrowed responses. New
1046
+ queries, categories and AppLoad refreshes reset that scope; Clear keeps
1047
+ its original selectors. Superseded requests are cancelled and ignored.
1048
+
1049
+ Category, search, featured and seller lists keep their result page and
1050
+ filters in the URL as `?page=2&filters={...}` (JSON of the filter selection).
1051
+ The composable replaces the current history entry on each change, so the
1052
+ browser's Back button from a product, and a reload, open the same list, while
1053
+ Back from the list still leaves it in one step. Page loads read the same
1054
+ query through `productListLocationFromQuery()` in
1055
+ `app/utils/basklee/productListLocation.ts`, which accepts only plain filter
1056
+ values within fixed limits. A list opened this way on a later page or with
1057
+ filters also requests the unfiltered first page once, so the filter panel
1058
+ keeps every choice. Pass `rememberInAddress: false` to keep a list out of the
1059
+ URL. The React and Svelte packages do the same in `useProductSearch()` and
1060
+ `useBaskleeProductSearch()`.
1061
+
1062
+ `SearchFilters` supplies cumulative ID arrays and scalar price, discount and
1063
+ rating fields. Currency-keyed `selects.measures.min_price` and `max_price` supply
1064
+ the price range; Apply or a committed slider change emits `price_from`,
1065
+ `price_to` and `price_currency`. Selecting the full range removes the price
1066
+ constraint. Currency changes clear only price constraints. Color values render
1067
+ beside variant labels. Minimum discount uses `price_discount_from`; product/seller
1068
+ ratings and review availability use the corresponding API filters. Original
1069
+ counts describe the initial scope, not the narrowed result. Product grids use
1070
+ fewer columns as the container narrows. Mobile home
1071
+ rows retain their existing swipe behavior.
1072
+
1073
+ The [preorder dialog](https://orionmarket.place/en/sandbox/components/nuxt/preorder-dialog)
1074
+ is `app/components/basklee/products/ProductPreorderDialog.vue`, nested under
1075
+ Product actions in Components. The default layout opens it for the card's
1076
+ `preorder` event. It shows the product and price; guests provide email or phone.
1077
+ `submit` emits `{ product, email, phone }`, with trimmed contact strings. The host
1078
+ checks eligibility, calls `preorders_create`, and closes only after success.
1079
+ Pending requests disable resubmission and dismissal. Errors remain by the form.
1080
+ `modal` defaults to true; false renders the same dialog within its container.
1081
+ Both storefront and documentation product previews use this physical component.
1082
+
1083
+ The [sign-out component](https://orionmarket.place/en/sandbox/components/nuxt/logout)
1084
+ is `app/components/basklee/account/StorefrontLogout.vue`, under Profile menu.
1085
+ The default layout opens `/logout` after `signOut`. The route shows progress,
1086
+ uses `profile_logout` through the shared API client after mounting, refreshes
1087
+ AppLoad after confirmation and replaces the route with the localized home page.
1088
+ Failed logout leaves confirmed account data intact. Failed guest initialization
1089
+ after successful logout retries only AppLoad, without repeating the mutation.
1090
+ The presentation component emits `retry` and `selectHome`; its documentation
1091
+ preview never signs out the reader.
1092
+
1093
+ These components' Russian guides use the matching `/ru/sandbox/components/nuxt/`
1094
+ URLs. They include real composition previews, dashed child boundaries, state
1095
+ controls, event contracts, related references and physical source downloads.
1096
+
1097
+ ## Personal profile, footer and stable layout
1098
+
1099
+ The supplied Nuxt storefront includes `/profile` with personal details, avatar,
1100
+ verified email, optional email-notification and email-language preferences, password management,
1101
+ phone sign-in/registration and navigation to `/logout`. Account requests use the
1102
+ shared named API client, which sends the selected storefront language as `lang`;
1103
+ registration saves it as the account's initial email-notification language.
1104
+ Avatar upload uses multipart. Data changes only after confirmation. See the
1105
+ [profile guide](https://orionmarket.place/en/sandbox/components/nuxt/profile)
1106
+ and its [Russian version](https://orionmarket.place/ru/sandbox/components/nuxt/profile).
1107
+
1108
+ The sign-in and registration form (`ProfileSignIn`) appears only on the
1109
+ `/profile` page. Header Login links there. A guest's click on an action that
1110
+ needs an account (a review, reaction or reply, a blog comment, the wishlist
1111
+ heart, an availability notification, Checkout in the cart, a plan's Subscribe
1112
+ or Try, an event) opens `/profile?locale=<locale>&redirect=<current page>` at
1113
+ once through `useBaskleeSignIn().requireSignIn()` in
1114
+ `app/composables/useBaskleeSignIn.ts`, with no separate sign-in notice.
1115
+ Background requests and an ended session never navigate.
1116
+ Account pages (`/orders`, `/wallet`, `/addresses`, `/subscriptions`, `/tickets`,
1117
+ `/activity`, `/wishlist`) declare the `basklee-account` route middleware in
1118
+ `app/middleware/basklee-account.ts`: after Application Load confirms a guest
1119
+ session, it replaces the page with that sign-in address. A pending or failed
1120
+ Application Load keeps the page, and no dialog opens automatically.
1121
+
1122
+ After the final sign-in step, a ring spinner and a moving progress line replace
1123
+ the form while Application Load refreshes; the top loading bar runs and screen
1124
+ readers receive “Signing in…”. With reduced motion, both indicators stay still.
1125
+ The profile page then opens the `redirect` page, or the home page when it is
1126
+ missing, and keeps the indicator until that page opens.
1127
+ `app/utils/basklee/signInReturn.ts` accepts only paths on the same storefront
1128
+ that start with a single `/`; `/profile`, `/logout` and external addresses open
1129
+ the home page instead. If the refresh fails, the form shows an error with Retry,
1130
+ which refreshes Application Load without resending credentials.
1131
+ Returned field errors stay beside their inputs and `form_errors.__all__` stays
1132
+ in the general error notice, including after a development module reload. The
1133
+ generic retry message appears only when no structured API error reaches the
1134
+ form.
1135
+
1136
+ Messages share one square pattern from `components/basklee/shared/features.css`:
1137
+ `op-notice op-notice-error` uses the danger colors, an error icon and
1138
+ `role="alert"`; `op-notice op-notice-success` uses the success colors, a check
1139
+ icon and `role="status"`; `op-notice op-notice-attention` uses the attention
1140
+ colors and a warning icon for a step still to complete, such as choosing a
1141
+ delivery method; plain `op-notice` is neutral information. Pending work shows
1142
+ the top loading bar from `app/app.vue` and a visually hidden `role="status"`
1143
+ message instead of a status strip. Field errors stay as red text beside their inputs. Required fields show a
1144
+ red `*` directly after the label text.
1145
+
1146
+ The default layout renders the [footer](https://orionmarket.place/en/sandbox/components/nuxt/footer)
1147
+ with real store categories, home-section anchors, profile/journal navigation,
1148
+ a contact-page link, a `/privacy` link and social links. On `/contact`, `StorefrontContact` places
1149
+ company details (address, `tel:` phone link, registration numbers with copy
1150
+ buttons and social links) in a column beside the bordered message-form panel;
1151
+ the columns stack on narrow screens and empty details are hidden. `/privacy`
1152
+ shows the store's privacy policy (`StorefrontPrivacy`, texts in
1153
+ `app/utils/basklee/privacyLabels.ts`) with the operator's details; on the
1154
+ website the layout's `CookieNotice` links its `#cookies` section until the
1155
+ visitor dismisses it.
1156
+ The home banner spans the available viewport
1157
+ width without a frame. Its media area keeps the same proportions at every width; the image fills the
1158
+ area without distortion and crops its edges when needed. Event media keeps its
1159
+ own reserved proportions, which differ on a narrow screen.
1160
+
1161
+ Search/category filtering keeps current cards during requests and reserves the
1162
+ results area's height when a response is shorter. Product variant replacement
1163
+ retains card height. Width changes release these reserves for responsive layout;
1164
+ a new search scope resets its reserve. Stable scrollbar space avoids horizontal
1165
+ shifts. Initial search loading uses 12 skeletons. The wishlist heart appears
1166
+ for every visitor, including compact catalog representatives; a guest's click
1167
+ opens the sign-in page.
1168
+
1169
+ The React and Svelte packages supply the corresponding storefront and account UI.
1170
+
1171
+ ## Customer API storefront sections
1172
+
1173
+ The Nuxt starter includes native product details/reviews, cart and checkout,
1174
+ orders and downloads, support conversations, account addresses, wallet,
1175
+ search history, sign-in history, promotion codes, wishlist/availability alerts,
1176
+ journal/comments, contact form, email unsubscribe, event enrollment and
1177
+ manufacturer/seller/store/catalog directories. A seller page shows the seller's
1178
+ photos, products and the reviews of all their products. `/tariffs` lists subscription
1179
+ plans with their periods, trials, explained plan modules and limits, and a
1180
+ chooser for the plans that offer more than one option, and
1181
+ `/tariffs?ids=3,7` narrows the page to the listed plans, as a journal article
1182
+ that needs a plan links to it. `/tariffs/:slug/:id` shows one plan with its
1183
+ media, description, features and purchase choices. Guests sign in
1184
+ through links that return to the chosen plan; signed-in customers confirm the
1185
+ purchase in a dialog that links to `/subscriptions` afterwards. The account shows
1186
+ purchased subscriptions and disabling automatic renewal. Choosing a new renewal period is not yet supplied.
1187
+
1188
+ See [`templates/basklee/COMPONENTS.md`](templates/basklee/COMPONENTS.md)
1189
+ for the maintained route/component/endpoint table. Components use the named
1190
+ API client, confirmed mutation results and English/Russian/Spanish labels. Customer
1191
+ source bundles include transitive dependencies and installation guidance.