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
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
.loading {
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 9999;
|
|
4
|
-
height: 2em;
|
|
5
|
-
width: 2em;
|
|
6
|
-
overflow: show;
|
|
7
|
-
margin: auto;
|
|
8
|
-
top: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
right: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.loading:before {
|
|
15
|
-
content: '';
|
|
16
|
-
display: block;
|
|
17
|
-
position: fixed;
|
|
18
|
-
top: 0;
|
|
19
|
-
left: 0;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
|
|
23
|
-
background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.loading:not(:required) {
|
|
27
|
-
font: 0/0 a;
|
|
28
|
-
color: transparent;
|
|
29
|
-
text-shadow: none;
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
border: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.loading:not(:required):after {
|
|
35
|
-
content: '';
|
|
36
|
-
display: block;
|
|
37
|
-
font-size: 10px;
|
|
38
|
-
width: 1em;
|
|
39
|
-
height: 1em;
|
|
40
|
-
margin-top: -0.5em;
|
|
41
|
-
-webkit-animation: spinner 150ms infinite linear;
|
|
42
|
-
-moz-animation: spinner 150ms infinite linear;
|
|
43
|
-
-ms-animation: spinner 150ms infinite linear;
|
|
44
|
-
-o-animation: spinner 150ms infinite linear;
|
|
45
|
-
animation: spinner 150ms infinite linear;
|
|
46
|
-
border-radius: 0.5em;
|
|
47
|
-
-webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
|
|
48
|
-
box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@-webkit-keyframes spinner {
|
|
52
|
-
0% {
|
|
53
|
-
-webkit-transform: rotate(0deg);
|
|
54
|
-
-moz-transform: rotate(0deg);
|
|
55
|
-
-ms-transform: rotate(0deg);
|
|
56
|
-
-o-transform: rotate(0deg);
|
|
57
|
-
transform: rotate(0deg);
|
|
58
|
-
}
|
|
59
|
-
100% {
|
|
60
|
-
-webkit-transform: rotate(360deg);
|
|
61
|
-
-moz-transform: rotate(360deg);
|
|
62
|
-
-ms-transform: rotate(360deg);
|
|
63
|
-
-o-transform: rotate(360deg);
|
|
64
|
-
transform: rotate(360deg);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
@-moz-keyframes spinner {
|
|
68
|
-
0% {
|
|
69
|
-
-webkit-transform: rotate(0deg);
|
|
70
|
-
-moz-transform: rotate(0deg);
|
|
71
|
-
-ms-transform: rotate(0deg);
|
|
72
|
-
-o-transform: rotate(0deg);
|
|
73
|
-
transform: rotate(0deg);
|
|
74
|
-
}
|
|
75
|
-
100% {
|
|
76
|
-
-webkit-transform: rotate(360deg);
|
|
77
|
-
-moz-transform: rotate(360deg);
|
|
78
|
-
-ms-transform: rotate(360deg);
|
|
79
|
-
-o-transform: rotate(360deg);
|
|
80
|
-
transform: rotate(360deg);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
@-o-keyframes spinner {
|
|
84
|
-
0% {
|
|
85
|
-
-webkit-transform: rotate(0deg);
|
|
86
|
-
-moz-transform: rotate(0deg);
|
|
87
|
-
-ms-transform: rotate(0deg);
|
|
88
|
-
-o-transform: rotate(0deg);
|
|
89
|
-
transform: rotate(0deg);
|
|
90
|
-
}
|
|
91
|
-
100% {
|
|
92
|
-
-webkit-transform: rotate(360deg);
|
|
93
|
-
-moz-transform: rotate(360deg);
|
|
94
|
-
-ms-transform: rotate(360deg);
|
|
95
|
-
-o-transform: rotate(360deg);
|
|
96
|
-
transform: rotate(360deg);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
@keyframes spinner {
|
|
100
|
-
0% {
|
|
101
|
-
-webkit-transform: rotate(0deg);
|
|
102
|
-
-moz-transform: rotate(0deg);
|
|
103
|
-
-ms-transform: rotate(0deg);
|
|
104
|
-
-o-transform: rotate(0deg);
|
|
105
|
-
transform: rotate(0deg);
|
|
106
|
-
}
|
|
107
|
-
100% {
|
|
108
|
-
-webkit-transform: rotate(360deg);
|
|
109
|
-
-moz-transform: rotate(360deg);
|
|
110
|
-
-ms-transform: rotate(360deg);
|
|
111
|
-
-o-transform: rotate(360deg);
|
|
112
|
-
transform: rotate(360deg);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/chamada-mobile-q1c6om6jx4.webp
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# workaround for cloudcommerce pnpm monorepo
|
|
4
|
-
filename="../../../packages/storefront/scripts/build-prod.sh"
|
|
5
|
-
if [[ -f $filename ]]; then
|
|
6
|
-
sh $filename
|
|
7
|
-
elif [[ -f "../$filename" ]]; then
|
|
8
|
-
sh "../$filename"
|
|
9
|
-
else
|
|
10
|
-
echo '> npx storefront build'
|
|
11
|
-
npx storefront build
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
exit 0
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Menu
|
|
3
|
-
as="div"
|
|
4
|
-
class="relative text-center text-sm text-base-800"
|
|
5
|
-
v-slot="{ open }"
|
|
6
|
-
>
|
|
7
|
-
<div v-if="open">
|
|
8
|
-
<span v-once>{{ initializeFirebaseAuth() }}</span>
|
|
9
|
-
</div>
|
|
10
|
-
<MenuButton class="outline-none" :aria-label="$t.i19myAccount">
|
|
11
|
-
<slot name="button" v-bind="{ open }" />
|
|
12
|
-
</MenuButton>
|
|
13
|
-
<Fade>
|
|
14
|
-
<MenuItems class="absolute -right-8 mt-2 w-56
|
|
15
|
-
rounded shadow ring-1 ring-black/5 bg-white
|
|
16
|
-
divide-y divide-base-100 focus:outline-none">
|
|
17
|
-
<div class="p-3 text-base-600">
|
|
18
|
-
{{ `${$t.i19hello} ${customerName || $t.i19visitor}` }}
|
|
19
|
-
<AccountLink role="button" class="ui-btn-sm ui-btn-primary block my-1">
|
|
20
|
-
{{ $t.i19accessMyAccount }}
|
|
21
|
-
</AccountLink>
|
|
22
|
-
<AccountLink v-if="!isLogged" is-sign-up class="ui-link block">
|
|
23
|
-
{{ $t.i19createAnAccount }}
|
|
24
|
-
</AccountLink>
|
|
25
|
-
</div>
|
|
26
|
-
<ul class="list-none">
|
|
27
|
-
<MenuItem as="li" v-slot="{ active }">
|
|
28
|
-
<AccountLink
|
|
29
|
-
to="orders"
|
|
30
|
-
class="block p-2"
|
|
31
|
-
:class="active ? 'bg-base-100 text-primary' : null"
|
|
32
|
-
>
|
|
33
|
-
{{ $t.i19myOrders }}
|
|
34
|
-
</AccountLink>
|
|
35
|
-
</MenuItem>
|
|
36
|
-
<MenuItem as="li" v-slot="{ active }">
|
|
37
|
-
<AccountLink
|
|
38
|
-
to="favorites"
|
|
39
|
-
class="block p-2"
|
|
40
|
-
:class="active ? 'bg-base-100 text-primary' : null"
|
|
41
|
-
>
|
|
42
|
-
<i class="i-heart mr-1"></i>
|
|
43
|
-
{{ $t.i19myFavorites }}
|
|
44
|
-
</AccountLink>
|
|
45
|
-
</MenuItem>
|
|
46
|
-
<MenuItem
|
|
47
|
-
as="li"
|
|
48
|
-
v-slot="{ active }"
|
|
49
|
-
v-for="({ title, href }, i) in $settings.service_links"
|
|
50
|
-
:key="`s-${i}`"
|
|
51
|
-
>
|
|
52
|
-
<ALink
|
|
53
|
-
:href="href"
|
|
54
|
-
class="block p-2"
|
|
55
|
-
:class="active ? 'bg-base-100 text-primary' : null"
|
|
56
|
-
>
|
|
57
|
-
{{ title }}
|
|
58
|
-
</ALink>
|
|
59
|
-
</MenuItem>
|
|
60
|
-
<MenuItem as="li">
|
|
61
|
-
<div class="flex justify-center gap-2 p-2 text-base-500 text-base">
|
|
62
|
-
<span v-for="(href, network) in socialNetworks" :key="network">
|
|
63
|
-
<SocialNetworkLink :network="network" class="p-1 hover:text-primary" />
|
|
64
|
-
</span>
|
|
65
|
-
</div>
|
|
66
|
-
</MenuItem>
|
|
67
|
-
<MenuItem v-if="isLogged" as="li">
|
|
68
|
-
<button @click="logout" class="p-2 text-right text-base-800">
|
|
69
|
-
<span class="text-base-600">{{ $t.i19logout }}</span>
|
|
70
|
-
<i class="i-arrow-right-on-rectangle text-lg ml-1"></i>
|
|
71
|
-
</button>
|
|
72
|
-
</MenuItem>
|
|
73
|
-
</ul>
|
|
74
|
-
</MenuItems>
|
|
75
|
-
</Fade>
|
|
76
|
-
</Menu>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
|
-
<script setup lang="ts">
|
|
80
|
-
import {
|
|
81
|
-
Menu,
|
|
82
|
-
MenuButton,
|
|
83
|
-
MenuItems,
|
|
84
|
-
MenuItem,
|
|
85
|
-
} from '@headlessui/vue';
|
|
86
|
-
import { socialNetworks } from '@@sf/sf-lib';
|
|
87
|
-
import {
|
|
88
|
-
customerName,
|
|
89
|
-
initializeFirebaseAuth,
|
|
90
|
-
isLogged,
|
|
91
|
-
logout,
|
|
92
|
-
} from '@@sf/state/customer-session';
|
|
93
|
-
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
94
|
-
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
95
|
-
</script>
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex w-[300px] justify-between">
|
|
3
|
-
<div>
|
|
4
|
-
<strong class="text-lg">{{ hours }}</strong>
|
|
5
|
-
<span>{{ $t.i19about }}</span>
|
|
6
|
-
</div>
|
|
7
|
-
<span>:</span>
|
|
8
|
-
<div>
|
|
9
|
-
{{ minutes }}
|
|
10
|
-
</div>
|
|
11
|
-
<span>:</span>
|
|
12
|
-
<div>
|
|
13
|
-
{{ seconds }}
|
|
14
|
-
</div>
|
|
15
|
-
<span>:</span>
|
|
16
|
-
<div>
|
|
17
|
-
{{ ms }}
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script setup lang="ts">
|
|
23
|
-
import {
|
|
24
|
-
ref,
|
|
25
|
-
computed,
|
|
26
|
-
watch,
|
|
27
|
-
watchEffect,
|
|
28
|
-
} from 'vue';
|
|
29
|
-
import { useIntervalFn } from '@vueuse/core';
|
|
30
|
-
|
|
31
|
-
export interface Props {
|
|
32
|
-
endsAt?: string;
|
|
33
|
-
maxHours?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
37
|
-
maxHours: 8,
|
|
38
|
-
});
|
|
39
|
-
const endTimestamp = computed(() => {
|
|
40
|
-
if (props.endsAt) {
|
|
41
|
-
return new Date(props.endsAt).getTime();
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
});
|
|
45
|
-
const hours = ref<number | null>(null);
|
|
46
|
-
const minutes = ref<number>(59);
|
|
47
|
-
const seconds = ref<number>(59);
|
|
48
|
-
const ms = ref<number>(999);
|
|
49
|
-
watchEffect(() => {
|
|
50
|
-
if (endTimestamp.value) {
|
|
51
|
-
const timeDiff = endTimestamp.value - Date.now();
|
|
52
|
-
if (timeDiff > 0) {
|
|
53
|
-
const diffHours = Math.floor(timeDiff / (1000 * 60 * 60));
|
|
54
|
-
hours.value = Math.min(diffHours, props.maxHours);
|
|
55
|
-
}
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
hours.value = props.maxHours;
|
|
59
|
-
});
|
|
60
|
-
useIntervalFn(() => {
|
|
61
|
-
ms.value -= 1;
|
|
62
|
-
if (ms.value < 0) {
|
|
63
|
-
ms.value = 999;
|
|
64
|
-
}
|
|
65
|
-
}, 1);
|
|
66
|
-
watch([ms], () => {
|
|
67
|
-
if (ms.value === 0) {
|
|
68
|
-
seconds.value -= 1;
|
|
69
|
-
if (seconds.value < 0) {
|
|
70
|
-
seconds.value = 59;
|
|
71
|
-
minutes.value -= 1;
|
|
72
|
-
if (minutes.value < 0) {
|
|
73
|
-
minutes.value = 59;
|
|
74
|
-
hours.value = Math.min((hours.value as number) - 1, 0);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
</script>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="bg-base-100 py-3">
|
|
3
|
-
<div class="relative container mx-auto">
|
|
4
|
-
<Carousel :autoplay="autoplay" class="[&>*]:items-center">
|
|
5
|
-
<li
|
|
6
|
-
v-for="(slide, i) in slides"
|
|
7
|
-
:key="i"
|
|
8
|
-
class="shrink-0 basis-full"
|
|
9
|
-
>
|
|
10
|
-
<Banner
|
|
11
|
-
v-bind="{ ...slide, headingTag: i === 0 ? 'h2' : 'h3' }"
|
|
12
|
-
class="w-full"
|
|
13
|
-
>
|
|
14
|
-
<template #picture>
|
|
15
|
-
<slot :name="`picture-${i}`" />
|
|
16
|
-
</template>
|
|
17
|
-
</Banner>
|
|
18
|
-
</li>
|
|
19
|
-
<template #controls>
|
|
20
|
-
<div
|
|
21
|
-
v-show="slides.length > 1"
|
|
22
|
-
class="absolute z-10 bottom-5 right-5 flex justify-end items-center"
|
|
23
|
-
>
|
|
24
|
-
<div class="relative w-20 h-10 rounded-full
|
|
25
|
-
bg-primary/80 text-on-primary shadow-sm ring-1 ring-black/5">
|
|
26
|
-
<CarouselControl class="w-10 h-10 rounded-full hover:bg-primary" is-prev>
|
|
27
|
-
<i class="i-arrow-left"></i>
|
|
28
|
-
</CarouselControl>
|
|
29
|
-
<CarouselControl class="w-10 h-10 rounded-full hover:bg-primary">
|
|
30
|
-
<i class="i-arrow-right"></i>
|
|
31
|
-
</CarouselControl>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
35
|
-
</Carousel>
|
|
36
|
-
</div>
|
|
37
|
-
</section>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup lang="ts">
|
|
41
|
-
import type { Props as UseBannerProps } from '@@sf/composables/use-banner';
|
|
42
|
-
import Carousel from '@@sf/components/Carousel.vue';
|
|
43
|
-
import CarouselControl from '@@sf/components/CarouselControl.vue';
|
|
44
|
-
import Banner from '~/components/Banner.vue';
|
|
45
|
-
|
|
46
|
-
export type Props = {
|
|
47
|
-
autoplay?: number;
|
|
48
|
-
slides: UseBannerProps[];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
defineProps<Props>();
|
|
52
|
-
</script>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg-black relative z-20">
|
|
3
|
-
<div class="container md:w-2/3 mx-auto px-3 py-1 md:py-1.5">
|
|
4
|
-
<Carousel :autoplay="countValidSlides > 1 ? 7000 : undefined">
|
|
5
|
-
<li
|
|
6
|
-
v-for="(slide, i) in slides"
|
|
7
|
-
:key="i"
|
|
8
|
-
class="shrink-0 basis-full h-full text-center"
|
|
9
|
-
>
|
|
10
|
-
<ALink
|
|
11
|
-
:href="slide.href"
|
|
12
|
-
:target="slide.target"
|
|
13
|
-
class="inline-block px-8"
|
|
14
|
-
:class="slide.href ? 'hover:underline' : null"
|
|
15
|
-
>
|
|
16
|
-
<span
|
|
17
|
-
v-if="parsedContents[i]"
|
|
18
|
-
v-html="parsedContents[i]"
|
|
19
|
-
class="prose text-sm md:text-base lg:tracking-wide
|
|
20
|
-
text-base-200 uppercase font-semibold
|
|
21
|
-
[&_b]:text-base-100 [&_strong]:font-black
|
|
22
|
-
[&_strong]:text-transparent [&_strong]:bg-clip-text [&_strong]:bg-gradient-to-r
|
|
23
|
-
[&_strong]:from-yellow-200 [&_strong]:to-yellow-400"
|
|
24
|
-
></span>
|
|
25
|
-
</ALink>
|
|
26
|
-
</li>
|
|
27
|
-
<template #controls>
|
|
28
|
-
<div
|
|
29
|
-
v-show="countValidSlides > 1"
|
|
30
|
-
class="text-xl leading-none text-base-300"
|
|
31
|
-
>
|
|
32
|
-
<CarouselControl class="pr-2 bg-black hover:text-white" is-prev />
|
|
33
|
-
<CarouselControl class="pl-2 bg-black hover:text-white" />
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
</Carousel>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
</template>
|
|
40
|
-
|
|
41
|
-
<script setup lang="ts">
|
|
42
|
-
import {
|
|
43
|
-
type Props as UsePitchBarProps,
|
|
44
|
-
usePitchBar,
|
|
45
|
-
} from '@@sf/composables/use-pitch-bar';
|
|
46
|
-
import Carousel from '@@sf/components/Carousel.vue';
|
|
47
|
-
import CarouselControl from '@@sf/components/CarouselControl.vue';
|
|
48
|
-
|
|
49
|
-
export interface Props extends UsePitchBarProps {}
|
|
50
|
-
|
|
51
|
-
const props = defineProps<Props>();
|
|
52
|
-
const {
|
|
53
|
-
parsedContents,
|
|
54
|
-
countValidSlides,
|
|
55
|
-
} = usePitchBar(props);
|
|
56
|
-
</script>
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="text-base-600
|
|
4
|
-
[&>div]:[font-size:90%] [&_small]:[font-size:92%] [&_small]:lowercase"
|
|
5
|
-
:class="isBig ? 'text-lg' : null"
|
|
6
|
-
>
|
|
7
|
-
<span v-if="comparePrice" class="text-base-500 mr-1 [font-size:87%]">
|
|
8
|
-
<small v-if="isLiteral">
|
|
9
|
-
{{ `${$t.i19from} ` }}
|
|
10
|
-
</small>
|
|
11
|
-
<s>{{ $money(comparePrice) }}</s>
|
|
12
|
-
<small v-if="isLiteral">
|
|
13
|
-
{{ ` ${$t.i19to}` }}
|
|
14
|
-
</small>
|
|
15
|
-
</span>
|
|
16
|
-
<strong
|
|
17
|
-
class="inline-block text-base-800"
|
|
18
|
-
:class="isBig ? 'text-5xl block' : null"
|
|
19
|
-
>
|
|
20
|
-
<small v-if="hasVariedPrices">
|
|
21
|
-
{{ `${$t.i19asOf} ` }}
|
|
22
|
-
</small>
|
|
23
|
-
{{ $money(salePrice) }}
|
|
24
|
-
</strong>
|
|
25
|
-
<Fade slide="down">
|
|
26
|
-
<div v-if="cashbackValue && hasCashback" class="relative z-10">
|
|
27
|
-
<span :data-tooltip="$t.i19get$1back
|
|
28
|
-
.replace('$1', $percentage(cashbackPercentage))">
|
|
29
|
-
<i class="i-arrow-uturn-left mr-1"></i>
|
|
30
|
-
<span class="font-medium">
|
|
31
|
-
{{ $money(cashbackValue) }}
|
|
32
|
-
</span>
|
|
33
|
-
<small> cashback</small>
|
|
34
|
-
</span>
|
|
35
|
-
</div>
|
|
36
|
-
</Fade>
|
|
37
|
-
<Fade slide="down">
|
|
38
|
-
<div v-if="installmentValue && hasPriceOptions">
|
|
39
|
-
<small v-if="isLiteral">
|
|
40
|
-
{{ `${$t.i19upTo} ` }}
|
|
41
|
-
</small>
|
|
42
|
-
{{ installmentsNumber }}x
|
|
43
|
-
<small v-if="isLiteral">
|
|
44
|
-
{{ ` ${$t.i19of} ` }}
|
|
45
|
-
</small>
|
|
46
|
-
<span>{{ $money(installmentValue) }}</span>
|
|
47
|
-
<small v-if="!monthlyInterest && isLiteral">
|
|
48
|
-
{{ ` ${$t.i19interestFree}` }}
|
|
49
|
-
</small>
|
|
50
|
-
</div>
|
|
51
|
-
</Fade>
|
|
52
|
-
<Fade slide="down">
|
|
53
|
-
<div v-if="priceWithDiscount < salePrice && hasPriceOptions">
|
|
54
|
-
<small v-if="!discountLabel">
|
|
55
|
-
{{ `${$t.i19asOf} ` }}
|
|
56
|
-
</small>
|
|
57
|
-
<span>{{ $money(priceWithDiscount) }}</span>
|
|
58
|
-
<small v-if="discountLabel">
|
|
59
|
-
{{ ` ${discountLabel}` }}
|
|
60
|
-
</small>
|
|
61
|
-
</div>
|
|
62
|
-
</Fade>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script setup lang="ts">
|
|
67
|
-
import {
|
|
68
|
-
type Props as UsePricesProps,
|
|
69
|
-
usePrices,
|
|
70
|
-
} from '@@sf/composables/use-prices';
|
|
71
|
-
|
|
72
|
-
export interface Props extends UsePricesProps {
|
|
73
|
-
isBig?: boolean;
|
|
74
|
-
isLiteral?: boolean;
|
|
75
|
-
hasCashback?: boolean;
|
|
76
|
-
hasPriceOptions?: boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
80
|
-
hasCashback: true,
|
|
81
|
-
hasPriceOptions: true,
|
|
82
|
-
});
|
|
83
|
-
const {
|
|
84
|
-
hasVariedPrices,
|
|
85
|
-
salePrice,
|
|
86
|
-
comparePrice,
|
|
87
|
-
cashbackPercentage,
|
|
88
|
-
cashbackValue,
|
|
89
|
-
installmentsNumber,
|
|
90
|
-
monthlyInterest,
|
|
91
|
-
installmentValue,
|
|
92
|
-
priceWithDiscount,
|
|
93
|
-
discountLabel,
|
|
94
|
-
} = usePrices(props);
|
|
95
|
-
</script>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="ui-section">
|
|
3
|
-
<Countdown />
|
|
4
|
-
<article v-for="product in products" :key="product._id">
|
|
5
|
-
<ProductCard :product="product" />
|
|
6
|
-
</article>
|
|
7
|
-
</section>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import type { ProductItem } from '@@sf/composables/use-product-card';
|
|
12
|
-
import ProductCard from '~/components/ProductCard.vue';
|
|
13
|
-
import Countdown from '~/components/Countdown.vue';
|
|
14
|
-
|
|
15
|
-
export interface Props {
|
|
16
|
-
products: ProductItem[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
defineProps<Props>();
|
|
20
|
-
</script>
|