cloudcommerce 0.26.6 → 0.27.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/.github/workflows/test-apps.yml +2 -2
- package/.gitmodules +0 -3
- package/.vscode/settings.json +3 -1
- package/CHANGELOG.md +50 -0
- package/action.yml +2 -2
- 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/ssr/src/components/ShopHeader.vue +4 -1
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/ecomplus-stores/barra-doce/scripts/install.sh +12 -2
- package/ecomplus-stores/monocard/.firebaserc +1 -1
- package/ecomplus-stores/monocard/.github/build-and-deploy +1 -0
- package/ecomplus-stores/monocard/.github/workflows/build-and-deploy.yml +1 -0
- package/ecomplus-stores/monocard/README.md +11 -82
- package/ecomplus-stores/{iluminim → monocard}/SETUP.md +12 -0
- package/ecomplus-stores/{iluminim → monocard}/SETUP.pt-BR.md +12 -0
- package/ecomplus-stores/monocard/functions/config.json +1 -1
- package/ecomplus-stores/monocard/functions/{core → many}/package.json +4 -2
- package/ecomplus-stores/monocard/functions/ssr/.eslintrc.cjs +1 -1
- package/ecomplus-stores/monocard/functions/ssr/content/layout.json +25 -10
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/content/pages/home.json +12 -19
- package/ecomplus-stores/monocard/functions/ssr/content/pages/products.json +19 -0
- package/ecomplus-stores/monocard/functions/ssr/content/settings.json +22 -2
- package/ecomplus-stores/monocard/functions/ssr/package.json +8 -9
- package/ecomplus-stores/monocard/functions/ssr/src/assets/card.css +99 -0
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/assets/style.css +16 -7
- package/ecomplus-stores/monocard/functions/ssr/src/components/AccountMenu.vue +5 -14
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/Banner.vue +6 -4
- package/ecomplus-stores/monocard/functions/ssr/src/components/Breadcrumbs.astro +44 -0
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/CartSidebar.vue +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/components/DemoVideo.vue +8 -3
- package/ecomplus-stores/monocard/functions/ssr/src/components/DocDescription.astro +30 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.vue +2 -2
- package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +12 -9
- package/ecomplus-stores/monocard/functions/ssr/src/components/MonocardCustomizer.vue +8 -105
- package/ecomplus-stores/monocard/functions/ssr/src/components/Prices.vue +10 -27
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/ProductCard.vue +1 -1
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/ShopFooter.vue +9 -35
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeader.vue +85 -32
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeaderMenu.vue +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenav.vue +3 -3
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenavCategory.vue +2 -2
- package/ecomplus-stores/monocard/functions/ssr/src/env.d.ts +9 -1
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Base.astro +9 -44
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/layouts/PageFooter.astro +3 -19
- package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/layouts/PageHeader.astro +7 -14
- package/ecomplus-stores/monocard/functions/ssr/src/main/Fallback.astro +0 -5
- package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +6 -12
- package/ecomplus-stores/monocard/functions/ssr/src/main/Sections.astro +38 -0
- package/ecomplus-stores/monocard/functions/ssr/src/main/Wildcard.astro +4 -18
- package/ecomplus-stores/monocard/functions/ssr/src/pages/[...slug].astro +15 -9
- package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +19 -9
- package/ecomplus-stores/monocard/functions/ssr/src/pages/index.astro +16 -10
- package/ecomplus-stores/monocard/functions/ssr/src/scripts/InlineScripts.astro +6 -6
- package/ecomplus-stores/monocard/functions/ssr/tailwind.config.cjs +1 -11
- package/ecomplus-stores/monocard/functions/{events → with-apps}/package.json +4 -3
- package/ecomplus-stores/monocard/package.json +4 -1
- package/ecomplus-stores/monocard/scripts/install.sh +12 -2
- package/ecomplus-stores/tia-sonia/scripts/install.sh +12 -2
- package/package.json +7 -7
- package/packages/api/package.json +1 -1
- package/packages/apps/affilate-program/package.json +2 -2
- package/packages/apps/correios/package.json +3 -4
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +3 -3
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +2 -2
- package/packages/apps/fb-conversions/package.json +3 -3
- package/packages/apps/flash-courier/package.json +2 -2
- package/packages/apps/frenet/package.json +3 -3
- package/packages/apps/galaxpay/package.json +3 -3
- package/packages/apps/google-analytics/package.json +3 -3
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +3 -3
- package/packages/apps/mercadopago/package.json +3 -3
- package/packages/apps/pagarme/package.json +4 -4
- package/packages/apps/paghiper/package.json +3 -3
- package/packages/apps/pix/package.json +3 -3
- package/packages/apps/tiny-erp/lib/integration/export-order-to-tiny.js +22 -0
- package/packages/apps/tiny-erp/lib/integration/export-order-to-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/helpers/format-tiny-date.js +2 -2
- package/packages/apps/tiny-erp/lib/integration/helpers/format-tiny-date.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js +7 -1
- package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js +14 -5
- package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/parsers/order-from-tiny.js +9 -1
- package/packages/apps/tiny-erp/lib/integration/parsers/order-from-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js +8 -6
- package/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js +118 -38
- package/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js +8 -0
- package/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js.map +1 -1
- package/packages/apps/tiny-erp/package.json +3 -3
- package/packages/apps/tiny-erp/src/integration/export-order-to-tiny.ts +24 -0
- package/packages/apps/tiny-erp/src/integration/helpers/format-tiny-date.ts +2 -2
- package/packages/apps/tiny-erp/src/integration/import-order-from-tiny.ts +8 -1
- package/packages/apps/tiny-erp/src/integration/import-product-from-tiny.ts +17 -5
- package/packages/apps/tiny-erp/src/integration/parsers/order-from-tiny.ts +13 -1
- package/packages/apps/tiny-erp/src/integration/parsers/order-to-tiny.ts +11 -6
- package/packages/apps/tiny-erp/src/integration/parsers/product-from-tiny.ts +144 -41
- package/packages/apps/tiny-erp/src/integration/parsers/product-to-tiny.ts +10 -0
- package/packages/apps/webhooks/package.json +3 -3
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +4 -4
- package/packages/eslint/base.eslintrc.cjs +3 -0
- package/packages/eslint/package.json +5 -4
- package/packages/eslint/storefront.eslintrc.cjs +8 -1
- package/packages/events/package.json +2 -2
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +3 -3
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +3 -3
- package/packages/passport/package.json +2 -2
- package/packages/ssr/lib/firebase/serve-storefront.js +23 -8
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +3 -3
- package/packages/ssr/src/firebase/serve-storefront.ts +24 -8
- package/packages/storefront/.auto-imports.d.ts +65 -0
- package/packages/storefront/astro.config.mjs +24 -1
- package/packages/storefront/client.d.ts +1 -0
- package/packages/storefront/config/astro/context-directive.mjs +21 -0
- package/packages/storefront/config/astro/index.d.ts +8 -0
- package/packages/storefront/config/storefront.tailwind.cjs +0 -1
- package/packages/storefront/dist/client/_astro/{Carousel.9ad2e1dc.js → Carousel.4bf71bce.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.a6c6a885.js → CartSidebar.05b12b39.js} +1 -1
- package/packages/storefront/dist/client/_astro/{HeroSlider.ee1e6200.js → HeroSlider.fe108a14.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.6111676e.js → PitchBar.2c821b77.js} +1 -1
- package/packages/storefront/dist/client/_astro/{Prices.04ff8fce.js → Prices.78eb0a61.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.085721d6.js → ProductShelf.46d8a51c.js} +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.3694a82b.js +4 -0
- package/packages/storefront/dist/client/_astro/_...slug_.a4a7a874.css +1 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_CDmhA.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_Z27EX9f.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_Zo1CLq.png +0 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.8c541cce.js → firebase-app.3f59f3c7.js} +3 -3
- package/packages/storefront/dist/client/_astro/headphone_1Ekzdh.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1GbHcH.webp +0 -0
- package/packages/storefront/dist/client/_astro/{hoisted.85fdcf03.js → hoisted.648beb9d.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.fadf28bd.js +1 -0
- package/packages/storefront/dist/client/_astro/logo_144owC.webp +0 -0
- package/packages/storefront/dist/client/_astro/logo_1ug3XF.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1EIN1I.avif +0 -0
- package/packages/storefront/dist/client/_astro/{modules-info.e5d77bf3.js → modules-info.df822732.js} +1 -1
- package/packages/storefront/dist/client/_astro/passion_1LvKlp.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_2PSWs.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1A8K2Q.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1ND0he.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1mIaKd.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_LhopI.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1NFjiR.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z2a06Gx.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z2nulUU.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZH7hsH.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZorpIx.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1CcLjM.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1IVKep.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1zkdb4.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_299fN7.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_CnIof.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z1OtQaE.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_flB3g.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_rsWaw.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_sLbkT.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1yf5jS.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_GQBli.webp +0 -0
- package/packages/storefront/dist/client/~fallback.html +67 -0
- package/packages/storefront/dist/client/~index.html +113 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar.41b20543.mjs → CartSidebar.4179ad81.mjs} +4 -12
- package/packages/storefront/dist/server/chunks/{SearchModal.5f5e6a15.mjs → SearchModal.146ce2f7.mjs} +4 -11
- package/packages/storefront/dist/server/chunks/_...05c626ea.mjs +28 -0
- package/packages/storefront/dist/server/chunks/{account@_@astro.204fba92.mjs → account@_@astro.5eaddaf8.mjs} +2 -9
- package/packages/storefront/dist/server/chunks/{index@_@astro.19e0f502.mjs → index@_@astro.25a343cc.mjs} +3 -10
- package/packages/storefront/dist/server/chunks/{index@_@astro.b37a6ac9.mjs → index@_@astro.2d2f2e33.mjs} +3 -10
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.36e8882b.mjs → _...slug_.astro.0808946e.mjs} +1836 -450
- package/packages/storefront/dist/server/chunks/pages/index.astro.d4145872.mjs +186 -0
- package/packages/storefront/dist/server/chunks/pages/{~fallback.astro.ba4c2475.mjs → ~fallback.astro.84d4765b.mjs} +6 -23
- package/packages/storefront/dist/server/chunks/{~fallback@_@astro.6bb4c4b4.mjs → ~fallback@_@astro.86d710c3.mjs} +3 -10
- package/packages/storefront/dist/server/entry.mjs +7 -14
- package/packages/storefront/dist/server/images.dist.csv +30 -0
- package/packages/storefront/dist/server/images.src.csv +11 -0
- package/packages/storefront/dist/server/renderers.mjs +2 -9
- package/packages/storefront/dist/server/static-builds.csv +51 -0
- package/packages/storefront/package.json +6 -5
- package/packages/storefront/scripts/build-prod.sh +3 -2
- package/packages/storefront/server.d.ts +1 -0
- package/packages/storefront/src/lib/$storefront.d.ts +8 -8
- package/packages/storefront/src/lib/assets/base.css +13 -0
- package/packages/storefront/src/lib/assets/reset.css +11 -2
- package/packages/storefront/src/lib/components/Carousel.vue +93 -72
- package/packages/storefront/src/lib/components/CarouselControl.vue +13 -7
- package/packages/storefront/src/lib/components/ContentClearfix.vue +17 -0
- package/packages/storefront/src/lib/components/Drawer.vue +3 -3
- package/packages/storefront/src/lib/components/PaymentMethodFlag.vue +1 -1
- package/packages/storefront/src/lib/components/QuantitySelector.vue +4 -4
- package/packages/storefront/src/lib/components/QuantitySelectorControl.vue +2 -2
- package/packages/storefront/src/lib/components/ViewTransitions.astro +409 -0
- package/packages/storefront/src/lib/components/globals/AImg.vue +2 -1
- package/packages/storefront/src/lib/layouts/BaseBody.astro +1 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +28 -5
- package/packages/storefront/src/lib/layouts/use-page-header.ts +2 -2
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +2 -0
- package/ecomplus-stores/iluminim/.devcontainer/devcontainer.json +0 -30
- package/ecomplus-stores/iluminim/.editorconfig +0 -13
- package/ecomplus-stores/iluminim/.eslintrc.cjs +0 -3
- package/ecomplus-stores/iluminim/.firebaserc +0 -5
- package/ecomplus-stores/iluminim/.github/renovate.json +0 -5
- package/ecomplus-stores/iluminim/.github/workflows/build-and-deploy.yml +0 -36
- package/ecomplus-stores/iluminim/.github/workflows/calibreapp-image-actions.yml +0 -23
- package/ecomplus-stores/iluminim/.gitpod.yml +0 -12
- package/ecomplus-stores/iluminim/.idx/dev.nix +0 -24
- package/ecomplus-stores/iluminim/.nvmrc +0 -1
- package/ecomplus-stores/iluminim/.vscode/extensions.json +0 -8
- package/ecomplus-stores/iluminim/.vscode/launch.json +0 -11
- package/ecomplus-stores/iluminim/.vscode/settings.json +0 -10
- package/ecomplus-stores/iluminim/README.md +0 -31
- package/ecomplus-stores/iluminim/functions/config.json +0 -3
- package/ecomplus-stores/iluminim/functions/example.env +0 -10
- package/ecomplus-stores/iluminim/functions/many/package.json +0 -22
- package/ecomplus-stores/iluminim/functions/ssr/.eslintrc.cjs +0 -6
- package/ecomplus-stores/iluminim/functions/ssr/astro.config.mjs +0 -4
- package/ecomplus-stores/iluminim/functions/ssr/content/layout.json +0 -57
- package/ecomplus-stores/iluminim/functions/ssr/content/settings.json +0 -65
- package/ecomplus-stores/iluminim/functions/ssr/index.js +0 -18
- package/ecomplus-stores/iluminim/functions/ssr/package.json +0 -31
- package/ecomplus-stores/iluminim/functions/ssr/public/admin/.gitkeep +0 -2
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cms-preview.css +0 -274
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cms.css +0 -114
- 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/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 +0 -6
- package/ecomplus-stores/iluminim/functions/ssr/scripts/build.sh +0 -14
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +0 -95
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Countdown.vue +0 -79
- package/ecomplus-stores/iluminim/functions/ssr/src/components/HeroSlider.vue +0 -52
- package/ecomplus-stores/iluminim/functions/ssr/src/components/PitchBar.vue +0 -56
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Prices.vue +0 -95
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductsCountdown.vue +0 -20
- package/ecomplus-stores/iluminim/functions/ssr/src/components/SearchModal.vue +0 -6
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +0 -158
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeaderMenu.vue +0 -58
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeaderSubmenu.vue +0 -88
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenav.vue +0 -61
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenavCategory.vue +0 -80
- package/ecomplus-stores/iluminim/functions/ssr/src/env.d.ts +0 -13
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/Base.astro +0 -16
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Fallback.astro +0 -10
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Home.astro +0 -49
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Sections.astro +0 -42
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Wildcard.astro +0 -18
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/[...slug].astro +0 -40
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/_vue.ts +0 -3
- 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/index.astro +0 -37
- package/ecomplus-stores/iluminim/functions/ssr/src/scripts/InlineScripts.astro +0 -10
- package/ecomplus-stores/iluminim/functions/ssr/tailwind.config.cjs +0 -13
- package/ecomplus-stores/iluminim/functions/ssr/tsconfig.json +0 -12
- package/ecomplus-stores/iluminim/functions/ssr/uno.config.cjs +0 -5
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +0 -22
- package/ecomplus-stores/iluminim/package.json +0 -31
- package/ecomplus-stores/iluminim/scripts/install.sh +0 -14
- package/ecomplus-stores/monocard/README.pt-BR.md +0 -102
- package/ecomplus-stores/monocard/functions/core/index.js +0 -9
- package/ecomplus-stores/monocard/functions/events/index.js +0 -9
- package/ecomplus-stores/monocard/functions/modules/index.js +0 -9
- package/ecomplus-stores/monocard/functions/modules/package.json +0 -21
- package/ecomplus-stores/monocard/functions/passport/index.js +0 -9
- package/ecomplus-stores/monocard/functions/passport/package.json +0 -21
- package/ecomplus-stores/monocard/functions/ssr/content/blog.json +0 -18
- package/ecomplus-stores/monocard/functions/ssr/content/brands.json +0 -24
- package/ecomplus-stores/monocard/functions/ssr/content/categories.json +0 -24
- package/ecomplus-stores/monocard/functions/ssr/content/collections.json +0 -24
- package/ecomplus-stores/monocard/functions/ssr/content/home.json +0 -45
- package/ecomplus-stores/monocard/functions/ssr/content/maintenance.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/contato.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/entrega.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/faq.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/pagamentos.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/privacidade.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/sobre-nos.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/termos.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/pages/trocas.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/posts/esta-loja-e-um-pwa.json +0 -9
- package/ecomplus-stores/monocard/functions/ssr/content/products.json +0 -32
- package/ecomplus-stores/monocard/functions/ssr/content/search.json +0 -8
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/analytics.json +0 -11
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/compre-confie.json +0 -11
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/ebit.json +0 -11
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/fb-pixel.json +0 -12
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/gmc-ratings.json +0 -12
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/minicart.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/offers-notification.json +0 -11
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/opinioes-verificadas.json +0 -18
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/product-card.json +0 -10
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/product.json +0 -13
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/search-engine.json +0 -8
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/search.json +0 -6
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/tag-manager.json +0 -12
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/tawkto.json +0 -12
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/trustvox.json +0 -15
- package/ecomplus-stores/monocard/functions/ssr/content/widgets/user.json +0 -5
- package/ecomplus-stores/monocard/functions/ssr/public/admin/config.json +0 -1
- package/ecomplus-stores/monocard/functions/ssr/public/assets/cms-preview.css +0 -274
- package/ecomplus-stores/monocard/functions/ssr/public/assets/cms.css +0 -114
- package/ecomplus-stores/monocard/functions/ssr/public/assets/cvv.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/fonts/FavoritPro-Regular.woff2 +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/fonts/MyriadPro-Regular.woff2 +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/ssl-safe.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Pages.astro +0 -50
- package/ecomplus-stores/monocard/functions/ssr/src/pages/fallback.astro +0 -21
- package/packages/storefront/dist/client/_astro/ShopHeader.7e485e35.js +0 -4
- package/packages/storefront/dist/client/_astro/_...slug_.b693913e.css +0 -1
- package/packages/storefront/dist/client/_astro/index.ea57babe.js +0 -1
- package/packages/storefront/dist/server/chunks/_...4a2548d2.mjs +0 -35
- package/packages/storefront/dist/server/chunks/endpoint@_@js.11be892a.mjs +0 -35
- package/packages/storefront/dist/server/chunks/pages/endpoint.js.f7a896a1.mjs +0 -119
- package/packages/storefront/dist/server/chunks/pages/index.astro.3145bd93.mjs +0 -1649
- package/packages/storefront/src/lib/components/ContentClearfix.astro +0 -12
- /package/ecomplus-stores/{iluminim → monocard}/functions/many/index.js +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/content/blog/.gitkeep +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/content/extra-pages/contato.json +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/content/extra-pages/terms.json +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/content/extra-pages/trocas.json +0 -0
- /package/ecomplus-stores/{iluminim/functions/ssr/src/layouts/Checkout.astro → monocard/functions/ssr/public/admin/.gitkeep} +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/public/img/uploads/ecom-icon.png +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/BannersGrid.astro +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/CartItem.vue +0 -0
- /package/ecomplus-stores/monocard/functions/ssr/src/components/{FeatureTabs.astro → FeaturesSection.astro} +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/components/ProductShelf.vue +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/ssr/src/pages/~fallback.astro +0 -0
- /package/ecomplus-stores/{iluminim → monocard}/functions/with-apps/index.js +0 -0
|
@@ -106,11 +106,11 @@ jobs:
|
|
|
106
106
|
${{ steps.npm-paths.outputs.LIB_PATH }}
|
|
107
107
|
${{ steps.npm-paths.outputs.BIN_PATH }}
|
|
108
108
|
~/.npm-global/bin
|
|
109
|
-
key: ${{ runner.os }}-npm-globals-firebase-tools-12.
|
|
109
|
+
key: ${{ runner.os }}-npm-globals-firebase-tools-12.6.1
|
|
110
110
|
|
|
111
111
|
- if: steps.npm-g-cache.outputs.cache-hit != 'true'
|
|
112
112
|
shell: bash
|
|
113
|
-
run: npm install -g firebase-tools@12.
|
|
113
|
+
run: npm install -g firebase-tools@12.6.1
|
|
114
114
|
|
|
115
115
|
- name: Initialize Firebase emulators
|
|
116
116
|
shell: bash
|
package/.gitmodules
CHANGED
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
[submodule "ecomplus-stores/tia-sonia"]
|
|
8
8
|
path = ecomplus-stores/tia-sonia
|
|
9
9
|
url = git@github.com:ecomplus-stores/tia-sonia.git
|
|
10
|
-
[submodule "ecomplus-stores/iluminim"]
|
|
11
|
-
path = ecomplus-stores/iluminim
|
|
12
|
-
url = git@github.com:ecomplus-stores/iluminim.git
|
|
13
10
|
[submodule "ecomplus-stores/barra-doce"]
|
|
14
11
|
path = ecomplus-stores/barra-doce
|
|
15
12
|
url = git@github.com:ecomplus-stores/barra-doce.git
|
package/.vscode/settings.json
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
"editor.quickSuggestions": {
|
|
3
3
|
"strings": true
|
|
4
4
|
},
|
|
5
|
+
"editor.codeActionsOnSave": {
|
|
6
|
+
"source.fixAll.eslint": true
|
|
7
|
+
},
|
|
5
8
|
"files.associations": {
|
|
6
9
|
"*.css": "tailwindcss"
|
|
7
10
|
},
|
|
@@ -15,7 +18,6 @@
|
|
|
15
18
|
"store/functions/ssr/tailwind.config.cjs": "store/**",
|
|
16
19
|
"ecomplus-stores/monocard/functions/ssr/tailwind.config.cjs": "ecomplus-stores/monocard/**",
|
|
17
20
|
"ecomplus-stores/tia-sonia/functions/ssr/tailwind.config.cjs": "ecomplus-stores/tia-sonia/**",
|
|
18
|
-
"ecomplus-stores/iluminim/functions/ssr/tailwind.config.cjs": "ecomplus-stores/iluminim/**",
|
|
19
21
|
"ecomplus-stores/barra-doce/functions/ssr/tailwind.config.cjs": "ecomplus-stores/barra-doce/**"
|
|
20
22
|
},
|
|
21
23
|
"typescript.tsdk": "node_modules/typescript/lib"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.27.0](https://github.com/ecomplus/cloud-commerce/compare/v0.26.7...v0.27.0) (2023-10-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **storefront:** Astro.locals.contextInlineClientJS no more set
|
|
11
|
+
* **storefront:** <Carousel> API changed, using explicit `index` prop with model instead of default (value) `v-model`, edited binds on controls slot
|
|
12
|
+
* **storefront:** Component ContentClearfix.astro is removed in favor of .vue one
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **storefront:** Add new prop `preferredSize` to global <AImg> component ([d2387d4](https://github.com/ecomplus/cloud-commerce/commit/d2387d4a20b7e2343399674b4f73bd7dee70f879))
|
|
17
|
+
* **storefront:** Auto import Vue composition API and other helper exports ([9e92931](https://github.com/ecomplus/cloud-commerce/commit/9e929316277f0162ff55a1c86792697dc50867e5))
|
|
18
|
+
* **storefront:** New prop `hasControls` to <Carousel> ([017d5c9](https://github.com/ecomplus/cloud-commerce/commit/017d5c9f8eb9f927e463b8a7d5c6f1f811d839f5))
|
|
19
|
+
* **storefront:** Update <Carousel> with new optional `axis` prop for vertical slide ([21e3a02](https://github.com/ecomplus/cloud-commerce/commit/21e3a02799bb52e573856a4304032315e060410b))
|
|
20
|
+
* **tiny-erp:** Updating with https://github.com/ecomplus/app-tiny-erp ([#218](https://github.com/ecomplus/cloud-commerce/issues/218)) ([a5ffd26](https://github.com/ecomplus/cloud-commerce/commit/a5ffd26808ddc5609492a39363ce265d3ded3f26))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **deps:** Update non-major dependencies ([#248](https://github.com/ecomplus/cloud-commerce/issues/248)) ([344927b](https://github.com/ecomplus/cloud-commerce/commit/344927bb69b3be5c5ec1e43dc0b38246a04f256a))
|
|
26
|
+
* **storefront:** Add hardfix on base CSS to hide duplicated drawer backdrops (with "SPA" mode) ([91ce452](https://github.com/ecomplus/cloud-commerce/commit/91ce452b50bd210999c8c228adcf744fa763a5be))
|
|
27
|
+
* **storefront:** Disable View Transitions fallback (Firefox) by default (for now) ([deb58ff](https://github.com/ecomplus/cloud-commerce/commit/deb58ff34c9bf3f58e3f961a060d062bad3518a3))
|
|
28
|
+
* **storefront:** Fixing global `$storefront.apiContext.doc` types with full resources interfaces ([c28ce11](https://github.com/ecomplus/cloud-commerce/commit/c28ce118325a7aac9409d8d3535b95879b3ea021))
|
|
29
|
+
* **storefront:** Properly dealing with API Context on View Transitions ([e254116](https://github.com/ecomplus/cloud-commerce/commit/e2541161f696ccd5da8403d8d7bea0e9c33131fc))
|
|
30
|
+
* **storefront:** Properly sync <Carousel> index on prop change ([6237934](https://github.com/ecomplus/cloud-commerce/commit/6237934cdf5c70c47d7269c0dd35125b427bd30a))
|
|
31
|
+
* **storefront:** Setup custom <ViewTransitions> with fixed head script exec and browser fallback ([2e53207](https://github.com/ecomplus/cloud-commerce/commit/2e5320718bfa76c6e7f6258031a546e3f9089aa4))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
* **storefront:** Move <ContentClearfix> to Vue component instead of Astro one ([e6ca8c4](https://github.com/ecomplus/cloud-commerce/commit/e6ca8c4bbe5f8f42de15d852273dd9ae2575c136))
|
|
35
|
+
|
|
36
|
+
### [0.26.7](https://github.com/ecomplus/cloud-commerce/compare/v0.26.6...v0.26.7) (2023-09-18)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **ssr:** Fallback redirect static built files on 404 hash mismtach ([494848b](https://github.com/ecomplus/cloud-commerce/commit/494848b5822f0bb5fd4e1dc9c800197b6c585e33))
|
|
42
|
+
* **storefront:** Edit `usePageHeader` to accept `listedCategoryFields` null skip categories fetch ([be563d7](https://github.com/ecomplus/cloud-commerce/commit/be563d746837c97972825d2db5cdf01fc3084238))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* **deps:** Update dependency facebook-nodejs-business-sdk to v18 ([#239](https://github.com/ecomplus/cloud-commerce/issues/239)) ([464b0df](https://github.com/ecomplus/cloud-commerce/commit/464b0df1701f1e73e0c891ab8d64144f3c5e23cb))
|
|
48
|
+
* **deps:** Update non-major dependencies ([#238](https://github.com/ecomplus/cloud-commerce/issues/238)) ([e869660](https://github.com/ecomplus/cloud-commerce/commit/e869660e1796f1a78bbf98ab7b345909f61cc3cf))
|
|
49
|
+
* **storefront:** Hardfix for 100vh problem on mobile (`.h-screen`) with dvh unit ([c4a3fb7](https://github.com/ecomplus/cloud-commerce/commit/c4a3fb707a3668ec5ffdd8ae7a2b987da8a40ad7))
|
|
50
|
+
* **storefront:** New `Astro.locals.contextInlineClientJS` and body script to reset context n CSR ([eeab76c](https://github.com/ecomplus/cloud-commerce/commit/eeab76c30c5e3942d032d475459828872461eaf6))
|
|
51
|
+
* **storefront:** Set and reset <body> visibility to prevent FOUC ([6eb237f](https://github.com/ecomplus/cloud-commerce/commit/6eb237f7173072a3ee780fe7cd948faaa99dfec6))
|
|
52
|
+
* **storefront:** Update ContentClearfix to also limit child <iframe> width ([0b0031b](https://github.com/ecomplus/cloud-commerce/commit/0b0031bb4c10fd50d92c0ca2165446e760174c3a))
|
|
53
|
+
* **storefront:** Update reset.css to selector specificity 0 for button/a colors ([23b3870](https://github.com/ecomplus/cloud-commerce/commit/23b387066e96808fc59fbca40beffa1bad8227ca))
|
|
54
|
+
|
|
5
55
|
### [0.26.6](https://github.com/ecomplus/cloud-commerce/compare/v0.26.5...v0.26.6) (2023-09-13)
|
|
6
56
|
|
|
7
57
|
|
package/action.yml
CHANGED
|
@@ -133,11 +133,11 @@ runs:
|
|
|
133
133
|
${{ steps.npm-paths.outputs.LIB_PATH }}
|
|
134
134
|
${{ steps.npm-paths.outputs.BIN_PATH }}
|
|
135
135
|
~/.npm-global/bin
|
|
136
|
-
key: ${{ runner.os }}-npm-g-firebase-tools-12.
|
|
136
|
+
key: ${{ runner.os }}-npm-g-firebase-tools-12.6.1
|
|
137
137
|
|
|
138
138
|
- if: ${{ github.event_name == 'push' && steps.npm-g-cache.outputs.cache-hit != 'true' }}
|
|
139
139
|
shell: bash
|
|
140
|
-
run: npm i --location=global firebase-tools@12.
|
|
140
|
+
run: npm i --location=global firebase-tools@12.6.1
|
|
141
141
|
|
|
142
142
|
- if: steps.npm-cache-many.outputs.cache-hit != 'true'
|
|
143
143
|
name: Install codebase "many" dependencies
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.26.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.26.
|
|
20
|
-
"@cloudcommerce/passport": "^0.26.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.26.7",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.26.7",
|
|
20
|
+
"@cloudcommerce/passport": "^0.26.7"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.26.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.26.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.26.
|
|
20
|
+
"@cloudcommerce/api": "^0.26.7",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.26.7",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.26.7"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.26.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.26.
|
|
27
|
-
"@cloudcommerce/types": "^0.26.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.26.7",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.26.7",
|
|
27
|
+
"@cloudcommerce/types": "^0.26.7",
|
|
28
28
|
"@fontsource/croissant-one": "^5.0.9",
|
|
29
29
|
"@iconify-json/mingcute": "^1.1.9"
|
|
30
30
|
}
|
|
@@ -105,7 +105,10 @@
|
|
|
105
105
|
:has-close-button="false"
|
|
106
106
|
position="absolute"
|
|
107
107
|
:class="isSticky ? 'mt-2 md:mt-3' : 'mt-3 sm:mt-4 md:mt-5'"
|
|
108
|
-
:style="{
|
|
108
|
+
:style="{
|
|
109
|
+
height: `calc(100vh - ${positionY}px + .5rem)`,
|
|
110
|
+
maxHeight: `calc(100dvh - ${positionY}px + .5rem)`,
|
|
111
|
+
}"
|
|
109
112
|
>
|
|
110
113
|
<ShopSidenav class="bg-white pt-6" v-bind="{ categoryTrees }" />
|
|
111
114
|
</Drawer>
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.26.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.26.
|
|
20
|
-
"@cloudcommerce/modules": "^0.26.
|
|
18
|
+
"@cloudcommerce/events": "^0.26.7",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.26.7",
|
|
20
|
+
"@cloudcommerce/modules": "^0.26.7"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cloudcommerce/cli": "^0.26.
|
|
26
|
+
"@cloudcommerce/cli": "^0.26.7"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^0.26.
|
|
29
|
+
"@cloudcommerce/eslint": "^0.26.7"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -2,13 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
if [ ! -d "./node_modules" ]; then
|
|
4
4
|
echo '>> Install root dev dependencies:'
|
|
5
|
-
|
|
5
|
+
if [ -f "./package-lock.json" ]; then
|
|
6
|
+
npm ci
|
|
7
|
+
else
|
|
8
|
+
npm i
|
|
9
|
+
fi
|
|
6
10
|
fi
|
|
7
11
|
echo '>> Install each function dependencies:'
|
|
8
12
|
cd functions
|
|
9
13
|
for d in */ ; do
|
|
10
14
|
cd $d
|
|
11
|
-
|
|
15
|
+
if [ ! -d "./node_modules" ]; then
|
|
16
|
+
if [ -f "./package-lock.json" ]; then
|
|
17
|
+
npm ci
|
|
18
|
+
else
|
|
19
|
+
npm i
|
|
20
|
+
fi
|
|
21
|
+
fi
|
|
12
22
|
cd ..
|
|
13
23
|
done
|
|
14
24
|
cd ..
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
|
@@ -2,101 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
[Cloud Commerce](https://github.com/ecomplus/cloud-commerce): the new Store template
|
|
4
4
|
|
|
5
|
-
[:brazil: Tradução em português](./README.pt-BR.md)
|
|
6
|
-
|
|
7
5
|
## Getting started
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
2. Go to _Creation > Firestore Database_ page (on sidebar) and _create database_:
|
|
12
|
-
- Just bypass with default production mode and rules;
|
|
13
|
-
- Select region `us-east4` (recommended, or multi-region `nam5 (us-central)`);
|
|
14
|
-
|
|
15
|
-
3. Firebase free plan doesn't support sending external HTTP requests, so you'll need to upgrade to _Blaze_ (on demand) plan;
|
|
7
|
+
[:us: First deployment and setup](./SETUP.md)
|
|
16
8
|
|
|
17
|
-
|
|
9
|
+
[:brazil: Primeiro deploy e configuração](./SETUP.pt-BR.md)
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
- [Better way using command line](#first-deploy-on-cli)
|
|
21
|
-
- [Only in browser](#browser-only-setup) (may be easier but less safe, not recommended)
|
|
11
|
+
## Local development
|
|
22
12
|
|
|
23
|
-
#### First deploy on CLI
|
|
24
|
-
|
|
25
|
-
5. Setup and first deploy from your terminal with [Firebase CLI](https://firebase.google.com/docs/cli):
|
|
26
|
-
```bash
|
|
27
|
-
# Install `firebase-tools` and login
|
|
28
|
-
npm install -g firebase-tools && firebase login
|
|
29
|
-
```
|
|
30
13
|
```bash
|
|
31
|
-
# Clone your new store repository
|
|
32
|
-
git clone git@github.com:{gh-user}/{new-store}.git
|
|
33
|
-
cd {new-store}
|
|
34
14
|
npm i
|
|
35
15
|
```
|
|
36
16
|
|
|
37
|
-
<details open>
|
|
38
|
-
<summary>With <a href="https://cloud.google.com/sdk/docs/install">gcloud CLI</a> (optional) installed</summary>
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
# Run project configuration and deploy on GitHub Actions
|
|
42
|
-
FIREBASE_PROJECT_ID={project-id} npm run setup
|
|
43
|
-
```
|
|
44
|
-
|
|
45
17
|
> **Note**
|
|
46
|
-
>
|
|
18
|
+
> Check VS Code (highly) recommend extensions in _store/.vscode/extensions.json_
|
|
47
19
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<details>
|
|
51
|
-
<summary>Without gcloud CLI</summary>
|
|
20
|
+
### Storefront
|
|
52
21
|
|
|
53
22
|
```bash
|
|
54
|
-
|
|
55
|
-
FIREBASE_PROJECT_ID={project-id} npm run setup -- --no-gcloud
|
|
56
|
-
npm run deploy
|
|
23
|
+
npm run dev
|
|
57
24
|
```
|
|
58
25
|
|
|
59
|
-
|
|
60
|
-
- Name it _Cloud Commerce GH Actions (YOUR REPOSITORY)_;
|
|
61
|
-
- Describe it _A service account with permission to deploy Cloud Commerce from the GitHub repository to Firebase_;
|
|
62
|
-
- Continue and select the following roles to the service account:
|
|
63
|
-
1. _Firebase Admin_
|
|
64
|
-
2. _API Keys Viewer_
|
|
65
|
-
3. _Cloud Run Viewer_
|
|
66
|
-
4. _Cloud Functions Admin_
|
|
67
|
-
5. _Artifact Registry Admin_
|
|
68
|
-
6. _App Engine Creator_
|
|
69
|
-
7. _App Engine Admin_
|
|
70
|
-
8. _Cloud Scheduler Admin_
|
|
71
|
-
8. _Service Account User_
|
|
72
|
-
|
|
73
|
-
7. Back in the service accounts list, click the 3 dots (actions) and select _Manage keys_, generate and download a JSON key for the created account;
|
|
74
|
-
|
|
75
|
-
</details>
|
|
76
|
-
|
|
77
|
-
8. Set the following secrets to your GitHub repository (_Settings > Secrets > Actions_):
|
|
78
|
-
- `FIREBASE_SERVICE_ACCOUNT`: Paste the generated Google Cloud key JSON
|
|
79
|
-
- `ECOM_AUTHENTICATION_ID`: Get from CLI setup output
|
|
80
|
-
- `ECOM_API_KEY`: Get from CLI setup output
|
|
81
|
-
|
|
82
|
-
:checkered_flag: :checkered_flag: :checkered_flag: **All done, congrats!**
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
#### Browser-only setup
|
|
87
|
-
|
|
88
|
-
> **Warning**
|
|
89
|
-
> This configuration option is less secure, we recommend [first deploy on CLI](#first-deploy-on-cli) instead.
|
|
90
|
-
|
|
91
|
-
5. [Create a service account](https://console.cloud.google.com/iam-admin/serviceaccounts) for your Firebase project directly on Google Cloud Platform:
|
|
92
|
-
- Name it _Cloud Commerce GH Actions (YOUR REPOSITORY)_;
|
|
93
|
-
- Describe it _A service account with ALL permissions to deploy Cloud Commerce from the GitHub to Firebase_;
|
|
94
|
-
- Continue and select the role _Quick access > Basic > Proprietary_;
|
|
95
|
-
|
|
96
|
-
6. Back in the service accounts list, click the 3 dots (actions) and select _Manage keys_, generate and download a JSON key for the created account;
|
|
26
|
+
It starts serving the site at http://localhost:3000/.
|
|
97
27
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
- `ECOM_API_KEY`: Copy your _API Key_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
28
|
+
Edit your store source in _functions/ssr_:
|
|
29
|
+
- _src_: pages, components, styles and scripts sources;
|
|
30
|
+
- _content_: JSON and Markdown content (editable with git-based CMS);
|
|
31
|
+
- _public_: images and not-parsed static assets;
|
|
@@ -115,3 +115,15 @@ npm run deploy
|
|
|
115
115
|
- `ECOM_STORE_ID`: Copy your _Store ID_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
116
116
|
- `ECOM_AUTHENTICATION_ID`: Copy your _Authentication ID_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
117
117
|
- `ECOM_API_KEY`: Copy your _API Key_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
118
|
+
|
|
119
|
+
## Production best practices
|
|
120
|
+
|
|
121
|
+
Firebase Hosting CDN is fast, but [doesn't support cache _Stale-While-Revalidate_](https://firebase.google.com/docs/hosting/manage-cache) ([context and feature request](https://firebase.uservoice.com/forums/948424-general/suggestions/47179505-hosting-cdn-cache-stale-while-revalidate)) and Hosting proxy + Cloud Functions (even without cold starts) will never take less than 1s (TTFB will probably take ~2s). We like "instant" responses but want to keep dynamic server rendered views (for less client-side JS), so stale caching is a must and so we need another CDN layer on production.
|
|
122
|
+
|
|
123
|
+
[Cloudflare](https://www.cloudflare.com/) Worker is recommended on top of Firebase Hosting + Functions for production stores (when pointing the custom domain) with the following configuration:
|
|
124
|
+
|
|
125
|
+
- SSL full;
|
|
126
|
+
- Page rule for \*/\* (any route) with _Cache Level: Cache Everything_;
|
|
127
|
+
- [_Cache Reserve_](https://www.cloudflare.com/products/cache-reserve/) with Tiered Cache;
|
|
128
|
+
- DNS **proxied** A entry pointing to your Firebase Hosting IP;
|
|
129
|
+
- Worker _swr_ script with source (_quick edit_) copied from [`cloud-commerce/packages/ssr/cloudflare/swr-worker.js`](https://raw.githubusercontent.com/ecomplus/cloud-commerce/main/packages/ssr/cloudflare/swr-worker.js).
|
|
@@ -115,3 +115,15 @@ npm run deploy
|
|
|
115
115
|
- `ECOM_STORE_ID`: Copie seu _Store ID_ no [admin da E-Com Plus](https://ecomplus.app/)
|
|
116
116
|
- `ECOM_AUTHENTICATION_ID`: Copie seu _Authentication ID_ no [admin da E-Com Plus](https://ecomplus.app/)
|
|
117
117
|
- `ECOM_API_KEY`: Copie seu _API Key_ no [admin da E-Com Plus](https://ecomplus.app/)
|
|
118
|
+
|
|
119
|
+
## Práticas recomendadas de produção
|
|
120
|
+
|
|
121
|
+
O CDN do Firebase Hosting é rápido, mas [não suporta _Stale-While-Revalidate_](https://firebase.google.com/docs/hosting/manage-cache) ([contexto e feature request](https://firebase.uservoice.com/forums/948424-general/suggestions/47179505-hosting-cdn-cache-stale-while-revalidate)) e Hosting proxy + Cloud Functions (mesmo sem cold starts) nunca leva menos que 1s (TTFB provavelmente vai bater ~2s). Nós gostamos de respostas "instantâneas" mas queremos manter views dinâmicas renderizadas em servidor (por menos client-side JS), então stale caching é necessário e portanto precisamos de outra camada de CDN em produção.
|
|
122
|
+
|
|
123
|
+
[Cloudflare](https://www.cloudflare.com/) Worker é recomendado na frente do Firebase Hosting + Functions para lojas em produção (quando apontando o domínio próprio) com as configurações abaixo:
|
|
124
|
+
|
|
125
|
+
- SSL full;
|
|
126
|
+
- Page rule para \*/\* (qualquer rota) com _Cache Level: Cache Everything_;
|
|
127
|
+
- [_Cache Reserve_](https://www.cloudflare.com/products/cache-reserve/) com Tiered Cache;
|
|
128
|
+
- Entrada A no DNS com **proxy ativo** apontando para o IP do seu projeto no Firebase Hosting;
|
|
129
|
+
- Worker _swr_ com o código (_quick edit_) copiado de [`cloud-commerce/packages/ssr/cloudflare/swr-worker.js`](https://raw.githubusercontent.com/ecomplus/cloud-commerce/main/packages/ssr/cloudflare/swr-worker.js).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "monocard-
|
|
2
|
+
"name": "monocard-many",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/
|
|
18
|
+
"@cloudcommerce/feeds": "^0.26.7",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.26.7",
|
|
20
|
+
"@cloudcommerce/passport": "^0.26.7"
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -22,16 +22,31 @@
|
|
|
22
22
|
},
|
|
23
23
|
"alphabetical_sort_submenu": false
|
|
24
24
|
},
|
|
25
|
-
"service_links": [
|
|
26
|
-
{
|
|
27
|
-
"title": "Edite seu Monocard",
|
|
28
|
-
"href": "https://mono.direct/login"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"title": "Fale conosco",
|
|
32
|
-
"href": "https://ajuda.monocard.com.br/"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
25
|
"footer": {
|
|
26
|
+
"pages_list": {
|
|
27
|
+
"enabled": true,
|
|
28
|
+
"title": "",
|
|
29
|
+
"links": []
|
|
30
|
+
},
|
|
31
|
+
"stamps": [
|
|
32
|
+
{
|
|
33
|
+
"img": "",
|
|
34
|
+
"alt": "Troca garantida",
|
|
35
|
+
"icon": "exchange",
|
|
36
|
+
"href": "/p/trocas"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"img": "",
|
|
40
|
+
"alt": "Google Navegação Segura",
|
|
41
|
+
"icon": "check",
|
|
42
|
+
"href": "https://transparencyreport.google.com/safe-browsing/search?url={domain}"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"img": "",
|
|
46
|
+
"alt": "Conexão SSL",
|
|
47
|
+
"icon": "lock",
|
|
48
|
+
"href": ""
|
|
49
|
+
}
|
|
50
|
+
]
|
|
36
51
|
}
|
|
37
52
|
}
|
|
@@ -4,18 +4,6 @@
|
|
|
4
4
|
"hero": {
|
|
5
5
|
"autoplay": 9000,
|
|
6
6
|
"slides": [
|
|
7
|
-
{
|
|
8
|
-
"start": "",
|
|
9
|
-
"end": "",
|
|
10
|
-
"img": "/img/uploads/banner-chamada-desktop-9x81zmd91q.webp",
|
|
11
|
-
"alt": "LED Ofertas - Confira preços imbatíveis",
|
|
12
|
-
"mobile_img": "/img/uploads/chamada-mobile-q1c6om6jx4.webp",
|
|
13
|
-
"href": "",
|
|
14
|
-
"title": "",
|
|
15
|
-
"subtitle": "",
|
|
16
|
-
"button_link": "",
|
|
17
|
-
"button_text": ""
|
|
18
|
-
},
|
|
19
7
|
{
|
|
20
8
|
"start": "",
|
|
21
9
|
"end": "",
|
|
@@ -27,6 +15,18 @@
|
|
|
27
15
|
"subtitle": "At demoStore you can shop the best tech of 2023. Enjoy and get 10% off on your first purchase!",
|
|
28
16
|
"button_link": "/",
|
|
29
17
|
"button_text": "See"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"start": "",
|
|
21
|
+
"end": "",
|
|
22
|
+
"img": "/img/uploads/rect859.png",
|
|
23
|
+
"alt": "",
|
|
24
|
+
"mobile_img": "",
|
|
25
|
+
"href": "",
|
|
26
|
+
"title": "",
|
|
27
|
+
"subtitle": "",
|
|
28
|
+
"button_link": "",
|
|
29
|
+
"button_text": ""
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
32
|
},
|
|
@@ -58,13 +58,6 @@
|
|
|
58
58
|
"mobile_img": "/img/uploads/headphone.webp"
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "c:products-countdown",
|
|
64
|
-
"skus": [
|
|
65
|
-
"PG-RT36WBN-30X60-KIT50",
|
|
66
|
-
"FII4749"
|
|
67
|
-
]
|
|
68
61
|
}
|
|
69
62
|
]
|
|
70
63
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"domain": "
|
|
2
|
+
"domain": "ecom2monocard.web.app",
|
|
3
3
|
"name": "Monocard",
|
|
4
4
|
"description": "Monocard - O seu último cartão de visitas",
|
|
5
5
|
"logo": "/img/uploads/logo.webp",
|
|
6
|
-
"icon": "/img/icon.png",
|
|
6
|
+
"icon": "/img/uploads/ecom-icon.png",
|
|
7
7
|
"primary_color": "#92F7B6",
|
|
8
8
|
"email": "",
|
|
9
9
|
"phone": "",
|
|
@@ -21,6 +21,26 @@
|
|
|
21
21
|
"youtube": "https://www.youtube.com/channel/UCBlIxK5JAub0E1EX_qHdzmA",
|
|
22
22
|
"tiktok": "",
|
|
23
23
|
"pinterest": "",
|
|
24
|
+
"threads": "",
|
|
25
|
+
"service_links": [
|
|
26
|
+
{
|
|
27
|
+
"title": "Edite seu Monocard",
|
|
28
|
+
"href": "https://mono.direct/login"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"title": "Fale conosco",
|
|
32
|
+
"href": "https://ajuda.monocard.com.br/"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"payment_methods": [
|
|
36
|
+
"pix",
|
|
37
|
+
"visa",
|
|
38
|
+
"mastercard",
|
|
39
|
+
"elo",
|
|
40
|
+
"amex",
|
|
41
|
+
"hipercard",
|
|
42
|
+
"boleto"
|
|
43
|
+
],
|
|
24
44
|
"metafields": {
|
|
25
45
|
"support_url": "https://ajuda.monocard.com.br/",
|
|
26
46
|
"business_lp_url": "https://empresas.monocard.com.br/",
|
|
@@ -17,19 +17,18 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.
|
|
20
|
+
"@cloudcommerce/api": "^0.26.7",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.26.7",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.26.7",
|
|
23
23
|
"@vueuse/motion": "2.0.0-beta.22"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@cloudcommerce/i18n": "^0.
|
|
27
|
-
"@cloudcommerce/storefront": "^0.
|
|
28
|
-
"@cloudcommerce/types": "^0.
|
|
29
|
-
"@fontsource/inter": "^
|
|
26
|
+
"@cloudcommerce/i18n": "^0.26.7",
|
|
27
|
+
"@cloudcommerce/storefront": "^0.26.7",
|
|
28
|
+
"@cloudcommerce/types": "^0.26.7",
|
|
29
|
+
"@fontsource-variable/inter": "^5.0.8",
|
|
30
30
|
"@iconify-json/ri": "^1.1.8",
|
|
31
31
|
"@iconify-json/wpf": "^1.1.4",
|
|
32
|
-
"lottie-web": "^5.
|
|
33
|
-
"lozad": "^1.16.0"
|
|
32
|
+
"lottie-web": "^5.12.2"
|
|
34
33
|
}
|
|
35
34
|
}
|