flowrix 1.0.1-beta.13 → 1.0.1-beta.131
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.mts +1 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +170 -30
- package/dist/runtime/composables/Blog/useBlogIndex.d.ts +2 -5
- package/dist/runtime/composables/Blog/useBlogSingle.js +2 -4
- package/dist/runtime/composables/Brand/brand.d.ts +1 -1
- package/dist/runtime/composables/Brand/brand.js +25 -2
- package/dist/runtime/composables/Cart/useCart.d.ts +40 -0
- package/dist/runtime/composables/Cart/useCart.js +10 -0
- package/dist/runtime/composables/Cart/useCartComponent.d.ts +1 -0
- package/dist/runtime/composables/Cart/useCartComponent.js +11 -0
- package/dist/runtime/composables/Cart/useCartDetail.d.ts +15 -5
- package/dist/runtime/composables/Cart/useCartDetail.js +3 -0
- package/dist/runtime/composables/Category/useCategoryIndex.d.ts +25 -32
- package/dist/runtime/composables/Category/useCategoryIndex.js +63 -44
- package/dist/runtime/composables/Checkout/PaymentMethods/useDirectDeposit.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useEway.js +16 -6
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.d.ts +40 -1
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.js +10 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.d.ts +40 -1
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.js +10 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaymentMethods.js +3 -14
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaypal.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.d.ts +2 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useZippay.js +8 -0
- package/dist/runtime/composables/Checkout/useCheckout.d.ts +85 -73
- package/dist/runtime/composables/Checkout/useCheckout.js +84 -53
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.d.ts +43 -0
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.js +84 -0
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.d.ts +55 -0
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.js +196 -0
- package/dist/runtime/composables/Checkout/useCreateAccount.d.ts +7 -7
- package/dist/runtime/composables/Checkout/useCreateAccount.js +3 -1
- package/dist/runtime/composables/Checkout/useDeliveryMethod.d.ts +2 -2
- package/dist/runtime/composables/Checkout/useDeliveryMethod.js +18 -11
- package/dist/runtime/composables/Customer/useBillingAddress.d.ts +112 -0
- package/dist/runtime/composables/Customer/useBillingAddress.js +93 -0
- package/dist/runtime/composables/Customer/useLogin.d.ts +9 -0
- package/dist/runtime/composables/Customer/useLogin.js +34 -0
- package/dist/runtime/composables/Customer/useOrders.d.ts +29 -0
- package/dist/runtime/composables/Customer/useOrders.js +56 -0
- package/dist/runtime/composables/Customer/usePasswordReset.d.ts +26 -0
- package/dist/runtime/composables/Customer/usePasswordReset.js +258 -0
- package/dist/runtime/composables/Customer/useProfile.d.ts +75 -0
- package/dist/runtime/composables/Customer/useProfile.js +106 -0
- package/dist/runtime/composables/Customer/useQuotations.d.ts +32 -0
- package/dist/runtime/composables/Customer/useQuotations.js +40 -0
- package/dist/runtime/composables/Customer/useRegister.d.ts +121 -13
- package/dist/runtime/composables/Customer/useRegister.js +310 -35
- package/dist/runtime/composables/Customer/useShippingAddress.d.ts +121 -0
- package/dist/runtime/composables/Customer/useShippingAddress.js +145 -0
- package/dist/runtime/composables/Customer/useUpdatePassword.d.ts +21 -0
- package/dist/runtime/composables/Customer/useUpdatePassword.js +130 -0
- package/dist/runtime/composables/Customer/useUserCards.d.ts +22 -0
- package/dist/runtime/composables/Customer/useUserCards.js +65 -0
- package/dist/runtime/composables/{useWishlists.d.ts → Customer/useWishlists.d.ts} +7 -20
- package/dist/runtime/composables/{useWishlists.js → Customer/useWishlists.js} +21 -30
- package/dist/runtime/composables/Extras/useCountry.d.ts +11 -6
- package/dist/runtime/composables/Extras/useCountry.js +5 -4
- package/dist/runtime/composables/Footer/useFooter.d.ts +4 -4
- package/dist/runtime/composables/Footer/useFooter.js +12 -8
- package/dist/runtime/composables/Header/useHeader.d.ts +6 -20
- package/dist/runtime/composables/Header/useHeader.js +3 -2
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.js +4 -5
- package/dist/runtime/composables/Product/CustomProduct/useSteps.d.ts +1 -1
- package/dist/runtime/composables/Product/useProductComponent.js +110 -0
- package/dist/runtime/composables/Product/useProductSlug.d.ts +8 -1
- package/dist/runtime/composables/Product/useQuickView.d.ts +8 -0
- package/dist/runtime/composables/Product/useQuickView.js +27 -0
- package/dist/runtime/composables/Product/useService.d.ts +42 -15
- package/dist/runtime/composables/Product/useService.js +137 -48
- package/dist/runtime/composables/Samples/useSamples.d.ts +5 -6
- package/dist/runtime/composables/Samples/useSamples.js +19 -15
- package/dist/runtime/composables/SideBar/Filters/useFilters.d.ts +2 -2
- package/dist/runtime/composables/SideBar/Filters/useSorting.d.ts +2 -2
- package/dist/runtime/composables/index.d.ts +18 -12
- package/dist/runtime/composables/index.js +18 -12
- package/dist/runtime/composables/useAddresses.js +6 -6
- package/dist/runtime/composables/useApp.d.ts +1 -0
- package/dist/runtime/composables/useApp.js +88 -0
- package/dist/runtime/composables/useCards.js +2 -2
- package/dist/runtime/composables/useDataLayer.js +1 -1
- package/dist/runtime/composables/useDotDigital.d.ts +3 -0
- package/dist/runtime/composables/useDotDigital.js +122 -0
- package/dist/runtime/composables/useLocation.d.ts +61 -19
- package/dist/runtime/composables/useLocation.js +353 -25
- package/dist/runtime/composables/useMetaLayer.js +11 -11
- package/dist/runtime/composables/useQuotationCheckout.d.ts +78 -0
- package/dist/runtime/composables/useQuotationCheckout.js +137 -0
- package/dist/runtime/composables/useSubscriptions.d.ts +17 -10
- package/dist/runtime/composables/useSubscriptions.js +68 -33
- package/dist/runtime/composables/useTikTokDatalayer.js +7 -7
- package/dist/runtime/composables/useWebforms.d.ts +38 -9
- package/dist/runtime/composables/useWebforms.js +93 -60
- package/dist/runtime/middleware/flowrix.d.ts +5 -4
- package/dist/runtime/middleware/flowrix.js +40 -22
- package/dist/runtime/pages/404.d.vue.ts +3 -0
- package/dist/runtime/pages/404.vue +6 -0
- package/dist/runtime/pages/404.vue.d.ts +3 -0
- package/dist/runtime/pages/flowrix-default.d.vue.ts +3 -0
- package/dist/runtime/pages/flowrix-default.vue +43 -0
- package/dist/runtime/pages/flowrix-default.vue.d.ts +3 -0
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/plugins/router.d.ts +2 -0
- package/dist/runtime/plugins/router.js +11 -0
- package/dist/runtime/server/api/albums.d.ts +1 -0
- package/dist/runtime/server/api/albums.js +35 -7
- package/dist/runtime/server/api/auth/forgot.js +1 -2
- package/dist/runtime/server/api/auth/login.d.ts +7 -0
- package/dist/runtime/server/api/auth/login.js +4 -16
- package/dist/runtime/server/api/auth/logout.js +1 -2
- package/dist/runtime/server/api/auth/register.js +1 -2
- package/dist/runtime/server/api/auth/session.get.js +1 -3
- package/dist/runtime/server/api/auth/user/reset-password.js +1 -2
- package/dist/runtime/server/api/auth/user/session.js +1 -2
- package/dist/runtime/server/api/auth/user/verify-token.js +1 -2
- package/dist/runtime/server/api/banners.js +20 -15
- package/dist/runtime/server/api/brand/[...slug].js +55 -0
- package/dist/runtime/server/api/brand/index.d.ts +3 -0
- package/dist/runtime/server/api/brand/index.js +46 -0
- package/dist/runtime/server/api/cache/[...slug].delete.d.ts +4 -1
- package/dist/runtime/server/api/cache/[...slug].delete.js +4 -7
- package/dist/runtime/server/api/cache/clean.get.d.ts +5 -0
- package/dist/runtime/server/api/cache/clean.get.js +4 -7
- package/dist/runtime/server/api/cart/[slug]/add.d.ts +1 -1
- package/dist/runtime/server/api/cart/[slug]/add.js +11 -11
- package/dist/runtime/server/api/cart/[slug]/update.d.ts +1 -1
- package/dist/runtime/server/api/cart/[slug]/update.js +11 -11
- package/dist/runtime/server/api/{v2/[...slug].d.ts → cart/related.d.ts} +0 -1
- package/dist/runtime/server/api/cart/related.js +21 -0
- package/dist/runtime/server/api/cart/remove.d.ts +1 -1
- package/dist/runtime/server/api/cart/remove.js +10 -10
- package/dist/runtime/server/api/cart/service/[slug]/add.d.ts +1 -1
- package/dist/runtime/server/api/cart/service/[slug]/add.js +12 -12
- package/dist/runtime/server/api/catalog/brands.d.ts +3 -0
- package/dist/runtime/server/api/catalog/brands.js +52 -0
- package/dist/runtime/server/api/catalog/categories.js +28 -19
- package/dist/runtime/server/api/catalog/categoriesall.d.ts +3 -0
- package/dist/runtime/server/api/catalog/categoriesall.js +52 -0
- package/dist/runtime/server/api/catalog/featured.js +28 -17
- package/dist/runtime/server/api/catalog/posts.d.ts +3 -0
- package/dist/runtime/server/api/catalog/posts.js +52 -0
- package/dist/runtime/server/api/catalog/samples.js +28 -19
- package/dist/runtime/server/api/catalog/search.js +28 -19
- package/dist/runtime/server/api/category/[...slug].js +31 -20
- package/dist/runtime/server/api/check-404.d.ts +4 -0
- package/dist/runtime/server/api/check-404.js +8 -0
- package/dist/runtime/server/api/checkout/applyCoupon.d.ts +1 -1
- package/dist/runtime/server/api/checkout/applyCoupon.js +13 -13
- package/dist/runtime/server/api/checkout/configs.d.ts +1 -1
- package/dist/runtime/server/api/checkout/configs.js +11 -11
- package/dist/runtime/server/api/checkout/countries.d.ts +1 -1
- package/dist/runtime/server/api/checkout/countries.js +5 -9
- package/dist/runtime/server/api/checkout/paymentmethod.d.ts +1 -1
- package/dist/runtime/server/api/checkout/paymentmethod.js +16 -11
- package/dist/runtime/server/api/{blog/blog.d.ts → checkout/quotation/[slug].d.ts} +0 -1
- package/dist/runtime/server/api/checkout/quotation/[slug].js +20 -0
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].d.ts +2 -0
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].js +35 -0
- package/dist/runtime/server/api/checkout/quotation/guest/customer.d.ts +2 -0
- package/dist/runtime/server/api/checkout/quotation/guest/customer.js +20 -0
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].d.ts +2 -0
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].js +22 -0
- package/dist/runtime/server/api/checkvariables.d.ts +3 -0
- package/dist/runtime/server/api/checkvariables.js +35 -0
- package/dist/runtime/server/api/cmspost/[...slug].js +54 -0
- package/dist/runtime/server/api/cmspost/all.d.ts +3 -0
- package/dist/runtime/server/api/cmspost/all.js +52 -0
- package/dist/runtime/server/api/company/profile.d.ts +1 -1
- package/dist/runtime/server/api/company/profile.js +12 -7
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.d.ts +1 -1
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.js +50 -15
- package/dist/runtime/server/api/contact-center/webforms/create.d.ts +1 -1
- package/dist/runtime/server/api/contact-center/webforms/create.js +13 -9
- package/dist/runtime/server/api/countries.d.ts +2 -0
- package/dist/runtime/server/api/countries.js +44 -0
- package/dist/runtime/server/api/customer/address/add.js +1 -2
- package/dist/runtime/server/api/customer/address/delete.js +2 -3
- package/dist/runtime/server/api/customer/address/setshipping.js +1 -2
- package/dist/runtime/server/api/customer/address/update.js +1 -2
- package/dist/runtime/server/api/customer/cards/delete.js +2 -3
- package/dist/runtime/server/api/customer/cards/get.js +2 -3
- package/dist/runtime/server/api/customer/change-password.js +2 -3
- package/dist/runtime/server/api/customer/checkout.js +1 -2
- package/dist/runtime/server/api/customer/orders.js +2 -3
- package/dist/runtime/server/api/customer/profile/update.js +1 -2
- package/dist/runtime/server/api/customer/quotations.js +2 -3
- package/dist/runtime/server/api/customer/search.js +1 -2
- package/dist/runtime/server/api/customer/tax-invoice.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/add.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/createWishList.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/get.js +2 -3
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/updateWishList.js +2 -3
- package/dist/runtime/server/api/featured.d.ts +3 -0
- package/dist/runtime/server/api/featured.js +52 -0
- package/dist/runtime/server/api/generate/robots.get.d.ts +2 -0
- package/dist/runtime/server/api/generate/robots.get.js +20 -0
- package/dist/runtime/server/api/generate/sitemap.get.d.ts +2 -0
- package/dist/runtime/server/api/generate/sitemap.get.js +32 -0
- package/dist/runtime/server/api/location.d.ts +1 -1
- package/dist/runtime/server/api/location.js +24 -12
- package/dist/runtime/server/api/nav/[id]/links.d.ts +1 -0
- package/dist/runtime/server/api/nav/[id]/links.js +46 -10
- package/dist/runtime/server/api/page/[...slug].js +54 -0
- package/dist/runtime/server/api/product/[...slug].js +28 -13
- package/dist/runtime/server/api/quickview/[slug].d.ts +2 -0
- package/dist/runtime/server/api/quickview/[slug].js +21 -0
- package/dist/runtime/server/api/reviews.d.ts +2 -0
- package/dist/runtime/server/api/reviews.js +23 -0
- package/dist/runtime/server/api/samples.d.ts +3 -0
- package/dist/runtime/server/api/samples.js +53 -0
- package/dist/runtime/server/api/search.d.ts +3 -0
- package/dist/runtime/server/api/search.js +53 -0
- package/dist/runtime/server/api/service/[slug].js +22 -16
- package/dist/runtime/server/api/service/availability.d.ts +1 -1
- package/dist/runtime/server/api/service/availability.js +14 -12
- package/dist/runtime/server/api/service/getall.d.ts +3 -0
- package/dist/runtime/server/api/service/getall.js +57 -0
- package/dist/runtime/server/api/shop.d.ts +3 -0
- package/dist/runtime/server/api/shop.js +53 -0
- package/dist/runtime/server/api/subscribe.d.ts +1 -1
- package/dist/runtime/server/api/subscribe.js +23 -14
- package/dist/runtime/server/api/v2/[...slug].get.d.ts +2 -0
- package/dist/runtime/server/api/v2/[...slug].get.js +32 -0
- package/dist/runtime/server/api/webform.d.ts +3 -0
- package/dist/runtime/server/api/webform.js +54 -0
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/stores/Cart.d.ts +12 -0
- package/dist/runtime/stores/Cart.js +62 -16
- package/dist/runtime/stores/Checkout.d.ts +9 -15
- package/dist/runtime/stores/Checkout.js +38 -45
- package/dist/runtime/stores/IpLocation.d.ts +95 -4
- package/dist/runtime/stores/IpLocation.js +93 -15
- package/dist/runtime/stores/Search.d.ts +1 -1
- package/dist/runtime/stores/Services.d.ts +5 -0
- package/dist/runtime/stores/Services.js +59 -8
- package/dist/runtime/stores/auth.d.ts +8 -11
- package/dist/runtime/stores/auth.js +385 -8
- package/dist/runtime/stores/countries.d.ts +1 -3
- package/dist/runtime/stores/countries.js +4 -8
- package/dist/runtime/stores/product/README.md +6 -6
- package/dist/runtime/stores/product/slug.d.ts +1 -17
- package/dist/runtime/stores/webforms.d.ts +24 -9
- package/dist/runtime/stores/webforms.js +105 -5
- package/dist/runtime/stores/wishlists.d.ts +125 -8
- package/dist/runtime/stores/wishlists.js +212 -20
- package/dist/runtime/utils/api.js +7 -13
- package/dist/runtime/utils/htmlCache.d.ts +2 -2
- package/dist/runtime/utils/htmlCache.js +23 -13
- package/dist/types.d.mts +6 -2
- package/package.json +15 -5
- package/dist/runtime/composables/Checkout/useBillingAddress.d.ts +0 -19
- package/dist/runtime/composables/Checkout/useBillingAddress.js +0 -82
- package/dist/runtime/composables/Checkout/useShippingAddress.d.ts +0 -9
- package/dist/runtime/composables/Checkout/useShippingAddress.js +0 -121
- package/dist/runtime/composables/useAuth.d.ts +0 -45
- package/dist/runtime/composables/useAuth.js +0 -180
- package/dist/runtime/composables/useCountries.d.ts +0 -12
- package/dist/runtime/composables/useCountries.js +0 -50
- package/dist/runtime/composables/useOrders.d.ts +0 -21
- package/dist/runtime/composables/useOrders.js +0 -82
- package/dist/runtime/composables/useQuotations.d.ts +0 -14
- package/dist/runtime/composables/useQuotations.js +0 -50
- package/dist/runtime/server/api/blog/[slug].js +0 -51
- package/dist/runtime/server/api/blog/blog.js +0 -17
- package/dist/runtime/server/api/brand/[slug].js +0 -58
- package/dist/runtime/server/api/page/[slug].js +0 -51
- package/dist/runtime/server/api/v2/[...slug].js +0 -9
- /package/dist/runtime/server/api/brand/{[slug].d.ts → [...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{blog/[slug].d.ts → cmspost/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/page/{[slug].d.ts → [...slug].d.ts} +0 -0
package/dist/module.d.mts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface ModuleOptions {
|
|
4
|
-
}
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
1
|
+
declare const _default: any;
|
|
6
2
|
|
|
7
3
|
export { _default as default };
|
|
8
|
-
export type { ModuleOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, installModule, addServerHandler, addImportsDir,
|
|
1
|
+
import { defineNuxtModule, createResolver, installModule, addPlugin, addServerHandler, addImportsDir, addImports } from '@nuxt/kit';
|
|
2
2
|
|
|
3
|
-
const module = defineNuxtModule({
|
|
3
|
+
const module$1 = defineNuxtModule({
|
|
4
4
|
meta: {
|
|
5
5
|
name: "flowrix",
|
|
6
6
|
configKey: "flowrix"
|
|
7
7
|
},
|
|
8
8
|
defaults: {},
|
|
9
9
|
async setup(_options, nuxt) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
};
|
|
10
|
+
const env = process.env;
|
|
11
|
+
const runtimeConfig = nuxt.options.runtimeConfig;
|
|
12
|
+
runtimeConfig.FLOWRIX_API_KEY = env.KEY || "";
|
|
13
|
+
runtimeConfig.FLOWRIX_API_SECRET = env.SECRET || "";
|
|
14
|
+
runtimeConfig.FLOWRIX_API_ORIGIN = env.ORIGIN || "";
|
|
15
|
+
runtimeConfig.FLOWRIX_API_BASE = env.BASE || "";
|
|
16
|
+
runtimeConfig.FLOWRIX_CACHE = env.CACHE || "false";
|
|
17
|
+
runtimeConfig.FLOWRIX_CDN = env.CDN || "";
|
|
18
|
+
Object.assign(runtimeConfig.public, {
|
|
19
|
+
...runtimeConfig.public,
|
|
20
|
+
FLOWRIX_API_KEY: env.KEY || runtimeConfig.FLOWRIX_API_KEY || runtimeConfig.public.FLOWRIX_API_KEY || "",
|
|
21
|
+
FLOWRIX_API_ORIGIN: env.ORIGIN || runtimeConfig.FLOWRIX_API_ORIGIN || runtimeConfig.public.FLOWRIX_API_ORIGIN || "",
|
|
22
|
+
FLOWRIX_API_BASE: env.BASE || runtimeConfig.FLOWRIX_API_BASE || runtimeConfig.public.FLOWRIX_API_BASE || "",
|
|
23
|
+
FLOWRIX_CACHE: env.CACHE || runtimeConfig.FLOWRIX_CACHE || runtimeConfig.public.FLOWRIX_CACHE || "false",
|
|
24
|
+
FLOWRIX_CDN: env.FCDN || runtimeConfig.FLOWRIX_CDN || runtimeConfig.public.FLOWRIX_CDN || ""
|
|
25
|
+
});
|
|
28
26
|
const resolver = createResolver(import.meta.url);
|
|
29
27
|
await installModule("@pinia/nuxt");
|
|
28
|
+
nuxt.hook("pages:extend", (pages) => {
|
|
29
|
+
pages.push({
|
|
30
|
+
name: "default",
|
|
31
|
+
path: "/:slug(.*)",
|
|
32
|
+
file: resolver.resolve("./runtime/pages/flowrix-default.vue")
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
addPlugin({
|
|
36
|
+
src: resolver.resolve("./runtime/plugins/router")
|
|
37
|
+
});
|
|
30
38
|
addServerHandler({
|
|
31
39
|
middleware: true,
|
|
32
40
|
handler: resolver.resolve("./runtime/utils/htmlCache")
|
|
@@ -45,6 +53,10 @@ const module = defineNuxtModule({
|
|
|
45
53
|
route: "/api/albums",
|
|
46
54
|
handler: resolver.resolve("./runtime/server/api/albums")
|
|
47
55
|
});
|
|
56
|
+
addServerHandler({
|
|
57
|
+
route: "/api/reviews",
|
|
58
|
+
handler: resolver.resolve("./runtime/server/api/reviews")
|
|
59
|
+
});
|
|
48
60
|
addServerHandler({
|
|
49
61
|
route: "/api/banners",
|
|
50
62
|
handler: resolver.resolve("./runtime/server/api/banners")
|
|
@@ -90,16 +102,20 @@ const module = defineNuxtModule({
|
|
|
90
102
|
handler: resolver.resolve("./runtime/server/api/auth/user/verify-token")
|
|
91
103
|
});
|
|
92
104
|
addServerHandler({
|
|
93
|
-
route: "/api/
|
|
94
|
-
handler: resolver.resolve("./runtime/server/api/
|
|
105
|
+
route: "/api/cmspost/**",
|
|
106
|
+
handler: resolver.resolve("./runtime/server/api/cmspost/[...slug]")
|
|
107
|
+
});
|
|
108
|
+
addServerHandler({
|
|
109
|
+
route: "/api/cmspost/all",
|
|
110
|
+
handler: resolver.resolve("./runtime/server/api/cmspost/all")
|
|
95
111
|
});
|
|
96
112
|
addServerHandler({
|
|
97
|
-
route: "/api/
|
|
98
|
-
handler: resolver.resolve("./runtime/server/api/
|
|
113
|
+
route: "/api/brand",
|
|
114
|
+
handler: resolver.resolve("./runtime/server/api/brand")
|
|
99
115
|
});
|
|
100
116
|
addServerHandler({
|
|
101
|
-
route: "/api/brand
|
|
102
|
-
handler: resolver.resolve("./runtime/server/api/brand/[slug]")
|
|
117
|
+
route: "/api/brand/**",
|
|
118
|
+
handler: resolver.resolve("./runtime/server/api/brand/[...slug]")
|
|
103
119
|
});
|
|
104
120
|
addServerHandler({
|
|
105
121
|
route: "/api/cart/remove",
|
|
@@ -117,10 +133,18 @@ const module = defineNuxtModule({
|
|
|
117
133
|
route: "/api/cart/service/:slug/add",
|
|
118
134
|
handler: resolver.resolve("./runtime/server/api/cart/service/[slug]/add")
|
|
119
135
|
});
|
|
136
|
+
addServerHandler({
|
|
137
|
+
route: "/api/cart/related",
|
|
138
|
+
handler: resolver.resolve("./runtime/server/api/cart/related")
|
|
139
|
+
});
|
|
120
140
|
addServerHandler({
|
|
121
141
|
route: "/api/catalog/categories",
|
|
122
142
|
handler: resolver.resolve("./runtime/server/api/catalog/categories")
|
|
123
143
|
});
|
|
144
|
+
addServerHandler({
|
|
145
|
+
route: "/api/catalog/categories/all",
|
|
146
|
+
handler: resolver.resolve("./runtime/server/api/catalog/categoriesall")
|
|
147
|
+
});
|
|
124
148
|
addServerHandler({
|
|
125
149
|
route: "/api/catalog/featured",
|
|
126
150
|
handler: resolver.resolve("./runtime/server/api/catalog/featured")
|
|
@@ -153,10 +177,26 @@ const module = defineNuxtModule({
|
|
|
153
177
|
route: "/api/checkout/paymentmethod",
|
|
154
178
|
handler: resolver.resolve("./runtime/server/api/checkout/paymentmethod")
|
|
155
179
|
});
|
|
180
|
+
addServerHandler({
|
|
181
|
+
route: "/api/checkout/quotation/guest/:slug",
|
|
182
|
+
handler: resolver.resolve("./runtime/server/api/checkout/quotation/guest/[slug]")
|
|
183
|
+
});
|
|
184
|
+
addServerHandler({
|
|
185
|
+
route: "/api/checkout/quotation/submit/:slug",
|
|
186
|
+
handler: resolver.resolve("./runtime/server/api/checkout/quotation/submit/[slug]")
|
|
187
|
+
});
|
|
188
|
+
addServerHandler({
|
|
189
|
+
route: "/api/checkout/quotation/:slug",
|
|
190
|
+
handler: resolver.resolve("./runtime/server/api/checkout/quotation/[slug]")
|
|
191
|
+
});
|
|
156
192
|
addServerHandler({
|
|
157
193
|
route: "/api/company/profile",
|
|
158
194
|
handler: resolver.resolve("./runtime/server/api/company/profile")
|
|
159
195
|
});
|
|
196
|
+
addServerHandler({
|
|
197
|
+
route: "/api/countries",
|
|
198
|
+
handler: resolver.resolve("./runtime/server/api/countries")
|
|
199
|
+
});
|
|
160
200
|
addServerHandler({
|
|
161
201
|
route: "/api/contact-center/webforms/create",
|
|
162
202
|
handler: resolver.resolve("./runtime/server/api/contact-center/webforms/create")
|
|
@@ -250,24 +290,48 @@ const module = defineNuxtModule({
|
|
|
250
290
|
handler: resolver.resolve("./runtime/server/api/nav/[id]/links")
|
|
251
291
|
});
|
|
252
292
|
addServerHandler({
|
|
253
|
-
route: "/api/page
|
|
254
|
-
handler: resolver.resolve("./runtime/server/api/page/[slug]")
|
|
293
|
+
route: "/api/page/**",
|
|
294
|
+
handler: resolver.resolve("./runtime/server/api/page/[...slug]")
|
|
255
295
|
});
|
|
256
296
|
addServerHandler({
|
|
257
297
|
route: "/api/product/**",
|
|
258
298
|
handler: resolver.resolve("./runtime/server/api/product/[...slug]")
|
|
259
299
|
});
|
|
300
|
+
addServerHandler({
|
|
301
|
+
route: "/api/quickview/:slug",
|
|
302
|
+
handler: resolver.resolve("./runtime/server/api/quickview/[slug]")
|
|
303
|
+
});
|
|
260
304
|
addServerHandler({
|
|
261
305
|
route: "/api/service/:slug",
|
|
262
306
|
handler: resolver.resolve("./runtime/server/api/service/[slug]")
|
|
263
307
|
});
|
|
308
|
+
addServerHandler({
|
|
309
|
+
route: "/api/service/getall",
|
|
310
|
+
handler: resolver.resolve("./runtime/server/api/service/getall")
|
|
311
|
+
});
|
|
264
312
|
addServerHandler({
|
|
265
313
|
route: "/api/service/availability",
|
|
266
314
|
handler: resolver.resolve("./runtime/server/api/service/availability")
|
|
267
315
|
});
|
|
268
316
|
addServerHandler({
|
|
269
317
|
route: "/api/v2/**",
|
|
270
|
-
handler: resolver.resolve("./runtime/server/api/v2/[...slug]")
|
|
318
|
+
handler: resolver.resolve("./runtime/server/api/v2/[...slug].get")
|
|
319
|
+
});
|
|
320
|
+
addServerHandler({
|
|
321
|
+
route: "/api/shop",
|
|
322
|
+
handler: resolver.resolve("./runtime/server/api/shop")
|
|
323
|
+
});
|
|
324
|
+
addServerHandler({
|
|
325
|
+
route: "/api/featured",
|
|
326
|
+
handler: resolver.resolve("./runtime/server/api/featured")
|
|
327
|
+
});
|
|
328
|
+
addServerHandler({
|
|
329
|
+
route: "/api/samples",
|
|
330
|
+
handler: resolver.resolve("./runtime/server/api/samples")
|
|
331
|
+
});
|
|
332
|
+
addServerHandler({
|
|
333
|
+
route: "/api/webform",
|
|
334
|
+
handler: resolver.resolve("./runtime/server/api/webform")
|
|
271
335
|
});
|
|
272
336
|
addServerHandler({
|
|
273
337
|
route: "/api/cache/clean",
|
|
@@ -277,7 +341,83 @@ const module = defineNuxtModule({
|
|
|
277
341
|
route: "/api/cache/**",
|
|
278
342
|
handler: resolver.resolve("./runtime/server/api/cache/[...slug].delete")
|
|
279
343
|
});
|
|
344
|
+
addServerHandler({
|
|
345
|
+
route: "/sitemap.xml",
|
|
346
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
347
|
+
});
|
|
348
|
+
addServerHandler({
|
|
349
|
+
route: "/sitemap.xml.gz",
|
|
350
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
351
|
+
});
|
|
352
|
+
addServerHandler({
|
|
353
|
+
route: "/brands-sitemap.xml",
|
|
354
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
355
|
+
});
|
|
356
|
+
addServerHandler({
|
|
357
|
+
route: "/brands-sitemap.xml.gz",
|
|
358
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
359
|
+
});
|
|
360
|
+
addServerHandler({
|
|
361
|
+
route: "/post-categories-sitemap.xml",
|
|
362
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
363
|
+
});
|
|
364
|
+
addServerHandler({
|
|
365
|
+
route: "/post-categories-sitemap.xml.gz",
|
|
366
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
367
|
+
});
|
|
368
|
+
addServerHandler({
|
|
369
|
+
route: "/services-sitemap.xml",
|
|
370
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
371
|
+
});
|
|
372
|
+
addServerHandler({
|
|
373
|
+
route: "/services-sitemap.xml.gz",
|
|
374
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
375
|
+
});
|
|
376
|
+
addServerHandler({
|
|
377
|
+
route: "/pages-sitemap.xml",
|
|
378
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
379
|
+
});
|
|
380
|
+
addServerHandler({
|
|
381
|
+
route: "/pages-sitemap.xml.gz",
|
|
382
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
383
|
+
});
|
|
384
|
+
addServerHandler({
|
|
385
|
+
route: "/products-sitemap.xml",
|
|
386
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
387
|
+
});
|
|
388
|
+
addServerHandler({
|
|
389
|
+
route: "/products-sitemap.xml.gz",
|
|
390
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
391
|
+
});
|
|
392
|
+
addServerHandler({
|
|
393
|
+
route: "/posts-sitemap.xml",
|
|
394
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
395
|
+
});
|
|
396
|
+
addServerHandler({
|
|
397
|
+
route: "/posts-sitemap.xml.gz",
|
|
398
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
399
|
+
});
|
|
400
|
+
addServerHandler({
|
|
401
|
+
route: "/categories-sitemap.xml",
|
|
402
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
403
|
+
});
|
|
404
|
+
addServerHandler({
|
|
405
|
+
route: "/categories-sitemap.xml.gz",
|
|
406
|
+
handler: resolver.resolve("./runtime/server/api/generate/sitemap.get")
|
|
407
|
+
});
|
|
408
|
+
addServerHandler({
|
|
409
|
+
route: "/robots.txt",
|
|
410
|
+
handler: resolver.resolve("./runtime/server/api/generate/robots.get")
|
|
411
|
+
});
|
|
412
|
+
addServerHandler({
|
|
413
|
+
route: "/api/faizancheck",
|
|
414
|
+
handler: resolver.resolve("./runtime/server/api/checkvariables")
|
|
415
|
+
});
|
|
416
|
+
addServerHandler({
|
|
417
|
+
route: "/api/check-404",
|
|
418
|
+
handler: resolver.resolve("./runtime/server/api/check-404")
|
|
419
|
+
});
|
|
280
420
|
}
|
|
281
421
|
});
|
|
282
422
|
|
|
283
|
-
export { module as default };
|
|
423
|
+
export { module$1 as default };
|
|
@@ -101,11 +101,8 @@ export declare const useBlogIndex: () => {
|
|
|
101
101
|
loadMore: () => Promise<void>;
|
|
102
102
|
clearSearch: () => void;
|
|
103
103
|
fetchBlogData: () => Promise<{
|
|
104
|
-
data:
|
|
105
|
-
pending:
|
|
106
|
-
} | {
|
|
107
|
-
data: import("vue").Ref<null, null>;
|
|
108
|
-
pending: import("vue").Ref<boolean, boolean>;
|
|
104
|
+
data: any;
|
|
105
|
+
pending: any;
|
|
109
106
|
}>;
|
|
110
107
|
};
|
|
111
108
|
export {};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { ref, computed } from "vue";
|
|
2
2
|
import { useRoute, useRequestHeaders, useHead } from "#imports";
|
|
3
|
-
import magazineImg1 from "@/assets/images/single-blog/Mask Group 79.png";
|
|
4
|
-
import magazineImg2 from "@/assets/images/single-blog/Mask Group 80.png";
|
|
5
3
|
export const useBlogSingle = (props) => {
|
|
6
4
|
const route = useRoute();
|
|
7
5
|
const magazineCards = ref([
|
|
8
6
|
{
|
|
9
|
-
CardImg:
|
|
7
|
+
CardImg: "",
|
|
10
8
|
CardTitle: "What is Matter Technology and Why Does it Matter?"
|
|
11
9
|
},
|
|
12
10
|
{
|
|
13
|
-
CardImg:
|
|
11
|
+
CardImg: "",
|
|
14
12
|
CardTitle: "Easily convert your existing roller blinds into smart shades"
|
|
15
13
|
}
|
|
16
14
|
]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent, watch } from "vue";
|
|
2
|
-
|
|
2
|
+
import { useRoute, useFetch } from "#imports";
|
|
3
|
+
export function useBrand(template, ProductTypes = []) {
|
|
3
4
|
const route = useRoute();
|
|
4
5
|
const components = import.meta.glob(
|
|
5
6
|
"~/components/Brand/Template*/**/index.vue"
|
|
@@ -18,8 +19,30 @@ export function useBrand(template) {
|
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
const slug = route.params.slug;
|
|
21
|
-
|
|
22
|
+
let query = {
|
|
23
|
+
...route.query
|
|
24
|
+
};
|
|
25
|
+
if (ProductTypes.includes("parentsonly")) {
|
|
26
|
+
query.parentsonly = "true";
|
|
27
|
+
}
|
|
28
|
+
if (ProductTypes.includes("directproducts")) {
|
|
29
|
+
query.directproducts = "true";
|
|
30
|
+
}
|
|
31
|
+
if (ProductTypes.includes("custom")) {
|
|
32
|
+
query.custom = "true";
|
|
33
|
+
}
|
|
34
|
+
if (ProductTypes.includes("simple")) {
|
|
35
|
+
query.simple = "true";
|
|
36
|
+
}
|
|
37
|
+
if (ProductTypes.includes("bundle")) {
|
|
38
|
+
query.bundle = "true";
|
|
39
|
+
}
|
|
40
|
+
if (ProductTypes.includes("sample")) {
|
|
41
|
+
query.sample = "true";
|
|
42
|
+
}
|
|
43
|
+
query.ProductTypes = ["custom", "simple", "bundle", "sample"];
|
|
22
44
|
const { data: brandData, error, pending, refresh } = useFetch(`/api/brand/${slug}`, {
|
|
45
|
+
method: "post",
|
|
23
46
|
query
|
|
24
47
|
});
|
|
25
48
|
watch(brandData, (newData) => {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface Product {
|
|
2
|
+
name: string;
|
|
3
|
+
height?: number;
|
|
4
|
+
width?: number;
|
|
5
|
+
type: string;
|
|
6
|
+
image: string;
|
|
7
|
+
options: {
|
|
8
|
+
promotionlabel: Array<{
|
|
9
|
+
cartPromotionTag: string;
|
|
10
|
+
cartPromotionTagBackgroundColor: string;
|
|
11
|
+
cartPromotionTagColor: string;
|
|
12
|
+
cartDescription?: string;
|
|
13
|
+
}>;
|
|
14
|
+
summary: Array<{
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
pricefloat: number;
|
|
20
|
+
qty: number;
|
|
21
|
+
rpfloat: number;
|
|
22
|
+
rowId: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
bundle?: Array<{
|
|
25
|
+
name: string;
|
|
26
|
+
qty: number;
|
|
27
|
+
price: string;
|
|
28
|
+
image?: string;
|
|
29
|
+
rrp?: string;
|
|
30
|
+
}>;
|
|
31
|
+
service?: {
|
|
32
|
+
per_order_pricing: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface CartDetailProps {
|
|
36
|
+
items: Record<string, Product>;
|
|
37
|
+
}
|
|
38
|
+
export declare const useCartDetail: (props: CartDetailProps) => Promise<{
|
|
39
|
+
response: any;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useCartComponent: () => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useCartStore } from "../../stores/Cart.js";
|
|
2
|
+
import { GTM_view_cart } from "../useDataLayer.js";
|
|
3
|
+
import { META_view_cart } from "../useMetaLayer.js";
|
|
4
|
+
import { TikTok_view_cart } from "../useTikTokDatalayer.js";
|
|
5
|
+
export const useCartComponent = async () => {
|
|
6
|
+
const cartStore = useCartStore();
|
|
7
|
+
const cart = cartStore.cart;
|
|
8
|
+
GTM_view_cart(cart);
|
|
9
|
+
META_view_cart(cart);
|
|
10
|
+
TikTok_view_cart(cart);
|
|
11
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface Product {
|
|
1
|
+
export interface Product {
|
|
2
2
|
name: string;
|
|
3
3
|
height?: number;
|
|
4
4
|
width?: number;
|
|
@@ -32,18 +32,28 @@ interface Product {
|
|
|
32
32
|
per_order_pricing: number;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
interface CartDetailProps {
|
|
35
|
+
export interface CartDetailProps {
|
|
36
36
|
items: Record<string, Product>;
|
|
37
37
|
}
|
|
38
38
|
export declare const useCartDetail: (props: CartDetailProps) => {
|
|
39
39
|
productAccordionStates: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
40
40
|
cartItems: import("vue").ComputedRef<Record<string, Product>>;
|
|
41
|
-
companyProfile:
|
|
42
|
-
checkoutData: import("vue").ComputedRef<
|
|
41
|
+
companyProfile: null;
|
|
42
|
+
checkoutData: import("vue").ComputedRef<{
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
preferences?: Record<string, any>[] | undefined;
|
|
45
|
+
outlets?: Record<string, any>[] | undefined;
|
|
46
|
+
deliverytype?: string | undefined;
|
|
47
|
+
order_no?: string | undefined;
|
|
48
|
+
publishableKey?: any;
|
|
49
|
+
calculations?: any;
|
|
50
|
+
shippingmethods?: any;
|
|
51
|
+
cart?: Record<string, import("../../stores/Checkout.js").CartItem> | undefined;
|
|
52
|
+
totals?: Record<string, any> | undefined;
|
|
53
|
+
}>;
|
|
43
54
|
removeFromCartMiddleware: (productId: string, product: Product) => Promise<void>;
|
|
44
55
|
updateQuantityMiddleware: (product: Product, qty: number) => Promise<void>;
|
|
45
56
|
toggleAccordion: (rowId: string) => void;
|
|
46
57
|
dvidedsummary: (sammarydata: any[]) => any[][];
|
|
47
58
|
swatchimagesSrcset: (swatchImage: string) => string;
|
|
48
59
|
};
|
|
49
|
-
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { onMounted, ref, computed } from "vue";
|
|
2
|
+
import { useCartStore } from "../../stores/Cart.js";
|
|
3
|
+
import { useCompanyProfile } from "../../stores/useCompanyProfile.js";
|
|
4
|
+
import { useCheckoutStore } from "../../stores/Checkout.js";
|
|
2
5
|
export const useCartDetail = (props) => {
|
|
3
6
|
const cartStore = useCartStore();
|
|
4
7
|
const { profile: companyProfile } = useCompanyProfile();
|
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
export declare const useCategoryIndex: (props: any, ProductTypes?: never[]) => {
|
|
2
|
+
catData: any;
|
|
3
|
+
pending: any;
|
|
4
|
+
error: any;
|
|
5
|
+
transformedApiData: import("vue").ComputedRef<{
|
|
6
|
+
status: any;
|
|
7
|
+
message: any;
|
|
8
|
+
data: {
|
|
9
|
+
template: any;
|
|
10
|
+
type: any;
|
|
11
|
+
record: {
|
|
12
|
+
category: any;
|
|
13
|
+
products: any;
|
|
14
|
+
brands: any;
|
|
15
|
+
filter_values: any;
|
|
16
|
+
filters: any;
|
|
17
|
+
categories: any;
|
|
18
|
+
prices: any;
|
|
19
|
+
breadcrumb: any;
|
|
20
|
+
};
|
|
17
21
|
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
interface UseCategoryIndexReturn {
|
|
24
|
-
catData: Ref<any>;
|
|
25
|
-
error: Ref<any>;
|
|
26
|
-
pending: Ref<boolean>;
|
|
27
|
-
transformedApiData: ComputedRef<CategoryData | null>;
|
|
28
|
-
renderData: ComputedRef<CategoryData>;
|
|
29
|
-
refresh: () => Promise<void>;
|
|
30
|
-
getSelectedTemplate: (templateComponents: Record<string, any>) => ComputedRef<any>;
|
|
31
|
-
}
|
|
32
|
-
export declare const useCategoryIndex: (props: CategoryIndexProps) => UseCategoryIndexReturn;
|
|
33
|
-
export {};
|
|
22
|
+
} | null>;
|
|
23
|
+
renderData: import("vue").ComputedRef<any>;
|
|
24
|
+
refresh: any;
|
|
25
|
+
getSelectedTemplate: (templateComponents: any) => import("vue").ComputedRef<any>;
|
|
26
|
+
};
|