flowrix 1.0.1-beta.83 → 1.0.1-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.cts +2 -0
- package/package.json +8 -33
- package/dist/module.d.mts +0 -3
- package/dist/module.json +0 -9
- package/dist/module.mjs +0 -338
- package/dist/runtime/composables/Blog/useBlogIndex.d.ts +0 -108
- package/dist/runtime/composables/Blog/useBlogIndex.js +0 -86
- package/dist/runtime/composables/Blog/useBlogMain.d.ts +0 -13
- package/dist/runtime/composables/Blog/useBlogMain.js +0 -7
- package/dist/runtime/composables/Blog/useBlogSidebar.d.ts +0 -7
- package/dist/runtime/composables/Blog/useBlogSidebar.js +0 -37
- package/dist/runtime/composables/Blog/useBlogSingle.d.ts +0 -30
- package/dist/runtime/composables/Blog/useBlogSingle.js +0 -87
- package/dist/runtime/composables/Blog/useMagazineCard.d.ts +0 -13
- package/dist/runtime/composables/Blog/useMagazineCard.js +0 -14
- package/dist/runtime/composables/Blog/useSingleBlogMain.d.ts +0 -20
- package/dist/runtime/composables/Blog/useSingleBlogMain.js +0 -28
- package/dist/runtime/composables/Brand/brand.d.ts +0 -7
- package/dist/runtime/composables/Brand/brand.js +0 -47
- package/dist/runtime/composables/Cart/useCart.d.ts +0 -40
- package/dist/runtime/composables/Cart/useCart.js +0 -10
- package/dist/runtime/composables/Cart/useCartDetail.d.ts +0 -59
- package/dist/runtime/composables/Cart/useCartDetail.js +0 -51
- package/dist/runtime/composables/Category/useCategoryContent.d.ts +0 -9
- package/dist/runtime/composables/Category/useCategoryContent.js +0 -15
- package/dist/runtime/composables/Category/useCategoryGrid.d.ts +0 -40
- package/dist/runtime/composables/Category/useCategoryGrid.js +0 -38
- package/dist/runtime/composables/Category/useCategoryIndex.d.ts +0 -33
- package/dist/runtime/composables/Category/useCategoryIndex.js +0 -65
- package/dist/runtime/composables/Category/useCategoryTop.d.ts +0 -18
- package/dist/runtime/composables/Category/useCategoryTop.js +0 -65
- package/dist/runtime/composables/Checkout/PaymentMethods/useDirectDeposit.d.ts +0 -3
- package/dist/runtime/composables/Checkout/PaymentMethods/useDirectDeposit.js +0 -22
- package/dist/runtime/composables/Checkout/PaymentMethods/useEway.d.ts +0 -8
- package/dist/runtime/composables/Checkout/PaymentMethods/useEway.js +0 -88
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.d.ts +0 -52
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.js +0 -155
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.d.ts +0 -48
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.js +0 -90
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaymentMethods.d.ts +0 -15
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaymentMethods.js +0 -135
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaypal.d.ts +0 -3
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaypal.js +0 -22
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.d.ts +0 -7
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.js +0 -43
- package/dist/runtime/composables/Checkout/PaymentMethods/useZippay.d.ts +0 -3
- package/dist/runtime/composables/Checkout/PaymentMethods/useZippay.js +0 -22
- package/dist/runtime/composables/Checkout/useCheckout.d.ts +0 -197
- package/dist/runtime/composables/Checkout/useCheckout.js +0 -374
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.d.ts +0 -43
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.js +0 -84
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.d.ts +0 -55
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.js +0 -196
- package/dist/runtime/composables/Checkout/useCreateAccount.d.ts +0 -15
- package/dist/runtime/composables/Checkout/useCreateAccount.js +0 -63
- package/dist/runtime/composables/Checkout/useDeliveryMethod.d.ts +0 -4
- package/dist/runtime/composables/Checkout/useDeliveryMethod.js +0 -37
- package/dist/runtime/composables/Customer/useBillingAddress.d.ts +0 -112
- package/dist/runtime/composables/Customer/useBillingAddress.js +0 -93
- package/dist/runtime/composables/Customer/useLogin.d.ts +0 -9
- package/dist/runtime/composables/Customer/useLogin.js +0 -34
- package/dist/runtime/composables/Customer/useOrders.d.ts +0 -29
- package/dist/runtime/composables/Customer/useOrders.js +0 -56
- package/dist/runtime/composables/Customer/usePasswordReset.d.ts +0 -26
- package/dist/runtime/composables/Customer/usePasswordReset.js +0 -258
- package/dist/runtime/composables/Customer/useProfile.d.ts +0 -75
- package/dist/runtime/composables/Customer/useProfile.js +0 -106
- package/dist/runtime/composables/Customer/useQuotations.d.ts +0 -32
- package/dist/runtime/composables/Customer/useQuotations.js +0 -40
- package/dist/runtime/composables/Customer/useRegister.d.ts +0 -127
- package/dist/runtime/composables/Customer/useRegister.js +0 -325
- package/dist/runtime/composables/Customer/useShippingAddress.d.ts +0 -121
- package/dist/runtime/composables/Customer/useShippingAddress.js +0 -145
- package/dist/runtime/composables/Customer/useUpdatePassword.d.ts +0 -21
- package/dist/runtime/composables/Customer/useUpdatePassword.js +0 -94
- package/dist/runtime/composables/Customer/useUserCards.d.ts +0 -22
- package/dist/runtime/composables/Customer/useUserCards.js +0 -65
- package/dist/runtime/composables/Customer/useWishlists.d.ts +0 -25
- package/dist/runtime/composables/Customer/useWishlists.js +0 -183
- package/dist/runtime/composables/Extras/useCountry.d.ts +0 -11
- package/dist/runtime/composables/Extras/useCountry.js +0 -12
- package/dist/runtime/composables/Extras/useDateFormatter.d.ts +0 -4
- package/dist/runtime/composables/Extras/useDateFormatter.js +0 -20
- package/dist/runtime/composables/Extras/useNumberOnly.d.ts +0 -5
- package/dist/runtime/composables/Extras/useNumberOnly.js +0 -21
- package/dist/runtime/composables/Extras/usePasswordFormatter.d.ts +0 -8
- package/dist/runtime/composables/Extras/usePasswordFormatter.js +0 -61
- package/dist/runtime/composables/Extras/useSrcSets.d.ts +0 -8
- package/dist/runtime/composables/Extras/useSrcSets.js +0 -26
- package/dist/runtime/composables/Extras/useTogglePassword.d.ts +0 -4
- package/dist/runtime/composables/Extras/useTogglePassword.js +0 -11
- package/dist/runtime/composables/Footer/useFooter.d.ts +0 -14
- package/dist/runtime/composables/Footer/useFooter.js +0 -61
- package/dist/runtime/composables/Header/useHeader.d.ts +0 -14
- package/dist/runtime/composables/Header/useHeader.js +0 -67
- package/dist/runtime/composables/Menu/MainMenu.d.ts +0 -4
- package/dist/runtime/composables/Menu/MainMenu.js +0 -17
- package/dist/runtime/composables/Product/CustomProduct/useAttributeType.d.ts +0 -3
- package/dist/runtime/composables/Product/CustomProduct/useAttributeType.js +0 -20
- package/dist/runtime/composables/Product/CustomProduct/useAttributes.d.ts +0 -70
- package/dist/runtime/composables/Product/CustomProduct/useAttributes.js +0 -68
- package/dist/runtime/composables/Product/CustomProduct/useCustomProduct.d.ts +0 -74
- package/dist/runtime/composables/Product/CustomProduct/useCustomProduct.js +0 -107
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.d.ts +0 -159
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.js +0 -2080
- package/dist/runtime/composables/Product/CustomProduct/useSingleAttribute.d.ts +0 -4
- package/dist/runtime/composables/Product/CustomProduct/useSingleAttribute.js +0 -27
- package/dist/runtime/composables/Product/CustomProduct/useSingleStep.d.ts +0 -68
- package/dist/runtime/composables/Product/CustomProduct/useSingleStep.js +0 -21
- package/dist/runtime/composables/Product/CustomProduct/useSingleValue.d.ts +0 -67
- package/dist/runtime/composables/Product/CustomProduct/useSingleValue.js +0 -15
- package/dist/runtime/composables/Product/CustomProduct/useSteps.d.ts +0 -74
- package/dist/runtime/composables/Product/CustomProduct/useSteps.js +0 -78
- package/dist/runtime/composables/Product/simpleProduct/useSimpleProduct.d.ts +0 -25
- package/dist/runtime/composables/Product/simpleProduct/useSimpleProduct.js +0 -77
- package/dist/runtime/composables/Product/useProductCard.d.ts +0 -13
- package/dist/runtime/composables/Product/useProductCard.js +0 -88
- package/dist/runtime/composables/Product/useProductComponent.d.ts +0 -5
- package/dist/runtime/composables/Product/useProductComponent.js +0 -23
- package/dist/runtime/composables/Product/useProductSlug.d.ts +0 -8
- package/dist/runtime/composables/Product/useProductSlug.js +0 -25
- package/dist/runtime/composables/Product/useQuickView.d.ts +0 -8
- package/dist/runtime/composables/Product/useQuickView.js +0 -27
- package/dist/runtime/composables/Product/useService.d.ts +0 -17
- package/dist/runtime/composables/Product/useService.js +0 -64
- package/dist/runtime/composables/Product/useTemplate.d.ts +0 -5
- package/dist/runtime/composables/Product/useTemplate.js +0 -21
- package/dist/runtime/composables/Samples/useSamples.d.ts +0 -10
- package/dist/runtime/composables/Samples/useSamples.js +0 -36
- package/dist/runtime/composables/SideBar/Filters/useFilters.d.ts +0 -6
- package/dist/runtime/composables/SideBar/Filters/useFilters.js +0 -51
- package/dist/runtime/composables/SideBar/Filters/useSorting.d.ts +0 -5
- package/dist/runtime/composables/SideBar/Filters/useSorting.js +0 -27
- package/dist/runtime/composables/SideBar/useSideBar.d.ts +0 -8
- package/dist/runtime/composables/SideBar/useSideBar.js +0 -68
- package/dist/runtime/composables/index.d.ts +0 -78
- package/dist/runtime/composables/index.js +0 -78
- package/dist/runtime/composables/types.d.ts +0 -5
- package/dist/runtime/composables/types.js +0 -0
- package/dist/runtime/composables/useAddToCart.d.ts +0 -28
- package/dist/runtime/composables/useAddToCart.js +0 -111
- package/dist/runtime/composables/useAddresses.d.ts +0 -18
- package/dist/runtime/composables/useAddresses.js +0 -126
- package/dist/runtime/composables/useCards.d.ts +0 -19
- package/dist/runtime/composables/useCards.js +0 -73
- package/dist/runtime/composables/useClientApi.d.ts +0 -23
- package/dist/runtime/composables/useClientApi.js +0 -53
- package/dist/runtime/composables/useDataLayer.d.ts +0 -18
- package/dist/runtime/composables/useDataLayer.js +0 -386
- package/dist/runtime/composables/useDynamicHtmlRenderer.d.ts +0 -4
- package/dist/runtime/composables/useDynamicHtmlRenderer.js +0 -33
- package/dist/runtime/composables/useLocation.d.ts +0 -13
- package/dist/runtime/composables/useLocation.js +0 -32
- package/dist/runtime/composables/useLocations.d.ts +0 -12
- package/dist/runtime/composables/useLocations.js +0 -53
- package/dist/runtime/composables/useMetaLayer.d.ts +0 -10
- package/dist/runtime/composables/useMetaLayer.js +0 -263
- package/dist/runtime/composables/useQuotationCheckout.d.ts +0 -78
- package/dist/runtime/composables/useQuotationCheckout.js +0 -138
- package/dist/runtime/composables/useSearch.d.ts +0 -7
- package/dist/runtime/composables/useSearch.js +0 -40
- package/dist/runtime/composables/useSubscriptions.d.ts +0 -13
- package/dist/runtime/composables/useSubscriptions.js +0 -58
- package/dist/runtime/composables/useTikTokDatalayer.d.ts +0 -8
- package/dist/runtime/composables/useTikTokDatalayer.js +0 -165
- package/dist/runtime/composables/useWebforms.d.ts +0 -16
- package/dist/runtime/composables/useWebforms.js +0 -75
- package/dist/runtime/middleware/flowrix.d.ts +0 -7
- package/dist/runtime/middleware/flowrix.js +0 -60
- package/dist/runtime/plugin.d.ts +0 -2
- package/dist/runtime/plugin.js +0 -5
- package/dist/runtime/plugins/persistedstate.client.d.ts +0 -2
- package/dist/runtime/plugins/persistedstate.client.js +0 -9
- package/dist/runtime/server/api/albums.d.ts +0 -2
- package/dist/runtime/server/api/albums.js +0 -18
- package/dist/runtime/server/api/auth/forgot.d.ts +0 -5
- package/dist/runtime/server/api/auth/forgot.js +0 -44
- package/dist/runtime/server/api/auth/login.d.ts +0 -11
- package/dist/runtime/server/api/auth/login.js +0 -68
- package/dist/runtime/server/api/auth/logout.d.ts +0 -5
- package/dist/runtime/server/api/auth/logout.js +0 -23
- package/dist/runtime/server/api/auth/register.d.ts +0 -2
- package/dist/runtime/server/api/auth/register.js +0 -51
- package/dist/runtime/server/api/auth/session.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/session.get.js +0 -46
- package/dist/runtime/server/api/auth/user/reset-password.d.ts +0 -5
- package/dist/runtime/server/api/auth/user/reset-password.js +0 -40
- package/dist/runtime/server/api/auth/user/session.d.ts +0 -2
- package/dist/runtime/server/api/auth/user/session.js +0 -43
- package/dist/runtime/server/api/auth/user/verify-token.d.ts +0 -6
- package/dist/runtime/server/api/auth/user/verify-token.js +0 -50
- package/dist/runtime/server/api/banners.d.ts +0 -3
- package/dist/runtime/server/api/banners.js +0 -41
- package/dist/runtime/server/api/brand/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/brand/[...slug].js +0 -58
- package/dist/runtime/server/api/brand/index.d.ts +0 -2
- package/dist/runtime/server/api/brand/index.js +0 -23
- package/dist/runtime/server/api/cache/[...slug].delete.d.ts +0 -2
- package/dist/runtime/server/api/cache/[...slug].delete.js +0 -40
- package/dist/runtime/server/api/cache/clean.get.d.ts +0 -5
- package/dist/runtime/server/api/cache/clean.get.js +0 -16
- package/dist/runtime/server/api/cart/[slug]/add.d.ts +0 -2
- package/dist/runtime/server/api/cart/[slug]/add.js +0 -21
- package/dist/runtime/server/api/cart/[slug]/update.d.ts +0 -2
- package/dist/runtime/server/api/cart/[slug]/update.js +0 -21
- package/dist/runtime/server/api/cart/related.d.ts +0 -2
- package/dist/runtime/server/api/cart/related.js +0 -21
- package/dist/runtime/server/api/cart/remove.d.ts +0 -2
- package/dist/runtime/server/api/cart/remove.js +0 -21
- package/dist/runtime/server/api/cart/service/[slug]/add.d.ts +0 -2
- package/dist/runtime/server/api/cart/service/[slug]/add.js +0 -16
- package/dist/runtime/server/api/catalog/categories.d.ts +0 -3
- package/dist/runtime/server/api/catalog/categories.js +0 -44
- package/dist/runtime/server/api/catalog/categoriesall.d.ts +0 -3
- package/dist/runtime/server/api/catalog/categoriesall.js +0 -44
- package/dist/runtime/server/api/catalog/featured.d.ts +0 -3
- package/dist/runtime/server/api/catalog/featured.js +0 -42
- package/dist/runtime/server/api/catalog/samples.d.ts +0 -3
- package/dist/runtime/server/api/catalog/samples.js +0 -45
- package/dist/runtime/server/api/catalog/search.d.ts +0 -3
- package/dist/runtime/server/api/catalog/search.js +0 -45
- package/dist/runtime/server/api/category/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/category/[...slug].js +0 -58
- package/dist/runtime/server/api/checkout/applyCoupon.d.ts +0 -2
- package/dist/runtime/server/api/checkout/applyCoupon.js +0 -20
- package/dist/runtime/server/api/checkout/configs.d.ts +0 -2
- package/dist/runtime/server/api/checkout/configs.js +0 -19
- package/dist/runtime/server/api/checkout/countries.d.ts +0 -2
- package/dist/runtime/server/api/checkout/countries.js +0 -17
- package/dist/runtime/server/api/checkout/paymentmethod.d.ts +0 -2
- package/dist/runtime/server/api/checkout/paymentmethod.js +0 -20
- package/dist/runtime/server/api/checkout/quotation/[slug].d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/[slug].js +0 -21
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].js +0 -37
- package/dist/runtime/server/api/checkout/quotation/guest/customer.d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/guest/customer.js +0 -21
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].js +0 -23
- package/dist/runtime/server/api/cmspost/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/cmspost/[...slug].js +0 -49
- package/dist/runtime/server/api/cmspost/all.d.ts +0 -3
- package/dist/runtime/server/api/cmspost/all.js +0 -17
- package/dist/runtime/server/api/company/profile.d.ts +0 -2
- package/dist/runtime/server/api/company/profile.js +0 -18
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.d.ts +0 -3
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.js +0 -19
- package/dist/runtime/server/api/contact-center/webforms/create.d.ts +0 -2
- package/dist/runtime/server/api/contact-center/webforms/create.js +0 -16
- package/dist/runtime/server/api/countries.d.ts +0 -2
- package/dist/runtime/server/api/countries.js +0 -35
- package/dist/runtime/server/api/customer/address/add.d.ts +0 -14
- package/dist/runtime/server/api/customer/address/add.js +0 -33
- package/dist/runtime/server/api/customer/address/delete.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/delete.js +0 -37
- package/dist/runtime/server/api/customer/address/setshipping.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/setshipping.js +0 -41
- package/dist/runtime/server/api/customer/address/update.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/update.js +0 -42
- package/dist/runtime/server/api/customer/cards/delete.d.ts +0 -2
- package/dist/runtime/server/api/customer/cards/delete.js +0 -23
- package/dist/runtime/server/api/customer/cards/get.d.ts +0 -2
- package/dist/runtime/server/api/customer/cards/get.js +0 -17
- package/dist/runtime/server/api/customer/change-password.d.ts +0 -14
- package/dist/runtime/server/api/customer/change-password.js +0 -34
- package/dist/runtime/server/api/customer/checkout.d.ts +0 -2
- package/dist/runtime/server/api/customer/checkout.js +0 -20
- package/dist/runtime/server/api/customer/orders.d.ts +0 -2
- package/dist/runtime/server/api/customer/orders.js +0 -17
- package/dist/runtime/server/api/customer/profile/update.d.ts +0 -14
- package/dist/runtime/server/api/customer/profile/update.js +0 -34
- package/dist/runtime/server/api/customer/quotations.d.ts +0 -2
- package/dist/runtime/server/api/customer/quotations.js +0 -17
- package/dist/runtime/server/api/customer/search.d.ts +0 -2
- package/dist/runtime/server/api/customer/search.js +0 -15
- package/dist/runtime/server/api/customer/tax-invoice.d.ts +0 -8
- package/dist/runtime/server/api/customer/tax-invoice.js +0 -36
- package/dist/runtime/server/api/customer/wishlist/add.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/add.js +0 -30
- package/dist/runtime/server/api/customer/wishlist/createWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/createWishList.js +0 -29
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.js +0 -46
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.js +0 -30
- package/dist/runtime/server/api/customer/wishlist/get.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/get.js +0 -17
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.js +0 -21
- package/dist/runtime/server/api/customer/wishlist/updateWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/updateWishList.js +0 -30
- package/dist/runtime/server/api/featured.d.ts +0 -2
- package/dist/runtime/server/api/featured.js +0 -16
- package/dist/runtime/server/api/generate/sitemap.get.d.ts +0 -5
- package/dist/runtime/server/api/generate/sitemap.get.js +0 -13
- package/dist/runtime/server/api/location.d.ts +0 -2
- package/dist/runtime/server/api/location.js +0 -13
- package/dist/runtime/server/api/nav/[id]/links.d.ts +0 -2
- package/dist/runtime/server/api/nav/[id]/links.js +0 -19
- package/dist/runtime/server/api/page/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/page/[...slug].js +0 -49
- package/dist/runtime/server/api/product/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/product/[...slug].js +0 -47
- package/dist/runtime/server/api/quickview/[slug].d.ts +0 -2
- package/dist/runtime/server/api/quickview/[slug].js +0 -16
- package/dist/runtime/server/api/samples.d.ts +0 -3
- package/dist/runtime/server/api/samples.js +0 -20
- package/dist/runtime/server/api/search.d.ts +0 -3
- package/dist/runtime/server/api/search.js +0 -15
- package/dist/runtime/server/api/service/[slug].d.ts +0 -3
- package/dist/runtime/server/api/service/[slug].js +0 -52
- package/dist/runtime/server/api/service/availability.d.ts +0 -2
- package/dist/runtime/server/api/service/availability.js +0 -27
- package/dist/runtime/server/api/service/getall.d.ts +0 -3
- package/dist/runtime/server/api/service/getall.js +0 -52
- package/dist/runtime/server/api/shop.d.ts +0 -3
- package/dist/runtime/server/api/shop.js +0 -15
- package/dist/runtime/server/api/subscribe.d.ts +0 -2
- package/dist/runtime/server/api/subscribe.js +0 -16
- package/dist/runtime/server/api/v2/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/v2/[...slug].js +0 -11
- package/dist/runtime/server/api/webform.d.ts +0 -3
- package/dist/runtime/server/api/webform.js +0 -16
- package/dist/runtime/server/tsconfig.json +0 -3
- package/dist/runtime/stores/Booking.d.ts +0 -99
- package/dist/runtime/stores/Booking.js +0 -96
- package/dist/runtime/stores/Cart.d.ts +0 -79
- package/dist/runtime/stores/Cart.js +0 -310
- package/dist/runtime/stores/Categories.d.ts +0 -13
- package/dist/runtime/stores/Categories.js +0 -90
- package/dist/runtime/stores/Checkout.d.ts +0 -79
- package/dist/runtime/stores/Checkout.js +0 -208
- package/dist/runtime/stores/IpLocation.d.ts +0 -18
- package/dist/runtime/stores/IpLocation.js +0 -29
- package/dist/runtime/stores/NavMenu.d.ts +0 -15
- package/dist/runtime/stores/NavMenu.js +0 -26
- package/dist/runtime/stores/Search.d.ts +0 -5
- package/dist/runtime/stores/Search.js +0 -33
- package/dist/runtime/stores/Services.d.ts +0 -7
- package/dist/runtime/stores/Services.js +0 -49
- package/dist/runtime/stores/Utilities.d.ts +0 -5
- package/dist/runtime/stores/Utilities.js +0 -11
- package/dist/runtime/stores/addresses.d.ts +0 -15
- package/dist/runtime/stores/addresses.js +0 -31
- package/dist/runtime/stores/auth.d.ts +0 -59
- package/dist/runtime/stores/auth.js +0 -441
- package/dist/runtime/stores/cards.d.ts +0 -15
- package/dist/runtime/stores/cards.js +0 -22
- package/dist/runtime/stores/compareStore.d.ts +0 -7
- package/dist/runtime/stores/compareStore.js +0 -45
- package/dist/runtime/stores/countries.d.ts +0 -8
- package/dist/runtime/stores/countries.js +0 -15
- package/dist/runtime/stores/index.d.ts +0 -26
- package/dist/runtime/stores/index.js +0 -24
- package/dist/runtime/stores/locations.d.ts +0 -11
- package/dist/runtime/stores/locations.js +0 -19
- package/dist/runtime/stores/orders.d.ts +0 -16
- package/dist/runtime/stores/orders.js +0 -19
- package/dist/runtime/stores/product/README.md +0 -141
- package/dist/runtime/stores/product/slug.d.ts +0 -165
- package/dist/runtime/stores/product/slug.js +0 -91
- package/dist/runtime/stores/product.d.ts +0 -5
- package/dist/runtime/stores/product.js +0 -38
- package/dist/runtime/stores/quotations.d.ts +0 -12
- package/dist/runtime/stores/quotations.js +0 -19
- package/dist/runtime/stores/subscriptions.d.ts +0 -11
- package/dist/runtime/stores/subscriptions.js +0 -19
- package/dist/runtime/stores/useCompanyProfile.d.ts +0 -7
- package/dist/runtime/stores/useCompanyProfile.js +0 -22
- package/dist/runtime/stores/useNavMenuStore.d.ts +0 -5
- package/dist/runtime/stores/useNavMenuStore.js +0 -23
- package/dist/runtime/stores/webforms.d.ts +0 -18
- package/dist/runtime/stores/webforms.js +0 -23
- package/dist/runtime/stores/wishlists.d.ts +0 -136
- package/dist/runtime/stores/wishlists.js +0 -249
- package/dist/runtime/utils/api.d.ts +0 -13
- package/dist/runtime/utils/api.js +0 -98
- package/dist/runtime/utils/companyProfile.d.ts +0 -22
- package/dist/runtime/utils/companyProfile.js +0 -21
- package/dist/runtime/utils/htmlCache.d.ts +0 -5
- package/dist/runtime/utils/htmlCache.js +0 -64
- package/dist/types.d.mts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowrix",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.85",
|
|
4
4
|
"description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,42 +28,17 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"prepack": "nuxt-module-build build",
|
|
33
|
-
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
34
|
-
"dev:build": "nuxi build playground",
|
|
35
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
36
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
37
|
-
"lint": "eslint .",
|
|
38
|
-
"test": "vitest run",
|
|
39
|
-
"test:watch": "vitest watch",
|
|
40
|
-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
41
|
-
},
|
|
42
31
|
"dependencies": {
|
|
43
|
-
"@nuxt/image": "
|
|
32
|
+
"@nuxt/image": "1.11.0",
|
|
44
33
|
"@nuxt/kit": "4.2.0",
|
|
45
|
-
"@nuxtjs/seo": "
|
|
34
|
+
"@nuxtjs/seo": "3.2.2",
|
|
46
35
|
"@pinia/nuxt": "0.7.0",
|
|
47
36
|
"@stripe/stripe-js": "8.2.0",
|
|
48
|
-
"@vueuse/nuxt": "
|
|
49
|
-
"nuxt-gtag": "
|
|
50
|
-
"nuxt-swiper": "
|
|
51
|
-
"nuxt-toast": "
|
|
37
|
+
"@vueuse/nuxt": "14.0.0",
|
|
38
|
+
"nuxt-gtag": "4.1.0",
|
|
39
|
+
"nuxt-swiper": "2.0.1",
|
|
40
|
+
"nuxt-toast": "1.4.0",
|
|
52
41
|
"pinia": "2.3.1",
|
|
53
|
-
"pinia-plugin-persistedstate": "
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@nuxt/devtools": "2.6.5",
|
|
57
|
-
"@nuxt/eslint-config": "1.9.0",
|
|
58
|
-
"@nuxt/module-builder": "^1.0.2",
|
|
59
|
-
"@nuxt/schema": "4.2.0",
|
|
60
|
-
"@nuxt/test-utils": "3.19.2",
|
|
61
|
-
"@types/node": "24.9.1",
|
|
62
|
-
"changelogen": "0.6.2",
|
|
63
|
-
"eslint": "9.38.0",
|
|
64
|
-
"nuxt": "4.2.0",
|
|
65
|
-
"typescript": "5.9.3",
|
|
66
|
-
"vitest": "3.2.4",
|
|
67
|
-
"vue-tsc": "3.1.1"
|
|
42
|
+
"pinia-plugin-persistedstate": "3.2.3"
|
|
68
43
|
}
|
|
69
44
|
}
|
package/dist/module.d.mts
DELETED
package/dist/module.json
DELETED
package/dist/module.mjs
DELETED
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, installModule, addServerHandler, addImportsDir, addPlugin, addImports } from '@nuxt/kit';
|
|
2
|
-
|
|
3
|
-
const module$1 = defineNuxtModule({
|
|
4
|
-
meta: {
|
|
5
|
-
name: "flowrix",
|
|
6
|
-
configKey: "flowrix"
|
|
7
|
-
},
|
|
8
|
-
defaults: {},
|
|
9
|
-
async setup(_options, nuxt) {
|
|
10
|
-
const env = process.env;
|
|
11
|
-
const runtimeConfig = nuxt.options.runtimeConfig;
|
|
12
|
-
runtimeConfig.FLOWRIX_API_KEY ||= env.FLOWRIX_API_KEY || "";
|
|
13
|
-
runtimeConfig.FLOWRIX_API_SECRET ||= env.FLOWRIX_API_SECRET || "";
|
|
14
|
-
runtimeConfig.FLOWRIX_API_ORIGIN ||= env.FLOWRIX_API_ORIGIN || "";
|
|
15
|
-
runtimeConfig.FLOWRIX_API_BASE ||= env.FLOWRIX_API_BASE || "";
|
|
16
|
-
runtimeConfig.FLOWRIX_API_BASE_V2 ||= env.FLOWRIX_API_BASE_V2 || "";
|
|
17
|
-
runtimeConfig.FLOWRIX_CACHE ||= env.FLOWRIX_CACHE || "";
|
|
18
|
-
Object.assign(runtimeConfig.public, {
|
|
19
|
-
...runtimeConfig.public,
|
|
20
|
-
FLOWRIX_API_KEY: runtimeConfig.public.FLOWRIX_API_KEY || env.FLOWRIX_API_KEY || "",
|
|
21
|
-
FLOWRIX_API_SECRET: runtimeConfig.public.FLOWRIX_API_SECRET || env.FLOWRIX_API_SECRET || "",
|
|
22
|
-
FLOWRIX_API_ORIGIN: runtimeConfig.public.FLOWRIX_API_ORIGIN || env.FLOWRIX_API_ORIGIN || "",
|
|
23
|
-
FLOWRIX_API_BASE: runtimeConfig.public.FLOWRIX_API_BASE || env.FLOWRIX_API_BASE || "",
|
|
24
|
-
FLOWRIX_API_BASE_V2: runtimeConfig.public.FLOWRIX_API_BASE_V2 || env.FLOWRIX_API_BASE_V2 || "",
|
|
25
|
-
FLOWRIX_CACHE: runtimeConfig.public.FLOWRIX_CACHE || env.FLOWRIX_CACHE || ""
|
|
26
|
-
});
|
|
27
|
-
const resolver = createResolver(import.meta.url);
|
|
28
|
-
await installModule("@pinia/nuxt");
|
|
29
|
-
addServerHandler({
|
|
30
|
-
middleware: true,
|
|
31
|
-
handler: resolver.resolve("./runtime/utils/htmlCache")
|
|
32
|
-
});
|
|
33
|
-
addImportsDir(resolver.resolve("./runtime/stores"));
|
|
34
|
-
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
35
|
-
addPlugin({
|
|
36
|
-
src: resolver.resolve("./runtime/plugin"),
|
|
37
|
-
mode: "all"
|
|
38
|
-
});
|
|
39
|
-
addImports({
|
|
40
|
-
from: resolver.resolve("./runtime/middleware/flowrix"),
|
|
41
|
-
name: "flowrixApi"
|
|
42
|
-
});
|
|
43
|
-
addServerHandler({
|
|
44
|
-
route: "/api/albums",
|
|
45
|
-
handler: resolver.resolve("./runtime/server/api/albums")
|
|
46
|
-
});
|
|
47
|
-
addServerHandler({
|
|
48
|
-
route: "/api/banners",
|
|
49
|
-
handler: resolver.resolve("./runtime/server/api/banners")
|
|
50
|
-
});
|
|
51
|
-
addServerHandler({
|
|
52
|
-
route: "/api/location",
|
|
53
|
-
handler: resolver.resolve("./runtime/server/api/location")
|
|
54
|
-
});
|
|
55
|
-
addServerHandler({
|
|
56
|
-
route: "/api/subscribe",
|
|
57
|
-
handler: resolver.resolve("./runtime/server/api/subscribe")
|
|
58
|
-
});
|
|
59
|
-
addServerHandler({
|
|
60
|
-
route: "/api/auth/forgot",
|
|
61
|
-
handler: resolver.resolve("./runtime/server/api/auth/forgot")
|
|
62
|
-
});
|
|
63
|
-
addServerHandler({
|
|
64
|
-
route: "/api/auth/login",
|
|
65
|
-
handler: resolver.resolve("./runtime/server/api/auth/login")
|
|
66
|
-
});
|
|
67
|
-
addServerHandler({
|
|
68
|
-
route: "/api/auth/logout",
|
|
69
|
-
handler: resolver.resolve("./runtime/server/api/auth/logout")
|
|
70
|
-
});
|
|
71
|
-
addServerHandler({
|
|
72
|
-
route: "/api/auth/register",
|
|
73
|
-
handler: resolver.resolve("./runtime/server/api/auth/register")
|
|
74
|
-
});
|
|
75
|
-
addServerHandler({
|
|
76
|
-
route: "/api/auth/session",
|
|
77
|
-
handler: resolver.resolve("./runtime/server/api/auth/session.get")
|
|
78
|
-
});
|
|
79
|
-
addServerHandler({
|
|
80
|
-
route: "/api/auth/user/reset-password",
|
|
81
|
-
handler: resolver.resolve("./runtime/server/api/auth/user/reset-password")
|
|
82
|
-
});
|
|
83
|
-
addServerHandler({
|
|
84
|
-
route: "/api/auth/user/session",
|
|
85
|
-
handler: resolver.resolve("./runtime/server/api/auth/user/session")
|
|
86
|
-
});
|
|
87
|
-
addServerHandler({
|
|
88
|
-
route: "/api/auth/user/verify-token",
|
|
89
|
-
handler: resolver.resolve("./runtime/server/api/auth/user/verify-token")
|
|
90
|
-
});
|
|
91
|
-
addServerHandler({
|
|
92
|
-
route: "/api/cmspost/**",
|
|
93
|
-
handler: resolver.resolve("./runtime/server/api/cmspost/[...slug]")
|
|
94
|
-
});
|
|
95
|
-
addServerHandler({
|
|
96
|
-
route: "/api/cmspost/all",
|
|
97
|
-
handler: resolver.resolve("./runtime/server/api/cmspost/all")
|
|
98
|
-
});
|
|
99
|
-
addServerHandler({
|
|
100
|
-
route: "/api/brand",
|
|
101
|
-
handler: resolver.resolve("./runtime/server/api/brand")
|
|
102
|
-
});
|
|
103
|
-
addServerHandler({
|
|
104
|
-
route: "/api/brand/**",
|
|
105
|
-
handler: resolver.resolve("./runtime/server/api/brand/[...slug]")
|
|
106
|
-
});
|
|
107
|
-
addServerHandler({
|
|
108
|
-
route: "/api/cart/remove",
|
|
109
|
-
handler: resolver.resolve("./runtime/server/api/cart/remove")
|
|
110
|
-
});
|
|
111
|
-
addServerHandler({
|
|
112
|
-
route: "/api/cart/:slug/add",
|
|
113
|
-
handler: resolver.resolve("./runtime/server/api/cart/[slug]/add")
|
|
114
|
-
});
|
|
115
|
-
addServerHandler({
|
|
116
|
-
route: "/api/cart/:slug/update",
|
|
117
|
-
handler: resolver.resolve("./runtime/server/api/cart/[slug]/update")
|
|
118
|
-
});
|
|
119
|
-
addServerHandler({
|
|
120
|
-
route: "/api/cart/service/:slug/add",
|
|
121
|
-
handler: resolver.resolve("./runtime/server/api/cart/service/[slug]/add")
|
|
122
|
-
});
|
|
123
|
-
addServerHandler({
|
|
124
|
-
route: "/api/cart/related",
|
|
125
|
-
handler: resolver.resolve("./runtime/server/api/cart/related")
|
|
126
|
-
});
|
|
127
|
-
addServerHandler({
|
|
128
|
-
route: "/api/catalog/categories",
|
|
129
|
-
handler: resolver.resolve("./runtime/server/api/catalog/categories")
|
|
130
|
-
});
|
|
131
|
-
addServerHandler({
|
|
132
|
-
route: "/api/catalog/categories/all",
|
|
133
|
-
handler: resolver.resolve("./runtime/server/api/catalog/categoriesall")
|
|
134
|
-
});
|
|
135
|
-
addServerHandler({
|
|
136
|
-
route: "/api/catalog/featured",
|
|
137
|
-
handler: resolver.resolve("./runtime/server/api/catalog/featured")
|
|
138
|
-
});
|
|
139
|
-
addServerHandler({
|
|
140
|
-
route: "/api/catalog/samples",
|
|
141
|
-
handler: resolver.resolve("./runtime/server/api/catalog/samples")
|
|
142
|
-
});
|
|
143
|
-
addServerHandler({
|
|
144
|
-
route: "/api/catalog/search",
|
|
145
|
-
handler: resolver.resolve("./runtime/server/api/catalog/search")
|
|
146
|
-
});
|
|
147
|
-
addServerHandler({
|
|
148
|
-
route: "/api/category/**",
|
|
149
|
-
handler: resolver.resolve("./runtime/server/api/category/[...slug]")
|
|
150
|
-
});
|
|
151
|
-
addServerHandler({
|
|
152
|
-
route: "/api/checkout/applyCoupon",
|
|
153
|
-
handler: resolver.resolve("./runtime/server/api/checkout/applyCoupon")
|
|
154
|
-
});
|
|
155
|
-
addServerHandler({
|
|
156
|
-
route: "/api/checkout/configs",
|
|
157
|
-
handler: resolver.resolve("./runtime/server/api/checkout/configs")
|
|
158
|
-
});
|
|
159
|
-
addServerHandler({
|
|
160
|
-
route: "/api/checkout/countries",
|
|
161
|
-
handler: resolver.resolve("./runtime/server/api/checkout/countries")
|
|
162
|
-
});
|
|
163
|
-
addServerHandler({
|
|
164
|
-
route: "/api/checkout/paymentmethod",
|
|
165
|
-
handler: resolver.resolve("./runtime/server/api/checkout/paymentmethod")
|
|
166
|
-
});
|
|
167
|
-
addServerHandler({
|
|
168
|
-
route: "/api/checkout/quotation/guest/:slug",
|
|
169
|
-
handler: resolver.resolve("./runtime/server/api/checkout/quotation/guest/[slug]")
|
|
170
|
-
});
|
|
171
|
-
addServerHandler({
|
|
172
|
-
route: "/api/checkout/quotation/submit/:slug",
|
|
173
|
-
handler: resolver.resolve("./runtime/server/api/checkout/quotation/submit/[slug]")
|
|
174
|
-
});
|
|
175
|
-
addServerHandler({
|
|
176
|
-
route: "/api/checkout/quotation/:slug",
|
|
177
|
-
handler: resolver.resolve("./runtime/server/api/checkout/quotation/[slug]")
|
|
178
|
-
});
|
|
179
|
-
addServerHandler({
|
|
180
|
-
route: "/api/company/profile",
|
|
181
|
-
handler: resolver.resolve("./runtime/server/api/company/profile")
|
|
182
|
-
});
|
|
183
|
-
addServerHandler({
|
|
184
|
-
route: "/api/countries",
|
|
185
|
-
handler: resolver.resolve("./runtime/server/api/countries")
|
|
186
|
-
});
|
|
187
|
-
addServerHandler({
|
|
188
|
-
route: "/api/contact-center/webforms/create",
|
|
189
|
-
handler: resolver.resolve("./runtime/server/api/contact-center/webforms/create")
|
|
190
|
-
});
|
|
191
|
-
addServerHandler({
|
|
192
|
-
route: "/api/contact-center/webforms/:id/details",
|
|
193
|
-
handler: resolver.resolve("./runtime/server/api/contact-center/webforms/[id]/details")
|
|
194
|
-
});
|
|
195
|
-
addServerHandler({
|
|
196
|
-
route: "/api/customer/change-password",
|
|
197
|
-
handler: resolver.resolve("./runtime/server/api/customer/change-password")
|
|
198
|
-
});
|
|
199
|
-
addServerHandler({
|
|
200
|
-
route: "/api/customer/checkout",
|
|
201
|
-
handler: resolver.resolve("./runtime/server/api/customer/checkout")
|
|
202
|
-
});
|
|
203
|
-
addServerHandler({
|
|
204
|
-
route: "/api/customer/orders",
|
|
205
|
-
handler: resolver.resolve("./runtime/server/api/customer/orders")
|
|
206
|
-
});
|
|
207
|
-
addServerHandler({
|
|
208
|
-
route: "/api/customer/quotations",
|
|
209
|
-
handler: resolver.resolve("./runtime/server/api/customer/quotations")
|
|
210
|
-
});
|
|
211
|
-
addServerHandler({
|
|
212
|
-
route: "/api/customer/search",
|
|
213
|
-
handler: resolver.resolve("./runtime/server/api/customer/search")
|
|
214
|
-
});
|
|
215
|
-
addServerHandler({
|
|
216
|
-
route: "/api/customer/tax-invoice",
|
|
217
|
-
handler: resolver.resolve("./runtime/server/api/customer/tax-invoice")
|
|
218
|
-
});
|
|
219
|
-
addServerHandler({
|
|
220
|
-
route: "/api/customer/address/add",
|
|
221
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/add")
|
|
222
|
-
});
|
|
223
|
-
addServerHandler({
|
|
224
|
-
route: "/api/customer/address/delete",
|
|
225
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/delete")
|
|
226
|
-
});
|
|
227
|
-
addServerHandler({
|
|
228
|
-
route: "/api/customer/address/setshipping",
|
|
229
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/setshipping")
|
|
230
|
-
});
|
|
231
|
-
addServerHandler({
|
|
232
|
-
route: "/api/customer/address/update",
|
|
233
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/update")
|
|
234
|
-
});
|
|
235
|
-
addServerHandler({
|
|
236
|
-
route: "/api/customer/cards/delete",
|
|
237
|
-
handler: resolver.resolve("./runtime/server/api/customer/cards/delete")
|
|
238
|
-
});
|
|
239
|
-
addServerHandler({
|
|
240
|
-
route: "/api/customer/cards/get",
|
|
241
|
-
handler: resolver.resolve("./runtime/server/api/customer/cards/get")
|
|
242
|
-
});
|
|
243
|
-
addServerHandler({
|
|
244
|
-
route: "/api/customer/profile/update",
|
|
245
|
-
handler: resolver.resolve("./runtime/server/api/customer/profile/update")
|
|
246
|
-
});
|
|
247
|
-
addServerHandler({
|
|
248
|
-
route: "/api/customer/wishlist/add",
|
|
249
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/add")
|
|
250
|
-
});
|
|
251
|
-
addServerHandler({
|
|
252
|
-
route: "/api/customer/wishlist/createWishList",
|
|
253
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/createWishList")
|
|
254
|
-
});
|
|
255
|
-
addServerHandler({
|
|
256
|
-
route: "/api/customer/wishlist/deleteFromWishList",
|
|
257
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/deleteFromWishList")
|
|
258
|
-
});
|
|
259
|
-
addServerHandler({
|
|
260
|
-
route: "/api/customer/wishlist/deleteWishList",
|
|
261
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/deleteWishList")
|
|
262
|
-
});
|
|
263
|
-
addServerHandler({
|
|
264
|
-
route: "/api/customer/wishlist/get",
|
|
265
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/get")
|
|
266
|
-
});
|
|
267
|
-
addServerHandler({
|
|
268
|
-
route: "/api/customer/wishlist/getWishListItems",
|
|
269
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/getWishListItems")
|
|
270
|
-
});
|
|
271
|
-
addServerHandler({
|
|
272
|
-
route: "/api/customer/wishlist/updateWishList",
|
|
273
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/updateWishList")
|
|
274
|
-
});
|
|
275
|
-
addServerHandler({
|
|
276
|
-
route: "/api/nav/:id/links",
|
|
277
|
-
handler: resolver.resolve("./runtime/server/api/nav/[id]/links")
|
|
278
|
-
});
|
|
279
|
-
addServerHandler({
|
|
280
|
-
route: "/api/page/**",
|
|
281
|
-
handler: resolver.resolve("./runtime/server/api/page/[...slug]")
|
|
282
|
-
});
|
|
283
|
-
addServerHandler({
|
|
284
|
-
route: "/api/product/**",
|
|
285
|
-
handler: resolver.resolve("./runtime/server/api/product/[...slug]")
|
|
286
|
-
});
|
|
287
|
-
addServerHandler({
|
|
288
|
-
route: "/api/quickview/:slug",
|
|
289
|
-
handler: resolver.resolve("./runtime/server/api/quickview/[slug]")
|
|
290
|
-
});
|
|
291
|
-
addServerHandler({
|
|
292
|
-
route: "/api/service/:slug",
|
|
293
|
-
handler: resolver.resolve("./runtime/server/api/service/[slug]")
|
|
294
|
-
});
|
|
295
|
-
addServerHandler({
|
|
296
|
-
route: "/api/service/getall",
|
|
297
|
-
handler: resolver.resolve("./runtime/server/api/service/getall")
|
|
298
|
-
});
|
|
299
|
-
addServerHandler({
|
|
300
|
-
route: "/api/service/availability",
|
|
301
|
-
handler: resolver.resolve("./runtime/server/api/service/availability")
|
|
302
|
-
});
|
|
303
|
-
addServerHandler({
|
|
304
|
-
route: "/api/v2/**",
|
|
305
|
-
handler: resolver.resolve("./runtime/server/api/v2/[...slug]")
|
|
306
|
-
});
|
|
307
|
-
addServerHandler({
|
|
308
|
-
route: "/api/shop",
|
|
309
|
-
handler: resolver.resolve("./runtime/server/api/shop")
|
|
310
|
-
});
|
|
311
|
-
addServerHandler({
|
|
312
|
-
route: "/api/featured",
|
|
313
|
-
handler: resolver.resolve("./runtime/server/api/featured")
|
|
314
|
-
});
|
|
315
|
-
addServerHandler({
|
|
316
|
-
route: "/api/samples",
|
|
317
|
-
handler: resolver.resolve("./runtime/server/api/samples")
|
|
318
|
-
});
|
|
319
|
-
addServerHandler({
|
|
320
|
-
route: "/api/webform",
|
|
321
|
-
handler: resolver.resolve("./runtime/server/api/webform")
|
|
322
|
-
});
|
|
323
|
-
addServerHandler({
|
|
324
|
-
route: "/api/cache/clean",
|
|
325
|
-
handler: resolver.resolve("./runtime/server/api/cache/clean.get")
|
|
326
|
-
});
|
|
327
|
-
addServerHandler({
|
|
328
|
-
route: "/api/cache/**",
|
|
329
|
-
handler: resolver.resolve("./runtime/server/api/cache/[...slug].delete")
|
|
330
|
-
});
|
|
331
|
-
addServerHandler({
|
|
332
|
-
route: "/sitemap/**",
|
|
333
|
-
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
export { module$1 as default };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
interface BlogPost {
|
|
2
|
-
id: number;
|
|
3
|
-
category: string;
|
|
4
|
-
title: string;
|
|
5
|
-
name: string;
|
|
6
|
-
image: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}
|
|
9
|
-
interface BlogCategory {
|
|
10
|
-
name: string;
|
|
11
|
-
url: string;
|
|
12
|
-
}
|
|
13
|
-
interface BlogData {
|
|
14
|
-
data: {
|
|
15
|
-
posts: {
|
|
16
|
-
data: BlogPost[];
|
|
17
|
-
};
|
|
18
|
-
categories: BlogCategory[];
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare const useBlogIndex: () => {
|
|
22
|
-
activeCategory: import("vue").Ref<string, string>;
|
|
23
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
24
|
-
shopQuery: import("vue").Ref<{
|
|
25
|
-
limit: number;
|
|
26
|
-
page: number;
|
|
27
|
-
category: string;
|
|
28
|
-
search: string;
|
|
29
|
-
}, {
|
|
30
|
-
limit: number;
|
|
31
|
-
page: number;
|
|
32
|
-
category: string;
|
|
33
|
-
search: string;
|
|
34
|
-
} | {
|
|
35
|
-
limit: number;
|
|
36
|
-
page: number;
|
|
37
|
-
category: string;
|
|
38
|
-
search: string;
|
|
39
|
-
}>;
|
|
40
|
-
PostItems: import("vue").Ref<{
|
|
41
|
-
id: number;
|
|
42
|
-
category: string;
|
|
43
|
-
title: string;
|
|
44
|
-
name: string;
|
|
45
|
-
image: string;
|
|
46
|
-
url: string;
|
|
47
|
-
}[], BlogPost[] | {
|
|
48
|
-
id: number;
|
|
49
|
-
category: string;
|
|
50
|
-
title: string;
|
|
51
|
-
name: string;
|
|
52
|
-
image: string;
|
|
53
|
-
url: string;
|
|
54
|
-
}[]>;
|
|
55
|
-
PostsData: import("vue").Ref<{
|
|
56
|
-
data: {
|
|
57
|
-
posts: {
|
|
58
|
-
data: {
|
|
59
|
-
id: number;
|
|
60
|
-
category: string;
|
|
61
|
-
title: string;
|
|
62
|
-
name: string;
|
|
63
|
-
image: string;
|
|
64
|
-
url: string;
|
|
65
|
-
}[];
|
|
66
|
-
};
|
|
67
|
-
categories: {
|
|
68
|
-
name: string;
|
|
69
|
-
url: string;
|
|
70
|
-
}[];
|
|
71
|
-
};
|
|
72
|
-
} | null, BlogData | {
|
|
73
|
-
data: {
|
|
74
|
-
posts: {
|
|
75
|
-
data: {
|
|
76
|
-
id: number;
|
|
77
|
-
category: string;
|
|
78
|
-
title: string;
|
|
79
|
-
name: string;
|
|
80
|
-
image: string;
|
|
81
|
-
url: string;
|
|
82
|
-
}[];
|
|
83
|
-
};
|
|
84
|
-
categories: {
|
|
85
|
-
name: string;
|
|
86
|
-
url: string;
|
|
87
|
-
}[];
|
|
88
|
-
};
|
|
89
|
-
} | null>;
|
|
90
|
-
total: import("vue").Ref<number, number>;
|
|
91
|
-
displayPosts: import("vue").ComputedRef<{
|
|
92
|
-
id: number;
|
|
93
|
-
category: string;
|
|
94
|
-
title: string;
|
|
95
|
-
name: string;
|
|
96
|
-
image: string;
|
|
97
|
-
url: string;
|
|
98
|
-
}[]>;
|
|
99
|
-
progressPercentage: import("vue").ComputedRef<number>;
|
|
100
|
-
canLoadMore: import("vue").ComputedRef<boolean>;
|
|
101
|
-
loadMore: () => Promise<void>;
|
|
102
|
-
clearSearch: () => void;
|
|
103
|
-
fetchBlogData: () => Promise<{
|
|
104
|
-
data: any;
|
|
105
|
-
pending: any;
|
|
106
|
-
}>;
|
|
107
|
-
};
|
|
108
|
-
export {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { ref, computed, watch, onMounted } from "vue";
|
|
2
|
-
import { useFetch } from "#imports";
|
|
3
|
-
export const useBlogIndex = () => {
|
|
4
|
-
const activeCategory = ref("All");
|
|
5
|
-
const loading = ref(false);
|
|
6
|
-
const limit = 4;
|
|
7
|
-
const currentIndex = ref(0);
|
|
8
|
-
const total = ref(0);
|
|
9
|
-
const shopQuery = ref({
|
|
10
|
-
limit: 6,
|
|
11
|
-
page: 1,
|
|
12
|
-
category: "",
|
|
13
|
-
search: ""
|
|
14
|
-
});
|
|
15
|
-
const PostItems = ref([]);
|
|
16
|
-
const PostsData = ref(null);
|
|
17
|
-
const queryString = (querydata) => {
|
|
18
|
-
const params = new URLSearchParams();
|
|
19
|
-
params.append("limit", querydata.limit.toString());
|
|
20
|
-
params.append("page", querydata.page.toString());
|
|
21
|
-
params.append("category", querydata.category !== "All" ? querydata.category : "");
|
|
22
|
-
params.append("search", querydata.search);
|
|
23
|
-
return params.toString();
|
|
24
|
-
};
|
|
25
|
-
const loadMore = async () => {
|
|
26
|
-
if (loading.value || currentIndex.value >= total.value) return;
|
|
27
|
-
loading.value = true;
|
|
28
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
29
|
-
shopQuery.value.page += 1;
|
|
30
|
-
await fetchBlogData();
|
|
31
|
-
loading.value = false;
|
|
32
|
-
};
|
|
33
|
-
const clearSearch = () => {
|
|
34
|
-
PostItems.value = [];
|
|
35
|
-
shopQuery.value.page = 1;
|
|
36
|
-
shopQuery.value.search = "";
|
|
37
|
-
currentIndex.value = 0;
|
|
38
|
-
};
|
|
39
|
-
const fetchBlogData = async () => {
|
|
40
|
-
try {
|
|
41
|
-
const { data, pending } = await useFetch(() => `/api/blog/blog?${queryString(shopQuery.value)}`, {
|
|
42
|
-
method: "POST",
|
|
43
|
-
watch: [() => shopQuery.value.category],
|
|
44
|
-
server: false
|
|
45
|
-
});
|
|
46
|
-
watch(data, (newData) => {
|
|
47
|
-
if (newData) {
|
|
48
|
-
PostsData.value = newData;
|
|
49
|
-
PostItems.value.push(...newData.data?.posts?.data || []);
|
|
50
|
-
total.value = newData.data?.posts?.data.length || 0;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
onMounted(() => {
|
|
54
|
-
if (data.value) {
|
|
55
|
-
PostsData.value = data.value;
|
|
56
|
-
PostItems.value.push(...data.value.data?.posts?.data || []);
|
|
57
|
-
total.value = data.value.data?.posts?.data.length || 0;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
return { data, pending };
|
|
61
|
-
} catch (error) {
|
|
62
|
-
console.error("Failed to fetch blog data:", error);
|
|
63
|
-
return { data: ref(null), pending: ref(false) };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const displayPosts = computed(() => PostItems.value);
|
|
67
|
-
const progressPercentage = computed(() => PostItems.value.length / total.value * 100);
|
|
68
|
-
const canLoadMore = computed(() => !loading.value && PostItems.value.length < total.value);
|
|
69
|
-
return {
|
|
70
|
-
// State
|
|
71
|
-
activeCategory,
|
|
72
|
-
loading,
|
|
73
|
-
shopQuery,
|
|
74
|
-
PostItems,
|
|
75
|
-
PostsData,
|
|
76
|
-
total,
|
|
77
|
-
// Computed
|
|
78
|
-
displayPosts,
|
|
79
|
-
progressPercentage,
|
|
80
|
-
canLoadMore,
|
|
81
|
-
// Methods
|
|
82
|
-
loadMore,
|
|
83
|
-
clearSearch,
|
|
84
|
-
fetchBlogData
|
|
85
|
-
};
|
|
86
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface BlogPost {
|
|
2
|
-
name: string;
|
|
3
|
-
short_description: string;
|
|
4
|
-
url: string;
|
|
5
|
-
image: string;
|
|
6
|
-
}
|
|
7
|
-
interface BlogMainProps {
|
|
8
|
-
post: BlogPost;
|
|
9
|
-
}
|
|
10
|
-
export declare const useBlogMain: (props: BlogMainProps) => {
|
|
11
|
-
post: import("vue").ComputedRef<BlogPost>;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const useBlogSidebar: () => {
|
|
2
|
-
categories: import("vue").Ref<string[], string[]>;
|
|
3
|
-
email: import("vue").Ref<string, string>;
|
|
4
|
-
isSubscribing: import("vue").Ref<boolean, boolean>;
|
|
5
|
-
subscribeToNewsletter: () => Promise<void>;
|
|
6
|
-
selectCategory: (category: string) => void;
|
|
7
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ref } from "vue";
|
|
2
|
-
export const useBlogSidebar = () => {
|
|
3
|
-
const categories = ref([
|
|
4
|
-
"Automation",
|
|
5
|
-
"Bedroom",
|
|
6
|
-
"Blinds",
|
|
7
|
-
"Curtains",
|
|
8
|
-
"Shutters",
|
|
9
|
-
"Bathroom",
|
|
10
|
-
"Motorisation",
|
|
11
|
-
"Office"
|
|
12
|
-
]);
|
|
13
|
-
const email = ref("");
|
|
14
|
-
const isSubscribing = ref(false);
|
|
15
|
-
const subscribeToNewsletter = async () => {
|
|
16
|
-
if (!email.value) return;
|
|
17
|
-
isSubscribing.value = true;
|
|
18
|
-
try {
|
|
19
|
-
email.value = "";
|
|
20
|
-
} catch (error) {
|
|
21
|
-
console.error("Newsletter subscription failed:", error);
|
|
22
|
-
} finally {
|
|
23
|
-
isSubscribing.value = false;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const selectCategory = (category) => {
|
|
27
|
-
};
|
|
28
|
-
return {
|
|
29
|
-
// State
|
|
30
|
-
categories,
|
|
31
|
-
email,
|
|
32
|
-
isSubscribing,
|
|
33
|
-
// Methods
|
|
34
|
-
subscribeToNewsletter,
|
|
35
|
-
selectCategory
|
|
36
|
-
};
|
|
37
|
-
};
|