basklee-nuxt 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -54
- package/bin/basklee-nuxt.mjs +4 -4
- package/package.json +2 -2
- package/src/install.mjs +6 -9
- package/src/project-readme.mjs +25 -25
- package/src/update.mjs +1 -19
- package/templates/app/components/basklee/account/AccountActivity.README.md +2 -2
- package/templates/app/components/basklee/account/AccountPromocodes.README.md +2 -2
- package/templates/app/components/basklee/account/AccountSection.README.md +2 -2
- package/templates/app/components/basklee/account/SignInHistory.README.md +2 -2
- package/templates/app/components/basklee/account/StorefrontLogout.README.md +2 -2
- package/templates/app/components/basklee/account/StorefrontProfile.README.md +10 -10
- package/templates/app/components/basklee/address/AddressForm.README.md +2 -2
- package/templates/app/components/basklee/address/StorefrontAddresses.README.md +2 -2
- package/templates/app/components/basklee/blog/BlogArticle.README.md +2 -2
- package/templates/app/components/basklee/blog/BlogCommentForm.README.md +2 -2
- package/templates/app/components/basklee/blog/BlogComments.README.md +2 -2
- package/templates/app/components/basklee/blog/StorefrontJournal.README.md +2 -2
- package/templates/app/components/basklee/cart/CartCheckoutDetails.README.md +2 -2
- package/templates/app/components/basklee/cart/CartDeliverySelector.README.md +3 -3
- package/templates/app/components/basklee/cart/CartItemOptions.README.md +3 -3
- package/templates/app/components/basklee/cart/CartLineItem.README.md +3 -3
- package/templates/app/components/basklee/cart/CartPreview.README.md +2 -2
- package/templates/app/components/basklee/cart/DeliveryMap.README.md +2 -2
- package/templates/app/components/basklee/cart/StorefrontCart.README.md +2 -2
- package/templates/app/components/basklee/catalog/StorefrontCatalog.README.md +2 -2
- package/templates/app/components/basklee/categories/StorefrontCategory.README.md +2 -2
- package/templates/app/components/basklee/contact/AboutPage.README.md +2 -2
- package/templates/app/components/basklee/contact/ContactForm.README.md +2 -2
- package/templates/app/components/basklee/contact/EmailUnsubscribe.README.md +2 -2
- package/templates/app/components/basklee/contact/StorefrontContact.README.md +2 -2
- package/templates/app/components/basklee/events/EventEnrollmentDialog.README.md +2 -2
- package/templates/app/components/basklee/legal/CookieNotice.README.md +2 -2
- package/templates/app/components/basklee/legal/StorefrontPrivacy.README.md +2 -2
- package/templates/app/components/basklee/manufacturers/ManufacturerIndex.README.md +2 -2
- package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.README.md +2 -2
- package/templates/app/components/basklee/orders/OrderDetails.README.md +2 -2
- package/templates/app/components/basklee/orders/OrderPaymentForm.README.md +3 -3
- package/templates/app/components/basklee/orders/StorefrontOrders.README.md +2 -2
- package/templates/app/components/basklee/payments/PaymentPanel.README.md +3 -3
- package/templates/app/components/basklee/products/ProductCard.README.md +2 -2
- package/templates/app/components/basklee/products/ProductCardActions.README.md +2 -2
- package/templates/app/components/basklee/products/ProductPreorderDialog.README.md +2 -2
- package/templates/app/components/basklee/products/ProductReviewForm.README.md +2 -2
- package/templates/app/components/basklee/products/ProductReviewGallery.README.md +2 -2
- package/templates/app/components/basklee/products/ProductReviewImageViewer.README.md +2 -2
- package/templates/app/components/basklee/products/ProductReviews.README.md +2 -2
- package/templates/app/components/basklee/products/ProductSpecificationsDialog.README.md +2 -2
- package/templates/app/components/basklee/products/StorefrontProduct.README.md +2 -2
- package/templates/app/components/basklee/products/StorefrontWishlist.README.md +2 -2
- package/templates/app/components/basklee/promo/PromoProducts.README.md +2 -2
- package/templates/app/components/basklee/search/ProductSearchResults.README.md +2 -2
- package/templates/app/components/basklee/sellers/SellerFilters.README.md +2 -2
- package/templates/app/components/basklee/sellers/SellerPhotoGallery.README.md +2 -2
- package/templates/app/components/basklee/sellers/SellerSummary.README.md +2 -2
- package/templates/app/components/basklee/sellers/StorefrontSellers.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleeAvatar.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleeEmptyState.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleeInfoHint.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleePasswordInput.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleeSearchSelect.README.md +2 -2
- package/templates/app/components/basklee/shared/BaskleeSelect.README.md +2 -2
- package/templates/app/components/basklee/shared/StorefrontErrorPage.README.md +2 -2
- package/templates/app/components/basklee/shared/StorefrontPagination.README.md +2 -2
- package/templates/app/components/basklee/storefront/StorefrontAccount.README.md +1 -1
- package/templates/app/components/basklee/storefront/StorefrontFooter.README.md +4 -4
- package/templates/app/components/basklee/storefront/StorefrontHome.README.md +5 -5
- package/templates/app/components/basklee/stores/StorefrontStores.README.md +2 -2
- package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.README.md +3 -3
- package/templates/app/components/basklee/subscriptions/StorefrontTariff.README.md +2 -2
- package/templates/app/components/basklee/subscriptions/StorefrontTariffs.README.md +2 -2
- package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.README.md +4 -4
- package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.README.md +5 -5
- package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.README.md +4 -4
- package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.README.md +5 -5
- package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md +5 -5
- package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md +5 -5
- package/templates/app/components/basklee/support/StorefrontSupport.README.md +2 -2
- package/templates/app/components/basklee/support/TicketConversation.README.md +2 -2
- package/templates/app/components/basklee/support/TicketImage.README.md +2 -2
- package/templates/app/components/basklee/support/TicketItemCard.README.md +2 -2
- package/templates/app/components/basklee/support/TicketMessageForm.README.md +2 -2
- package/templates/app/components/basklee/support/TicketSubscriptionCard.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCard.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCardDescription.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCardFeatures.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCardImage.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCardPrices.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCardTitle.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffCards.README.md +2 -2
- package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.README.md +2 -2
- package/templates/app/components/basklee/wallet/StorefrontWallet.README.md +3 -3
- package/templates/app/components/basklee/wallet/WalletTopUpForm.README.md +2 -2
- package/templates/basklee/COMPONENTS.md +58 -58
- package/src/migrate.mjs +0 -124
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ dialog, opens the previous page, or leaves the app on the first page. With
|
|
|
39
39
|
`@capacitor/filesystem` and `@capacitor/share`, a purchased file is saved in
|
|
40
40
|
the app and opened from the Android share sheet. Without
|
|
41
41
|
the variable nothing changes. Setup, build and release steps:
|
|
42
|
-
[Android app guide](https://
|
|
42
|
+
[Android app guide](https://basklee.com/en/sandbox/android-app).
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
45
|
BASKLEE_APP_ORIGIN=https://shop.example.com npx nuxt generate
|
|
@@ -60,7 +60,7 @@ page and add secondary images after hover or keyboard focus.
|
|
|
60
60
|
## Quick start from zero
|
|
61
61
|
|
|
62
62
|
Your personal backend domain is already provided in your account at
|
|
63
|
-
[
|
|
63
|
+
[basklee.com](https://basklee.com). You can change it there.
|
|
64
64
|
Replace `your-project.orionplace.app` below with that domain and
|
|
65
65
|
`shop.example.com` with the public domain of your own storefront.
|
|
66
66
|
With Node.js 22.12+ and npm installed, run this from the parent folder;
|
|
@@ -356,10 +356,10 @@ storefront on your server; see [Install on your server](#install-on-your-server)
|
|
|
356
356
|
|
|
357
357
|
Prepare a Linux server once with the Basklee server script: it installs
|
|
358
358
|
Node.js, nginx and certbot and adds the `basklee` command
|
|
359
|
-
([server guide](https://
|
|
359
|
+
([server guide](https://basklee.com/en/sandbox/install)).
|
|
360
360
|
|
|
361
361
|
```bash
|
|
362
|
-
curl -fsSLo basklee.sh https://
|
|
362
|
+
curl -fsSLo basklee.sh https://basklee.com/downloads/basklee.sh
|
|
363
363
|
sudo sh basklee.sh setup
|
|
364
364
|
```
|
|
365
365
|
|
|
@@ -380,7 +380,7 @@ certificate. Run it again after code or package updates; the service keeps its
|
|
|
380
380
|
port. Options: `--name <service>`, `--port <port>`, `--user <user>`,
|
|
381
381
|
`--no-build` (install the build already in the folder), `--no-domains`, `--yes`,
|
|
382
382
|
`--dry-run`. Full guide:
|
|
383
|
-
[Install a storefront](https://
|
|
383
|
+
[Install a storefront](https://basklee.com/en/sandbox/install/storefront).
|
|
384
384
|
|
|
385
385
|
### Manage the service
|
|
386
386
|
|
|
@@ -515,10 +515,10 @@ List pages (journal, categories, stores) link their previous and next pages as r
|
|
|
515
515
|
|
|
516
516
|
## Documentation
|
|
517
517
|
|
|
518
|
-
- [Create a Nuxt frontend](https://
|
|
519
|
-
- [Install the Nuxt package and connect your personal backend](https://
|
|
520
|
-
- [Marketplace API documentation](https://
|
|
521
|
-
- [Android app for your Nuxt storefront](https://
|
|
518
|
+
- [Create a Nuxt frontend](https://basklee.com/en/sandbox/new-project/nuxt)
|
|
519
|
+
- [Install the Nuxt package and connect your personal backend](https://basklee.com/en/sandbox/new-project/nuxt)
|
|
520
|
+
- [Marketplace API documentation](https://basklee.com/en/sandbox/)
|
|
521
|
+
- [Android app for your Nuxt storefront](https://basklee.com/en/sandbox/android-app)
|
|
522
522
|
|
|
523
523
|
## Development
|
|
524
524
|
|
|
@@ -559,7 +559,7 @@ Catalog, other statuses show “Something went wrong” with Retry and Home. Pag
|
|
|
559
559
|
use `noindex, nofollow`; customers never see error messages or stack traces.
|
|
560
560
|
The not-found page keeps the header and footer when Application Load succeeded;
|
|
561
561
|
otherwise, and for failures, it renders without the layout. See the
|
|
562
|
-
[error page guide](https://
|
|
562
|
+
[error page guide](https://basklee.com/en/sandbox/components/nuxt/error-page).
|
|
563
563
|
`/product/:id`, `/tariffs/:slug/:id`, `/category/:id`, `/browse`, `/featured`,
|
|
564
564
|
`/journal` and `/journal/:id` load their first data while the server renders
|
|
565
565
|
the page, with
|
|
@@ -592,7 +592,7 @@ wallet balance. Its `signIn`, `signOut`, `selectProfile` and `selectWallet` even
|
|
|
592
592
|
by the host; the generated layout opens `/profile` for sign-in (with the current
|
|
593
593
|
page in `redirect`, where the user returns after sign-in) and profile
|
|
594
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://
|
|
595
|
+
submit credentials or create payments. Its [EN/RU preview and source downloads](https://basklee.com/en/sandbox/appload/nuxt/init/is_authenticated)
|
|
596
596
|
share the maintained package component. `StorefrontWishlistButton` and
|
|
597
597
|
`StorefrontCartButton` display counts from `store.counters`. Their clicks emit
|
|
598
598
|
`selectWishlist` and `selectCart` through the header without changing data;
|
|
@@ -624,10 +624,10 @@ index beside the journal. The page renders `StorefrontManufacturers`, which load
|
|
|
624
624
|
the index itself. Letter and manufacturer selections are `ManufacturerIndex`
|
|
625
625
|
events; `StorefrontManufacturers` handles them by loading that letter's or that
|
|
626
626
|
manufacturer's records through `manufactures_manufactures_get`. See the
|
|
627
|
-
[component reference](https://
|
|
627
|
+
[component reference](https://basklee.com/en/sandbox/components/nuxt/manufacturer-index)
|
|
628
628
|
for its contract, live preview and source downloads.
|
|
629
629
|
|
|
630
|
-
The website [Components section](https://
|
|
630
|
+
The website [Components section](https://basklee.com/en/sandbox/components/nuxt)
|
|
631
631
|
sits beside Application Load and documents Header with its child components,
|
|
632
632
|
plus ProductGroup, ProductCard and its parts. Both English and Russian guides provide live
|
|
633
633
|
previews, contracts and physical source downloads.
|
|
@@ -638,7 +638,7 @@ initialization field to its consumers. Configuration, session flags and shared
|
|
|
638
638
|
counters have data references with links to the features that use them.
|
|
639
639
|
The catalog is also installed as `basklee/COMPONENTS.md`.
|
|
640
640
|
|
|
641
|
-
The [Application Load sandbox](https://
|
|
641
|
+
The [Application Load sandbox](https://basklee.com/en/sandbox/appload/nuxt) renders
|
|
642
642
|
these physical components and lets you edit their input locally. Component
|
|
643
643
|
selections emit events; account, cart and subscription requests remain the host
|
|
644
644
|
application's responsibility.
|
|
@@ -673,7 +673,7 @@ It includes theme variables and utilities without a global CSS reset, preserving
|
|
|
673
673
|
your application's base styles. An existing Tailwind Vite plugin is reused.
|
|
674
674
|
It requires no Sass or translation plugin. Keyboard focus changes the existing border and background;
|
|
675
675
|
controls do not use outlines. The
|
|
676
|
-
[locale sandbox](https://
|
|
676
|
+
[locale sandbox](https://basklee.com/en/sandbox/appload/nuxt/init/locale)
|
|
677
677
|
previews the same component and provides its source and locale types.
|
|
678
678
|
|
|
679
679
|
### Themes
|
|
@@ -722,7 +722,7 @@ reloads for the guest session. The failed request is not repeated and no
|
|
|
722
722
|
sign-in dialog opens; a guest `401`, `403`, CSRF rejection or network failure
|
|
723
723
|
stays an ordinary request error.
|
|
724
724
|
|
|
725
|
-
See the [cookie lifecycle and browser example](https://
|
|
725
|
+
See the [cookie lifecycle and browser example](https://basklee.com/en/sandbox/appload/nuxt#session-cookies)
|
|
726
726
|
for exact source references and a copyable component.
|
|
727
727
|
|
|
728
728
|
## Update an existing project
|
|
@@ -764,25 +764,6 @@ Updates require the existing `basklee/settings.json` and `.generated.json`.
|
|
|
764
764
|
Conflicting untracked files stop the source update before any writes. If dependency
|
|
765
765
|
installation fails after source generation, run `npm install` and retry `update`.
|
|
766
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
767
|
## Representative product actions
|
|
787
768
|
|
|
788
769
|
The Nuxt header forwards cart, wishlist, availability-notification and preorder
|
|
@@ -847,7 +828,7 @@ If AppLoad has no new products, the generated home page uses
|
|
|
847
828
|
`store.setHomeNewProducts(products, sellers)` stores the confirmed products and IDs.
|
|
848
829
|
A failed request can be retried explicitly. AppLoad refresh/reset clears the
|
|
849
830
|
supplemental IDs and cancels stale results. The home component itself does not
|
|
850
|
-
request products. The [Home guide](https://
|
|
831
|
+
request products. The [Home guide](https://basklee.com/en/sandbox/components/nuxt/home#groups)
|
|
851
832
|
documents the rules and lets readers edit existing products in its preview.
|
|
852
833
|
|
|
853
834
|
`productLimit` defaults to 12 per section. More reveals the rest of the
|
|
@@ -887,26 +868,26 @@ slot receives `section`, `productIds`, `collection`, `disabled` and the current
|
|
|
887
868
|
`limit`; preserve `productIds` to retain each section’s grouping. The other slots
|
|
888
869
|
receive no props. Slots render only when their section has data. Replacement
|
|
889
870
|
content owns its event bindings. Source and child guides are under
|
|
890
|
-
[Storefront home](https://
|
|
891
|
-
[Categories](https://
|
|
892
|
-
[Banners](https://
|
|
893
|
-
[Events](https://
|
|
871
|
+
[Storefront home](https://basklee.com/en/sandbox/components/nuxt/home),
|
|
872
|
+
[Categories](https://basklee.com/en/sandbox/components/nuxt/categories),
|
|
873
|
+
[Banners](https://basklee.com/en/sandbox/components/nuxt/banners) and
|
|
874
|
+
[Events](https://basklee.com/en/sandbox/components/nuxt/events), with matching
|
|
894
875
|
Russian routes. They show the physical components in their parent with dashed
|
|
895
876
|
highlights and link back to Application Load.
|
|
896
877
|
|
|
897
878
|
### Visual settings, search filters and blog previews
|
|
898
879
|
|
|
899
|
-
[Visual settings](https://
|
|
880
|
+
[Visual settings](https://basklee.com/en/sandbox/appload/nuxt/init/visual_settings)
|
|
900
881
|
are consumed by the supplied Nuxt components:
|
|
901
882
|
|
|
902
|
-
- [CatalogHeader](https://
|
|
883
|
+
- [CatalogHeader](https://basklee.com/en/sandbox/components/nuxt/catalog)
|
|
903
884
|
uses `menu_image` for shortcut thumbnails and `catalog_menu_image` inside its catalog panel.
|
|
904
|
-
- [ProductGroup](https://
|
|
885
|
+
- [ProductGroup](https://basklee.com/en/sandbox/components/nuxt/product-group)
|
|
905
886
|
becomes a swipeable row on a narrow screen. `mobile_show_arrows` controls its previous/next
|
|
906
887
|
buttons when the row overflows. Desktop grids and promotion carousels are unaffected.
|
|
907
888
|
Optional `productIds` resolves an ordered set through `productStore.getProduct`; an omitted
|
|
908
889
|
value uses the AppLoad collection, and an empty array displays no cards.
|
|
909
|
-
- [SearchFilters](https://
|
|
890
|
+
- [SearchFilters](https://basklee.com/en/sandbox/components/nuxt/search-filters)
|
|
910
891
|
uses `show_filter_counters` for counts supplied in `selects` and `variants`.
|
|
911
892
|
`browseStore.preserveSearchFacets(page_data)` retains the initial options and price
|
|
912
893
|
bounds from `products_search`; `browseStore.setSearchFacets` explicitly replaces them
|
|
@@ -915,14 +896,14 @@ are consumed by the supplied Nuxt components:
|
|
|
915
896
|
update products, leaving the original selectors available. `disabled` prevents
|
|
916
897
|
selection; there are no slots.
|
|
917
898
|
- `single_seller_mode` hides
|
|
918
|
-
[ProductCardSeller](https://
|
|
899
|
+
[ProductCardSeller](https://basklee.com/en/sandbox/components/nuxt/productCardSeller)
|
|
919
900
|
and seller filters; manufacturer options remain visible.
|
|
920
|
-
- [BlogPostGroup](https://
|
|
901
|
+
- [BlogPostGroup](https://basklee.com/en/sandbox/components/nuxt/blog) uses
|
|
921
902
|
`blog_view_type`: `EBlogViewType.PORTRAIT` is a grid, `EBlogViewType.LIST` is a list,
|
|
922
903
|
and `EBlogViewType.CUSTOM` starts with a lead card, followed by groups of up to
|
|
923
904
|
three posts. Unknown values fall back to portrait; numeric strings are accepted.
|
|
924
905
|
`store.setBlogPosts(page_data.posts.data)` supplies previews from `blog_posts_get`.
|
|
925
|
-
[BlogPostCard](https://
|
|
906
|
+
[BlogPostCard](https://basklee.com/en/sandbox/components/nuxt/blog-post) takes
|
|
926
907
|
`postId` and `layout` (portrait by default, list or hero), reads the post from
|
|
927
908
|
the store, and shows its localized title, plain-text preview, first ordered image
|
|
928
909
|
and reading time. The group forwards its `select` event with `IBlogPostPreview`.
|
|
@@ -978,7 +959,7 @@ The category uses `grid`, which stays a vertical grid on a narrow screen and
|
|
|
978
959
|
shows no horizontal scroll arrows. Filters collapse behind a button in a narrow
|
|
979
960
|
result container; category navigation remains available while products load.
|
|
980
961
|
|
|
981
|
-
The [Category page guide](https://
|
|
962
|
+
The [Category page guide](https://basklee.com/en/sandbox/components/nuxt/category-page)
|
|
982
963
|
contains the physical composition, dashed child boundaries, local preview
|
|
983
964
|
controls, field/input/event contracts and exact component/interface downloads.
|
|
984
965
|
The matching Russian guide uses `/ru/sandbox/components/nuxt/category-page`.
|
|
@@ -986,7 +967,7 @@ The matching Russian guide uses `/ru/sandbox/components/nuxt/category-page`.
|
|
|
986
967
|
|
|
987
968
|
## Search, logout and preorder flows
|
|
988
969
|
|
|
989
|
-
The [search results component](https://
|
|
970
|
+
The [search results component](https://basklee.com/en/sandbox/components/nuxt/search-results)
|
|
990
971
|
serves `/browse?q=...` and the category result area. It renders initial loading
|
|
991
972
|
placeholders, a recoverable empty result, error/retry, totals and pagination.
|
|
992
973
|
Changing the URL query starts a fresh search, including changes on an already
|
|
@@ -1070,7 +1051,7 @@ counts describe the initial scope, not the narrowed result. Product grids use
|
|
|
1070
1051
|
fewer columns as the container narrows. Mobile home
|
|
1071
1052
|
rows retain their existing swipe behavior.
|
|
1072
1053
|
|
|
1073
|
-
The [preorder dialog](https://
|
|
1054
|
+
The [preorder dialog](https://basklee.com/en/sandbox/components/nuxt/preorder-dialog)
|
|
1074
1055
|
is `app/components/basklee/products/ProductPreorderDialog.vue`, nested under
|
|
1075
1056
|
Product actions in Components. The default layout opens it for the card's
|
|
1076
1057
|
`preorder` event. It shows the product and price; guests provide email or phone.
|
|
@@ -1080,7 +1061,7 @@ Pending requests disable resubmission and dismissal. Errors remain by the form.
|
|
|
1080
1061
|
`modal` defaults to true; false renders the same dialog within its container.
|
|
1081
1062
|
Both storefront and documentation product previews use this physical component.
|
|
1082
1063
|
|
|
1083
|
-
The [sign-out component](https://
|
|
1064
|
+
The [sign-out component](https://basklee.com/en/sandbox/components/nuxt/logout)
|
|
1084
1065
|
is `app/components/basklee/account/StorefrontLogout.vue`, under Profile menu.
|
|
1085
1066
|
The default layout opens `/logout` after `signOut`. The route shows progress,
|
|
1086
1067
|
uses `profile_logout` through the shared API client after mounting, refreshes
|
|
@@ -1102,8 +1083,8 @@ phone sign-in/registration and navigation to `/logout`. Account requests use the
|
|
|
1102
1083
|
shared named API client, which sends the selected storefront language as `lang`;
|
|
1103
1084
|
registration saves it as the account's initial email-notification language.
|
|
1104
1085
|
Avatar upload uses multipart. Data changes only after confirmation. See the
|
|
1105
|
-
[profile guide](https://
|
|
1106
|
-
and its [Russian version](https://
|
|
1086
|
+
[profile guide](https://basklee.com/en/sandbox/components/nuxt/profile)
|
|
1087
|
+
and its [Russian version](https://basklee.com/ru/sandbox/components/nuxt/profile).
|
|
1107
1088
|
|
|
1108
1089
|
The sign-in and registration form (`ProfileSignIn`) appears only on the
|
|
1109
1090
|
`/profile` page. Header Login links there. A guest's click on an action that
|
|
@@ -1143,7 +1124,7 @@ the top loading bar from `app/app.vue` and a visually hidden `role="status"`
|
|
|
1143
1124
|
message instead of a status strip. Field errors stay as red text beside their inputs. Required fields show a
|
|
1144
1125
|
red `*` directly after the label text.
|
|
1145
1126
|
|
|
1146
|
-
The default layout renders the [footer](https://
|
|
1127
|
+
The default layout renders the [footer](https://basklee.com/en/sandbox/components/nuxt/footer)
|
|
1147
1128
|
with real store categories, home-section anchors, profile/journal navigation,
|
|
1148
1129
|
a contact-page link, a `/privacy` link and social links. On `/contact`, `StorefrontContact` places
|
|
1149
1130
|
company details (address, `tel:` phone link, registration numbers with copy
|
package/bin/basklee-nuxt.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { setupProject } from '../src/setup.mjs';
|
|
3
3
|
import { updateProject } from '../src/update.mjs';
|
|
4
|
-
import { installService } from '../src/install.mjs';
|
|
4
|
+
import { installService, serverName } from '../src/install.mjs';
|
|
5
5
|
import { SERVICE_ACTIONS, SERVICE_ALIASES, controlService, findApp, printService } from '../src/service.mjs';
|
|
6
6
|
import { sitemapCommand } from '../src/sitemap.mjs';
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
@@ -18,7 +18,7 @@ From zero (Node.js 22.12+ with npm; run from the parent folder):
|
|
|
18
18
|
npx basklee-nuxt add frontend shop.example.com
|
|
19
19
|
npm run dev
|
|
20
20
|
|
|
21
|
-
Replace the backend with the domain from your
|
|
21
|
+
Replace the backend with the domain from your basklee.com profile,
|
|
22
22
|
and the frontend with your storefront domain. Open Nuxt's local URL;
|
|
23
23
|
the storefront opens after Application Load succeeds.
|
|
24
24
|
|
|
@@ -40,7 +40,7 @@ On your Linux server (run from the project root):
|
|
|
40
40
|
Builds the storefront, installs it as a system service (systemd or OpenRC)
|
|
41
41
|
and, when the basklee server tool is set up, connects its domains with
|
|
42
42
|
nginx and HTTPS. Run it again after changes or an update to rebuild and restart.
|
|
43
|
-
Server tool: https://
|
|
43
|
+
Server tool: https://basklee.com/downloads/basklee.sh
|
|
44
44
|
|
|
45
45
|
Manage the installed service (from the project root, or name it with --name):
|
|
46
46
|
npx basklee-nuxt status service, autostart, port and home page answer
|
|
@@ -112,7 +112,7 @@ try {
|
|
|
112
112
|
console.log(`Domains: ${done.frontends.join(', ') || 'none yet'} -> ${done.backend || 'no backend yet'}`);
|
|
113
113
|
console.log(`\n${done.unitPath}:\n${done.unit}`);
|
|
114
114
|
} else {
|
|
115
|
-
console.log(`\nInstalled
|
|
115
|
+
console.log(`\nInstalled ${serverName}-${done.name} (port ${done.port}, user ${done.user}).`);
|
|
116
116
|
for (const domain of done.frontends) {
|
|
117
117
|
if (!install.domains) console.log(` - ${domain}: not connected (--no-domains)`);
|
|
118
118
|
else if (!done.connected) console.log(` - ${domain}: not connected to nginx (see above)`);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basklee-nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Nuxt 4 storefront for your Basklee marketplace: setup CLI, server API gateway, typed store and ready-made catalog, cart, checkout and account components in English, Russian and Spanish, plus an Android app build.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Basklee",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://basklee.com/en/sandbox/new-project/nuxt",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"nuxt",
|
|
11
11
|
"nuxt4",
|
package/src/install.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Installs the built storefront as a system service on a Linux server and
|
|
2
2
|
// connects its domains through the "basklee" server tool
|
|
3
|
-
// (https://
|
|
3
|
+
// (https://basklee.com/downloads/basklee.sh) when that tool is set up.
|
|
4
4
|
import { spawn } from 'node:child_process';
|
|
5
5
|
import { mkdir, readFile, readdir, rename, stat, writeFile } from 'node:fs/promises';
|
|
6
6
|
import { existsSync } from 'node:fs';
|
|
@@ -19,13 +19,10 @@ export const framework = {
|
|
|
19
19
|
environment: {},
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
// orionplace-<app> services and the "orionplace" server tool. New servers use basklee.
|
|
24
|
-
export const serverName = (process.env.ORIONPLACE_ETC
|
|
25
|
-
|| (!process.env.BASKLEE_ETC && !existsSync('/etc/basklee') && existsSync('/etc/orionplace'))) ? 'orionplace' : 'basklee';
|
|
22
|
+
export const serverName = 'basklee';
|
|
26
23
|
|
|
27
24
|
export const defaultPaths = {
|
|
28
|
-
etc: process.env.BASKLEE_ETC ||
|
|
25
|
+
etc: process.env.BASKLEE_ETC || `/etc/${serverName}`,
|
|
29
26
|
systemd: '/etc/systemd/system',
|
|
30
27
|
openrc: '/etc/init.d',
|
|
31
28
|
logs: `/var/log/${serverName}`,
|
|
@@ -214,7 +211,7 @@ async function ensureDomains(root, { yes }) {
|
|
|
214
211
|
const ask = process.stdin.isTTY && !yes;
|
|
215
212
|
if (!settings.backend) {
|
|
216
213
|
if (!ask) throw new Error(`Set the personal backend first: npx basklee-${framework.id} set backend my-shop.orionplace.app`);
|
|
217
|
-
log('Your personal backend is shown in your
|
|
214
|
+
log('Your personal backend is shown in your basklee.com profile, for example my-shop.orionplace.app.');
|
|
218
215
|
await setupProject({ cwd: root, field: 'backend', value: await prompt('Personal backend domain: ') });
|
|
219
216
|
settings = await read();
|
|
220
217
|
}
|
|
@@ -324,7 +321,7 @@ export async function installService({
|
|
|
324
321
|
const owned = await run('chown', ['-R', `${account.uid}:${account.gid}`, root], { capture: true });
|
|
325
322
|
if (owned.code) throw new Error(`Could not give ${root} to ${account.name}:\n${owned.output}`);
|
|
326
323
|
|
|
327
|
-
log(`\n==> Installing the service
|
|
324
|
+
log(`\n==> Installing the service ${serverName}-${service} on port ${chosen}`);
|
|
328
325
|
await writeAtomic(unitPath, unit, systemd ? 0o644 : 0o755);
|
|
329
326
|
await writeAtomic(join(paths.etc, 'apps', `${service}.conf`), conf);
|
|
330
327
|
const steps = systemd
|
|
@@ -354,7 +351,7 @@ export async function installService({
|
|
|
354
351
|
}
|
|
355
352
|
} else if (domains) {
|
|
356
353
|
log('\nThe basklee server tool is not set up, so nginx and HTTPS were not configured. Prepare the server:');
|
|
357
|
-
log(' curl -fsSLo basklee.sh https://
|
|
354
|
+
log(' curl -fsSLo basklee.sh https://basklee.com/downloads/basklee.sh && sudo sh basklee.sh setup');
|
|
358
355
|
log(`Then run this install again. Or proxy your HTTPS site to http://127.0.0.1:${chosen} as basklee/README.md describes.`);
|
|
359
356
|
}
|
|
360
357
|
return { name: service, port: chosen, user: account.name, unitPath, frontends: settings.frontends, failed, connected: domains && Boolean(tool) };
|
package/src/project-readme.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export function projectReadme(settings) {
|
|
|
4
4
|
return `# Your Basklee Nuxt integration
|
|
5
5
|
|
|
6
6
|
This folder contains the integration source for your Nuxt 4 storefront.
|
|
7
|
-
Your personal backend API is provided in your account at https://
|
|
7
|
+
Your personal backend API is provided in your account at https://basklee.com.
|
|
8
8
|
You can change that backend domain in your account, then update this project.
|
|
9
9
|
|
|
10
10
|
## Quick start from zero
|
|
@@ -22,7 +22,7 @@ npm run dev
|
|
|
22
22
|
\`\`\`
|
|
23
23
|
|
|
24
24
|
Replace \`your-project.orionplace.app\` with the personal backend domain shown in
|
|
25
|
-
your profile at [
|
|
25
|
+
your profile at [basklee.com](https://basklee.com), and
|
|
26
26
|
\`shop.example.com\` with your storefront domain. The first frontend also becomes
|
|
27
27
|
the local MIMIC domain.
|
|
28
28
|
|
|
@@ -83,8 +83,8 @@ The supplied Nuxt storefront includes \`/profile\` with personal details, avatar
|
|
|
83
83
|
verified email, optional email-notification and email-language preferences, password management,
|
|
84
84
|
phone sign-in/registration and navigation to \`/logout\`. Account requests use the
|
|
85
85
|
shared named API client; avatar upload uses multipart. Data changes only after
|
|
86
|
-
confirmation. See the [profile guide](https://
|
|
87
|
-
and its [Russian version](https://
|
|
86
|
+
confirmation. See the [profile guide](https://basklee.com/en/sandbox/components/nuxt/profile)
|
|
87
|
+
and its [Russian version](https://basklee.com/ru/sandbox/components/nuxt/profile).
|
|
88
88
|
|
|
89
89
|
The sign-in and registration form (\`ProfileSignIn\`) appears only on the
|
|
90
90
|
\`/profile\` page. Header Login links there. A guest's click on an action that
|
|
@@ -120,7 +120,7 @@ the top loading bar from \`app/app.vue\` and a visually hidden \`role="status"\`
|
|
|
120
120
|
message instead of a status strip. Field errors stay as red text beside their inputs. Required fields show a
|
|
121
121
|
red \`*\` directly after the label text.
|
|
122
122
|
|
|
123
|
-
The default layout renders the [footer](https://
|
|
123
|
+
The default layout renders the [footer](https://basklee.com/en/sandbox/components/nuxt/footer)
|
|
124
124
|
with real store categories, home-section anchors, profile/journal navigation,
|
|
125
125
|
a \`/contact\` link, a \`/privacy\` link, social links and the company name in
|
|
126
126
|
its copyright line. Company contact and registration details appear beside the
|
|
@@ -274,7 +274,7 @@ Components are grouped by feature under
|
|
|
274
274
|
\`app/components/basklee/\`. Components read the initialized store directly;
|
|
275
275
|
no additional Application Load request is needed.
|
|
276
276
|
|
|
277
|
-
The [field sandboxes](https://
|
|
277
|
+
The [field sandboxes](https://basklee.com/en/sandbox/appload/nuxt) display
|
|
278
278
|
these same source files and interfaces. Selections emit events for your
|
|
279
279
|
application to handle; they do not perform account, cart or subscription requests.
|
|
280
280
|
|
|
@@ -413,7 +413,7 @@ reloads for the guest session. The failed request is not repeated and no
|
|
|
413
413
|
sign-in dialog opens; a guest \`401\`, \`403\`, CSRF rejection or network failure
|
|
414
414
|
stays an ordinary request error.
|
|
415
415
|
|
|
416
|
-
[Cookie lifecycle and browser request example](https://
|
|
416
|
+
[Cookie lifecycle and browser request example](https://basklee.com/en/sandbox/appload/nuxt#session-cookies)
|
|
417
417
|
|
|
418
418
|
### SSR, navigation and failures
|
|
419
419
|
|
|
@@ -438,7 +438,7 @@ review and merge newer templates manually where the CLI reports preserved files.
|
|
|
438
438
|
|
|
439
439
|
## Storefront header
|
|
440
440
|
|
|
441
|
-
Browse [Components](https://
|
|
441
|
+
Browse [Components](https://basklee.com/en/sandbox/components/nuxt) for the
|
|
442
442
|
Header composition and its search, language, currency, profile, wallet and catalog
|
|
443
443
|
children, with live previews and source downloads. Russian guides are available too.
|
|
444
444
|
|
|
@@ -454,7 +454,7 @@ after sign-in, the user returns to the page passed in \`redirect\`,
|
|
|
454
454
|
payments are submitted by these presentation components. The balance follows
|
|
455
455
|
the selected currency, preserves zero and uses a dash for missing amounts.
|
|
456
456
|
After confirmed authentication changes, refresh Application Load to replace the
|
|
457
|
-
session, profile, wallet and discovery. See the [account guide and source downloads](https://
|
|
457
|
+
session, profile, wallet and discovery. See the [account guide and source downloads](https://basklee.com/en/sandbox/appload/nuxt/init/is_authenticated).
|
|
458
458
|
The wishlist and cart buttons display \`store.counters\`: initial Application Load
|
|
459
459
|
counts, updated by confirmed product actions. The wishlist button opens
|
|
460
460
|
\`/wishlist\`; the cart button opens the cart preview, whose product and full-cart
|
|
@@ -491,7 +491,7 @@ opens the enrollment dialog; enrollment is sent only after its explicit
|
|
|
491
491
|
confirmation. Existing product controllers handle variants and purchase actions.
|
|
492
492
|
|
|
493
493
|
See [the home composition](./COMPONENTS.md#storefront-home-sections) and the
|
|
494
|
-
[Components guide](https://
|
|
494
|
+
[Components guide](https://basklee.com/en/sandbox/components/nuxt/home)
|
|
495
495
|
for child contracts, settings, events, slots and physical source.
|
|
496
496
|
|
|
497
497
|
## Update the package and components
|
|
@@ -519,7 +519,7 @@ If installation fails after source generation, run \`npm install\` and retry.
|
|
|
519
519
|
The quickest way: prepare the server with the Basklee server script,
|
|
520
520
|
then run \`sudo npx basklee-nuxt install\` in this folder. It builds the
|
|
521
521
|
project, runs it as a system service and connects your domains with nginx and
|
|
522
|
-
HTTPS. Steps: [Install a storefront](https://
|
|
522
|
+
HTTPS. Steps: [Install a storefront](https://basklee.com/en/sandbox/install/storefront).
|
|
523
523
|
Then manage it from this folder: \`npx basklee-nuxt status\`, \`sudo npx basklee-nuxt restart\`,
|
|
524
524
|
\`sudo npx basklee-nuxt stop\`, \`sudo npx basklee-nuxt start\` and \`sudo npx basklee-nuxt logs\`.
|
|
525
525
|
\`sudo npx basklee-nuxt uninstall\` (or \`cleanup\`) stops and removes the service; this folder stays.
|
|
@@ -593,7 +593,7 @@ Deploy the website first, then build the app with Capacitor 8. With
|
|
|
593
593
|
client-only and sends every API request to that storefront through Capacitor's
|
|
594
594
|
native HTTP (\`app/utils/basklee/nativeApp.ts\`). Without the variable the
|
|
595
595
|
website build is unchanged. Steps:
|
|
596
|
-
[Android app guide](https://
|
|
596
|
+
[Android app guide](https://basklee.com/en/sandbox/android-app).
|
|
597
597
|
|
|
598
598
|
\`\`\`bash
|
|
599
599
|
BASKLEE_APP_ORIGIN=https://shop.example.com npx nuxt generate
|
|
@@ -602,8 +602,8 @@ npx cap sync android
|
|
|
602
602
|
|
|
603
603
|
## More documentation
|
|
604
604
|
|
|
605
|
-
- [Nuxt package installation and domain setup](https://
|
|
606
|
-
- [Application Load](https://
|
|
605
|
+
- [Nuxt package installation and domain setup](https://basklee.com/en/sandbox/new-project/nuxt)
|
|
606
|
+
- [Application Load](https://basklee.com/en/sandbox)
|
|
607
607
|
|
|
608
608
|
## Representative product actions
|
|
609
609
|
|
|
@@ -621,25 +621,25 @@ record actions without changing the reader's cart or session.
|
|
|
621
621
|
|
|
622
622
|
### Visual settings, search filters and blog previews
|
|
623
623
|
|
|
624
|
-
[Visual settings](https://
|
|
624
|
+
[Visual settings](https://basklee.com/en/sandbox/appload/nuxt/init/visual_settings)
|
|
625
625
|
are consumed by the supplied Nuxt components:
|
|
626
626
|
|
|
627
|
-
- [CatalogHeader](https://
|
|
627
|
+
- [CatalogHeader](https://basklee.com/en/sandbox/components/nuxt/catalog)
|
|
628
628
|
uses \`menu_image\` for shortcut thumbnails and \`catalog_menu_image\` inside its catalog panel.
|
|
629
|
-
- [ProductGroup](https://
|
|
629
|
+
- [ProductGroup](https://basklee.com/en/sandbox/components/nuxt/product-group)
|
|
630
630
|
becomes a swipeable row on a narrow screen. \`mobile_show_arrows\` controls its previous/next
|
|
631
631
|
buttons when the row overflows. Desktop grids and promotion carousels are unaffected.
|
|
632
632
|
Optional \`productIds\` resolves an ordered set through \`store.getProduct\`; an omitted
|
|
633
633
|
value uses the AppLoad collection, and an empty array displays no cards.
|
|
634
|
-
- [Search results](https://
|
|
634
|
+
- [Search results](https://basklee.com/en/sandbox/components/nuxt/search-results)
|
|
635
635
|
retain initial selector choices, support currency price ranges and color filters,
|
|
636
636
|
and display loading, empty and failure states.
|
|
637
|
-
- [Preorder dialog](https://
|
|
637
|
+
- [Preorder dialog](https://basklee.com/en/sandbox/components/nuxt/preorder-dialog)
|
|
638
638
|
is shared by storefront and documentation product previews.
|
|
639
|
-
- [Sign-out page](https://
|
|
639
|
+
- [Sign-out page](https://basklee.com/en/sandbox/components/nuxt/logout)
|
|
640
640
|
calls profile_logout at /logout, then refreshes guest AppLoad and returns home.
|
|
641
|
-
- [Category page](https://
|
|
642
|
-
- [SearchFilters](https://
|
|
641
|
+
- [Category page](https://basklee.com/en/sandbox/components/nuxt/category-page)
|
|
642
|
+
- [SearchFilters](https://basklee.com/en/sandbox/components/nuxt/search-filters)
|
|
643
643
|
uses \`show_filter_counters\` for counts supplied in \`selects\` and \`variants\`.
|
|
644
644
|
\`store.preserveSearchFacets(page_data)\` retains the initial options and price
|
|
645
645
|
bounds from \`products_search\`; \`store.setSearchFacets\` explicitly replaces them
|
|
@@ -648,14 +648,14 @@ are consumed by the supplied Nuxt components:
|
|
|
648
648
|
update products, leaving the original selectors available. \`disabled\` prevents
|
|
649
649
|
selection; there are no slots.
|
|
650
650
|
- \`single_seller_mode\` hides
|
|
651
|
-
[ProductCardSeller](https://
|
|
651
|
+
[ProductCardSeller](https://basklee.com/en/sandbox/components/nuxt/productCardSeller)
|
|
652
652
|
and seller filters; manufacturer options remain visible. The backend currently returns false.
|
|
653
|
-
- [BlogPostGroup](https://
|
|
653
|
+
- [BlogPostGroup](https://basklee.com/en/sandbox/components/nuxt/blog) uses
|
|
654
654
|
\`blog_view_type\`: \`EBlogViewType.PORTRAIT\` is a grid, \`EBlogViewType.LIST\` is a list,
|
|
655
655
|
and \`EBlogViewType.CUSTOM\` starts with a lead card, followed by groups of up to
|
|
656
656
|
three posts. Unknown values fall back to portrait; numeric strings are accepted.
|
|
657
657
|
\`store.setBlogPosts(page_data.posts.data)\` supplies previews from \`blog_posts_get\`.
|
|
658
|
-
[BlogPostCard](https://
|
|
658
|
+
[BlogPostCard](https://basklee.com/en/sandbox/components/nuxt/blog-post) takes
|
|
659
659
|
\`postId\` and \`layout\` (portrait by default, list or hero), reads the post from
|
|
660
660
|
the store, and shows its localized title, plain-text preview, first ordered image
|
|
661
661
|
and reading time. The group forwards its \`select\` event with \`IBlogPostPreview\`.
|
package/src/update.mjs
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
-
import { readFileSync } from 'node:fs';
|
|
3
2
|
import { resolve } from 'node:path';
|
|
4
|
-
import { migrateLegacyProject } from './migrate.mjs';
|
|
5
3
|
import { setupProject } from './setup.mjs';
|
|
6
4
|
|
|
7
|
-
const PACKAGE = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
8
|
-
|
|
9
|
-
function printMigration(done, dryRun) {
|
|
10
|
-
console.log(`${dryRun ? 'Would rename' : 'Renamed'} this project from the old orionplace names to Basklee (${done.files.length} files changed, ${done.moved} moved; dependency ${done.dependency}).`);
|
|
11
|
-
if (done.backup) console.log(`Backup of every changed file, at its old path: ${done.backup}/ (delete it after checking).`);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
5
|
export function runNpm(args, cwd) {
|
|
15
6
|
const npmCli = process.env.npm_execpath;
|
|
16
7
|
const command = npmCli ? process.execPath : 'npm';
|
|
@@ -26,24 +17,15 @@ export function runNpm(args, cwd) {
|
|
|
26
17
|
|
|
27
18
|
export async function updateProject({ cwd = process.cwd(), dryRun = false, local = false, npm = runNpm } = {}) {
|
|
28
19
|
cwd = resolve(cwd);
|
|
29
|
-
// A project made before the rename to Basklee is renamed first (migrate.mjs); the latest CLI does it.
|
|
30
|
-
const legacy = await migrateLegacyProject({ cwd, dryRun: true, packageName: PACKAGE.name, version: PACKAGE.version });
|
|
31
20
|
// Validate before downloading or writing; the latest CLI repeats preflight with its own templates.
|
|
32
|
-
const preview =
|
|
21
|
+
const preview = await setupProject({ cwd, action: 'update', dryRun: true });
|
|
33
22
|
if (!local) {
|
|
34
23
|
console.log('Checking the latest Basklee Nuxt release…');
|
|
35
24
|
await npm(['exec', '--yes', '--prefer-online', '--package=basklee-nuxt@latest', '--',
|
|
36
25
|
'basklee-nuxt', 'update', '--local', '--cwd', cwd, ...(dryRun ? ['--dry-run'] : [])], cwd);
|
|
37
26
|
return null; // The latest CLI reports its own changes.
|
|
38
27
|
}
|
|
39
|
-
if (legacy && dryRun) {
|
|
40
|
-
printMigration(legacy, true);
|
|
41
|
-
for (const file of legacy.files) console.log(` ${file}`);
|
|
42
|
-
console.log('The template update is planned after the rename: run update without --dry-run, then update --dry-run again.');
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
28
|
if (dryRun) return preview;
|
|
46
|
-
if (legacy) printMigration(await migrateLegacyProject({ cwd, packageName: PACKAGE.name, version: PACKAGE.version }), false);
|
|
47
29
|
const result = await setupProject({ cwd, action: 'update' });
|
|
48
30
|
try {
|
|
49
31
|
await npm(['install', '--no-audit', '--no-fund'], cwd);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
The user’s promo codes, reviews and sign-in history.
|
|
4
4
|
|
|
5
5
|
The supplied storefront uses this component at `/activity`.
|
|
6
|
-
[English guide](https://
|
|
7
|
-
[Russian guide](https://
|
|
6
|
+
[English guide](https://basklee.com/en/sandbox/components/nuxt/activity) ·
|
|
7
|
+
[Russian guide](https://basklee.com/ru/sandbox/components/nuxt/activity)
|
|
8
8
|
|
|
9
9
|
## Contract and dependencies
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Available promo codes and applying a selected code to the cart.
|
|
4
4
|
|
|
5
5
|
The supplied storefront uses this component at `/activity`.
|
|
6
|
-
[English guide](https://
|
|
7
|
-
[Russian guide](https://
|
|
6
|
+
[English guide](https://basklee.com/en/sandbox/components/nuxt/account-promocodes) ·
|
|
7
|
+
[Russian guide](https://basklee.com/ru/sandbox/components/nuxt/account-promocodes)
|
|
8
8
|
|
|
9
9
|
## Contract and dependencies
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Account navigation around private storefront sections.
|
|
4
4
|
|
|
5
5
|
The supplied storefront uses this component at `/profile, /addresses, /orders, /tickets, /wallet, /subscriptions, /wishlist, /activity`.
|
|
6
|
-
[English guide](https://
|
|
7
|
-
[Russian guide](https://
|
|
6
|
+
[English guide](https://basklee.com/en/sandbox/components/nuxt/account-section) ·
|
|
7
|
+
[Russian guide](https://basklee.com/ru/sandbox/components/nuxt/account-section)
|
|
8
8
|
|
|
9
9
|
## Contract and dependencies
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
The user’s sign-in dates, devices, browsers and IP addresses.
|
|
4
4
|
|
|
5
5
|
The supplied storefront uses this component at `/activity`.
|
|
6
|
-
[English guide](https://
|
|
7
|
-
[Russian guide](https://
|
|
6
|
+
[English guide](https://basklee.com/en/sandbox/components/nuxt/sign-in-history) ·
|
|
7
|
+
[Russian guide](https://basklee.com/ru/sandbox/components/nuxt/sign-in-history)
|
|
8
8
|
|
|
9
9
|
## Contract and dependencies
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sign-out page · Nuxt
|
|
2
2
|
|
|
3
|
-
The [sign-out component](https://
|
|
3
|
+
The [sign-out component](https://basklee.com/en/sandbox/components/nuxt/logout)
|
|
4
4
|
is `app/components/basklee/account/StorefrontLogout.vue`, under Profile menu.
|
|
5
5
|
The default layout opens `/logout` after `signOut`. The route shows progress,
|
|
6
6
|
uses `profile_logout` through the shared API client after mounting, refreshes
|
|
@@ -12,4 +12,4 @@ preview never signs out the reader.
|
|
|
12
12
|
|
|
13
13
|
## Related components
|
|
14
14
|
|
|
15
|
-
[Profile menu](https://
|
|
15
|
+
[Profile menu](https://basklee.com/en/sandbox/components/nuxt/profile-menu), [Header](https://basklee.com/en/sandbox/components/nuxt/header).
|