cloudcommerce 0.20.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitmodules +3 -0
- package/.nvmrc +1 -0
- package/.vscode/settings.json +2 -1
- package/CHANGELOG.md +44 -0
- package/action.yml +37 -13
- package/ecomplus-stores/iluminim/.devcontainer/devcontainer.json +30 -0
- package/ecomplus-stores/iluminim/.eslintrc.cjs +3 -0
- package/ecomplus-stores/iluminim/.firebaserc +5 -0
- package/ecomplus-stores/iluminim/.github/renovate.json +5 -0
- package/ecomplus-stores/iluminim/.github/workflows/build-and-deploy.yml +36 -0
- package/ecomplus-stores/iluminim/.github/workflows/calibreapp-image-actions.yml +23 -0
- package/ecomplus-stores/iluminim/.gitpod.yml +12 -0
- package/ecomplus-stores/iluminim/.nvmrc +1 -0
- package/ecomplus-stores/iluminim/.vscode/extensions.json +8 -0
- package/ecomplus-stores/iluminim/.vscode/launch.json +11 -0
- package/ecomplus-stores/iluminim/.vscode/settings.json +10 -0
- package/ecomplus-stores/iluminim/README.md +113 -0
- package/ecomplus-stores/iluminim/README.pt-BR.md +113 -0
- package/ecomplus-stores/iluminim/functions/config.json +3 -0
- package/ecomplus-stores/iluminim/functions/example.env +10 -0
- package/ecomplus-stores/iluminim/functions/many/index.js +14 -0
- package/ecomplus-stores/iluminim/functions/many/package.json +22 -0
- package/ecomplus-stores/iluminim/functions/ssr/.eslintrc.cjs +6 -0
- package/ecomplus-stores/iluminim/functions/ssr/astro.config.mjs +4 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/blog/.gitkeep +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/extra-pages/.gitkeep +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/layout.json +33 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/pages/home.json +70 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/settings.json +49 -0
- package/ecomplus-stores/iluminim/functions/ssr/index.js +18 -0
- package/ecomplus-stores/iluminim/functions/ssr/package.json +31 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/admin/.gitkeep +2 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cms-preview.css +274 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cms.css +114 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cvv.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/img-placeholder.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/payments.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/ssl-safe.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/icon.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/large-icon.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/banner-chamada-desktop-9x81zmd91q.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/banner2.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/chamada-mobile-q1c6om6jx4.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/ecom-icon.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/headphone.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/logo.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/og-image.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/passion.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/rect8589.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/rect859.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/rect89.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/robots.txt +8 -0
- package/ecomplus-stores/iluminim/functions/ssr/scripts/build.sh +14 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/assets/style.css +65 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +104 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Banner.vue +59 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/BannersGrid.astro +25 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/CartSidebar.vue +35 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Countdown.vue +79 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/HeroSlider.vue +52 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/PitchBar.vue +57 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Prices.vue +96 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductCard.vue +118 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductShelf.vue +60 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductsCountdown.vue +20 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/SearchModal.vue +6 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +137 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeaderMenu.vue +58 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeaderSubmenu.vue +88 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenav.vue +61 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenavCategory.vue +78 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/env.d.ts +13 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/Base.astro +16 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/Checkout.astro +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/PageHeader.astro +33 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Fallback.astro +10 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Home.astro +49 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Sections.astro +42 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Wildcard.astro +18 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/[...slug].astro +40 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/_vue.ts +3 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/app/account.astro +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/app/index.astro +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/fallback.astro +25 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/index.astro +35 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/scripts/InlineScripts.astro +10 -0
- package/ecomplus-stores/iluminim/functions/ssr/tailwind.config.cjs +13 -0
- package/ecomplus-stores/iluminim/functions/ssr/tsconfig.json +12 -0
- package/ecomplus-stores/iluminim/functions/ssr/uno.config.cjs +5 -0
- package/ecomplus-stores/iluminim/functions/with-apps/index.js +12 -0
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +22 -0
- package/ecomplus-stores/iluminim/package.json +28 -0
- package/ecomplus-stores/iluminim/scripts/install.sh +14 -0
- package/ecomplus-stores/monocard/.eslintrc.cjs +3 -0
- package/ecomplus-stores/monocard/.nvmrc +1 -0
- package/ecomplus-stores/tia-sonia/.eslintrc.cjs +3 -0
- package/ecomplus-stores/tia-sonia/.nvmrc +1 -0
- package/package.json +4 -4
- package/packages/api/package.json +1 -1
- package/packages/api/types.d.ts +1 -1
- package/packages/apps/affilate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- 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 +1 -1
- 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/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/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/config/firebase.json +10 -0
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/lib/en_us/i19hour.txt +1 -0
- package/packages/i18n/lib/en_us/i19hours.txt +1 -0
- package/packages/i18n/lib/en_us/i19milliseconds.txt +1 -0
- package/packages/i18n/lib/en_us/i19minute.txt +1 -0
- package/packages/i18n/lib/en_us/i19minutes.txt +1 -0
- package/packages/i18n/lib/en_us/i19second.txt +1 -0
- package/packages/i18n/lib/en_us/i19seconds.txt +1 -0
- package/packages/i18n/lib/en_us.d.ts +7 -0
- package/packages/i18n/lib/en_us.js +7 -0
- package/packages/i18n/lib/en_us.js.map +1 -1
- package/packages/i18n/lib/pt_br/i19home.txt +1 -1
- package/packages/i18n/lib/pt_br/i19hour.txt +1 -0
- package/packages/i18n/lib/pt_br/i19hours.txt +1 -0
- package/packages/i18n/lib/pt_br/i19milliseconds.txt +1 -0
- package/packages/i18n/lib/pt_br/i19minute.txt +1 -0
- package/packages/i18n/lib/pt_br/i19minutes.txt +1 -0
- package/packages/i18n/lib/pt_br/i19second.txt +1 -0
- package/packages/i18n/lib/pt_br/i19seconds.txt +1 -0
- package/packages/i18n/lib/pt_br.d.ts +8 -1
- package/packages/i18n/lib/pt_br.js +8 -1
- package/packages/i18n/lib/pt_br.js.map +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/i18n/src/en_us.ts +7 -0
- package/packages/i18n/src/pt_br.ts +8 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +24 -18
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/ssr/src/firebase/serve-storefront.ts +25 -18
- package/packages/storefront/.eslintrc.cjs +8 -1
- package/packages/storefront/client.d.ts +1 -19
- package/packages/storefront/dist/client/_astro/HeroSlider.0890631f.js +1 -0
- package/packages/storefront/dist/client/_astro/{ShopHeader.0c884bbe.js → ShopHeader.82ae97a5.js} +1 -1
- package/packages/storefront/dist/client/_astro/_...slug_.c85b8978.css +1 -0
- package/packages/storefront/dist/client/_astro/{client.8035a95a.js → client.0fb6b44e.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.9d9d7ac4.js → hoisted.572313d6.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/_...7e1df40a.mjs +34 -0
- package/packages/storefront/dist/server/chunks/{account@_@astro.89e4cf60.mjs → account@_@astro.5f1dba7a.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{astro.45d3047f.mjs → astro.2d3ebf0f.mjs} +560 -511
- package/packages/storefront/dist/server/chunks/{endpoint@_@js.f880a152.mjs → endpoint@_@js.80de0568.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{fallback@_@astro.89538855.mjs → fallback@_@astro.02a45b47.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{index@_@astro.56fdd6da.mjs → index@_@astro.23b50301.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{index@_@astro.548cf7ad.mjs → index@_@astro.7cb07e52.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.bde9380b.mjs → _...slug_.astro.4358f614.mjs} +92 -104
- package/packages/storefront/dist/server/chunks/pages/{account.astro.f07cf19e.mjs → account.astro.afae5a12.mjs} +6 -6
- package/packages/storefront/dist/server/chunks/pages/{endpoint.js.d4e37801.mjs → endpoint.js.60fd21aa.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{fallback.astro.e2e8a0e4.mjs → fallback.astro.e5566925.mjs} +10 -10
- package/packages/storefront/dist/server/chunks/pages/{index.astro.3760ebe3.mjs → index.astro.5bc6b9d8.mjs} +34 -32
- package/packages/storefront/dist/server/entry.mjs +13 -12
- package/packages/storefront/dist/server/renderers.mjs +7 -8
- package/packages/storefront/package.json +2 -2
- package/packages/storefront/server.d.ts +3 -27
- package/packages/storefront/src/lib/$storefront.d.ts +28 -0
- package/packages/storefront/src/lib/assets/base.css +2 -0
- package/packages/storefront/src/lib/layouts/Base.astro +1 -9
- package/packages/storefront/src/lib/layouts/BaseHead.astro +73 -2
- package/packages/storefront/src/lib/layouts/use-page-main.ts +18 -5
- package/packages/storefront/src/lib/pages/_vue.ts +1 -1
- package/packages/storefront/src/lib/server-data.ts +1 -1
- package/packages/storefront/src/lib/ssr-context.ts +46 -36
- package/packages/storefront/src/vue-globals.d.ts +3 -3
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +2 -2
- package/packages/storefront/dist/client/_astro/HeroSlider.eb156f18.js +0 -1
- package/packages/storefront/dist/client/_astro/_...slug_.c2da43fb.css +0 -1
- package/packages/storefront/dist/server/chunks/_...9e22b578.mjs +0 -35
- package/packages/storefront/src/lib/composables/use-hero-slider.ts +0 -26
- package/packages/storefront/src/lib/layouts/BaseStateJson.astro +0 -68
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { renderers } from '../renderers.mjs';
|
|
2
2
|
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
-
import './astro.
|
|
3
|
+
import './astro.2d3ebf0f.mjs';
|
|
4
4
|
import 'path-to-regexp';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
import '@astrojs/internal-helpers/path';
|
|
7
7
|
import 'kleur/colors';
|
|
8
|
-
import 'fs';
|
|
9
|
-
import 'http';
|
|
10
|
-
import 'tls';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:http';
|
|
10
|
+
import 'node:tls';
|
|
11
11
|
import 'mime';
|
|
12
|
-
import 'html-escaper';
|
|
13
12
|
import 'string-width';
|
|
13
|
+
import 'html-escaper';
|
|
14
14
|
import 'vue';
|
|
15
15
|
import 'vue/server-renderer';
|
|
16
16
|
import '@ecomplus/utils';
|
|
17
|
-
import './pages/_...slug_.astro.
|
|
17
|
+
import './pages/_...slug_.astro.4358f614.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'node:path';
|
|
20
20
|
import 'node:url';
|
|
@@ -25,11 +25,10 @@ import 'magic-string';
|
|
|
25
25
|
import 'node:stream';
|
|
26
26
|
import '@cloudcommerce/api';
|
|
27
27
|
import 'node:events';
|
|
28
|
-
import 'node:fs';
|
|
29
28
|
import '@cloudcommerce/config';
|
|
30
29
|
/* empty css */import '@vueuse/core';
|
|
31
30
|
import '@headlessui/vue';
|
|
32
31
|
|
|
33
|
-
const page = () => import('./pages/endpoint.js.
|
|
32
|
+
const page = () => import('./pages/endpoint.js.60fd21aa.mjs').then(n => n.e);
|
|
34
33
|
|
|
35
34
|
export { page };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { renderers } from '../renderers.mjs';
|
|
2
2
|
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
-
import './astro.
|
|
3
|
+
import './astro.2d3ebf0f.mjs';
|
|
4
4
|
import 'path-to-regexp';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
import '@astrojs/internal-helpers/path';
|
|
7
7
|
import 'kleur/colors';
|
|
8
|
-
import 'fs';
|
|
9
|
-
import 'http';
|
|
10
|
-
import 'tls';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:http';
|
|
10
|
+
import 'node:tls';
|
|
11
11
|
import 'mime';
|
|
12
|
-
import 'html-escaper';
|
|
13
12
|
import 'string-width';
|
|
13
|
+
import 'html-escaper';
|
|
14
14
|
import 'vue';
|
|
15
15
|
import 'vue/server-renderer';
|
|
16
16
|
import '@ecomplus/utils';
|
|
17
|
-
import './pages/_...slug_.astro.
|
|
17
|
+
import './pages/_...slug_.astro.4358f614.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'node:path';
|
|
20
20
|
import 'node:url';
|
|
@@ -25,11 +25,10 @@ import 'magic-string';
|
|
|
25
25
|
import 'node:stream';
|
|
26
26
|
import '@cloudcommerce/api';
|
|
27
27
|
import 'node:events';
|
|
28
|
-
import 'node:fs';
|
|
29
28
|
import '@cloudcommerce/config';
|
|
30
29
|
/* empty css */import '@vueuse/core';
|
|
31
30
|
import '@headlessui/vue';
|
|
32
31
|
|
|
33
|
-
const page = () => import('./pages/fallback.astro.
|
|
32
|
+
const page = () => import('./pages/fallback.astro.e5566925.mjs');
|
|
34
33
|
|
|
35
34
|
export { page };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { renderers } from '../renderers.mjs';
|
|
2
2
|
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
-
import './astro.
|
|
3
|
+
import './astro.2d3ebf0f.mjs';
|
|
4
4
|
import 'path-to-regexp';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
import '@astrojs/internal-helpers/path';
|
|
7
7
|
import 'kleur/colors';
|
|
8
|
-
import 'fs';
|
|
9
|
-
import 'http';
|
|
10
|
-
import 'tls';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:http';
|
|
10
|
+
import 'node:tls';
|
|
11
11
|
import 'mime';
|
|
12
|
-
import 'html-escaper';
|
|
13
12
|
import 'string-width';
|
|
13
|
+
import 'html-escaper';
|
|
14
14
|
import 'vue';
|
|
15
15
|
import 'vue/server-renderer';
|
|
16
16
|
import '@ecomplus/utils';
|
|
17
|
-
import './pages/_...slug_.astro.
|
|
17
|
+
import './pages/_...slug_.astro.4358f614.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'node:path';
|
|
20
20
|
import 'node:url';
|
|
@@ -25,11 +25,10 @@ import 'magic-string';
|
|
|
25
25
|
import 'node:stream';
|
|
26
26
|
import '@cloudcommerce/api';
|
|
27
27
|
import 'node:events';
|
|
28
|
-
import 'node:fs';
|
|
29
28
|
import '@cloudcommerce/config';
|
|
30
29
|
/* empty css */import '@vueuse/core';
|
|
31
30
|
import '@headlessui/vue';
|
|
32
31
|
|
|
33
|
-
const page = () => import('./pages/index.astro.
|
|
32
|
+
const page = () => import('./pages/index.astro.5bc6b9d8.mjs').then(n => n.i);
|
|
34
33
|
|
|
35
34
|
export { page };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { renderers } from '../renderers.mjs';
|
|
2
2
|
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
-
import './astro.
|
|
3
|
+
import './astro.2d3ebf0f.mjs';
|
|
4
4
|
import 'path-to-regexp';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
import '@astrojs/internal-helpers/path';
|
|
7
7
|
import 'kleur/colors';
|
|
8
|
-
import 'fs';
|
|
9
|
-
import 'http';
|
|
10
|
-
import 'tls';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:http';
|
|
10
|
+
import 'node:tls';
|
|
11
11
|
import 'mime';
|
|
12
|
-
import 'html-escaper';
|
|
13
12
|
import 'string-width';
|
|
13
|
+
import 'html-escaper';
|
|
14
14
|
import 'vue';
|
|
15
15
|
import 'vue/server-renderer';
|
|
16
16
|
import '@ecomplus/utils';
|
|
17
|
-
import './pages/_...slug_.astro.
|
|
17
|
+
import './pages/_...slug_.astro.4358f614.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'node:path';
|
|
20
20
|
import 'node:url';
|
|
@@ -25,11 +25,10 @@ import 'magic-string';
|
|
|
25
25
|
import 'node:stream';
|
|
26
26
|
import '@cloudcommerce/api';
|
|
27
27
|
import 'node:events';
|
|
28
|
-
import 'node:fs';
|
|
29
28
|
import '@cloudcommerce/config';
|
|
30
29
|
/* empty css */import '@vueuse/core';
|
|
31
30
|
import '@headlessui/vue';
|
|
32
31
|
|
|
33
|
-
const page = () => import('./pages/index.astro.
|
|
32
|
+
const page = () => import('./pages/index.astro.5bc6b9d8.mjs').then(n => n.a);
|
|
34
33
|
|
|
35
34
|
export { page };
|
|
@@ -8,7 +8,7 @@ import sizeOf from 'image-size';
|
|
|
8
8
|
import 'magic-string';
|
|
9
9
|
import mime from 'mime';
|
|
10
10
|
import 'node:stream';
|
|
11
|
-
import { c as createAstro, a as createComponent, r as renderTemplate,
|
|
11
|
+
import { c as createAstro, a as createComponent, r as renderTemplate, u as unescapeHTML, b as renderComponent, d as addAttribute, F as Fragment, m as maybeRenderHead, s as spreadAttributes, e as renderSlot, f as renderHead } from '../astro.2d3ebf0f.mjs';
|
|
12
12
|
import api from '@cloudcommerce/api';
|
|
13
13
|
import { EventEmitter } from 'node:events';
|
|
14
14
|
import fs from 'node:fs';
|
|
@@ -299,14 +299,18 @@ const loadRouteContext = async (Astro, {
|
|
|
299
299
|
const config = getConfig();
|
|
300
300
|
globalThis.$storefront.settings = config.settings;
|
|
301
301
|
let cmsContent;
|
|
302
|
-
let apiResource;
|
|
303
|
-
let apiDoc;
|
|
304
302
|
const apiState = {};
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
303
|
+
const apiPrefetchings = [
|
|
304
|
+
...apiPrefetchEndpoints.map((endpoint) => {
|
|
305
|
+
if (endpoint === ":slug")
|
|
306
|
+
return null;
|
|
307
|
+
return api.get(endpoint);
|
|
308
|
+
})
|
|
309
309
|
];
|
|
310
|
+
let fetchingApiContext = null;
|
|
311
|
+
const apiContext = {
|
|
312
|
+
error: null
|
|
313
|
+
};
|
|
310
314
|
if (isHomepage) {
|
|
311
315
|
cmsContent = await config.getContent("pages/home");
|
|
312
316
|
} else {
|
|
@@ -320,23 +324,37 @@ const loadRouteContext = async (Astro, {
|
|
|
320
324
|
err.responseHTML = `<head></head><body>${err.message}</body>`;
|
|
321
325
|
throw err;
|
|
322
326
|
} else {
|
|
323
|
-
|
|
327
|
+
fetchingApiContext = api.get(`slugs/${slug}`).then((response) => {
|
|
328
|
+
Object.assign(apiContext, response.data);
|
|
329
|
+
const apiResource = apiContext.resource;
|
|
330
|
+
const apiDoc = apiContext.doc;
|
|
331
|
+
apiState[`${apiResource}/${apiDoc._id}`] = apiDoc;
|
|
332
|
+
globalThis.$storefront.apiContext = {
|
|
333
|
+
resource: apiResource,
|
|
334
|
+
doc: apiDoc,
|
|
335
|
+
timestamp: Date.now()
|
|
336
|
+
};
|
|
337
|
+
return response;
|
|
338
|
+
});
|
|
339
|
+
const index = apiPrefetchings.findIndex((pr) => pr === null);
|
|
340
|
+
if (index > -1) {
|
|
341
|
+
apiPrefetchings[index] = fetchingApiContext;
|
|
342
|
+
} else {
|
|
343
|
+
fetchingApiContext.catch((err) => {
|
|
344
|
+
apiContext.error = err;
|
|
345
|
+
});
|
|
346
|
+
}
|
|
324
347
|
}
|
|
325
348
|
}
|
|
326
349
|
}
|
|
327
350
|
try {
|
|
328
|
-
|
|
329
|
-
if (slugResponse) {
|
|
330
|
-
apiResource = slugResponse.data.resource;
|
|
331
|
-
apiDoc = slugResponse.data.doc;
|
|
332
|
-
if (apiDoc) {
|
|
333
|
-
apiState[`${apiResource}/${apiDoc._id}`] = apiDoc;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
prefetchResponses.forEach((response) => {
|
|
351
|
+
(await Promise.all(apiPrefetchings)).forEach((response) => {
|
|
337
352
|
if (response) {
|
|
338
353
|
const { config: { endpoint }, data } = response;
|
|
339
|
-
|
|
354
|
+
const apiStateKey = endpoint.replace(/\?.*$/, "");
|
|
355
|
+
if (!apiState[apiStateKey]) {
|
|
356
|
+
apiState[apiStateKey] = data.result || data;
|
|
357
|
+
}
|
|
340
358
|
}
|
|
341
359
|
});
|
|
342
360
|
} catch (err) {
|
|
@@ -370,19 +388,12 @@ const loadRouteContext = async (Astro, {
|
|
|
370
388
|
} else {
|
|
371
389
|
setResponseCache(Astro, 120, 300);
|
|
372
390
|
}
|
|
373
|
-
if (apiDoc) {
|
|
374
|
-
globalThis.$storefront.context = {
|
|
375
|
-
resource: apiResource,
|
|
376
|
-
doc: apiDoc,
|
|
377
|
-
timestamp: Date.now()
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
391
|
const routeContext = {
|
|
381
392
|
...config,
|
|
382
393
|
isHomepage,
|
|
383
394
|
cmsContent,
|
|
384
|
-
|
|
385
|
-
|
|
395
|
+
fetchingApiContext,
|
|
396
|
+
apiContext,
|
|
386
397
|
apiState,
|
|
387
398
|
isPreview
|
|
388
399
|
};
|
|
@@ -393,9 +404,13 @@ const loadRouteContext = async (Astro, {
|
|
|
393
404
|
|
|
394
405
|
const pwaInfo = {"pwaInDevEnvironment":false,"webManifest":{"href":"/manifest.webmanifest","useCredentials":false,"linkTag":"<link rel=\"manifest\" href=\"/manifest.webmanifest\">"}};
|
|
395
406
|
|
|
396
|
-
|
|
407
|
+
var __freeze$1 = Object.freeze;
|
|
408
|
+
var __defProp$1 = Object.defineProperty;
|
|
409
|
+
var __template$1 = (cooked, raw) => __freeze$1(__defProp$1(cooked, "raw", { value: __freeze$1(raw || cooked.slice()) }));
|
|
410
|
+
var _a$1;
|
|
411
|
+
const $$Astro$8 = createAstro("https://ecom2-demo.web.app");
|
|
397
412
|
const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
|
|
398
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
413
|
+
const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
|
|
399
414
|
Astro2.self = $$BaseHead;
|
|
400
415
|
const deployRand = ({}).DEPLOY_RAND || "_";
|
|
401
416
|
const getIconUrl = (size) => {
|
|
@@ -404,13 +419,22 @@ const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
404
419
|
const {
|
|
405
420
|
storeId,
|
|
406
421
|
cmsContent,
|
|
407
|
-
|
|
422
|
+
fetchingApiContext,
|
|
423
|
+
apiContext,
|
|
408
424
|
lang,
|
|
425
|
+
countryCode,
|
|
426
|
+
currency,
|
|
427
|
+
currencySymbol,
|
|
409
428
|
domain,
|
|
410
429
|
primaryColor,
|
|
411
430
|
settings,
|
|
431
|
+
isPreview,
|
|
412
432
|
getContent
|
|
413
433
|
} = Astro2.locals.routeContext;
|
|
434
|
+
if (fetchingApiContext) {
|
|
435
|
+
await fetchingApiContext;
|
|
436
|
+
}
|
|
437
|
+
const apiDoc = apiContext.doc;
|
|
414
438
|
const state = apiDoc || cmsContent || {};
|
|
415
439
|
const title = state.meta_title || state.name || state.title || Astro2.props.title || settings.name;
|
|
416
440
|
const description = state.meta_description || state.short_description || settings.description;
|
|
@@ -431,55 +455,6 @@ const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
431
455
|
} else {
|
|
432
456
|
ogImage = ogImage.replace(/(\w+\.)?(ecoms\d)\.com/i, "$2-nyc3.nyc3.cdn.digitaloceanspaces.com");
|
|
433
457
|
}
|
|
434
|
-
return renderTemplate`<meta charset="UTF-8">
|
|
435
|
-
<meta name="viewport" content="width=device-width">
|
|
436
|
-
<meta name="theme-color"${addAttribute(primaryColor, "content")}>
|
|
437
|
-
<link rel="icon" type="image/png"${addAttribute(favicon, "href")} sizes="32x32">
|
|
438
|
-
${shortcutIcon && renderTemplate`<link rel="icon" type="image/png"${addAttribute(shortcutIcon, "href")} sizes="192x192">`}
|
|
439
|
-
<title>${title}</title>
|
|
440
|
-
<meta name="description"${addAttribute(description, "content")}>
|
|
441
|
-
<meta name="author"${addAttribute(settings.name, "content")}>
|
|
442
|
-
<meta name="generator"${addAttribute(Astro2.generator, "content")}>
|
|
443
|
-
<link rel="canonical"${addAttribute(canonicalUrl, "href")}>
|
|
444
|
-
${shortcutIcon && renderTemplate`<link rel="apple-touch-icon"${addAttribute(shortcutIcon, "href")}>`}
|
|
445
|
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
446
|
-
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
|
447
|
-
<meta property="og:site_name"${addAttribute(settings.name, "content")}>
|
|
448
|
-
<meta property="og:url"${addAttribute(canonicalUrl, "content")}>
|
|
449
|
-
<meta property="og:title"${addAttribute(title, "content")}>
|
|
450
|
-
<meta property="og:description"${addAttribute(description, "content")}>
|
|
451
|
-
<meta property="og:type" content="website">
|
|
452
|
-
<meta property="og:locale"${addAttribute(ogLocale, "content")}>
|
|
453
|
-
${ogImage && renderTemplate`<meta property="og:image"${addAttribute(ogImage, "content")}>`}
|
|
454
|
-
${metatagsContent?.fb_app_id && renderTemplate`<meta property="fb:app_id"${addAttribute(metatagsContent.fb_app_id, "content")}>`}
|
|
455
|
-
<meta name="twitter:card" content="summary">
|
|
456
|
-
${metatagsContent?.twitter_username && renderTemplate`<meta name="twitter:site"${addAttribute(metatagsContent.twitter_username, "content")}>`}
|
|
457
|
-
<meta name="ecom-store-id"${addAttribute(String(storeId), "content")}>
|
|
458
|
-
|
|
459
|
-
${pwaInfo && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(pwaInfo.webManifest.linkTag)}` })}`}
|
|
460
|
-
${!pwaInfo && !false && renderTemplate`<link rel="manifest" href="/manifest.webmanifest">`}`;
|
|
461
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro");
|
|
462
|
-
|
|
463
|
-
var __freeze$1 = Object.freeze;
|
|
464
|
-
var __defProp$1 = Object.defineProperty;
|
|
465
|
-
var __template$1 = (cooked, raw) => __freeze$1(__defProp$1(cooked, "raw", { value: __freeze$1(raw || cooked.slice()) }));
|
|
466
|
-
var _a$1;
|
|
467
|
-
const $$Astro$8 = createAstro("https://ecom2-demo.web.app");
|
|
468
|
-
const $$BaseStateJson = createComponent(async ($$result, $$props, $$slots) => {
|
|
469
|
-
const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
|
|
470
|
-
Astro2.self = $$BaseStateJson;
|
|
471
|
-
const {
|
|
472
|
-
storeId,
|
|
473
|
-
apiResource,
|
|
474
|
-
apiDoc,
|
|
475
|
-
lang,
|
|
476
|
-
countryCode,
|
|
477
|
-
currency,
|
|
478
|
-
currencySymbol,
|
|
479
|
-
domain,
|
|
480
|
-
settings,
|
|
481
|
-
isPreview
|
|
482
|
-
} = Astro2.locals.routeContext;
|
|
483
458
|
let inlineClientJS = `
|
|
484
459
|
window.ECOM_STORE_ID = ${storeId};
|
|
485
460
|
window.ECOM_LANG = '${lang}';
|
|
@@ -487,6 +462,15 @@ window.ECOM_CURRENCY = '${currency}';
|
|
|
487
462
|
window.ECOM_CURRENCY_SYMBOL = '${currencySymbol}';
|
|
488
463
|
window.ECOM_COUNTRY_CODE = '${countryCode}';
|
|
489
464
|
window.$storefront = ${JSON.stringify({ settings })};`;
|
|
465
|
+
if (apiContext.error) {
|
|
466
|
+
const { message, statusCode } = apiContext.error;
|
|
467
|
+
const url = Astro2.url.pathname;
|
|
468
|
+
inlineClientJS += `
|
|
469
|
+
console.error(${JSON.stringify(message)});
|
|
470
|
+
setTimeout(() => {
|
|
471
|
+
window.location.replace("/fallback?status=${statusCode}&url=${encodeURIComponent(url)}");
|
|
472
|
+
}, 1);`;
|
|
473
|
+
}
|
|
490
474
|
if (apiDoc) {
|
|
491
475
|
if (typeof apiDoc.price === "number") {
|
|
492
476
|
apiDoc.price = price(apiDoc);
|
|
@@ -509,11 +493,12 @@ window.$storefront = ${JSON.stringify({ settings })};`;
|
|
|
509
493
|
return nestedDoc;
|
|
510
494
|
};
|
|
511
495
|
inlineClientJS += `
|
|
512
|
-
window.$storefront.
|
|
513
|
-
resource:
|
|
496
|
+
window.$storefront.apiContext = ${JSON.stringify({
|
|
497
|
+
resource: apiContext.resource,
|
|
514
498
|
doc: minifyApiDoc({ ...apiDoc }),
|
|
515
499
|
timestamp: Date.now()
|
|
516
|
-
})}
|
|
500
|
+
})};
|
|
501
|
+
window.$storefront.context /* DEPRECATED */ = window.$storefront.apiContext`;
|
|
517
502
|
}
|
|
518
503
|
if (isPreview) {
|
|
519
504
|
inlineClientJS += `
|
|
@@ -526,8 +511,8 @@ window.$isCmsPreview = true;`;
|
|
|
526
511
|
url: `https://${domain}/`,
|
|
527
512
|
logo: `https://${domain}${settings.logo}`
|
|
528
513
|
});
|
|
529
|
-
return renderTemplate(_a$1 || (_a$1 = __template$1(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>"])), unescapeHTML(inlineClientJS), unescapeHTML(inlineJSONLd));
|
|
530
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/
|
|
514
|
+
return renderTemplate(_a$1 || (_a$1 = __template$1(['<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width">\n<meta name="theme-color"', '>\n<link rel="icon" type="image/png"', ' sizes="32x32">\n', "\n<title>", '</title>\n<meta name="description"', '>\n<meta name="author"', '>\n<meta name="generator"', '>\n<link rel="canonical"', ">\n", '\n<meta name="apple-mobile-web-app-capable" content="yes">\n<meta name="apple-mobile-web-app-status-bar-style" content="default">\n<meta property="og:site_name"', '>\n<meta property="og:url"', '>\n<meta property="og:title"', '>\n<meta property="og:description"', '>\n<meta property="og:type" content="website">\n<meta property="og:locale"', ">\n", "\n", '\n<meta name="twitter:card" content="summary">\n', '\n<meta name="ecom-store-id"', ">\n\n", "\n", "\n\n<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>"])), addAttribute(primaryColor, "content"), addAttribute(favicon, "href"), shortcutIcon && renderTemplate`<link rel="icon" type="image/png"${addAttribute(shortcutIcon, "href")} sizes="192x192">`, title, addAttribute(description, "content"), addAttribute(settings.name, "content"), addAttribute(Astro2.generator, "content"), addAttribute(canonicalUrl, "href"), shortcutIcon && renderTemplate`<link rel="apple-touch-icon"${addAttribute(shortcutIcon, "href")}>`, addAttribute(settings.name, "content"), addAttribute(canonicalUrl, "content"), addAttribute(title, "content"), addAttribute(description, "content"), addAttribute(ogLocale, "content"), ogImage && renderTemplate`<meta property="og:image"${addAttribute(ogImage, "content")}>`, metatagsContent?.fb_app_id && renderTemplate`<meta property="fb:app_id"${addAttribute(metatagsContent.fb_app_id, "content")}>`, metatagsContent?.twitter_username && renderTemplate`<meta name="twitter:site"${addAttribute(metatagsContent.twitter_username, "content")}>`, addAttribute(String(storeId), "content"), pwaInfo && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(pwaInfo.webManifest.linkTag)}` })}`, !pwaInfo && !false && renderTemplate`<link rel="manifest" href="/manifest.webmanifest">`, unescapeHTML(inlineClientJS), unescapeHTML(inlineJSONLd));
|
|
515
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", void 0);
|
|
531
516
|
|
|
532
517
|
function isRemoteImage(src) {
|
|
533
518
|
return /^(https?:)?\/\//.test(src);
|
|
@@ -615,7 +600,7 @@ async function getImage(transform) {
|
|
|
615
600
|
}
|
|
616
601
|
let loader = (_a = globalThis.astroImage) == null ? void 0 : _a.loader;
|
|
617
602
|
if (!loader) {
|
|
618
|
-
const { default: mod } = await import('./endpoint.js.
|
|
603
|
+
const { default: mod } = await import('./endpoint.js.60fd21aa.mjs').then(n => n.s).catch(() => {
|
|
619
604
|
throw new Error(
|
|
620
605
|
"[@astrojs/image] Builtin image loader not found. (Did you remember to add the integration to your Astro config?)"
|
|
621
606
|
);
|
|
@@ -885,7 +870,7 @@ const $$Picture = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
885
870
|
})}
|
|
886
871
|
${imgAttrs && renderTemplate`<img${spreadAttributes(imgAttrs)}>`}
|
|
887
872
|
</picture>`;
|
|
888
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Picture.astro");
|
|
873
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Picture.astro", void 0);
|
|
889
874
|
|
|
890
875
|
const $$Astro$6 = createAstro("https://ecom2-demo.web.app");
|
|
891
876
|
const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
|
|
@@ -900,18 +885,16 @@ const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
900
885
|
<div id="teleported-bottom" class="relative z-[19]"></div>
|
|
901
886
|
${settings.icon && renderTemplate`${renderComponent($$result, "Picture", $$Picture, { "src": settings.icon, "alt": "Icon", "formats": ["png"], "widths": [32, 192, 512], "sizes": "32px", "class": "hidden absolute", "style": "bottom: -1000px", "hasImg": false })}`}
|
|
902
887
|
</body>`;
|
|
903
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro");
|
|
888
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", void 0);
|
|
904
889
|
|
|
905
890
|
const $$Astro$5 = createAstro("https://ecom2-demo.web.app");
|
|
906
891
|
const $$Base$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
907
892
|
const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
|
|
908
893
|
Astro2.self = $$Base$1;
|
|
909
|
-
const { title } = Astro2.props;
|
|
910
894
|
const { getContent } = Astro2.locals.routeContext;
|
|
911
895
|
const { custom_code: customCodeContent } = await getContent("layout");
|
|
912
896
|
return renderTemplate`<head>
|
|
913
|
-
${
|
|
914
|
-
${renderComponent($$result, "BaseStateJson", $$BaseStateJson, {})}
|
|
897
|
+
${renderSlot($$result, $$slots["base-head"])}
|
|
915
898
|
${customCodeContent?.css && renderTemplate`<style>{customCodeContent.css}</style>`}
|
|
916
899
|
${customCodeContent?.html_head && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(customCodeContent.html_head)}` })}`}
|
|
917
900
|
${renderSlot($$result, $$slots["base-head-scripts"])}
|
|
@@ -922,7 +905,7 @@ ${renderComponent($$result, "BaseBody", $$BaseBody, {}, { "default": ($$result2)
|
|
|
922
905
|
${customCodeContent?.html_body && renderTemplate`${renderComponent($$result2, "Fragment", Fragment, {}, { "default": ($$result3) => renderTemplate`${unescapeHTML(customCodeContent.html_body)}` })}`}${renderSlot($$result2, $$slots["base-body-scripts"])}
|
|
923
906
|
${renderSlot($$result2, $$slots["before-body-end"])}
|
|
924
907
|
` })}`;
|
|
925
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro");
|
|
908
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", void 0);
|
|
926
909
|
|
|
927
910
|
var __freeze = Object.freeze;
|
|
928
911
|
var __defProp = Object.defineProperty;
|
|
@@ -932,19 +915,21 @@ const $$Astro$4 = createAstro("https://ecom2-demo.web.app");
|
|
|
932
915
|
const $$InlineScripts = createComponent(async ($$result, $$props, $$slots) => {
|
|
933
916
|
const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
|
|
934
917
|
Astro2.self = $$InlineScripts;
|
|
935
|
-
return renderTemplate(_a || (_a = __template([
|
|
936
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro");
|
|
918
|
+
return renderTemplate(_a || (_a = __template(['<script>\n window.$firebaseConfig = {\n apiKey: "AIzaSyCnvm7QrPKzSBrUi09Z3zTgjDST0t4Yikg",\n authDomain: "ecom2-demo.firebaseapp.com",\n projectId: "ecom2-demo",\n storageBucket: "ecom2-demo.appspot.com",\n messagingSenderId: "70369627313",\n appId: "1:70369627313:web:06634033b9c6208fe7e690"\n };\n<\/script>'])));
|
|
919
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro", void 0);
|
|
937
920
|
|
|
938
921
|
const $$Astro$3 = createAstro("https://ecom2-demo.web.app");
|
|
939
922
|
const $$Base = createComponent(async ($$result, $$props, $$slots) => {
|
|
940
923
|
const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
|
|
941
924
|
Astro2.self = $$Base;
|
|
942
|
-
|
|
943
|
-
|
|
925
|
+
return renderTemplate`${renderComponent($$result, "SfBase", $$Base$1, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "Fragment", Fragment, { "slot": "base-head" }, { "default": ($$result3) => renderTemplate`
|
|
926
|
+
${renderSlot($$result3, $$slots["base-head"])}
|
|
927
|
+
` })}`, "before-head-end": ($$result2) => renderTemplate`${renderComponent($$result2, "InlineScripts", $$InlineScripts, { "slot": "before-head-end" })}`, "default": ($$result2) => renderTemplate`
|
|
928
|
+
|
|
944
929
|
|
|
945
930
|
${renderSlot($$result2, $$slots["default"])}
|
|
946
931
|
` })}`;
|
|
947
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/Base.astro");
|
|
932
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/Base.astro", void 0);
|
|
948
933
|
|
|
949
934
|
const checkObjNotNull = (obj) => {
|
|
950
935
|
return Object.values(obj).filter((val) => val).length;
|
|
@@ -1989,7 +1974,7 @@ const initializeFirebaseAuth = (canWaitIdle = !window.location.pathname.startsWi
|
|
|
1989
1974
|
|
|
1990
1975
|
const {
|
|
1991
1976
|
settings,
|
|
1992
|
-
|
|
1977
|
+
apiContext
|
|
1993
1978
|
} = globalThis.$storefront;
|
|
1994
1979
|
const networkNames = [
|
|
1995
1980
|
"whatsapp",
|
|
@@ -3568,21 +3553,23 @@ ${renderComponent($$result, "ShopHeader", ShopHeader, { ...shopHeader, "client:l
|
|
|
3568
3553
|
${renderComponent($$result3, "LogoHeading", LogoHeading, {}, { "logo-picture": ($$result4) => renderTemplate`${renderComponent($$result4, "Picture", $$Picture, { "slot": "logo-picture", "src": settings.logo, "alt": settings.name, "widths": [300], "fetchpriority": "high", "loading": "eager", "class": "hover:drop-shadow-sm max-w-[150px] mx-auto" })}` })}
|
|
3569
3554
|
</a>
|
|
3570
3555
|
` })}` })}`)}`;
|
|
3571
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/PageHeader.astro");
|
|
3556
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/PageHeader.astro", void 0);
|
|
3572
3557
|
|
|
3573
3558
|
const $$Astro$1 = createAstro("https://ecom2-demo.web.app");
|
|
3574
3559
|
const $$Wildcard = createComponent(async ($$result, $$props, $$slots) => {
|
|
3575
3560
|
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
3576
3561
|
Astro2.self = $$Wildcard;
|
|
3577
|
-
const {
|
|
3562
|
+
const { fetchingApiContext, apiContext } = Astro2.locals.routeContext;
|
|
3563
|
+
await fetchingApiContext;
|
|
3564
|
+
const apiDoc = apiContext.doc;
|
|
3578
3565
|
return renderTemplate`${maybeRenderHead()}<main>
|
|
3579
3566
|
${apiDoc && renderTemplate`<h1>Hello <span class="text-gradient">${apiDoc.name}</span></h1><hr><div class="mt-3">
|
|
3580
|
-
<mark>${apiDoc._id}</mark> from <i>${
|
|
3567
|
+
<mark>${apiDoc._id}</mark> from <i>${apiContext.resource}</i>
|
|
3581
3568
|
<p>${Math.random()}</p>
|
|
3582
3569
|
<em>Lorem ipsum dolor sit amet</em>
|
|
3583
3570
|
</div>`}
|
|
3584
3571
|
</main>`;
|
|
3585
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Wildcard.astro");
|
|
3572
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Wildcard.astro", void 0);
|
|
3586
3573
|
|
|
3587
3574
|
const $$Astro = createAstro("https://ecom2-demo.web.app");
|
|
3588
3575
|
async function getStaticPaths() {
|
|
@@ -3605,13 +3592,14 @@ const $$ = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
3605
3592
|
loadError = err;
|
|
3606
3593
|
}
|
|
3607
3594
|
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
3608
|
-
${routeContext && renderTemplate`${renderComponent($$result, "Base", $$Base, {}, { "default": ($$result2) => renderTemplate`
|
|
3595
|
+
${routeContext && renderTemplate`${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
3596
|
+
|
|
3609
3597
|
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
3610
3598
|
${renderComponent($$result2, "WildcardMain", $$Wildcard, {})}
|
|
3611
3599
|
` })}`}
|
|
3612
3600
|
${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
|
|
3613
3601
|
</html>`;
|
|
3614
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro");
|
|
3602
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro", void 0);
|
|
3615
3603
|
|
|
3616
3604
|
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro";
|
|
3617
3605
|
const $$url = "/[...slug]";
|
|
@@ -3624,4 +3612,4 @@ const ____slug_ = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
3624
3612
|
url: $$url
|
|
3625
3613
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3626
3614
|
|
|
3627
|
-
export { $$
|
|
3615
|
+
export { $$BaseHead as $, BaseSSRService as B, Carousel as C, _export_sfc as _, $$PageHeader as a, $$Base as b, $$Picture as c, CarouselControl as d, availableExtraDiscount as e, installmentsOption as f, discountOption as g, loyaltyPointsPrograms as h, isOutputFormatSupportsAlpha as i, addProductToCart as j, ____slug_ as k, loadRouteContext as l, parseShippingPhrase as p };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { c as createAstro, a as createComponent, r as renderTemplate } from '../astro.
|
|
1
|
+
import { c as createAstro, a as createComponent, r as renderTemplate } from '../astro.2d3ebf0f.mjs';
|
|
2
2
|
import 'path-to-regexp';
|
|
3
3
|
import 'cookie';
|
|
4
4
|
import '@astrojs/internal-helpers/path';
|
|
5
5
|
import 'kleur/colors';
|
|
6
|
-
import 'fs';
|
|
7
|
-
import 'http';
|
|
8
|
-
import 'tls';
|
|
6
|
+
import 'node:fs';
|
|
7
|
+
import 'node:http';
|
|
8
|
+
import 'node:tls';
|
|
9
9
|
import 'mime';
|
|
10
|
-
import 'html-escaper';
|
|
11
10
|
import 'string-width';
|
|
11
|
+
import 'html-escaper';
|
|
12
12
|
|
|
13
13
|
const $$Astro = createAstro("https://ecom2-demo.web.app");
|
|
14
14
|
const $$Account = createComponent(async ($$result, $$props, $$slots) => {
|
|
15
15
|
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
16
16
|
Astro2.self = $$Account;
|
|
17
17
|
return renderTemplate``;
|
|
18
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro");
|
|
18
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro", void 0);
|
|
19
19
|
|
|
20
20
|
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro";
|
|
21
21
|
const $$url = "/app/account";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mime from 'mime';
|
|
2
2
|
import sharp$1 from 'sharp';
|
|
3
|
-
import { B as BaseSSRService, i as isOutputFormatSupportsAlpha } from './_...slug_.astro.
|
|
3
|
+
import { B as BaseSSRService, i as isOutputFormatSupportsAlpha } from './_...slug_.astro.4358f614.mjs';
|
|
4
4
|
|
|
5
5
|
class SharpService extends BaseSSRService {
|
|
6
6
|
async transform(inputBuffer, transform) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead,
|
|
2
|
-
import { l as loadRouteContext, $ as $$
|
|
1
|
+
import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead, d as addAttribute, b as renderComponent } from '../astro.2d3ebf0f.mjs';
|
|
2
|
+
import { l as loadRouteContext, $ as $$BaseHead, a as $$PageHeader, b as $$Base } from './_...slug_.astro.4358f614.mjs';
|
|
3
3
|
import 'path-to-regexp';
|
|
4
4
|
import 'cookie';
|
|
5
5
|
import '@astrojs/internal-helpers/path';
|
|
6
6
|
import 'kleur/colors';
|
|
7
|
-
import 'fs';
|
|
8
|
-
import 'http';
|
|
9
|
-
import 'tls';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:http';
|
|
9
|
+
import 'node:tls';
|
|
10
10
|
import 'mime';
|
|
11
|
-
import 'html-escaper';
|
|
12
11
|
import 'string-width';
|
|
12
|
+
import 'html-escaper';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import 'node:path';
|
|
15
15
|
import 'node:url';
|
|
@@ -20,7 +20,6 @@ import 'magic-string';
|
|
|
20
20
|
import 'node:stream';
|
|
21
21
|
import '@cloudcommerce/api';
|
|
22
22
|
import 'node:events';
|
|
23
|
-
import 'node:fs';
|
|
24
23
|
import '@cloudcommerce/config';
|
|
25
24
|
import '@ecomplus/utils';
|
|
26
25
|
/* empty css */import 'vue';
|
|
@@ -39,7 +38,7 @@ const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
39
38
|
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
40
39
|
</p>
|
|
41
40
|
</main>`;
|
|
42
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro");
|
|
41
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro", void 0);
|
|
43
42
|
|
|
44
43
|
const $$Astro = createAstro("https://ecom2-demo.web.app");
|
|
45
44
|
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
@@ -52,12 +51,13 @@ const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
52
51
|
return err.astroResponse;
|
|
53
52
|
}
|
|
54
53
|
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
55
|
-
${renderComponent($$result, "Base", $$Base, {}, { "default": ($$result2) => renderTemplate`
|
|
54
|
+
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
55
|
+
|
|
56
56
|
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
57
57
|
${renderComponent($$result2, "FallbackMain", $$Fallback$1, {})}
|
|
58
58
|
` })}
|
|
59
59
|
</html>`;
|
|
60
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro");
|
|
60
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", void 0);
|
|
61
61
|
|
|
62
62
|
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
|
|
63
63
|
const $$url = "/fallback";
|