```
├── .dockerignore (200 tokens)
├── .github/
├── FUNDING.yml
├── ISSUE_TEMPLATE/
├── bug_report.md (100 tokens)
├── feature_request.md (100 tokens)
├── images/
├── banner.png
├── discord_banner_github.svg (1800 tokens)
├── evershop-admin-demo1.png
├── evershop-backend-demo.png
├── evershop-demo-back.png
├── evershop-demo-front.png
├── evershop-logo.svg (2.2k tokens)
├── evershop-product-detail.png
├── evershop-store-front-demo1.png
├── logo-green.png
├── showcase.gif
├── sponsors/
├── bountyhub.png
├── onboarding-links.json (100 tokens)
├── pull_request_template.md (200 tokens)
├── workflows/
├── build_test.yml (100 tokens)
├── release.yml (3.3k tokens)
├── .gitignore (200 tokens)
├── .husky/
├── pre-commit
├── .prettierignore (omitted)
├── .prettierrc
├── CLAUDE.md (3k tokens)
├── CODE_OF_CONDUCT.md (1100 tokens)
├── CONTRIBUTING.md (500 tokens)
├── Dockerfile (400 tokens)
├── LICENSE (omitted)
├── README.md (1100 tokens)
├── changelog.md (14.8k tokens)
├── configExample.text (800 tokens)
├── docker-compose.yml (100 tokens)
├── docker/
├── Dockerfile (200 tokens)
├── package.json (100 tokens)
├── eslint.config.js (600 tokens)
├── jest.config.js (100 tokens)
├── package-lock.json (omitted)
├── package.json (600 tokens)
├── packages/
├── create-evershop-app/
├── README.md (100 tokens)
├── createEverShopApp.js (3.9k tokens)
├── index.js (100 tokens)
├── package.json (200 tokens)
├── sample/
├── extensions/
├── sample/
├── Readme.md (100 tokens)
├── dist/
├── api/
├── createFoo/
├── [bodyParser]createFoo.d.ts (omitted)
├── [bodyParser]createFoo.js (100 tokens)
├── [bodyParser]createFoo.js.map (omitted)
├── bodyParser.d.ts (omitted)
├── bodyParser.js
├── bodyParser.js.map (omitted)
├── route.json
├── bootstrap.d.ts (omitted)
├── bootstrap.js (100 tokens)
├── bootstrap.js.map (omitted)
├── crons/
├── everyMinute.d.ts (omitted)
├── everyMinute.js
├── everyMinute.js.map (omitted)
├── graphql/
├── types/
├── Foo/
├── Foo.graphql
├── Foo.resolvers.d.ts (omitted)
├── Foo.resolvers.js (200 tokens)
├── Foo.resolvers.js.map (omitted)
├── pages/
├── admin/
├── all/
├── Hello.d.ts (omitted)
├── Hello.js (600 tokens)
├── Hello.js.map (omitted)
├── frontStore/
├── all/
├── FreeShippingMessage.d.ts (omitted)
├── FreeShippingMessage.js (300 tokens)
├── FreeShippingMessage.js.map (omitted)
├── foo/
├── Foos.d.ts (omitted)
├── Foos.js (200 tokens)
├── Foos.js.map (omitted)
├── route.json
├── homepage/
├── FooList.d.ts (omitted)
├── FooList.js (200 tokens)
├── FooList.js.map (omitted)
├── subscribers/
├── product_created/
├── consoleLog.d.ts (omitted)
├── consoleLog.js
├── consoleLog.js.map (omitted)
├── package.json (100 tokens)
├── src/
├── api/
├── createFoo/
├── [bodyParser]createFoo.ts (100 tokens)
├── bodyParser.ts
├── route.json
├── bootstrap.ts (100 tokens)
├── crons/
├── everyMinute.ts
├── graphql/
├── types/
├── Foo/
├── Foo.graphql
├── Foo.resolvers.js (100 tokens)
├── pages/
├── admin/
├── all/
├── Hello.tsx (500 tokens)
├── frontStore/
├── all/
├── FreeShippingMessage.tsx (300 tokens)
├── foo/
├── Foos.tsx (200 tokens)
├── route.json
├── homepage/
├── FooList.tsx (200 tokens)
├── subscribers/
├── product_created/
├── consoleLog.js
├── tsconfig.json (100 tokens)
├── themes/
├── sample/
├── dist/
├── pages/
├── all/
├── EveryWhere.d.ts (omitted)
├── EveryWhere.js (200 tokens)
├── EveryWhere.js.map (omitted)
├── homepage/
├── OnlyHomePage.d.ts (omitted)
├── OnlyHomePage.js (300 tokens)
├── OnlyHomePage.js.map (omitted)
├── package.json (100 tokens)
├── src/
├── pages/
├── all/
├── EveryWhere.tsx (100 tokens)
├── homepage/
├── OnlyHomePage.tsx (100 tokens)
├── tsconfig.json (100 tokens)
├── evershop/
├── .swcrc (100 tokens)
├── NOTICE (600 tokens)
├── README.md (1000 tokens)
├── package.json (1800 tokens)
├── scripts/
├── postpack.js (200 tokens)
├── postpublish.js (100 tokens)
├── prepublish.js
├── src/
├── bin/
├── build/
├── client/
├── index.js (100 tokens)
├── complie.js (400 tokens)
├── index.js (500 tokens)
├── initEnvBuild.ts
├── server/
├── index.js (100 tokens)
├── useDDL.js (1500 tokens)
├── useVendorChunk.js (500 tokens)
├── dev/
├── compileTs.js (100 tokens)
├── enableWatcher.js (300 tokens)
├── hooks.js (200 tokens)
├── index.ts (200 tokens)
├── init.ts (200 tokens)
├── initEnvDev.ts
├── register.js (100 tokens)
├── evershop.js (300 tokens)
├── extension/
├── index.ts (700 tokens)
├── tests/
├── unit/
├── loadExtensions.test.ts (1000 tokens)
├── install/
├── createMigrationTable.js (100 tokens)
├── index.js (1700 tokens)
├── templates/
├── config.json
├── lib/
├── addDefaultMiddlewareFuncs.ts (2.7k tokens)
├── app.js (500 tokens)
├── bootstrap/
├── bootstrap.ts (200 tokens)
├── migrate.js (700 tokens)
├── buildEntry.js (1800 tokens)
├── devEnvHelper.ts (400 tokens)
├── ensureRoutesLoaded.ts (200 tokens)
├── loadModules.js (600 tokens)
├── normalizePort.js (100 tokens)
├── onError.js (100 tokens)
├── onListening.js (100 tokens)
├── prepare.js (400 tokens)
├── routeNeedsSession.ts (100 tokens)
├── startCronProcess.ts (200 tokens)
├── startSubscriberProcess.ts (200 tokens)
├── startUp.js (700 tokens)
├── tests/
├── unit/
├── routeNeedsSession.test.ts (200 tokens)
├── watch/
├── broadcast.js (100 tokens)
├── compileSwc.ts (600 tokens)
├── effect.ts (1600 tokens)
├── getDistPaths.ts
├── getRootPaths.ts (200 tokens)
├── getSrcPaths.ts (100 tokens)
├── isDist.js (100 tokens)
├── isRestartRequired.ts (100 tokens)
├── isSrc.js (100 tokens)
├── processors/
├── addAdminRoute.ts (100 tokens)
├── addApiRoute.ts (300 tokens)
├── addComponent.ts (100 tokens)
├── addFrontStoreRoute.ts (100 tokens)
├── addMiddleware.ts (100 tokens)
├── deleteARoute.ts (100 tokens)
├── index.ts (300 tokens)
├── removeMiddleware.ts (100 tokens)
├── restart.ts
├── restartCronJob.ts
├── restartSubscriber.ts
├── touch.js (100 tokens)
├── updateAdminRoute.ts (100 tokens)
├── updateApiRoute.ts (100 tokens)
├── updateFrontStoreRoute.ts (100 tokens)
├── watchHandler.ts (600 tokens)
├── seed/
├── data/
├── attributes.json (200 tokens)
├── blog.json (2.1k tokens)
├── categories.json (200 tokens)
├── collections.json (500 tokens)
├── pages.json (800 tokens)
├── products.json (5.3k tokens)
├── imageDownloader.ts (600 tokens)
├── index.ts (800 tokens)
├── initEnvDev.ts
├── seedAttributes.ts (800 tokens)
├── seedBlog.ts (1800 tokens)
├── seedCategories.ts (1000 tokens)
├── seedCollections.ts (300 tokens)
├── seedImages.ts (1100 tokens)
├── seedPackages.ts (300 tokens)
├── seedPages.ts (600 tokens)
├── seedProducts.ts (1300 tokens)
├── seedWidgets.ts (800 tokens)
├── tests/
├── unit/
├── seedCategories.test.ts (1300 tokens)
├── seedThemeImages.test.ts (800 tokens)
├── themeSeedData.test.ts (600 tokens)
├── variantGroups.test.ts (1600 tokens)
├── themeSeedData.ts (800 tokens)
├── variantGroupHelpers.ts (1600 tokens)
├── start/
├── index.ts (100 tokens)
├── initEnvStart.ts
├── theme/
├── active.ts (3.2k tokens)
├── create.ts (900 tokens)
├── export-content.ts (1900 tokens)
├── status.ts (1100 tokens)
├── twizz.ts (2.4k tokens)
├── uninstall.ts (600 tokens)
├── user/
├── changePassword.js (300 tokens)
├── create.js (400 tokens)
├── components/
├── admin/
├── AttributeGroupSelector.tsx (1500 tokens)
├── BrandAssetUploader.tsx (1300 tokens)
├── CategorySelector.tsx (1500 tokens)
├── CategoryTree.scss (100 tokens)
├── CategoryTree.tsx (900 tokens)
├── CollectionSelector.tsx (1400 tokens)
├── FileBrowser.scss (5.3k tokens)
├── FileBrowser.tsx (10.4k tokens)
├── FormButtons.tsx (200 tokens)
├── ImageUploader.scss (900 tokens)
├── ImageUploader.tsx (2.4k tokens)
├── ImageUploaderSkeleton.tsx (800 tokens)
├── NavigationItem.scss
├── NavigationItem.tsx (300 tokens)
├── NavigationItemGroup.scss (100 tokens)
├── NavigationItemGroup.tsx (300 tokens)
├── PackageForm.tsx (1000 tokens)
├── PageHeading.scss (100 tokens)
├── PageHeading.tsx (400 tokens)
├── ProductListSkeleton.tsx (200 tokens)
├── ProductSelector.tsx (1700 tokens)
├── SearchSnippetPreview.tsx (600 tokens)
├── SettingMenu.tsx (200 tokens)
├── SettingMenuItem.tsx (600 tokens)
├── Spinner.jsx (200 tokens)
├── Status.tsx (100 tokens)
├── grid/
├── GridPagination.tsx (1000 tokens)
├── Thumbnail.tsx (300 tokens)
├── header/
├── Dummy.tsx (100 tokens)
├── Sortable.tsx (700 tokens)
├── metafield/
├── DefinitionEditor.tsx (3k tokens)
├── MetafieldSection.tsx (2.6k tokens)
├── MetafieldValueInput.tsx (3.8k tokens)
├── StandaloneMetafieldCard.tsx (400 tokens)
├── common/
├── Area.tsx (3.5k tokens)
├── Editor.scss (100 tokens)
├── Editor.tsx (1800 tokens)
├── ExtendableTable.tsx (1500 tokens)
├── Image.tsx (2.4k tokens)
├── LanguageSwitcher.tsx (400 tokens)
├── Link.tsx (1600 tokens)
├── LoadingBar.scss (100 tokens)
├── LoadingBar.tsx (200 tokens)
├── Meta.tsx (1600 tokens)
├── Notification.tsx (200 tokens)
├── ProductNoThumbnail.tsx (600 tokens)
├── RenderIfTrue.tsx
├── Script.tsx (1500 tokens)
├── SimplePagination.tsx (300 tokens)
├── StaticImage.tsx (200 tokens)
├── Title.tsx (1500 tokens)
├── context/
├── app.tsx (400 tokens)
├── customer/
├── address/
├── AddressSummary.tsx (300 tokens)
├── form/
├── CheckboxField.tsx (1300 tokens)
├── DateField.tsx (700 tokens)
├── DateTimeLocalField.tsx (700 tokens)
├── Editor.scss (500 tokens)
├── Editor.tsx (3.9k tokens)
├── EmailField.tsx (600 tokens)
├── FileField.tsx (800 tokens)
├── Form.tsx (1100 tokens)
├── InputField.tsx (700 tokens)
├── NumberField.tsx (1200 tokens)
├── PasswordField.tsx (800 tokens)
├── RadioGroupField.tsx (800 tokens)
├── RangeField.tsx (500 tokens)
├── ReactSelectCreatableField.tsx (1300 tokens)
├── ReactSelectField.tsx (900 tokens)
├── SelectField.tsx (900 tokens)
├── TelField.tsx (700 tokens)
├── TextareaField.tsx (500 tokens)
├── TimeField.tsx (700 tokens)
├── ToggleField.tsx (700 tokens)
├── Tooltip.tsx (500 tokens)
├── UrlField.tsx (700 tokens)
├── editor/
├── GetColumnClasses.tsx (100 tokens)
├── GetRowClasses.tsx (100 tokens)
├── RawToolWrapper.ts (400 tokens)
├── RowTemplates.tsx (1000 tokens)
├── utils/
├── getNestedError.ts (200 tokens)
├── index.tsx (100 tokens)
├── metafield/
├── Metafield.tsx (1500 tokens)
├── definitionStatus.ts (400 tokens)
├── index.ts (100 tokens)
├── resolveMetafield.ts (800 tokens)
├── tests/
├── unit/
├── definitionStatus.test.ts (300 tokens)
├── resolveMetafield.test.ts (800 tokens)
├── modal/
├── Alert.jsx (900 tokens)
├── Alert.scss (300 tokens)
├── page-builder/
├── AreaDropZone.tsx (800 tokens)
├── Editable.tsx (2000 tokens)
├── EditableImage.tsx (1300 tokens)
├── EditableMarkdown.tsx (600 tokens)
├── PageBuilderBridge.tsx (2.3k tokens)
├── WidgetChrome.tsx (3.1k tokens)
├── WidgetContext.tsx (300 tokens)
├── WidgetEmptyState.tsx (500 tokens)
├── WidgetSettingsScope.tsx (1100 tokens)
├── drawer/
├── AnchorPicker.tsx (300 tokens)
├── RepeatableAccordion.tsx (1500 tokens)
├── arraySetting.ts (400 tokens)
├── index.tsx (1400 tokens)
├── dropSortOrder.ts (800 tokens)
├── fields/
├── ColorSwatchField.tsx (700 tokens)
├── CtaField.tsx (700 tokens)
├── ImagePickerField.tsx (1200 tokens)
├── MarkdownBodyField.tsx (300 tokens)
├── index.ts (400 tokens)
├── normalizeImageSrc.ts (100 tokens)
├── pageBuilderMode.ts (500 tokens)
├── pickers/
├── BlogPicker.tsx (800 tokens)
├── CategoryPicker.tsx (800 tokens)
├── CollectionPicker.tsx (700 tokens)
├── EntitySearchList.tsx (1000 tokens)
├── LandingPagePicker.tsx (800 tokens)
├── LinkPicker.tsx (2.2k tokens)
├── PagePicker.tsx (600 tokens)
├── ProductPicker.tsx (800 tokens)
├── tests/
├── unit/
├── editablePatchSettings.test.ts (600 tokens)
├── linkPickerAllProducts.test.tsx (900 tokens)
├── moveSortOrder.test.ts (1000 tokens)
├── normalizeImageSrc.test.ts (400 tokens)
├── widgetSettingsScope.test.ts (300 tokens)
├── react/
├── ErrorBoundary.tsx (300 tokens)
├── Head.jsx (100 tokens)
├── client/
├── Client.tsx (300 tokens)
├── HotReload.tsx (400 tokens)
├── Hydrate.tsx (200 tokens)
├── HydrateAdmin.tsx
├── HydrateFrontStore.tsx
├── Index.jsx (100 tokens)
├── reportClientError.ts (100 tokens)
├── getComponents.js (100 tokens)
├── server/
├── Server.tsx (300 tokens)
├── fetchLocalePatch.ts (500 tokens)
├── render.tsx (300 tokens)
├── tests/
├── unit/
├── Image.test.tsx (200 tokens)
├── ui/
├── Accordion.tsx (500 tokens)
├── Alert.tsx (400 tokens)
├── AlertDialog.tsx (1100 tokens)
├── AspectRatio.tsx (100 tokens)
├── Avatar.tsx (600 tokens)
├── Badge.tsx (500 tokens)
├── Breadcrumb.tsx (500 tokens)
├── Button.tsx (700 tokens)
├── ButtonGroup.tsx (500 tokens)
├── Card.tsx (500 tokens)
├── Chart.tsx (2k tokens)
├── Checkbox.tsx (300 tokens)
├── Circle.tsx (400 tokens)
├── Collapsible.tsx (100 tokens)
├── ConfirmDialog.tsx (600 tokens)
├── ContextMenu.tsx (1600 tokens)
├── Dialog.tsx (1000 tokens)
├── DropdownMenu.tsx (1700 tokens)
├── Empty.tsx (500 tokens)
├── Field.tsx (1200 tokens)
├── HoverCard.tsx (400 tokens)
├── Input.tsx (200 tokens)
├── InputGroup.tsx (1200 tokens)
├── Item.tsx (1000 tokens)
├── Kbd.tsx (200 tokens)
├── Label.tsx (100 tokens)
├── Menubar.tsx (1600 tokens)
├── NavigationMenu.tsx (1400 tokens)
├── Pagination.tsx (600 tokens)
├── Popover.tsx (500 tokens)
├── Progress.tsx (400 tokens)
├── RadioGroup.tsx (300 tokens)
├── ScrollArea.tsx (300 tokens)
├── Select.tsx (1300 tokens)
├── Separator.tsx (100 tokens)
├── Sheet.tsx (900 tokens)
├── Sidebar.tsx (4.4k tokens)
├── Skeleton.tsx (100 tokens)
├── Slider.tsx (400 tokens)
├── Sonner.tsx (200 tokens)
├── Spinner.tsx (100 tokens)
├── Switch.tsx (400 tokens)
├── Table.tsx (500 tokens)
├── Tabs.tsx (700 tokens)
├── Textarea.tsx (200 tokens)
├── Toggle.tsx (300 tokens)
├── ToggleGroup.tsx (600 tokens)
├── Tooltip.tsx (500 tokens)
├── hooks/
├── useIsMobile.tsx (100 tokens)
├── scrimButton.ts (400 tokens)
├── tests/
├── unit/
├── dialogContent.test.tsx (400 tokens)
├── scrimButton.test.ts (600 tokens)
├── useCatalogImageDimensions.ts (200 tokens)
├── frontStore/
├── Coupon.tsx (700 tokens)
├── CouponForm.tsx (500 tokens)
├── Footer.tsx (1400 tokens)
├── Header.scss
├── Header.tsx (300 tokens)
├── Og.tsx (700 tokens)
├── Pagination.tsx (3.1k tokens)
├── blog/
├── BlogListContext.tsx (200 tokens)
├── BlogPagination.tsx (300 tokens)
├── BlogPostContext.tsx (300 tokens)
├── CommentSection.tsx (1500 tokens)
├── PostListItem.tsx (400 tokens)
├── ReactionBar.tsx (400 tokens)
├── ShareButtons.tsx (400 tokens)
├── cart/
├── AddToCart.tsx (500 tokens)
├── CartContext.tsx (7.4k tokens)
├── CartItems.tsx (300 tokens)
├── CartSummaryItems.tsx (800 tokens)
├── CartTotalSummary.tsx (1800 tokens)
├── DefaultCartItemList.tsx (1200 tokens)
├── DefaultMiniCartDropdown.tsx (600 tokens)
├── DefaultMiniCartDropdownEmpty.tsx (200 tokens)
├── DefaultMiniCartIcon.tsx (300 tokens)
├── DefaultMiniCartItemList.tsx (200 tokens)
├── DefaultMinicartDropdownSummary.tsx (300 tokens)
├── ItemQuantity.tsx (900 tokens)
├── MiniCart.tsx (600 tokens)
├── ShoppingCartEmpty.tsx (300 tokens)
├── catalog/
├── CategoryContext.tsx (300 tokens)
├── CategoryInfo.tsx (600 tokens)
├── CategoryProducts.tsx (200 tokens)
├── CategoryProductsFilter.tsx (200 tokens)
├── CategoryProductsPagination.tsx (200 tokens)
├── DefaultAttributeFilterRender.tsx (1500 tokens)
├── DefaultCategoryFilterRender.tsx (1200 tokens)
├── DefaultFilterWrapperRender.tsx (100 tokens)
├── DefaultPriceFilterRender.tsx (600 tokens)
├── DefaultProductFilterRender.tsx (1300 tokens)
├── DefaultProductFilterSummary.tsx (600 tokens)
├── DefaultVariantSelectorRender.tsx (400 tokens)
├── Media.scss (1100 tokens)
├── Media.tsx (2k tokens)
├── ProductContext.tsx (500 tokens)
├── ProductFilter.tsx (2.2k tokens)
├── ProductList.tsx (1000 tokens)
├── ProductListAddToCart.tsx (700 tokens)
├── ProductListEmptyRender.tsx (100 tokens)
├── ProductListItemRender.tsx (1200 tokens)
├── ProductListLoadingSkeleton.tsx (700 tokens)
├── ProductListingContext.tsx (300 tokens)
├── ProductListingFilter.tsx (300 tokens)
├── ProductListingInfo.tsx (200 tokens)
├── ProductListingPagination.tsx (200 tokens)
├── ProductListingProducts.tsx (200 tokens)
├── ProductSingleAttributes.tsx (200 tokens)
├── ProductSingleDescription.tsx (100 tokens)
├── ProductSingleForm.tsx (900 tokens)
├── ProductSingleName.tsx (100 tokens)
├── ProductSinglePrice.tsx (200 tokens)
├── ProductSingleSku.tsx (100 tokens)
├── ProductSorting.tsx (2000 tokens)
├── SearchBox.tsx (2.4k tokens)
├── SearchContext.tsx (200 tokens)
├── SearchInfo.tsx (500 tokens)
├── SearchProducts.tsx (100 tokens)
├── SearchProductsPagination.tsx (200 tokens)
├── VariantSelector.tsx (1300 tokens)
├── tests/
├── unit/
├── categoryFilterIndent.test.tsx (500 tokens)
├── productCardQueries.test.ts (600 tokens)
├── productListAddToCart.test.tsx (1500 tokens)
├── productListCallers.test.tsx (500 tokens)
├── productSorting.test.ts (800 tokens)
├── checkout/
├── CheckoutButton.tsx (600 tokens)
├── CheckoutContext.tsx (2.6k tokens)
├── ContactInformation.tsx (1400 tokens)
├── OrderSummaryContent.tsx (200 tokens)
├── OrderSummaryItems.tsx (600 tokens)
├── OrderTotalSummary.tsx (800 tokens)
├── Payment.tsx (800 tokens)
├── Shipment.tsx (1600 tokens)
├── ShippingNote.tsx (400 tokens)
├── payment/
├── BillingAddress.tsx (1600 tokens)
├── PaymentMethods.tsx (1400 tokens)
├── shipment/
├── ShippingMethods.tsx (2k tokens)
├── tests/
├── unit/
├── shipmentRequote.test.tsx (700 tokens)
├── customer/
├── AccountHeader.tsx (200 tokens)
├── AccountInfo.tsx (1100 tokens)
├── AccountNav.tsx (200 tokens)
├── CustomerContext.tsx (3.4k tokens)
├── LoginForm.tsx (800 tokens)
├── MyAddresses.tsx (1400 tokens)
├── OrderHistory.tsx (400 tokens)
├── RegistrationForm.tsx (900 tokens)
├── ResetPasswordForm.tsx (500 tokens)
├── address/
├── AddressFields.tsx (2.4k tokens)
├── MasterField.tsx (200 tokens)
├── addressFieldRenderers.tsx (1200 tokens)
├── addressForm/
├── AddressFormLoadingSkeleton.scss (100 tokens)
├── AddressFormLoadingSkeleton.tsx (100 tokens)
├── Index.tsx (1100 tokens)
├── addressFormLogic.ts (2.4k tokens)
├── labelTypes.ts (800 tokens)
├── tests/
├── unit/
├── AddressFields.test.tsx (2.8k tokens)
├── addressFormLogic.test.ts (2.3k tokens)
├── domSetup.ts (600 tokens)
├── labelTypesDrift.test.ts (400 tokens)
├── rendererContract.test.tsx (1700 tokens)
├── useAddressSchema.ts (300 tokens)
├── useRegions.ts (200 tokens)
├── tests/
├── unit/
├── myAddressesMarkup.test.tsx (700 tokens)
├── tests/
├── unit/
├── clientImportGraph.test.ts (700 tokens)
├── lib/
├── address/
├── countries.ts (200 tokens)
├── data/
├── countries.ts (2.1k tokens)
├── regions.ts (43.6k tokens)
├── derive.ts (2.3k tokens)
├── display.ts (800 tokens)
├── extras.ts (700 tokens)
├── format.ts (900 tokens)
├── formats.ts (800 tokens)
├── formats/
├── AC.ts (300 tokens)
├── AD.ts (300 tokens)
├── AE.ts (300 tokens)
├── AF.ts (300 tokens)
├── AG.ts (200 tokens)
├── AI.ts (300 tokens)
├── AL.ts (300 tokens)
├── AM.ts (300 tokens)
├── AO.ts (200 tokens)
├── AQ.ts (200 tokens)
├── AR.ts (300 tokens)
├── AS.ts (300 tokens)
├── AT.ts (300 tokens)
├── AU.ts (300 tokens)
├── AW.ts (200 tokens)
├── AX.ts (300 tokens)
├── AZ.ts (300 tokens)
├── BA.ts (300 tokens)
├── BB.ts (300 tokens)
├── BD.ts (300 tokens)
├── BE.ts (300 tokens)
├── BF.ts (200 tokens)
├── BG.ts (300 tokens)
├── BH.ts (300 tokens)
├── BI.ts (200 tokens)
├── BJ.ts (200 tokens)
├── BL.ts (300 tokens)
├── BM.ts (300 tokens)
├── BN.ts (300 tokens)
├── BO.ts (200 tokens)
├── BQ.ts (200 tokens)
├── BR.ts (300 tokens)
├── BS.ts (300 tokens)
├── BT.ts (300 tokens)
├── BV.ts (200 tokens)
├── BW.ts (200 tokens)
├── BY.ts (300 tokens)
├── BZ.ts (200 tokens)
├── CA.ts (300 tokens)
├── CC.ts (300 tokens)
├── CD.ts (200 tokens)
├── CF.ts (200 tokens)
├── CG.ts (200 tokens)
├── CH.ts (300 tokens)
├── CI.ts (200 tokens)
├── CK.ts (200 tokens)
├── CL.ts (300 tokens)
├── CM.ts (200 tokens)
├── CN.ts (300 tokens)
├── CO.ts (300 tokens)
├── CR.ts (300 tokens)
├── CU.ts (300 tokens)
├── CV.ts (300 tokens)
├── CW.ts (200 tokens)
├── CX.ts (300 tokens)
├── CY.ts (300 tokens)
├── CZ.ts (300 tokens)
├── DE.ts (300 tokens)
├── DEFAULT.ts (200 tokens)
├── DJ.ts (200 tokens)
├── DK.ts (300 tokens)
├── DM.ts (200 tokens)
├── DO.ts (300 tokens)
├── DZ.ts (300 tokens)
├── EC.ts (300 tokens)
├── EE.ts (300 tokens)
├── EG.ts (300 tokens)
├── EH.ts (300 tokens)
├── ER.ts (200 tokens)
├── ES.ts (300 tokens)
├── ET.ts (300 tokens)
├── FI.ts (300 tokens)
├── FJ.ts (200 tokens)
├── FK.ts (300 tokens)
├── FM.ts (300 tokens)
├── FO.ts (300 tokens)
├── FR.ts (300 tokens)
├── GA.ts (200 tokens)
├── GB.ts (400 tokens)
├── GD.ts (200 tokens)
├── GE.ts (300 tokens)
├── GF.ts (300 tokens)
├── GG.ts (300 tokens)
├── GH.ts (200 tokens)
├── GI.ts (300 tokens)
├── GL.ts (300 tokens)
├── GM.ts (200 tokens)
├── GN.ts (300 tokens)
├── GP.ts (300 tokens)
├── GQ.ts (200 tokens)
├── GR.ts (300 tokens)
├── GS.ts (200 tokens)
├── GT.ts (300 tokens)
├── GU.ts (300 tokens)
├── GW.ts (300 tokens)
├── GY.ts (200 tokens)
├── HK.ts (300 tokens)
├── HM.ts (200 tokens)
├── HN.ts (300 tokens)
├── HR.ts (300 tokens)
├── HT.ts (300 tokens)
├── HU.ts (300 tokens)
├── ID.ts (300 tokens)
├── IE.ts (300 tokens)
├── IL.ts (300 tokens)
├── IM.ts (300 tokens)
├── IN.ts (300 tokens)
├── IO.ts (300 tokens)
├── IQ.ts (300 tokens)
├── IR.ts (300 tokens)
├── IS.ts (300 tokens)
├── IT.ts (300 tokens)
├── JE.ts (300 tokens)
├── JM.ts (300 tokens)
├── JO.ts (300 tokens)
├── JP.ts (300 tokens)
├── KE.ts (300 tokens)
├── KG.ts (300 tokens)
├── KH.ts (300 tokens)
├── KI.ts (300 tokens)
├── KM.ts (200 tokens)
├── KN.ts (300 tokens)
├── KP.ts (300 tokens)
├── KR.ts (300 tokens)
├── KW.ts (300 tokens)
├── KY.ts (300 tokens)
├── KZ.ts (300 tokens)
├── LA.ts (300 tokens)
├── LB.ts (300 tokens)
├── LC.ts (200 tokens)
├── LI.ts (300 tokens)
├── LK.ts (300 tokens)
├── LR.ts (300 tokens)
├── LS.ts (300 tokens)
├── LT.ts (300 tokens)
├── LU.ts (300 tokens)
├── LV.ts (300 tokens)
├── LY.ts (200 tokens)
├── MA.ts (300 tokens)
├── MC.ts (300 tokens)
├── MD.ts (300 tokens)
├── ME.ts (300 tokens)
├── MF.ts (300 tokens)
├── MG.ts (300 tokens)
├── MH.ts (300 tokens)
├── MK.ts (300 tokens)
├── ML.ts (200 tokens)
├── MM.ts (300 tokens)
├── MN.ts (300 tokens)
├── MO.ts (300 tokens)
├── MP.ts (300 tokens)
├── MQ.ts (300 tokens)
├── MR.ts (200 tokens)
├── MS.ts (200 tokens)
├── MT.ts (300 tokens)
├── MU.ts (300 tokens)
├── MV.ts (300 tokens)
├── MW.ts (200 tokens)
├── MX.ts (300 tokens)
├── MY.ts (300 tokens)
├── MZ.ts (300 tokens)
├── NA.ts (300 tokens)
├── NC.ts (300 tokens)
├── NE.ts (300 tokens)
├── NF.ts (300 tokens)
├── NG.ts (300 tokens)
├── NI.ts (300 tokens)
├── NL.ts (300 tokens)
├── NO.ts (300 tokens)
├── NP.ts (300 tokens)
├── NR.ts (300 tokens)
├── NU.ts (200 tokens)
├── NZ.ts (300 tokens)
├── OM.ts (300 tokens)
├── PA.ts (300 tokens)
├── PE.ts (300 tokens)
├── PF.ts (300 tokens)
├── PG.ts (300 tokens)
├── PH.ts (300 tokens)
├── PK.ts (300 tokens)
├── PL.ts (300 tokens)
├── PM.ts (300 tokens)
├── PN.ts (200 tokens)
├── PR.ts (300 tokens)
├── PS.ts (200 tokens)
├── PT.ts (300 tokens)
├── PW.ts (300 tokens)
├── PY.ts (300 tokens)
├── QA.ts (200 tokens)
├── RE.ts (300 tokens)
├── RO.ts (300 tokens)
├── RS.ts (300 tokens)
├── RU.ts (300 tokens)
├── RW.ts (200 tokens)
├── SA.ts (300 tokens)
├── SB.ts (200 tokens)
├── SC.ts (300 tokens)
├── SD.ts (300 tokens)
├── SE.ts (300 tokens)
├── SG.ts (300 tokens)
├── SH.ts (300 tokens)
├── SI.ts (300 tokens)
├── SJ.ts (300 tokens)
├── SK.ts (300 tokens)
├── SL.ts (200 tokens)
├── SM.ts (300 tokens)
├── SN.ts (300 tokens)
├── SO.ts (300 tokens)
├── SR.ts (300 tokens)
├── SS.ts (200 tokens)
├── ST.ts (200 tokens)
├── SV.ts (300 tokens)
├── SX.ts (200 tokens)
├── SY.ts (300 tokens)
├── SZ.ts (300 tokens)
├── TA.ts (300 tokens)
├── TC.ts (300 tokens)
├── TD.ts (200 tokens)
├── TF.ts (200 tokens)
├── TG.ts (200 tokens)
├── TH.ts (300 tokens)
├── TJ.ts (300 tokens)
├── TK.ts (200 tokens)
├── TL.ts (200 tokens)
├── TM.ts (300 tokens)
├── TN.ts (300 tokens)
├── TO.ts (200 tokens)
├── TR.ts (300 tokens)
├── TT.ts (300 tokens)
├── TV.ts (300 tokens)
├── TW.ts (300 tokens)
├── TZ.ts (300 tokens)
├── UA.ts (300 tokens)
├── UG.ts (200 tokens)
├── UM.ts (200 tokens)
├── US.ts (300 tokens)
├── UY.ts (300 tokens)
├── UZ.ts (300 tokens)
├── VA.ts (300 tokens)
├── VC.ts (300 tokens)
├── VE.ts (300 tokens)
├── VG.ts (300 tokens)
├── VI.ts (300 tokens)
├── VN.ts (300 tokens)
├── VU.ts (200 tokens)
├── WF.ts (300 tokens)
├── WS.ts (200 tokens)
├── XK.ts (300 tokens)
├── YE.ts (200 tokens)
├── YT.ts (300 tokens)
├── ZA.ts (300 tokens)
├── ZM.ts (300 tokens)
├── ZW.ts (200 tokens)
├── index.ts (1900 tokens)
├── index.ts (600 tokens)
├── integration.ts (900 tokens)
├── labels.ts (300 tokens)
├── names.ts (1000 tokens)
├── regions.ts (1400 tokens)
├── runtime.ts (500 tokens)
├── settings.ts (2.7k tokens)
├── tests/
├── unit/
├── addressFixtures.ts (700 tokens)
├── countries.test.ts (300 tokens)
├── derive.test.ts (4.1k tokens)
├── display.test.ts (1600 tokens)
├── extras.test.ts (900 tokens)
├── fixtures/
├── legacyOrderAddressRows.json (800 tokens)
├── format.test.ts (1200 tokens)
├── formats.test.ts (1400 tokens)
├── generatedData.test.ts (2k tokens)
├── integration.test.ts (900 tokens)
├── labels.test.ts (600 tokens)
├── legacyOrderFixture.test.ts (900 tokens)
├── names.test.ts (1300 tokens)
├── purity.test.ts (600 tokens)
├── regionKeyGuard.test.ts (500 tokens)
├── regions.test.ts (2.4k tokens)
├── resolve.test.ts (2.3k tokens)
├── runtime.test.ts (700 tokens)
├── settings.test.ts (3k tokens)
├── validate.test.ts (5.4k tokens)
├── tokens.ts (500 tokens)
├── types.ts (2.4k tokens)
├── validate.ts (2.6k tokens)
├── babel/
├── config.js (100 tokens)
├── index.js
├── componee/
├── getComponentsByRoute.ts (300 tokens)
├── scanForComponents.ts (700 tokens)
├── scanForRootComponents.ts (300 tokens)
├── tests/
├── unit/
├── __mocks__/
├── extensions/
├── firstExtension/
├── pages/
├── frontStore/
├── all/
├── Banner.js
├── CommentList.js
├── productView/
├── Attribute.js
├── Comment.js
├── Name.js
├── Price.js
├── secondExtension/
├── pages/
├── frontStore/
├── all/
├── CommentList.jsx
├── productView/
├── Comment.jsx
├── Name.jsx
├── Review.jsx
├── modules/
├── firstModule/
├── pages/
├── frontStore/
├── all/
├── Menu.js
├── productView/
├── Name.js
├── Price.js
├── secondModule/
├── pages/
├── frontStore/
├── all/
├── Banner.js
├── productView/
├── Description.js
├── Inventory.js
├── Name.js
├── themes/
├── justatheme/
├── pages/
├── all/
├── CommentList.js
├── Shipping.js
├── productView/
├── Name.js
├── OutOfStock.js
├── Price.js
├── layoutDeclaration.test.ts (500 tokens)
├── scanRouteComponents.test.js (800 tokens)
├── themeLayouts.test.ts (600 tokens)
├── themeLayoutsReload.test.ts (300 tokens)
├── themeLayouts.ts (900 tokens)
├── cronjob/
├── cronjob.ts (400 tokens)
├── jobManager.ts (2k tokens)
├── tests/
├── unit/
├── jobManager.test.js (1200 tokens)
├── event/
├── EventProcessor.ts (700 tokens)
├── EventStorage.ts (400 tokens)
├── callSubscibers.ts (100 tokens)
├── emitter.ts (300 tokens)
├── event-manager.ts (700 tokens)
├── loadSubscribers.ts (400 tokens)
├── subscriber.ts (400 tokens)
├── tests/
├── unit/
├── EventProcessor.test.js (2.6k tokens)
├── callSubscribers.test.js (600 tokens)
├── loadSubscribers.test.js (500 tokens)
├── helpers.ts (300 tokens)
├── locale/
├── activeDictionary.ts (700 tokens)
├── currencies.ts (1500 tokens)
├── dictionary.ts (1200 tokens)
├── getTranslatableKeys.ts (300 tokens)
├── index.ts
├── interpolate.ts (100 tokens)
├── languages.ts (1500 tokens)
├── localeContext.ts (700 tokens)
├── localeResolution.ts (1000 tokens)
├── tests/
├── unit/
├── _.test.js (300 tokens)
├── activeDictionary.test.js (400 tokens)
├── activeLocaleFallback.test.ts (400 tokens)
├── dictionary.test.js (600 tokens)
├── getTranslatableKeys.test.js (300 tokens)
├── interpolate.test.js (300 tokens)
├── localeContext.test.js (900 tokens)
├── localeResolution.test.js (1500 tokens)
├── translate.test.js (400 tokens)
├── timezones.ts (7.6k tokens)
├── translate/
├── _.ts (200 tokens)
├── translate.ts (300 tokens)
├── log/
├── CustomColorize.js (100 tokens)
├── logger.js (1000 tokens)
├── mail/
├── emailHelper.ts (2.8k tokens)
├── logoSizing.ts (300 tokens)
├── templates/
├── index.ts (300 tokens)
├── layout.ts (600 tokens)
├── partials.ts (400 tokens)
├── tokens.ts (200 tokens)
├── tests/
├── unit/
├── emailTemplates.test.js (900 tokens)
├── logoSizing.test.js (200 tokens)
├── sendEmailArgumentPassthrough.test.ts (1000 tokens)
├── metafield/
├── compileField.ts (600 tokens)
├── definition.ts (1900 tokens)
├── definitionCache.ts (300 tokens)
├── index.ts (200 tokens)
├── metaDataSql.ts (400 tokens)
├── projection.ts (700 tokens)
├── provision.ts (4.4k tokens)
├── shape.ts (300 tokens)
├── tests/
├── unit/
├── compileField.test.ts (1100 tokens)
├── metaDataSql.test.ts (600 tokens)
├── projection.test.ts (300 tokens)
├── provision.test.ts (1800 tokens)
├── types.ts (400 tokens)
├── validate.ts (1300 tokens)
├── middleware/
├── Handler.js (1000 tokens)
├── addMiddleware.js (100 tokens)
├── buildMiddlewareFunction.js (700 tokens)
├── delegate.ts (600 tokens)
├── eNext.js (100 tokens)
├── findDublicatedMiddleware.js (100 tokens)
├── getRouteFromPath.js (200 tokens)
├── index.js (600 tokens)
├── isErrorHandlerTriggered.js
├── isNextRequired.js
├── noDuplicateId.js (100 tokens)
├── parseFromFile.js (800 tokens)
├── scanForMiddlewareFunctions.js (200 tokens)
├── sort.js (800 tokens)
├── tests/
├── app/
├── app.js (500 tokens)
├── modules/
├── 404page/
├── pages/
├── frontStore/
├── product/
├── [loadProduct]loadCategory.js
├── [loadProduct]loadProductImage.js
├── loadProduct.js
├── route.json
├── api/
├── api/
├── createA/
├── index.js
├── route.json
├── global/
├── apiGlobal.js
├── authcopy/
├── api/
├── createA/
├── [index]afterIndex.js
├── global/
├── [context]auth.js
├── apiAuthGlobal.js
├── pages/
├── global/
├── [context]auth.js
├── basecopy/
├── api/
├── global/
├── [apiResponse]apiErrorHandler.js
├── [auth]apiResponse[apiErrorHandler].js
├── [auth]payloadValidate.js
├── [payloadValidate]escapeHtml.js
├── context.js (300 tokens)
├── pages/
├── admin/
├── adminStaticAsset/
├── route.json
├── staticAssets.js
├── all/
├── adminTitle.js
├── frontStore/
├── all/
├── title.js
├── notFound/
├── route.json
├── staticAsset/
├── [context]staticAssets[auth].js
├── route.json
├── global/
├── [auth]notFound[response].js
├── [notFound]dummy[response].js
├── [response]errorHandler.js
├── context.js (300 tokens)
├── response[errorHandler].js
├── delegate/
├── pages/
├── frontStore/
├── delegateTest/
├── asyncWithNext[collection].js
├── async[collection].js
├── collection.js (100 tokens)
├── returnOne[returnTwo].js
├── returnThree[collection].js
├── returnTwo[returnThree].js
├── route.json
├── syncOne.js
├── syncWithNext[collection].js
├── sync[collection].js
├── error/
├── pages/
├── frontStore/
├── errorHandlerTest/
├── errorInAsync.js
├── errorInAsyncWithNext.js (100 tokens)
├── errorInSync.js
├── errorInSyncWithNext.js
├── route.json
├── graphqlcopy/
├── pages/
├── global/
├── [bodyParser]buildQuery[graphql].js
├── [buildQuery]graphql[notFound].js
├── bodyParser[buildQuery].js
├── handler/
├── pages/
├── admin/
├── productEdit/
├── [loadProduct]loadCategory.js
├── [loadProduct]loadProductImage.js
├── loadProduct.js
├── route.json
├── frontStore/
├── middleware/
├── [loadAttribute]loadOptions.js
├── [loadProductImage]loadAttribute.js
├── [loadProduct]loadCategory.js
├── [loadProduct]loadProductImage.js
├── [syncOne,asyncOne]checkExecutionOrderAsync[loadAttribute].js (100 tokens)
├── [syncOne,asyncOne]checkExecutionOrder[loadAttribute].js (100 tokens)
├── asyncOne[loadAttribute].js
├── loadProduct[loadAttribute].js
├── route.json
├── syncOne[loadAttribute].js
├── unit/
├── 404page.handling.test.js (400 tokens)
├── 500error.handling.test.js (200 tokens)
├── apiHandler.middleware.test.js (200 tokens)
├── delegate.test.js (500 tokens)
├── handler.getMiddlewaresByRoute.test.js (400 tokens)
├── handlers.middleware.test.js (500 tokens)
├── middleware.buildMiddlewareFunction.test.js (600 tokens)
├── middleware.getRouteFromPath.test.js (700 tokens)
├── middleware.noDublicateId.test.js (600 tokens)
├── middleware.scanForMiddlewareFunctions.test.js (500 tokens)
├── parseFromFile.authInjection.test.js (1300 tokens)
├── middlewares/
├── bodyJson.ts (100 tokens)
├── multerNone.ts
├── publicStatic.ts (200 tokens)
├── static.ts (700 tokens)
├── themePublicStatic.ts (200 tokens)
├── pathToRegexp.js (1100 tokens)
├── postgres/
├── connection.ts (400 tokens)
├── query.ts (3.8k tokens)
├── tests/
├── unit/
├── pruneUnreferencedLeftJoins.test.ts (1000 tokens)
├── rawSqlInjection.test.ts (500 tokens)
├── response/
├── render.ts (1500 tokens)
├── serializeEContext.ts (300 tokens)
├── tests/
├── unit/
├── serializeEContext.test.js (600 tokens)
├── router/
├── Router.js (200 tokens)
├── buildAbsoluteUrl.ts (100 tokens)
├── buildUrl.ts (500 tokens)
├── index.ts
├── loadModuleRoutes.js (300 tokens)
├── registerAdminRoute.js (100 tokens)
├── registerFrontStoreRoute.js (200 tokens)
├── scanForRoutes.js (600 tokens)
├── sortRoutes.js (100 tokens)
├── tests/
├── unit/
├── a/
├── invalidMethod/
├── routeOne/
├── route.json
├── invalidPath/
├── routeTwo/
├── route.json
├── b/
├── routeOne/
├── route.json
├── routeThree/
├── route.json
├── routeTwo/
├── route.json
├── unit.buildUrl.test.js (400 tokens)
├── unit.scanForRoutes.test.js (200 tokens)
├── unit.validateRoute.test.js (200 tokens)
├── validateRoute.js (100 tokens)
├── theme/
├── assetHarvest.ts (1100 tokens)
├── assets.ts (1500 tokens)
├── auditLog.ts (300 tokens)
├── canonicalize.ts (100 tokens)
├── diff.ts (3.7k tokens)
├── export.ts (1800 tokens)
├── fingerprint.ts (200 tokens)
├── install.ts (4k tokens)
├── landingPages.ts (1700 tokens)
├── manifest.ts (3.8k tokens)
├── prompts.ts (200 tokens)
├── provisionOnBoot.ts (500 tokens)
├── storeRefs.ts (1400 tokens)
├── tests/
├── unit/
├── assetHarvest.test.ts (1000 tokens)
├── canonicalize.test.ts (300 tokens)
├── diff.test.ts (2.2k tokens)
├── exportEntityScoped.test.ts (500 tokens)
├── fingerprint.test.ts (300 tokens)
├── landingPageDiff.test.ts (1700 tokens)
├── landingPageUrlKey.test.ts (600 tokens)
├── manifest.test.ts (1600 tokens)
├── storeRefs.test.ts (800 tokens)
├── themeAssets.test.ts (1000 tokens)
├── themeId.test.ts (200 tokens)
├── version.test.ts (200 tokens)
├── themeId.ts (200 tokens)
├── uninstall.ts (1000 tokens)
├── version.ts (100 tokens)
├── urn/
├── index.ts (500 tokens)
├── services/
├── UrnRegistry.ts (200 tokens)
├── UrnService.ts (500 tokens)
├── tests/
├── unit/
├── urn.test.ts (1000 tokens)
├── util/
├── assign.js (200 tokens)
├── buildFilterFromUrl.ts (700 tokens)
├── camelCase.ts (100 tokens)
├── cn.ts
├── coerce.ts (300 tokens)
├── defaultPaginationFilters.js (700 tokens)
├── deriveProductImageSize.ts (300 tokens)
├── entityScopeRegistry.ts (400 tokens)
├── events.ts
├── filterOperationMap.ts (100 tokens)
├── formToJson.js (300 tokens)
├── get.ts (200 tokens)
├── getActiveTheme.ts (200 tokens)
├── getBaseUrl.ts (400 tokens)
├── getConfig.ts (1600 tokens)
├── getEnabledTheme.ts (400 tokens)
├── getEnv.ts (100 tokens)
├── getTrustProxyHops.ts (200 tokens)
├── hookable.ts (800 tokens)
├── httpStatus.ts (100 tokens)
├── isAjax.ts
├── isDevelopmentMode.ts
├── isPlainObject.ts (100 tokens)
├── isProductionMode.ts
├── isResolvable.ts (200 tokens)
├── jsonParse.ts (100 tokens)
├── jwt.ts (1100 tokens)
├── keyGenerator.ts (100 tokens)
├── markdownInline.tsx (500 tokens)
├── merge.js (400 tokens)
├── mime.ts (800 tokens)
├── mimeMatch.ts (200 tokens)
├── parseImageSizes.ts (2.4k tokens)
├── passwordHelper.ts (300 tokens)
├── pastedFileName.ts (800 tokens)
├── preloadScan.ts (600 tokens)
├── readCsvFile.ts (100 tokens)
├── registry.ts (2.4k tokens)
├── safeUrl.ts (300 tokens)
├── sanitizeHtml.ts (1600 tokens)
├── secureFetch.ts (900 tokens)
├── shiftIntoView.ts (200 tokens)
├── slugify.ts (300 tokens)
├── tests/
├── unit/
├── deriveProductImageSize.test.js (300 tokens)
├── getTrustProxyHops.test.ts (200 tokens)
├── mime.test.ts (600 tokens)
├── mimeMatch.test.ts (200 tokens)
├── paginationLimitCap.test.ts (900 tokens)
├── pastedFileName.test.ts (1100 tokens)
├── sanitizeHtml.test.ts (1400 tokens)
├── secureFetch.test.ts (300 tokens)
├── shiftIntoView.test.ts (400 tokens)
├── slugify.test.ts (300 tokens)
├── util.assign.test.js (200 tokens)
├── util.get.test.js (200 tokens)
├── util.getBaseUrl.test.js (600 tokens)
├── util.getConfig.test.js (100 tokens)
├── util.hookable.test.js (1200 tokens)
├── util.jwt.test.js (5.4k tokens)
├── util.merge.test.js (300 tokens)
├── util.parseImageSizes.test.js (5k tokens)
├── util.preloadScan.test.js (3k tokens)
├── util.registry.test.js (1500 tokens)
├── util.secureFetch.test.js (500 tokens)
├── validateConfiguration.js (400 tokens)
├── validator.ts (400 tokens)
├── virtualCollection.ts (600 tokens)
├── webpack/
├── createBaseConfig.js (900 tokens)
├── dev/
├── createConfigClient.js (900 tokens)
├── getRouteBuildPath.js (100 tokens)
├── getRouteBuildSubPath.js
├── isBuildRequired.ts (100 tokens)
├── loaders/
├── AreaLoader.js (1400 tokens)
├── GraphQLAPILoader.js (100 tokens)
├── GraphqlLoader.js (100 tokens)
├── LayoutLoader.js (100 tokens)
├── StyleLoader.js
├── TailwindLoader.js (400 tokens)
├── plugins/
├── FileListPlugin.js (200 tokens)
├── GraphqlPlugin.js (200 tokens)
├── InjectTailwindSources.ts (200 tokens)
├── Tailwindcss.ts (700 tokens)
├── ThemeWatcherPlugin.ts (1400 tokens)
├── prod/
├── createConfigClient.js (1900 tokens)
├── createConfigServer.js (400 tokens)
├── resolveAlias.js (300 tokens)
├── tests/
├── unit/
├── areaLoaderSharedWidgetComponents.test.ts (600 tokens)
├── extensions/
├── extensionA/
├── components/
├── a/
├── A.jsx
├── a.scss
├── b/
├── B.jsx
├── B.scss
├── bb/
├── BB.jsx
├── d/
├── D.jsx
├── D.scss
├── dd/
├── DD.jsx
├── extensionB/
├── components/
├── a/
├── A.jsx
├── a.scss
├── d/
├── D.jsx
├── D.scss
├── dd/
├── DD.jsx
├── e/
├── E.jsx
├── E.scss
├── ee/
├── EE.jsx
├── resolveAlias.test.js (300 tokens)
├── theme/
├── components/
├── a/
├── A.jsx
├── a.scss
├── b/
├── B.jsx
├── B.scss
├── bb/
├── BB.jsx
├── util/
├── getTailwindConfig.js (200 tokens)
├── getTailwindSources.ts (200 tokens)
├── parseGraphql.js (600 tokens)
├── parseGraphqlByFile.js (1500 tokens)
├── widget/
├── linkResolver.ts (1700 tokens)
├── tests/
├── unit/
├── linkResolver.test.ts (900 tokens)
├── variableCheck.test.ts (1800 tokens)
├── widgetManager.test.js (1400 tokens)
├── widgetVariables.test.ts (1500 tokens)
├── variableCheck.ts (1600 tokens)
├── widgetManager.ts (4.1k tokens)
├── widgetVariables.ts (1000 tokens)
├── modules/
├── auth/
├── api/
├── getUserToken/
├── [context]bodyParser[auth].ts
├── generateToken.ts (300 tokens)
├── payloadSchema.json
├── route.json
├── global/
├── [context]getCurrentUser.ts (500 tokens)
├── [context]jwtUserAuth[getCurrentUser].ts (200 tokens)
├── [getCurrentUser]auth.ts (300 tokens)
├── [getCurrentUser]demoAccountBlocking[auth].ts (200 tokens)
├── refreshUserToken/
├── [context]bodyParser[auth].ts
├── payloadSchema.json (100 tokens)
├── refreshToken.ts (300 tokens)
├── route.json
├── sessionTokens/
├── route.json
├── sessionTokens.ts (400 tokens)
├── bootstrap.ts (200 tokens)
├── graphql/
├── types/
├── AdminUser/
├── AdminUser.admin.graphql (100 tokens)
├── AdminUser.admin.resolvers.js (600 tokens)
├── migration/
├── Version-1.0.0.js (300 tokens)
├── Version-1.0.1.js (100 tokens)
├── pages/
├── admin/
├── adminLogin/
├── LoginForm.scss (200 tokens)
├── LoginForm.tsx (1000 tokens)
├── index.ts (100 tokens)
├── route.json
├── adminLoginJson/
├── [bodyParser]logIn.js (200 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── adminLogoutJson/
├── logout.js (100 tokens)
├── route.json
├── all/
├── AdminUser.jsx (600 tokens)
├── [context]auth.js (300 tokens)
├── services/
├── buildAdminUserPayload.ts (100 tokens)
├── getAdminSessionCookieName.ts
├── getCookieSecret.ts
├── getFrontStoreSessionCookieName.ts
├── getSessionConfig.ts (200 tokens)
├── loginUserWithEmail.ts (400 tokens)
├── logoutUser.ts (200 tokens)
├── base/
├── api/
├── createMetafieldDefinition/
├── [context]bodyParser[auth].ts
├── createMetafieldDefinition.ts (300 tokens)
├── payloadSchema.json (500 tokens)
├── route.json
├── deleteMetafieldDefinition/
├── deleteMetafieldDefinition.ts (200 tokens)
├── route.json
├── getMetafieldDefinitions/
├── getMetafieldDefinitions.ts (200 tokens)
├── route.json
├── global/
├── [apiResponse]apiErrorHandler.ts (200 tokens)
├── [auth]apiResponse[apiErrorHandler].ts (200 tokens)
├── [auth]payloadValidate.ts (300 tokens)
├── [payloadValidate]escapeHtml.ts (100 tokens)
├── context.js (300 tokens)
├── updateMetafieldDefinition/
├── [context]bodyParser[auth].ts
├── payloadSchema.json (200 tokens)
├── route.json
├── updateMetafieldDefinition.ts (300 tokens)
├── updateShopMetafields/
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── updateShopMetafields.ts (100 tokens)
├── bootstrap.js (1300 tokens)
├── graphql/
├── types/
├── Address/
├── Address.graphql (500 tokens)
├── Address.resolvers.ts (500 tokens)
├── AddressConfigWarnings.admin.graphql (100 tokens)
├── AddressConfigWarnings.admin.resolvers.ts (100 tokens)
├── Country/
├── Country.graphql (100 tokens)
├── Country.resolvers.ts (200 tokens)
├── Currency/
├── Currency.graphql
├── Currency.resolvers.js
├── DateTime/
├── DateTime.graphql
├── DateTime.resolvers.js (200 tokens)
├── Metafield/
├── Metafield.graphql (100 tokens)
├── Metafield.resolvers.ts (100 tokens)
├── MetafieldDefinition.admin.graphql (100 tokens)
├── MetafieldDefinition.admin.resolvers.ts (100 tokens)
├── Route/
├── Route.admin.graphql (400 tokens)
├── Route.admin.resolvers.js (1000 tokens)
├── Timezone/
├── Timezone.graphql
├── Timezone.resolvers.js
├── Url/
├── Url.graphql
├── Url.resolvers.js (200 tokens)
├── Version/
├── Version.graphql
├── Version.resolvers.js (100 tokens)
├── migration/
├── Version-1.0.1.js (100 tokens)
├── Version-1.0.2.js (200 tokens)
├── Version-1.0.3.ts (500 tokens)
├── Version-1.0.4.ts (300 tokens)
├── Version-1.0.5.ts (200 tokens)
├── Version-1.0.6.ts (300 tokens)
├── Version-1.0.7.ts (200 tokens)
├── pages/
├── admin/
├── all/
├── FormCss.tsx
├── GlobalCss.tsx
├── Layout.tsx (200 tokens)
├── Meta.tsx (100 tokens)
├── TailwindCss.tsx
├── [context]isAdmin[auth].js
├── form.scss (1700 tokens)
├── global.scss (100 tokens)
├── shadcn.css (300 tokens)
├── tailwind.css (900 tokens)
├── frontStore/
├── all/
├── Base.tsx (1400 tokens)
├── Breadcrumb.tsx (300 tokens)
├── GlobalCss.tsx
├── GoogleAnalytics.tsx (500 tokens)
├── HeadTags.tsx (1100 tokens)
├── LanguageSwitcher.tsx (100 tokens)
├── Logo.tsx (900 tokens)
├── Notification.tsx (200 tokens)
├── TailwindCss.tsx
├── global.scss (600 tokens)
├── redirect.ts (800 tokens)
├── serveSitemap.ts (800 tokens)
├── shadcn.css (300 tokens)
├── tailwind.css (700 tokens)
├── tests/
├── unit/
├── redirect.test.ts (1200 tokens)
├── serveSitemap.test.ts (1800 tokens)
├── global/
├── [auth]notFound[response].ts (100 tokens)
├── [response]errorHandler.js (200 tokens)
├── context.js (400 tokens)
├── response[errorHandler].ts (1000 tokens)
├── services/
├── address/
├── addressConfigWarnings.ts (1400 tokens)
├── countryScopes.ts (400 tokens)
├── getAddressSettings.ts (500 tokens)
├── graphqlAddress.ts (1000 tokens)
├── resolveStoreAddressSchema.ts (300 tokens)
├── assertUrlKeyAvailable.ts (400 tokens)
├── escapePayload.ts (200 tokens)
├── getAjv.js (100 tokens)
├── markSkipEscape.ts (200 tokens)
├── notifications.js (200 tokens)
├── rateLimit.ts (1100 tokens)
├── recordRedirect.ts (1100 tokens)
├── secret.js
├── shopMetafield.ts (400 tokens)
├── sitemap/
├── chunk.ts (200 tokens)
├── collectors/
├── builtins.ts (700 tokens)
├── entityCollector.ts (600 tokens)
├── mappers.ts (500 tokens)
├── staticCollector.ts (300 tokens)
├── config.ts (600 tokens)
├── ensureSitemap.ts (200 tokens)
├── expandLocales.ts (700 tokens)
├── fingerprint.ts (300 tokens)
├── generateSitemap.ts (1200 tokens)
├── generateSitemapJob.ts (100 tokens)
├── index.ts (200 tokens)
├── registry.ts (100 tokens)
├── render/
├── escapeXml.ts (100 tokens)
├── renderIndex.ts (300 tokens)
├── renderRobotsTxt.ts (200 tokens)
├── renderUrlset.ts (400 tokens)
├── storage.ts (700 tokens)
├── tests/
├── unit/
├── chunk.test.ts (300 tokens)
├── config.test.ts (500 tokens)
├── escapeXml.test.ts (100 tokens)
├── expandLocales.test.ts (800 tokens)
├── fingerprint.test.ts (700 tokens)
├── generateSitemap.test.ts (1100 tokens)
├── mappers.test.ts (400 tokens)
├── registry.test.ts (200 tokens)
├── renderIndex.test.ts (300 tokens)
├── renderRobotsTxt.test.ts (200 tokens)
├── renderUrlset.test.ts (500 tokens)
├── storage.test.ts (600 tokens)
├── types.ts (600 tokens)
├── tests/
├── unit/
├── recordRedirect.test.ts (1400 tokens)
├── subscribers/
├── metafield_definition_deleted/
├── pruneShop.ts (100 tokens)
├── tests/
├── unit/
├── addressConfigWarnings.test.ts (800 tokens)
├── addressResolvers.test.ts (1200 tokens)
├── apiBodyParser.test.ts (500 tokens)
├── getAddressSettings.test.ts (700 tokens)
├── rateLimit.test.ts (500 tokens)
├── blog/
├── api/
├── createBlogCategory/
├── [context]bodyParser[auth].ts
├── createBlogCategory[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── createBlogPost/
├── [context]bodyParser[auth].ts
├── createBlogPost[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (300 tokens)
├── route.json
├── createBlogTag/
├── [context]bodyParser[auth].ts
├── createBlogTag[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── deleteBlogCategory/
├── deleteBlogCategory.ts (200 tokens)
├── route.json
├── deleteBlogComment/
├── [context]bodyParser[auth].ts
├── deleteBlogComment[finish].ts (100 tokens)
├── finish[apiResponse].ts (100 tokens)
├── route.json
├── deleteBlogPost/
├── deleteBlogPost.ts (200 tokens)
├── route.json
├── deleteBlogTag/
├── deleteBlogTag.ts (200 tokens)
├── route.json
├── likeBlogComment/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (100 tokens)
├── likeBlogComment[finish].ts (200 tokens)
├── route.json
├── moderateBlogComment/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (100 tokens)
├── moderateBlogComment[finish].ts (100 tokens)
├── payloadSchema.json
├── route.json
├── reactToBlogPost/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (100 tokens)
├── payloadSchema.json
├── reactToBlogPost[finish].ts (200 tokens)
├── route.json
├── submitBlogComment/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (100 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── submitBlogComment[finish].ts (300 tokens)
├── updateBlogCategory/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── updateBlogCategory[finish].ts (100 tokens)
├── updateBlogPost/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (300 tokens)
├── route.json
├── updateBlogPost[finish].ts (100 tokens)
├── updateBlogTag/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── updateBlogTag[finish].ts (100 tokens)
├── bootstrap.ts (1300 tokens)
├── components/
├── admin/
├── FeaturedBlogsPreview.tsx (200 tokens)
├── FeaturedBlogsSetting.tsx (1600 tokens)
├── frontStore/
├── FeaturedBlogs.tsx (800 tokens)
├── graphql/
├── types/
├── BlogCategory/
├── BlogCategory.admin.graphql
├── BlogCategory.admin.resolvers.ts (100 tokens)
├── BlogCategory.graphql (100 tokens)
├── BlogCategory.resolvers.ts (500 tokens)
├── BlogCategoryMetafields.graphql
├── BlogCategoryMetafields.resolvers.ts (200 tokens)
├── BlogComment/
├── BlogComment.admin.graphql (100 tokens)
├── BlogComment.admin.resolvers.ts (100 tokens)
├── BlogComment.graphql (100 tokens)
├── BlogComment.resolvers.ts (400 tokens)
├── BlogPost/
├── BlogPost.admin.graphql
├── BlogPost.admin.resolvers.ts (100 tokens)
├── BlogPost.graphql (200 tokens)
├── BlogPost.resolvers.ts (900 tokens)
├── BlogPostMetafields.graphql
├── BlogPostMetafields.resolvers.ts (200 tokens)
├── BlogTag/
├── BlogTag.admin.graphql
├── BlogTag.admin.resolvers.ts (100 tokens)
├── BlogTag.graphql (100 tokens)
├── BlogTag.resolvers.ts (500 tokens)
├── FeaturedBlogsWidget/
├── FeaturedBlogsWidget.graphql (100 tokens)
├── FeaturedBlogsWidget.resolvers.ts (500 tokens)
├── tests/
├── unit/
├── featuredBlogsWidget.test.ts (900 tokens)
├── lib/
├── BlogUrn.ts (100 tokens)
├── migration/
├── Version-1.0.0.ts (2000 tokens)
├── pages/
├── admin/
├── all/
├── BlogMenuGroup.jsx (300 tokens)
├── blogCategoryEdit+blogCategoryNew/
├── BlogCategoryCustomFields.tsx (200 tokens)
├── General.scss
├── General.tsx (400 tokens)
├── PageHeading.tsx (200 tokens)
├── Seo.tsx (500 tokens)
├── Setting.tsx (400 tokens)
├── blogCategoryEdit/
├── CategoryEditForm.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── blogCategoryGrid/
├── General.scss
├── Grid.tsx (1500 tokens)
├── NewCategoryButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── blogCategoryNew/
├── CategoryNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── blogCommentGrid/
├── Grid.tsx (2000 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── blogPostEdit+blogPostNew/
├── General.scss
├── General.tsx (400 tokens)
├── Organize.tsx (1000 tokens)
├── PageHeading.tsx (100 tokens)
├── PostCustomFields.tsx (200 tokens)
├── Seo.tsx (500 tokens)
├── blogPostEdit/
├── PostEditForm.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── blogPostGrid/
├── General.scss
├── Grid.tsx (1900 tokens)
├── NewPostButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── blogPostNew/
├── PostNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── blogTagEdit+blogTagNew/
├── General.scss
├── General.tsx (200 tokens)
├── PageHeading.tsx (100 tokens)
├── Seo.tsx (500 tokens)
├── blogTagEdit/
├── TagEditForm.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── blogTagGrid/
├── General.scss
├── Grid.tsx (1300 tokens)
├── NewTagButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── blogTagNew/
├── TagNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── frontStore/
├── blogCategoryView/
├── BlogCategoryHeader.tsx (100 tokens)
├── BlogCategoryView.tsx (400 tokens)
├── index.ts (400 tokens)
├── route.json
├── blogHome+blogCategoryView+blogTagView/
├── BlogListPagination.tsx (200 tokens)
├── BlogPosts.tsx (300 tokens)
├── blogHome/
├── BlogHome.tsx (400 tokens)
├── BlogHomeHeader.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── blogPostView/
├── BlogPostBody.tsx (100 tokens)
├── BlogPostComments.tsx (200 tokens)
├── BlogPostHeader.tsx (400 tokens)
├── BlogPostReactions.tsx (100 tokens)
├── BlogPostRelated.tsx (200 tokens)
├── BlogPostShare.tsx (100 tokens)
├── BlogPostTags.tsx (200 tokens)
├── BlogPostThumbnail.tsx (100 tokens)
├── BlogPostView.tsx (500 tokens)
├── index.ts (900 tokens)
├── route.json
├── blogRss/
├── index.ts (400 tokens)
├── route.json
├── blogTagView/
├── BlogTagHeader.tsx (200 tokens)
├── BlogTagView.tsx (400 tokens)
├── index.ts (300 tokens)
├── route.json
├── services/
├── BlogCategoryCollection.ts (400 tokens)
├── BlogCommentCollection.ts (400 tokens)
├── BlogPostCollection.ts (400 tokens)
├── BlogTagCollection.ts (400 tokens)
├── category/
├── blogCategoryDataSchema.json (200 tokens)
├── createBlogCategory.ts (600 tokens)
├── deleteBlogCategory.ts (400 tokens)
├── updateBlogCategory.ts (700 tokens)
├── comment/
├── blogCommentDataSchema.json (100 tokens)
├── deleteBlogComment.ts (300 tokens)
├── moderateBlogComment.ts (300 tokens)
├── submitBlogComment.ts (700 tokens)
├── getBlogCategoriesBaseQuery.ts (100 tokens)
├── getBlogCommentsBaseQuery.ts (200 tokens)
├── getBlogTagsBaseQuery.ts
├── getPostsBaseQuery.ts (100 tokens)
├── index.ts (300 tokens)
├── post/
├── blogPostDataSchema.json (300 tokens)
├── createBlogPost.ts (800 tokens)
├── deleteBlogPost.ts (400 tokens)
├── updateBlogPost.ts (900 tokens)
├── reaction/
├── likeBlogComment.ts (400 tokens)
├── reactToBlogPost.ts (500 tokens)
├── reactionTypes.ts (100 tokens)
├── resolveReactor.ts (200 tokens)
├── readingTime.ts (700 tokens)
├── registerDefaultBlogCategoryFilters.ts (200 tokens)
├── registerDefaultBlogCommentFilters.ts (100 tokens)
├── registerDefaultBlogPostFilters.ts (500 tokens)
├── registerDefaultBlogTagFilters.ts (100 tokens)
├── tag/
├── blogTagDataSchema.json (100 tokens)
├── createBlogTag.ts (500 tokens)
├── deleteBlogTag.ts (400 tokens)
├── updateBlogTag.ts (500 tokens)
├── subscribers/
├── blog_category_created/
├── buildUrlRewrite.ts (100 tokens)
├── blog_category_deleted/
├── deleteUrlRewrite.ts (100 tokens)
├── blog_category_updated/
├── buildUrlRewrite.ts (100 tokens)
├── blog_post_created/
├── buildUrlRewrite.ts (200 tokens)
├── blog_post_deleted/
├── deleteUrlRewrite.ts (100 tokens)
├── blog_post_updated/
├── buildUrlRewrite.ts (200 tokens)
├── blog_tag_created/
├── buildUrlRewrite.ts (100 tokens)
├── blog_tag_deleted/
├── deleteUrlRewrite.ts (100 tokens)
├── blog_tag_updated/
├── buildUrlRewrite.ts (100 tokens)
├── metafield_definition_deleted/
├── pruneBlogCategory.ts (100 tokens)
├── pruneBlogPost.ts (100 tokens)
├── tests/
├── unit/
├── blogBlocks.test.tsx (1500 tokens)
├── featuredBlogsHooks.test.tsx (600 tokens)
├── readingTime.test.ts (500 tokens)
├── types/
├── index.ts (400 tokens)
├── catalog/
├── api/
├── addProductLink/
├── [context]bodyParser[auth].ts (100 tokens)
├── addProductLink.ts (300 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── addProductToCategory/
├── [context]bodyParser[auth].js
├── addProducts.js (400 tokens)
├── payloadSchema.json
├── route.json
├── addProductToCollection/
├── [context]bodyParser[auth].js
├── addProducts.js (500 tokens)
├── payloadSchema.json
├── route.json
├── addVariantItem/
├── [bodyParser]addItem.js (800 tokens)
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── route.json
├── createAttribute/
├── [context]bodyParser[auth].js
├── createAttribute[finish].js (100 tokens)
├── finish[apiResponse].js (100 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── createAttributeGroup/
├── [bodyParser]saveGroup.js (200 tokens)
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── route.json
├── createCategory/
├── [context]bodyParser[auth].ts
├── createCategory[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (500 tokens)
├── route.json
├── createCollection/
├── [context]bodyParser[auth].ts
├── createCollection[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (600 tokens)
├── route.json
├── createProduct/
├── [context]bodyParser[auth].ts
├── [createProduct]duplicateData[finish].ts (500 tokens)
├── createProduct[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (500 tokens)
├── route.json
├── createVariantGroup/
├── [bodyParser]saveGroup.js (700 tokens)
├── [context]bodyParser[auth].js
├── payloadSchema.json (100 tokens)
├── route.json
├── deleteAttribute/
├── deleteAttribute.js (100 tokens)
├── route.json
├── deleteAttributeGroup/
├── deleteAttributeGroup.js (300 tokens)
├── route.json
├── deleteCategory/
├── deleteCategory.js (100 tokens)
├── route.json
├── deleteCollection/
├── deleteCollection.js (100 tokens)
├── route.json
├── deleteProduct/
├── deleteProduct.js (100 tokens)
├── route.json
├── recomputeRecommendationStats/
├── recomputeStats.ts (200 tokens)
├── route.json
├── removeProductFromCategory/
├── [context]bodyParser[auth].js
├── removeProducts.js (300 tokens)
├── route.json
├── removeProductFromCollection/
├── [context]bodyParser[auth].js
├── removeProducts.js (400 tokens)
├── route.json
├── removeProductLink/
├── removeProductLink.ts (200 tokens)
├── route.json
├── saveSetting/
├── [bodyParser,auth]validateRecommendationSettings[saveSetting].ts (600 tokens)
├── unlinkVariant/
├── [context]multerNone[auth].js
├── route.json
├── unlinkVariants.js (100 tokens)
├── updateAttribute/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── route.json
├── updateAttribute[finish].ts (100 tokens)
├── updateAttributeGroup/
├── [bodyParser]saveGroup.js (200 tokens)
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── route.json
├── updateCategory/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (500 tokens)
├── route.json
├── updateCategory[finish].ts (100 tokens)
├── updateCollection/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (600 tokens)
├── route.json
├── updateCollection[finish].ts (100 tokens)
├── updateProduct/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (400 tokens)
├── route.json
├── updateProduct[finish].ts (100 tokens)
├── updateProductLink/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── updateProductLink.ts (200 tokens)
├── variantSearch/
├── loadVariants.js (500 tokens)
├── route.json
├── bootstrap.js (3.8k tokens)
├── components/
├── CartFrequentlyBoughtTogether.tsx (800 tokens)
├── CartFrequentlyBoughtTogetherPreview.tsx (400 tokens)
├── CollectionProducts.tsx (1300 tokens)
├── CollectionProductsPreview.tsx (300 tokens)
├── CollectionProductsSetting.tsx (3.1k tokens)
├── CollectionSpotlight.tsx (2.6k tokens)
├── CollectionSpotlightPreview.tsx (300 tokens)
├── CollectionSpotlightSetting.tsx (1900 tokens)
├── CollectionStack.tsx (1200 tokens)
├── CollectionStackPreview.tsx (300 tokens)
├── CollectionStackSetting.tsx (1700 tokens)
├── FrequentlyBoughtTogether.tsx (400 tokens)
├── FrequentlyBoughtTogetherPreview.tsx (400 tokens)
├── ProductHero.tsx (1700 tokens)
├── ProductHeroPreview.tsx (300 tokens)
├── ProductHeroSetting.tsx (1300 tokens)
├── RecommendationShelf.tsx (600 tokens)
├── RecommendationWidgetSetting.tsx (600 tokens)
├── RelatedProducts.tsx (400 tokens)
├── RelatedProductsPreview.tsx (300 tokens)
├── RelatedRulesEditor.tsx (2.6k tokens)
├── UpsellProducts.tsx (400 tokens)
├── UpsellProductsPreview.tsx (300 tokens)
├── graphql/
├── types/
├── Attribute/
├── Attribute.admin.graphql (200 tokens)
├── Attribute.admin.resolvers.js (500 tokens)
├── Attribute.graphql (100 tokens)
├── Attribute.resolvers.js (100 tokens)
├── CartRecommendation/
├── CartRecommendation.graphql (100 tokens)
├── CartRecommendation.resolvers.ts (200 tokens)
├── CatalogSetting/
├── CatalogSetting.admin.graphql
├── CatalogSetting.admin.resolvers.js (100 tokens)
├── Category/
├── Category.admin.graphql
├── Category.admin.resolvers.js (200 tokens)
├── Category.graphql (400 tokens)
├── Category.resolvers.ts (1600 tokens)
├── Category.urn.graphql
├── Category.urn.resolvers.ts
├── CategoryMetafields.graphql
├── CategoryMetafields.resolvers.ts (200 tokens)
├── Collection/
├── Collection.admin.graphql
├── Collection.admin.resolvers.js (200 tokens)
├── Collection.graphql (100 tokens)
├── Collection.resolvers.js (800 tokens)
├── CollectionMetafields.graphql
├── CollectionMetafields.resolvers.ts (200 tokens)
├── FeaturedProduct/
├── FeaturedProduct.graphql
├── FeaturedProduct.resolvers.js (500 tokens)
├── Product/
├── Attribute/
├── ProductAttribute.graphql (100 tokens)
├── ProductAttribute.resolvers.js (300 tokens)
├── CustomOption/
├── CustomOption.graphql (100 tokens)
├── CustomOption.resolvers.js
├── Image/
├── ProductImage.graphql (100 tokens)
├── ProductImage.resolvers.ts (200 tokens)
├── Inventory/
├── Inventory.admin.graphql
├── Inventory.admin.resolvers.js
├── Inventory.graphql
├── Inventory.resolvers.js (100 tokens)
├── Price/
├── ProductPrice.graphql
├── ProductPrice.resolvers.js
├── Product.admin.graphql (100 tokens)
├── Product.admin.resolvers.ts (100 tokens)
├── Product.graphql (200 tokens)
├── Product.resolvers.ts (900 tokens)
├── Product.urn.graphql
├── Product.urn.resolvers.ts
├── ProductMetafields.graphql
├── ProductMetafields.resolvers.ts (200 tokens)
├── ProductPackage.admin.graphql (100 tokens)
├── ProductPackage.admin.resolvers.ts (100 tokens)
├── Recommendation/
├── Recommendation.graphql (200 tokens)
├── Recommendation.resolvers.ts (400 tokens)
├── RecommendationAdmin.admin.graphql (600 tokens)
├── RecommendationAdmin.admin.resolvers.ts (2.7k tokens)
├── Variant/
├── Variant.graphql (200 tokens)
├── Variant.resolvers.js (1200 tokens)
├── ProductListing/
├── ProductListing.graphql (200 tokens)
├── ProductListing.resolvers.ts (600 tokens)
├── Widget/
├── CollectionProductsWidget/
├── CollectionProductsWidget.graphql (200 tokens)
├── CollectionProductsWidget.resolvers.js (200 tokens)
├── CollectionSpotlightWidget/
├── CollectionSpotlightWidget.graphql (200 tokens)
├── CollectionSpotlightWidget.resolvers.js (900 tokens)
├── CollectionStackWidget/
├── CollectionStackWidget.graphql (200 tokens)
├── CollectionStackWidget.resolvers.js (700 tokens)
├── ProductHeroWidget/
├── ProductHeroWidget.graphql (200 tokens)
├── ProductHeroWidget.resolvers.js (300 tokens)
├── RecommendationWidget/
├── RecommendationWidget.graphql (100 tokens)
├── RecommendationWidget.resolvers.ts (100 tokens)
├── migration/
├── Version-1.0.0.js (4.3k tokens)
├── Version-1.0.1.js (300 tokens)
├── Version-1.0.10.ts (100 tokens)
├── Version-1.0.11.ts (100 tokens)
├── Version-1.0.12.ts (200 tokens)
├── Version-1.0.13.ts (100 tokens)
├── Version-1.0.14.ts (1200 tokens)
├── Version-1.0.15.ts (300 tokens)
├── Version-1.0.2.js (1800 tokens)
├── Version-1.0.3.js (100 tokens)
├── Version-1.0.4.js (200 tokens)
├── Version-1.0.5.js (100 tokens)
├── Version-1.0.6.js (400 tokens)
├── Version-1.0.7.js (100 tokens)
├── Version-1.0.8.ts
├── Version-1.0.9.ts (700 tokens)
├── pages/
├── admin/
├── all/
├── CatalogMenuGroup.jsx (300 tokens)
├── CatalogSettingMenu.tsx (100 tokens)
├── NewProductQuickLink.jsx (100 tokens)
├── attributeEdit+attributeNew/
├── Avaibility.tsx (600 tokens)
├── General.scss
├── General.tsx (1900 tokens)
├── PageHeading.tsx (200 tokens)
├── attributeEdit/
├── AttributeEditForm.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── attributeGrid/
├── Grid.jsx (2.6k tokens)
├── NewAttributeButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── AttributeName.tsx (100 tokens)
├── GroupRow.tsx (600 tokens)
├── attributeNew/
├── AttributeNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── catalogSetting/
├── CatalogSetting.tsx (1200 tokens)
├── ProductRecommendations.tsx (1300 tokens)
├── route.json
├── categoryEdit+categoryNew/
├── CategoryCustomFields.tsx (100 tokens)
├── General.scss
├── General.tsx (1100 tokens)
├── Image.scss (100 tokens)
├── Image.tsx (400 tokens)
├── PageHeading.tsx (200 tokens)
├── Seo.tsx (800 tokens)
├── Status.tsx (400 tokens)
├── categoryEdit/
├── CategoryEditForm.tsx (200 tokens)
├── Products.tsx (2000 tokens)
├── RelatedProductsRules.tsx (900 tokens)
├── index.ts (200 tokens)
├── route.json
├── categoryGrid/
├── Grid.jsx (2000 tokens)
├── NewCategoryButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── CategoryName.tsx (100 tokens)
├── categoryNew/
├── CategoryNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── collectionEdit+collectionNew/
├── CollectionCustomFields.tsx (100 tokens)
├── General.scss
├── General.tsx (500 tokens)
├── PageHeading.tsx (200 tokens)
├── collectionEdit/
├── CollectionEditForm.tsx (200 tokens)
├── Products.tsx (2000 tokens)
├── index.ts (200 tokens)
├── route.json
├── collectionGrid/
├── Grid.jsx (2.2k tokens)
├── NewCollectionButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── CollectionNameRow.tsx (100 tokens)
├── collectionNew/
├── CollectionNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── productEdit+productNew/
├── Attributes.tsx (1800 tokens)
├── General.scss
├── General.tsx (2000 tokens)
├── Inventory.tsx (500 tokens)
├── Media.tsx (500 tokens)
├── PageHeading.tsx (200 tokens)
├── ProductCustomFields.tsx (100 tokens)
├── Seo.tsx (900 tokens)
├── Shipping.tsx (1400 tokens)
├── Status.tsx (400 tokens)
├── productEdit/
├── Collection.tsx (300 tokens)
├── HeadingDuplicateButton.tsx (200 tokens)
├── ProductEditForm.tsx (1300 tokens)
├── Recommendations.tsx (5.4k tokens)
├── VariantGroup.tsx (500 tokens)
├── index.ts (200 tokens)
├── route.json
├── variants/
├── CreateVariant.tsx (300 tokens)
├── CreateVariantGroup.tsx (1000 tokens)
├── EditVariant.tsx (300 tokens)
├── New.tsx (300 tokens)
├── Skeleton.tsx (300 tokens)
├── Variant.tsx (400 tokens)
├── VariantModal.tsx (1900 tokens)
├── Variants.tsx (1800 tokens)
├── productGrid/
├── Grid.jsx (3.7k tokens)
├── NewProductButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── ProductName.tsx (100 tokens)
├── productNew/
├── DuplicateBanner.tsx (400 tokens)
├── ProductNewForm.tsx (400 tokens)
├── index.ts (300 tokens)
├── route.json
├── frontStore/
├── all/
├── SearchBox.tsx (100 tokens)
├── catalogSearch/
├── SearchInfo.tsx (100 tokens)
├── SearchPage.tsx (300 tokens)
├── SearchProducts.tsx (100 tokens)
├── index.ts (200 tokens)
├── route.json
├── categoryView/
├── CategoryFilter.tsx (100 tokens)
├── CategoryInfo.tsx (100 tokens)
├── CategoryPagination.tsx (100 tokens)
├── CategoryProducts.tsx (100 tokens)
├── CategorySorting.tsx (200 tokens)
├── CategoryView.tsx (600 tokens)
├── index.ts (300 tokens)
├── route.json
├── productListing/
├── ProductListingFilter.tsx (100 tokens)
├── ProductListingInfo.tsx (100 tokens)
├── ProductListingPage.tsx (800 tokens)
├── ProductListingPagination.tsx (100 tokens)
├── ProductListingProducts.tsx (100 tokens)
├── ProductListingSorting.tsx (200 tokens)
├── index.ts (100 tokens)
├── route.json
├── productView/
├── ProductAttributes.tsx (100 tokens)
├── ProductDescription.tsx (100 tokens)
├── ProductForm.tsx (100 tokens)
├── ProductMedia.tsx (100 tokens)
├── ProductName.tsx (100 tokens)
├── ProductPrice.tsx (100 tokens)
├── ProductView.tsx (500 tokens)
├── index.ts (1200 tokens)
├── route.json
├── services/
├── AttributeCollection.js (300 tokens)
├── AttributeGroupCollection.js (500 tokens)
├── CategoryCollection.js (300 tokens)
├── CollectionCollection.js (300 tokens)
├── ProductCollection.js (1600 tokens)
├── attribute/
├── attributeDataSchema.json (700 tokens)
├── createProductAttribute.ts (1600 tokens)
├── deleteProductAttribute.ts (700 tokens)
├── updateProductAttribute.ts (2000 tokens)
├── catalogSettings.ts (300 tokens)
├── category/
├── categoryDataSchema.json (900 tokens)
├── categoryDataSchema.ts (200 tokens)
├── categoryMetafield.ts (400 tokens)
├── createCategory.ts (1000 tokens)
├── deleteCategory.ts (1100 tokens)
├── updateCategory.ts (1600 tokens)
├── collection/
├── collectionMetafield.ts (400 tokens)
├── createCollection.ts (700 tokens)
├── deleteCollection.ts (600 tokens)
├── updateCollection.ts (800 tokens)
├── getAttributeGroupsBaseQuery.js
├── getAttributesBaseQuery.js
├── getCategoriesBaseQuery.ts (100 tokens)
├── getCategoryTree.ts (600 tokens)
├── getCollectionsBaseQuery.ts (100 tokens)
├── getFilterableAttributes.ts (1500 tokens)
├── getProductsBaseQuery.ts (100 tokens)
├── getProductsByCategoryBaseQuery.ts (200 tokens)
├── getProductsByCollectionBaseQuery.ts (100 tokens)
├── getStorePriceRange.ts (300 tokens)
├── index.ts (500 tokens)
├── product/
├── createProduct.ts (2.7k tokens)
├── deleteProduct.ts (800 tokens)
├── productDataSchema.json (2.4k tokens)
├── productDataSchema.ts (300 tokens)
├── productMetafield.ts (400 tokens)
├── updateProduct.ts (4.7k tokens)
├── recommendation/
├── applyRecommendationGating.ts (2.3k tokens)
├── productLink.ts (1200 tokens)
├── recomputeStats.ts (1500 tokens)
├── recomputeStatsJob.ts (100 tokens)
├── relatedProductsRulesSchema.json (800 tokens)
├── resolveCartCrossSellProducts.ts (700 tokens)
├── resolveCrossSellProducts.ts (1400 tokens)
├── resolveRelatedProducts.ts (2.1k tokens)
├── resolveUpsellProducts.ts (600 tokens)
├── recommendationSettings.ts (800 tokens)
├── redirect/
├── pathRemap.ts (600 tokens)
├── resolveCategoryUrlPath.ts (200 tokens)
├── registerCartItemProductUrlField.js (200 tokens)
├── registerCartItemVariantOptionsField.js (300 tokens)
├── registerDefaultAttributeCollectionFilters.js (800 tokens)
├── registerDefaultCategoryCollectionFilters.js (400 tokens)
├── registerDefaultCollectionCollectionFilters.js (300 tokens)
├── registerDefaultProductCollectionFilters.js (1900 tokens)
├── resolveCategorySubtree.ts (400 tokens)
├── warnOnProductListingPathConflict.ts (400 tokens)
├── subscribers/
├── category_created/
├── buildUrlRewrite.ts (400 tokens)
├── category_deleted/
├── deleteUrlRewrite.ts (200 tokens)
├── category_updated/
├── builUrlRewrite.ts (600 tokens)
├── metafield_definition_deleted/
├── pruneCategory.ts (100 tokens)
├── pruneCollection.ts (100 tokens)
├── pruneProduct.ts (100 tokens)
├── product_created/
├── buildUrlRewrite.ts (400 tokens)
├── product_deleted/
├── deleteUrlRewrite.ts (100 tokens)
├── product_updated/
├── buildUrlRewrite.ts (400 tokens)
├── tests/
├── intergration/
├── productView.test.js (100 tokens)
├── unit/
├── catalogSettings.test.js (400 tokens)
├── categoryViewBlocks.test.tsx (800 tokens)
├── listingFacetQueries.test.ts (2.5k tokens)
├── pathRemap.test.ts (1400 tokens)
├── productCollectionFilters.test.ts (1300 tokens)
├── productListingBlocks.test.tsx (1000 tokens)
├── productListingPathConflict.test.ts (700 tokens)
├── productViewBlocks.test.tsx (700 tokens)
├── recommendationAdminApi.test.ts (4.2k tokens)
├── recommendationSettings.test.ts (700 tokens)
├── recomputeStats.test.ts (2.3k tokens)
├── relatedProductsRulesSchema.test.ts (1500 tokens)
├── resolveRecommendations.test.ts (6.1k tokens)
├── searchBlocks.test.tsx (400 tokens)
├── validateRecommendationSettings.test.ts (600 tokens)
├── virtualCollection.test.ts (900 tokens)
├── checkout/
├── api/
├── addCartAddress/
├── [context]bodyParser[auth].js
├── payloadSchema.json (300 tokens)
├── route.json
├── saveAddress.ts (300 tokens)
├── addCartContactInfo/
├── [context]bodyParser[auth].js
├── payloadSchema.json (100 tokens)
├── route.json
├── saveContactInfo.js (200 tokens)
├── addCartItem/
├── [context]bodyParser[auth].js
├── addItemToCart.js (400 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── addCartPaymentMethod/
├── [context]bodyParser[auth].js
├── payloadSchema.json (100 tokens)
├── route.json
├── savePaymentMethod.js (200 tokens)
├── addCartShippingMethod/
├── [context]bodyParser[auth].js
├── payloadSchema.json (200 tokens)
├── route.json
├── saveShippingMethod.js (500 tokens)
├── addMineCartItem/
├── [context]bodyParser[auth].js
├── addItemToCart.ts (400 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── addShippingNote/
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── route.json
├── saveShippingNote.js (200 tokens)
├── attachShippingProvider/
├── [context]bodyParser[auth].ts (100 tokens)
├── attachShippingProvider.ts (600 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── cartCheckout/
├── [context]bodyParser[auth].ts
├── checkout.ts (300 tokens)
├── payloadSchema.json
├── route.json
├── createCart/
├── [context]bodyParser[auth].js
├── createNewCart.js (700 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── createCoreShippingMethod/
├── [context]bodyParser[auth].ts (100 tokens)
├── createCoreShippingMethod.ts (400 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── createCoreShippingRate/
├── [context]bodyParser[auth].ts (100 tokens)
├── createCoreShippingRate.ts (700 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── createOrder/
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── placeOrder.js (500 tokens)
├── route.json
├── createPackage/
├── [context]bodyParser[auth].ts (100 tokens)
├── createPackage.ts (300 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── createShippingZone/
├── [context]bodyParser[auth].ts (100 tokens)
├── createShippingZone.ts (600 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── deleteCoreShippingMethod/
├── deleteCoreShippingMethod.ts (300 tokens)
├── route.json
├── deleteCoreShippingRate/
├── deleteCoreShippingRate.ts (300 tokens)
├── route.json
├── deletePackage/
├── deletePackage.ts (200 tokens)
├── route.json
├── deleteShippingZone/
├── deleteShippingZone.js (300 tokens)
├── route.json
├── detachShippingProvider/
├── detachShippingProvider.ts (400 tokens)
├── route.json
├── removeCartItem/
├── removeItem.js (200 tokens)
├── route.json
├── removeMineCartItem/
├── removeItem.ts (300 tokens)
├── route.json
├── updateCartItemQty/
├── [bodyParser]updateQty.js (300 tokens)
├── [context]bodyParser[auth].js
├── payloadSchema.json (100 tokens)
├── route.json
├── updateCoreShippingMethod/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── updateCoreShippingMethod.ts (600 tokens)
├── updateCoreShippingRate/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── updateCoreShippingRate.ts (400 tokens)
├── updateMineCartItemQty/
├── [context]bodyParser[auth].js
├── payloadSchema.json (100 tokens)
├── route.json
├── updateQty.ts (300 tokens)
├── updatePackage/
├── [context]bodyParser[auth].ts (100 tokens)
├── route.json
├── updatePackage.ts (300 tokens)
├── updateShippingZone/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── updateShippingZone.ts (600 tokens)
├── updateShippingZoneProvider/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json
├── route.json
├── updateShippingZoneProvider.ts (600 tokens)
├── bootstrap.ts (800 tokens)
├── graphql/
├── types/
├── Cart/
├── Cart.graphql (900 tokens)
├── Cart.resolvers.ts (1000 tokens)
├── CartPackages.admin.graphql (100 tokens)
├── CartPackages.admin.resolvers.ts (300 tokens)
├── CheckoutSetting/
├── CheckoutSetting.graphql
├── CheckoutSetting.resolvers.js (100 tokens)
├── CoreShippingMethod/
├── CoreShippingMethod.admin.graphql (400 tokens)
├── CoreShippingMethod.admin.resolvers.ts (500 tokens)
├── Date/
├── Date.graphql
├── Date.resolvers.js
├── Dimension/
├── Dimension.graphql (100 tokens)
├── Dimension.resolvers.js (100 tokens)
├── Package/
├── Package.admin.graphql (100 tokens)
├── Package.admin.resolvers.ts (300 tokens)
├── PaymentMethod/
├── AvailablePaymentMethod.graphql
├── AvailablePaymentMethod.resolvers.ts (100 tokens)
├── Price/
├── Price.graphql
├── Price.resolvers.js (200 tokens)
├── PricingSetting/
├── PricingSetting.admin.graphql
├── PricingSetting.admin.resolvers.js (100 tokens)
├── ShippingMethod/
├── AvailableShippingMethod.graphql (200 tokens)
├── AvailableShippingMethod.resolvers.ts (100 tokens)
├── ShippingMethodData/
├── ShippingMethodData.graphql (200 tokens)
├── ShippingProvider/
├── ShippingProvider.admin.graphql (200 tokens)
├── ShippingProvider.admin.resolvers.ts (400 tokens)
├── ShippingZone/
├── ShippingZone.admin.graphql (200 tokens)
├── ShippingZone.admin.resolvers.ts (1200 tokens)
├── Weight/
├── Weight.graphql
├── Weight.resolvers.js (100 tokens)
├── migration/
├── Version-1.0.0.js (2.3k tokens)
├── Version-1.0.1.js (600 tokens)
├── Version-1.0.10.ts (300 tokens)
├── Version-1.0.11.ts (300 tokens)
├── Version-1.0.12.ts (1200 tokens)
├── Version-1.0.2.js (200 tokens)
├── Version-1.0.3.js (100 tokens)
├── Version-1.0.4.js (300 tokens)
├── Version-1.0.5.js (200 tokens)
├── Version-1.0.6.js (1400 tokens)
├── Version-1.0.7.ts (100 tokens)
├── Version-1.0.8.ts (2.4k tokens)
├── Version-1.0.9.ts (400 tokens)
├── pages/
├── admin/
├── all/
├── ShippingProvidersMenu.tsx (200 tokens)
├── ShippingSettingMenu.tsx (100 tokens)
├── shippingProviders/
├── CoreShippingSetting.tsx (200 tokens)
├── ShippingProviders.tsx (300 tokens)
├── coreShipping/
├── MethodForm.tsx (2.3k tokens)
├── MethodsList.tsx (1600 tokens)
├── RatePanel.tsx (2.1k tokens)
├── index.ts
├── route.json
├── shippingSetting/
├── ShippingSetting.tsx (400 tokens)
├── index.ts
├── route.json
├── shippingSetting/
├── AttachProviderDialog.tsx (2000 tokens)
├── Packages.tsx (1300 tokens)
├── PriceBasedPrice.tsx (800 tokens)
├── SellToCountries.tsx (1400 tokens)
├── WeightBasedPrice.tsx (800 tokens)
├── Zone.tsx (2.4k tokens)
├── ZoneForm.tsx (2.5k tokens)
├── ZoneProviderConfigDialog.tsx (600 tokens)
├── Zones.tsx (800 tokens)
├── frontStore/
├── all/
├── MiniCartIcon.tsx (100 tokens)
├── [auth]addCustomerToCart.ts (200 tokens)
├── cart/
├── CartItems.tsx (200 tokens)
├── CartSummary.tsx (400 tokens)
├── CartTitle.tsx (200 tokens)
├── ShoppingCart.tsx (300 tokens)
├── index.ts (100 tokens)
├── route.json
├── checkout/
├── Checkout.scss (100 tokens)
├── Checkout.tsx (1300 tokens)
├── CheckoutContact.tsx (100 tokens)
├── CheckoutPayment.tsx (100 tokens)
├── CheckoutPlaceOrder.tsx (100 tokens)
├── CheckoutShipment.tsx (100 tokens)
├── CheckoutShippingNote.tsx (200 tokens)
├── CheckoutSummary.tsx (200 tokens)
├── ZeroCheckout.tsx (1100 tokens)
├── index.ts (300 tokens)
├── route.json
├── checkoutSuccess/
├── CheckoutSuccess.jsx (200 tokens)
├── CheckoutSuccess.scss (100 tokens)
├── CustomerInfo.tsx (800 tokens)
├── ShippingNote.tsx (100 tokens)
├── Summary.scss (200 tokens)
├── Summary.tsx (500 tokens)
├── index.ts (300 tokens)
├── route.json
├── services/
├── addBillingAddress.ts (1400 tokens)
├── addCartItem.ts (600 tokens)
├── addShippingAddress.ts (1400 tokens)
├── cart/
├── Cart.js (1100 tokens)
├── DataObject.js (600 tokens)
├── packing.ts (500 tokens)
├── registerCartBaseFields.js (4.6k tokens)
├── registerCartItemBaseFields.js (2.2k tokens)
├── sortFields.js (300 tokens)
├── checkout.ts (1000 tokens)
├── checkoutSettings.ts (200 tokens)
├── createNewCart.ts (200 tokens)
├── getAvailablePaymentMethods.ts (1400 tokens)
├── getAvailableShippingMethods.ts (1400 tokens)
├── getCartByUUID.ts (100 tokens)
├── getMyCart.ts (300 tokens)
├── index.ts (500 tokens)
├── orderCreator.ts (2.1k tokens)
├── orderValidator.ts (1100 tokens)
├── package/
├── packageManager.ts (1400 tokens)
├── types.ts (100 tokens)
├── pricingSettings.ts (200 tokens)
├── removeCartItem.ts (300 tokens)
├── resolveSavedCartAddress.ts (400 tokens)
├── saveCart.ts (500 tokens)
├── setShippingMethod.ts (300 tokens)
├── shipping/
├── buildShippingContext.ts (600 tokens)
├── computeFingerprint.ts (700 tokens)
├── core/
├── coreProvider.ts (1500 tokens)
├── createCoreShippingRate.ts (600 tokens)
├── deleteCoreShippingRate.ts (300 tokens)
├── updateCoreShippingRate.ts (500 tokens)
├── getOriginAddress.ts (300 tokens)
├── normalizeZonePayload.ts (800 tokens)
├── registry.ts (800 tokens)
├── resolveShippingQuote.ts (1000 tokens)
├── resolveZonesForAddress.ts (700 tokens)
├── serializeItems.ts (500 tokens)
├── toPrice.ts (300 tokens)
├── updateCartItemQty.ts (400 tokens)
├── zeroCheckout.ts (900 tokens)
├── tests/
├── basicSetup.js (500 tokens)
├── coupons.js (500 tokens)
├── products.js (200 tokens)
├── taxRates.js
├── unit/
├── addItemSideEffect.test.js (500 tokens)
├── addressCountryAllowedRule.test.js (600 tokens)
├── billingAddressRule.test.js (700 tokens)
├── cartAddressServices.test.ts (1200 tokens)
├── cartCheckoutBlocks.test.tsx (500 tokens)
├── checkoutSettings.test.js (300 tokens)
├── discountAmount.test.js (500 tokens)
├── grandTotal.test.js (700 tokens)
├── lineTotal.test.js (700 tokens)
├── lineTotalWithDiscount.test.js (900 tokens)
├── packageValidation.test.js (400 tokens)
├── packing.test.js (400 tokens)
├── paymentOperationContract.test.js (600 tokens)
├── pricingSettings.test.js (300 tokens)
├── productPrice.test.js (500 tokens)
├── removeItemSideEffect.test.js (400 tokens)
├── sellToCountriesCard.test.tsx (500 tokens)
├── shipping/
├── computeFingerprint.test.ts (400 tokens)
├── resolveZonesForAddress.test.ts (500 tokens)
├── shippingProviderRegistry.test.js (400 tokens)
├── subTotal.test.js (600 tokens)
├── subTotalWithDiscount.test.js (900 tokens)
├── taxAmount.test.js (500 tokens)
├── taxAmountRounding.test.js (2.4k tokens)
├── toPrice.test.js (200 tokens)
├── updateCartItemQtySideEffect.test.js (500 tokens)
├── zeroCheckout.test.js (1800 tokens)
├── cms/
├── api/
├── createCmsPage/
├── [context]bodyParser[auth].ts
├── createPage[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (400 tokens)
├── route.json
├── createWidget/
├── [context]bodyParser[auth].js
├── createWidget[finish].js (100 tokens)
├── finish[apiResponse].js (100 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── deleteCmsPage/
├── deleteCmsPage.ts (200 tokens)
├── route.json
├── deleteContactSubmission/
├── [context]bodyParser[auth].ts
├── deleteContactSubmission[finish].ts (100 tokens)
├── finish[apiResponse].ts (100 tokens)
├── route.json
├── deleteWidget/
├── deleteWidget.js (100 tokens)
├── route.json
├── fileBrowser/
├── [context]validatePath[auth].js (100 tokens)
├── browFiles.js (500 tokens)
├── route.json
├── fileDelete/
├── [context]validatePath[auth].js (100 tokens)
├── deleteFile.js (100 tokens)
├── route.json
├── fileRename/
├── [context]bodyParser[auth].js
├── [context]validatePath[auth].js (100 tokens)
├── payloadSchema.json
├── renameFile.js (400 tokens)
├── route.json
├── fileUpload/
├── [auth,validatePath]multerFile.js (300 tokens)
├── [multerFile]upload.js (100 tokens)
├── route.json
├── tests/
├── unit/
├── multerFile.test.ts (700 tokens)
├── uploadRouteWiring.test.ts (500 tokens)
├── validatePath.js (100 tokens)
├── folderCreate/
├── [context]bodyParser[auth].js
├── [context]validatePath[auth].js (100 tokens)
├── createFolder.js (100 tokens)
├── payloadSchema.json
├── route.json
├── imageUpload/
├── [auth,validatePath]multerFile.js
├── [multerFile]upload.js
├── [multerFile]verifyImages[upload].js (100 tokens)
├── route.json
├── validatePath.js
├── saveSetting/
├── [bodyParser]validateFileStorageConnection[saveSetting].ts (200 tokens)
├── submitContactForm/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── submitContactForm[finish].ts (300 tokens)
├── updateCmsPage/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json (400 tokens)
├── route.json
├── updatePage[finish].ts (100 tokens)
├── updateContactSubmission/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (100 tokens)
├── payloadSchema.json
├── route.json
├── updateContactSubmission[finish].ts (100 tokens)
├── updateWidget/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (100 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── updateWidget[finish].ts (100 tokens)
├── bootstrap.ts (9.6k tokens)
├── components/
├── AnnouncementBar.tsx (1500 tokens)
├── AnnouncementBarPreview.tsx (200 tokens)
├── AnnouncementBarSetting.tsx (1600 tokens)
├── Banner.tsx (2.9k tokens)
├── BannerPreview.tsx (200 tokens)
├── BannerSetting.tsx (4.7k tokens)
├── BasicMenu.tsx (2.5k tokens)
├── BasicMenuPreview.tsx (200 tokens)
├── BasicMenuSetting.tsx (2.1k tokens)
├── BentoGrid.tsx (2000 tokens)
├── BentoGridPreview.tsx (300 tokens)
├── BentoGridSetting.tsx (1900 tokens)
├── BrandStory.tsx (2.5k tokens)
├── BrandStoryPreview.tsx (300 tokens)
├── BrandStorySetting.tsx (2.2k tokens)
├── CategoryMosaic.tsx (2.4k tokens)
├── CategoryMosaicPreview.tsx (300 tokens)
├── CategoryMosaicSetting.tsx (1900 tokens)
├── Columns.tsx (1600 tokens)
├── ColumnsPreview.tsx (200 tokens)
├── ColumnsSetting.tsx (3.5k tokens)
├── ContactForm.tsx (1600 tokens)
├── ContactFormPreview.tsx (300 tokens)
├── ContactFormSetting.tsx (1700 tokens)
├── CouponBlock.tsx (1500 tokens)
├── CouponBlockPreview.tsx (400 tokens)
├── CouponBlockSetting.tsx (1900 tokens)
├── FaqBlock.tsx (1400 tokens)
├── FaqBlockPreview.tsx (200 tokens)
├── FaqBlockSetting.tsx (2.5k tokens)
├── FooterMenu.tsx (1200 tokens)
├── FooterMenuPreview.tsx (300 tokens)
├── FooterMenuSetting.tsx (1600 tokens)
├── Section.tsx (3.2k tokens)
├── SectionPreview.tsx (200 tokens)
├── SectionSetting.tsx (1600 tokens)
├── Separator.tsx (500 tokens)
├── SeparatorPreview.tsx (200 tokens)
├── SeparatorSetting.tsx (700 tokens)
├── Slideshow.tsx (6.3k tokens)
├── SlideshowPreview.tsx (300 tokens)
├── SlideshowSetting.tsx (8.9k tokens)
├── SplitFeature.tsx (1900 tokens)
├── SplitFeaturePreview.tsx (300 tokens)
├── SplitFeatureSetting.tsx (1900 tokens)
├── TextBlock.tsx (300 tokens)
├── TextBlockPreview.tsx (200 tokens)
├── TextBlockSetting.tsx (800 tokens)
├── TieredCategories.tsx (1400 tokens)
├── TieredCategoriesPreview.tsx (200 tokens)
├── TieredCategoriesSetting.tsx (2.2k tokens)
├── TrustStrip.tsx (1400 tokens)
├── TrustStripPreview.tsx (300 tokens)
├── TrustStripSetting.tsx (2.1k tokens)
├── slideshowControls.ts (300 tokens)
├── tests/
├── unit/
├── bannerScrim.test.tsx (900 tokens)
├── basicMenuPanelFit.test.tsx (1000 tokens)
├── slideshowButtons.test.tsx (600 tokens)
├── slideshowControls.test.ts (500 tokens)
├── slideshowControlsRender.test.tsx (500 tokens)
├── widgetButtonSizes.test.tsx (700 tokens)
├── widgetItemHooks.test.tsx (1700 tokens)
├── graphql/
├── types/
├── CmsPage/
├── CmsPage.graphql (100 tokens)
├── CmsPage.resolvers.ts (500 tokens)
├── CmsPage.urn.graphql
├── CmsPage.urn.resolvers.ts
├── ContactSubmission/
├── ContactSubmission.admin.graphql (200 tokens)
├── ContactSubmission.admin.resolvers.ts (300 tokens)
├── FileStorageSetting/
├── FileStorageSetting.admin.graphql (100 tokens)
├── FileStorageSetting.admin.resolvers.ts (800 tokens)
├── tests/
├── unit/
├── resolvers.test.ts (800 tokens)
├── PageInfo/
├── PageInfo.graphql (200 tokens)
├── PageInfo.resolvers.ts (1800 tokens)
├── ThemeConfig/
├── ThemeConfig.graphql (200 tokens)
├── ThemeConfig.resolvers.js (300 tokens)
├── UploadSetting/
├── UploadSetting.admin.graphql (300 tokens)
├── UploadSetting.admin.resolvers.ts (600 tokens)
├── tests/
├── unit/
├── resolvers.test.ts (1100 tokens)
├── Widget/
├── Widget.graphql (4k tokens)
├── Widget.resolvers.js (9.3k tokens)
├── Widget.urn.graphql
├── Widget.urn.resolvers.ts (100 tokens)
├── WidgetPlacement.urn.graphql
├── WidgetPlacement.urn.resolvers.ts
├── tests/
├── unit/
├── basicMenuWidget.test.ts (400 tokens)
├── slideshowWidget.test.ts (500 tokens)
├── migration/
├── Version-1.0.0.js (300 tokens)
├── Version-1.1.0.js (200 tokens)
├── Version-1.1.1.js
├── Version-1.3.0.ts (900 tokens)
├── Version-1.4.0.ts (300 tokens)
├── Version-1.5.0.ts (500 tokens)
├── pages/
├── admin/
├── adminNotFound/
├── Meta.tsx (100 tokens)
├── NotFound.tsx (300 tokens)
├── route.json
├── adminStaticAsset/
├── route.json
├── staticAssets.ts
├── all/
├── CmsMenuGroup.jsx (200 tokens)
├── CopyRight.tsx (100 tokens)
├── Logo.tsx (500 tokens)
├── MediaLibraryMenu.tsx (400 tokens)
├── Navigation.jsx (100 tokens)
├── Navigation.scss (300 tokens)
├── Notification.jsx (200 tokens)
├── QuickLinks.jsx (200 tokens)
├── SearchBox.tsx (800 tokens)
├── Survey.tsx (200 tokens)
├── Version.jsx (100 tokens)
├── search/
├── NoResult.tsx (200 tokens)
├── Results.jsx (800 tokens)
├── cmsPageEdit+cmsPageNew/
├── General.tsx (500 tokens)
├── PageHeading.tsx (200 tokens)
├── Seo.tsx (600 tokens)
├── cmsPageEdit/
├── PageEditForm.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── cmsPageGrid/
├── Grid.jsx (2.3k tokens)
├── NewPageButton.tsx (100 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── PageName.tsx (100 tokens)
├── cmsPageNew/
├── PageNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── contactSubmissionGrid/
├── Grid.tsx (2.5k tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── dashboard/
├── Layout.jsx (100 tokens)
├── Layout.scss
├── PageHeading.tsx (100 tokens)
├── index.ts
├── route.json
├── systemSetting/
├── FileStorageSetting.tsx (5k tokens)
├── widgetEdit+widgetNew/
├── General.tsx (1500 tokens)
├── PageHeading.tsx (200 tokens)
├── Setting.tsx (200 tokens)
├── widgetEdit/
├── WidgetEditForm.tsx (300 tokens)
├── index.ts (400 tokens)
├── route.json
├── widgetGrid/
├── Grid.jsx (2.5k tokens)
├── Heading.tsx (100 tokens)
├── NewWidgetButton.tsx (700 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── Name.tsx (100 tokens)
├── WidgetTypeRow.tsx (100 tokens)
├── widgetNew/
├── WidgetNewForm.tsx (400 tokens)
├── index.ts
├── route.json
├── typeValidate.js (100 tokens)
├── frontStore/
├── cmsPageView/
├── CmsPageView.tsx (100 tokens)
├── index.ts (500 tokens)
├── route.json
├── homepage/
├── meta.ts (100 tokens)
├── route.json
├── images/
├── images.ts (300 tokens)
├── route.json
├── notFound/
├── Meta.tsx (100 tokens)
├── NotFound.tsx (400 tokens)
├── index.ts (200 tokens)
├── route.json
├── staticAsset/
├── [context]staticAssets[auth].ts
├── route.json
├── services/
├── CMSPageCollection.js (300 tokens)
├── CustomMemoryStorage.js (300 tokens)
├── WidgetCollection.js (300 tokens)
├── browFiles.ts (2000 tokens)
├── contact/
├── ContactSubmissionCollection.ts (500 tokens)
├── contactSubmissionDataSchema.json (200 tokens)
├── deleteContactSubmission.ts (100 tokens)
├── getContactSubmissionsBaseQuery.ts (300 tokens)
├── registerDefaultContactSubmissionFilters.ts (300 tokens)
├── sanitizeContactText.ts (1000 tokens)
├── sendContactFormEmail.ts (900 tokens)
├── submitContactForm.ts (800 tokens)
├── tests/
├── unit/
├── sanitizeContactText.test.ts (800 tokens)
├── sendContactFormEmail.test.ts (800 tokens)
├── submitContactForm.test.ts (1100 tokens)
├── updateContactSubmissionStatus.ts (200 tokens)
├── createFolder.ts (300 tokens)
├── deleteFile.ts (300 tokens)
├── generateFileName.js (100 tokens)
├── getCmsPagesBaseQuery.js (100 tokens)
├── getMulter.js (1300 tokens)
├── getWidgetsBaseQuery.js
├── imageProcessor.ts (2.5k tokens)
├── index.ts
├── page/
├── createPage.ts (800 tokens)
├── deletePage.ts (700 tokens)
├── pageDataSchema.json (700 tokens)
├── syncPageUrlRewrite.ts (400 tokens)
├── tests/
├── unit/
├── syncPageUrlRewrite.test.ts (800 tokens)
├── updatePage.ts (1100 tokens)
├── pageMetaInfo.ts (100 tokens)
├── registerDefaultPageCollectionFilters.js (300 tokens)
├── registerDefaultWidgetCollectionFilters.js (400 tokens)
├── renameFile.ts (1100 tokens)
├── storage/
├── azure/
├── azureClient.ts (400 tokens)
├── azureStorage.ts (1700 tokens)
├── buildKey.ts (200 tokens)
├── cursor.ts (700 tokens)
├── folderScan.ts (200 tokens)
├── gcs/
├── gcsClient.ts (400 tokens)
├── gcsStorage.ts (1500 tokens)
├── s3/
├── s3Client.ts (500 tokens)
├── s3Storage.ts (2k tokens)
├── storageConfig.ts (2.6k tokens)
├── tests/
├── unit/
├── azureStorage.test.ts (2000 tokens)
├── browseFallback.test.ts (800 tokens)
├── builtinUploader.test.ts (300 tokens)
├── cursor.test.ts (400 tokens)
├── fileUrlResolution.test.ts (500 tokens)
├── gcsStorage.test.ts (1400 tokens)
├── s3Storage.test.ts (2.4k tokens)
├── storageConfig.test.ts (2.1k tokens)
├── verifyConnection.test.ts (1800 tokens)
├── types.ts (900 tokens)
├── verifyConnection.ts (1600 tokens)
├── tailwind.admin.config.ts (200 tokens)
├── tailwind.frontStore.config.ts (200 tokens)
├── tests/
├── unit/
├── customMemoryStorage.test.ts (500 tokens)
├── deleteFile.test.ts (300 tokens)
├── generateFileName.test.ts (300 tokens)
├── getMulter.test.ts (1700 tokens)
├── imageProcessor.test.js (5.2k tokens)
├── imageProcessor.theme.test.js (600 tokens)
├── renameFile.test.ts (800 tokens)
├── root/
├── images/
├── .gitkeep
├── junk.txt
├── media/
├── cache/
├── .gitkeep
├── junk.txt
├── test.svg (100 tokens)
├── double/
├── slash/
├── test.jpg
├── images/
├── .gitkeep
├── junk.txt
├── test.svg (100 tokens)
├── test-image.jpg
├── test-image.png
├── test-image.svg
├── test.svg (100 tokens)
├── transparent-svg.svg
├── transparent.svg (100 tokens)
├── public/
├── public-only-asset.png
├── themes/
├── mytheme/
├── public/
├── theme-logo.png
├── othertheme/
├── public/
├── secret.png
├── validatePath.test.js (300 tokens)
├── uploadFile.ts (700 tokens)
├── validatePath.js (100 tokens)
├── widget/
├── assertWidgetSettings.ts (500 tokens)
├── createWidget.ts (1600 tokens)
├── deleteWidget.ts (500 tokens)
├── loadWidgetInstances.js (2000 tokens)
├── tests/
├── unit/
├── assertWidgetSettings.test.ts (1000 tokens)
├── updateWidget.ts (1900 tokens)
├── widgetDataSchema.json (200 tokens)
├── cod/
├── bootstrap.ts (1100 tokens)
├── graphql/
├── types/
├── CODSetting/
├── CODSetting.graphql
├── CODSetting.resolvers.js (100 tokens)
├── migration/
├── Version-1.0.0.ts (400 tokens)
├── pages/
├── admin/
├── paymentSetting/
├── CODSetting.tsx (400 tokens)
├── frontStore/
├── checkout/
├── CashOnDelivery.tsx (2.3k tokens)
├── tests/
├── unit/
├── codPaymentLifecycle.test.js (800 tokens)
├── customer/
├── api/
├── createCustomer/
├── [bodyParser]createCustomer.ts (300 tokens)
├── [context]bodyParser[auth].ts
├── route.json
├── createCustomerAddress/
├── [context]bodyParser[auth].js
├── createCustomerAddress.js (300 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── createMyAddress/
├── [context]bodyParser[auth].ts (100 tokens)
├── createMyAddress.ts (500 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── deleteCustomer/
├── deleteCustomer.js (100 tokens)
├── route.json
├── deleteCustomerAddress/
├── deleteCustomerAddress.js (300 tokens)
├── route.json
├── deleteMyAddress/
├── deleteMyAddress.ts (400 tokens)
├── route.json
├── getCustomerToken/
├── [context]bodyParser[auth].ts
├── generateToken.ts (300 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── global/
├── [context]getCurrentCustomer[auth].js (500 tokens)
├── [context]jwtCustomerAuth[getCurrentCustomer].ts (200 tokens)
├── refreshCustomerToken/
├── [context]bodyParser[auth].ts
├── payloadSchema.json (100 tokens)
├── refreshToken.ts (300 tokens)
├── route.json
├── resetPassword/
├── [bodyParser]resetPassword.ts (400 tokens)
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── updateCustomer/
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── route.json
├── updateCustomer.js (400 tokens)
├── updateCustomerAddress/
├── [context]bodyParser[auth].js
├── payloadSchema.json (200 tokens)
├── route.json
├── updateCustomerAddress.js (500 tokens)
├── updateCustomerMetafields/
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── updateCustomerMetafields.ts (300 tokens)
├── updateCustomerProfile/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── updateProfile.ts (800 tokens)
├── updateMyAddress/
├── [context]bodyParser[auth].ts (100 tokens)
├── payloadSchema.json (200 tokens)
├── route.json
├── updateMyAddress.ts (600 tokens)
├── updatePassword/
├── [bodyParser]updatePassword.js (500 tokens)
├── [context]bodyParser[auth].js
├── payloadSchema.json
├── route.json
├── bootstrap.ts (900 tokens)
├── graphql/
├── types/
├── Customer/
├── Customer.admin.graphql (100 tokens)
├── Customer.admin.resolvers.js (200 tokens)
├── Customer.graphql (200 tokens)
├── Customer.resolvers.ts (300 tokens)
├── Customer.urn.graphql
├── Customer.urn.resolvers.ts
├── CustomerMetafields.graphql
├── CustomerMetafields.resolvers.ts (200 tokens)
├── CustomerGroup/
├── CustomerGroup.admin.graphql (100 tokens)
├── CustomerGroup.admin.resolvers.js (300 tokens)
├── CustomerGroup.graphql
├── CustomerGroup.resolvers.js (100 tokens)
├── migration/
├── Version-1.0.0.js (700 tokens)
├── Version-1.0.1.js (400 tokens)
├── Version-1.0.2.js (100 tokens)
├── Version-1.0.3.js (100 tokens)
├── Version-1.0.4.ts (100 tokens)
├── Version-1.0.5.ts (500 tokens)
├── pages/
├── admin/
├── all/
├── CustomerMenuGroup.jsx (200 tokens)
├── customerEdit+customerNew/
├── General.jsx (600 tokens)
├── OrderHistory.jsx (500 tokens)
├── PageHeading.tsx (200 tokens)
├── customerEdit/
├── CustomerCustomFields.tsx (200 tokens)
├── CustomerEditForm.jsx (100 tokens)
├── CustomerEditForm.scss
├── index.ts (200 tokens)
├── route.json
├── customerGrid/
├── Grid.jsx (2.8k tokens)
├── Heading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── CustomerName.tsx (100 tokens)
├── frontStore/
├── account+orderList/
├── AccountHeader.tsx (100 tokens)
├── AccountNav.tsx (100 tokens)
├── account/
├── AccountAddressBook.tsx (200 tokens)
├── AccountInfo.tsx (100 tokens)
├── AccountRecentOrders.tsx (200 tokens)
├── MyAccount.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── all/
├── CustomerIcon.tsx (200 tokens)
├── [context]auth.js (300 tokens)
├── customerLoginJson/
├── [bodyParser]login.ts (200 tokens)
├── payloadSchema.json
├── route.json
├── customerLogoutJson/
├── logout.js (100 tokens)
├── route.json
├── login/
├── LoginPage.tsx (500 tokens)
├── index.ts (200 tokens)
├── route.json
├── orderList/
├── CustomerOrders.tsx (500 tokens)
├── OrderList.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── orderTracking/
├── OrderTracking.tsx (1900 tokens)
├── index.ts (600 tokens)
├── route.json
├── orderView/
├── OrderView.tsx (2.2k tokens)
├── index.ts (300 tokens)
├── route.json
├── register/
├── RegisterPage.tsx (300 tokens)
├── index.ts (100 tokens)
├── route.json
├── resetPasswordPage/
├── ResetPasswordPage.tsx (1000 tokens)
├── index.ts (100 tokens)
├── route.json
├── services/
├── CustomerCollection.js (300 tokens)
├── CustomerGroupCollection.js (300 tokens)
├── customer/
├── address/
├── AddressValidationError.ts (200 tokens)
├── addressValidationResponse.ts (200 tokens)
├── createCustomerAddress.ts (900 tokens)
├── deleteCustomerAddress.ts (700 tokens)
├── foldAddressExtras.ts (500 tokens)
├── normalizeAddressInput.ts (700 tokens)
├── updateCustomerAddress.ts (1100 tokens)
├── buildCustomerPayload.ts (100 tokens)
├── createCustomer.ts (1000 tokens)
├── customerDataSchema.json (200 tokens)
├── customerMetafield.ts (400 tokens)
├── deleteCustomer.ts (600 tokens)
├── loginCustomerWithEmail.ts (300 tokens)
├── logoutCustomer.js (100 tokens)
├── updateCustomer.ts (900 tokens)
├── updatePassword.ts (700 tokens)
├── getCustomerGroupsBaseQuery.js
├── getCustomersBaseQuery.ts
├── index.ts (400 tokens)
├── registerDefaultCustomerCollectionFilters.js (500 tokens)
├── registerDefaultCustomerGroupCollectionFilters.js (200 tokens)
├── sendResetPasswordEmail.ts (500 tokens)
├── subscribers/
├── customer_registered/
├── sendWelcomeEmail.ts (500 tokens)
├── metafield_definition_deleted/
├── pruneCustomer.ts (100 tokens)
├── tests/
├── unit/
├── accountBlocks.test.tsx (700 tokens)
├── addressPayloadSchemas.test.ts (400 tokens)
├── addressServices.test.ts (1900 tokens)
├── fakeQueryBuilder.ts (900 tokens)
├── normalizeAddressInput.test.ts (800 tokens)
├── graphql/
├── api/
├── adminGraphql/
├── [bodyParser]graphql.js
├── [context]bodyParser[auth].js
├── route.json
├── graphql/
├── [auth]removeUser[graphql].ts (100 tokens)
├── [bodyParser]graphql.js (100 tokens)
├── [context]bodyParser[auth].js
├── route.json
├── bootstrap.js
├── graphql/
├── types/
├── Query/
├── Query.graphql
├── Query.resolvers.js
├── pages/
├── global/
├── [bodyParser,notFound]buildQuery[graphql].js (3.1k tokens)
├── [buildQuery]graphql[response].js (800 tokens)
├── bodyParser[buildQuery].ts
├── services/
├── buildResolvers.js (300 tokens)
├── buildSchema.js (100 tokens)
├── buildStoreFrontSchema.js (100 tokens)
├── buildTypes.js (200 tokens)
├── contextHelper.ts (400 tokens)
├── getRequestSchema.ts (300 tokens)
├── graphqlErrorMessageFormat.js (200 tokens)
├── graphqlMiddleware.js (400 tokens)
├── index.ts
├── parseContextValueArgs.ts (200 tokens)
├── tests/
├── unit/
├── buildQueryWidgetGuard.test.ts (1700 tokens)
├── graphqlFilesParse.test.ts (300 tokens)
├── parseContextValueArgs.test.ts (400 tokens)
├── oms/
├── api/
├── cancelOrder/
├── [context]borderParser[auth].js
├── cancelOrder.js (100 tokens)
├── payloadSchema.json
├── route.json
├── cancelShipment/
├── [context]bodyParser[auth].ts
├── cancelShipment.ts (300 tokens)
├── route.json
├── captureOrder/
├── [context]bodyParser[auth].ts
├── captureOrder.ts (200 tokens)
├── route.json
├── createOrderRefund/
├── [context]bodyParser[auth].ts
├── createOrderRefund.ts (200 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── createShipment/
├── [context]borderParser[auth].ts
├── createShipment.ts (300 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── lifetimesales/
├── loadData.js (300 tokens)
├── route.json
├── listOrderShipments/
├── listOrderShipments.ts (200 tokens)
├── route.json
├── markDelivered/
├── [context]bodyParser[auth].ts
├── markDelivered.ts (600 tokens)
├── payloadSchema.json
├── route.json
├── markShipmentDelivered/
├── [context]bodyParser[auth].ts
├── markShipmentDelivered.ts (300 tokens)
├── route.json
├── salestatistic/
├── loadData.js (400 tokens)
├── route.json
├── updateOrderMetafields/
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── updateOrderMetafields.ts (300 tokens)
├── updateShipment/
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── updateShipment.ts (500 tokens)
├── updateShipmentByUuid/
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── updateShipmentByUuid.ts (500 tokens)
├── voidShipmentLabel/
├── route.json
├── voidShipmentLabel.ts (200 tokens)
├── bootstrap.ts (3.5k tokens)
├── graphql/
├── types/
├── BestSeller/
├── BestSeller.admin.graphql
├── BestSeller.admin.resolvers.js (300 tokens)
├── Carrier/
├── Carrier.admin.graphql (200 tokens)
├── Carrier.admin.resolvers.js (200 tokens)
├── Order/
├── Order.admin.graphql (400 tokens)
├── Order.admin.resolvers.js (800 tokens)
├── Order.graphql (1300 tokens)
├── Order.resolvers.js (2.4k tokens)
├── Order.urn.graphql
├── Order.urn.resolvers.ts
├── OrderItemPackage.admin.graphql
├── OrderItemPackage.admin.resolvers.ts (100 tokens)
├── OrderMetafields.graphql
├── OrderMetafields.resolvers.ts (200 tokens)
├── PaymentTransaction/
├── PaymentTransaction.admin.graphql (100 tokens)
├── PaymentTransaction.admin.resolvers.js (100 tokens)
├── Status/
├── Status.graphql (300 tokens)
├── Status.resolvers.js (100 tokens)
├── migration/
├── Version-1.0.0.js (300 tokens)
├── Version-1.0.1.js (200 tokens)
├── Version-1.0.10.ts (100 tokens)
├── Version-1.0.2.ts (100 tokens)
├── Version-1.0.3.test.sql (1100 tokens)
├── Version-1.0.3.ts (1300 tokens)
├── Version-1.0.4.ts (400 tokens)
├── Version-1.0.5.ts (300 tokens)
├── Version-1.0.6.ts (1000 tokens)
├── Version-1.0.7.ts (300 tokens)
├── Version-1.0.8.ts (300 tokens)
├── Version-1.0.9.ts (200 tokens)
├── pages/
├── admin/
├── all/
├── OmsMenuGroup.jsx (100 tokens)
├── dashboard/
├── Bestcustomers.jsx (500 tokens)
├── Bestsellers.tsx (900 tokens)
├── Lifetimesales.jsx (1000 tokens)
├── Lifetimesales.scss (200 tokens)
├── Statistic.jsx (800 tokens)
├── Statistic.scss (100 tokens)
├── orderEdit/
├── Activities.jsx (700 tokens)
├── CancelButton.tsx (600 tokens)
├── CaptureButton.tsx (400 tokens)
├── Customer.tsx (600 tokens)
├── CustomerNotes.tsx (300 tokens)
├── Items.tsx (1400 tokens)
├── Layout.jsx (100 tokens)
├── Layout.scss
├── OrderCustomFields.tsx (200 tokens)
├── PageHeading.tsx (100 tokens)
├── Payment.jsx (900 tokens)
├── RefundButton.tsx (1100 tokens)
├── Shipments.tsx (600 tokens)
├── Shipments/
├── NewShipmentDialog.tsx (3k tokens)
├── ShipmentRow.tsx (2.9k tokens)
├── carrierCaps.ts (300 tokens)
├── phaseBadge.tsx (500 tokens)
├── Status.jsx (100 tokens)
├── index.ts (200 tokens)
├── items/
├── ItemVariantOptions.tsx (100 tokens)
├── Name.tsx (200 tokens)
├── Price.tsx (100 tokens)
├── Thumbnail.tsx (200 tokens)
├── payment/
├── Discount.tsx (100 tokens)
├── Shipping.tsx (100 tokens)
├── SubTotal.tsx (100 tokens)
├── Tax.tsx (100 tokens)
├── Total.tsx (100 tokens)
├── route.json
├── orderGrid/
├── Grid.jsx (3.6k tokens)
├── Heading.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── OrderNumber.tsx (100 tokens)
├── PaymentStatus.tsx (100 tokens)
├── ShipmentStatus.tsx (100 tokens)
├── services/
├── OrderCollection.js (300 tokens)
├── addOrderActivityLog.ts (300 tokens)
├── addPaymentTransaction.ts (200 tokens)
├── addressEmailData.ts (300 tokens)
├── anonymousTrackingToken.ts (500 tokens)
├── cancelOrder.ts (2.2k tokens)
├── canonicalShipmentStatuses.ts (400 tokens)
├── captureOrder.ts (900 tokens)
├── carrier/
├── registry.ts (500 tokens)
├── createShipment.ts (6k tokens)
├── getOrdersBaseQuery.js
├── index.ts (600 tokens)
├── markDelivered.ts (300 tokens)
├── orderAccess.ts (800 tokens)
├── orderLoader.ts (400 tokens)
├── orderMetafield.ts (400 tokens)
├── recomputeOrderShipmentStatus.ts (900 tokens)
├── recordRefund.ts (1000 tokens)
├── refundOrder.ts (800 tokens)
├── refundStatus.ts (600 tokens)
├── registerDefaultOrderCollectionFilters.js (700 tokens)
├── rollupDisplay.ts (300 tokens)
├── shipment/
├── reads.ts (1100 tokens)
├── resolveShipmentRollup.ts (1900 tokens)
├── statusManager.ts (1400 tokens)
├── thumbnailUrl.ts (100 tokens)
├── updateOrderStatus.ts (2.3k tokens)
├── updatePaymentStatus.ts (600 tokens)
├── updateShipmentStatus.ts (2.1k tokens)
├── updateShipmentStatusFromCarrier.ts (1300 tokens)
├── voidShipmentLabel.ts (1000 tokens)
├── subscribers/
├── metafield_definition_deleted/
├── pruneOrder.ts (100 tokens)
├── order_canceled/
├── sendCancellationEmail.ts (800 tokens)
├── order_placed/
├── sendOrderConfirmationEmail.ts (1400 tokens)
├── order_refunded/
├── sendRefundEmail.ts (900 tokens)
├── shipment_created/
├── sendShipmentCreatedEmail.ts (1400 tokens)
├── shipment_delivered/
├── sendShipmentDeliveredEmail.ts (1200 tokens)
├── tests/
├── unit/
├── aggregateRollupStats.test.js (700 tokens)
├── anonymousTrackingToken.test.js (600 tokens)
├── cancelOrderValidate.test.js (700 tokens)
├── carrierRegistry.test.js (600 tokens)
├── hookNameAlignment.test.js (300 tokens)
├── orderAccess.test.ts (1100 tokens)
├── orderAccessPages.test.ts (1100 tokens)
├── orderConfirmationEmailAddress.test.ts (600 tokens)
├── orderPaymentActions.test.js (800 tokens)
├── orderQueryAccess.test.ts (700 tokens)
├── refundStatus.test.js (800 tokens)
├── resolveOrderStatus.test.js (1700 tokens)
├── rollupDisplay.test.js (400 tokens)
├── shipmentEmailAddress.test.ts (600 tokens)
├── status.test.js (400 tokens)
├── thumbnailUrl.test.js (300 tokens)
├── toCarrierAddress.test.ts (400 tokens)
├── types/
├── carrier.ts (2.2k tokens)
├── orderShipmentRollup.ts (200 tokens)
├── shipmentPhase.ts (200 tokens)
├── pageBuilder/
├── api/
├── addChangesetOperation/
├── [context]bodyParser[auth].ts (100 tokens)
├── addChangesetOperation.ts (1800 tokens)
├── route.json
├── cancelRolloutPlan/
├── cancelRolloutPlan.ts (400 tokens)
├── route.json
├── createChangeset/
├── [context]bodyParser[auth].ts (100 tokens)
├── createChangeset.ts (400 tokens)
├── route.json
├── createRolloutPlan/
├── [context]bodyParser[auth].ts (100 tokens)
├── createRolloutPlan.ts (1100 tokens)
├── route.json
├── discardChangeset/
├── discardChangeset.ts (1700 tokens)
├── route.json
├── listRolloutPlans/
├── listRolloutPlans.ts (800 tokens)
├── route.json
├── moveCurrentChange/
├── [context]bodyParser[auth].ts (100 tokens)
├── moveCurrentChange.ts (1500 tokens)
├── route.json
├── publishChangeset/
├── publishChangeset.ts (600 tokens)
├── route.json
├── syncRolloutPlan/
├── route.json
├── syncRolloutPlan.ts (600 tokens)
├── updateRolloutPlan/
├── [context]bodyParser[auth].ts (100 tokens)
├── route.json
├── updateRolloutPlan.ts (800 tokens)
├── bootstrap.ts (100 tokens)
├── components/
├── DeviceButton.tsx (200 tokens)
├── EntityScopeSelector.tsx (1800 tokens)
├── LayerNode.tsx (800 tokens)
├── LeftTabButton.tsx (200 tokens)
├── PageSwitcher.tsx (1300 tokens)
├── PrimaryActionButton.tsx (1400 tokens)
├── PublishMenuItem.tsx (400 tokens)
├── SessionModeBadge.tsx (800 tokens)
├── WidgetPreviewCard.tsx (900 tokens)
├── cursorsEqual.ts (100 tokens)
├── widgetIcons.ts (400 tokens)
├── graphql/
├── types/
├── Changeset/
├── Changeset.admin.graphql (500 tokens)
├── Changeset.admin.resolvers.ts (1500 tokens)
├── ChangesetOperation/
├── ChangesetOperation.admin.graphql (100 tokens)
├── ChangesetOperation.admin.resolvers.ts
├── PageBuilderScope/
├── PageBuilderScope.admin.graphql (300 tokens)
├── PageBuilderScope.admin.resolvers.ts (300 tokens)
├── RolloutPlan/
├── RolloutPlan.admin.graphql (200 tokens)
├── RolloutPlan.admin.resolvers.ts (600 tokens)
├── migration/
├── Version-1.0.0.ts (800 tokens)
├── Version-1.1.0.ts (1700 tokens)
├── Version-1.2.0.ts (500 tokens)
├── pages/
├── admin/
├── all/
├── StorefrontMenuGroup.tsx (200 tokens)
├── pageBuilder/
├── Heading.tsx (100 tokens)
├── RoutePicker.tsx (600 tokens)
├── index.ts (400 tokens)
├── route.json
├── pageBuilderEdit/
├── ConfirmDialog.tsx (500 tokens)
├── DiscardConfirmDialog.tsx (1700 tokens)
├── Editor.tsx (27.4k tokens)
├── ExitConfirmDialog.tsx (900 tokens)
├── Heading.tsx (100 tokens)
├── MetafieldGuideDrawer.tsx (2.3k tokens)
├── PublishDialog.tsx (1800 tokens)
├── RolloutDialog.tsx (3.4k tokens)
├── SessionPicker.tsx (2.2k tokens)
├── SettingsDrawer.tsx (5.8k tokens)
├── index.ts (1400 tokens)
├── route.json
├── frontStore/
├── all/
├── enforcePreviewThemeMatch.ts (400 tokens)
├── services/
├── applyOperationToSource.ts (1600 tokens)
├── applyOverlayToWidgets.ts (1000 tokens)
├── changesetOwnership.ts (200 tokens)
├── enforcePreviewThemeMatch.ts (300 tokens)
├── getOrCreateDraftChangeset.ts (1000 tokens)
├── isValidPreviewToken.ts (200 tokens)
├── loadActiveOps.ts (800 tokens)
├── publishChangeset.ts (600 tokens)
├── tests/
├── unit/
├── applyOverlayToWidgets.test.ts (1700 tokens)
├── isValidPreviewToken.test.ts (300 tokens)
├── paypal/
├── api/
├── paypalCreateOrder/
├── [bodyParser]createOrder.ts (1200 tokens)
├── [context]bodyParser[auth].ts
├── payloadSchema.json
├── route.json
├── paypalWebhook/
├── [bodyRaw]webhook.ts (500 tokens)
├── bodyRaw.ts
├── route.json
├── bootstrap.ts (1400 tokens)
├── graphql/
├── types/
├── PaypalSetting/
├── PaypalSetting.admin.graphql
├── PaypalSetting.admin.resolvers.js (500 tokens)
├── PaypalSetting.graphql
├── PaypalSetting.resolvers.js (200 tokens)
├── migration/
├── Version-1.0.0.ts (200 tokens)
├── pages/
├── admin/
├── paymentSetting/
├── PaypalSetting.tsx (1100 tokens)
├── frontStore/
├── checkout/
├── Paypal.tsx (2.5k tokens)
├── paypalCancel/
├── index.ts (400 tokens)
├── route.json
├── paypalReturn/
├── Error.tsx (100 tokens)
├── index.ts (500 tokens)
├── route.json
├── services/
├── finalizePaypalOrder.ts (1600 tokens)
├── getApiBaseUrl.js (100 tokens)
├── paypalPayload.ts (1000 tokens)
├── paypalShippingAddress.ts (400 tokens)
├── paypalWebhook.ts (1300 tokens)
├── reconcileAbandonedOrders.ts (600 tokens)
├── requester.js (600 tokens)
├── voidPaymentTransaction.js (300 tokens)
├── tests/
├── unit/
├── bootstrapStatuses.test.js (400 tokens)
├── finalizeStatusMapping.test.js (300 tokens)
├── getApiBaseUrl.test.js (200 tokens)
├── paypalAddressMapping.test.ts (500 tokens)
├── paypalPayload.test.js (1000 tokens)
├── paypalWebhookKeys.test.js (400 tokens)
├── requesterTokenCache.test.js (500 tokens)
├── promotion/
├── api/
├── couponApply/
├── [context]bodyParser[auth].ts
├── [validateCouponCode]applyCoupon.ts (200 tokens)
├── payloadSchema.json
├── route.json
├── validateCouponCode.js (100 tokens)
├── couponRemove/
├── removeCoupon.ts (300 tokens)
├── route.json
├── createCoupon/
├── [context]bodyParser[auth].js
├── createCoupon[finish].js
├── finish[apiResponse].js (100 tokens)
├── route.json
├── createLandingPage/
├── [context]bodyParser[auth].ts
├── createLandingPage[finish].ts (100 tokens)
├── finish[apiResponse].ts (200 tokens)
├── payloadSchema.json
├── route.json
├── deleteCoupon/
├── deleteCoupon.js (100 tokens)
├── route.json
├── deleteLandingPage/
├── deleteLandingPage.ts (100 tokens)
├── route.json
├── duplicateLandingPage/
├── duplicateLandingPage.ts (200 tokens)
├── route.json
├── replaceHomepage/
├── [context]bodyParser[auth].ts
├── payloadSchema.json (100 tokens)
├── replaceHomepage.ts (400 tokens)
├── route.json
├── replaceHomepagePreflight/
├── replaceHomepagePreflight.ts (200 tokens)
├── route.json
├── updateCoupon/
├── [context]bodyParser[auth].js
├── finish[apiResponse].js (100 tokens)
├── route.json
├── updateCoupon[finish].js
├── updateLandingPage/
├── [context]bodyParser[auth].ts
├── finish[apiResponse].ts (200 tokens)
├── route.json
├── updateLandingPage[finish].ts (100 tokens)
├── bootstrap.js (900 tokens)
├── graphql/
├── types/
├── Coupon/
├── Coupon.admin.graphql (300 tokens)
├── Coupon.admin.resolvers.js (400 tokens)
├── Coupon.graphql
├── Coupon.resolvers.js (100 tokens)
├── LandingPage/
├── LandingPage.admin.graphql (200 tokens)
├── LandingPage.admin.resolvers.ts (400 tokens)
├── migration/
├── Version-1.0.0.js (400 tokens)
├── Version-1.0.1.js (100 tokens)
├── Version-1.1.0.ts (300 tokens)
├── pages/
├── admin/
├── all/
├── CouponMenuGroup.tsx (100 tokens)
├── LandingPageMenuItem.tsx (200 tokens)
├── NewCouponQuickLink.tsx (100 tokens)
├── couponEdit+couponNew/
├── CustomerCondition.tsx (700 tokens)
├── DiscountType.tsx (600 tokens)
├── General.scss
├── General.tsx (900 tokens)
├── OrderCondition.tsx (300 tokens)
├── PageHeading.tsx (200 tokens)
├── components/
├── AttributeGroupConditionValueSelector.tsx (500 tokens)
├── BuyXGetY.tsx (1600 tokens)
├── CategoryConditionValueSelector.tsx (500 tokens)
├── CollectionConditionValueSelector.tsx (500 tokens)
├── PriceConditionValueSelector.tsx (200 tokens)
├── RequireProducts.tsx (1600 tokens)
├── Setting.tsx (200 tokens)
├── SkuConditionValueSelector.tsx (500 tokens)
├── TargetProducts.tsx (1800 tokens)
├── ValueSelector.tsx (500 tokens)
├── conditionCriterias.ts (200 tokens)
├── couponEdit/
├── CouponEditForm.tsx (600 tokens)
├── index.ts (200 tokens)
├── route.json
├── couponGrid/
├── Grid.jsx (3.4k tokens)
├── Heading.tsx (100 tokens)
├── NewCouponButton.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── CouponName.tsx (100 tokens)
├── couponNew/
├── CouponNewForm.tsx (700 tokens)
├── index.ts
├── route.json
├── landingPageEdit+landingPageNew/
├── General.scss
├── General.tsx (300 tokens)
├── PageHeading.tsx (200 tokens)
├── Schedule.tsx (400 tokens)
├── Seo.tsx (600 tokens)
├── Status.tsx (300 tokens)
├── landingPageEdit/
├── BuildInPageBuilderButton.tsx (200 tokens)
├── LandingPageEditForm.tsx (200 tokens)
├── ReplaceHomepageButton.tsx (400 tokens)
├── ReplaceHomepageDialog.tsx (2.5k tokens)
├── index.ts (200 tokens)
├── route.json
├── landingPageGrid/
├── Grid.tsx (2.8k tokens)
├── Heading.tsx (100 tokens)
├── NewLandingPageButton.tsx (100 tokens)
├── index.ts (100 tokens)
├── route.json
├── rows/
├── LandingPageName.tsx (100 tokens)
├── landingPageNew/
├── LandingPageNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── navigation/
├── CouponNewMenuItem.tsx (100 tokens)
├── CouponsMenuItem.tsx (100 tokens)
├── frontStore/
├── landingPageView/
├── index.ts (800 tokens)
├── route.json
├── services/
├── CouponCollection.js (300 tokens)
├── LandingPageCollection.ts (400 tokens)
├── coupon/
├── couponDataSchema.json (2.3k tokens)
├── createCoupon.ts (900 tokens)
├── deleteCoupon.ts (500 tokens)
├── updateCoupon.ts (800 tokens)
├── couponValidator.js (200 tokens)
├── discountCalculator.js (100 tokens)
├── getCartTotalBeforeDiscount.js (100 tokens)
├── getCouponsBaseQuery.js
├── index.ts (300 tokens)
├── landingPage/
├── backupIdentity.ts (300 tokens)
├── cloneWidgetBody.ts (1500 tokens)
├── createLandingPage.ts (700 tokens)
├── deleteLandingPage.ts (800 tokens)
├── duplicateLandingPage.ts (700 tokens)
├── findFreeUrlKey.ts (100 tokens)
├── getLandingPagesBaseQuery.ts (100 tokens)
├── landingPageDataSchema.json (100 tokens)
├── normalizeLandingPageData.ts (100 tokens)
├── pageBuilderOps.ts (1500 tokens)
├── registerLandingPageLinkLoader.ts (300 tokens)
├── replaceHomepage.ts (5.3k tokens)
├── syncLandingPageUrlRewrite.ts (200 tokens)
├── updateLandingPage.ts (900 tokens)
├── registerCartItemPromotionFields.js (400 tokens)
├── registerCartPromotionFields.js (900 tokens)
├── registerDefaultCalculators.js (2.5k tokens)
├── registerDefaultCouponCollectionFilters.js (400 tokens)
├── registerDefaultLandingPageCollectionFilters.ts (400 tokens)
├── registerDefaultValidators.js (2.8k tokens)
├── tests/
├── unit/
├── backupIdentity.test.ts (300 tokens)
├── findFreeUrlKey.test.ts (200 tokens)
├── hookNameAlignment.test.ts (100 tokens)
├── pageBuilderOps.test.ts (700 tokens)
├── rewriteArea.test.ts (300 tokens)
├── setting/
├── api/
├── saveSetting/
├── [context]bodyParser[auth].ts
├── route.json
├── saveSetting.js (800 tokens)
├── bootstrap.ts (400 tokens)
├── graphql/
├── types/
├── AddressSetting/
├── AddressSetting.admin.graphql (100 tokens)
├── AddressSetting.admin.resolvers.ts (200 tokens)
├── BrandingSetting/
├── BrandingSetting.graphql (200 tokens)
├── BrandingSetting.resolvers.ts (200 tokens)
├── Setting/
├── Setting.admin.graphql
├── Setting.admin.resolvers.js (100 tokens)
├── Setting.graphql
├── Setting.resolvers.js (100 tokens)
├── ShopMetafields.graphql
├── ShopMetafields.resolvers.ts (200 tokens)
├── ShippingSetting/
├── ShippingSetting.graphql
├── ShippingSetting.resolvers.js
├── StoreSetting/
├── StoreSetting.graphql (100 tokens)
├── StoreSetting.resolvers.js (600 tokens)
├── migration/
├── Version-1.0.0.js (100 tokens)
├── pages/
├── admin/
├── all/
├── CustomerSettingMenu.tsx (100 tokens)
├── PaymentSettingMenu.tsx (100 tokens)
├── SettingMenuGroup.tsx (100 tokens)
├── StoreSettingMenu.tsx (100 tokens)
├── SystemSettingMenu.tsx (100 tokens)
├── customerSetting/
├── CustomerSetting.tsx (600 tokens)
├── components/
├── AddressSection.tsx (1200 tokens)
├── index.ts
├── route.json
├── paymentSetting/
├── PaymentSetting.tsx (200 tokens)
├── index.ts
├── route.json
├── storeSetting/
├── StoreSetting.tsx (4.9k tokens)
├── index.ts
├── route.json
├── systemSetting/
├── SystemSetting.tsx (200 tokens)
├── index.ts
├── route.json
├── services/
├── index.ts
├── setting.ts (1700 tokens)
├── tests/
├── unit/
├── addressSettingResolvers.test.ts (300 tokens)
├── bootstrap.test.ts (500 tokens)
├── customerSettingPage.test.tsx (600 tokens)
├── storeLanguageSync.test.ts (600 tokens)
├── stripe/
├── api/
├── createPaymentIntent/
├── [context]bodyParser[auth].ts
├── createPaymentIntent.ts (600 tokens)
├── payloadSchema.json (100 tokens)
├── route.json
├── stripeWebHook/
├── [bodyJson]webhook.ts (2.4k tokens)
├── bodyJson.ts
├── route.json
├── bootstrap.ts (1000 tokens)
├── graphql/
├── types/
├── StripeSetting/
├── StripeSetting.admin.graphql
├── StripeSetting.admin.resolvers.js (300 tokens)
├── StripeSetting.graphql
├── StripeSetting.resolvers.js (300 tokens)
├── migration/
├── Version-1.0.0.ts (200 tokens)
├── pages/
├── admin/
├── paymentSetting/
├── StripePayment.tsx (1000 tokens)
├── frontStore/
├── checkout/
├── Stripe.tsx (4.3k tokens)
├── stripeReturn/
├── index.ts (700 tokens)
├── route.json
├── services/
├── cancelPayment.ts (300 tokens)
├── returnOutcome.ts (200 tokens)
├── stripeAmount.ts (200 tokens)
├── webhookEvents.ts (200 tokens)
├── tests/
├── unit/
├── returnOutcome.test.js (200 tokens)
├── stripeAmount.test.js (300 tokens)
├── webhookEvents.test.js (400 tokens)
├── tax/
├── api/
├── createTaxClass/
├── [context]borderParser[auth].ts
├── createTaxClass.ts (200 tokens)
├── payloadSchema.json
├── route.json
├── createTaxRate/
├── [context]borderParser[auth].ts
├── createTaxRate.ts (300 tokens)
├── payloadSchema.json (500 tokens)
├── route.json
├── deleteTaxRate/
├── [context]borderParser[auth].ts
├── deleteTaxRate.ts (200 tokens)
├── route.json
├── updateTaxClass/
├── [context]borderParser[auth].js
├── payloadSchema.json
├── route.json
├── updateTaxClass.js (300 tokens)
├── updateTaxRate/
├── [context]borderParser[auth].js
├── payloadSchema.json (500 tokens)
├── route.json
├── updateTaxRate.js (300 tokens)
├── bootstrap.js (400 tokens)
├── graphql/
├── types/
├── Product/
├── Price/
├── ProductPrice.resolvers.js (100 tokens)
├── TaxClass/
├── TaxClass.admin.graphql (200 tokens)
├── TaxClass.admin.resolvers.js (300 tokens)
├── TaxSetting/
├── TaxSetting.admin.graphql
├── TaxSetting.admin.resolvers.js (300 tokens)
├── TaxSetting.graphql
├── TaxSetting.resolvers.js
├── migration/
├── Version-1.0.0.js (500 tokens)
├── Version-1.0.1.ts (300 tokens)
├── pages/
├── admin/
├── all/
├── TaxSettingMenu.tsx (100 tokens)
├── taxSetting/
├── TaxSetting.tsx (2.3k tokens)
├── components/
├── Rate.tsx (500 tokens)
├── RateForm.tsx (1500 tokens)
├── Rates.tsx (500 tokens)
├── TaxClass.tsx (200 tokens)
├── TaxClassForm.tsx (300 tokens)
├── TaxClasses.tsx (100 tokens)
├── index.ts
├── route.json
├── services/
├── TaxClassCollection.js (300 tokens)
├── calculateTaxAmount.js (400 tokens)
├── getTaxPercent.js (100 tokens)
├── getTaxRates.ts (500 tokens)
├── registerCartItemTaxPercentField.js (500 tokens)
├── registerDefaultTaxClassCollectionFilters.js (200 tokens)
├── taxSettings.ts (400 tokens)
├── tests/
├── unit/
├── getTaxRates.test.ts (500 tokens)
├── taxSettings.test.js (500 tokens)
├── webhook/
├── api/
├── createWebhook/
├── [context]bodyParser[auth].ts
├── createWebhook.ts (200 tokens)
├── route.json
├── deleteWebhook/
├── deleteWebhook.ts (100 tokens)
├── route.json
├── retryWebhookDelivery/
├── retryWebhookDelivery.ts (100 tokens)
├── route.json
├── testWebhook/
├── route.json
├── testWebhook.ts (200 tokens)
├── updateWebhook/
├── [context]bodyParser[auth].ts
├── route.json
├── updateWebhook.ts (200 tokens)
├── bootstrap.ts (300 tokens)
├── graphql/
├── types/
├── Webhook/
├── Webhook.admin.graphql (300 tokens)
├── Webhook.admin.resolvers.ts (700 tokens)
├── migration/
├── Version-1.0.0.ts (500 tokens)
├── pages/
├── admin/
├── all/
├── WebhookSettingMenu.tsx (100 tokens)
├── webhookEdit+webhookNew/
├── General.tsx (400 tokens)
├── PageHeading.tsx (200 tokens)
├── Topics.tsx (1600 tokens)
├── webhookEdit/
├── Deliveries.tsx (1700 tokens)
├── Secret.tsx (600 tokens)
├── SendTest.tsx (600 tokens)
├── WebhookEditForm.tsx (200 tokens)
├── index.ts (200 tokens)
├── route.json
├── webhookGrid/
├── Grid.tsx (1100 tokens)
├── LogSetting.tsx (400 tokens)
├── NewWebhookButton.tsx (200 tokens)
├── PageHeading.tsx (100 tokens)
├── index.ts
├── route.json
├── webhookNew/
├── WebhookNewForm.tsx (300 tokens)
├── index.ts
├── route.json
├── services/
├── WebhookDeliveryCollection.ts (400 tokens)
├── assertWebhookUrl.ts (400 tokens)
├── backoff.ts (200 tokens)
├── constants.ts (300 tokens)
├── coreWebhookTopics.ts (900 tokens)
├── createWebhook.ts (400 tokens)
├── deleteWebhook.ts (100 tokens)
├── deliverWebhook.ts (500 tokens)
├── deliveryStore.ts (1600 tokens)
├── enqueueDeliveries.ts (800 tokens)
├── errors.ts (100 tokens)
├── ipBlockList.ts (500 tokens)
├── logLimit.ts (200 tokens)
├── matchWebhooks.ts (200 tokens)
├── processDeliveries.ts (600 tokens)
├── redactPayload.ts (300 tokens)
├── registerDefaultWebhookDeliveryFilters.ts (100 tokens)
├── respondWithError.ts (100 tokens)
├── retryDelivery.ts (300 tokens)
├── secret.ts
├── sendTestEvent.ts (400 tokens)
├── sign.ts (200 tokens)
├── updateWebhook.ts (500 tokens)
├── validateWebhookInput.ts (200 tokens)
├── webhookCache.ts (500 tokens)
├── webhookFetch.ts (800 tokens)
├── webhookTopics.ts (500 tokens)
├── subscribers/
├── _all/
├── enqueueWebhookDeliveries.ts (100 tokens)
├── tests/
├── unit/
├── assertWebhookUrl.test.ts (600 tokens)
├── backoff.test.ts (200 tokens)
├── deliverWebhook.test.ts (900 tokens)
├── enqueueDeliveries.test.ts (1400 tokens)
├── errors.test.ts (400 tokens)
├── ipBlockList.test.ts (400 tokens)
├── logLimit.test.ts (200 tokens)
├── matchWebhooks.test.ts (400 tokens)
├── processDeliveries.test.ts (700 tokens)
├── redactPayload.test.ts (300 tokens)
├── sign.test.ts (200 tokens)
├── webhookCache.test.ts (600 tokens)
├── webhookFetch.test.ts (1400 tokens)
├── webhookTopics.test.ts (800 tokens)
├── types/
├── index.ts (300 tokens)
├── types/
├── address.ts (300 tokens)
├── apiResponse.ts
├── appContext.tsx (300 tokens)
├── atLeastOne.ts
├── checkoutData.ts (300 tokens)
├── componentLayout.ts
├── cronjob.ts
├── db/
├── index.ts (8.9k tokens)
├── event.ts (1500 tokens)
├── extension.ts
├── graphqlFilter.ts
├── middleware.ts (300 tokens)
├── order.ts (400 tokens)
├── pageMeta.ts (200 tokens)
├── registry.ts (1800 tokens)
├── request.ts (400 tokens)
├── response.ts
├── route.ts
├── shippingMethodData.ts (400 tokens)
├── shippingProvider.ts (1800 tokens)
├── widget.ts (900 tokens)
├── tsconfig.json (100 tokens)
├── postgres-query-builder/
├── .swcrc (100 tokens)
├── LICENSE (200 tokens)
├── README.md (600 tokens)
├── package.json (200 tokens)
├── src/
├── fieldResolve.js (100 tokens)
├── index.ts (6.4k tokens)
├── isValueASQL.js (100 tokens)
├── rawSqlMarker.ts (200 tokens)
├── toString.js (100 tokens)
├── tsconfig.json (100 tokens)
├── scripts/
├── address-formats/
├── README.md (3k tokens)
├── fetch-snapshot.mjs (2.5k tokens)
├── fixes/
├── MO.format.json
├── MO.sources.md (100 tokens)
├── VN.regions.json (1800 tokens)
├── VN.sources.md (4.8k tokens)
├── countries.json
├── generate.mjs (4.6k tokens)
├── rollback-schema.sql (1300 tokens)
├── snapshot/
├── calling-codes.json (800 tokens)
├── cldr/
├── af.json (1200 tokens)
├── ak.json (1400 tokens)
├── am.json (1400 tokens)
├── ar.json (1200 tokens)
├── az.json (1300 tokens)
├── be.json (1200 tokens)
├── bg.json (1200 tokens)
├── bm.json (1200 tokens)
├── bn.json (1400 tokens)
├── bs.json (1200 tokens)
├── ca.json (1400 tokens)
├── cs.json (1200 tokens)
├── da.json (1200 tokens)
├── de.json (1200 tokens)
├── dv.json (1200 tokens)
├── dz.json (1200 tokens)
├── el.json (1300 tokens)
├── en.json (1200 tokens)
├── es.json (1300 tokens)
├── et.json (1200 tokens)
├── fa.json (1200 tokens)
├── fi.json (1200 tokens)
├── fo.json (1200 tokens)
├── fr.json (1200 tokens)
├── gn.json (1200 tokens)
├── ha.json (1200 tokens)
├── he.json (1400 tokens)
├── hr.json (1200 tokens)
├── ht.json (1200 tokens)
├── hu.json (1200 tokens)
├── hy.json (1100 tokens)
├── id.json (1200 tokens)
├── is.json (1200 tokens)
├── it.json (1200 tokens)
├── ja.json (1100 tokens)
├── ka.json (1300 tokens)
├── kk.json (1100 tokens)
├── kl.json (1200 tokens)
├── km.json (1200 tokens)
├── ko.json (1100 tokens)
├── ky.json (1400 tokens)
├── likelySubtags.json (44k tokens)
├── lo.json (1200 tokens)
├── lt.json (1300 tokens)
├── lv.json (1200 tokens)
├── mg.json (1200 tokens)
├── mk.json (1200 tokens)
├── mn.json (1200 tokens)
├── ms.json (1300 tokens)
├── mt.json (1200 tokens)
├── my.json (1200 tokens)
├── nb.json (1200 tokens)
├── ne.json (1200 tokens)
├── nl.json (1200 tokens)
├── no.json (1200 tokens)
├── pap.json (1200 tokens)
├── pl.json (1100 tokens)
├── pt.json (1200 tokens)
├── rn.json (1200 tokens)
├── ro.json (1200 tokens)
├── ru.json (1200 tokens)
├── rw.json (1200 tokens)
├── sg.json (1200 tokens)
├── si.json (1200 tokens)
├── sk.json (1200 tokens)
├── sl.json (1200 tokens)
├── sn.json (1200 tokens)
├── so.json (1200 tokens)
├── sq.json (1200 tokens)
├── sr.json (1200 tokens)
├── st.json (1200 tokens)
├── sv.json (1200 tokens)
├── sw.json (1200 tokens)
├── tg.json (1400 tokens)
├── th.json (1300 tokens)
├── ti.json (1200 tokens)
├── tk.json (1200 tokens)
├── to.json (1000 tokens)
├── tpi.json (1200 tokens)
├── tr.json (1200 tokens)
├── tyv.json (1200 tokens)
├── uk.json (1400 tokens)
├── und.json (1200 tokens)
├── ur.json (1200 tokens)
├── uz.json (1200 tokens)
├── vi.json (1200 tokens)
├── wo.json (1400 tokens)
├── zh.json (1200 tokens)
├── google/
├── AC.json
├── AD.json (100 tokens)
├── AE.json (100 tokens)
├── AF.json
├── AG.json
├── AI.json
├── AL.json
├── AM.json (100 tokens)
├── AO.json
├── AQ.json
├── AR.json (200 tokens)
├── AS.json (100 tokens)
├── AT.json
├── AU.json (200 tokens)
├── AW.json
├── AX.json (100 tokens)
├── AZ.json
├── BA.json
├── BB.json (100 tokens)
├── BD.json
├── BE.json
├── BF.json
├── BG.json
├── BH.json
├── BI.json
├── BJ.json
├── BL.json (100 tokens)
├── BM.json
├── BN.json
├── BO.json
├── BQ.json
├── BR.json (400 tokens)
├── BS.json (100 tokens)
├── BT.json
├── BV.json
├── BW.json
├── BY.json (100 tokens)
├── BZ.json
├── CA.json (200 tokens)
├── CC.json
├── CD.json
├── CF.json
├── CG.json
├── CH.json (100 tokens)
├── CI.json
├── CK.json
├── CL.json (200 tokens)
├── CM.json
├── CN.json (300 tokens)
├── CO.json (200 tokens)
├── CR.json (100 tokens)
├── CU.json (100 tokens)
├── CV.json (100 tokens)
├── CW.json
├── CX.json
├── CY.json
├── CZ.json
├── DE.json
├── DJ.json
├── DK.json (100 tokens)
├── DM.json
├── DO.json
├── DZ.json
├── EC.json
├── EE.json (100 tokens)
├── EG.json (200 tokens)
├── EH.json
├── ER.json
├── ES.json (200 tokens)
├── ET.json
├── FI.json (100 tokens)
├── FJ.json
├── FK.json
├── FM.json (100 tokens)
├── FO.json
├── FR.json (100 tokens)
├── GA.json
├── GB.json (200 tokens)
├── GD.json
├── GE.json
├── GF.json
├── GG.json (100 tokens)
├── GH.json
├── GI.json
├── GL.json
├── GM.json
├── GN.json
├── GP.json
├── GQ.json
├── GR.json
├── GS.json
├── GT.json
├── GU.json (100 tokens)
├── GW.json
├── GY.json
├── HK.json (100 tokens)
├── HM.json
├── HN.json (100 tokens)
├── HR.json
├── HT.json
├── HU.json (100 tokens)
├── ID.json (300 tokens)
├── IE.json (100 tokens)
├── IL.json
├── IM.json (100 tokens)
├── IN.json (300 tokens)
├── IO.json
├── IQ.json (100 tokens)
├── IR.json (300 tokens)
├── IS.json
├── IT.json (500 tokens)
├── JE.json (100 tokens)
├── JM.json (100 tokens)
├── JO.json
├── JP.json (300 tokens)
├── KE.json
├── KG.json
├── KH.json
├── KI.json
├── KM.json
├── KN.json
├── KP.json (100 tokens)
├── KR.json (300 tokens)
├── KW.json
├── KY.json (100 tokens)
├── KZ.json (200 tokens)
├── LA.json
├── LB.json
├── LC.json
├── LI.json (100 tokens)
├── LK.json
├── LR.json
├── LS.json
├── LT.json
├── LU.json (100 tokens)
├── LV.json
├── LY.json
├── MA.json
├── MC.json
├── MD.json
├── ME.json
├── MF.json (100 tokens)
├── MG.json
├── MH.json (100 tokens)
├── MK.json
├── ML.json
├── MM.json
├── MN.json (100 tokens)
├── MO.json
├── MP.json (100 tokens)
├── MQ.json
├── MR.json
├── MS.json
├── MT.json
├── MU.json
├── MV.json
├── MW.json
├── MX.json (300 tokens)
├── MY.json (200 tokens)
├── MZ.json (100 tokens)
├── NA.json
├── NC.json (100 tokens)
├── NE.json
├── NF.json
├── NG.json (100 tokens)
├── NI.json (100 tokens)
├── NL.json (100 tokens)
├── NO.json (100 tokens)
├── NP.json
├── NR.json (100 tokens)
├── NU.json
├── NZ.json
├── OM.json
├── PA.json (100 tokens)
├── PE.json (100 tokens)
├── PF.json
├── PG.json (100 tokens)
├── PH.json (600 tokens)
├── PK.json
├── PL.json
├── PM.json
├── PN.json
├── PR.json (100 tokens)
├── PS.json
├── PT.json (100 tokens)
├── PW.json (100 tokens)
├── PY.json
├── QA.json
├── RE.json
├── RO.json (200 tokens)
├── RS.json
├── RU.json (1300 tokens)
├── RW.json
├── SA.json
├── SB.json
├── SC.json
├── SD.json
├── SE.json (100 tokens)
├── SG.json
├── SH.json
├── SI.json
├── SJ.json
├── SK.json
├── SL.json
├── SM.json
├── SN.json
├── SO.json (100 tokens)
├── SR.json (100 tokens)
├── SS.json
├── ST.json
├── SV.json (200 tokens)
├── SX.json
├── SY.json
├── SZ.json
├── TA.json
├── TC.json
├── TD.json
├── TF.json
├── TG.json
├── TH.json (500 tokens)
├── TJ.json
├── TK.json
├── TL.json
├── TM.json
├── TN.json
├── TO.json
├── TR.json (300 tokens)
├── TT.json
├── TV.json (100 tokens)
├── TW.json (300 tokens)
├── TZ.json
├── UA.json (400 tokens)
├── UG.json
├── UM.json (100 tokens)
├── US.json (600 tokens)
├── UY.json (100 tokens)
├── UZ.json (100 tokens)
├── VA.json
├── VC.json
├── VE.json (100 tokens)
├── VG.json
├── VI.json (100 tokens)
├── VN.json (400 tokens)
├── VU.json
├── WF.json
├── WS.json
├── XK.json
├── YE.json
├── YT.json
├── ZA.json
├── ZM.json
├── ZW.json
├── ZZ.json
├── _root.json (200 tokens)
├── legacy/
├── locale-lists.json (56.6k tokens)
├── manifest.json (6.7k tokens)
├── release-preflight.mjs (1900 tokens)
├── seed/
├── images/
├── banner-one.jpg
├── banner-two.jpg
├── bowl-black.jpg
├── bowl-white.jpg
├── bowl-yellow.jpg
├── cup-black.jpg
├── cup-white.jpg
├── cup-yellow.jpg
├── pen-holder-black.jpg
├── pen-holder-white.jpg
├── pen-holder-yellow.jpg
├── thermos-black.jpg
├── thermos-white.jpg
├── thermos-yellow.jpg
├── vase-black.jpg
├── vase-green.jpg
├── vase-white.jpg
├── tests/
├── e2e/
├── .env.example (400 tokens)
├── .gitignore
├── README.md (900 tokens)
├── address/
├── specs/
├── legacy-order-fixture.spec.ts (600 tokens)
├── migration-parity.spec.ts (1100 tokens)
├── upgrade-roundtrip.spec.ts (2.4k tokens)
├── admin/
├── .gitkeep
├── specs/
├── fileStorage/
├── cloudProviders.spec.ts (1900 tokens)
├── landingPage/
├── replace-homepage-dialog.spec.ts (500 tokens)
├── replace-homepage.spec.ts (3.5k tokens)
├── metafield/
├── blog-post-metafields.spec.ts (1000 tokens)
├── value-validation.spec.ts (2.5k tokens)
├── product/
├── duplicate.spec.ts (2.2k tokens)
├── recommendation/
├── card.spec.ts (1700 tokens)
├── settings.spec.ts (1200 tokens)
├── setting/
├── catalog.spec.ts (600 tokens)
├── pricingTax.spec.ts (500 tokens)
├── shipping/
├── rateDialog.spec.ts (1700 tokens)
├── package-lock.json (2.1k tokens)
├── package.json (100 tokens)
├── pageBuilder/
├── pages/
├── EditorPage.ts (1500 tokens)
├── PaletteTab.ts (1600 tokens)
├── PublishDialog.ts (500 tokens)
├── RolloutDialog.ts (700 tokens)
├── SessionPickerPage.ts (400 tokens)
├── SettingsDrawer.ts (800 tokens)
├── seeds/
├── .gitkeep
├── specs/
├── 00-migration/
├── schema-shape.spec.ts (600 tokens)
├── 01-rendering/
├── header.spec.ts (400 tokens)
├── link-guard.spec.ts (700 tokens)
├── theme-bucket-isolation.spec.ts (2000 tokens)
├── theme-isolation-phase2.spec.ts (700 tokens)
├── theme-preview.spec.ts (400 tokens)
├── 02-sidebar/
├── sidebar-tabs.spec.ts (1300 tokens)
├── 03-drag-drop/
├── column-drop.spec.ts (900 tokens)
├── drop-to-content.spec.ts (1300 tokens)
├── inter-widget-drop.spec.ts (1200 tokens)
├── layout-component-drop.spec.ts (1400 tokens)
├── move-arrows.spec.ts (1700 tokens)
├── 04-rollout/
├── rollout-edit.spec.ts (1100 tokens)
├── rollout.spec.ts (3.1k tokens)
├── theme-rollout.spec.ts (600 tokens)
├── 05-settings/
├── share-routes.spec.ts (1500 tokens)
├── 06-publish/
├── publish.spec.ts (1100 tokens)
├── session-picker-after-edit.spec.ts (1100 tokens)
├── theme-stamping.spec.ts (1000 tokens)
├── 07-gap/
├── device-mode.spec.ts (400 tokens)
├── drawer-settings-form.spec.ts (900 tokens)
├── globals-toggle.spec.ts (400 tokens)
├── inline-edit.spec.ts (1300 tokens)
├── page-switcher.spec.ts (800 tokens)
├── theme-write-scope.spec.ts (800 tokens)
├── undo-redo-isolation.spec.ts (800 tokens)
├── undo-redo.spec.ts (900 tokens)
├── urn-link.spec.ts (1500 tokens)
├── widget-toolbar.spec.ts (1300 tokens)
├── 08-theme-install/
├── install.spec.ts (1000 tokens)
├── 09-theme-upgrade/
├── upgrade.spec.ts (1700 tokens)
├── 11-theme-uninstall/
├── uninstall.spec.ts (600 tokens)
├── 12-theme-export/
├── export.spec.ts (800 tokens)
├── 13-theme-status/
├── status.spec.ts (500 tokens)
├── 14-theme-landing-pages/
├── landing-pages.spec.ts (2.9k tokens)
├── playwright.config.ts (500 tokens)
├── shared/
├── addressDb.ts (1200 tokens)
├── adminMeta.ts (100 tokens)
├── auth.ts (600 tokens)
├── changesetDb.ts (1100 tokens)
├── db.ts (600 tokens)
├── globalSetup.ts (700 tokens)
├── globalTeardown.ts (500 tokens)
├── metafieldDb.ts (1800 tokens)
├── pbApi.ts (900 tokens)
├── productDb.ts (1500 tokens)
├── recommendationDb.ts (2.2k tokens)
├── selectors.ts (600 tokens)
├── settingDb.ts (200 tokens)
├── shippingDb.ts (1000 tokens)
├── themeCli.ts (300 tokens)
├── themeFixture.ts (600 tokens)
├── storefront/
├── .gitkeep
├── specs/
├── recommendations/
├── cartShelf.spec.ts (900 tokens)
├── shelves.spec.ts (1400 tokens)
├── tsconfig.json (100 tokens)
├── styleStub.cjs
├── translations/
├── de/
├── account.csv (500 tokens)
├── admin.csv (8.1k tokens)
├── blog.csv (1000 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (19.1k tokens)
├── webhook.csv (2k tokens)
├── el/
├── account.csv (500 tokens)
├── admin.csv (8.3k tokens)
├── blog.csv (1000 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (19.4k tokens)
├── webhook.csv (2.1k tokens)
├── es/
├── account.csv (500 tokens)
├── admin.csv (8.1k tokens)
├── blog.csv (1000 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18.9k tokens)
├── webhook.csv (1900 tokens)
├── fa/
├── account.csv (400 tokens)
├── admin.csv (7.5k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (400 tokens)
├── contact.csv (500 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (17k tokens)
├── webhook.csv (1900 tokens)
├── fr/
├── account.csv (500 tokens)
├── admin.csv (8.3k tokens)
├── blog.csv (1000 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (19.2k tokens)
├── webhook.csv (2k tokens)
├── hu/
├── account.csv (500 tokens)
├── admin.csv (8k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18.6k tokens)
├── webhook.csv (2000 tokens)
├── it/
├── account.csv (500 tokens)
├── admin.csv (8.1k tokens)
├── blog.csv (1000 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18.9k tokens)
├── webhook.csv (1900 tokens)
├── mn/
├── account.csv (500 tokens)
├── admin.csv (7.8k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18k tokens)
├── webhook.csv (2000 tokens)
├── nb/
├── account.csv (500 tokens)
├── admin.csv (7.6k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (400 tokens)
├── contact.csv (500 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (17.6k tokens)
├── webhook.csv (1900 tokens)
├── ne/
├── account.csv (500 tokens)
├── admin.csv (7.6k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (400 tokens)
├── contact.csv (500 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (17.7k tokens)
├── webhook.csv (1900 tokens)
├── nl/
├── account.csv (500 tokens)
├── admin.csv (8k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18.3k tokens)
├── webhook.csv (2k tokens)
├── pt/
├── account.csv (500 tokens)
├── admin.csv (8k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18.3k tokens)
├── webhook.csv (1900 tokens)
├── ru/
├── account.csv (500 tokens)
├── admin.csv (7.9k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (18.3k tokens)
├── webhook.csv (1900 tokens)
├── sr/
├── account.csv (500 tokens)
├── admin.csv (7.8k tokens)
├── blog.csv (900 tokens)
├── catalog.csv
├── checkout.csv (400 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (17.8k tokens)
├── webhook.csv (1900 tokens)
├── ta/
├── account.csv (500 tokens)
├── admin.csv (8.2k tokens)
├── blog.csv (1000 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (500 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (19.1k tokens)
├── webhook.csv (2.1k tokens)
├── vi/
├── account.csv (600 tokens)
├── admin.csv (7.6k tokens)
├── blog.csv (900 tokens)
├── catalog.csv (100 tokens)
├── checkout.csv (600 tokens)
├── contact.csv (600 tokens)
├── email.csv (600 tokens)
├── general.csv (200 tokens)
├── paypal.csv (100 tokens)
├── store.csv (16.6k tokens)
├── webhook.csv (1900 tokens)
├── zh/
├── account.csv (300 tokens)
├── admin.csv (5.2k tokens)
├── blog.csv (600 tokens)
├── catalog.csv
├── checkout.csv (300 tokens)
├── contact.csv (400 tokens)
├── email.csv (400 tokens)
├── general.csv (100 tokens)
├── paypal.csv (100 tokens)
├── store.csv (11.9k tokens)
├── webhook.csv (1300 tokens)
├── tsconfig.json (200 tokens)
```
## /.dockerignore
```dockerignore path="/.dockerignore"
# Build-context hygiene. Without this the ENTIRE working tree is uploaded to
# the Docker daemon — node_modules, stress reports, Playwright artifacts and
# all — which is slow locally and wasteful in CI.
# Dependencies: reinstalled inside the image (and host binaries are the wrong
# platform anyway).
node_modules
**/node_modules
# Build artifacts: regenerated by `npm run compile` / `npm run build` in the
# image. Excluding them also stops a stale host dist/ from silently shipping.
packages/*/dist
.evershop
# VCS and hooks. .git must stay out (HUSKY=0 in the Dockerfile covers the
# prepare hook that would otherwise fail without it).
.git
.gitignore
.husky
.github
# Local environment and logs
.env
.env.*
*.log
# Test, benchmark and report output
tests
playwright-report
test-results
stress-report-*
jmeter.log
# Repo documentation and working material — not part of the runtime image.
wiki
docs
specifications
design-kit
CLAUDE.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
# Local one-off scripts
seed-*.mjs
verify-*.mjs
```
## /.github/FUNDING.yml
```yml path="/.github/FUNDING.yml"
# These are supported funding model platforms
open_collective: evershopcommerce
```
## /.github/ISSUE_TEMPLATE/bug_report.md
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: ''
assignees: treoden
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Background (please complete the following information):**
- NodeJS Version
- Postgres Version
- EverShop Version
- OS: [e.g. Window, Ubuntu, Mac-OS]
- Browser [e.g. Chrome, Safari]
**Additional context**
Add any other context about the problem here.
## /.github/ISSUE_TEMPLATE/feature_request.md
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE REQUEST]"
labels: ''
assignees: treoden
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
## /.github/images/banner.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/banner.png
## /.github/images/discord_banner_github.svg
```svg path="/.github/images/discord_banner_github.svg"
<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="195" height="40" viewBox="0 0 195 40" fill="none"><g filter="url(#filter0_di)"><path d="M4 6C4 3.79086 5.79086 2 8 2L187 2C189.209 2 191 3.79086 191 6V30C191 32.2091 189.209 34 187 34H8C5.79086 34 4 32.2091 4 30V6Z" fill="#7950ED"></path></g><path d="M45.7462 20.284C45.7462 21.096 45.3402 21.684 44.4862 21.684C43.6322 21.684 43.2402 21.096 43.2262 20.284H41.6162C41.6162 22.048 42.8062 23.098 44.4862 23.098C46.1662 23.098 47.3562 22.048 47.3562 20.284V13.27H45.7462V20.284Z" fill="white"></path><path d="M57.3026 19.136C57.3026 16.714 55.5666 15.16 53.3686 15.16C51.1706 15.16 49.4346 16.714 49.4346 19.136C49.4346 21.558 51.1006 23.126 53.2986 23.126C55.5106 23.126 57.3026 21.558 57.3026 19.136ZM51.0586 19.136C51.0586 17.386 52.1366 16.546 53.3406 16.546C54.5306 16.546 55.6646 17.386 55.6646 19.136C55.6646 20.886 54.4886 21.74 53.2986 21.74C52.0946 21.74 51.0586 20.886 51.0586 19.136Z" fill="white"></path><path d="M58.8803 23H60.4763V15.286H58.8803V23ZM59.6923 14.264C60.2523 14.264 60.7003 13.816 60.7003 13.242C60.7003 12.668 60.2523 12.22 59.6923 12.22C59.1183 12.22 58.6703 12.668 58.6703 13.242C58.6703 13.816 59.1183 14.264 59.6923 14.264Z" fill="white"></path><path d="M68.0457 23H69.6277V18.45C69.6277 16.294 68.2697 15.16 66.4637 15.16C65.5397 15.16 64.6857 15.538 64.1677 16.168V15.286H62.5717V23H64.1677V18.688C64.1677 17.274 64.9377 16.546 66.1137 16.546C67.2757 16.546 68.0457 17.274 68.0457 18.688V23Z" fill="white"></path><path d="M82.6502 19.136C82.6502 16.714 80.9142 15.16 78.7162 15.16C76.5182 15.16 74.7822 16.714 74.7822 19.136C74.7822 21.558 76.4482 23.126 78.6462 23.126C80.8582 23.126 82.6502 21.558 82.6502 19.136ZM76.4062 19.136C76.4062 17.386 77.4842 16.546 78.6882 16.546C79.8782 16.546 81.0122 17.386 81.0122 19.136C81.0122 20.886 79.8362 21.74 78.6462 21.74C77.4422 21.74 76.4062 20.886 76.4062 19.136Z" fill="white"></path><path d="M91.2139 15.286H89.6179V19.584C89.6179 20.998 88.8479 21.726 87.6719 21.726C86.5099 21.726 85.7399 20.998 85.7399 19.584V15.286H84.1579V19.822C84.1579 21.978 85.5299 23.112 87.3359 23.112C88.2459 23.112 89.1139 22.734 89.6179 22.076V23H91.2139V15.286Z" fill="white"></path><path d="M94.9157 18.94C94.9157 17.302 95.6437 16.812 96.8197 16.812H97.2257V15.16C96.1337 15.16 95.3637 15.636 94.9157 16.406V15.286H93.3197V23H94.9157V18.94Z" fill="white"></path><path d="M101.798 19.136C101.798 21.558 103.366 23.126 105.578 23.126C107.468 23.126 108.7 22.076 109.134 20.564H107.412C107.118 21.362 106.53 21.782 105.578 21.782C104.29 21.782 103.436 20.83 103.436 19.136C103.436 17.456 104.29 16.504 105.578 16.504C106.53 16.504 107.146 16.98 107.412 17.722H109.134C108.7 16.098 107.468 15.16 105.578 15.16C103.366 15.16 101.798 16.728 101.798 19.136Z" fill="white"></path><path d="M118.074 19.136C118.074 16.714 116.338 15.16 114.14 15.16C111.942 15.16 110.206 16.714 110.206 19.136C110.206 21.558 111.872 23.126 114.07 23.126C116.282 23.126 118.074 21.558 118.074 19.136ZM111.83 19.136C111.83 17.386 112.908 16.546 114.112 16.546C115.302 16.546 116.436 17.386 116.436 19.136C116.436 20.886 115.26 21.74 114.07 21.74C112.866 21.74 111.83 20.886 111.83 19.136Z" fill="white"></path><path d="M130.586 23H132.168V18.45C132.168 16.294 130.796 15.16 128.99 15.16C127.87 15.16 126.778 15.748 126.302 16.686C125.77 15.678 124.748 15.16 123.53 15.16C122.606 15.16 121.766 15.538 121.248 16.168V15.286H119.652V23H121.248V18.688C121.248 17.274 122.018 16.546 123.194 16.546C124.356 16.546 125.126 17.274 125.126 18.688V23H126.708V18.688C126.708 17.274 127.478 16.546 128.654 16.546C129.816 16.546 130.586 17.274 130.586 18.688V23Z" fill="white"></path><path d="M145.133 23H146.715V18.45C146.715 16.294 145.343 15.16 143.537 15.16C142.417 15.16 141.325 15.748 140.849 16.686C140.317 15.678 139.295 15.16 138.077 15.16C137.153 15.16 136.313 15.538 135.795 16.168V15.286H134.199V23H135.795V18.688C135.795 17.274 136.565 16.546 137.741 16.546C138.903 16.546 139.673 17.274 139.673 18.688V23H141.255V18.688C141.255 17.274 142.025 16.546 143.201 16.546C144.363 16.546 145.133 17.274 145.133 18.688V23Z" fill="white"></path><path d="M155.732 15.286H154.136V19.584C154.136 20.998 153.366 21.726 152.19 21.726C151.028 21.726 150.258 20.998 150.258 19.584V15.286H148.676V19.822C148.676 21.978 150.048 23.112 151.854 23.112C152.764 23.112 153.632 22.734 154.136 22.076V23H155.732V15.286Z" fill="white"></path><path d="M163.311 23H164.893V18.45C164.893 16.294 163.535 15.16 161.729 15.16C160.805 15.16 159.951 15.538 159.433 16.168V15.286H157.837V23H159.433V18.688C159.433 17.274 160.203 16.546 161.379 16.546C162.541 16.546 163.311 17.274 163.311 18.688V23Z" fill="white"></path><path d="M166.929 23H168.525V15.286H166.929V23ZM167.741 14.264C168.301 14.264 168.749 13.816 168.749 13.242C168.749 12.668 168.301 12.22 167.741 12.22C167.167 12.22 166.719 12.668 166.719 13.242C166.719 13.816 167.167 14.264 167.741 14.264Z" fill="white"></path><path d="M170.873 20.858C170.873 22.426 171.727 23 173.099 23H174.359V21.67H173.379C172.707 21.67 172.483 21.432 172.483 20.858V16.588H174.359V15.286H172.483V13.368H170.873V15.286H169.963V16.588H170.873V20.858Z" fill="white"></path><path d="M178.868 21.166L176.698 15.286H174.92L177.958 22.874L176.39 26.626H178.042L182.774 15.286H181.122L178.868 21.166Z" fill="white"></path><path d="M11 25.7345C11 20.2646 11 14.7946 11 9.32472C11.0219 9.23857 11.0479 9.1531 11.0656 9.06627C11.2755 8.07211 11.8622 7.41982 12.8358 7.12171C12.9958 7.07248 13.1613 7.04034 13.3247 7C18.7946 7 24.2646 7 29.7345 7C29.8097 7.0212 29.8842 7.04718 29.9601 7.06222C31.0035 7.26598 31.6633 7.88613 31.9587 8.90148C31.9991 9.04097 32.0257 9.18387 32.0585 9.3254C32.0585 16.5505 32.0585 23.7749 32.0585 31C31.982 30.9528 31.8951 30.9159 31.8302 30.8557C30.14 29.2797 28.4518 27.7016 26.763 26.1236C26.6939 26.0593 26.6242 25.995 26.4847 25.8644C26.7001 26.6391 26.8895 27.3194 27.083 28.0134C26.9859 28.025 26.9407 28.0353 26.8963 28.0353C22.4192 28.036 17.9427 28.0449 13.4656 28.0298C12.3073 28.0257 11.3808 27.2579 11.0998 26.1625C11.0643 26.0203 11.0335 25.8767 11 25.7345ZM24.1565 21.7394C24.3849 22.0225 24.5593 22.2782 24.776 22.4922C24.8895 22.6043 25.0782 22.7069 25.23 22.7028C26.4977 22.6686 27.5766 22.1907 28.4197 21.2362C28.5455 21.094 28.6309 20.8553 28.6241 20.6653C28.5407 18.3713 27.9841 16.1929 26.9667 14.1335C26.9277 14.0542 26.8785 13.9673 26.8101 13.9167C25.8864 13.2248 24.8519 12.8166 23.6957 12.7393C23.5966 12.7325 23.4933 12.7974 23.3921 12.8289C23.7169 13.0169 24.0314 13.1147 24.3323 13.2419C24.6358 13.3697 24.9333 13.5147 25.2211 13.6747C25.4974 13.8278 25.7579 14.0097 26.0259 14.1793C22.9764 12.8843 19.955 12.835 16.9178 14.1936C17.3629 13.8969 17.8094 13.6056 18.2859 13.3779C18.7646 13.1489 19.274 12.9827 19.7697 12.7892C19.7656 12.7605 19.7615 12.7325 19.7574 12.7038C19.6527 12.6983 19.5468 12.6778 19.4435 12.6887C18.3694 12.8022 17.3848 13.1591 16.5123 13.8025C16.3995 13.886 16.3024 14.0111 16.2395 14.1376C15.2105 16.2182 14.6621 18.4198 14.5958 20.7398C14.5924 20.8629 14.6416 21.0133 14.7189 21.1083C15.5742 22.1544 16.6792 22.709 18.0336 22.7472C18.1266 22.75 18.2545 22.726 18.3092 22.6638C18.5526 22.3849 18.7762 22.0881 19.0107 21.7914C17.7116 21.1692 17.4176 20.9688 17.0525 20.4225C20.1334 22.0697 23.1555 22.1127 26.1743 20.443C25.6615 21.1076 24.9852 21.5001 24.1565 21.7394Z" fill="white"></path><path d="M20.5796 18.4397C20.57 19.1931 19.967 19.7901 19.2285 19.7784C18.488 19.7661 17.8918 19.146 17.9075 18.4048C17.9226 17.6636 18.5332 17.0906 19.2928 17.105C20.0572 17.1187 20.5892 17.6705 20.5796 18.4397Z" fill="white"></path><path d="M24.9551 18.4385C24.9523 19.1755 24.3917 19.7766 23.7189 19.7642C23.057 19.7513 22.5134 19.1578 22.5059 18.4405C22.4991 17.7089 23.0529 17.1079 23.7346 17.1079C24.4238 17.1079 24.9578 17.6905 24.9551 18.4385Z" fill="white"></path><defs><filter id="filter0_di" x="0" y="0" width="195" height="40" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="2"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.255924 0 0 0 0 0.163972 0 0 0 0 0.516081 0 0 0 0.15 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0.426822 0 0 0 0 0.271566 0 0 0 0 0.866081 0 0 0 1 0"></feColorMatrix><feBlend mode="normal" in2="shape" result="effect2_innerShadow"></feBlend></filter></defs></svg>
```
## /.github/images/evershop-admin-demo1.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/evershop-admin-demo1.png
## /.github/images/evershop-backend-demo.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/evershop-backend-demo.png
## /.github/images/evershop-demo-back.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/evershop-demo-back.png
## /.github/images/evershop-demo-front.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/evershop-demo-front.png
## /.github/images/evershop-logo.svg
```svg path="/.github/images/evershop-logo.svg"
<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="436" height="120" viewBox="0 0 436 120" fill="none"><path d="M30.432 96.96C24.992 96.96 20.256 95.84 16.224 93.6C12.256 91.296 9.184 88.192 7.008 84.288C4.896 80.384 3.84 75.968 3.84 71.04C3.84 65.28 4.992 60.384 7.296 56.352C9.664 52.256 12.736 49.12 16.512 46.944C20.288 44.768 24.288 43.68 28.512 43.68C31.776 43.68 34.848 44.352 37.728 45.696C40.672 47.04 43.264 48.896 45.504 51.264C47.744 53.568 49.504 56.256 50.784 59.328C52.128 62.4 52.8 65.664 52.8 69.12C52.736 70.656 52.128 71.904 50.976 72.864C49.824 73.824 48.48 74.304 46.944 74.304H10.272L7.392 64.704H42.624L40.512 66.624V64.032C40.384 62.176 39.712 60.512 38.496 59.04C37.344 57.568 35.872 56.416 34.08 55.584C32.352 54.688 30.496 54.24 28.512 54.24C26.592 54.24 24.8 54.496 23.136 55.008C21.472 55.52 20.032 56.384 18.816 57.6C17.6 58.816 16.64 60.448 15.936 62.496C15.232 64.544 14.88 67.136 14.88 70.272C14.88 73.728 15.584 76.672 16.992 79.104C18.464 81.472 20.32 83.296 22.56 84.576C24.864 85.792 27.296 86.4 29.856 86.4C32.224 86.4 34.112 86.208 35.52 85.824C36.928 85.44 38.048 84.992 38.88 84.48C39.776 83.904 40.576 83.424 41.28 83.04C42.432 82.464 43.52 82.176 44.544 82.176C45.952 82.176 47.104 82.656 48 83.616C48.96 84.576 49.44 85.696 49.44 86.976C49.44 88.704 48.544 90.272 46.752 91.68C45.088 93.088 42.752 94.336 39.744 95.424C36.736 96.448 33.632 96.96 30.432 96.96ZM59.9003 44.64C61.1163 44.64 62.2363 44.96 63.2603 45.6C64.2843 46.176 65.0523 47.072 65.5643 48.288L79.6763 80.544L77.5643 81.504L91.9643 48.384C93.0523 45.824 94.7483 44.608 97.0523 44.736C98.6523 44.736 99.9323 45.248 100.892 46.272C101.916 47.232 102.428 48.448 102.428 49.92C102.428 50.368 102.332 50.848 102.14 51.36C102.012 51.872 101.852 52.352 101.66 52.8L83.7083 92.352C82.6843 94.656 81.0523 95.872 78.8123 96C77.5963 96.192 76.4123 95.968 75.2603 95.328C74.1723 94.688 73.3403 93.696 72.7643 92.352L54.9083 52.8C54.7803 52.48 54.6203 52.064 54.4283 51.552C54.3003 51.04 54.2363 50.432 54.2363 49.728C54.2363 48.576 54.7483 47.456 55.7723 46.368C56.7963 45.216 58.1723 44.64 59.9003 44.64ZM130.426 96.96C124.986 96.96 120.25 95.84 116.218 93.6C112.25 91.296 109.178 88.192 107.002 84.288C104.89 80.384 103.834 75.968 103.834 71.04C103.834 65.28 104.986 60.384 107.29 56.352C109.658 52.256 112.73 49.12 116.506 46.944C120.282 44.768 124.282 43.68 128.506 43.68C131.77 43.68 134.842 44.352 137.722 45.696C140.666 47.04 143.258 48.896 145.498 51.264C147.738 53.568 149.498 56.256 150.778 59.328C152.122 62.4 152.794 65.664 152.794 69.12C152.73 70.656 152.122 71.904 150.97 72.864C149.818 73.824 148.474 74.304 146.938 74.304H110.266L107.386 64.704H142.618L140.506 66.624V64.032C140.378 62.176 139.706 60.512 138.49 59.04C137.338 57.568 135.866 56.416 134.074 55.584C132.346 54.688 130.49 54.24 128.506 54.24C126.586 54.24 124.794 54.496 123.13 55.008C121.466 55.52 120.026 56.384 118.81 57.6C117.594 58.816 116.634 60.448 115.93 62.496C115.226 64.544 114.874 67.136 114.874 70.272C114.874 73.728 115.578 76.672 116.986 79.104C118.458 81.472 120.314 83.296 122.554 84.576C124.858 85.792 127.29 86.4 129.85 86.4C132.218 86.4 134.106 86.208 135.514 85.824C136.922 85.44 138.042 84.992 138.874 84.48C139.77 83.904 140.57 83.424 141.274 83.04C142.426 82.464 143.514 82.176 144.538 82.176C145.946 82.176 147.098 82.656 147.994 83.616C148.954 84.576 149.434 85.696 149.434 86.976C149.434 88.704 148.538 90.272 146.746 91.68C145.082 93.088 142.746 94.336 139.738 95.424C136.73 96.448 133.626 96.96 130.426 96.96ZM163.819 96C162.155 96 160.779 95.456 159.691 94.368C158.603 93.216 158.059 91.808 158.059 90.144V50.496C158.059 48.832 158.603 47.456 159.691 46.368C160.779 45.216 162.155 44.64 163.819 44.64C165.483 44.64 166.859 45.216 167.947 46.368C169.035 47.456 169.579 48.832 169.579 50.496V59.52L168.907 53.088C169.611 51.552 170.507 50.208 171.595 49.056C172.747 47.84 174.027 46.848 175.435 46.08C176.843 45.248 178.347 44.64 179.947 44.256C181.547 43.872 183.147 43.68 184.747 43.68C186.667 43.68 188.267 44.224 189.547 45.312C190.891 46.4 191.563 47.68 191.563 49.152C191.563 51.264 191.019 52.8 189.931 53.76C188.843 54.656 187.659 55.104 186.379 55.104C185.163 55.104 184.043 54.88 183.019 54.432C182.059 53.984 180.939 53.76 179.659 53.76C178.507 53.76 177.323 54.048 176.107 54.624C174.955 55.136 173.867 55.968 172.843 57.12C171.883 58.272 171.083 59.712 170.443 61.44C169.867 63.104 169.579 65.088 169.579 67.392V90.144C169.579 91.808 169.035 93.216 167.947 94.368C166.859 95.456 165.483 96 163.819 96ZM217.444 96.96C212.964 96.96 208.932 96.416 205.348 95.328C201.764 94.176 198.34 92.192 195.076 89.376C194.244 88.672 193.604 87.872 193.156 86.976C192.708 86.08 192.484 85.184 192.484 84.288C192.484 82.816 192.996 81.536 194.02 80.448C195.108 79.296 196.452 78.72 198.052 78.72C199.268 78.72 200.356 79.104 201.316 79.872C203.748 81.856 206.148 83.36 208.516 84.384C210.948 85.408 213.924 85.92 217.444 85.92C219.812 85.92 221.988 85.568 223.972 84.864C225.956 84.096 227.556 83.104 228.772 81.888C229.988 80.608 230.596 79.168 230.596 77.568C230.596 75.648 230.02 74.016 228.868 72.672C227.716 71.328 225.956 70.208 223.588 69.312C221.22 68.352 218.212 67.616 214.564 67.104C211.108 66.592 208.068 65.824 205.444 64.8C202.82 63.712 200.612 62.368 198.82 60.768C197.092 59.104 195.78 57.184 194.884 55.008C193.988 52.768 193.54 50.272 193.54 47.52C193.54 43.36 194.596 39.808 196.708 36.864C198.884 33.92 201.796 31.68 205.444 30.144C209.092 28.608 213.124 27.84 217.54 27.84C221.7 27.84 225.54 28.48 229.06 29.76C232.644 30.976 235.556 32.544 237.796 34.464C239.652 35.936 240.58 37.632 240.58 39.552C240.58 40.96 240.036 42.24 238.948 43.392C237.86 44.544 236.58 45.12 235.108 45.12C234.148 45.12 233.284 44.832 232.516 44.256C231.492 43.36 230.116 42.528 228.388 41.76C226.66 40.928 224.836 40.256 222.916 39.744C220.996 39.168 219.204 38.88 217.54 38.88C214.788 38.88 212.452 39.232 210.532 39.936C208.676 40.64 207.268 41.6 206.308 42.816C205.348 44.032 204.868 45.44 204.868 47.04C204.868 48.96 205.412 50.56 206.5 51.84C207.652 53.056 209.284 54.048 211.396 54.816C213.508 55.52 216.036 56.16 218.98 56.736C222.82 57.44 226.18 58.272 229.06 59.232C232.004 60.192 234.436 61.44 236.356 62.976C238.276 64.448 239.716 66.336 240.676 68.64C241.636 70.88 242.116 73.632 242.116 76.896C242.116 81.056 240.964 84.64 238.66 87.648C236.356 90.656 233.316 92.96 229.54 94.56C225.828 96.16 221.796 96.96 217.444 96.96ZM274.341 43.68C278.949 43.68 282.437 44.672 284.805 46.656C287.237 48.64 288.901 51.296 289.797 54.624C290.693 57.888 291.141 61.536 291.141 65.568V90.144C291.141 91.808 290.597 93.216 289.509 94.368C288.421 95.456 287.045 96 285.381 96C283.717 96 282.341 95.456 281.253 94.368C280.165 93.216 279.621 91.808 279.621 90.144V65.568C279.621 63.456 279.365 61.568 278.853 59.904C278.341 58.176 277.413 56.8 276.069 55.776C274.725 54.752 272.805 54.24 270.309 54.24C267.877 54.24 265.797 54.752 264.069 55.776C262.341 56.8 261.029 58.176 260.133 59.904C259.301 61.568 258.885 63.456 258.885 65.568V90.144C258.885 91.808 258.341 93.216 257.253 94.368C256.165 95.456 254.789 96 253.125 96C251.461 96 250.085 95.456 248.997 94.368C247.909 93.216 247.365 91.808 247.365 90.144V30.816C247.365 29.152 247.909 27.776 248.997 26.688C250.085 25.536 251.461 24.96 253.125 24.96C254.789 24.96 256.165 25.536 257.253 26.688C258.341 27.776 258.885 29.152 258.885 30.816V54.624L257.445 54.336C258.021 53.248 258.821 52.096 259.845 50.88C260.869 49.6 262.117 48.416 263.589 47.328C265.061 46.24 266.693 45.376 268.485 44.736C270.277 44.032 272.229 43.68 274.341 43.68ZM348.639 70.368C348.639 75.616 347.455 80.256 345.087 84.288C342.783 88.256 339.647 91.36 335.679 93.6C331.775 95.84 327.391 96.96 322.527 96.96C317.663 96.96 313.247 95.84 309.279 93.6C305.375 91.36 302.239 88.256 299.871 84.288C297.567 80.256 296.415 75.616 296.415 70.368C296.415 65.12 297.567 60.512 299.871 56.544C302.239 52.512 305.375 49.376 309.279 47.136C313.247 44.832 317.663 43.68 322.527 43.68C327.391 43.68 331.775 44.832 335.679 47.136C339.647 49.376 342.783 52.512 345.087 56.544C347.455 60.512 348.639 65.12 348.639 70.368ZM337.119 70.368C337.119 67.104 336.447 64.288 335.103 61.92C333.823 59.488 332.063 57.6 329.823 56.256C327.647 54.912 325.215 54.24 322.527 54.24C319.839 54.24 317.375 54.912 315.135 56.256C312.959 57.6 311.199 59.488 309.855 61.92C308.575 64.288 307.935 67.104 307.935 70.368C307.935 73.568 308.575 76.384 309.855 78.816C311.199 81.184 312.959 83.04 315.135 84.384C317.375 85.728 319.839 86.4 322.527 86.4C325.215 86.4 327.647 85.728 329.823 84.384C332.063 83.04 333.823 81.184 335.103 78.816C336.447 76.384 337.119 73.568 337.119 70.368ZM380.513 43.68C384.993 43.68 388.993 44.832 392.513 47.136C396.097 49.376 398.913 52.48 400.961 56.448C403.073 60.416 404.129 65.024 404.129 70.272C404.129 75.52 403.073 80.16 400.961 84.192C398.913 88.16 396.129 91.296 392.609 93.6C389.153 95.84 385.249 96.96 380.897 96.96C378.337 96.96 375.937 96.544 373.697 95.712C371.457 94.88 369.473 93.824 367.745 92.544C366.081 91.264 364.769 89.984 363.809 88.704C362.913 87.36 362.465 86.24 362.465 85.344L365.441 84.096V109.344C365.441 111.008 364.897 112.384 363.809 113.472C362.721 114.624 361.345 115.2 359.681 115.2C358.017 115.2 356.641 114.656 355.553 113.568C354.465 112.48 353.921 111.072 353.921 109.344V50.496C353.921 48.832 354.465 47.456 355.553 46.368C356.641 45.216 358.017 44.64 359.681 44.64C361.345 44.64 362.721 45.216 363.809 46.368C364.897 47.456 365.441 48.832 365.441 50.496V55.2L363.809 54.336C363.809 53.504 364.257 52.512 365.153 51.36C366.049 50.144 367.265 48.96 368.801 47.808C370.337 46.592 372.097 45.6 374.081 44.832C376.129 44.064 378.273 43.68 380.513 43.68ZM379.073 54.24C376.257 54.24 373.793 54.944 371.681 56.352C369.569 57.76 367.905 59.68 366.689 62.112C365.537 64.48 364.961 67.2 364.961 70.272C364.961 73.28 365.537 76.032 366.689 78.528C367.905 80.96 369.569 82.88 371.681 84.288C373.793 85.696 376.257 86.4 379.073 86.4C381.889 86.4 384.321 85.696 386.369 84.288C388.481 82.88 390.113 80.96 391.265 78.528C392.481 76.032 393.089 73.28 393.089 70.272C393.089 67.2 392.481 64.48 391.265 62.112C390.113 59.68 388.481 57.76 386.369 56.352C384.321 54.944 381.889 54.24 379.073 54.24Z" fill="#00006D"></path><circle cx="407" cy="41" r="9" stroke="#7737FF" stroke-width="2"></circle><path d="M403.814 36.4688H406.914C407.562 36.4688 408.119 36.5664 408.584 36.7617C409.049 36.957 409.406 37.2461 409.656 37.6289C409.906 38.0117 410.031 38.4824 410.031 39.041C410.031 39.4824 409.953 39.8652 409.797 40.1895C409.641 40.5137 409.42 40.7852 409.135 41.0039C408.854 41.2227 408.521 41.3945 408.139 41.5195L407.635 41.7773H404.898L404.887 40.5059H406.932C407.264 40.5059 407.539 40.4473 407.758 40.3301C407.977 40.2129 408.141 40.0508 408.25 39.8438C408.363 39.6367 408.42 39.4004 408.42 39.1348C408.42 38.8496 408.365 38.6035 408.256 38.3965C408.146 38.1855 407.98 38.0234 407.758 37.9102C407.535 37.7969 407.254 37.7402 406.914 37.7402H405.426V45H403.814V36.4688ZM408.631 45L406.656 41.1797L408.361 41.1738L410.359 44.918V45H408.631Z" fill="#7737FF"></path></svg>
```
## /.github/images/evershop-product-detail.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/evershop-product-detail.png
## /.github/images/evershop-store-front-demo1.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/evershop-store-front-demo1.png
## /.github/images/logo-green.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/logo-green.png
## /.github/images/showcase.gif
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/showcase.gif
## /.github/images/sponsors/bountyhub.png
Binary file available at https://raw.githubusercontent.com/evershopcommerce/evershop/refs/heads/main/.github/images/sponsors/bountyhub.png
## /.github/onboarding-links.json
```json path="/.github/onboarding-links.json"
[
{
"label": "Documentation — everything your admin can do",
"url": "https://evershop.io/docs"
},
{
"label": "Adding your first products",
"url": "https://evershop.io/docs"
},
{
"label": "Community — ask anything, we answer",
"url": "https://github.com/evershopcommerce/evershop/discussions"
}
]
```
## /.github/pull_request_template.md
## PR Checklist
Please check if your PR fulfills the following requirements:
- [ ] Tests for the changes have been added (for bug fixes / features)
## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x". -->
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Other... Please describe:
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
Issue Number: N/A
## What is the new behavior?
## Does this PR introduce a breaking change?
- [ ] Yes
- [ ] No
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
## Other information
## /.github/workflows/build_test.yml
```yml path="/.github/workflows/build_test.yml"
name: Github build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '20', '22']
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Setup node js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install -g npm@9
- run: npm install
- run: npm run compile
- run: npm run compile:db
- run: npm run test
```
## /.github/workflows/release.yml
```yml path="/.github/workflows/release.yml"
name: Release
# Publishing is IRREVERSIBLE — a version number cannot be reused once taken.
# So this never fires off a push: it is dispatched by hand, from an existing
# tag, and every guard below runs before `npm publish` is reached.
#
# Two modes, both dispatched by hand:
#
# PUBLISH (promote=false, the default) — verify, publish to npm, open the
# GitHub Release, build and push the Docker image. Run it after
# `git tag -a v2.2.1 -m "v2.2.1" && git push origin v2.2.1`:
# gh workflow run release.yml -f version=2.2.1 -f dist_tag=next
#
# PROMOTE (promote=true) — publishes NOTHING. Moves the npm dist-tag,
# re-points Docker `latest` at the already-built manifest, and clears the
# GitHub pre-release flag. Run it once the `next` release has soaked:
# gh workflow run release.yml -f version=2.2.1 -f promote=true
#
# Both honour dry_run. Promotion is deliberately a SEPARATE dispatch rather
# than a step of publishing — if publishing moved `latest` itself, the soak
# would be decorative.
#
# Requires repository secrets:
# DOCKERHUB_USERNAME — Docker Hub account with push rights on evershop/evershop
# DOCKERHUB_TOKEN — Docker Hub access token for that account
#
# npm needs NO secret: publishing and promotion go through npm trusted
# publishing (OIDC). On npmjs.com, @evershop/evershop -> Settings -> Trusted
# publishing must list evershopcommerce/evershop, workflow `release.yml`, with
# "npm publish" and "npm dist-tag" allowed. If an environment name is ever added
# there, add the same `environment:` to the publish and promote jobs. A token
# that bypasses 2FA is not an option any more: npm is retiring them, and the
# 2.2.2 publish failed with EOTP because of it.
#
# Optional but recommended: configure an environment named `npm-publish` with
# required reviewers, so publishing needs an approval click.
on:
workflow_dispatch:
inputs:
version:
description: 'Version to publish, without the leading v (e.g. 2.2.1)'
required: true
type: string
dist_tag:
description: 'npm dist-tag. Keep `next` for a soak; promote to latest separately.'
required: true
default: next
type: choice
options: [next, latest]
dry_run:
description: 'Run every guard and pack the tarball, but do not publish'
required: false
default: false
type: boolean
promote:
description: 'PROMOTE an already-published version to latest. Publishes nothing new — moves the npm dist-tag, re-points the Docker latest tag, and clears the pre-release flag. Ignores dist_tag.'
required: false
default: false
type: boolean
jobs:
verify:
name: Verify v${{ inputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: refs/tags/v${{ inputs.version }}
fetch-depth: 0 # need full history for the ancestry check below
- name: Tag exists and matches both package.json versions
run: |
ROOT_V=$(node -p "require('./package.json').version")
PKG_V=$(node -p "require('./packages/evershop/package.json').version")
echo "tag=${{ inputs.version }} root=$ROOT_V package=$PKG_V"
if [ "$ROOT_V" != "${{ inputs.version }}" ]; then
echo "::error::root package.json is $ROOT_V, expected ${{ inputs.version }}"; exit 1
fi
if [ "$PKG_V" != "${{ inputs.version }}" ]; then
echo "::error::packages/evershop is $PKG_V, expected ${{ inputs.version }}"; exit 1
fi
# v2.1.2 was tagged on dev before it reached main. It worked out only
# because dev was merged the same day. This makes that a rule.
- name: Tagged commit is contained in main
run: |
# NOT `--depth=0` — git rejects that ("depth 0 is not a positive
# number", exit 128). The checkout above already used fetch-depth: 0,
# so the full history is present; this just makes sure the origin/main
# ref itself exists to compare against.
git fetch origin main
if ! git merge-base --is-ancestor HEAD origin/main; then
echo "::error::v${{ inputs.version }} is not an ancestor of main. Merge to main before publishing."
exit 1
fi
echo "tagged commit is reachable from main"
- name: Changelog documents this version
run: |
if ! grep -qE "^# v${{ inputs.version }}\b" changelog.md; then
echo "::error::changelog.md has no '# v${{ inputs.version }}' section"; exit 1
fi
# Promotion moves tags on a release that already passed all of this,
# so the build/test half is skipped — only the guards above run.
- uses: actions/setup-node@v4
if: ${{ !inputs.promote }}
with:
node-version: '20' # the minimum supported runtime
- run: npm ci || npm install
if: ${{ !inputs.promote }}
- run: npm run compile
if: ${{ !inputs.promote }}
- run: npm run compile:db
if: ${{ !inputs.promote }}
- run: npm test
if: ${{ !inputs.promote }}
publish:
name: Publish to npm (${{ inputs.dist_tag }})
needs: verify
if: ${{ !inputs.promote }}
runs-on: ubuntu-latest
# Uncomment once the environment exists, to require a human approval:
# environment: npm-publish
permissions:
contents: write # create the GitHub Release
id-token: write # npm provenance
steps:
- uses: actions/checkout@v4
with:
ref: refs/tags/v${{ inputs.version }}
fetch-depth: 0
# Trusted publishing (OIDC) needs Node >= 22.14 and npm >= 11.5.1, so this
# job no longer runs the minimum supported Node 20; the tarball is the same
# either way (tsc output does not depend on the Node version, and the
# verify job tests on Node 20). npm is pinned to the 11 line: `latest` is
# npm 12, which needs Node >= 22.22.
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Use npm 11
run: |
npm install -g npm@11
echo "node $(node -v), npm $(npm -v)"
[ "$(npm -v | cut -d. -f1)" = "11" ]
- run: npm ci || npm install
- name: Refuse to overwrite an existing version
run: |
NAME=$(node -p "require('./packages/evershop/package.json').name")
if npm view "$NAME@${{ inputs.version }}" version >/dev/null 2>&1; then
echo "::error::$NAME@${{ inputs.version }} is already on npm"; exit 1
fi
# `npm publish` triggers prepack (rimraf dist && tsc && copyfiles), which
# is a DIFFERENT build from the swc one used in dev — and the only one
# that emits .d.ts. Pack first so a type error fails here, not mid-publish.
- name: Pack and assert the tarball carries type declarations
working-directory: packages/evershop
run: |
npm pack --json > /tmp/pack.json
node -e '
const [m] = require("/tmp/pack.json");
const decls = m.files.filter(f => f.path.endsWith(".d.ts")).length;
console.log(`${m.entryCount} files, ${decls} declarations, ${(m.unpackedSize/1048576).toFixed(1)} MB`);
if (!decls) { console.error("::error::tarball has no .d.ts files"); process.exit(1); }
'
# No token: npm signs in with this job's GitHub OIDC identity (trusted
# publishing, `id-token: write` above). A dry run skips this step, so it
# does not exercise the npm side of the setup.
- name: Publish
if: ${{ !inputs.dry_run }}
working-directory: packages/evershop
run: npm publish --tag ${{ inputs.dist_tag }} --provenance --access public
- name: Extract this version's changelog section
if: ${{ !inputs.dry_run }}
run: |
awk '/^# v${{ inputs.version }}([^0-9]|$)/{f=1;next} /^# v/{f=0} f' \
changelog.md > /tmp/notes.md
head -c 300 /tmp/notes.md
- name: Create the GitHub Release
if: ${{ !inputs.dry_run }}
env:
GH_TOKEN: ${{ github.token }}
run: |
# A `next` publish is a pre-release until it is promoted to latest.
PRERELEASE=""
if [ "${{ inputs.dist_tag }}" = "next" ]; then PRERELEASE="--prerelease"; fi
gh release create "v${{ inputs.version }}" \
--title "v${{ inputs.version }}" \
--notes-file /tmp/notes.md \
$PRERELEASE
- name: Summary
run: |
{
echo "### v${{ inputs.version }} published"
echo ""
echo "- dist-tag: \`${{ inputs.dist_tag }}\`"
echo "- dry run: \`${{ inputs.dry_run }}\`"
if [ "${{ inputs.dist_tag }}" = "next" ]; then
echo ""
echo "This release is published as a PRE-RELEASE. To promote it"
echo "after soaking (npm tag, Docker tag, GitHub Release flag):"
echo '\`\`\`'
echo "npm dist-tag add @evershop/evershop@${{ inputs.version }} latest"
echo "docker buildx imagetools create -t evershop/evershop:latest evershop/evershop:${{ inputs.version }}"
echo "gh release edit v${{ inputs.version }} --prerelease=false --latest"
echo '\`\`\`'
fi
} >> "$GITHUB_STEP_SUMMARY"
docker:
name: Docker image (${{ inputs.dist_tag }})
needs: [verify, publish]
if: ${{ !inputs.promote }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: refs/tags/v${{ inputs.version }}
- uses: docker/setup-qemu-action@v3 # arm64 emulation
- uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
if: ${{ !inputs.dry_run }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Mirror the npm dist-tag: a `next` release must NOT move the Docker
# `latest` tag either, or `docker pull evershop/evershop` would hand
# everyone the soaking build.
- name: Compute image tags
id: meta
run: |
IMAGE=evershop/evershop
TAGS="$IMAGE:${{ inputs.version }}"
if [ "${{ inputs.dist_tag }}" = "latest" ]; then
TAGS="$TAGS,$IMAGE:latest"
else
TAGS="$TAGS,$IMAGE:next"
fi
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
echo "publishing: $TAGS"
# On a dry run this still BUILDS (both architectures) and simply skips
# the push — so a broken Dockerfile surfaces before release day.
# The image installs @evershop/evershop@<version> FROM NPM (see
# docker/Dockerfile), so it can only be built once the publish job has
# actually put that version on the registry — hence `needs: publish`.
# On a dry run there is no published package to install, so the build
# falls back to the last released version purely to exercise the
# Dockerfile itself.
- name: Resolve the version to install
id: ver
run: |
if [ "${{ inputs.dry_run }}" = "true" ]; then
V=$(npm view @evershop/evershop version)
echo "dry run — building against currently published $V"
else
V="${{ inputs.version }}"
# npm can take a moment to make a fresh version installable.
for i in 1 2 3 4 5; do
if npm view "@evershop/evershop@$V" version >/dev/null 2>&1; then break; fi
echo "waiting for @evershop/evershop@$V to appear on npm ($i/5)"; sleep 15
done
fi
echo "version=$V" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile
build-args: EVERSHOP_VERSION=${{ steps.ver.outputs.version }}
platforms: linux/amd64,linux/arm64
push: ${{ !inputs.dry_run }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: true
- name: Summary
run: |
{
echo "### Docker"
echo ""
echo "- tags: \`${{ steps.meta.outputs.tags }}\`"
echo "- installed package: \`@evershop/evershop@${{ steps.ver.outputs.version }}\`"
echo "- platforms: linux/amd64, linux/arm64"
echo "- pushed: \`${{ !inputs.dry_run }}\`"
if [ "${{ inputs.dist_tag }}" = "next" ]; then
echo ""
echo "Promote to \`latest\` after soaking — this re-points the tag at the"
echo "existing multi-arch manifest, so nothing is rebuilt:"
echo '\`\`\`'
echo "docker buildx imagetools create -t evershop/evershop:latest evershop/evershop:${{ inputs.version }}"
echo '\`\`\`'
fi
} >> "$GITHUB_STEP_SUMMARY"
promote:
name: Promote v${{ inputs.version }} to latest
needs: verify
if: ${{ inputs.promote }}
runs-on: ubuntu-latest
permissions:
contents: write # flip the GitHub Release off pre-release
id-token: write # npm trusted publishing (dist-tag)
steps:
- uses: actions/checkout@v4
with:
ref: refs/tags/v${{ inputs.version }}
# `npm dist-tag` through OIDC needs npm >= 11.21 and the "npm dist-tag"
# permission on the trusted publisher (see the header).
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Use npm 11
run: |
npm install -g npm@11
echo "node $(node -v), npm $(npm -v)"
[ "$(npm -v | cut -d. -f1)" = "11" ]
# Promotion must never be the first time a version is seen. Both
# registries have to already carry it, or we would be pointing `latest`
# at something that does not exist.
- name: Assert the version is already published
run: |
if ! npm view "@evershop/evershop@${{ inputs.version }}" version >/dev/null 2>&1; then
echo "::error::@evershop/evershop@${{ inputs.version }} is not on npm — publish it before promoting"; exit 1
fi
if ! docker manifest inspect "evershop/evershop:${{ inputs.version }}" >/dev/null 2>&1; then
echo "::error::evershop/evershop:${{ inputs.version }} is not on Docker Hub — publish it before promoting"; exit 1
fi
echo "both registries carry ${{ inputs.version }}"
- name: npm — point latest at this version
if: ${{ !inputs.dry_run }}
# If this step ever fails to authenticate, the manual equivalent takes ten
# seconds from a maintainer's machine (it asks for the 2FA code):
# npm dist-tag add @evershop/evershop@<version> latest
run: npm dist-tag add "@evershop/evershop@${{ inputs.version }}" latest
- name: Log in to Docker Hub
if: ${{ !inputs.dry_run }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# `imagetools create` re-points the tag at the EXISTING multi-arch
# manifest. Nothing is rebuilt, so latest is bit-identical to the image
# that just soaked as :next — which is the whole point of soaking.
- name: Docker — point latest at the soaked image
if: ${{ !inputs.dry_run }}
run: |
docker buildx imagetools create \
-t evershop/evershop:latest \
evershop/evershop:${{ inputs.version }}
- name: GitHub — clear the pre-release flag
if: ${{ !inputs.dry_run }}
env:
GH_TOKEN: ${{ github.token }}
run: gh release edit "v${{ inputs.version }}" --prerelease=false --latest
- name: Summary
run: |
{
echo "### v${{ inputs.version }} promoted to latest"
echo ""
echo "- npm: \`npm install @evershop/evershop\` now resolves to ${{ inputs.version }}"
echo "- docker: \`docker pull evershop/evershop\` now serves ${{ inputs.version }}"
echo "- GitHub Release v${{ inputs.version }} is no longer a pre-release"
echo "- dry run: \`${{ inputs.dry_run }}\`"
} >> "$GITHUB_STEP_SUMMARY"
```
## /.gitignore
```gitignore path="/.gitignore"
node_modules
.env
dist
!packages/create-evershop-app/sample/extensions/sample/dist
!packages/create-evershop-app/sample/themes/sample/dist
extensions
!extensions/agegate
!extensions/azure_file_storage
!extensions/google_login
!extensions/s3_file_storage
!extensions/resend
!extensions/sendgrid
!extensions/product_review
/themes
.idea/*
.evershop
.vscode
npm-debug.log
/package-log.json
/media
/public
.DS_Store
.log
coverage
cypress
.turbo
# Playwright artefacts
test-results
playwright-report
playwright/.cache
/blob-report
/config
/packages/evershop/config
.prettierignore
.prettierrc
mysqlToPostgres.js
/docs
extensions
/specifications
/wiki
/design-kit
/wiki
/CLAUDE.md
# Playwright MCP test artifacts
.playwright-mcp/
.impeccable
PRODUCT.md
/storefront
stress-report-*
jmeter.log
stress_test.py
theme-lab
asset-library
```
## /.husky/pre-commit
```husky/pre-commit path="/.husky/pre-commit"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#FORCE_COLOR=1 npm run lint
```
## /.prettierrc
```prettierrc path="/.prettierrc"
{
"singleQuote": true,
"semi": true,
"trailingComma" : "none"
}
```
## /CLAUDE.md
# EverShop Core — Project Instructions for Claude
This is the **EverShop core repository** — the codebase for the modular monolith eCommerce platform built on Express + React (SSR) + PostgreSQL + GraphQL. The package source lives at `packages/evershop/src/` and is published as `@evershop/evershop`.
The author and maintainer is The Nguyen (`support@evershop.io`). Assume deep familiarity with the codebase.
## Read the wiki first
A curated wiki for this codebase lives in `wiki/`. **Before answering architectural questions or making non-trivial changes, read the relevant wiki page(s)**, not just the docs in `../docs/` or the source code. The wiki is hand-curated to be the fastest source of truth for "how does this actually work" questions.
- `wiki/index.md` — catalog of all pages with one-line summaries. Read this first to find the right page.
- `wiki/log.md` — chronological record of ingests, queries, and audits.
- `wiki/<topic>.md` — the content pages.
If a page doesn't exist for the topic you need, that's a signal to **ingest** (see Operations below).
## Operations
### Query
When the user asks a question that the wiki could answer:
1. Open `wiki/index.md` and find candidate pages.
2. Read those pages.
3. Answer using the wiki content. Cite pages by filename (e.g., "see `wiki/widgets.md`") so the user can jump in.
4. If the wiki content is **outdated relative to the code** (rename, removal, signature change), update the wiki page in the same response and append a note to `wiki/log.md`.
### Ingest
When the user explains something non-obvious about the codebase, or when you investigate an unfamiliar subsystem and the answer is worth keeping:
1. Discuss the takeaways with the user inline (don't go silent for minutes writing files).
2. Decide whether the knowledge belongs on an existing page or warrants a new one. Prefer updating existing pages — a page with five short sections beats five tiny pages.
3. Write/update the page using the conventions below.
4. Update `wiki/index.md` if a new page was added or a description changed.
5. Append a one-line entry to `wiki/log.md` with prefix `## [YYYY-MM-DD] ingest | <topic>`.
### Lint
When asked to audit the wiki, or when you notice drift while answering questions:
- Verify file paths and line references still resolve (they decay as files move).
- Check that named functions/flags/files referenced in the wiki still exist (`grep`, `Read`).
- Reconcile contradictions between pages.
- Flag pages that haven't been touched in a long time *and* describe an area that has clearly evolved (use `git log --oneline -- <path>` to spot churn).
- Append a `## [YYYY-MM-DD] lint | <scope>` entry to `wiki/log.md` summarizing what was checked and what changed.
## Page conventions
Every page follows this shape:
```md
# <Title>
**TL;DR.** One paragraph. The thing the user came here to learn, said directly.
## <Section>
Body. Code snippets go in fenced blocks with the language tag. File references use `relative/path:line` format so the user can click into them.
## See also
- [Other page](other-page.md) — one-line hook
```
Specifics:
- **File paths.** Always relative to the package root (`packages/evershop/src/...`) unless the file lives outside that tree. Add `:line` suffix when pointing at a specific implementation.
- **Code samples.** Prefer real, compilable snippets pulled from the codebase over invented examples. If you must invent, mark it clearly.
- **No marketing.** No "powerful", "robust", "comprehensive". Just what it is and how it works.
- **Be willing to contradict the public docs.** If `../docs/` is wrong, the wiki should say so and explain the actual current behavior.
- **Date format.** ISO `YYYY-MM-DD` everywhere.
## EverShop quick reference
For deep understanding, read the wiki pages. This section is the cheat sheet.
### Stack
- **Runtime:** Node.js ≥ 20, Express, React 18 with SSR + hydration
- **Database:** PostgreSQL 13+ (no other DBs supported; SQL is plain Postgres)
- **GraphQL:** schema assembled at startup from per-module `.graphql` files
- **Bundler:** webpack 5 with SWC for transforms (no Babel)
- **Forms:** react-hook-form (wrapped by `components/common/form/Form.tsx`)
- **Styling:** Tailwind v4 + PostCSS + custom plugins
### Application type
Multi-page application (MPA) — each route gets its own bundle and a full HTML response. Hydrated on the client. Not a SPA — there is no client-side router.
### File / folder conventions
- **Migrations:** `Version-X.Y.Z.ts` (hyphen, not underscore) in `<module>/migration/`
- **Routes:** folder name = route ID, alphabetic only (a-z, A-Z), `route.json` declares the route
- **Middleware:** lowercase first letter, bracket-syntax ordering `[after]name[before].ts`
- **Master components:** uppercase first letter, `.tsx`, optional `export const layout = { areaId, sortOrder }`
- **Shared between routes:** folder named `routeA+routeB/` (e.g. `productEdit+productNew/`)
- **Site-wide middleware:** `pages/admin/all/`, `pages/frontStore/all/`, `pages/global/`, `api/global/`
- **Subscribers:** `subscribers/<event_name>/<handler>.ts`
- **Modules:** core in `packages/evershop/src/modules/`, user extensions in `extensions/` (project root)
- **Module ID:** must be unique across the system
### Bootstrap is a hard wall
The hook system and registry are **locked** after every module's `bootstrap.ts` runs. Calling `addProcessor`, `hookBefore`, `hookAfter`, `registerWidget`, `registerJob`, `registerEmailService`, `registerPaymentMethod`, etc. from inside a middleware or request handler **throws**. Always register from `bootstrap.ts`.
### Public import paths
See `wiki/reference.md` for the full table. The most common ones:
```ts
import { select, insert, update, del, insertOnUpdate } from '@evershop/evershop/lib/postgres/query';
import { pool, getConnection } from '@evershop/evershop/lib/postgres';
import { addProcessor, getValue } from '@evershop/evershop/lib/util/registry';
import { hookBefore, hookAfter, hookable } from '@evershop/evershop/lib/util/hookable';
import { emit } from '@evershop/evershop/lib/event';
import { createSubscriber } from '@evershop/evershop/lib/event/subscriber';
import { buildUrl, buildAbsoluteUrl } from '@evershop/evershop/lib/router';
import { registerWidget } from '@evershop/evershop/lib/widget';
import { setContextValue, getContextValue } from '@evershop/evershop/graphql/services';
```
### Common pitfalls
- `import { Request, Response } from 'express'` — wrong. Use `EvershopRequest`/`EvershopResponse` from `@evershop/evershop/types/request` and `types/response`.
- `module.exports` — wrong. ESM. Use `export default`.
- MySQL syntax — wrong. PostgreSQL. Use `IDENTITY` or `SERIAL`, double-quoted identifiers, `JSONB`, `gen_random_uuid()`.
- `migrations/` (plural) folder — wrong. Singular `migration/`.
- `Version_1.0.0.ts` (underscore) — wrong. Hyphen: `Version-1.0.0.ts`.
- `pages/frontend/` — wrong. `pages/frontStore/`.
- Arrow functions in hookable / processor callbacks when context is needed — `this` is bound via `.call()`, arrow functions can't access it.
- Adding a hook or processor from a middleware — locked after bootstrap, throws.
### Common mistakes
The pitfalls above are syntactic — caught by lint or first compile. The ones below are runtime or integration traps. They compile cleanly and fail later. Each has bitten the codebase; the wiki pages explain *why* and show the fix.
- **API handler that sends a response with a 2-arg `(request, response)` signature → `ERR_HTTP_HEADERS_SENT`.** The framework inspects `function.length`; a 2-arg handler is treated as passive, so it auto-calls `next()` after your function resolves and `apiResponse` tries to send headers again. If you call `response.json()` / `response.send()` / `response.redirect()`, declare the third `next` parameter even if you never call it — the 3-arg signature disables auto-next. See [wiki/middleware-system.md → Active vs passive middleware](wiki/middleware-system.md#active-vs-passive-middleware-2-arg-vs-3-arg).
- **Chaining `.where()` or `.orderBy()` directly off `.on()` in a query-builder JOIN → `where is not a function` at runtime.** `.on()` returns a `Node`; `.where()` and `.orderBy()` live on `Query`/`SelectQuery`, not `Node`. Hold the query handle in a variable and call `.where()` / `.orderBy()` on it separately. The `.where().and().execute()` chain works fine (Node has `.and()` and `.execute()`) — the trap is only joins. See [wiki/database.md → What chains on what](wiki/database.md#what-chains-on-what-the-gotcha).
- **Passing `(column, alias)` to the top-level `select(...)` → silent column rename → `column "X" does not exist` at runtime.** The top-level `select(...)` is *variadic over columns* — `select('foo.uuid', 'method_uuid')` treats both strings as columns, not as `(column, alias)`. Only the chained `.select(col, alias)` form supports aliasing. Use `select().from(table).select(col, alias)` instead. See [wiki/database.md → `select(...)` is variadic](wiki/database.md#select-is-variadic--it-does-not-take-column-alias).
- **Passing `{ isSQL: true, value: '...' }` to `.given()` for raw SQL in UPDATE/INSERT → `invalid input syntax for type ...` at runtime.** `UpdateQuery.given` / `InsertQuery.given` call `toString(value)` on every entry, which JSON-stringifies object values. The `{isSQL, value}` raw-escape convention is **only** honored inside `.where()` / `Leaf` / `RawLeaf`, not for SET / VALUES. When you need raw SQL on the write side (`COALESCE(col, NOW())`, `col + 1`, `gen_random_uuid()`), drop to `connection.query()` with bind parameters for just the user values. Canonical pattern: `oms/services/updateShipmentStatus.ts:79-100`.
- **`.execute(connection)` / `.load(connection)` on a fresh `getConnection()` PoolClient before `startTransaction(connection)` → `Release called on client which has already been released to the pool` at runtime.** The query-builder's internal `release()` only short-circuits when `connection.INTRANSACTION === true`, a flag exclusively set by `startTransaction`. Pre-tx reads on a freshly-acquired PoolClient auto-release it back to the pool, and the next `startTransaction(connection)` operates on a detached client. Rule: either call `startTransaction` IMMEDIATELY after `getConnection`, or run pre-tx reads on the shared `pool` (which `release()` ignores) and acquire the dedicated PoolClient only at the top of the tx. The canonical "delayed tx" pattern (necessary when an external network call has to run between read and write — e.g. `carrier.createLabel()`) is in `oms/services/createShipment.ts:330-410`.
- **Hook called after a conditional early return in a React component → `Rendered more hooks than during the previous render`.** All hooks must run in the same order on every render. If one render takes an early return before a `useEffect` and the next render reaches it, React errors. Move every hook above any conditional return.
- **`.admin.graphql` type referenced from a non-admin `.graphql` file → "Unknown type X" at storefront schema build.** `buildStoreFrontSchema` filters out `.admin.graphql`; types defined there aren't visible to the storefront schema. Either move the type to a non-admin file or mark the referencing file `.admin.graphql` too. The two schemas build separately — admin sees both, storefront sees only non-admin.
- **Dropping a DB column without grepping across modules.** EverShop modules share tables. A resolver in `modules/base/` may read a column owned by `modules/checkout/`. When dropping a column, `grep -rn "table\\.column" packages/evershop/src` across the whole tree, not just the owning module.
- **New `.js` files in new code paths.** The codebase has mixed `.js` and `.ts` because the migration to TypeScript is incremental, but **new authorship is `.ts`** (or `.tsx` for React). Editing an existing `.js` keeps it `.js` for small changes; full rewrites are a good moment to switch. See [wiki/module-structure.md → TypeScript by default](wiki/module-structure.md#typescript-by-default).
- **`hookable()` keys hooks by the wrapped function's `.name`, so a `…Impl` declaration silently kills its public hooks.** `hookable(fooImpl)` registers under `'fooImpl'`, but a `hookBeforeFoo` helper that calls `hookBefore('foo', …)` registers under `'foo'` — they never meet, the hook never fires, and nothing errors (the wrapped function still runs, the transaction still commits). Wrap a **named function expression** whose intrinsic name *is* the hook key, even if the binding differs: `const fooImpl = async function foo() {…}` (the `checkout.ts:10` idiom — `const _checkout = async function checkout(`). A plain `function fooImpl() {}` declaration sets `.name = 'fooImpl'` and breaks it. See [wiki/hooks.md → Common pitfalls](wiki/hooks.md#common-pitfalls); guard test `modules/oms/tests/unit/hookNameAlignment.test.js`.
- **A widget `settingComponent` that reads a list setting as `watch('settings.x') ?? initial` works in the page-builder drawer but throws `items.map is not a function` on the legacy `/admin/widgets/edit` page.** The two surfaces seed settings differently: the drawer's page-level form holds real arrays/objects, but the legacy `<Form>` seeds list fields as a JSON **string** via a hidden `defaultValue={JSON.stringify(...)}` input — and `??` only guards null, so the string reaches `RepeatableAccordion` and would also fail the widget's AJV array schema on save (settings are never parsed in the save path). Read list settings with `useArraySetting('settings.x', initial)` and mutate via `asArray(getValues('settings.x'), initial)` (both from `@components/common/page-builder`), or hold the array with `useFieldArray` like `SlideshowSetting`. See [wiki/page-builder.md → Widget settings run on two surfaces](wiki/page-builder.md#widget-settings-run-on-two-surfaces-list-field-trap).
## Doing work in this repo
- The published package is built from `src/` to `dist/` via SWC (`npm run compile`). Runtime loads `.js` from `dist/`. When editing, edit `.ts` in `src/`.
- **While `npm run dev` is running, compile with `npm run compile:dev`, never `npm run compile`.** The latter starts with `rimraf ./packages/evershop/dist`, which replaces the directory the dev server is watching. The watcher keeps a handle on the deleted inode and rebuilds forever — identical bundle hash, every few hundred milliseconds — and only restarting the server clears it. `compile:dev` writes in place and leaves the inode untouched. Use the full `compile` when a source file has been DELETED (only the rimraf clears its stale output), and expect to restart the dev server afterwards.
- Tests run with Jest: `npm test` from the repo root.
- Lint with `npm run lint`.
- Dev server: `npm run dev` (uses `webpack-dev-middleware` + HMR).
- Build for production: `npm run build` then `npm run start`.
- Never bypass `husky` hooks (`--no-verify`) or skip type/lint failures without an explicit go-ahead.
## /CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[support@evershop.io](mailto:support@evershop.io).
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
# License
EverShop is licensed under the GNU General Public License v3.0
## /CONTRIBUTING.md
# Contributing to EverShop
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
---
- Read about our [Code Of Conduct](https://github.com/evershopcommerce/evershop/blob/main/CODE_OF_CONDUCT.md).
## Developing
To develop locally:
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your
own GitHub account and then
[clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
```sh
git clone https://github.com/evershopcommerce/evershop.git
```
2. Create a new branch:
```
git checkout -b MY_BRANCH_NAME
```
3. Install the dependencies with:
```
npm install
```
4. Create a Postgres database:
```
// EverShop use Postgres for database storage
```
5. Run installation command to create a database schema:
```
npm run setup
```
6. Start development server:
```
npm run dev
```
7. Building
You can build with:
```bash
npm run build
```
8. Testing the production build
```bash
npm run start
```
9. Running tests
Run the [Jest](https://jestjs.io/) unit testing
```sh
npm run test
```
10. Running linting
```sh
npm run lint
```
11. Issue that [pull request!](https://github.com/github/docs/blob/main/CONTRIBUTING.md) to the `dev` branch.
## Any contributions you make will be under the GNU General Public License v3.0 Software License
In short, when you submit code changes, your submissions are understood to be under the same [GNU General Public License v3.0](https://github.com/evershopcommerce/evershop/blob/main/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern.
## Report bugs using Github's [issues](https://github.com/evershopcommerce/evershop/issues)
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy!
## Write bug reports with detail, background, and sample code
**Great Bug Reports** tend to have:
- A quick summary and/or background
- What EverShop version you are using
- What NodeJs version you are using
- What OS system you are using
- What Postgres version you are using
- Steps to reproduce
- Be specific!
- Give sample code if you can
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
## License
By contributing, you agree that your contributions will be licensed under its GNU General Public License v3.0 License.
## /Dockerfile
``` path="/Dockerfile"
# DEVELOPMENT image — builds this monorepo from source.
#
# This is NOT the published evershop/evershop image. That one is built from
# docker/Dockerfile, which installs the released @evershop/evershop package
# from npm so the image matches what merchants actually run. Use this one to
# get a container running the working tree (contributing, reproducing a bug).
#
# It must build from a CLEAN CHECKOUT, which is what CI has. The previous
# version could only build on a configured working directory, for two reasons:
#
# 1. It COPYed config/, themes/, extensions/, public/ and media/ — none of
# which are tracked in git. They exist only after an install, so a missing
# COPY source failed the build immediately anywhere else. They are created
# empty here instead, to be filled by the installer or a volume mount.
# 2. It ran `npm run build`, which executes packages/evershop/dist/bin/build.
# dist/ is a gitignored artifact and NO install hook creates it (the
# package has `prepack`, which only runs on publish), so the step relied
# on a dist/ left over on the host. The image now compiles src -> dist
# itself, before building.
#
# Base image is Node 20: the minimum this project supports, and what CI tests
# against. The previous node:18-alpine was below that floor and is past EOL.
FROM node:20-alpine
WORKDIR /app
# husky's `prepare` hook runs during `npm install` and exits non-zero when
# there is no .git directory — which .dockerignore deliberately excludes.
ENV HUSKY=0
COPY . .
# Project directories that are not tracked in git but that the app expects to
# exist: media/ for uploads, public/ for static files, themes/ and extensions/
# for add-ons, config/ for node-config.
RUN mkdir -p config themes extensions public media
# compile: TypeScript src -> dist via swc (what `build` and `start` execute).
# build: webpack bundles for the storefront and admin.
RUN npm install \
&& npm run compile \
&& npm run compile:db \
&& npm run build
# The server listens on $PORT, defaulting to 3000 (bin/lib/normalizePort.js).
# The previous EXPOSE 80 matched neither the default nor docker-compose.yml.
EXPOSE 3000
CMD ["npm", "run", "start"]
```
## /README.md
<p> </p>
<p align="center">
<img width="60" height="68" alt="EverShop Logo" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/logo-green.png"/>
</p>
<p align="center">
<h1 align="center">EverShop</h1>
</p>
<p align="center">
<a href="https://trendshift.io/repositories/212" target="_blank"><img src="https://trendshift.io/api/badge/repositories/212" alt="evershopcommerce%2Fevershop | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
</p>
<h4 align="center">
<a href="https://evershop.io/docs/development/getting-started/introduction">Documentation</a> |
<a href="https://demo.evershop.io/">Demo</a>
</h4>
<p align="center">
<img src="https://github.com/evershopcommerce/evershop/actions/workflows/build_test.yml/badge.svg" alt="Github Action"> <a href="https://twitter.com/evershopjs"><img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/evershopjs?style=social"></a> <a href="https://discord.gg/GSzt7dt7RM"><img src="https://img.shields.io/discord/757179260417867879?label=discord" alt="Discord"></a> <a href="https://opensource.org/licenses/GPL-3.0"><img src="https://img.shields.io/badge/License-GPLv3-blue.svg" alt="License"></a>
</p>
<p align="center">
<img alt="EverShop" width="950" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/banner.png"/>
</p>
## Introduction
EverShop is a modern, TypeScript-first eCommerce platform built with GraphQL and React. Designed for developers, it offers essential commerce features in a modular, fully customizable architecture—perfect for building tailored shopping experiences with confidence and speed.
## Installation Using Docker
You can get started with EverShop in minutes by using the Docker image. The Docker image is a great way to get started with EverShop without having to worry about installing dependencies or configuring your environment.
```bash
curl -sSL https://raw.githubusercontent.com/evershopcommerce/evershop/main/docker-compose.yml > docker-compose.yml
docker compose up -d
```
For the full installation guide, please refer to our [Installation guide](https://evershop.io/docs/development/getting-started/installation-guide).
## Documentation
- [Installation guide](https://evershop.io/docs/development/getting-started/installation-guide).
- [Extension development](https://evershop.io/docs/development/module/create-your-first-extension).
- [Theme development](https://evershop.io/docs/development/theme/theme-overview).
## Demo
Explore our demo store.
<p align="left">
<a href="https://demo.evershop.io/admin" target="_blank">
<img alt="evershop-backend-demo" height="35" alt="EverShop Admin Demo" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/evershop-demo-back.png"/>
</a>
<a href="https://demo.evershop.io/" target="_blank">
<img alt="evershop-store-demo" height="35" alt="EverShop Store Demo" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/evershop-demo-front.png"/>
</a>
</p>
<b>Demo user:</b>
Email: demo@evershop.io<br/>
Password: 123456
## Support
If you like my work, feel free to:
- ⭐ this repository. It helps.
- [][tweet] about EverShop. Thank you!
[tweet]: https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fevershopcommerce%2Fevershop&text=Awesome%20React%20Ecommerce%20Project&hashtags=react,ecommerce,expressjs,graphql
## Contributing
EverShop is an open-source project. We are committed to a fully transparent development process and appreciate highly any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as part of the EverShop community.
### Ask a question about EverShop
You can ask questions, and participate in discussions about EverShop-related topics in the EverShop Discord channel.
<a href="https://discord.gg/GSzt7dt7RM"><img src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/discord_banner_github.svg" /></a>
### Create a bug report
If you see an error message or run into an issue, please [create bug report](https://github.com/evershopcommerce/evershop/issues/new). This effort is valued and it will help all EverShop users.
### Submit a feature request
If you have an idea, or you're missing a capability that would make development easier and more robust, please [Submit feature request](https://github.com/evershopcommerce/evershop/issues/new).
If a similar feature request already exists, don't forget to leave a "+1".
If you add some more information such as your thoughts and vision about the feature, your comments will be embraced warmly :)
Please refer to our [Contribution Guidelines](./CONTRIBUTING.md) and [Code of Conduct](./CODE_OF_CONDUCT.md).
## 🚀 The Future of EverShop
EverShop is seeing rapid organic growth and strong adoption from the developer community. We are now scaling our operations and building **EverShop Cloud**.
If you are a strategic investor interested in the future of Node.js commerce and our mission to set a new standard for modern eCommerce, we’d love to share our vision and roadmap with you.
📩 **Get in touch:** support@evershop.io
## License
[GPL-3.0 License](https://github.com/evershopcommerce/evershop/blob/main/LICENSE)
## /changelog.md
# v2.3.0 (unreleased)
A feature release on top of v2.2.2: outbound webhooks, a country-aware address system, a unified payment capture/void/refund flow with a rebuilt PayPal integration, redesigned transactional emails, a media library, and storefront building blocks for theme authors. It includes everything in v2.2.2 (a start-up fix and several security fixes).
This release contains **breaking changes** and **6 new database migrations**, one of which renames address columns. Please read **Breaking Changes** and **Upgrade Notes** before upgrading. If you upgrade from v2.2.1 or earlier, also read the Upgrade Notes of v2.2.2 below.
## Highlights
* **Webhooks** — a new `webhook` module: send signed events to up to 10 HTTPS endpoints, with retries and a delivery log.
* **Address Format Registry** — country-aware address forms, validation, storage and display, driven by one format record per country.
* **Unified payments** — one capture / void / refund flow for every payment method, and a rebuilt PayPal integration (webhook, refunds, reconciliation).
* **Emails** — a shared email layout, plus new refund and cancellation emails, in 17 languages.
* **Media library** — a paginated, redesigned file browser with rename and paste-to-upload.
* **Theme building blocks** — `layouts.json`, storefront pages split into movable blocks, shared widget typography hooks, theme assets and seed content.
## Breaking Changes
Four changes that also affect you when upgrading from v2.2.1 shipped in v2.2.2 and are described there: raw SQL needs `sql()`, `getContextValue(...)` takes data literals only, `Query.order(uuid)` needs proven access, and API route middleware is authenticated.
* **Address columns were renamed (Address Format Registry).** On `customer_address`, `cart_address` and `order_address`: `full_name` → `recipient`, `address_1` → `address_line_1`, `address_2` → `address_line_2`, `city` → `locality`, `province` → `administrative_area`, `postcode` → `postal_code`; seven nullable columns were added (`organization`, `address_line_3`, `dependent_locality`, `sorting_code`, `given_name`, `family_name`, `extra`). `tax_rate.province` / `postcode` became `administrative_area` / `postal_code`, and `shipping_zone_province` became `shipping_zone_region`. The migrations rename only (no row is rewritten), but **v2.2.1 and v2.2.2 code do not work with the new schema**: they still start, but every address reads back empty. The GraphQL `Address` types and the address REST payloads changed with them, and the `types/customerAddress` and `lib/locale/countries` modules were removed (use `@evershop/evershop/lib/address`: `getCountries`, `getCountryName`, `isKnownCountry` and the address types). Custom SQL, extensions and themes that read the old names must be updated. A script that reverses the address renames only is in the repository at `scripts/address-formats/rollback-schema.sql`.
* **Payment capture and refund routes were replaced by one contract.** Removed: `POST /api/stripe/paymentIntents/capture`, `POST /api/stripe/paymentIntents/refund`, `POST /api/cod/captures`, `POST /api/paypal/authorizations/capture`, `POST /api/paypal/authorizedTransactions`, `POST /api/paypal/captureTransactions` and the PayPal refund route, together with the per-method admin buttons. Use `POST /api/orders/:id/capture` and `POST /api/orders/:id/refunds` (admin only); the order page shows generic Capture and Refund buttons. Payment methods now declare optional `capture`, `void` and `refund` handlers in `registerPaymentMethod`. Cash on Delivery orders get their own `cod_*` statuses, and a migration moves existing awaiting-payment COD orders from `pending` to `cod_pending` and records an offline `authorize` transaction for them. The order status no longer changes.
* **PayPal return page renamed**: `/paypal/proccessing` is now `/paypal/processing` (no alias).
* **Storefront pages are now a shell plus blocks.** The product, category, cart, checkout, account, order list, blog and search pages keep only the query, the provider and the Areas; every piece is its own page component that registers into a slot at its old position, so the default markup is unchanged. A theme that **forked** `ProductView.tsx`, `CategoryView.tsx`, `ProductSingleForm.tsx`, `ShoppingCart.tsx`, `Checkout.tsx`, `MyAccount.tsx`, `OrderList.tsx`, a blog page shell or `SearchPage.tsx` must delete the inline pieces from its copy, or the page renders them twice.
* **Public `?limit=` is capped** at `system.max_collection_size` (default 200, the largest admin grid option).
* **Fresh installs no longer create sample data.** The install migration no longer creates the Men / Women / Kids categories or the Color and Size attributes with their options. Existing stores keep what they have. Themes supply their own catalogue through `themes/<id>/seed/*.json`, read only by `evershop seed`.
* **`sanitize-html` was replaced by `xss`** for rich text. The allow-list is the same; serialization differs cosmetically (`<br>` instead of `<br />`), and `style` values containing `url(javascript:)` or `expression()` are now dropped. Code that imported `sanitize-html` through EverShop must declare it itself.
* **Prices and dates follow the active locale** (the request locale, then the Store Setting language, then `shop.language`). Admin pages format in the admin language.
## New Features
### Webhooks (new `webhook` core module)
* Admin → Settings → Webhooks: up to 10 webhooks, each with an HTTPS URL, a signing secret and a list of events (21 event topics, grouped in the form). Includes a test event, a delivery list with filters, a payload viewer and Retry.
* Delivery is write-first: a `webhook_delivery` row is stored, sent, and retried from that row (after 1, 5, 30 and 120 minutes, 5 attempts). The row is both the retry queue and the admin log. Delivery is at-least-once; a 2xx response within 10 seconds counts as success. Failed deliveries are kept 30 days; completed ones up to `webhookLogLimit` (default 100) per webhook.
* Each request is signed: `X-EverShop-Signature: t=<unix>,v1=<HMAC-SHA256>` over `<timestamp>.<body>`; `X-EverShop-Delivery` stays the same across retries. `password` is removed from payloads at any depth.
* Only HTTPS and public addresses are allowed, checked at connect time. Set `system.webhook.allowPrivateNetworks` to allow local receivers.
* Extensions can add topics with `addProcessor('webhookTopics')`. Translated into all 17 languages.
* Event subscribers placed in `subscribers/_all/` now receive every event, and every subscriber gets `{ name, uuid }` as an optional second argument. Delivery of ordinary subscribers is unchanged (at-most-once).
### Address Format Registry
* One country format record (Google libaddressinput shape) now drives the storefront form, server validation, display, GraphQL, emails and every integration mapping. The checkout and the account address book use one schema-driven form with country-specific fields, region lists, telephone and postal patterns.
* Admin: Settings → Customer (name format, telephone, company, address lines, required fields, default country) and **Sell to countries** on Settings → Shipping, with a confirmation that lists shipping zones that would be left without a country.
* Shipment emails now print the delivery address.
* Public API for extensions: `@evershop/evershop/lib/address` (`patchAddressFormat`, `registerRegionProvider`, `registerAddressField`, `resolveAddressSchema`, `validateAddress`, `formatAddress`, `toIntegrationAddress`). Registration is locked after bootstrap, like the other registries.
* The package now ships a `NOTICE` file for the bundled address data (derived from Google's libaddressinput).
### Payments
* **Unified operations.** Capture, void and refund are owned by core (`captureOrder`, `refundOrder`) and work the same for every payment method. The order page buttons appear from `canCapture` / `canRefund`. New `order_refunded` and `order_canceled` events.
* **PayPal** was rebuilt: payment is finalized in-process on the return page (the old HTTP call to the store's own URL failed behind a bot challenge or proxy), a verified webhook at `POST /api/paypal/webhook` (set the webhook ID in the PayPal settings or in `system.paypal.webhookId`), admin refunds with partial-refund tracking, `paypal_pending` for pending captures, idempotent transaction recording, current Orders v2 payloads with exact-amount breakdowns (including zero-decimal currencies), and a reconciliation cron (every 30 minutes, `system.paypal.abandonedOrderTtlHours`, default 6) that captures approved orders and cancels and restocks abandoned ones. When a buyer cancels at PayPal, the abandoned order is now cancelled and restocked before the cart is reactivated.
* **Stripe**: the charge amount and currency come from the order instead of the browser, the webhook verifies them, locks the order row and handles `payment_intent.payment_failed` and `charge.refunded`.
* **Cash on Delivery** is wired into the same contract with its own `cod_*` statuses.
* Order status changes are clamped instead of throwing on terminal or reverted states; shipments can be cancelled on refunded orders and cannot be created on terminal ones.
### Transactional emails
* A shared layout (header and logo, content, footer; button, divider and items-table partials; a `{{t}}` translation helper) now renders the order confirmation, welcome, reset password, shipment created and shipment delivered emails.
* **New emails**: refund and cancellation, each switchable with `notification_emails.order_refunded` / `order_canceled` (`enabled`, `templatePath`).
* The email copy is translated into all 17 languages (machine-assisted; less common languages deserve a native-speaker review).
### Media library and file browser
* The file browser is paginated for every storage provider (local, S3, Azure Blob, Google Cloud Storage) with cursors, so a folder with thousands of files no longer loads at once. Folders always load completely; listings now include size and type.
* **Rename** files (extension is preserved, an existing name is never overwritten), **paste-to-upload**, a details panel with the full URL, size and dimensions, loading skeletons, and a working scrollbar. A **Media library** entry joins the CMS menu.
* The configured upload types (System Setting → File Uploads: PDF, video, audio) are honoured by the browser; before, only images worked.
### Storefront and catalog
* **All products page** at `/products`, editable in the page builder, with sorting, filters, pagination, a category tree facet and an attribute facet. Included in the sitemap and offered in the link picker. The category filter now matches the whole subtree.
* **Virtual collections** ("newest", "on sale", a category's products) for widgets and the page builder, so a new store's shelves are not empty.
* Product cards decide **Add to Cart** themselves: simple products get the button ("Sold out" when out of stock), products with variants get **Select options**, a link to the product page. The featured items, recommendation, collection spotlight and rich-text product widgets gain the button.
* **Contact form widget** with stored submissions: submissions are saved before the email is attempted, with an admin grid (unread / read / spam) and delete. The email outcome is recorded.
* Admin → landing pages: **Replace homepage** with a landing page, with an automatic disabled backup and a one-click restore.
* New `featured blogs` fallback (newest posts when none are picked), a slideshow placeholder in the page builder, and the page builder shows a loading skeleton while a replaced image renders.
### Theme development
* `themes/<id>/layouts.json` moves any storefront page component to another Area or sort order without forking the file. Hot reload in development; admin pages are never affected.
* Theme `theme.json` can now ship **landing pages**, upload **assets** through the store's configured storage provider (`theme-asset:<path>` tokens) and reference products or collections by a stable key (`store-ref:<entity>/<by>/<key>`).
* Shared widget classes `evershop-widget__eyebrow`, `__heading`, `__subtext` and `__item-heading` let one rule restyle every widget; vertical spacing is consistent. The Section widget follows the page column through `--page-max-width` and `--page-gutter` and exposes `data-padding`.
* `evershop seed` is re-runnable and theme-aware: widgets (`--widgets`), variant groups, category images and a theme's retired categories are handled idempotently, size can drive a variant like colour, and seeded images go through the configured storage provider. The footer copyright is now live (`© <year> <store name>`) when none is set.
## Security
The fixes released in v2.2.2 are listed under that version. This release also fixes:
* A PayPal capture action that could be called without authentication using only an order UUID; the public PayPal capture and authorize routes were removed.
* The Stripe charge amount is now derived from the order, not from client data.
* `?limit=` on public pages could request the whole catalog in one response (denial of service).
## Performance
* The product listing COUNT query drops joins it does not need (about 50.7 ms → 26.5 ms on a 300,000-product catalog) and the category facet matches a subtree with one array parameter instead of a recursive subquery (about 79 ms → 2.5 ms). The store-wide attribute facet uses an EXISTS probe (about 48 ms → 2 ms on 1.2 million index rows).
* Rich text sanitizing no longer bundles `sanitize-html` into the storefront: about 200 KB less minified (67 KB gzipped).
* Image and static-asset requests no longer create a session or send a `Set-Cookie`, so CDNs can cache product images.
## Bug Fixes
* The order confirmation email no longer prefixes the base URL onto absolute (S3 and other remote) thumbnail URLs.
* `og:image` URLs are correct for cloud storage.
* Requests no longer hang when `NODE_ENV` is neither `development` nor `production`, and local extensions no longer vanish in that case.
* A widget with settings its GraphQL type does not accept no longer takes the whole page down with a 500: unknown keys are dropped with a warning, an unusable widget is left out of the page, and saving such settings is refused.
* Sorting on the product listing resets the page, and the direction toggle works on the default sort.
* Display locale for prices and dates comes from the active locale, not only `shop.language`.
* Page components are imported in Area `sortOrder`, so the CSS cascade follows it (headings no longer lose their Tailwind base styles on the cart and checkout pages).
* Menu items are keyed by their stored id (no duplicate React keys); the mobile menu stays inside the viewport; the header renders its Areas in source order (correct keyboard tab order).
* Product images default to `object-fit: cover`, so photos are cropped rather than stretched.
* Banner and slideshow buttons and headlines are legible over photographs; the split feature's vertical alignment works; call-to-action buttons share one height; either slideshow arrows field can hide the controls.
* The Section widget lines up with the page column and no longer causes sideways scrolling on Windows and Linux.
* The gallery slider and the variant selector work with other bundlers and with relative product URLs.
* The file browser opens above the page builder, and its clicks no longer close the settings drawer.
* `evershop build` no longer logs a database connection error (no database exists at build time).
* Seeding no longer dies on the second page, re-uploads category images, or creates a category a theme meant to retire.
## Developer Experience
* New `npm run compile:dev` compiles in place without deleting `dist/`, so a running dev server keeps working. `compile:tsc` now copies the same non-source files as `compile`.
* Jest maps `@components/*` to the compiled components and stubs stylesheet imports, so page components can be unit tested.
* New regression tests guard failures that compile and pass CI: a comment inside `export const layout`, a Node built-in reachable from a React component, and an API route that reads `request.body` without body parsing.
* `@evershop/postgres-query-builder` 2.1.0 adds `SelectQuery.getJoins()` and `pruneUnreferencedLeftJoins()`.
## Dependencies
* Added: `xss`; `jsdom` (dev, for DOM component tests).
* Removed: `sanitize-html` and `@types/sanitize-html`.
* The `multer`, `sharp`, `axios`, `undici` and `@evershop/postgres-query-builder` upgrades, and the removal of `cypress`, shipped in v2.2.2.
## Upgrade Notes
1. **Back up your database.** This release runs 6 new migrations: `checkout` 1.0.12, `customer` 1.0.5 and `tax` 1.0.1 (address columns, renames only), `cod` 1.0.0 (moves awaiting-payment COD orders to `cod_pending`), `cms` 1.5.0 (`contact_submission`) and `webhook` 1.0.0. They apply automatically on first start. **After they run, do not start v2.2.1 or v2.2.2 against the database: it starts, but every address reads back empty.** To go back, restore your backup. As an alternative, run `scripts/address-formats/rollback-schema.sql` (`psql --single-transaction -f`) while you redeploy the old release: it reverses the address renames and steps the `checkout`, `customer` and `tax` migration records back, but it does not undo the `cod` status change (orders that were awaiting payment stay `cod_pending`) or remove the new tables.
2. Update `@evershop/evershop`, reinstall dependencies, run `npm run build`. Use Node.js 20.9 or newer (required since v2.2.2).
3. **Stripe**: enable `payment_intent.succeeded`, `payment_intent.amount_capturable_updated`, `payment_intent.payment_failed`, `payment_intent.canceled` and `charge.refunded` on your webhook endpoint.
4. **PayPal**: create a webhook in the PayPal dashboard pointing at `/api/paypal/webhook` and save its ID in the PayPal settings. Until then the endpoint answers 503 and the reconciliation cron is the only fallback. The old `paypalWebhookSecret` setting is gone.
5. Review your shipping zones under Settings → Shipping. Provinces became regions, and **Sell to countries** limits which countries checkout accepts.
6. If you use custom SQL, extensions or a theme: update address column names and the removed `types/customerAddress` and `lib/locale/countries` imports; replace calls to the removed payment routes with `POST /api/orders/:id/capture` and `/refunds`; delete the inline pieces from forked page shells (see Breaking Changes).
7. Themes that depended on `order-first` to place the header's center Area: Areas now render left, center, right in the markup. Check your header.
8. Rich text is sanitized by `xss`; check content that relied on `<br />` output or on `sanitize-html` being installed.
# v2.2.2 (2026-10-08)
A patch for v2.2.1 that fixes a start-up failure on fresh installs and several security vulnerabilities. There are no database migrations and no new features. Upgrading promptly is recommended.
**Fresh installs of v2.2.1 fail to start.** The upload storage imported `concat-stream`, which was never declared and only arrived through `multer` 2.3.0 or older. `multer` 2.4.0 dropped it, and the `^2.2.0` range now resolves to 2.4.0, so the admin GraphQL schema fails to load at bootstrap. Stores that already have a lockfile with the older `multer` were not affected. On v2.2.1, `npm install concat-stream` is a workaround.
## Security
* **Order data exposure through the public GraphQL API** (CVE-2025-12919, CWE-639, #881): `Query.order(uuid)` returned name, email, phone, addresses, items and shipment tracking to anyone who knew an order UUID.
* **Authorization bypass** (CWE-306 / CWE-863): an API route middleware that declared its own `after` list (for example `[bodyParser]saveGroup.js`) could run before authentication.
* **SQL injection** (CWE-89) through the query builder's raw-SQL escape hatch: a request body passed as a `.where()` value could set `{ isSQL: true }` to inline unbound SQL. Fixed in `@evershop/postgres-query-builder` 2.1.1.
* **Server-side code evaluation** (CWE-95): the GraphQL query builder evaluated the decoded arguments of `getContextValue(...)` tokens as JavaScript.
* **Dependencies**: 53 of the 55 open high and critical alerts, including a `multer` denial of service and `sharp` / libvips / libheif fixes.
## Bug Fixes
* Fixed the fresh-install start-up failure described above. The upload storage now joins the chunks with `Buffer.concat`, as `multer`'s own memory storage does, and still enforces the per-type size limit while the file streams.
## Dependencies
* Upgraded: `multer` ^2.4.0, `sharp` 0.33 → 0.35 (**requires Node.js 20.9 or newer**), `axios` ^1.20.0, `undici` ^7.30.0, `@evershop/postgres-query-builder` ^2.1.1.
* Removed: `cypress` (dev; the end-to-end tests use Playwright).
## Upgrade Notes
1. Update `@evershop/evershop`, reinstall dependencies and run `npm run build`. Use Node.js 20.9 or newer.
2. **Raw SQL in the query builder needs `sql()`.** A hand-written `{ isSQL: true, value: '...' }` object is now treated as an ordinary bound value. Replace such objects in extensions with `sql('...')`.
3. **`getContextValue(...)` in a route's GraphQL `query` or `variables` takes data literals only** (strings, numbers, booleans, `null`, arrays and objects). An expression now throws instead of running.
4. **`Query.order(uuid)` returns `null` unless access is proven.** An order is returned only to an admin, to the customer who owns it, or to a page that called `grantOrderAccess(request, uuid, via)` (exported from `@evershop/evershop/oms/services`). Core's checkout success page and the order tracking page already do. A custom page, theme or extension that reads `order(uuid)` on its own must call it after checking access.
5. **Authentication is now enforced on API route middleware that declares its own `after` list.** If a route middleware is ordered ahead of a pre-auth one, you now get an explicit error message instead of an opaque cycle error.
# v2.2.1 (2026-08-11)
The largest EverShop release since 2.0. It consolidates the previously drafted-but-unpublished 2.1.3 work (React 19) with four months of development on top of v2.1.2: a visual page builder, a blog module, entity custom fields (metafields), a multi-language storefront with a translated admin, a rebuilt shipping and fulfillment stack, built-in cloud file storage, product recommendations, and a substantial security and performance pass.
31 database migrations across 10 modules run automatically on first start. Please read **Breaking Changes** and **Upgrade Notes** before upgrading. This release also contains fixes for several security vulnerabilities — upgrading promptly is recommended.
## Highlights
* **Visual Page Builder** — drag-and-drop storefront editing with drafts, publish, and scheduled rollouts.
* **Blog** — a full blog module: posts, categories, tags, comments, storefront pages and widgets.
* **Metafields** — typed custom fields on products, categories, collections, customers, orders, and the shop itself, with theme provisioning.
* **Multi-language** — runtime-translated storefront with locale-prefixed URLs, plus an independently-translated admin (17 locales bundled).
* **Shipping providers & multi-shipment** — pluggable shipping providers, first-class shipments with per-shipment status, carrier/label integration, package management.
* **Cloud file storage** — S3, Azure Blob, and Google Cloud Storage built in, configured from the admin.
* **Product recommendations** — related products, frequently-bought-together, upsell and cart cross-sell shelves.
* **React 19**, per-IP rate limiting, sitemap.xml + robots.txt, landing pages, automatic URL redirects, and large-catalog performance fixes.
## Breaking Changes
* **Upgraded to React 19** (from React 17) (#863). The framework runs on React 19, and because EverShop resolves React through a single hoisted copy (webpack alias), every extension and theme now runs on React 19 as well. Update React-17-era code:
- `defaultProps` on function components is removed — use ES default parameters (`function C({ x = 1 })`).
- String refs, `findDOMNode`, legacy `ReactDOM.render`/`ReactDOM.hydrate`, and legacy context are removed — use callback/`useRef` refs, `createRoot`/`hydrateRoot`, and `createContext`.
- Do not call the translation helper `_()` at module scope (top-level `const` arrays/objects): it freezes the translation at import time and causes an SSR/client hydration mismatch under React 19. Call `_()` inside the component (render time).
- Read client-only state (e.g. `window.location`) in a `useEffect`, not in a `useState` initializer, so the first client render matches the server.
- See `specifications/react-19-upgrade.md` for the full audit and migration detail.
* **`react-toastify` removed — toasts now use `sonner`.** Extensions importing `react-toastify` must switch: `import { toast } from 'sonner'` (the `toast.*` call surface is close to drop-in) and replace `<ToastContainer/>` with sonner's `<Toaster/>`.
* **Shipping is now provider-based** (#929). The old flat zone → method → rate model was replaced by *shipping providers*. Existing zones, methods, and rates are migrated automatically into the built-in **Core provider** (`core_shipping_method`, `core_shipping_method_rate`, `shipping_zone_provider` tables); the legacy tables/columns are dropped at the end of the migration chain. Custom code that queried the legacy shipping tables, or extensions that added shipping methods directly, must move to the provider registry (which also supports live-quoted rates with per-provider timeouts).
* **Fulfillment is now multi-shipment.** `order ↔ shipment` went from 1:1 to one-to-many: each shipment carries its own item assignments and its own status, and `order.shipment_status` is an item-based rollup over physical items. The pre-shipped state was dropped — legacy `pending`/`processing` shipment rows are collapsed to `shipped` and order rollups are backfilled by migration. Consumers of the shipment REST/GraphQL shapes must adapt.
* **Widget storage refactor.** The `widget` table was renamed to `widget_instance`, and placement moved to a `widget_placement` table with one row per (widget instance, route, area). Widget instances are now scoped to the theme they were created under. Any direct SQL or custom tooling against the old `widget` table breaks; the admin UI, REST, and GraphQL surfaces are updated.
* **Branding and several config keys moved from `config.json` to admin settings.** The logo, favicon, social banner, and Google Analytics 4 ID are now managed under Store Setting → Branding; currency, display timezone, weight and dimension units under Store Setting; catalog, pricing, and tax options under their own settings pages; guest checkout under checkout settings. Legacy config values are still honored as fallbacks — **except `themeConfig.logo`, which was removed entirely: re-upload your logo in the admin after upgrading.**
* **`category.include_in_nav` dropped.** Storefront navigation is built with the menu widgets now (including the new footer menu widget), not by flagging categories. Rebuild your navigation with the menu widget if you relied on this column; GraphQL no longer exposes `includeInNav`.
* **`url_rewrite.language` dropped.** URLs are locale-agnostic: locale is expressed as a URL prefix (`/de/<slug>`), and the slug is shared across locales.
* **`node-cron` upgraded 3 → 4.** Verify custom `registerJob` schedule expressions against node-cron v4 semantics.
* **`--skip-minify` removed** (and the `build-fast` npm script). Builds are always minified; overall build time was optimized instead (see Performance).
* **Removed the unused CKEditor packages** (`@ckeditor/ckeditor5-build-classic`, `@ckeditor/ckeditor5-react`).
## New Features
### Visual Page Builder (new `pageBuilder` core module)
A drag-and-drop visual editor for the storefront at `/admin/page-builder`:
* Edit any storefront route (plus CMS pages and landing pages) by composing widgets into the theme's areas, with layout-aware drag/drop and moves.
* **Draft → publish workflow**: changes accumulate in a per-admin, per-theme draft changeset with per-widget auto-save; publish immediately or **schedule a rollout** — rollout plans remain editable and cancelable until they run.
* Inline editing on the canvas: text and images can be edited in place; the image picker supports cloud storage.
* Layers panel, a "Globals" view for site-wide areas, a session/page picker (Homepage first), per-widget styling controls, and link fields that resolve products/categories/CMS pages/blog posts through a unified link resolver.
* Widget admin redesign to match: theme-scoped widget instances and a per-(route, area) placements model.
* Hardened in a dedicated security pass and covered by an e2e test suite.
### Blog (new `blog` core module) (#285)
* Posts, categories, and tags with per-post SEO descriptions; comments and reactions.
* Storefront blog pages plus blog widgets for the page builder; Blog Home is available in the link picker with proper thumbnails.
### Entity custom fields — metafields
* Typed metafield definitions (text, long text, rich text via the block editor, number, boolean, date, select, JSON/group, and list variants) attachable to **products, categories, collections, customers, orders, and the shop**.
* Values stored per entity (JSONB `meta_data`), validated with AJV on write; admin editing cards on the relevant edit pages; audience-gated GraphQL exposure (customer-visible vs admin-only).
* **Theme integration**: a theme can declare metafield definitions in `theme.json` — they are provisioned at theme activation and on boot (with attribution and conflict reporting) — and render values with the new storefront `<Metafield>` component.
* The footer copyright line is now a shop metafield, editable from the page builder.
### Multi-language storefront & translated admin (#311)
* **Runtime translation** — no rebuild needed. Per-locale CSV dictionaries live in the project's `translations/` folder; English is the source language.
* Enabled storefront languages and the default language are admin settings. Non-default locales get URL prefixes (`/de/...`) with canonical handling; REST APIs take an `X-Locale` header.
* The **admin panel has its own language**, independent of the storefront.
* Translations are bundled for 17 locales (de, el, es, fa, fr, hu, it, mn, nb, ne, nl, pt, ru, sr, ta, vi, zh).
### Landing pages, root-level CMS URLs & automatic URL redirects
* **Landing pages**: standalone marketing pages whose body is built entirely in the page builder, served at root-level friendly URLs, with an admin grid, duplication, status/scheduling, and SEO fields. Landing pages win URL collisions deterministically.
* **CMS pages moved to root-level URLs** (`/<url_key>`); old `/page/<url_key>` URLs permanently redirect (301). Existing pages are backfilled by migration.
* **Automatic URL redirects**: renaming a product/category/CMS/landing-page slug now captures a redirect from the old path (302 via a new `url_redirect` table), with redirect-chain collapse and periodic cleanup — old links and bookmarks keep working.
### Sitemap & robots.txt (#506)
* Auto-generated `/sitemap.xml` (a sitemap index plus per-content-type children) covering products, categories, CMS pages, and landing pages, with a **collector registry** so extensions can add their own URL sources.
* Multi-language stores get one entry per enabled locale with self-referential `hreflang` + `x-default` alternates.
* Regenerated by a cron every 30 minutes with cheap change-detection (skips writing when nothing changed); served statically.
* Dynamic `robots.txt` with an absolute `Sitemap:` line — overridable via a setting or by shipping a physical `public/robots.txt`.
### Shipping providers, multi-shipment & carrier integration (#929)
* **Provider abstraction**: shipping rates come from registered providers; the built-in Core provider reproduces the classic zone/method/rate setup (flat, percentage, price/weight-based rates, API-calculated rates). Extension providers can quote live rates with configurable timeouts.
* **Multi-shipment**: ship an order in several packages — each shipment has its own items, status, tracking, and (optionally) purchased label (`label_url`/format persisted). Order-level shipment status rolls up from items; digital items are excluded.
* **Carrier registry**: register carriers that create labels, generate tracking URLs, and push status updates back into EverShop; per-method default carrier and service code pre-select in the ship dialog; carrier tracking URLs from aggregators (Shippo/EasyPost/ShipStation-style) are persisted.
* **Package management**: admin-managed parcel sizes, product → package assignment, and dimension/weight snapshots that flow `cart_item` → `order_item` → carrier requests.
### Cloud file storage: S3, Azure Blob & Google Cloud Storage
* The three providers are now built into core (previously separate extensions), selected and configured at runtime from a new **System Setting** page — no restart needed; credentials can also come from env/config, and secrets are masked in the admin.
* Fixes doc-verified defects of the old extensions along the way: regional S3 endpoints (plus custom endpoint / path-style for R2 and MinIO), correct Content-Type on upload, listing beyond 1,000 keys, Azure public-access handling, and URL encoding.
* The storage host is automatically allowed for the `/images` optimizer; deletes are idempotent across providers.
### Product recommendations
* **Related Products**: rule-based (same category / same collection / same attribute values, with price band, priority ordering, and manual picks), configurable globally, per category, and per product.
* **Frequently Bought Together**: powered by co-purchase statistics (association confidence + lift with configurable thresholds), rebuilt nightly and on demand from order history. Also reaches the **cart page**: a widget aggregates co-purchase candidates across all cart items (per-pair gating, strongest-affinity ranking, in-cart items and their variants excluded), exposed as `Cart.crossSellProducts`.
* **Upsell shelf**: derived automatically from the related-products rules restricted to pricier products, exposed as `Product.upsellProducts` — nothing extra to configure.
* Three new page-builder widgets render the shelves on product pages with full status/stock/visibility gating and variant-group awareness; admin cards on product and category editing (modes, manual picks, computed-candidate previews); new REST endpoints for manual links and stats recompute; new GraphQL fields `Product.relatedProducts` / `Product.crossSellProducts`.
### Checkout
* **Zero-total orders** (100% discounts, free products) check out through an automatic "No payment required" method instead of erroring (#996).
* **Guest checkout toggle** — an admin setting; when off, checkout requires login (with redirect back). Defaults to allowed; the legacy `checkout.allowGuestCheckout` config is honored as fallback.
* **Mobile checkout**: the order summary now comes first as a sticky, collapsible bar; shipping/payment/billing option cards are clickable across their whole surface.
* Fixed: shipping note not showing on checkout (#955); billing country missing/restricted for virtual products (#934).
### Storefront theme refresh & UX
* The default frontStore theme was re-skinned, with aligned category-page filters and product counts, a constrained footer, and grid-safe no-image placeholders.
* **Accessibility pass**: product-card Add-to-Cart is reachable by keyboard and touch (not hover-only), field error messages are wired to inputs via `aria-describedby`.
* Unavailable variant options are disabled in the storefront selector (#964); storefront images are sized from the configured aspect ratio (less layout shift); slideshow slides size to their images with real mobile dimensions.
* Live **SEO snippet preview** on product and category editors.
* **Product duplication** (#276): duplicate from the product grid into a prefilled creation form (suffixed sku/url_key/name, collections copied, `product_duplicated` event).
* New **footer menu widget**; refined collection/blog/mosaic widget layout settings.
### Platform & operations
* **Per-IP rate limiting** built in (#1001): pages ~300 req/min, APIs 120 req/min, and login/registration/password-reset 8 attempts per 15 minutes; static assets exempt. Honors `TRUST_PROXY_HOPS` for correct client IPs behind proxies (default: 1 hop).
* **`EVERSHOP_HOME_URL`** environment override for the public base URL, validated at boot (#960).
* **Theme content tooling**: new `theme:status`, `theme:uninstall`, and `theme:export-content` commands; themes can ship installable content (`theme.json`) and serve their own `public/` assets (#830, #845 — thanks @starry-osean).
## Security
Upgrading is recommended — this release fixes:
* Unauthenticated SSRF, unauthenticated IDOR on customer endpoints, and stored XSS (CWE-918, CWE-639, CWE-79) (#928).
* Unauthenticated account takeover via missing authorization on the customer update endpoint (#952).
* A page-builder security hardening pass (URL/content validation in the editor pipeline).
* Brute-force / credential-stuffing exposure on auth endpoints (covered by the new rate limiter).
* All high-severity dependency alerts cleared (#937).
## Performance
* **Large-catalog fixes**, found by load-testing a 500k-product catalog (#1004): indexed `url_rewrite.request_path` (every storefront request resolves URLs against it), fixed a keyword-search query shape that bypassed the GIN index, and removed an O(n²) id-list query-building pattern that also hit the 65,535-parameter wire limit.
* **Build time** significantly reduced (#967–#969); minification is always on.
* SSR render errors now return a 500 instead of hanging the request; GraphQL field errors return partial data instead of failing the page.
* Session-store and boot-path cleanups; the setting cache is warmed at boot for synchronous hot paths (pricing formatter, email helpers).
## Bug Fixes
* Built-in `<Form>` buttons no longer double-submit (every built-in form used to POST twice).
* Google Analytics now loads in production builds.
* Fresh installs no longer log a red `relation "setting" does not exist` error on first boot against an empty database.
* Migration runner sorts versions by semver correctly (`1.0.10` no longer runs before `1.0.2`) (#961).
* Widget types may share component files (settingComponent/previewComponent) — fixed an AreaLoader identifier bug that broke the admin bundle when two types pointed at one file.
* `cms:page` widget links resolve through `url_rewrite` (they rendered dead links before).
* Cloud-storage image URLs keep their scheme intact in the page-builder image picker.
* Empty settings are no longer saved as the string `"null"`.
* Shipping zone dialog sizing fixed; province selection uses a searchable select.
* Setup no longer crashes with `ValidationError: Progress Plugin has been initialized using an options object` (#932); GitHub Actions build no longer fails on the SWC native module.
* Dev server boot is hardened against compile failures and file-watcher races.
* Variant option filter guards undefined values; metafield single-field setters fixed (#1006).
* Page-builder fixes: publish keeps you on the current route, the session picker no longer pops mid-session, layers show the right widgets on landing pages, draft-aware widget lookups, drops into empty areas.
## Developer Experience
* New public import paths: `@evershop/evershop/lib/urn`, `@evershop/evershop/lib/metafield`, `@evershop/evershop/lib/widget/linkResolver`, and `@evershop/evershop/base/services/sitemap` (register your own sitemap collectors).
* Two new core modules (`blog`, `pageBuilder`) demonstrate current module conventions end-to-end; the page builder ships with an e2e suite.
* Runtime translation APIs and the locale context are available to extensions; admin strings are translatable.
## Dependencies
* Added: `@aws-sdk/client-s3`, `@azure/storage-blob`, `@google-cloud/storage`, `express-rate-limit`, `sonner`, `undici`, `fast-json-stable-stringify`, `@evershop/editorjs-product-list`.
* Upgraded: `react`/`react-dom` 17 → 19, `node-cron` 3 → 4, `webpackbar` 5 → 7, `axios` 1.18, `multer` 2.2.
* Removed: `react-toastify`, `@ckeditor/ckeditor5-build-classic`, `@ckeditor/ckeditor5-react`.
## Upgrade Notes
1. **Back up your database.** This release runs 31 migrations, several of which transform data (shipping zones → Core provider, shipment status collapse, widget table rename) and drop legacy columns/tables.
2. Update `@evershop/evershop`, reinstall dependencies, run `npm run build`. Migrations apply automatically on first start.
3. **Re-upload your logo** in admin → Store Setting → Branding (`themeConfig.logo` is gone). Favicon, social banner, and GA4 also live there now.
4. If your navigation relied on `include_in_nav`, rebuild it with the menu widgets.
5. Review your shipping setup under the new provider-based settings UI — data is migrated automatically, but verify rates.
6. For custom themes/extensions: apply the React 19 notes above, switch `react-toastify` imports to `sonner`, and update anything that touched the `widget` table or legacy shipping tables directly.
7. Custom cron jobs: verify schedules against node-cron v4.
## Credits
Thanks to everyone who contributed to this release: @treoden, @starry-osean (theme public assets, #845), Sang.Tra.
# v2.1.2 (2026-04-03)
## Breaking Changes
* Update payment status for PayPal orders
- `authorized` -> `paypal_authorized`
- `captured` -> `paypal_captured`
* Update payment status for Stripe orders
- `authorized` -> `stripe_authorized`
- `captured` -> `stripe_captured`
- `refunded` -> `stripe_refunded`
- `partial_refunded` -> `stripe_partial_refunded`
- `failed` -> `stripe_failed`
## What's Changed
* [BUG] v2.1.1 completely breaks bold/italic/links in the CMS Editor #882 by @treoden in https://github.com/evershopcommerce/evershop/pull/885
* Feat: Add area debug feature by @treoden in https://github.com/evershopcommerce/evershop/pull/887
* fix: convert backslash paths to forward slashes for Tailwind v4 on Windows by @Sigmabrogz in https://github.com/evershopcommerce/evershop/pull/891
* Fix event management by @treoden in https://github.com/evershopcommerce/evershop/pull/896
* Add a query wrapper for better postgres query typing by @treoden in https://github.com/evershopcommerce/evershop/pull/895
* Feat: Improve typescript for better development experience by @treoden in https://github.com/evershopcommerce/evershop/pull/897
* Feat: Add sonner component by @treoden in https://github.com/evershopcommerce/evershop/pull/899
* Chore: Less strict order status update by @treoden in https://github.com/evershopcommerce/evershop/pull/900
* Chore: Update order status code for stripe by @treoden in https://github.com/evershopcommerce/evershop/pull/901
* Chore(deps): Bump handlebars from 4.7.8 to 4.7.9 by @dependabot[bot] in https://github.com/evershopcommerce/evershop/pull/902
* Chore(deps): Bump sass from 1.97 to 1.98 by @treoden in https://github.com/evershopcommerce/evershop/pull/903
* Fix: Fix listing style editor by @treoden in https://github.com/evershopcommerce/evershop/pull/904
* Fix: Fix toolbox overlapping issue by @treoden in https://github.com/evershopcommerce/evershop/pull/905
* Fix: Some warning messages from React by @treoden in https://github.com/evershopcommerce/evershop/pull/906
* Fix: fix checkoutForm area ID by @treoden in https://github.com/evershopcommerce/evershop/pull/907
* Fix: Scroll to shipping method list when it is unselected by @treoden in https://github.com/evershopcommerce/evershop/pull/909
* Fix: Improve typing by @treoden in https://github.com/evershopcommerce/evershop/pull/911
* Fix: Fix the area sort order in the registration form by @treoden in https://github.com/evershopcommerce/evershop/pull/912
* Fix: Use new data in the token payload by @treoden in https://github.com/evershopcommerce/evershop/pull/913
* Fix: Upgrade stripe packages and refactor the order status for stripe… by @treoden in https://github.com/evershopcommerce/evershop/pull/914
* Fix: Refactor the paypay payment status by @treoden in https://github.com/evershopcommerce/evershop/pull/915
* Chore(deps): Bump zero-decimal-currencies from 1.2 to 1.6 by @treoden in https://github.com/evershopcommerce/evershop/pull/917
* Fix: Can not unassign a product from a category by @treoden in https://github.com/evershopcommerce/evershop/pull/919
* Fix: Province list does not update when changing country by @treoden in https://github.com/evershopcommerce/evershop/pull/920
* Fix: Fix the missing exports by @treoden in https://github.com/evershopcommerce/evershop/pull/921
* Fix: Fix checkout error message handling by @treoden in https://github.com/evershopcommerce/evershop/pull/924
# v2.1.1 (2026-01-12)
## New Features
* Support digital products
* Support Shadcn UI components
* Use single webpack instance (one for backend and one for frontend) in dev mode to improve the development experience
## Breaking Changes
* Remove some components in favor of using shadcn/ui components
- `components/common/Button.jsx`
- `components/common/modal/Modal.jsx`
- `components/common/modal/useModal.jsx`
- `components/admin/Badge.jsx`
- `components/admin/Card.jsx`
- `components/admin/Circle.jsx`
- `components/admin/Dot.jsx`
* Update Tailwind CSS from v3 to v4,
* Email service refactored to use a single email service instance. Please upgrade your sendgrid and resend extensions to the latest version.
## Dependency Updates
* Upgrade tailwindcss to v4
* Upgrade axios to v1.13.2
* Replace react heroicons with lucide-react
## Bug fixes
* Fix: Fix wrong summary value display in the checkout success page in https://github.com/evershopcommerce/evershop/commit/c3f0a1185eeddfa006a35ebe46722c9257717830
* Fix: Improve the login and register function to except additional data in https://github.com/evershopcommerce/evershop/commit/62242e07400bc3525798c9bffb644db3b0cbcc13
* Fix: [BUG] Cannot add attribute options, crypto.randomUUID is not a function in https://github.com/evershopcommerce/evershop/commit/9757d982e5eca1aa453ac71c2dc35b44e9dabf85
* Fix: Fix can not remove all attribute options in https://github.com/evershopcommerce/evershop/commit/b7ecaaaed37347f4316c6265df4138333da27780
* Fix build command failure exist code in https://github.com/evershopcommerce/evershop/commit/79defa294f8cbf81b400d69132edbfcb698bedc2
* Fix: prevent xss attack in https://github.com/evershopcommerce/evershop/commit/8ad2440a04ab2db15e16b9e3bdf392b5346eaea6
* Fix: Fix security issue when building url rewrites in https://github.com/evershopcommerce/evershop/commit/5c5bdf2c1ad5d16ae68e9e48b494563953b6d1cd
* Fix: Fix security vulnerability in reset password api in https://github.com/evershopcommerce/evershop/commit/4e364639a2d65cd0216a4ee69ee6144d02183efc
* Fix: Backspace key does not delete text in pre-existing "Raw HTML" blocks https://github.com/evershopcommerce/evershop/pull/858
* Fix visual spacing glitch between badges. by @canmi21 in https://github.com/evershopcommerce/evershop/pull/796
* Added Tamil Language Translation by @dev-sriramp in https://github.com/evershopcommerce/evershop/pull/821
* Adding Mongolian translations by @btseee in https://github.com/evershopcommerce/evershop/pull/802
* #673 Read me document docker compose fix by @gssajith in https://github.com/evershopcommerce/evershop/pull/674
* Added skip minification command in package.json by @Belvin-04 in https://github.com/evershopcommerce/evershop/pull/650
* [BUG] Qty field shows 0 when editing a variant from admin #833 by @treoden in https://github.com/evershopcommerce/evershop/pull/838
* [BUG] Failure when adding or changing tax rate in admin: “must be str… by @treoden in https://github.com/evershopcommerce/evershop/pull/840
* Fix weight can‘t is 0.1kg #848 by @treoden in https://github.com/evershopcommerce/evershop/pull/850
* Adding the same treatment for description (formatted) field that we u… by @smartperson in https://github.com/evershopcommerce/evershop/pull/867
## New Contributors
* @canmi21 made their first contribution in https://github.com/evershopcommerce/evershop/pull/796
* @dev-sriramp made their first contribution in https://github.com/evershopcommerce/evershop/pull/821
* @btseee made their first contribution in https://github.com/evershopcommerce/evershop/pull/802
* @Belvin-04 made their first contribution in https://github.com/evershopcommerce/evershop/pull/650
* @smartperson made their first contribution in https://github.com/evershopcommerce/evershop/pull/867
* ...
# v2.1.0 (2025-11-12)
## What's Changed
* Theming by @treoden in https://github.com/evershopcommerce/evershop/pull/767
* Fix: Fix admin styling by @treoden in https://github.com/evershopcommerce/evershop/pull/768
* Fix: Fix coupon edit form by @treoden in https://github.com/evershopcommerce/evershop/pull/769
* Feat: Converting js to ts by @treoden in https://github.com/evershopcommerce/evershop/pull/774
* Feat: Theming utility command lines by @treoden in https://github.com/evershopcommerce/evershop/pull/790
* Feat: Add Persian language by @raminr77 in https://github.com/evershopcommerce/evershop/pull/794
* Feat: Support for JWT authentication by @treoden in https://github.com/evershopcommerce/evershop/pull/812
* [BUG] Translation bug #741 by @treoden in https://github.com/evershopcommerce/evershop/pull/829
## New Contributors
* @raminr77 made their first contribution in https://github.com/evershopcommerce/evershop/pull/794
# v2.0.1 (2025-07-11)
## What's Changed
* Fix unable to restart on update configuration
* Fix unable to restart on update cronjob
* Fix unable to restart on update subscriber
* Fix postgres connection export
* Upgrade extensions to 2.0
# v2.0.0 (2025-07-04)
## Breaking changes
This release includes a major breaking change due to the TypeScript migration.
Please refer to the updated documentation for guidance on adapting your setup.
## What's Changed
* Fixing Docker build failure by @gssajith in https://github.com/evershopcommerce/evershop/pull/691
* Added support for Serbian translation by @savaticnemanja in https://github.com/evershopcommerce/evershop/pull/695
* Fix: Move google login configuration options to .env file by @treoden in https://github.com/evershopcommerce/evershop/pull/705
* Chore: Fix the google login document by @treoden in https://github.com/evershopcommerce/evershop/pull/709
* Feat: Add a service for email sending by @treoden in https://github.com/evershopcommerce/evershop/pull/710
* Chore: Upgrade sendgrid extension by @treoden in https://github.com/evershopcommerce/evershop/pull/723
* Typescript migration by @treoden in https://github.com/evershopcommerce/evershop/pull/737
* Fix: Delete node 18 from test action workflow by @treoden in https://github.com/evershopcommerce/evershop/pull/744
* Chore(deps): Bump multer from 2.0.0 to 2.0.1 by @dependabot in https://github.com/evershopcommerce/evershop/pull/743
* Fix: unable to save product attributes by @treoden in https://github.com/evershopcommerce/evershop/pull/745
* Feat: Remove delegate from the middleware's arguments. Use getDelegat… by @treoden in https://github.com/evershopcommerce/evershop/pull/746
## New Contributors
* @gssajith made their first contribution in https://github.com/evershopcommerce/evershop/pull/691
* @savaticnemanja made their first contribution in https://github.com/evershopcommerce/evershop/pull/695
# v1.2.2 (2025-01-03)
## Breaking Changes
From this version, we require Node.js 18.17.0 or higher to run the EverShop application.
## What's Changed
* feat: Improving the order status management
* feat: Allow canceling order from admin panel
* feat: Scheduled job implementation by @treoden
* feat: Option to Change Admin Page Footer from Admin Panel #634 by @treoden
* feat: Support changing admin logo from the configuration file by @treoden
* feat: Use hookable for login and logout functions by @treoden
* feat: Improve cart functions and more test by @treoden
* feat: Address book management by @treoden
* feat: Migrate to Stripe Payment Element #344 by @treoden
* feat: Support authorize only and capture mode for Stripe #675 by @treoden
* feat: Support refund and cancel for Stripe payment integration by @treoden
* feat: Support authorize only and capture mode for Paypal by @treoden
* fix: Wrong percentage discount per item calculation by @treoden
* fix: React warning chanigng input controlled or uncontrolled by @treoden
* fix: Invalid prop Icon supplied to NavigationItem by @treoden
* fix: Fix security vulnerabilities by @treoden
* chore: Upgrade cross-spawn package by @treoden
* fix: Parent category can't be unassigned #666 by @treoden
* fix: Attributes - Count issue #639 by @treoden
* fix: The product registration does not list all child categories #630 by @treoden
* fix: Search input not work in mobile #585 by @treoden
* fix: Can not create price based or weight based shipping method #671 by @treoden
* chore: Remove lodash by @treoden
* chore: Fix proptypes warning by @treoden
* deps: express@4.21.2 by @treoden
* deps: Pins nanoid to ^3.3.8 by @treoden
**Full Changelog**: https://github.com/evershopcommerce/evershop/compare/v1.2.1...v1.2.2
# v1.2.1 (2024-09-19)
## What's Changed
* Fix create new cart issue by @treoden in https://github.com/evershopcommerce/evershop/pull/622
* Show all attribute group when editing a product by @treoden in https://github.com/evershopcommerce/evershop/pull/622
* Update azure storage and s3 extensions for configuration schema verifcation by @treoden in https://github.com/evershopcommerce/evershop/pull/622
* Fix unit test by @treoden in https://github.com/evershopcommerce/evershop/pull/622
* Fix missing widgets on ajax request by @treoden in https://github.com/evershopcommerce/evershop/pull/622
* [BUG] New Editor Overlap #617 by @treoden in https://github.com/evershopcommerce/evershop/pull/622
* Fix inconsistent page headings by @GabrielGavrilov in https://github.com/evershopcommerce/evershop/pull/616
* Hungarian translation by @hudejo in https://github.com/evershopcommerce/evershop/pull/583
* Fix wrong query in azure app service by @treoden in https://github.com/evershopcommerce/evershop/pull/626
* Remove debug message by @treoden in https://github.com/evershopcommerce/evershop/pull/627
* Fix prop type validation warning by @treoden in https://github.com/evershopcommerce/evershop/pull/627
* Fix prop type validation warning by @treoden in https://github.com/evershopcommerce/evershop/pull/627
* Version 1.2.1 by @treoden in https://github.com/evershopcommerce/evershop/pull/635
## New Contributors
* @GabrielGavrilov made their first contribution in https://github.com/evershopcommerce/evershop/pull/616
* @hudejo made their first contribution in https://github.com/evershopcommerce/evershop/pull/583
**Full Changelog**: https://github.com/evershopcommerce/evershop/compare/v1.2.0...v1.2.1
# v1.2.0 (2024-09-03)
## Breaking Changes
### `FeaturedProducts.jsx` component has been removed
The FeaturedProducts.jsx component has been removed from the store frontend. From now on, you can use the Widgets feature to create and display featured products on your store.
### `FeaturedCategories.jsx` component has been removed
The FeaturedCategories.jsx component has been removed from the store frontend. From now on, you can use the Widgets feature to create and display featured categories on your store.
### `MainBanner.jsx` component has been removed
The MainBanner.jsx component has been removed from the store frontend. From now on, you can use the Widgets feature to create and display banners on your store.
### `Menu.jsx` component has been removed
The Menu.jsx component has been removed from the store frontend. From now on, you can use the Widgets feature to create and display menus on your store.
### TailwindCSS Configuration
We have reset the tailwindcss configuration to use the default options. This change ensures that the default tailwindcss configuration is used for the store frontend. This change may affect the styling of your store if you have customized the tailwindcss configuration. We are working to update the `evetheme` to make it compatible with the new tailwindcss configuration.
### `Ckeditor` has been replaced with `EditorJS`
We have replaced `Ckeditor` with `EditorJS` in the Widgets feature to provide a more user-friendly and intuitive experience for creating and editing content. Your content will be converted to a raw html block and this will not affect the content you have created with `Ckeditor`.
### Configuration Schema
We have implemented a configuration schema for validation. This change ensures that the configuration settings are validated before starting the application. If you have customized the configuration settings, you may need to update them to match the new schema.
### `pricing.tax.display_catalog_price_including_tax` has been removed
### `pricing.tax.display_checkout_price_including_tax` has been removed
From now on, you can just use the `pricing.tax.price_including_tax` setting if your store needs tax-inclusive pricing.
## New Features
### Introducing Our New Widgets Feature
The Widgets feature allows you to create a unique, personalized experience for your customers by giving you the ability to create widgets directly from the backend to the frontend. Whether you want to highlight promotions, display featured products, or craft a stunning visual layout, you have complete control over how your content is presented.
Here’s what you can do with Widgets:
- Customize Appearance: Adjust settings and styles to fit your brand’s identity.
- Dynamic Content: Add and arrange various types of content to keep your website fresh and engaging.
### EditorJS Integration
We have integrated EditorJS into the Widgets feature to provide a more user-friendly and intuitive experience for creating and editing content. EditorJS is a block-styled editor that allows you to create rich content with ease. With EditorJS, you can add text, images, videos, and more to your widgets, making it easy to create visually appealing and engaging content for your customers.
### Tax inclusive pricing
You can now display prices with tax included on your store. This feature is especially useful for stores that sell to customers in regions where tax-inclusive pricing is required by law.
### Shipping notes
Customers can now add notes to their orders during checkout. This feature is useful for customers who want to provide additional information about their order, such as delivery instructions or special requests.
### Updating item quantity in the cart
Customers can now update the quantity of items in their cart directly from the cart page. This feature makes it easier for customers to adjust their order before checkout.
### Support static content display only for category
You can now display static content only for specific categories on your store. This feature is useful for stores that want to provide additional information about a category, such as a description or special offers.
### Using default tailwindcss configuration
We have reset the tailwindcss configuration to use the default options. This change ensures that the default tailwindcss configuration is used for the store frontend.
## What's Changed
* More translation fields for extension product reviews by @ErdemGKSL in https://github.com/evershopcommerce/evershop/pull/537
* Resend extension v1.1.0 by @treoden in https://github.com/evershopcommerce/evershop/pull/543
* Google extension v1.1.0 by @treoden in https://github.com/evershopcommerce/evershop/pull/543
* Product review extension v1.1.0 by @treoden in https://github.com/evershopcommerce/evershop/pull/543
* Adding age gate extension source code for tutorial by @treoden in https://github.com/evershopcommerce/evershop/pull/545
* Display website running message by @treoden in https://github.com/evershopcommerce/evershop/pull/560
* Azure extension v1.1.0 by @treoden in https://github.com/evershopcommerce/evershop/pull/560
* Reset tailwind configuration. Use the default options #322 by @treoden in https://github.com/evershopcommerce/evershop/pull/566
* Variant options before add to cart button by @treoden in https://github.com/evershopcommerce/evershop/pull/566
* Revert overflow-y on modal by @treoden in https://github.com/evershopcommerce/evershop/pull/566
* Implement configuration schema for validation by @treoden in https://github.com/evershopcommerce/evershop/pull/586
* S3 extension ver 1.1.0 by @treoden in https://github.com/evershopcommerce/evershop/pull/586
* Support included tax pricing and adding more tests by @treoden in https://github.com/evershopcommerce/evershop/pull/586
* Widget feature #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/598
* Migrate Ckeditor to EditorJS #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/598
* The text widget #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/598
* Allow updating quantity of item in cart #600 by @treoden in https://github.com/evershopcommerce/evershop/pull/601
* Fix showing wrong qty after updating qty to 0 by @treoden in https://github.com/evershopcommerce/evershop/pull/602
* Fix issue creating a new widget from admin #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/602
* Fix z-index issue creating a new widget from admin #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/602
* Fix widget default settings not applied #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/602
* Use svg for admin logo by @treoden in https://github.com/evershopcommerce/evershop/pull/603
* Add more area to the store setting page by @treoden in https://github.com/evershopcommerce/evershop/pull/603
* Allow changing the validity period of sid #593 by @treoden in https://github.com/evershopcommerce/evershop/pull/603
* Add widget configuration validation schema #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/603
* Remove unused button when creating a widget #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/603
* Remove breadcrumb on checkout page by @treoden in https://github.com/evershopcommerce/evershop/pull/606
* Remove breadcrumb on checkout success page by @treoden in https://github.com/evershopcommerce/evershop/pull/606
* Support shipping note during checkout #604 by @treoden in https://github.com/evershopcommerce/evershop/pull/606
* Support static content display only for category by @treoden in https://github.com/evershopcommerce/evershop/pull/606
* Improve the editor styling by @treoden in https://github.com/evershopcommerce/evershop/pull/606
* A simple menu widget #581 by @treoden in https://github.com/evershopcommerce/evershop/pull/606
* Fix editor rows drag and drop issue by @treoden in https://github.com/evershopcommerce/evershop/pull/607
* Fix editor rows drag and drop issue by @treoden in https://github.com/evershopcommerce/evershop/pull/607
* Improve the logo styling by @treoden in https://github.com/evershopcommerce/evershop/pull/607
* Fix transparent background of the minicart toast by @treoden in https://github.com/evershopcommerce/evershop/pull/608
* Fix status issue when loading cms page by @treoden in https://github.com/evershopcommerce/evershop/pull/609
* Fix can not submit note error by @treoden in https://github.com/evershopcommerce/evershop/pull/610
* Fix image size configuration by @treoden in https://github.com/evershopcommerce/evershop/pull/610
* Remove Featured products, Featured categories and main banner components. From now we use widgets by @treoden in https://github.com/evershopcommerce/evershop/pull/611
* Fix product count in the collection products widget by @treoden in https://github.com/evershopcommerce/evershop/pull/611
* Fix error can not delete widget from the grid page by @treoden in https://github.com/evershopcommerce/evershop/pull/611
* Keep widget status field enabled by default by @treoden in https://github.com/evershopcommerce/evershop/pull/611
* Fix can not drag and drop the editor rows by @treoden in https://github.com/evershopcommerce/evershop/pull/611
* Create some default widgets upon installation by @treoden in https://github.com/evershopcommerce/evershop/pull/612
## Bug fixes
* Fix dockerfile copy by @treoden in https://github.com/evershopcommerce/evershop/pull/538
* Fix category tree #536 by @treoden in https://github.com/evershopcommerce/evershop/pull/538
* Fix pagination and limit issues by @treoden in https://github.com/evershopcommerce/evershop/pull/538
* Fix missing default pagination filter by @treoden in https://github.com/evershopcommerce/evershop/pull/543
* Fix no scroll issue category tree #536 by @treoden in https://github.com/evershopcommerce/evershop/pull/560
* Fix Shipping Method Popup not scrollable #540 by @treoden in https://github.com/evershopcommerce/evershop/pull/560
* Fix loading extensions multiple time when no extension is actived by @treoden in https://github.com/evershopcommerce/evershop/pull/565
* Fix invalid props type collection ID and category ID by @treoden in https://github.com/evershopcommerce/evershop/pull/566
* Fix wrong title and search issue in category selector modal by @treoden in https://github.com/evershopcommerce/evershop/pull/566
* Fix wrong attribute ordering by @treoden in https://github.com/evershopcommerce/evershop/pull/566
* Issue #547: Category scrolling in mobile view by @adexh in https://github.com/evershopcommerce/evershop/pull/578
* Fix [BUG] query.and is not a function #573 by @treoden in https://github.com/evershopcommerce/evershop/pull/586
* Fix error when accessing the folder path by @treoden in https://github.com/evershopcommerce/evershop/pull/586
* Fixing coupon condition in unit testing data by @treoden in https://github.com/evershopcommerce/evershop/pull/586
* Fix column not found #595 by @treoden in https://github.com/evershopcommerce/evershop/pull/601
* Fix toast message background by @treoden in https://github.com/evershopcommerce/evershop/pull/603
* Fix client id placeholder in paypal configuration form by @treoden in https://github.com/evershopcommerce/evershop/pull/610
* Fix shipping fee tax amount calculation by @treoden in https://github.com/evershopcommerce/evershop/pull/610
## New Contributors
* @ErdemGKSL made their first contribution in https://github.com/evershopcommerce/evershop/pull/537
* @Aryansingh0103 made their first contribution in https://github.com/evershopcommerce/evershop/pull/555
* @adexh made their first contribution in https://github.com/evershopcommerce/evershop/pull/578
**Full Changelog**: https://github.com/evershopcommerce/evershop/compare/v1.1.0...v1.2.0
# v1.1.0 (2024-05-09)
## What's Changed
* Added norwegian bokmål to translation by @fyksen in https://github.com/evershopcommerce/evershop/pull/443
* [DOCS] Fix azure_file_storage README.md step 4 by @malixswoop in https://github.com/evershopcommerce/evershop/pull/457
* Translation: Add Spanish Translation by @emmanuelh-dev in https://github.com/evershopcommerce/evershop/pull/464
* Translation: Add Brazillian Portuguese Translation by @luizfscorreia in https://github.com/evershopcommerce/evershop/pull/461
* Add translation support for 'Price' filter item title by @thiagorodriguesdutra in https://github.com/evershopcommerce/evershop/pull/467
* Create FUNDING.yml by @treoden in https://github.com/evershopcommerce/evershop/pull/477
* Add Translation RU by @Vovanni in https://github.com/evershopcommerce/evershop/pull/478
* Adding Resend extension for EverShop by @treoden in https://github.com/evershopcommerce/evershop/pull/480
* Add Translation FR by @Seb7o in https://github.com/evershopcommerce/evershop/pull/476
* Move SendGrid API Key to .env by @treoden in https://github.com/evershopcommerce/evershop/pull/487
* Implement winston logger by @treoden in https://github.com/evershopcommerce/evershop/pull/491
* Allow deleting shipping zone by @treoden in https://github.com/evershopcommerce/evershop/pull/491
* Greek Translation pack by @GiorgosIlia in https://github.com/evershopcommerce/evershop/pull/498
* Improve the collection filtering by @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Adding more font size to admin tailwind config by @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Support price and weight based shipping cost @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Enable webpack source map @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Show error message when adding wrong shipping method @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Block deleting variant group attribute by @treoden in https://github.com/evershopcommerce/evershop/pull/512
* Add loading button on login forms by @treoden in https://github.com/evershopcommerce/evershop/pull/512
* Add Create cart API by @treoden in https://github.com/evershopcommerce/evershop/pull/512
* Add Adding title to catalog search page by @treoden in https://github.com/evershopcommerce/evershop/pull/512
* Add all variant to same collection automatically by @treoden in https://github.com/evershopcommerce/evershop/pull/516
* Improve variant selection on product detail page by @treoden in https://github.com/evershopcommerce/evershop/pull/516
* Add status and type filter to product grid by @treoden in https://github.com/evershopcommerce/evershop/pull/518
* Add payment status and shipment status filter to order grid by @treoden in https://github.com/evershopcommerce/evershop/pull/518
* Nepali language added by @uttamraz in https://github.com/evershopcommerce/evershop/pull/520
* Add status filter to customer grid by @treoden in https://github.com/evershopcommerce/evershop/pull/522
* Add status and free ship filter to coupon grid by @treoden in https://github.com/evershopcommerce/evershop/pull/522
* Allow to rename or delete shipping methods #503 by @treoden in https://github.com/evershopcommerce/evershop/pull/522
* Using placeholder icon when thumbnail is missing by @treoden in https://github.com/evershopcommerce/evershop/pull/523
* Show message when Stripe API returns error by @treoden in https://github.com/evershopcommerce/evershop/pull/523
* Display chekout order summary on mobile view by @treoden in https://github.com/evershopcommerce/evershop/pull/523
## Bug fixes
* Fix blank page error when completing order by @treoden in https://github.com/evershopcommerce/evershop/pull/524
* Fix sql query from the subscriber by @treoden in https://github.com/evershopcommerce/evershop/pull/525
* Fix returning value after delete record by @treoden in https://github.com/evershopcommerce/evershop/pull/525
* Fix category filters missing operation by @treoden in https://github.com/evershopcommerce/evershop/pull/517
* Fix displaying product thumbnail when image is missing by @treoden in https://github.com/evershopcommerce/evershop/pull/516
* Fix can not update variant attribute from admin panel by @treoden in https://github.com/evershopcommerce/evershop/pull/512
* Fix missing attribute option when creating new variant by @treoden in https://github.com/evershopcommerce/evershop/pull/516
* Fix variant list showing wrong attributes by @treoden in https://github.com/evershopcommerce/evershop/pull/522
* Fix logging icon alignment by @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Fix adding new component does not trigger re-build @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Fix too many logger instance issue @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Fix can not update variant options @treoden in https://github.com/evershopcommerce/evershop/pull/510
* Fix weight unit issue by @treoden in https://github.com/evershopcommerce/evershop/pull/491
* Fix Shipping setting returns error #479 by @treoden in https://github.com/evershopcommerce/evershop/pull/491
* Fix #445: Range Slider Invisible by @amal-qb in https://github.com/evershopcommerce/evershop/pull/470
* Fix #325: Add to cart Popups Closing by @amal-qb in https://github.com/evershopcommerce/evershop/pull/472
* Fix filtering combobox localizations by @mircea32000 in https://github.com/evershopcommerce/evershop/pull/475
* Fix product review issues by @treoden in https://github.com/evershopcommerce/evershop/pull/451
## New Contributors
* @fyksen made their first contribution in https://github.com/evershopcommerce/evershop/pull/443
* @malixswoop made their first contribution in https://github.com/evershopcommerce/evershop/pull/457
* @emmanuelh-dev made their first contribution in https://github.com/evershopcommerce/evershop/pull/464
* @luizfscorreia made their first contribution in https://github.com/evershopcommerce/evershop/pull/461
* @thiagorodriguesdutra made their first contribution in https://github.com/evershopcommerce/evershop/pull/467
* @amal-qb made their first contribution in https://github.com/evershopcommerce/evershop/pull/470
* @mircea32000 made their first contribution in https://github.com/evershopcommerce/evershop/pull/475
* @Vovanni made their first contribution in https://github.com/evershopcommerce/evershop/pull/478
* @Seb7o made their first contribution in https://github.com/evershopcommerce/evershop/pull/476
* @GiorgosIlia made their first contribution in https://github.com/evershopcommerce/evershop/pull/498
* @uttamraz made their first contribution in https://github.com/evershopcommerce/evershop/pull/520
Thank you all for your contributions!
## /configExample.text
```text path="/configExample.text"
{
"shop": {
"language": "en",
"timezone": "America/New_York",
"currency": "USD",
"weightUnit": "kg",
"homeUrl": "http://localhost:3000"
},
"system": {
"file_storage": "local",
"admin_collection_size": 20,
"upload_allowed_mime_types": [
"image/jpeg",
"image/png",
"image/gif",
"image/webp",
"image/avif"
],
"theme": "mytheme",
"extensions": [
{
"name": "my-custom-extension",
"resolve": "extensions/my-custom-extension",
"enabled": true
}
],
"session": {
"maxAge": 86400000,
"resave": false,
"saveUninitialized": false,
"cookieSecret": "keyboard cat",
"cookieName": "sid",
"adminCookieName": "admin-sid"
},
"notification_emails": {
"from": "noreply@example.com",
"order_confirmation": {
"enabled": true,
"templatePath": null
},
"customer_welcome": {
"enabled": true,
"templatePath": null
},
"reset_password": {
"enabled": true,
"templatePath": null
}
}
},
catalog: {
collectionPageSize: 3,
product: { image: { width: 1200, height: 1200 } },
showOutOfStockProduct: false
},
"checkout": {
"showShippingNote": true
},
"pricing": {
"rounding": "round",
"precision": 2,
"tax": {
"rounding": "round",
"precision": 2,
"round_level": "total",
"price_including_tax": true
}
},
"themeConfig": {
"logo": {
"alt": "My Shop Logo",
"src": "/logo.png",
"width": 200,
"height": 50
},
"headTags": {
"links": [
{ "rel": "icon", "href": "/favicon.ico", "type": "image/x-icon" }
],
"metas": [
{ "name": "viewport", "content": "width=device-width, initial-scale=1" }
],
"scripts": [
{ "src": "/custom.js", "async": true }
],
"bases": [
{ "href": "/" }
]
},
"copyRight": "© 2025 My Shop. All Rights Reserved."
},
"oms": {
"order": {
"paymentStatus": {
"pending": {
"name": "Pending",
"badge": "default",
"isDefault": true
},
"paid": {
"name": "Paid",
"badge": "success",
},
"failed": {
"name": "Failed",
"badge": "critical",
}
},
"shipmentStatus": {
"pending": {
"name": "Pending",
"badge": "default",
"isDefault": true
},
"shipped": {
"name": "Shipped",
"badge": "attention",
},
"delivered": {
"name": "Delivered",
"badge": "success",
}
},
"status": {
"new": {
"name": "New",
"badge": "default",
"isDefault": true,
"next": ["processing", "canceled"]
},
"processing": {
"name": "Processing",
"badge": "default",
"next": ["completed", "canceled"]
},
"completed": {
"name": "Completed",
"badge": "success",
"next": ["closed"]
},
"canceled": {
"name": "Canceled",
"badge": "critical",
"next": []
},
"closed": {
"name": "Closed",
"badge": "default",
"next": []
}
},
"psoMapping": {
"pending:pending": "new",
"pending:*": "processing",
"paid:*": "processing",
"paid:delivered": "completed",
"canceled:*": "processing",
"canceled:canceled": "canceled"
},
"reStockAfterCancellation": true
},
"carriers": {
"default": {
"name": "Default"
},
"fedex": {
"name": "FedEx",
"trackingUrl": "https://www.fedex.com/fedextrack/?trknbr={trackingNumber}"
},
"usps": {
"name": "USPS",
"trackingUrl": "https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1={trackingNumber}"
},
"ups": {
"name": "UPS",
"trackingUrl": "https://www.ups.com/track?loc=en_US&tracknum={trackingNumber}"
}
}
}
}
```
## /docker-compose.yml
```yml path="/docker-compose.yml"
version: '3.8'
services:
app:
image: evershop/evershop:latest
restart: always
environment:
DB_HOST: database
DB_PORT: 5432
DB_PASSWORD: postgres
DB_USER: postgres
DB_NAME: postgres
networks:
- myevershop
depends_on:
- database
ports:
- 3000:3000
#The postgres database:
database:
image: postgres:16
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
networks:
- myevershop
networks:
myevershop:
name: MyEverShop
driver: bridge
volumes:
postgres-data:
```
## /docker/Dockerfile
``` path="/docker/Dockerfile"
# The OFFICIAL evershop/evershop image.
#
# This is a CONSUMER project, not a build of this monorepo: it installs the
# published @evershop/evershop package from npm, so the image contains exactly
# what a merchant gets from `npm install @evershop/evershop`. That is why the
# release pipeline builds this only AFTER the npm publish step succeeds.
#
# (The Dockerfile at the repo root is a different thing — it builds the
# monorepo from source for development, and is not published.)
#
# docker build -f docker/Dockerfile --build-arg EVERSHOP_VERSION=2.2.1 .
#
FROM node:20-alpine
WORKDIR /app
ARG EVERSHOP_VERSION
RUN test -n "$EVERSHOP_VERSION" || \
(echo "ERROR: --build-arg EVERSHOP_VERSION=<version> is required" && exit 1)
COPY docker/package.json ./package.json
# --save-exact pins the image to the version being released. A caret range
# would let a rebuild of the "2.2.1" image silently pull a newer package.
RUN npm install "@evershop/evershop@${EVERSHOP_VERSION}" --save-exact --no-audit --no-fund \
&& npm run build
# evershop start listens on $PORT, default 3000.
EXPOSE 3000
CMD ["npm", "run", "start"]
```
## /docker/package.json
```json path="/docker/package.json"
{
"name": "evershop-docker",
"version": "0.0.0",
"private": true,
"description": "Runtime project for the official evershop/evershop image. The @evershop/evershop dependency is added at build time, pinned to the exact released version.",
"type": "module",
"license": "GPL-3.0",
"scripts": {
"setup": "evershop install",
"seed": "evershop seed",
"start": "evershop start",
"start:debug": "evershop start --debug",
"build": "evershop build",
"user:create": "evershop user:create",
"user:changePassword": "evershop user:changePassword",
"theme:active": "evershop theme:active",
"theme:create": "evershop theme:create"
}
}
```
## /eslint.config.js
```js path="/eslint.config.js"
// eslint.config.js
import eslintPluginTypescript from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import pluginImport from 'eslint-plugin-import';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import pluginReact from 'eslint-plugin-react';
export default [
{
ignores: [
"/node_modules/",
"**/*test.js",
"**/tests/**",
"**/create-evershop-app/**",
"**/.evershop/**",
"/.vscode/**",
"/.git/**",
"/.idea/**",
"**/extensions/**",
"**/public/**",
"**/themes/**",
"**/media/**",
"**/dist/**",
"**/packages/*/dist/**",
"**/packages/evershop/dist/**",
"**/packages/postgres-query-builder/dist/**",
"**/packages/product_review/**",
"**/packages/resend/**"
]},
pluginReact.configs.flat.recommended,
pluginReact.configs.flat['jsx-runtime'],
jsxA11y.flatConfigs.recommended,
{
files: ["**/*.ts", "**/*.tsx", "**/*.d.ts"],
plugins: {
"@typescript-eslint": eslintPluginTypescript
},
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
}
}
},
{
plugins: {
"import": pluginImport
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions : {
ecmaFeatures: {
jsx: true
}
}
},
rules: {
semi: "off",
"prefer-const": "error",
"import/no-dynamic-require": 0,
"no-else-return": "off",
"import/prefer-default-export": 0,
"jsx-a11y/anchor-is-valid": 0,
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"camelcase": "off",
"no-multi-assign": "off",
"no-template-curly-in-string": "off",
"react/no-array-index-key": "off",
"react/no-unstable-nested-components": "off",
"no-continue": "off",
"no-await-in-loop": "off",
"no-use-before-define" : "off",
"global-require": "off",
"import/extensions": "off",
"no-shadow": "off",
"no-lonely-if": "warn",
"no-console": "error",
"no-useless-return": "off",
"react/display-name": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/role-supports-aria-props": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
// Add import sorting rules
"import/order": ["warn", {
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}]
},
settings: {
react: {
version: "detect"
}
}
}
]
```
## /jest.config.js
```js path="/jest.config.js"
export default {
testEnvironment: "node",
moduleNameMapper: {
'^@evershop/postgres-query-builder{{contextString}}#39;: '<rootDir>/packages/postgres-query-builder/dist/index.js',
'^@evershop/postgres-query-builder/(.*){{contextString}}#39;: '<rootDir>/packages/postgres-query-builder/dist/$1',
'^@components/(.*)\\.jsx{{contextString}}#39;: '<rootDir>/packages/evershop/dist/components/$1.js',
'^@components/(.*){{contextString}}#39;: '<rootDir>/packages/evershop/dist/components/$1',
'\\.(css|scss){{contextString}}#39;: '<rootDir>/tests/styleStub.cjs',
'^(\\.{1,2}/.*)\\.jsx?{{contextString}}#39;: '$1'
},
transformIgnorePatterns: [
"/node_modules/(?!(@evershop)/)"
],
testMatch: ["**/dist/**/tests/**/unit/**/*.test.[jt]s"],
modulePathIgnorePatterns: ["<rootDir>/packages/evershop/src/"]
};
```
## /package.json
```json path="/package.json"
{
"name": "evershop",
"version": "2.3.0",
"type": "module",
"description": "A shopping cart platform with Express, React and Postgres",
"workspaces": [
"packages/*",
"extensions/*"
],
"scripts": {
"dev": "node ./packages/evershop/dist/bin/dev/index.js",
"start": "node ./packages/evershop/dist/bin/start/index.js",
"build": "node ./packages/evershop/dist/bin/build/index.js",
"setup": "evershop install",
"user:create": "evershop user:create",
"seed": "evershop seed",
"theme:active": "evershop theme:active",
"theme:twizz": "evershop theme:twizz",
"theme:create": "evershop theme:create",
"theme:status": "evershop theme:status",
"theme:uninstall": "evershop theme:uninstall",
"theme:export-content": "evershop theme:export-content",
"compile": "rimraf ./packages/evershop/dist && cd ./packages/evershop && swc ./src/ -d dist/ --config-file .swcrc --copy-files --strip-leading-paths",
"compile:dev": "cd ./packages/evershop && swc ./src/ -d dist/ --config-file .swcrc --copy-files --strip-leading-paths",
"compile:db": "rimraf ./packages/postgres-query-builder/dist && cd ./packages/postgres-query-builder && tsc",
"compile:tsc": "rimraf ./packages/evershop/dist && cd ./packages/evershop && tsc && copyfiles -u 1 -a -e \"src/**/*.{ts,tsx,js,jsx}\" \"src/**/*\" dist && chmod +x ./dist/bin/evershop.js",
"start:debug": "node ./packages/evershop/dist/bin/start/index.js --debug",
"test": "ALLOW_CONFIG_MUTATIONS=true NODE_OPTIONS=--experimental-vm-modules node_modules/jest/bin/jest.js",
"test:e2e": "npm test --prefix tests/e2e",
"test:e2e:headed": "npm run test:headed --prefix tests/e2e",
"test:e2e:report": "npm run test:report --prefix tests/e2e",
"lint": "eslint --fix --ext .js,.jsx,.ts,.tsx ./packages",
"release:preflight": "node scripts/release-preflight.mjs",
"generate:address-formats": "node scripts/address-formats/generate.mjs",
"prepare": "husky install"
},
"author": "The Nguyen (https://evershop.io)",
"license": "GNU GENERAL PUBLIC LICENSE 3.0",
"devDependencies": {
"@parcel/watcher": "^2.5.1",
"@playwright/test": "^1.59.1",
"@swc/cli": "^0.7.7",
"@swc/core": "^1.11.29",
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.10",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"copyfiles": "^2.4.1",
"eslint": "^9.24.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"execa": "^9.6.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jsdom": "^28.1.0",
"prettier": "2.8.4",
"reflect-metadata": "^0.1.13",
"rimraf": "^6.0.1",
"swc-minify-webpack-plugin": "^2.1.3",
"tailwindcss": "^4.1.18",
"typescript": "^5.8.3",
"webpack-bundle-analyzer": "^4.10.2"
},
"dependencies": {
"@sendgrid/mail": "^8.1.6",
"@types/react-slick": "^0.23.13",
"@types/uuid": "^10.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"uuid": "^13.0.0"
},
"overrides": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
}
```
## /packages/create-evershop-app/README.md
# create-evershop-app
This package includes the global command for [Create EverShop App](https://evershop.io/).<br> Please refer to its documentation:
- [Getting Started](https://evershop.io/docs/development/getting-started/introduction) – How to create a new app.
- [Development Guide](https://evershop.io/docs/development/) – How to develop an ecommerce web app with EverShop.
## /packages/create-evershop-app/createEverShopApp.js
```js path="/packages/create-evershop-app/createEverShopApp.js"
const https = require('https');
const chalk = require('chalk');
const commander = require('commander');
const dns = require('dns');
const { execSync } = require('child_process');
const fs = require('fs-extra');
const os = require('os');
const path = require('path');
const semver = require('semver');
const spawn = require('cross-spawn');
const url = require('url');
const validateProjectName = require('validate-npm-package-name');
const { mkdir } = require('fs/promises');
const packageJson = require('./package.json');
function isUsingYarn() {
return (process.env.npm_config_user_agent || '').indexOf('yarn') === 0;
}
let projectName;
function init() {
const program = new commander.Command(packageJson.name)
.version(packageJson.version)
.arguments('[project-directory]')
.usage(`${chalk.green('<project-directory>')} [options]`)
.action((name) => {
projectName = name;
})
.option('--verbose', 'Print additional logs')
.option('--info', 'Print environment debug info')
.on('--help', () => {
console.log(
` Only ${chalk.green('<project-directory>')} is required.`
);
console.log();
console.log(
` If you have any problems, do not hesitate to file an issue:`
);
console.log(
` ${chalk.cyan(
'https://github.com/evershop/create-evershop-app/issues/new'
)}`
);
console.log();
})
.parse(process.argv);
const options = program.opts();
if (typeof projectName === 'undefined') {
console.error('Please specify the project directory:');
console.log(
` ${chalk.cyan(program.name())} ${chalk.green('<project-directory>')}`
);
console.log();
console.log('For example:');
console.log(
` ${chalk.cyan(program.name())} ${chalk.green('my-evershop-app')}`
);
console.log();
console.log(
`Run ${chalk.cyan(`${program.name()} --help`)} to see all options.`
);
process.exit(1);
}
// We first check the registry directly via the API, and if that fails, we try
// the slower `npm view [package] version` command.
//
// This is important for users in environments where direct access to npm is
// blocked by a firewall, and packages are provided exclusively via a private
// registry.
checkForLatestVersion()
.catch(() => {
try {
return execSync('npm view create-evershop-app version')
.toString()
.trim();
} catch (e) {
return null;
}
})
.then((latest) => {
if (latest && semver.lt(packageJson.version, latest)) {
console.log();
console.error(
chalk.yellow(
`You are running \`create-evershop-app\` ${packageJson.version}, which is behind the latest release (${latest}).\n\n` +
'We recommend always using the latest version of create-evershop-app if possible.'
)
);
console.log();
console.log(
'The latest instructions for creating a new app can be found here:\n' +
'https://evershop.io/docs/development/getting-started/installation-guide/'
);
console.log();
} else {
const useYarn = isUsingYarn();
createApp(projectName, options.verbose, useYarn);
}
});
}
function createApp(name, verbose, useYarn) {
const root = path.resolve(name);
const appName = path.basename(root);
checkAppName(appName);
fs.ensureDirSync(name);
if (!isSafeToCreateProjectIn(root, name)) {
process.exit(1);
}
console.log();
console.log(`Creating a new EverShop app in ${chalk.green(root)}.`);
console.log();
const packageJson = {
name: appName,
version: '0.1.0',
type: 'module',
private: true,
scripts: {
setup: 'evershop install',
start: 'evershop start',
build: 'evershop build',
dev: 'evershop dev'
}
};
fs.writeFileSync(
path.join(root, 'package.json'),
JSON.stringify(packageJson, null, 2) + os.EOL
);
const originalDirectory = process.cwd();
process.chdir(root);
if (!useYarn && !checkThatNpmCanReadCwd()) {
process.exit(1);
}
if (!useYarn) {
const npmInfo = checkNpmVersion();
if (!npmInfo.hasMinNpm) {
if (npmInfo.npmVersion) {
console.log(
chalk.yellow(
`Please update to npm 7 or higher for a workspaces feature.\n`
)
);
}
}
}
run(root, appName, verbose, originalDirectory, useYarn);
}
function install(root, useYarn, dependencies, verbose, isOnline) {
return new Promise((resolve, reject) => {
let command;
let args;
if (useYarn) {
command = 'yarnpkg';
args = ['add', '--exact'];
if (!isOnline) {
args.push('--offline');
}
[].push.apply(args, dependencies);
// Explicitly set cwd() to work around issues like
// https://github.com/facebook/create-react-app/issues/3326.
// Unfortunately we can only do this for Yarn because npm support for
// equivalent --prefix flag doesn't help with this issue.
// This is why for npm, we run checkThatNpmCanReadCwd() early instead.
args.push('--cwd');
args.push(root);
if (!isOnline) {
console.log(chalk.yellow('You appear to be offline.'));
console.log(chalk.yellow('Falling back to the local Yarn cache.'));
console.log();
}
} else {
command = 'npm';
args = [
'install',
'--no-audit', // https://github.com/facebook/create-evershop-app/issues/11174
'--save',
'--save-exact',
'--loglevel',
'error'
].concat(dependencies);
}
if (verbose) {
args.push('--verbose');
}
const child = spawn(command, args, { stdio: 'inherit' });
child.on('close', (code) => {
if (code !== 0) {
reject({
command: `${command} ${args.join(' ')}`
});
return;
}
resolve();
});
});
}
function installDevDependencies(
root,
useYarn,
devDependencies,
verbose,
isOnline
) {
console.log(`Installing some development dependencies...`);
return new Promise((resolve, reject) => {
let command;
let args;
if (useYarn) {
command = 'yarnpkg';
args = ['add', '--exact'];
if (!isOnline) {
args.push('--offline');
}
[].push.apply(args, devDependencies);
args.push('--dev');
// Explicitly set cwd() to work around issues like
// https://github.com/facebook/create-react-app/issues/3326.
// Unfortunately we can only do this for Yarn because npm support for
// equivalent --prefix flag doesn't help with this issue.
// This is why for npm, we run checkThatNpmCanReadCwd() early instead.
args.push('--cwd');
args.push(root);
if (!isOnline) {
console.log(chalk.yellow('You appear to be offline.'));
console.log(chalk.yellow('Falling back to the local Yarn cache.'));
console.log();
}
} else {
command = 'npm';
args = [
'install',
'--no-audit', // https://github.com/facebook/create-evershop-app/issues/11174
'--save',
'--save-exact',
'--loglevel',
'error'
].concat(devDependencies);
args.push('--save-dev');
}
if (verbose) {
args.push('--verbose');
}
const child = spawn(command, args, { stdio: 'inherit' });
child.on('close', (code) => {
if (code !== 0) {
reject({
command: `${command} ${args.join(' ')}`
});
return;
}
resolve();
});
});
}
function run(root, appName, verbose, originalDirectory, useYarn) {
console.log(`Installing ${chalk.cyan('@evershop/evershop')}`);
checkIfOnline(useYarn)
.then((isOnline) => ({
isOnline
}))
.then(({ isOnline }) => {
const allDependencies = ['@evershop/evershop'];
return install(root, useYarn, allDependencies, verbose, isOnline).then(
async () => {
await installDevDependencies(
root,
useYarn,
[
'@parcel/watcher',
'@types/config',
'@types/express',
'@types/node',
'@types/pg',
'@types/react',
'execa',
'typescript'
],
verbose,
isOnline
);
await createConfigFile(root);
await createSampleExtension(root);
await createSampleTheme(root);
await setUpEverShop(root);
}
);
})
.catch((reason) => {
console.log(reason);
console.log();
console.log('Aborting installation.');
if (reason.command) {
console.log(` ${chalk.cyan(reason.command)} has failed.`);
} else {
console.log(chalk.red('Unexpected error. Please report it as a bug:'));
console.log(reason);
}
console.log();
// On 'exit' we will delete these files from target directory.
const knownGeneratedFiles = [
'package.json',
'node_modules',
'package-lock.json'
];
const currentFiles = fs.readdirSync(path.join(root));
currentFiles.forEach((file) => {
knownGeneratedFiles.forEach((fileToMatch) => {
// This removes all knownGeneratedFiles.
if (file === fileToMatch) {
console.log(`Deleting generated file... ${chalk.cyan(file)}`);
fs.removeSync(path.join(root, file));
}
});
});
const remainingFiles = fs.readdirSync(path.join(root));
if (!remainingFiles.length) {
// Delete target folder if empty
console.log(
`Deleting ${chalk.cyan(`${appName}/`)} from ${chalk.cyan(
path.resolve(root, '..')
)}`
);
process.chdir(path.resolve(root, '..'));
fs.removeSync(path.join(root));
}
console.log('Done.');
process.exit(1);
});
}
function checkNpmVersion() {
let hasMinNpm = true;
let npmVersion = null;
try {
npmVersion = execSync('npm --version').toString().trim();
hasMinNpm = semver.gte(npmVersion, '7.0.0');
} catch (err) {
// ignore
}
return {
hasMinNpm,
npmVersion
};
}
function checkAppName(appName) {
const validationResult = validateProjectName(appName);
if (appName === 'dist') {
console.error(
chalk.red(
`Cannot create a project named ${chalk.green(
`"${appName}"`
)} because it is reserved for the distribution files.\n` +
`Please choose a different project name.`
)
);
process.exit(1);
}
if (!validationResult.validForNewPackages) {
console.error(
chalk.red(
`Cannot create a project named ${chalk.green(
`"${appName}"`
)} because of npm naming restrictions:\n`
)
);
[
...(validationResult.errors || []),
...(validationResult.warnings || [])
].forEach((error) => {
console.error(chalk.red(` * ${error}`));
});
console.error(chalk.red('\nPlease choose a different project name.'));
process.exit(1);
}
// TODO: there should be a single place that holds the dependencies
const dependencies = ['react', 'react-dom', 'react-scripts'].sort();
if (dependencies.includes(appName)) {
console.error(
chalk.red(
`Cannot create a project named ${chalk.green(
`"${appName}"`
)} because a dependency with the same name exists.\n` +
`Due to the way npm works, the following names are not allowed:\n\n`
) +
chalk.cyan(dependencies.map((depName) => ` ${depName}`).join('\n')) +
chalk.red('\n\nPlease choose a different project name.')
);
process.exit(1);
}
}
// If project only contains files generated by GH, it’s safe.
// Also, if project contains remnant error logs from a previous
// installation, lets remove them now.
// We also special case IJ-based products .idea because it integrates with CRA:
// https://github.com/facebook/create-evershop-app/pull/368#issuecomment-243446094
function isSafeToCreateProjectIn(root, name) {
const validFiles = [
'.DS_Store',
'.git',
'.gitattributes',
'.gitignore',
'.gitlab-ci.yml',
'.hg',
'.hgcheck',
'.hgignore',
'.idea',
'.npmignore',
'.travis.yml',
'docs',
'LICENSE',
'README.md',
'mkdocs.yml',
'Thumbs.db'
];
// These files should be allowed to remain on a failed install, but then
// silently removed during the next create.
const errorLogFilePatterns = [
'npm-debug.log',
'yarn-error.log',
'yarn-debug.log'
];
const isErrorLog = (file) =>
errorLogFilePatterns.some((pattern) => file.startsWith(pattern));
const conflicts = fs
.readdirSync(root)
.filter((file) => !validFiles.includes(file))
// IntelliJ IDEA creates module files before CRA is launched
.filter((file) => !/\.iml$/.test(file))
// Don't treat log files from previous installation as conflicts
.filter((file) => !isErrorLog(file));
if (conflicts.length > 0) {
console.log(
`The directory ${chalk.green(name)} contains files that could conflict:`
);
console.log();
for (const file of conflicts) {
try {
const stats = fs.lstatSync(path.join(root, file));
if (stats.isDirectory()) {
console.log(` ${chalk.blue(`${file}/`)}`);
} else {
console.log(` ${file}`);
}
} catch (e) {
console.log(` ${file}`);
}
}
console.log();
console.log(
'Either try using a new directory name, or remove the files listed above.'
);
return false;
}
// Remove any log files from a previous installation.
fs.readdirSync(root).forEach((file) => {
if (isErrorLog(file)) {
fs.removeSync(path.join(root, file));
}
});
return true;
}
function getProxy() {
if (process.env.https_proxy) {
return process.env.https_proxy;
} else {
try {
// Trying to read https-proxy from .npmrc
const httpsProxy = execSync('npm config get https-proxy')
.toString()
.trim();
return httpsProxy !== 'null' ? httpsProxy : undefined;
} catch (e) {}
}
}
// See https://github.com/facebook/create-evershop-app/pull/3355
function checkThatNpmCanReadCwd() {
const cwd = process.cwd();
let childOutput = null;
try {
// Note: intentionally using spawn over exec since
// the problem doesn't reproduce otherwise.
// `npm config list` is the only reliable way I could find
// to reproduce the wrong path. Just printing process.cwd()
// in a Node process was not enough.
childOutput = spawn.sync('npm', ['config', 'list']).output.join('');
} catch (err) {
// Something went wrong spawning node.
// Not great, but it means we can't do this check.
// We might fail later on, but let's continue.
return true;
}
if (typeof childOutput !== 'string') {
return true;
}
const lines = childOutput.split('\n');
// `npm config list` output includes the following line:
// "; cwd = C:\path\to\current\dir" (unquoted)
// I couldn't find an easier way to get it.
const prefix = '; cwd = ';
const line = lines.find((line) => line.startsWith(prefix));
if (typeof line !== 'string') {
// Fail gracefully. They could remove it.
return true;
}
const npmCWD = line.substring(prefix.length);
if (npmCWD === cwd) {
return true;
}
console.error(
chalk.red(
`Could not start an npm process in the right directory.\n\n` +
`The current directory is: ${chalk.bold(cwd)}\n` +
`However, a newly started npm process runs in: ${chalk.bold(
npmCWD
)}\n\n` +
`This is probably caused by a misconfigured system terminal shell.`
)
);
if (process.platform === 'win32') {
console.error(
`${chalk.red(
`On Windows, this can usually be fixed by running:\n\n`
)} ${chalk.cyan(
'reg'
)} delete "HKCU\\Software\\Microsoft\\Command Processor" /v AutoRun /f\n` +
` ${chalk.cyan(
'reg'
)} delete "HKLM\\Software\\Microsoft\\Command Processor" /v AutoRun /f\n\n${chalk.red(
`Try to run the above two lines in the terminal.\n`
)}${chalk.red(
`To learn more about this problem, read: https://blogs.msdn.microsoft.com/oldnewthing/20071121-00/?p=24433/`
)}`
);
}
return false;
}
function checkIfOnline(useYarn) {
if (!useYarn) {
// Don't ping the Yarn registry.
// We'll just assume the best case.
return Promise.resolve(true);
}
return new Promise((resolve) => {
dns.lookup('registry.yarnpkg.com', (err) => {
let proxy;
if (err != null && (proxy = getProxy())) {
// If a proxy is defined, we likely can't resolve external hostnames.
// Try to resolve the proxy name as an indication of a connection.
dns.lookup(url.parse(proxy).hostname, (proxyErr) => {
resolve(proxyErr == null);
});
} else {
resolve(err == null);
}
});
});
}
async function setUpEverShop(projectDir) {
// Use spawn to run 'npm run setup' command from the project directory
await new Promise((resolve, reject) => {
const child = spawn('npm', ['run', 'setup'], {
cwd: projectDir,
stdio: 'inherit'
});
child.on('close', (code) => {
if (code !== 0) {
reject({
command: 'npm run setup'
});
return;
}
resolve();
});
});
}
async function createConfigFile(projectDir) {
console.log(
`Creating ${chalk.cyan('config/default.json')} in ${chalk.green(
projectDir
)}`
);
const config = {
shop: {
language: 'en',
currency: 'USD'
},
system: {
extensions: [
{
name: 'sample',
resolve: 'extensions/sample',
enabled: true
}
],
theme: 'sample'
}
};
await mkdir(path.resolve(projectDir, 'config'), { recursive: true });
fs.writeFileSync(
path.join(projectDir, 'config', 'default.json'),
JSON.stringify(config, null, 2) + os.EOL
);
}
async function createSampleExtension(projectDir) {
console.log(
`Creating ${chalk.cyan('extensions/sample')} in ${chalk.green(projectDir)}`
);
// Copy the extensions folder from the package to the project directory
const sourceDir = path.resolve(__dirname, 'sample/extensions');
const targetDir = path.resolve(projectDir, 'extensions');
await fs.copy(sourceDir, targetDir);
}
async function createSampleTheme(projectDir) {
console.log(
`Creating ${chalk.cyan('themes/sample')} in ${chalk.green(projectDir)}`
);
// Copy the themes folder from the package to the project directory
const sourceDir = path.resolve(__dirname, 'sample/themes');
const targetDir = path.resolve(projectDir, 'themes');
await fs.copy(sourceDir, targetDir);
}
function checkForLatestVersion() {
return new Promise((resolve, reject) => {
https
.get(
'https://registry.npmjs.org/-/package/create-evershop-app/dist-tags',
(res) => {
if (res.statusCode === 200) {
let body = '';
res.on('data', (data) => (body += data));
res.on('end', () => {
resolve(JSON.parse(body).latest);
});
} else {
reject();
}
}
)
.on('error', () => {
reject();
});
});
}
module.exports = {
init
};
```
## /packages/create-evershop-app/index.js
```js path="/packages/create-evershop-app/index.js"
#!/usr/bin/env node
const currentNodeVersion = process.versions.node;
const semver = currentNodeVersion.split('.');
const major = semver[0];
if (major < 14) {
console.error(
`You are running Node ${currentNodeVersion}.\n` +
`Create React App requires Node 14 or higher. \n` +
`Please update your version of Node.`
);
process.exit(1);
}
const { init } = require('./createEverShopApp');
init();
```
## /packages/create-evershop-app/package.json
```json path="/packages/create-evershop-app/package.json"
{
"name": "create-evershop-app",
"version": "2.3.0",
"description": "Create EverShop App",
"main": "index.js",
"files": [
"index.js",
"createEverShopApp.js",
"sample"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin": {
"create-evershop-app": "./index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/evershopcommerce/evershop.git"
},
"author": "The Nguyen",
"license": "ISC",
"bugs": {
"url": "https://github.com/evershopcommerce/evershop/issues"
},
"homepage": "https://github.com/evershopcommerce/evershop#readme",
"dependencies": {
"boxen": "^5.1.2",
"chalk": "^4.1.2",
"commander": "^9.4.1",
"cross-spawn": "^7.0.3",
"fs-extra": "^10.0.0",
"semver": "^7.6.3",
"validate-npm-package-name": "^4.0.0"
}
}
```
## /packages/create-evershop-app/sample/extensions/sample/Readme.md
# Sample Extension
This is a sample extension for Evershop. It demonstrates how to build a simple extension for your Evershop store.
## Enable/Disable the extension
To enable the extension, modify the configuration file `config/default.json` and set the `enabled` property to `true`:
```json
{
"system": {
"extensions": [
{
"name": "sample",
"resolve": "extensions/sample",
"enabled": true
}
]
}
}
```
> **Warning**
> Enable/disable the extension requires running the command `npm run build` again.
## /packages/create-evershop-app/sample/extensions/sample/dist/api/createFoo/[bodyParser]createFoo.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/api/createFoo/[bodyParser]createFoo.js"
export default (request, response, next) => {
const { name, description } = request.body;
if (!name || !description) {
return response
.status(400)
.json({ error: 'Name and description are required' });
}
// Create the new foo item
const newFoo = {
id: Date.now(),
name,
description
};
// Simulate saving to a database
console.log('Creating new foo:', newFoo);
// Respond with the created foo item
response.status(201).json({
success: true,
data: {
foo: newFoo
}
});
};
//# sourceMappingURL=%5BbodyParser%5DcreateFoo.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/api/createFoo/bodyParser.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/api/createFoo/bodyParser.js"
import bodyParser from 'body-parser';
export default (request, response, next) => {
bodyParser.json({ inflate: false })(request, response, next);
};
//# sourceMappingURL=bodyParser.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/api/createFoo/route.json
```json path="/packages/create-evershop-app/sample/extensions/sample/dist/api/createFoo/route.json"
{
"methods": ["POST"],
"path": "/foos",
"access": "private"
}
```
## /packages/create-evershop-app/sample/extensions/sample/dist/bootstrap.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/bootstrap.js"
import path from 'path';
import { registerJob } from '@evershop/evershop/lib/cronjob';
export default function () {
registerJob({
name: 'sampleJob',
schedule: '*/1 * * * *', // Runs every minute
resolve: path.resolve(import.meta.dirname, 'crons', 'everyMinute.js'),
enabled: true
});
}
//# sourceMappingURL=bootstrap.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/crons/everyMinute.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/crons/everyMinute.js"
export default function EveryMinute() {
console.log('This cron job runs every minute');
}
//# sourceMappingURL=everyMinute.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/graphql/types/Foo/Foo.graphql
```graphql path="/packages/create-evershop-app/sample/extensions/sample/dist/graphql/types/Foo/Foo.graphql"
type Foo {
id: ID!
name: String!
description: String
}
type Query {
foo(id: ID!): Foo
foos: [Foo!]!
}
```
## /packages/create-evershop-app/sample/extensions/sample/dist/graphql/types/Foo/Foo.resolvers.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/graphql/types/Foo/Foo.resolvers.js"
const fooList = [
{
id: 1,
name: 'Foo',
description: 'This is a Foo object'
},
{
id: 2,
name: 'Bar',
description: 'This is a Bar object'
},
{
id: 3,
name: 'Baz',
description: 'This is a Baz object'
}
];
export default {
Query: {
foo: (root, { id }) => {
return fooList.find((foo) => foo.id === id);
},
foos: () => {
return fooList;
}
},
Foo: {
id: (foo) => {
return foo.id;
},
name: (foo) => {
return foo.name;
},
description: (foo) => {
return foo.description;
}
}
};
//# sourceMappingURL=Foo.resolvers.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/pages/admin/all/Hello.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/pages/admin/all/Hello.js"
import React from 'react';
export default function Hello() {
return (React.createElement("div", { className: "bg-gradient-to-r from-blue-600 via-purple-600 to-indigo-700 text-white shadow-lg" },
React.createElement("div", { className: "container mx-auto px-6 py-4" },
React.createElement("div", { className: "flex items-center justify-between" },
React.createElement("div", { className: "flex items-center space-x-3" },
React.createElement("div", { className: "bg-white bg-opacity-20 rounded-full p-2" },
React.createElement("svg", { className: "w-6 h-6", fill: "currentColor", viewBox: "0 0 20 20" },
React.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z", clipRule: "evenodd" }))),
React.createElement("div", null,
React.createElement("h1", { className: "text-xl font-bold tracking-wide" }, "Hello, Admin!"),
React.createElement("p", { className: "text-blue-100 text-sm opacity-90" },
"Welcome to your dashboard. You can edit this component at",
' ',
React.createElement("code", null, "`extensions/sample/src/pages/admin/all/Hello.tsx`"),
"."),
React.createElement("p", { className: "text-blue-200 text-xs mt-1" }, "You can also remove this by disabling the extension `sample`."))),
React.createElement("div", { className: "hidden md:flex items-center space-x-4" },
React.createElement("div", { className: "bg-white bg-opacity-10 rounded-full px-4 py-2" },
React.createElement("span", { className: "text-sm font-medium" }, "Admin Panel")),
React.createElement("div", { className: "w-8 h-8 bg-white bg-opacity-20 rounded-full flex items-center justify-center" },
React.createElement("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20" },
React.createElement("path", { fillRule: "evenodd", d: "M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z", clipRule: "evenodd" })))))),
React.createElement("div", { className: "h-px bg-gradient-to-r from-transparent via-white to-transparent opacity-30" })));
}
export const layout = {
areaId: 'content',
sortOrder: 0
};
//# sourceMappingURL=Hello.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/all/FreeShippingMessage.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/all/FreeShippingMessage.js"
import React from 'react';
export default function FreeShippingMessage() {
return (React.createElement("div", { className: "bg-gradient-to-r from-green-500 to-emerald-600 text-white py-3 px-4 relative overflow-hidden" },
React.createElement("div", { className: "container mx-auto text-center relative z-10" },
React.createElement("p", { className: "font-medium flex items-center justify-center gap-2" },
React.createElement("svg", { className: "w-5 h-5 flex-shrink-0", fill: "currentColor", viewBox: "0 0 20 20" },
React.createElement("path", { d: "M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" }),
React.createElement("path", { d: "M3 4a1 1 0 00-1 1v1a1 1 0 001 1h1l1.68 5.39A3 3 0 008.38 15H15a1 1 0 000-2H8.38a1 1 0 01-.97-.76L6.16 9H15a1 1 0 00.95-.68L17.2 4H3z" })),
React.createElement("span", null, "\uD83D\uDE9A Free shipping on orders over $50!"),
React.createElement("span", { className: "hidden sm:inline text-green-100" }, "\u2728 No minimum required"))),
React.createElement("div", { className: "absolute inset-0 opacity-10" },
React.createElement("div", { className: "absolute top-0 left-1/4 w-32 h-32 bg-white rounded-full -translate-y-16" }),
React.createElement("div", { className: "absolute bottom-0 right-1/3 w-24 h-24 bg-white rounded-full translate-y-12" }))));
}
export const layout = {
areaId: 'body',
sortOrder: 0
};
//# sourceMappingURL=FreeShippingMessage.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/foo/Foos.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/foo/Foos.js"
import React from 'react';
export default function FooList({ foos }) {
return (React.createElement("div", { className: "foo-list container mx-auto px-4 py-8" },
React.createElement("h2", { className: "font-bold text-center mb-8" }, "Foo List"),
React.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" }, foos === null || foos === void 0 ? void 0 : foos.map((foo) => (React.createElement("div", { key: foo.id, className: "bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow duration-300" },
React.createElement("h3", { className: "font-semibold mb-3 text-gray-800" }, foo.name),
React.createElement("p", { className: "text-gray-600 leading-relaxed" }, foo.description)))))));
}
export const layout = {
areaId: 'content',
sortOrder: 30
};
export const query = `
query Query {
foos {
id
name
description
}
}
`;
//# sourceMappingURL=Foos.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/foo/route.json
```json path="/packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/foo/route.json"
{
"methods": ["GET"],
"path": "/foos"
}
```
## /packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/homepage/FooList.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/pages/frontStore/homepage/FooList.js"
import React from 'react';
export default function FooList({ foos }) {
return (React.createElement("div", { className: "foo-list container mx-auto px-4 py-8" },
React.createElement("h2", { className: "font-bold text-center mb-8" }, "Foo List"),
React.createElement("p", { className: "text-gray-700 text-center" },
"You can modify this component at",
' ',
React.createElement("code", null, "`themes/sample/src/pages/all/EveryWhere.tsx`")),
React.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" }, foos === null || foos === void 0 ? void 0 : foos.map((foo) => (React.createElement("div", { key: foo.id, className: "bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow duration-300" },
React.createElement("h3", { className: "font-semibold mb-3 text-gray-800" }, foo.name),
React.createElement("p", { className: "text-gray-600 leading-relaxed" }, foo.description)))))));
}
export const layout = {
areaId: 'content',
sortOrder: 30
};
export const query = `
query Query {
foos {
id
name
description
}
}
`;
//# sourceMappingURL=FooList.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/dist/subscribers/product_created/consoleLog.js
```js path="/packages/create-evershop-app/sample/extensions/sample/dist/subscribers/product_created/consoleLog.js"
export default function consoleLog(data) {
console.log('Product Created:', data);
}
//# sourceMappingURL=consoleLog.js.map
```
## /packages/create-evershop-app/sample/extensions/sample/package.json
```json path="/packages/create-evershop-app/sample/extensions/sample/package.json"
{
"name": "sample-evershop-extension",
"version": "1.0.0",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"tsc": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
```
## /packages/create-evershop-app/sample/extensions/sample/src/api/createFoo/[bodyParser]createFoo.ts
```ts path="/packages/create-evershop-app/sample/extensions/sample/src/api/createFoo/[bodyParser]createFoo.ts"
import { EvershopRequest, EvershopResponse } from '@evershop/evershop';
export default (request: EvershopRequest, response: EvershopResponse, next) => {
const { name, description } = request.body;
if (!name || !description) {
return response
.status(400)
.json({ error: 'Name and description are required' });
}
// Create the new foo item
const newFoo = {
id: Date.now(),
name,
description
};
// Simulate saving to a database
console.log('Creating new foo:', newFoo);
// Respond with the created foo item
response.status(201).json({
success: true,
data: {
foo: newFoo
}
});
};
```
## /packages/create-evershop-app/sample/extensions/sample/src/api/createFoo/bodyParser.ts
```ts path="/packages/create-evershop-app/sample/extensions/sample/src/api/createFoo/bodyParser.ts"
import bodyParser from 'body-parser';
export default (request, response, next) => {
bodyParser.json({ inflate: false })(request, response, next);
};
```
## /packages/create-evershop-app/sample/extensions/sample/src/api/createFoo/route.json
```json path="/packages/create-evershop-app/sample/extensions/sample/src/api/createFoo/route.json"
{
"methods": ["POST"],
"path": "/foos",
"access": "private"
}
```
## /packages/create-evershop-app/sample/extensions/sample/src/bootstrap.ts
```ts path="/packages/create-evershop-app/sample/extensions/sample/src/bootstrap.ts"
import path from 'path';
import { registerJob } from '@evershop/evershop/lib/cronjob';
export default function () {
registerJob({
name: 'sampleJob',
schedule: '*/1 * * * *', // Runs every minute
resolve: path.resolve(import.meta.dirname, 'crons', 'everyMinute.js'),
enabled: true
});
}
```
## /packages/create-evershop-app/sample/extensions/sample/src/crons/everyMinute.ts
```ts path="/packages/create-evershop-app/sample/extensions/sample/src/crons/everyMinute.ts"
export default function EveryMinute() {
console.log('This cron job runs every minute');
}
```
## /packages/create-evershop-app/sample/extensions/sample/src/graphql/types/Foo/Foo.graphql
```graphql path="/packages/create-evershop-app/sample/extensions/sample/src/graphql/types/Foo/Foo.graphql"
type Foo {
id: ID!
name: String!
description: String
}
type Query {
foo(id: ID!): Foo
foos: [Foo!]!
}
```
## /packages/create-evershop-app/sample/extensions/sample/src/graphql/types/Foo/Foo.resolvers.js
```js path="/packages/create-evershop-app/sample/extensions/sample/src/graphql/types/Foo/Foo.resolvers.js"
const fooList = [
{
id: 1,
name: 'Foo',
description: 'This is a Foo object'
},
{
id: 2,
name: 'Bar',
description: 'This is a Bar object'
},
{
id: 3,
name: 'Baz',
description: 'This is a Baz object'
}
];
export default {
Query: {
foo: (root, { id }) => {
return fooList.find((foo) => foo.id === id);
},
foos: () => {
return fooList;
}
},
Foo: {
id: (foo) => {
return foo.id;
},
name: (foo) => {
return foo.name;
},
description: (foo) => {
return foo.description;
}
}
};
```
## /packages/create-evershop-app/sample/extensions/sample/src/pages/admin/all/Hello.tsx
```tsx path="/packages/create-evershop-app/sample/extensions/sample/src/pages/admin/all/Hello.tsx"
import React from 'react';
export default function Hello() {
return (
<div className="bg-gradient-to-r from-blue-600 via-purple-600 to-indigo-700 text-white shadow-lg">
<div className="container mx-auto px-6 py-4">
<div className="flex items-center justify-between">
<div className="flex items-center space-x-3">
<div className="bg-white bg-opacity-20 rounded-full p-2">
<svg className="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
<path
fillRule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z"
clipRule="evenodd"
/>
</svg>
</div>
<div>
<h1 className="text-xl font-bold tracking-wide">Hello, Admin!</h1>
<p className="text-blue-100 text-sm opacity-90">
Welcome to your dashboard. You can edit this component at{' '}
<code>`extensions/sample/src/pages/admin/all/Hello.tsx`</code>.
</p>
<p className="text-blue-200 text-xs mt-1">
You can also remove this by disabling the extension `sample`.
</p>
</div>
</div>
<div className="hidden md:flex items-center space-x-4">
<div className="bg-white bg-opacity-10 rounded-full px-4 py-2">
<span className="text-sm font-medium">Admin Panel</span>
</div>
<div className="w-8 h-8 bg-white bg-opacity-20 rounded-full flex items-center justify-center">
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path
fillRule="evenodd"
d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z"
clipRule="evenodd"
/>
</svg>
</div>
</div>
</div>
</div>
{/* Subtle decorative line */}
<div className="h-px bg-gradient-to-r from-transparent via-white to-transparent opacity-30"></div>
</div>
);
}
export const layout = {
areaId: 'content',
sortOrder: 0
};
```
## /packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/all/FreeShippingMessage.tsx
```tsx path="/packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/all/FreeShippingMessage.tsx"
import React from 'react';
export default function FreeShippingMessage() {
return (
<div className="bg-gradient-to-r from-green-500 to-emerald-600 text-white py-3 px-4 relative overflow-hidden">
<div className="container mx-auto text-center relative z-10">
<p className="font-medium flex items-center justify-center gap-2">
<svg
className="w-5 h-5 flex-shrink-0"
fill="currentColor"
viewBox="0 0 20 20"
>
<path d="M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" />
<path d="M3 4a1 1 0 00-1 1v1a1 1 0 001 1h1l1.68 5.39A3 3 0 008.38 15H15a1 1 0 000-2H8.38a1 1 0 01-.97-.76L6.16 9H15a1 1 0 00.95-.68L17.2 4H3z" />
</svg>
<span>🚚 Free shipping on orders over $50!</span>
<span className="hidden sm:inline text-green-100">
✨ No minimum required
</span>
</p>
</div>
<div className="absolute inset-0 opacity-10">
<div className="absolute top-0 left-1/4 w-32 h-32 bg-white rounded-full -translate-y-16"></div>
<div className="absolute bottom-0 right-1/3 w-24 h-24 bg-white rounded-full translate-y-12"></div>
</div>
</div>
);
}
export const layout = {
areaId: 'body',
sortOrder: 0
};
```
## /packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/foo/Foos.tsx
```tsx path="/packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/foo/Foos.tsx"
import React from 'react';
type FooListProps = {
foos?: {
id: number;
name: string;
description: string;
}[];
};
export default function FooList({ foos }: FooListProps) {
return (
<div className="foo-list container mx-auto px-4 py-8">
<h2 className="font-bold text-center mb-8">Foo List</h2>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{foos?.map((foo) => (
<div
key={foo.id}
className="bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow duration-300"
>
<h3 className="font-semibold mb-3 text-gray-800">{foo.name}</h3>
<p className="text-gray-600 leading-relaxed">{foo.description}</p>
</div>
))}
</div>
</div>
);
}
export const layout = {
areaId: 'content',
sortOrder: 30
};
export const query = `
query Query {
foos {
id
name
description
}
}
`;
```
## /packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/foo/route.json
```json path="/packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/foo/route.json"
{
"methods": ["GET"],
"path": "/foos"
}
```
## /packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/homepage/FooList.tsx
```tsx path="/packages/create-evershop-app/sample/extensions/sample/src/pages/frontStore/homepage/FooList.tsx"
import React from 'react';
type FooListProps = {
foos?: {
id: number;
name: string;
description: string;
}[];
};
export default function FooList({ foos }: FooListProps) {
return (
<div className="foo-list container mx-auto px-4 py-8">
<h2 className="font-bold text-center mb-8">Foo List</h2>
<p className="text-gray-700 text-center">
You can modify this component at{' '}
<code>`themes/sample/src/pages/all/EveryWhere.tsx`</code>
</p>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{foos?.map((foo) => (
<div
key={foo.id}
className="bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow duration-300"
>
<h3 className="font-semibold mb-3 text-gray-800">{foo.name}</h3>
<p className="text-gray-600 leading-relaxed">{foo.description}</p>
</div>
))}
</div>
</div>
);
}
export const layout = {
areaId: 'content',
sortOrder: 30
};
export const query = `
query Query {
foos {
id
name
description
}
}
`;
```
## /packages/create-evershop-app/sample/extensions/sample/src/subscribers/product_created/consoleLog.js
```js path="/packages/create-evershop-app/sample/extensions/sample/src/subscribers/product_created/consoleLog.js"
export default function consoleLog(data) {
console.log('Product Created:', data);
}
```
## /packages/create-evershop-app/sample/extensions/sample/tsconfig.json
```json path="/packages/create-evershop-app/sample/extensions/sample/tsconfig.json"
{
"compilerOptions": {
"module": "NodeNext",
"target": "ES2018",
"lib": ["dom", "dom.iterable", "esnext"],
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"declaration": true,
"sourceMap": true,
"allowJs": true,
"checkJs": false,
"jsx": "react",
"outDir": "./dist",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"allowArbitraryExtensions": true,
"strictNullChecks": true,
"isolatedModules": false,
"baseUrl": ".",
"rootDir": "./src"
},
"include": ["src"]
}
```
## /packages/create-evershop-app/sample/themes/sample/dist/pages/all/EveryWhere.js
```js path="/packages/create-evershop-app/sample/themes/sample/dist/pages/all/EveryWhere.js"
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.layout = void 0;
exports.default = EveryWhere;
const react_1 = __importDefault(require("react"));
function EveryWhere() {
return (react_1.default.createElement("div", { className: "container mx-auto px-4 py-8 bg-gray-100 rounded-lg shadow-md mt-10" },
react_1.default.createElement("h1", { className: "font-bold text-center mb-6" }, "Everywhere"),
react_1.default.createElement("p", { className: "text-gray-700 text-center" }, "This component is rendered on every page of the store front."),
react_1.default.createElement("p", { className: "text-gray-700 text-center" },
"You can modify this component at",
' ',
react_1.default.createElement("code", null, "`themes/sample/src/pages/all/EveryWhere.tsx`")),
react_1.default.createElement("p", { className: " text-gray-700 text-center" }, "You can also remove this by disabling the theme `sample`.")));
}
exports.layout = {
areaId: 'content',
sortOrder: 20
};
//# sourceMappingURL=EveryWhere.js.map
```
## /packages/create-evershop-app/sample/themes/sample/dist/pages/homepage/OnlyHomePage.js
```js path="/packages/create-evershop-app/sample/themes/sample/dist/pages/homepage/OnlyHomePage.js"
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.layout = void 0;
exports.default = OnlyHomePage;
const react_1 = __importDefault(require("react"));
function OnlyHomePage() {
return (react_1.default.createElement("div", { className: "container mx-auto px-4 py-8 bg-gray-100 rounded-lg shadow-md mt-10" },
react_1.default.createElement("h1", { className: "font-bold text-center mb-6" }, "Home Page Only"),
react_1.default.createElement("p", { className: " text-gray-700 text-center" }, "This component is only rendered on the home page."),
react_1.default.createElement("p", { className: " text-gray-700 text-center" },
"You can modify this component at",
' ',
react_1.default.createElement("code", null, "`themes/sample/src/pages/homepage/OnlyHomePage.tsx`")),
react_1.default.createElement("p", { className: " text-gray-700 text-center" }, "You can also remove this by disabling the theme `sample`.")));
}
exports.layout = {
areaId: 'content',
sortOrder: 10
};
//# sourceMappingURL=OnlyHomePage.js.map
```
## /packages/create-evershop-app/sample/themes/sample/package.json
```json path="/packages/create-evershop-app/sample/themes/sample/package.json"
{
"name": "sample-evershop-theme",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"tsc": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
```
## /packages/create-evershop-app/sample/themes/sample/src/pages/all/EveryWhere.tsx
```tsx path="/packages/create-evershop-app/sample/themes/sample/src/pages/all/EveryWhere.tsx"
import React from 'react';
export default function EveryWhere() {
return (
<div className="container mx-auto px-4 py-8 bg-gray-100 rounded-lg shadow-md mt-10">
<h1 className="font-bold text-center mb-6">Everywhere</h1>
<p className="text-gray-700 text-center">
This component is rendered on every page of the store front.
</p>
<p className="text-gray-700 text-center">
You can modify this component at{' '}
<code>`themes/sample/src/pages/all/EveryWhere.tsx`</code>
</p>
<p className=" text-gray-700 text-center">
You can also remove this by disabling the theme `sample`.
</p>
</div>
);
}
export const layout = {
areaId: 'content',
sortOrder: 20
};
```
## /packages/create-evershop-app/sample/themes/sample/src/pages/homepage/OnlyHomePage.tsx
```tsx path="/packages/create-evershop-app/sample/themes/sample/src/pages/homepage/OnlyHomePage.tsx"
import React from 'react';
export default function OnlyHomePage() {
return (
<div className="container mx-auto px-4 py-8 bg-gray-100 rounded-lg shadow-md mt-10">
<h1 className="font-bold text-center mb-6">Home Page Only</h1>
<p className=" text-gray-700 text-center">
This component is only rendered on the home page.
</p>
<p className=" text-gray-700 text-center">
You can modify this component at{' '}
<code>`themes/sample/src/pages/homepage/OnlyHomePage.tsx`</code>
</p>
<p className=" text-gray-700 text-center">
You can also remove this by disabling the theme `sample`.
</p>
</div>
);
}
export const layout = {
areaId: 'content',
sortOrder: 10
};
```
## /packages/create-evershop-app/sample/themes/sample/tsconfig.json
```json path="/packages/create-evershop-app/sample/themes/sample/tsconfig.json"
{
"compilerOptions": {
"module": "NodeNext",
"target": "ES2018",
"lib": ["dom", "dom.iterable", "esnext"],
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"declaration": true,
"sourceMap": true,
"allowJs": true,
"checkJs": false,
"jsx": "react",
"outDir": "./dist",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"allowArbitraryExtensions": true,
"strictNullChecks": true,
"isolatedModules": false,
"baseUrl": ".",
"rootDir": "./src"
},
"include": ["src"]
}
```
## /packages/evershop/.swcrc
```swcrc path="/packages/evershop/.swcrc"
{
"$schema": "https://swc.rs/schema.json",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true,
"dynamicImport": true,
"privateMethod": false,
"functionBind": true,
"exportDefaultFrom": true,
"exportNamespaceFrom": false,
"decorators": true,
"decoratorsBeforeExport": false,
"topLevelAwait": true,
"importMeta": true,
"importAs": true,
"preserveAllComments": false
},
"target": "es2022",
"experimental": { "keepImportAssertions": true },
"loose": false,
"keepClassNames": false
},
"module": {
"type": "es6"
}
}
```
## /packages/evershop/NOTICE
``` path="/packages/evershop/NOTICE"
EverShop (@evershop/evershop)
Copyright (c) EverShop contributors. Licensed under the GNU General Public License v3.0; see LICENSE.
This package bundles third-party DATA under its own licences. The code that reads the data is
EverShop's; the data files under dist/lib/address/formats/ and dist/lib/address/data/ (and their
src/ counterparts) carry the notices below in their headers.
--------------------------------------------------------------------------------------------------
Address format metadata — Google libaddressinput
--------------------------------------------------------------------------------------------------
Address format records and sub-region keys are derived from Google's libaddressinput address
metadata (https://github.com/google/libaddressinput, served at
https://chromium-i18n.appspot.com/ssl-address/data).
"Source code licensed under the Apache 2.0. Data licensed under the CC-BY 4.0"
— google/libaddressinput README
The data is used under the Creative Commons Attribution 4.0 International License
(https://creativecommons.org/licenses/by/4.0/). Changes made by EverShop: converted from JSON to
TypeScript, keys normalized to EverShop's AddressFormat shape, manual corrections from
scripts/address-formats/fixes/ applied (including Vietnam's 2025 provincial reorganisation),
EverShop extensions (address_lines, name_order, telephone.dialCode) added. The raw upstream snapshot
and the fetch date are recorded in scripts/address-formats/snapshot/manifest.json in the source
repository.
--------------------------------------------------------------------------------------------------
Person-name order and likely languages — Unicode CLDR
--------------------------------------------------------------------------------------------------
The name_order value of each address format record is derived from Unicode CLDR person-name data
(personNames.json) and CLDR likely-subtags data (supplemental/likelySubtags.json), distributed as
the npm packages cldr-person-names-full and cldr-core (https://cldr.unicode.org).
Copyright © Unicode, Inc. Used under the Unicode License v3 (https://www.unicode.org/license.txt).
--------------------------------------------------------------------------------------------------
Country calling codes — Google libphonenumber
--------------------------------------------------------------------------------------------------
The telephone.dialCode value of each address format record is the country calling code from
Google's libphonenumber metadata (https://github.com/google/libphonenumber,
resources/PhoneNumberMetadata.xml). Only the calling codes are taken; no number patterns are
bundled. Licensed under the Apache License, Version 2.0
(https://www.apache.org/licenses/LICENSE-2.0).
```
## /packages/evershop/README.md
<p> </p>
<p align="center">
<img width="60" height="68" alt="EverShop Logo" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/logo-green.png"/>
</p>
<p align="center">
<h1 align="center">EverShop</h1>
</p>
<h4 align="center">
<a href="https://evershop.io/docs/development/getting-started/introduction">Documentation</a> |
<a href="https://demo.evershop.io/">Demo</a>
</h4>
<p align="center">
<img src="https://github.com/evershopcommerce/evershop/actions/workflows/build_test.yml/badge.svg" alt="Github Action">
<a href="https://twitter.com/evershopjs">
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/evershopjs?style=social">
</a>
<a href="https://discord.gg/GSzt7dt7RM">
<img src="https://img.shields.io/discord/757179260417867879?label=discord" alt="Discord">
</a>
<a href="https://opensource.org/licenses/GPL-3.0">
<img src="https://img.shields.io/badge/License-GPLv3-blue.svg" alt="License">
</a>
</p>
<p align="center">
<img alt="EverShop" width="950" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/banner.png"/>
</p>
## Introduction
EverShop is a modern, TypeScript-first eCommerce platform built with GraphQL and React. Designed for developers, it offers essential commerce features in a modular, fully customizable architecture—perfect for building tailored shopping experiences with confidence and speed.
## Installation Using Docker
You can get started with EverShop in minutes by using the Docker image. The Docker image is a great way to get started with EverShop without having to worry about installing dependencies or configuring your environment.
```bash
curl -sSL https://raw.githubusercontent.com/evershopcommerce/evershop/main/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
For the full installation guide, please refer to our [Installation guide](https://evershop.io/docs/development/getting-started/installation-guide).
## Documentation
- [Installation guide](https://evershop.io/docs/development/getting-started/installation-guide).
- [Extension development](https://evershop.io/docs/development/module/create-your-first-extension).
- [Theme development](https://evershop.io/docs/development/theme/theme-overview).
## Demo
Explore our demo store.
<p align="left">
<a href="https://demo.evershop.io/admin" target="_blank">
<img alt="evershop-backend-demo" height="35" alt="EverShop Admin Demo" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/evershop-demo-back.png"/>
</a>
<a href="https://demo.evershop.io/" target="_blank">
<img alt="evershop-store-demo" height="35" alt="EverShop Store Demo" src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/evershop-demo-front.png"/>
</a>
</p>
<b>Demo user:</b>
Email: demo@evershop.io<br/>
Password: 123456
## Support
If you like my work, feel free to:
- ⭐ this repository. It helps.
- [][tweet] about EverShop. Thank you!
[tweet]: https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fevershopcommerce%2Fevershop&text=Awesome%20React%20Ecommerce%20Project&hashtags=react,ecommerce,expressjs,graphql
## Contributing
EverShop is an open-source project. We are committed to a fully transparent development process and appreciate highly any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as part of the EverShop community.
### Ask a question about EverShop
You can ask questions, and participate in discussions about EverShop-related topics in the EverShop Discord channel.
<a href="https://discord.gg/GSzt7dt7RM"><img src="https://raw.githubusercontent.com/evershopcommerce/evershop/dev/.github/images/discord_banner_github.svg" /></a>
### Create a bug report
If you see an error message or run into an issue, please [create bug report](https://github.com/evershopcommerce/evershop/issues/new). This effort is valued and it will help all EverShop users.
### Submit a feature request
If you have an idea, or you're missing a capability that would make development easier and more robust, please [Submit feature request](https://github.com/evershopcommerce/evershop/issues/new).
If a similar feature request already exists, don't forget to leave a "+1".
If you add some more information such as your thoughts and vision about the feature, your comments will be embraced warmly :)
Please refer to our [Contribution Guidelines](./CONTRIBUTING.md) and [Code of Conduct](./CODE_OF_CONDUCT.md).
## License
[GPL-3.0 License](https://github.com/evershopcommerce/evershop/blob/main/LICENSE)
## /packages/evershop/package.json
```json path="/packages/evershop/package.json"
{
"name": "@evershop/evershop",
"version": "2.3.0",
"type": "module",
"description": "The React Ecommerce platform. Built with Typescript, React and Postgres. Open-source and free. Fast and customizable.",
"files": [
"dist",
"NOTICE",
"src",
".swcrc"
],
"bin": {
"evershop": "./dist/bin/evershop.js"
},
"exports": {
"./types/*": {
"types": "./dist/types/*.d.ts"
},
"./lib/helpers": {
"import": "./dist/lib/helpers.js",
"types": "./dist/lib/helpers.d.ts"
},
"./lib/mail/*": {
"import": "./dist/lib/mail/*.js",
"types": "./dist/lib/mail/*.d.ts"
},
"./lib/util/*": {
"import": "./dist/lib/util/*.js",
"types": "./dist/lib/util/*.d.ts"
},
"./lib/event": {
"import": "./dist/lib/event/emitter.js",
"types": "./dist/lib/event/emitter.d.ts"
},
"./lib/event/subscriber": {
"import": "./dist/lib/event/subscriber.js",
"types": "./dist/lib/event/subscriber.d.ts"
},
"./lib/postgres": {
"import": "./dist/lib/postgres/connection.js",
"types": "./dist/lib/postgres/connection.d.ts"
},
"./lib/postgres/query": {
"import": "./dist/lib/postgres/query.js",
"types": "./dist/lib/postgres/query.d.ts"
},
"./lib/locale/*": {
"import": "./dist/lib/locale/*.js",
"types": "./dist/lib/locale/*.d.ts"
},
"./lib/address": {
"import": "./dist/lib/address/index.js",
"types": "./dist/lib/address/index.d.ts"
},
"./lib/address/*": {
"import": "./dist/lib/address/*.js",
"types": "./dist/lib/address/*.d.ts"
},
"./lib/log": {
"import": "./dist/lib/log/logger.js",
"types": "./dist/lib/log/logger.d.ts"
},
"./lib/router": {
"import": "./dist/lib/router/index.js",
"types": "./dist/lib/router/index.d.ts"
},
"./lib/widget": {
"import": "./dist/lib/widget/widgetManager.js",
"types": "./dist/lib/widget/widgetManager.d.ts"
},
"./lib/widget/linkResolver": {
"import": "./dist/lib/widget/linkResolver.js",
"types": "./dist/lib/widget/linkResolver.d.ts"
},
"./lib/urn": {
"import": "./dist/lib/urn/index.js",
"types": "./dist/lib/urn/index.d.ts"
},
"./lib/metafield": {
"import": "./dist/lib/metafield/index.js",
"types": "./dist/lib/metafield/index.d.ts"
},
"./lib/cronjob": {
"import": "./dist/lib/cronjob/jobManager.js",
"types": "./dist/lib/cronjob/jobManager.d.ts"
},
"./lib/middleware/delegate": {
"import": "./dist/lib/middleware/delegate.js",
"types": "./dist/lib/middleware/delegate.d.ts"
},
"./components/common/*": {
"import": "./dist/components/common/*.js",
"types": "./dist/components/common/*.d.ts"
},
"./components/admin/*": {
"import": "./dist/components/admin/*.js",
"types": "./dist/components/admin/*.d.ts"
},
"./components/frontStore/*": {
"import": "./dist/components/frontStore/*.js",
"types": "./dist/components/frontStore/*.d.ts"
},
"./graphql/services": {
"import": "./dist/modules/graphql/services/index.js",
"types": "./dist/modules/graphql/services/index.d.ts"
},
"./catalog/services": {
"import": "./dist/modules/catalog/services/index.js",
"types": "./dist/modules/catalog/services/index.d.ts"
},
"./customer/services": {
"import": "./dist/modules/customer/services/index.js",
"types": "./dist/modules/customer/services/index.d.ts"
},
"./setting/services": {
"import": "./dist/modules/setting/services/index.js",
"types": "./dist/modules/setting/services/index.d.ts"
},
"./checkout/services": {
"import": "./dist/modules/checkout/services/index.js",
"types": "./dist/modules/checkout/services/index.d.ts"
},
"./oms/services": {
"import": "./dist/modules/oms/services/index.js",
"types": "./dist/modules/oms/services/index.d.ts"
},
"./cms/services": {
"import": "./dist/modules/cms/services/index.js",
"types": "./dist/modules/cms/services/index.d.ts"
},
"./promotion/services": {
"import": "./dist/modules/promotion/services/index.js",
"types": "./dist/modules/promotion/services/index.d.ts"
},
"./base/services/sitemap": {
"import": "./dist/modules/base/services/sitemap/index.js",
"types": "./dist/modules/base/services/sitemap/index.d.ts"
},
"./package.json": "./package.json"
},
"scripts": {
"prepack": "rimraf dist && tsc && copyfiles -u 1 \"src/**/*.{graphql,scss,css,json}\" dist",
"dev": "node ./dist/bin/dev/index.js",
"start": "node ./dist/bin/start/index.js",
"build": "node ./dist/bin/build/index.js",
"user:create": "evershop user:create",
"user:changePassword": "evershop user:changePassword",
"test": "jest"
},
"author": "The Nguyen (https://evershop.io)",
"license": "GNU GENERAL PUBLIC LICENSE 3.0",
"repository": {
"type": "git",
"url": "git+https://github.com/evershopcommerce/evershop.git"
},
"keywords": [
"ecommerce",
"shopping cart",
"cart"
],
"bugs": {
"url": "https://github.com/evershopcommerce/evershop/issues"
},
"homepage": "http://evershop.io/",
"dependencies": {
"@aws-sdk/client-s3": "^3.1081.0",
"@azure/storage-blob": "~12.32.0",
"@base-ui/react": "^1.1.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@editorjs/editorjs": "^2.30.8",
"@editorjs/header": "^2.8.7",
"@editorjs/list": "^1.10.0",
"@editorjs/quote": "^2.6.0",
"@editorjs/raw": "^2.5.0",
"@evershop/editorjs-image": "^1.1.0",
"@evershop/editorjs-product-list": "^1.0.0",
"@evershop/postgres-query-builder": "^2.1.1",
"@google-cloud/storage": "^7.21.0",
"@graphql-tools/load-files": "^6.6.1",
"@graphql-tools/merge": "^8.4.2",
"@graphql-tools/schema": "^9.0.19",
"@hapi/topo": "^5.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
"@stripe/react-stripe-js": "^3.10.0",
"@stripe/stripe-js": "^5.10.0",
"@swc/cli": "^0.7.7",
"@swc/core": "^1.11.29",
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/typography": "^0.5.13",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1",
"autoprefixer": "^10.4.13",
"axios": "^1.20.0",
"bcryptjs": "^2.4.3",
"body-parser": "^1.20.0",
"boxen": "^5.1.2",
"class-variance-authority": "^0.7.1",
"clean-css": "^5.3.1",
"clsx": "^2.1.1",
"config": "^3.3.6",
"connect-pg-simple": "^9.0.0",
"cookie-parser": "^1.4.6",
"cross-spawn": "^7.0.6",
"css-loader": "^6.7.1",
"csv-parser": "^3.0.0",
"dayjs": "^1.10.6",
"debug": "^4.3.2",
"dotenv": "^16.3.1",
"enquirer": "^2.3.6",
"execa": "^9.6.0",
"express": "^4.21.2",
"express-rate-limit": "^8.5.2",
"express-session": "^1.17.3",
"fast-glob": "^3.3.3",
"fast-json-stable-stringify": "^2.1.0",
"flatpickr": "^4.6.9",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
"graphql-type-json": "^0.3.2",
"handlebars": "^4.7.9",
"html-entities": "^2.3.3",
"html-webpack-plugin": "^5.5.0",
"immer": "^10.1.1",
"jsesc": "^3.0.2",
"json5": "^2.2.1",
"jsonwebtoken": "^9.0.2",
"kleur": "3.0.3",
"lodash.isequalwith": "^4.4.0",
"lucide-react": "^0.562.0",
"luxon": "^2.0.2",
"mini-css-extract-plugin": "^2.6.1",
"minimatch": "^10.2.3",
"multer": "^2.4.0",
"node-cron": "^4.4.1",
"ora": "^5.4.1",
"pg": "^8.16.3",
"postcss": "^8.4.18",
"postcss-loader": "^8.2.0",
"prop-types": "^15.8.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-fast-compare": "^3.2.0",
"react-hook-form": "^7.61.1",
"react-refresh": "^0.14.0",
"react-select": "^5.4.0",
"react-slick": "^0.31.0",
"recharts": "^2.0.9",
"sass": "^1.98.0",
"sass-loader": "^13.0.2",
"semver": "^7.6.3",
"serve-static": "^1.15.0",
"session-file-store": "^1.5.0",
"sharp": "^0.35.5",
"slick-carousel": "^1.8.1",
"sonner": "^2.0.7",
"stripe": "^21.0.1",
"style-loader": "^3.3.1",
"swc-minify-webpack-plugin": "^2.1.3",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"touch": "^3.1.1",
"tw-animate-css": "^1.4.0",
"undici": "^7.30.0",
"uniqid": "^5.3.0",
"urql": "^3.0.3",
"uuid": "^9.0.0",
"webpack": "^5.72.1",
"webpack-dev-middleware": "^7.4.2",
"webpack-hot-middleware": "^2.26.1",
"webpackbar": "^7.0.0",
"winston": "^3.3.3",
"xss": "^1.0.15",
"yargs": "^17.7.2",
"zero-decimal-currencies": "^1.6.0"
},
"devDependencies": {
"@parcel/watcher": "^2.5.1",
"@paypal/paypal-js": "^8.4.2",
"@types/config": "^3.3.5",
"@types/express": "^5.0.1",
"@types/express-session": "^1.18.2",
"@types/multer": "^2.0.0",
"@types/node": "^22.14.1",
"@types/pg": "^8.15.2",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.0.0",
"copyfiles": "^2.4.1",
"typescript": "^5.8.3"
}
}
```
## /packages/evershop/scripts/postpack.js
```js path="/packages/evershop/scripts/postpack.js"
import fs from 'fs';
import path from 'path';
import packageJson from '../package.json' with { type: 'json' };
// Get the current version of the package from the nearest package.json file
const { version } = packageJson;
// Get the --pack-destination from the command line arguments
// Create a package.json file in the packDestination directory with dependencies is the package itself
fs.writeFileSync(
path.resolve(process.env.npm_config_pack_destination, 'package.json'),
JSON.stringify(
{
name: packageJson.name,
version,
dependencies: {
'@evershop/evershop': `file:./evershop-evershop-${version}.tgz`
},
scripts: {
setup: 'evershop install',
start: 'evershop start',
'start:debug': 'evershop start:debug',
build: 'evershop build',
dev: 'evershop dev',
'user:create': 'evershop user:create'
}
},
null,
2
)
);
```
## /packages/evershop/scripts/postpublish.js
```js path="/packages/evershop/scripts/postpublish.js"
import fs from 'fs';
import path from 'path';
function getFileRecursive(dir, files) {
const list = fs.readdirSync(dir);
list.forEach((file) => {
const filePath = path.join(dir, file);
const stat = fs.statSync(filePath);
if (stat.isDirectory()) {
getFileRecursive(filePath, files);
} else {
files.push(filePath);
}
});
}
const files = [];
getFileRecursive(path.resolve(__dirname, './bin/serve'), files);
files.forEach((file) => {
const source = fs.readFileSync(file, { encoding: 'utf8', flag: 'r' });
const result = source.replace(/\.\.\/dist/g, '../src');
fs.writeFileSync(file, result, 'utf8');
});
```
## /packages/evershop/scripts/prepublish.js
```js path="/packages/evershop/scripts/prepublish.js"
import fs from 'fs';
import path from 'path';
fs.copyFile(
path.resolve(__dirname, '../../README.md'),
path.resolve(__dirname, './README.md'),
(err) => {
if (err) throw err;
}
);
```
## /packages/evershop/src/bin/build/client/index.js
```js path="/packages/evershop/src/bin/build/client/index.js"
import webpack from 'webpack';
import { error } from '../../../src/lib/log/logger';
import { createConfigClient } from '../../../src/lib/webpack/prod/createConfigClient';
export async function buildClient(routes) {
const config = createConfigClient(routes);
const compiler = webpack(config);
return new Promise((resolve, reject) => {
compiler.run((err, stats) => {
if (err || stats.hasErrors()) {
error(
stats.toString({
errorDetails: true,
warnings: true
})
);
reject(err);
}
resolve(stats);
});
});
}
```
## /packages/evershop/src/bin/build/complie.js
```js path="/packages/evershop/src/bin/build/complie.js"
import pkg from 'webpack';
import { error } from '../../lib/log/logger.js';
import { createConfigClient } from '../../lib/webpack/prod/createConfigClient.js';
import { createConfigServer } from '../../lib/webpack/prod/createConfigServer.js';
const { webpack } = pkg;
function runOne(config) {
const compiler = webpack(config);
return new Promise((resolve, reject) => {
compiler.run((err, stats) => {
// close() releases the compiler's resources (and flushes any persistent
// cache). Resolve/reject from inside its callback so the compilation is
// fully torn down — and collectable — before the next one starts.
compiler.close(() => {
if (err || stats.hasErrors()) {
if (err) {
error(err);
}
error(
stats.toString({
errorDetails: true,
warnings: true
})
);
reject(err);
return;
}
resolve(stats);
});
});
});
}
export async function compile(routes) {
// Build the client and server compilations SEQUENTIALLY rather than as a
// single concurrent MultiCompiler. Running them together keeps both module
// graphs + every emitted asset resident in one V8 heap at once, pushing peak
// memory past ~3.3GB and OOMing on small (4GB) hosts. Sequentially, the client
// compilation becomes collectable before the server one peaks, so peak memory
// is ~max(client, server) and the build fits within a ~2GB heap. (Wall time is
// not worse — the concurrent run oversubscribed the CPU during minification.)
// See specifications/store-front-architecture-audit.md.
await runOne(createConfigClient(routes));
// Hint V8 to reclaim the client compilation before the server build allocates.
// No-op unless started with --expose-gc; on memory-limited hosts the default
// heap cap already forces this collection under pressure.
if (global.gc) {
global.gc();
}
return runOne(createConfigServer(routes));
}
```
## /packages/evershop/src/bin/build/index.js
```js path="/packages/evershop/src/bin/build/index.js"
import { existsSync, mkdirSync, rmSync } from 'fs';
import path from 'path';
import config from 'config';
import { lockAddressRegistry } from '../../lib/address/formats.js';
import { CONSTANTS } from '../../lib/helpers.js';
import { error } from '../../lib/log/logger.js';
import { loadModuleRoutes } from '../../lib/router/loadModuleRoutes.js';
import { getRoutes } from '../../lib/router/Router.js';
import { lockHooks } from '../../lib/util/hookable.js';
import { lockRegistry } from '../../lib/util/registry.js';
import { validateConfiguration } from '../../lib/util/validateConfiguration.js';
import { isBuildRequired } from '../../lib/webpack/isBuildRequired.js';
import { lockCarrierRegistry } from '../../modules/oms/services/carrier/registry.js';
import { getEnabledExtensions } from '../extension/index.js';
import { loadBootstrapScript } from '../lib/bootstrap/bootstrap.js';
import { buildEntry } from '../lib/buildEntry.js';
import { getCoreModules } from '../lib/loadModules.js';
import { compile } from './complie.js';
import './initEnvBuild.js';
/* Loading modules and initilize routes, components */
const modules = [...getCoreModules(), ...getEnabledExtensions()];
/** Loading routes */
modules.forEach((module) => {
try {
// Load routes
loadModuleRoutes(module.path);
} catch (e) {
error(e);
process.exit(0);
}
});
/** Clean up the build directory */
if (existsSync(path.resolve(CONSTANTS.BUILDPATH))) {
// Delete directory recursively
rmSync(path.resolve(CONSTANTS.BUILDPATH), { recursive: true });
mkdirSync(path.resolve(CONSTANTS.BUILDPATH));
} else {
mkdirSync(path.resolve(CONSTANTS.BUILDPATH), { recursive: true });
}
export default async function build() {
/** Loading bootstrap script from modules */
try {
for (const module of modules) {
await loadBootstrapScript(module, {
command: 'build',
env: 'production',
process: 'main'
});
}
lockHooks();
lockRegistry();
lockCarrierRegistry();
lockAddressRegistry();
// Get the configuration (nodeconfig)
validateConfiguration(config);
} catch (e) {
error(e);
process.exit(1);
}
process.env.ALLOW_CONFIG_MUTATIONS = false;
const routes = getRoutes();
await buildEntry(routes.filter((r) => isBuildRequired(r)));
/** Build */
await compile(routes);
}
process.on('uncaughtException', function (exception) {
import('../../lib/log/logger.js').then((module) => {
module.error(exception);
});
});
process.on('unhandledRejection', (reason, p) => {
import('../../lib/log/logger.js').then((module) => {
module.error(`Unhandled Rejection: ${reason} at: ${p}`);
});
});
build();
```
## /packages/evershop/src/bin/build/initEnvBuild.ts
```ts path="/packages/evershop/src/bin/build/initEnvBuild.ts"
import 'dotenv/config';
process.env.NODE_ENV = 'production';
process.env.ALLOW_CONFIG_MUTATIONS = 'true';
```
## /packages/evershop/src/bin/build/server/index.js
```js path="/packages/evershop/src/bin/build/server/index.js"
import pkg from 'webpack';
import { error } from '../../../src/lib/log/logger.js';
import { createConfigServer } from '../../../src/lib/webpack/prod/createConfigServer.js';
const { webpack } = pkg;
export const buildServer = async function buildServer(routes) {
const config = createConfigServer(routes);
const compiler = webpack(config);
return new Promise((resolve, reject) => {
compiler.run((err, stats) => {
if (err || stats.hasErrors()) {
error(
stats.toString({
errorDetails: true,
warnings: true
})
);
reject(err);
}
resolve(stats);
});
});
};
```
## /packages/evershop/src/bin/build/server/useVendorChunk.js
```js path="/packages/evershop/src/bin/build/server/useVendorChunk.js"
import { existsSync, rmSync } from 'fs';
import path from 'path';
import { green, red } from 'kleur';
import ora from 'ora';
import webpack from 'webpack';
import { CONSTANTS } from '../../../src/lib/helpers.js';
import { getRoutes } from '../../../src/lib/router/routes.js';
import { createConfig } from '../../../src/lib/webpack/createConfig.js';
import { loadModuleComponents } from '../../serve/loadModuleComponents.js';
import { loadModuleRoutes } from '../../serve/loadModuleRoutes.js';
import { loadModules } from '../../serve/loadModules.js';
import { createComponents } from '../createComponents.js';
(async () => {
const start = Date.now();
const modules = loadModules(
path.resolve(__dirname, '../../../src', 'modules')
);
const spinner = ora({
text: green('Starting server build'),
spinner: 'dots12'
}).start();
spinner.start();
/** Initilizing routes */
modules.forEach((module) => {
try {
// Load routes
loadModuleRoutes(module.path);
} catch (e) {
spinner.fail(`${red(e.stack)}\n`);
process.exit(0);
}
});
/** Initializing components */
modules.forEach((module) => {
try {
// Load components
loadModuleComponents(module.path);
} catch (e) {
spinner.fail(`${red(e.stack)}\n`);
process.exit(0);
}
});
/** Get list of routes */
const routes = getRoutes();
/** Collect all 'controller' routes */
const controllers = routes.filter((r) => r.isApi === false);
/** Clean up the build directory */
if (existsSync(CONSTANTS.BUILDPATH)) {
rmSync(CONSTANTS.BUILDPATH, { recursive: true });
}
/** Create components.js file for each route */
await createComponents(controllers);
/** Create the webpack complier object */
const compiler = webpack(createConfig(true, controllers));
/** Run the build */
await new Promise((resolve, reject) => {
compiler.run((err, stats) => {
if (err) {
reject(err);
} else if (stats.hasErrors()) {
reject(
new Error(
stats.toString({
errorDetails: true,
warnings: true
})
)
);
} else {
resolve(stats);
}
});
});
const end = Date.now();
spinner.succeed(`${green('Server build completed in')} ${end - start}ms`);
process.exit(0);
})();
```
## /packages/evershop/src/bin/dev/compileTs.js
```js path="/packages/evershop/src/bin/dev/compileTs.js"
import path from 'path';
import { compileSwc } from '../lib/watch/compileSwc.js';
import { getSrcPaths } from '../lib/watch/getSrcPaths.js';
async function compileTs() {
const srcPaths = getSrcPaths();
const events = srcPaths.map((srcPath) => {
return {
srcPath: srcPath,
distPath: path.resolve(srcPath, '..', 'dist')
};
});
await Promise.all(
events.map((event) => {
return compileSwc(event.srcPath, event.distPath);
})
);
}
export { compileTs };
```
## /packages/evershop/src/bin/dev/enableWatcher.js
```js path="/packages/evershop/src/bin/dev/enableWatcher.js"
import { subscribe } from '@parcel/watcher';
import { CONSTANTS } from '../../lib/helpers.js';
import { watchHandler } from '../lib/watch/watchHandler.js';
export default async function enableWatcher() {
const watcherInstance = await subscribe(
CONSTANTS.ROOTPATH,
(err, events) => {
if (err) {
return;
}
watchHandler(events);
},
{
ignore: [
'**/node_modules/**',
'**/dist/**',
// compileSwc's temp output — compiled files land here before being
// swapped into dist; without this the swap right before/around boot
// floods the watcher and the effects run against half-built paths.
'**/dist.compiling/**',
'**/build/**',
// Runtime-written directories: the sitemap cron rewrites public/*.xml
// on schedule and uploads land in media/. Neither needs compilation
// or a dev-server effect, and an event from them during the boot
// window used to crash the bootstrap (see detectEffect).
'**/public/**',
'**/media/**',
'**/.git/**',
'**/.cache/**',
'**/.next/**',
'**/.nuxt/**',
'**/.vscode/**'
]
}
);
process.on('SIGINT', () => {
watcherInstance.unsubscribe();
process.exit(0);
});
process.on('SIGTERM', () => {
watcherInstance.unsubscribe();
});
process.on('exit', () => {
watcherInstance.unsubscribe();
});
}
```
## /packages/evershop/src/bin/dev/hooks.js
```js path="/packages/evershop/src/bin/dev/hooks.js"
import { isBuiltin } from 'node:module';
import path, { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
let broadcastChannel;
export function initialize(data) {
broadcastChannel = data.broadcastChannel;
}
export function resolve(specifier, context, nextResolve) {
if (
isBuiltin(specifier) ||
specifier.includes('?t=') ||
context.parentURL === undefined
) {
return nextResolve(specifier, context);
} else {
const modulePath = !specifier.startsWith('file:')
? path.resolve(dirname(fileURLToPath(context.parentURL)), specifier)
: fileURLToPath(specifier);
if (modulePath.includes('node_modules')) {
return nextResolve(specifier, context);
} else {
broadcastChannel.postMessage({
path: modulePath,
});
return nextResolve(specifier, context);
}
}
}
```
## /packages/evershop/src/bin/dev/index.ts
```ts path="/packages/evershop/src/bin/dev/index.ts"
import path from 'path';
import { fileURLToPath } from 'url';
import spawn from 'cross-spawn';
import { debug, error } from '../../lib/log/logger.js';
function startDev() {
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const args = [path.resolve(__dirname, 'init.js')];
const appProcess = spawn('node', args, {
stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
env: {
...process.env,
ALLOW_CONFIG_MUTATIONS: true
}
});
appProcess.on('error', (err) => {
error(`Error spawning processor: ${err}`);
});
appProcess.on('message', (message) => {
debug('Restarting the development server');
if (message === 'RESTART_ME') {
if (appProcess && appProcess.pid) {
appProcess.removeAllListeners();
appProcess.kill('SIGTERM');
}
startDev();
}
});
return appProcess;
}
const childProcess = startDev();
process.on('exit', () => {
// Cleanup child processes on exit
if (childProcess && childProcess.pid) {
childProcess.kill();
}
});
```
## /packages/evershop/src/bin/dev/initEnvDev.ts
```ts path="/packages/evershop/src/bin/dev/initEnvDev.ts"
import 'dotenv/config';
process.env.NODE_ENV = 'development';
process.env.ALLOW_CONFIG_MUTATIONS = 'true';
```
## /packages/evershop/src/bin/install/templates/config.json
```json path="/packages/evershop/src/bin/install/templates/config.json"
{
"shop": {
"language": "en",
"timezone": "UTC"
},
"system": {
"database": {
"host": "localhost",
"port": 5432,
"database": "evershop",
"user": "admin",
"password": "123456"
}
}
}
```
## /packages/evershop/src/bin/lib/watch/processors/restart.ts
```ts path="/packages/evershop/src/bin/lib/watch/processors/restart.ts"
export function restartProcess() {
process.exit(100);
}
```
The content has been capped at 50000 tokens. The user could consider applying other filters to refine the result. The better and more specific the context, the better the LLM can follow instructions. If the context seems verbose, the user can refine the filter using uithub. Thank you for using https://uithub.com - Perfect LLM context for any GitHub repo.