cloudcommerce 2.3.1 → 2.3.2
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/CHANGELOG.md +12 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/package.json +6 -6
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +5 -5
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/lib/analytics/send-to-ga4.js +2 -1
- package/packages/ssr/lib/lib/analytics/send-to-ga4.js.map +1 -1
- package/packages/ssr/lib/lib/analytics-events.js +11 -1
- package/packages/ssr/lib/lib/analytics-events.js.map +1 -1
- package/packages/ssr/lib/lib/serve-storefront.js +35 -21
- package/packages/ssr/lib/lib/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +3 -3
- package/packages/ssr/src/lib/analytics/send-to-ga4.ts +2 -0
- package/packages/ssr/src/lib/analytics-events.ts +11 -1
- package/packages/ssr/src/lib/serve-storefront.ts +36 -22
- package/packages/storefront/astro.config.mjs +4 -1
- package/packages/storefront/config/astro/vue-server.mjs +64 -0
- package/packages/storefront/dist/client/_astro/{AccountPage.3-eqV6OR.js → AccountPage.0M6_FdU6.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.-Gy6eqIy.js → CartSidebar.L0Vbhsdt.js} +1 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.FQtM5kpd.js +7 -0
- package/packages/storefront/dist/client/_astro/{ProductShelf.qbTNzuvn.js → ProductShelf.-4fsYkPB.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.b77WjhZZ.js → ProductShelf.GAAhKdTN.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchModal.WzDMBjqi.js → SearchModal.rasg5jV6.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.kA6jICYo.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.v_L96Y90.js +7 -0
- package/packages/storefront/dist/client/_astro/{_slug_.WkuZ8tvp.css → _slug_.4W7qhV-L.css} +1 -1
- package/packages/storefront/dist/client/_astro/customer-session.ZD6tLDQJ.js +7 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.VduCDgof.js → firebase-app.iLdzDVjL.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.GaT7bmE3.js +1 -0
- package/packages/storefront/dist/client/_astro/{hoisted.xTPkED8g.js → hoisted.ICXGWNEA.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.XOXTrHqn.js +1 -0
- package/packages/storefront/dist/client/_astro/{index-dd468b12.fl8bpn8l.js → index-bea2a320.eWykogwr.js} +93 -93
- package/packages/storefront/dist/client/_astro/{shopping-cart.v-dB3kHB.js → shopping-cart.nSNNOrp9.js} +1 -1
- package/packages/storefront/dist/client/_astro/use-analytics.wTmoP8B1.js +1 -0
- package/packages/storefront/dist/client/_astro/{use-product-card.nNtSJVtB.js → use-product-card.UFr8SCuD.js} +1 -1
- package/packages/storefront/dist/client/_astro/use-text-value.lKqoIagH.js +4 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_blvgfFa-.mjs → CartSidebar_3_1aFp67.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{SearchModal_Sktaq643.mjs → SearchModal_2azP1u7P.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/_.._19fCuQdO.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{_page__9PfWVh79.mjs → _page__qqIVxbal.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_R4bpY7O1.mjs → account_vK6pmJlz.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_oQ4-9MNg.mjs → assets-service_631fRtTy.mjs} +66 -11
- package/packages/storefront/dist/server/chunks/{astro_ECsNQeA2.mjs → astro_u-oSb215.mjs} +8 -2
- package/packages/storefront/dist/server/chunks/{index__PeYBuja.mjs → index__05fnqFh.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_njrZIjT6.mjs → node_zqXXqc-u.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__XOsz50la.mjs → __ZucPYaOo.mjs} +380 -118
- package/packages/storefront/dist/server/chunks/pages/{_page__cIw_KTpN.mjs → _page__0sN9U0SD.mjs} +19 -3
- package/packages/storefront/dist/server/chunks/pages/account_OQr_6KN1.mjs +33 -0
- package/packages/storefront/dist/server/chunks/pages/{index_KP7Gn0ld.mjs → index_3IjgOEIq.mjs} +15 -4
- package/packages/storefront/dist/server/chunks/pages/node_OmjWRf8D.mjs +112 -0
- package/packages/storefront/dist/server/chunks/pages/~fallback_133FK-CP.mjs +59 -0
- package/packages/storefront/dist/server/chunks/~fallback_Wahcp9Wk.mjs +5 -0
- package/packages/storefront/dist/server/entry.mjs +9 -9
- package/packages/storefront/dist/server/manifest_9FASPYUE.mjs +202 -0
- package/packages/storefront/dist/server/renderers.mjs +45 -34
- package/packages/storefront/package.json +4 -4
- package/packages/storefront/server.d.ts +0 -1
- package/packages/storefront/src/lib/$storefront.d.ts +23 -16
- package/packages/storefront/src/lib/composables/use-pagination.ts +1 -3
- package/packages/storefront/src/lib/layouts/BaseHead.astro +5 -0
- package/packages/storefront/src/lib/scripts/push-analytics-events.ts +8 -6
- package/packages/storefront/src/lib/ssr-context.ts +46 -6
- package/packages/storefront/src/lib/state/use-analytics.ts +12 -11
- package/packages/storefront/src/lib/state/use-storage.ts +23 -9
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.ATGXfGhG.js +0 -7
- package/packages/storefront/dist/client/_astro/SearchShowcase.9gIA4Cq0.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.Ee4OJr3q.js +0 -7
- package/packages/storefront/dist/client/_astro/customer-session.dSYHWdP4.js +0 -7
- package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
- package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
- package/packages/storefront/dist/client/_astro/hoisted.d2SGwVMl.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.x1b7VHef.js +0 -1
- package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
- package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
- package/packages/storefront/dist/client/_astro/use-analytics._ef6TM4P.js +0 -1
- package/packages/storefront/dist/client/_astro/use-text-value.0OP9HCfP.js +0 -4
- package/packages/storefront/dist/client/~fallback.html +0 -99
- package/packages/storefront/dist/client/~index.html +0 -131
- package/packages/storefront/dist/server/chunks/_.._yTK2xBRC.mjs +0 -5
- package/packages/storefront/dist/server/chunks/pages/account_l-FHyDJd.mjs +0 -23
- package/packages/storefront/dist/server/chunks/pages/node_FoLtkdH1.mjs +0 -257
- package/packages/storefront/dist/server/chunks/pages/~fallback_KPp6Nh_p.mjs +0 -34
- package/packages/storefront/dist/server/chunks/~fallback_p7P7NIL5.mjs +0 -5
- package/packages/storefront/dist/server/images.dist.csv +0 -30
- package/packages/storefront/dist/server/images.src.csv +0 -11
- package/packages/storefront/dist/server/manifest_E6KbHQrT.mjs +0 -202
- package/packages/storefront/dist/server/static-builds.csv +0 -71
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { c as createAstro, b as createComponent, r as renderTemplate, m as maybeRenderHead, d as addAttribute, e as renderComponent, F as Fragment } from '../astro_ECsNQeA2.mjs';
|
|
2
|
-
import 'kleur/colors';
|
|
3
|
-
import 'cssesc';
|
|
4
|
-
import { f as i19error, h as i19errorMsg, j as i19notFound, k as i19home, l as loadRouteContext, a as $$BaseHead, b as $$PageHeader, c as $$PageFooter, $ as $$Base } from './__XOsz50la.mjs';
|
|
5
|
-
import 'clsx';
|
|
6
|
-
|
|
7
|
-
const $$Astro$1 = createAstro("https://demo.ecomplus.app");
|
|
8
|
-
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
9
|
-
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
10
|
-
Astro2.self = $$Fallback;
|
|
11
|
-
return renderTemplate`${maybeRenderHead()}<main> <article class="prose mx-auto px-8 pb-32 pt-20"> <h1>${i19error} :/</h1> <p class="hidden text-xl" id="errorMsg"> ${i19errorMsg} </p> <p class="hidden text-xl" id="404Msg"> ${i19notFound} (404)
|
|
12
|
-
</p> <p class="text-xl" id="loadingMsg">
|
|
13
|
-
... ... ...
|
|
14
|
-
</p> <a href="/" class="text-2xl"> <i class="i-arrow-right mr-1 rotate-180"></i> ${i19home} </a> </article> </main>`;
|
|
15
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro", void 0);
|
|
16
|
-
|
|
17
|
-
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
18
|
-
const $$fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
19
|
-
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
20
|
-
Astro2.self = $$fallback;
|
|
21
|
-
let routeContext;
|
|
22
|
-
try {
|
|
23
|
-
routeContext = await loadRouteContext(Astro2);
|
|
24
|
-
} catch (err) {
|
|
25
|
-
return err.astroResponse;
|
|
26
|
-
}
|
|
27
|
-
const { settings } = routeContext;
|
|
28
|
-
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}> ${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "Fragment", Fragment, { "slot": "base-head" }, { "default": ($$result3) => renderTemplate`${renderComponent($$result3, "BaseHead", $$BaseHead, {})}<title>${`${i19error} | ${settings.name}`}</title>` })}`, "default": ($$result2) => renderTemplate`${renderComponent($$result2, "PageHeader", $$PageHeader, {})}${renderComponent($$result2, "FallbackMain", $$Fallback, {})}${renderComponent($$result2, "PageFooter", $$PageFooter, {})}` })}</html>`;
|
|
29
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro", void 0);
|
|
30
|
-
|
|
31
|
-
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro";
|
|
32
|
-
const $$url = "/~fallback";
|
|
33
|
-
|
|
34
|
-
export { $$fallback as default, $$file as file, $$url as url };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
ecom-icon_12falx.png,192,192
|
|
2
|
-
ecom-icon_15pqnO.png,512,512
|
|
3
|
-
ecom-icon_t3guw.png,32,32
|
|
4
|
-
logo_Z1K5PE9.png,300,71
|
|
5
|
-
rect8589_1TtOHY.png,640,159
|
|
6
|
-
rect8589_Uxfdf.png,1500,373
|
|
7
|
-
rect8589_Z15uApA.png,828,206
|
|
8
|
-
rect859_DIqwR.png,640,159
|
|
9
|
-
rect859_jXzBi.png,1500,373
|
|
10
|
-
rect859_Z1IKDb2.png,828,206
|
|
11
|
-
headphone_Z1CG18r.webp,480,320
|
|
12
|
-
logo_1UBsBq.webp,300,71
|
|
13
|
-
passion_LHbe9.webp,480,320
|
|
14
|
-
rect8589_1f5opX.webp,640,159
|
|
15
|
-
rect8589_IUskt.webp,1500,373
|
|
16
|
-
rect8589_Z1JT1HB.webp,828,206
|
|
17
|
-
rect859_x1l16.webp,828,206
|
|
18
|
-
rect859_Z29FI4V.webp,640,159
|
|
19
|
-
rect859_ZkpPFI.webp,1500,373
|
|
20
|
-
rect89_Z1re32x.webp,1201,311
|
|
21
|
-
headphone_T2Jjc.avif,480,320
|
|
22
|
-
logo_Z1KIIl1.avif,300,71
|
|
23
|
-
passion_Z23MeUb.avif,480,320
|
|
24
|
-
rect8589_tMFW0.avif,828,206
|
|
25
|
-
rect8589_Z1Ap1Im.avif,640,159
|
|
26
|
-
rect8589_ZY9mtN.avif,1500,373
|
|
27
|
-
rect859_1TgQXS.avif,1500,373
|
|
28
|
-
rect859_2Nm1z.avif,640,159
|
|
29
|
-
rect859_Z2kFHGk.avif,828,206
|
|
30
|
-
rect89_1TSfW7.avif,1201,311
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
img/icon.png,512,512
|
|
2
|
-
img/large-icon.png,1024,1024
|
|
3
|
-
img/uploads/ecom-icon.png,1024,1024
|
|
4
|
-
img/uploads/logo.png,411,97
|
|
5
|
-
img/uploads/og-image.png,1200,1200
|
|
6
|
-
img/uploads/rect8589.png,1500,373
|
|
7
|
-
img/uploads/rect859.png,1500,373
|
|
8
|
-
img/uploads/banner2.webp,1200,311
|
|
9
|
-
img/uploads/headphone.webp,480,320
|
|
10
|
-
img/uploads/passion.webp,480,320
|
|
11
|
-
img/uploads/rect89.webp,1201,311
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import '@astrojs/internal-helpers/path';
|
|
2
|
-
import 'cookie';
|
|
3
|
-
import { bold, red, yellow, dim, blue } from 'kleur/colors';
|
|
4
|
-
import 'string-width';
|
|
5
|
-
import './chunks/astro_ECsNQeA2.mjs';
|
|
6
|
-
import 'clsx';
|
|
7
|
-
import 'cssesc';
|
|
8
|
-
import { compile } from 'path-to-regexp';
|
|
9
|
-
|
|
10
|
-
const dateTimeFormat = new Intl.DateTimeFormat([], {
|
|
11
|
-
hour: "2-digit",
|
|
12
|
-
minute: "2-digit",
|
|
13
|
-
second: "2-digit",
|
|
14
|
-
hour12: false
|
|
15
|
-
});
|
|
16
|
-
const levels = {
|
|
17
|
-
debug: 20,
|
|
18
|
-
info: 30,
|
|
19
|
-
warn: 40,
|
|
20
|
-
error: 50,
|
|
21
|
-
silent: 90
|
|
22
|
-
};
|
|
23
|
-
function log(opts, level, label, message, newLine = true) {
|
|
24
|
-
const logLevel = opts.level;
|
|
25
|
-
const dest = opts.dest;
|
|
26
|
-
const event = {
|
|
27
|
-
label,
|
|
28
|
-
level,
|
|
29
|
-
message,
|
|
30
|
-
newLine
|
|
31
|
-
};
|
|
32
|
-
if (!isLogLevelEnabled(logLevel, level)) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
dest.write(event);
|
|
36
|
-
}
|
|
37
|
-
function isLogLevelEnabled(configuredLogLevel, level) {
|
|
38
|
-
return levels[configuredLogLevel] <= levels[level];
|
|
39
|
-
}
|
|
40
|
-
function info(opts, label, message, newLine = true) {
|
|
41
|
-
return log(opts, "info", label, message, newLine);
|
|
42
|
-
}
|
|
43
|
-
function warn(opts, label, message, newLine = true) {
|
|
44
|
-
return log(opts, "warn", label, message, newLine);
|
|
45
|
-
}
|
|
46
|
-
function error(opts, label, message, newLine = true) {
|
|
47
|
-
return log(opts, "error", label, message, newLine);
|
|
48
|
-
}
|
|
49
|
-
function debug(...args) {
|
|
50
|
-
if ("_astroGlobalDebug" in globalThis) {
|
|
51
|
-
globalThis._astroGlobalDebug(...args);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function getEventPrefix({ level, label }) {
|
|
55
|
-
const timestamp = `${dateTimeFormat.format(/* @__PURE__ */ new Date())}`;
|
|
56
|
-
const prefix = [];
|
|
57
|
-
if (level === "error" || level === "warn") {
|
|
58
|
-
prefix.push(bold(timestamp));
|
|
59
|
-
prefix.push(`[${level.toUpperCase()}]`);
|
|
60
|
-
} else {
|
|
61
|
-
prefix.push(timestamp);
|
|
62
|
-
}
|
|
63
|
-
if (label) {
|
|
64
|
-
prefix.push(`[${label}]`);
|
|
65
|
-
}
|
|
66
|
-
if (level === "error") {
|
|
67
|
-
return red(prefix.join(" "));
|
|
68
|
-
}
|
|
69
|
-
if (level === "warn") {
|
|
70
|
-
return yellow(prefix.join(" "));
|
|
71
|
-
}
|
|
72
|
-
if (prefix.length === 1) {
|
|
73
|
-
return dim(prefix[0]);
|
|
74
|
-
}
|
|
75
|
-
return dim(prefix[0]) + " " + blue(prefix.splice(1).join(" "));
|
|
76
|
-
}
|
|
77
|
-
if (typeof process !== "undefined") {
|
|
78
|
-
let proc = process;
|
|
79
|
-
if ("argv" in proc && Array.isArray(proc.argv)) {
|
|
80
|
-
if (proc.argv.includes("--verbose")) ; else if (proc.argv.includes("--silent")) ; else ;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
class Logger {
|
|
84
|
-
options;
|
|
85
|
-
constructor(options) {
|
|
86
|
-
this.options = options;
|
|
87
|
-
}
|
|
88
|
-
info(label, message, newLine = true) {
|
|
89
|
-
info(this.options, label, message, newLine);
|
|
90
|
-
}
|
|
91
|
-
warn(label, message, newLine = true) {
|
|
92
|
-
warn(this.options, label, message, newLine);
|
|
93
|
-
}
|
|
94
|
-
error(label, message, newLine = true) {
|
|
95
|
-
error(this.options, label, message, newLine);
|
|
96
|
-
}
|
|
97
|
-
debug(label, ...messages) {
|
|
98
|
-
debug(label, ...messages);
|
|
99
|
-
}
|
|
100
|
-
level() {
|
|
101
|
-
return this.options.level;
|
|
102
|
-
}
|
|
103
|
-
forkIntegrationLogger(label) {
|
|
104
|
-
return new AstroIntegrationLogger(this.options, label);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
class AstroIntegrationLogger {
|
|
108
|
-
options;
|
|
109
|
-
label;
|
|
110
|
-
constructor(logging, label) {
|
|
111
|
-
this.options = logging;
|
|
112
|
-
this.label = label;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Creates a new logger instance with a new label, but the same log options.
|
|
116
|
-
*/
|
|
117
|
-
fork(label) {
|
|
118
|
-
return new AstroIntegrationLogger(this.options, label);
|
|
119
|
-
}
|
|
120
|
-
info(message) {
|
|
121
|
-
info(this.options, this.label, message);
|
|
122
|
-
}
|
|
123
|
-
warn(message) {
|
|
124
|
-
warn(this.options, this.label, message);
|
|
125
|
-
}
|
|
126
|
-
error(message) {
|
|
127
|
-
error(this.options, this.label, message);
|
|
128
|
-
}
|
|
129
|
-
debug(message) {
|
|
130
|
-
debug(this.label, message);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function getRouteGenerator(segments, addTrailingSlash) {
|
|
135
|
-
const template = segments.map((segment) => {
|
|
136
|
-
return "/" + segment.map((part) => {
|
|
137
|
-
if (part.spread) {
|
|
138
|
-
return `:${part.content.slice(3)}(.*)?`;
|
|
139
|
-
} else if (part.dynamic) {
|
|
140
|
-
return `:${part.content}`;
|
|
141
|
-
} else {
|
|
142
|
-
return part.content.normalize().replace(/\?/g, "%3F").replace(/#/g, "%23").replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
143
|
-
}
|
|
144
|
-
}).join("");
|
|
145
|
-
}).join("");
|
|
146
|
-
let trailing = "";
|
|
147
|
-
if (addTrailingSlash === "always" && segments.length) {
|
|
148
|
-
trailing = "/";
|
|
149
|
-
}
|
|
150
|
-
const toPath = compile(template + trailing);
|
|
151
|
-
return toPath;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function deserializeRouteData(rawRouteData) {
|
|
155
|
-
return {
|
|
156
|
-
route: rawRouteData.route,
|
|
157
|
-
type: rawRouteData.type,
|
|
158
|
-
pattern: new RegExp(rawRouteData.pattern),
|
|
159
|
-
params: rawRouteData.params,
|
|
160
|
-
component: rawRouteData.component,
|
|
161
|
-
generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash),
|
|
162
|
-
pathname: rawRouteData.pathname || void 0,
|
|
163
|
-
segments: rawRouteData.segments,
|
|
164
|
-
prerender: rawRouteData.prerender,
|
|
165
|
-
redirect: rawRouteData.redirect,
|
|
166
|
-
redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : void 0,
|
|
167
|
-
fallbackRoutes: rawRouteData.fallbackRoutes.map((fallback) => {
|
|
168
|
-
return deserializeRouteData(fallback);
|
|
169
|
-
}),
|
|
170
|
-
isIndex: rawRouteData.isIndex
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function deserializeManifest(serializedManifest) {
|
|
175
|
-
const routes = [];
|
|
176
|
-
for (const serializedRoute of serializedManifest.routes) {
|
|
177
|
-
routes.push({
|
|
178
|
-
...serializedRoute,
|
|
179
|
-
routeData: deserializeRouteData(serializedRoute.routeData)
|
|
180
|
-
});
|
|
181
|
-
const route = serializedRoute;
|
|
182
|
-
route.routeData = deserializeRouteData(serializedRoute.routeData);
|
|
183
|
-
}
|
|
184
|
-
const assets = new Set(serializedManifest.assets);
|
|
185
|
-
const componentMetadata = new Map(serializedManifest.componentMetadata);
|
|
186
|
-
const clientDirectives = new Map(serializedManifest.clientDirectives);
|
|
187
|
-
return {
|
|
188
|
-
// in case user middleware exists, this no-op middleware will be reassigned (see plugin-ssr.ts)
|
|
189
|
-
middleware(_, next) {
|
|
190
|
-
return next();
|
|
191
|
-
},
|
|
192
|
-
...serializedManifest,
|
|
193
|
-
assets,
|
|
194
|
-
componentMetadata,
|
|
195
|
-
clientDirectives,
|
|
196
|
-
routes
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
const manifest = deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"type":"endpoint","isIndex":false,"route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/astro@4.3.1_@types+node@18.19.10_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node.js","pathname":"/_image","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.x1b7VHef.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.WkuZ8tvp.css"}],"routeData":{"route":"/~fallback","isIndex":false,"type":"page","pattern":"^\\/~fallback\\/?$","segments":[[{"content":"~fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/~fallback.astro","pathname":"/~fallback","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.xTPkED8g.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.WkuZ8tvp.css"}],"routeData":{"route":"/app","isIndex":true,"type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.d2SGwVMl.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.WkuZ8tvp.css"}],"routeData":{"route":"/app/account","isIndex":false,"type":"page","pattern":"^\\/app\\/account\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}],[{"content":"account","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/account.astro","pathname":"/app/account","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.d2SGwVMl.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.WkuZ8tvp.css"}],"routeData":{"route":"/blog/[page]","isIndex":false,"type":"page","pattern":"^\\/blog\\/([^/]+?)\\/?$","segments":[[{"content":"blog","dynamic":false,"spread":false}],[{"content":"page","dynamic":true,"spread":false}]],"params":["page"],"component":"src/pages/blog/[page].astro","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.d2SGwVMl.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.WkuZ8tvp.css"}],"routeData":{"route":"/[...slug]","isIndex":false,"type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}}],"site":"https://demo.ecomplus.app","base":"/","trailingSlash":"ignore","compressHTML":true,"componentMetadata":[["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/[...slug]@_@astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astrojs-ssr-virtual-entry",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/app/account@_@astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/app/index@_@astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/blog/[page].astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/blog/[page]@_@astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/~fallback@_@astro",{"propagation":"in-tree","containsHead":false}]],"renderers":[],"clientDirectives":[["idle","(()=>{var i=t=>{let e=async()=>{await(await t())()};\"requestIdleCallback\"in window?window.requestIdleCallback(e):setTimeout(e,200)};(self.Astro||(self.Astro={})).idle=i;window.dispatchEvent(new Event(\"astro:idle\"));})();"],["load","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event(\"astro:load\"));})();"],["media","(()=>{var s=(i,t)=>{let a=async()=>{await(await i())()};if(t.value){let e=matchMedia(t.value);e.matches?a():e.addEventListener(\"change\",a,{once:!0})}};(self.Astro||(self.Astro={})).media=s;window.dispatchEvent(new Event(\"astro:media\"));})();"],["only","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event(\"astro:only\"));})();"],["visible","(()=>{var l=(s,i,o)=>{let r=async()=>{await(await s())()},t=typeof i.value==\"object\"?i.value:void 0,c={rootMargin:t==null?void 0:t.rootMargin},n=new IntersectionObserver(e=>{for(let a of e)if(a.isIntersecting){n.disconnect(),r();break}},c);for(let e of o.children)n.observe(e)};(self.Astro||(self.Astro={})).visible=l;window.dispatchEvent(new Event(\"astro:visible\"));})();"],["context","(()=>{var a=(s,o)=>{let n=async()=>{await(await s())()},r=()=>{let t=Array.isArray(o.value)?o.value:[o.value];for(let e=0;e<t.length;e++)if(typeof t[e]==\"string\"&&t[e].startsWith(\"data:\")){let d=t[e].substring(5);if(!window.$storefront?.data?.[d]){window.addEventListener(`storefront:data:${d}`,r,{once:!0});return}}if(t.includes(\"idle\")){if(typeof window.requestIdleCallback==\"function\"){setTimeout(()=>window.requestIdleCallback(n),9);return}setTimeout(n,200);return}n()},i=window.$storefront?.apiContext?.doc._id||null;if(window._firstLoadContextId===i&&window._emitedContextId===i){console.log(\"[ctx] first load\"),r(),document.addEventListener(\"astro:beforeload\",()=>{delete window._firstLoadContextId},{once:!0});return}window.addEventListener(\"storefront:apiContext\",r,{once:!0})};(self.Astro||(self.Astro={})).context=a;window.dispatchEvent(new Event(\"astro:context\"));})();\n"]],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"entry.mjs","\u0000@astro-renderers":"renderers.mjs","\u0000noop-middleware":"_noop-middleware.mjs","/src/pages/blog/[page].astro":"chunks/pages/_page__cIw_KTpN.mjs","/src/pages/app/account.astro":"chunks/pages/account_l-FHyDJd.mjs","/src/pages/app/index.astro":"chunks/pages/index_KP7Gn0ld.mjs","/../../node_modules/.pnpm/astro@4.3.1_@types+node@18.19.10_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node.js":"chunks/pages/node_FoLtkdH1.mjs","/src/pages/~fallback.astro":"chunks/pages/~fallback_KPp6Nh_p.mjs","\u0000@astrojs-manifest":"manifest_E6KbHQrT.mjs","\u0000@astro-page:../../node_modules/.pnpm/astro@4.3.1_@types+node@18.19.10_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node@_@js":"chunks/node_njrZIjT6.mjs","\u0000@astro-page:src/pages/~fallback@_@astro":"chunks/~fallback_p7P7NIL5.mjs","\u0000@astro-page:src/pages/app/index@_@astro":"chunks/index__PeYBuja.mjs","\u0000@astro-page:src/pages/app/account@_@astro":"chunks/account_R4bpY7O1.mjs","\u0000@astro-page:src/pages/blog/[page]@_@astro":"chunks/_page__9PfWVh79.mjs","\u0000@astro-page:src/pages/[...slug]@_@astro":"chunks/_.._yTK2xBRC.mjs","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/SearchModal.vue":"_astro/SearchModal.WzDMBjqi.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/CartSidebar.vue":"_astro/CartSidebar.-Gy6eqIy.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.css?inline":"_astro/photoswipe.0V7m2jWu.js","/astro/hoisted.js?q=1":"_astro/hoisted.x1b7VHef.js","~/components/AccountPage.vue":"_astro/AccountPage.3-eqV6OR.js","~/components/HeroSlider.vue":"_astro/HeroSlider.ju9TsLrJ.js","/astro/hoisted.js?q=0":"_astro/hoisted.xTPkED8g.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe-lightbox.esm.js":"_astro/photoswipe-lightbox.esm.dZBqKD9u.js","~/components/PitchBar.vue":"_astro/PitchBar.yqD9ycx5.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.VduCDgof.js","~/components/ProductShelf.vue":"_astro/ProductShelf.b77WjhZZ.js","/astro/hoisted.js?q=2":"_astro/hoisted.d2SGwVMl.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.esm.js":"_astro/photoswipe.esm.Ylh9TGkz.js","~/components/ProductDetails.vue":"_astro/ProductDetails.ATGXfGhG.js","~/components/ShopHeader.vue":"_astro/ShopHeader.Ee4OJr3q.js","@astrojs/vue/client.js":"_astro/client.YJ00ta5M.js","~/components/SearchShowcase.vue":"_astro/SearchShowcase.9gIA4Cq0.js","astro:scripts/before-hydration.js":""},"assets":["/_astro/_slug_.WkuZ8tvp.css","/robots.txt","/_astro/AccountPage.3-eqV6OR.js","/_astro/CartSidebar.-Gy6eqIy.js","/_astro/HeroSlider.ju9TsLrJ.js","/_astro/PitchBar.yqD9ycx5.js","/_astro/Prices.xI1rdM1e.js","/_astro/ProductDetails.ATGXfGhG.js","/_astro/ProductShelf.b77WjhZZ.js","/_astro/ProductShelf.qbTNzuvn.js","/_astro/QuantitySelector.v7L8EYOR.js","/_astro/SearchModal.WzDMBjqi.js","/_astro/SearchShowcase.9gIA4Cq0.js","/_astro/ShopHeader.Ee4OJr3q.js","/_astro/_plugin-vue_export-helper.xATGHWd9.js","/_astro/afetch.OifQZgwR.js","/_astro/client.YJ00ta5M.js","/_astro/customer-session.dSYHWdP4.js","/_astro/firebase-app.VduCDgof.js","/_astro/format-money.1_HtF5S2.js","/_astro/grid-title.pK2Nn3i-.js","/_astro/hoisted.d2SGwVMl.js","/_astro/hoisted.x1b7VHef.js","/_astro/hoisted.xTPkED8g.js","/_astro/i18n.zhlBzJt8.js","/_astro/img-sizes.gxAI9JNh.js","/_astro/img.AnjeGdy_.js","/_astro/index-dd468b12.fl8bpn8l.js","/_astro/index.KfrHdfOH.js","/_astro/index.ShNlAyu1.js","/_astro/modules-info.HP6478mG.js","/_astro/name.VA3MEpe0.js","/_astro/photoswipe-lightbox.esm.dZBqKD9u.js","/_astro/photoswipe.0V7m2jWu.js","/_astro/photoswipe.esm.Ylh9TGkz.js","/_astro/price.Easct8WC.js","/_astro/server-data.4C60Esyt.js","/_astro/sf-utils.c42cbZ9W.js","/_astro/shopping-cart.v-dB3kHB.js","/_astro/use-analytics._ef6TM4P.js","/_astro/use-product-card.nNtSJVtB.js","/_astro/use-text-value.0OP9HCfP.js","/img/icon.png","/img/large-icon.png","/img/uploads/banner2.webp","/img/uploads/ecom-icon.png","/img/uploads/headphone.webp","/img/uploads/logo.png","/img/uploads/og-image.png","/img/uploads/passion.webp","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.webp"],"buildFormat":"directory"});
|
|
201
|
-
|
|
202
|
-
export { AstroIntegrationLogger as A, Logger as L, getEventPrefix as g, levels as l, manifest };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/_astro/AccountPage.3-eqV6OR.js
|
|
2
|
-
/_astro/afetch.OifQZgwR.js
|
|
3
|
-
/_astro/CartSidebar.-Gy6eqIy.js
|
|
4
|
-
/_astro/client.YJ00ta5M.js
|
|
5
|
-
/_astro/customer-session.dSYHWdP4.js
|
|
6
|
-
/_astro/ecom-icon_12falx.png
|
|
7
|
-
/_astro/ecom-icon_15pqnO.png
|
|
8
|
-
/_astro/ecom-icon_t3guw.png
|
|
9
|
-
/_astro/firebase-app.VduCDgof.js
|
|
10
|
-
/_astro/format-money.1_HtF5S2.js
|
|
11
|
-
/_astro/grid-title.pK2Nn3i-.js
|
|
12
|
-
/_astro/headphone_T2Jjc.avif
|
|
13
|
-
/_astro/headphone_Z1CG18r.webp
|
|
14
|
-
/_astro/HeroSlider.ju9TsLrJ.js
|
|
15
|
-
/_astro/hoisted.d2SGwVMl.js
|
|
16
|
-
/_astro/hoisted.x1b7VHef.js
|
|
17
|
-
/_astro/hoisted.xTPkED8g.js
|
|
18
|
-
/_astro/i18n.zhlBzJt8.js
|
|
19
|
-
/_astro/img.AnjeGdy_.js
|
|
20
|
-
/_astro/img-sizes.gxAI9JNh.js
|
|
21
|
-
/_astro/index-dd468b12.fl8bpn8l.js
|
|
22
|
-
/_astro/index.KfrHdfOH.js
|
|
23
|
-
/_astro/index.ShNlAyu1.js
|
|
24
|
-
/_astro/logo_1UBsBq.webp
|
|
25
|
-
/_astro/logo_Z1K5PE9.png
|
|
26
|
-
/_astro/logo_Z1KIIl1.avif
|
|
27
|
-
/_astro/modules-info.HP6478mG.js
|
|
28
|
-
/_astro/name.VA3MEpe0.js
|
|
29
|
-
/_astro/passion_LHbe9.webp
|
|
30
|
-
/_astro/passion_Z23MeUb.avif
|
|
31
|
-
/_astro/photoswipe.0V7m2jWu.js
|
|
32
|
-
/_astro/photoswipe.esm.Ylh9TGkz.js
|
|
33
|
-
/_astro/photoswipe-lightbox.esm.dZBqKD9u.js
|
|
34
|
-
/_astro/PitchBar.yqD9ycx5.js
|
|
35
|
-
/_astro/_plugin-vue_export-helper.xATGHWd9.js
|
|
36
|
-
/_astro/price.Easct8WC.js
|
|
37
|
-
/_astro/Prices.xI1rdM1e.js
|
|
38
|
-
/_astro/ProductDetails.ATGXfGhG.js
|
|
39
|
-
/_astro/ProductShelf.b77WjhZZ.js
|
|
40
|
-
/_astro/ProductShelf.qbTNzuvn.js
|
|
41
|
-
/_astro/QuantitySelector.v7L8EYOR.js
|
|
42
|
-
/_astro/rect8589_1f5opX.webp
|
|
43
|
-
/_astro/rect8589_1TtOHY.png
|
|
44
|
-
/_astro/rect8589_IUskt.webp
|
|
45
|
-
/_astro/rect8589_tMFW0.avif
|
|
46
|
-
/_astro/rect8589_Uxfdf.png
|
|
47
|
-
/_astro/rect8589_Z15uApA.png
|
|
48
|
-
/_astro/rect8589_Z1Ap1Im.avif
|
|
49
|
-
/_astro/rect8589_Z1JT1HB.webp
|
|
50
|
-
/_astro/rect8589_ZY9mtN.avif
|
|
51
|
-
/_astro/rect859_1TgQXS.avif
|
|
52
|
-
/_astro/rect859_2Nm1z.avif
|
|
53
|
-
/_astro/rect859_DIqwR.png
|
|
54
|
-
/_astro/rect859_jXzBi.png
|
|
55
|
-
/_astro/rect859_x1l16.webp
|
|
56
|
-
/_astro/rect859_Z1IKDb2.png
|
|
57
|
-
/_astro/rect859_Z29FI4V.webp
|
|
58
|
-
/_astro/rect859_Z2kFHGk.avif
|
|
59
|
-
/_astro/rect859_ZkpPFI.webp
|
|
60
|
-
/_astro/rect89_1TSfW7.avif
|
|
61
|
-
/_astro/rect89_Z1re32x.webp
|
|
62
|
-
/_astro/SearchModal.WzDMBjqi.js
|
|
63
|
-
/_astro/SearchShowcase.9gIA4Cq0.js
|
|
64
|
-
/_astro/server-data.4C60Esyt.js
|
|
65
|
-
/_astro/sf-utils.c42cbZ9W.js
|
|
66
|
-
/_astro/ShopHeader.Ee4OJr3q.js
|
|
67
|
-
/_astro/shopping-cart.v-dB3kHB.js
|
|
68
|
-
/_astro/_slug_.WkuZ8tvp.css
|
|
69
|
-
/_astro/use-analytics._ef6TM4P.js
|
|
70
|
-
/_astro/use-product-card.nNtSJVtB.js
|
|
71
|
-
/_astro/use-text-value.0OP9HCfP.js
|