cloudcommerce 0.23.3 → 0.24.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/CHANGELOG.md +38 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/content/layout.json +0 -6
- package/ecomplus-stores/barra-doce/functions/ssr/content/settings.json +17 -0
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/public/robots.txt +2 -4
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountMenu.vue +1 -10
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/Banner.vue +4 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/PitchBar.vue +2 -3
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +4 -5
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductShelf.vue +1 -4
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +2 -7
- package/ecomplus-stores/barra-doce/functions/ssr/tailwind.config.cjs +1 -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/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/content/layout.json +0 -6
- package/ecomplus-stores/iluminim/functions/ssr/content/settings.json +16 -0
- package/ecomplus-stores/iluminim/functions/ssr/package.json +6 -6
- package/ecomplus-stores/iluminim/functions/ssr/public/robots.txt +2 -4
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +1 -10
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Banner.vue +4 -6
- package/ecomplus-stores/iluminim/functions/ssr/src/components/PitchBar.vue +2 -3
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductCard.vue +4 -5
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductShelf.vue +1 -4
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +2 -7
- package/ecomplus-stores/iluminim/functions/ssr/tailwind.config.cjs +1 -1
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +2 -2
- package/package.json +8 -8
- package/packages/api/package.json +1 -1
- package/packages/api/tests/index.test.ts +0 -2
- package/packages/apps/affilate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/lib/custom-payment-create-transaction.js +1 -1
- package/packages/apps/custom-payment/lib/custom-payment-list-payments.js +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/lib/galaxpay-create-transaction.js +1 -1
- package/packages/apps/galaxpay/lib/galaxpay-list-payments.js +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/lib/loyalty-create-transaction.js +1 -1
- package/packages/apps/loyalty-points/lib/loyalty-list-payments.js +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/lib/mp-create-transaction.js +1 -1
- package/packages/apps/mercadopago/lib/mp-list-payments.js +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/lib/pagarme-create-transaction.js +1 -1
- package/packages/apps/pagarme/lib/pagarme-list-payments.js +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/paghiper/lib/paghiper-create-transaction.js +1 -1
- package/packages/apps/paghiper/lib/paghiper-list-payments.js +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/lib/pix-create-transaction.js +1 -1
- package/packages/apps/pix/lib/pix-list-payments.js +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/emails/tests/sendgrid.test.ts +0 -1
- package/packages/emails/tests/smtp.test.ts +0 -1
- package/packages/eslint/base.eslintrc.cjs +23 -0
- package/packages/eslint/package.json +5 -5
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/cloudflare/swr-worker.js +92 -16
- package/packages/ssr/lib/firebase/serve-storefront.js +2 -2
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +4 -4
- package/packages/ssr/src/cloudflare/swr-worker.ts +97 -16
- package/packages/ssr/src/firebase/serve-storefront.ts +2 -2
- package/packages/storefront/config/storefront.tailwind.cjs +41 -27
- package/packages/storefront/config/storefront.unocss.cjs +9 -23
- package/packages/storefront/dist/client/_astro/{_...slug_.07c1fa58.css → _...slug_.a786e016.css} +1 -1
- 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/headphone_22qtrt.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_247ud8.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1hoMcQ.webp +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1j5MXv.webp +0 -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/passion_29BEzB.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_2sykkb.avif +0 -0
- package/packages/storefront/dist/client/_astro/passion_HYj6i.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_Z18ANwS.avif +0 -0
- package/packages/storefront/dist/client/_astro/passion_ZK2FPz.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_pVNbE.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1EUYOa.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1Sqf3x.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1VeSii.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_2wFECM.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_7mg8W.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Kv492.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1DNkkN.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1IS4wy.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Zt4vbx.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1Bqr36.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1pj5UP.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_2dVuzq.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_HaXay.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z100iy0.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z2i1RBz.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_ZMRWqJ.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_mPQHw.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_xyq7d.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1DkX0O.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_2uIqYp.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_Z1rGPGT.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_ZAjmIj.avif +0 -0
- package/packages/storefront/dist/client/robots.txt +2 -4
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/client/~fallback.html +98 -0
- package/packages/storefront/dist/client/~index.html +134 -0
- package/packages/storefront/dist/server/chunks/{_...c5a36021.mjs → _...5323ec5a.mjs} +4 -11
- package/packages/storefront/dist/server/chunks/{account@_@astro.3e90f29a.mjs → account@_@astro.a02ffb0b.mjs} +4 -11
- package/packages/storefront/dist/server/chunks/{astro.6adaff02.mjs → astro.a7611b51.mjs} +11 -18
- package/packages/storefront/dist/server/chunks/{index@_@astro.66b84ac2.mjs → index@_@astro.42c693b9.mjs} +4 -11
- package/packages/storefront/dist/server/chunks/{index@_@astro.0221a7bd.mjs → index@_@astro.d898498a.mjs} +4 -11
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.501582b9.mjs → _...slug_.astro.0f33557e.mjs} +103 -309
- package/packages/storefront/dist/server/chunks/pages/{account.astro.53400a42.mjs → account.astro.9325adb2.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{index.astro.f1104ab2.mjs → index.astro.0f31fa39.mjs} +8 -27
- package/packages/storefront/dist/server/chunks/pages/{fallback.astro.8d1c6076.mjs → ~fallback.astro.bd93f01e.mjs} +15 -32
- package/packages/storefront/dist/server/chunks/{fallback@_@astro.9f73db0f.mjs → ~fallback@_@astro.d17419ae.mjs} +4 -11
- package/packages/storefront/dist/server/entry.mjs +47 -16
- package/packages/storefront/dist/server/images.dist.csv +38 -0
- package/packages/storefront/dist/server/images.src.csv +11 -0
- package/packages/storefront/dist/server/renderers.mjs +3 -10
- package/packages/storefront/dist/server/stylesheets.csv +1 -0
- package/packages/storefront/package.json +7 -6
- package/packages/storefront/scripts/build-prod.sh +2 -0
- package/packages/storefront/src/env.d.ts +0 -2
- package/packages/storefront/src/helpers/server-data.ts +9 -2
- package/packages/storefront/src/lib/components/BannerPictures.astro +2 -2
- package/packages/storefront/src/lib/components/Drawer.vue +1 -1
- package/packages/storefront/src/lib/components/PaymentMethodFlag.vue +36 -0
- package/packages/storefront/src/lib/components/SocialNetworkIcon.vue +1 -0
- package/packages/storefront/src/lib/components/globals/ALink.vue +5 -3
- package/packages/storefront/src/lib/composables/use-sticky-header.ts +1 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +1 -1
- package/packages/storefront/src/lib/layouts/use-page-header.ts +2 -9
- package/packages/storefront/src/lib/ssr-context.ts +31 -25
- package/packages/storefront/src/vue-globals.d.ts +0 -1
- package/packages/types/index.ts +16 -0
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/server/chunks/endpoint@_@js.b79eed3b.mjs +0 -34
- package/packages/storefront/dist/server/chunks/pages/endpoint.js.4c130895.mjs +0 -119
- /package/ecomplus-stores/barra-doce/functions/ssr/src/pages/{fallback.astro → ~fallback.astro} +0 -0
- /package/ecomplus-stores/iluminim/functions/ssr/src/pages/{fallback.astro → ~fallback.astro} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
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.24.0](https://github.com/ecomplus/cloud-commerce/compare/v0.23.3...v0.24.0) (2023-08-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **storefront:** Icons related theme config fields replaced by `generalIconSets`, `brandIconSets`, `brandIconShortcuts`, `logoIconSets`, `logoIconShortcuts`
|
|
11
|
+
|
|
12
|
+
IntelliSense only field for icons no more needed and removed
|
|
13
|
+
* **storefront:** Global component <ALink> API changed
|
|
14
|
+
* **storefront:** `usePageHeader` composable props changed (simplified)
|
|
15
|
+
* **ssr:** Previous /fallback.astro page must be changed to /~fallback.astro
|
|
16
|
+
* **storefront:** Route context `fetchingApiContext` now always resolve with null, error only at `apiContext.error` if any
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **ssr:** Edit Cloudflare SWR worker to also store SSRed HTML on KV PERMA_CACHE namespace ([1f3b188](https://github.com/ecomplus/cloud-commerce/commit/1f3b188b583a8bfa656c7a7469510fadc10081f4))
|
|
21
|
+
* **ssr:** Edit Cloudflare SWR worker to support host override from env vars ([b2fc99b](https://github.com/ecomplus/cloud-commerce/commit/b2fc99bb2310dc9986569beb89a8251c65af85a8))
|
|
22
|
+
* **storefront:** Add new `intellisenseIconSets` theme option for Tailwind config ([75ce9c9](https://github.com/ecomplus/cloud-commerce/commit/75ce9c9b64f997dd9bbc86b6f178137745acc40b))
|
|
23
|
+
* **storefront:** Add support for multiple icon sets with arrays on theme config ([5d5c0a3](https://github.com/ecomplus/cloud-commerce/commit/5d5c0a3a806cac5ecf15462b2add22804d3d6c0d))
|
|
24
|
+
* **storefront:** New <PaymentMethodFlag> component ([2ba386f](https://github.com/ecomplus/cloud-commerce/commit/2ba386fb26dcb72a5c91f4740403302cb4e4a157))
|
|
25
|
+
* **types:** Add `service_links` and `payment_methods` (flags) to settings content type ([390be9d](https://github.com/ecomplus/cloud-commerce/commit/390be9d7ec65996bbef1b1431c50de5b195ce8f0))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **deps:** Update Astro to v2.10.7 ([#210](https://github.com/ecomplus/cloud-commerce/issues/210)) ([fab598f](https://github.com/ecomplus/cloud-commerce/commit/fab598febeb9d2b2d7979497dba08f17b921dcde))
|
|
31
|
+
* **deps:** Update dependency unocss to ^0.55.0 ([#213](https://github.com/ecomplus/cloud-commerce/issues/213)) ([55b9626](https://github.com/ecomplus/cloud-commerce/commit/55b96263e141ef5abd340f2146215a0141a02ceb))
|
|
32
|
+
* **storefront:** Fix <Drawer> close button z-index ([4ff06db](https://github.com/ecomplus/cloud-commerce/commit/4ff06dbadce0c3261444ea5dcbe57ec294ffa549))
|
|
33
|
+
* **storefront:** Increasing sticky header debounce max wait to prevent wrong header final place ([d04b808](https://github.com/ecomplus/cloud-commerce/commit/d04b808ff55a7457d78bc5965d43e5276299a780))
|
|
34
|
+
* **storefront:** Minor fix BannerPicture.astro default alt text styles ([6d0aed5](https://github.com/ecomplus/cloud-commerce/commit/6d0aed5ba849af6a0aa8e11da916f7c204e04564))
|
|
35
|
+
* **storefront:** Prevent errors with not founds by slug on SSR context load ([eeb3232](https://github.com/ecomplus/cloud-commerce/commit/eeb3232fb79f6440234a257b915f9c9d2de0e7b4))
|
|
36
|
+
* **storefront:** Update Astro to v2.10.9 ([3555906](https://github.com/ecomplus/cloud-commerce/commit/35559061843a1c8ba7618c255080289677640b10))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* **ssr:** Expecting fallback static HTML at /~fallback route ([922c9c9](https://github.com/ecomplus/cloud-commerce/commit/922c9c9ddeda661861cf1c80204ebd9adf0bf47e))
|
|
40
|
+
* **storefront:** Set href optional on <ALink> to handle common optional link case ([1573c65](https://github.com/ecomplus/cloud-commerce/commit/1573c653126975b3fac1e3291fa01976e98a8052))
|
|
41
|
+
* **storefront:** Update `usePageHeader` composable removing `serviceLinks` prop ([e566038](https://github.com/ecomplus/cloud-commerce/commit/e56603848af4013eb29b7604d0fb936238e85d7c))
|
|
42
|
+
|
|
5
43
|
### [0.23.3](https://github.com/ecomplus/cloud-commerce/compare/v0.23.2...v0.23.3) (2023-08-08)
|
|
6
44
|
|
|
7
45
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.23.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.23.
|
|
20
|
-
"@cloudcommerce/passport": "^0.23.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.23.3",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.3",
|
|
20
|
+
"@cloudcommerce/passport": "^0.23.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -22,6 +22,23 @@
|
|
|
22
22
|
"youtube": "https://www.youtube.com/channel/UCBlIxK5JAub0E1EX_qHdzmA",
|
|
23
23
|
"tiktok": "",
|
|
24
24
|
"pinterest": "",
|
|
25
|
+
"threads": "",
|
|
26
|
+
"service_links": [
|
|
27
|
+
{
|
|
28
|
+
"title": "Fale conosco",
|
|
29
|
+
"href": "/pages/contato"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"payment_methods": [
|
|
33
|
+
"pix",
|
|
34
|
+
"visa",
|
|
35
|
+
"mastercard",
|
|
36
|
+
"elo",
|
|
37
|
+
"amex",
|
|
38
|
+
"hipercard",
|
|
39
|
+
"diners",
|
|
40
|
+
"boleto"
|
|
41
|
+
],
|
|
25
42
|
"modules": {
|
|
26
43
|
"list_payments": {
|
|
27
44
|
"installments_option": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.23.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.23.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.23.
|
|
20
|
+
"@cloudcommerce/api": "^0.23.3",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.23.3",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.23.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.23.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.23.
|
|
27
|
-
"@cloudcommerce/types": "^0.23.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.23.3",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.23.3",
|
|
27
|
+
"@cloudcommerce/types": "^0.23.3",
|
|
28
28
|
"@fontsource/croissant-one": "^5.0.5",
|
|
29
29
|
"@iconify-json/mingcute": "^1.1.7"
|
|
30
30
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<MenuItem
|
|
47
47
|
as="li"
|
|
48
48
|
v-slot="{ active }"
|
|
49
|
-
v-for="({ title, href }, i) in
|
|
49
|
+
v-for="({ title, href }, i) in $settings.service_links"
|
|
50
50
|
:key="`s-${i}`"
|
|
51
51
|
>
|
|
52
52
|
<ALink
|
|
@@ -92,13 +92,4 @@ import {
|
|
|
92
92
|
} from '@@sf/state/customer-session';
|
|
93
93
|
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
94
94
|
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
95
|
-
|
|
96
|
-
export interface Props {
|
|
97
|
-
serviceLinks?: Array<{
|
|
98
|
-
title: string;
|
|
99
|
-
href: string;
|
|
100
|
-
}>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
defineProps<Props>();
|
|
104
95
|
</script>
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
? 'grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 items-center'
|
|
6
6
|
: null"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
9
|
-
:is="href ? 'a-link' : 'span'"
|
|
8
|
+
<ALink
|
|
10
9
|
:href="href"
|
|
11
10
|
:class="hasHeader
|
|
12
11
|
? 'lg:col-span-3 sm:order-last [&_img]:max-w-full sm:[&_img]:max-w-none'
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
class="md:[clip-path:polygon(6%_0,100%_0,100%_100%,0_100%)]"
|
|
16
15
|
>
|
|
17
16
|
<slot name="picture" />
|
|
18
|
-
</
|
|
17
|
+
</ALink>
|
|
19
18
|
<div v-if="hasHeader" class="lg:col-span-2 p-8 lg:p-12 xl:ps-32 mb-3 md:mb-0">
|
|
20
19
|
<Component
|
|
21
20
|
v-if="parsedTitle"
|
|
@@ -30,15 +29,14 @@
|
|
|
30
29
|
>
|
|
31
30
|
{{ parsedSubtitle }}
|
|
32
31
|
</p>
|
|
33
|
-
<
|
|
32
|
+
<ALink
|
|
34
33
|
v-if="parsedButtonText"
|
|
35
|
-
:is="buttonLink ? 'a-link' : 'span'"
|
|
36
34
|
:href="buttonLink"
|
|
37
35
|
class="ui-btn-lg ui-btn-contrast min-w-[150px] mt-7 md:mt-10"
|
|
38
36
|
>
|
|
39
37
|
<i class="i-tag-chevron-fill mr-1"></i>
|
|
40
38
|
{{ parsedButtonText }}
|
|
41
|
-
</
|
|
39
|
+
</ALink>
|
|
42
40
|
</div>
|
|
43
41
|
</div>
|
|
44
42
|
</template>
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
:key="i"
|
|
8
8
|
class="shrink-0 basis-full h-full text-center"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
11
|
-
:is="slide.href ? 'ALink' : 'span'"
|
|
10
|
+
<ALink
|
|
12
11
|
:href="slide.href"
|
|
13
12
|
:target="slide.target"
|
|
14
13
|
class="inline-block px-8"
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
v-html="parsedContents[i]"
|
|
20
19
|
class="prose text-sm text-base-800"
|
|
21
20
|
></span>
|
|
22
|
-
</
|
|
21
|
+
</ALink>
|
|
23
22
|
</li>
|
|
24
23
|
<template #controls>
|
|
25
24
|
<div
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
:data-sku="product.sku"
|
|
5
5
|
class="relative h-full max-w-[350px] mx-auto py-3 group"
|
|
6
6
|
>
|
|
7
|
-
<
|
|
8
|
-
:is="link ? 'ALink' : 'span'"
|
|
7
|
+
<ALink
|
|
9
8
|
:href="link"
|
|
10
9
|
class="flex flex-col h-full rounded overflow-hidden
|
|
11
10
|
group-hover:shadow group-hover:ring-1 ring-black/5"
|
|
@@ -14,7 +13,7 @@
|
|
|
14
13
|
motion-safe:group-hover:scale-110 transition-transform">
|
|
15
14
|
<div class="relative w-full h-full bg-white rounded overflow-hidden
|
|
16
15
|
group-hover:rounded-none">
|
|
17
|
-
<
|
|
16
|
+
<span v-if="images?.length" class="text-xs text-opacity-70">
|
|
18
17
|
<AImg
|
|
19
18
|
:picture="images[0]"
|
|
20
19
|
:alt="title"
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
opacity-0 group-hover:opacity-100 transition-opacity
|
|
29
28
|
motion-safe:duration-300 text-transparent z-10"
|
|
30
29
|
/>
|
|
31
|
-
</
|
|
30
|
+
</span>
|
|
32
31
|
<div
|
|
33
32
|
v-else
|
|
34
33
|
class="w-full h-full bg-gradient-to-br from-base-50/20 to-base-100"
|
|
@@ -75,7 +74,7 @@
|
|
|
75
74
|
<i class="i-shopping-bag-3-line"></i>
|
|
76
75
|
</button>
|
|
77
76
|
</div>
|
|
78
|
-
</
|
|
77
|
+
</ALink>
|
|
79
78
|
</article>
|
|
80
79
|
</template>
|
|
81
80
|
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
<section class="ui-section">
|
|
3
3
|
<div v-if="title" class="max-w-prose mx-auto text-center mb-2">
|
|
4
4
|
<h2 class="ui-text-brand text-3xl">
|
|
5
|
-
<ALink
|
|
5
|
+
<ALink :href="titleLink" :class="titleLink ? 'ui-link' : 'text-base-700'">
|
|
6
6
|
{{ title }}
|
|
7
7
|
</ALink>
|
|
8
|
-
<span v-else class="text-base-700">
|
|
9
|
-
{{ title }}
|
|
10
|
-
</span>
|
|
11
8
|
</h2>
|
|
12
9
|
</div>
|
|
13
10
|
<Carousel class="group/shelf">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<i class="i-search-3-line w-7 h-7
|
|
70
70
|
text-base-700 hover:text-primary hover:scale-110 active:scale-125"></i>
|
|
71
71
|
</button>
|
|
72
|
-
<AccountMenu
|
|
72
|
+
<AccountMenu class="hidden sm:block">
|
|
73
73
|
<template #button="{ open }">
|
|
74
74
|
<i
|
|
75
75
|
class="i-user-2-line w-7 h-7
|
|
@@ -142,12 +142,7 @@ import SearchModal from '~/components/SearchModal.vue';
|
|
|
142
142
|
import AccountMenu from '~/components/AccountMenu.vue';
|
|
143
143
|
import CartSidebar from '~/components/CartSidebar.vue';
|
|
144
144
|
|
|
145
|
-
export interface Props extends Omit<UseShopHeaderProps, 'header'> {
|
|
146
|
-
serviceLinks?: Array<{
|
|
147
|
-
title: string;
|
|
148
|
-
href: string;
|
|
149
|
-
}>;
|
|
150
|
-
}
|
|
145
|
+
export interface Props extends Omit<UseShopHeaderProps, 'header'> {}
|
|
151
146
|
|
|
152
147
|
const props = defineProps<Props>();
|
|
153
148
|
const header = ref<HTMLElement | null>(null);
|
|
@@ -4,8 +4,8 @@ process.env.STOREFRONT_BASE_DIR = __dirname;
|
|
|
4
4
|
const { genTailwindConfig } = require('@cloudcommerce/storefront/config/storefront.tailwind.cjs');
|
|
5
5
|
|
|
6
6
|
const themeOptions = {
|
|
7
|
-
generalIcons: 'mingcute',
|
|
8
7
|
baseColor: 'zinc',
|
|
8
|
+
generalIconSets: ['mingcute'],
|
|
9
9
|
iconAliases: {
|
|
10
10
|
close: 'close-line',
|
|
11
11
|
'chevron-right': 'right-fill',
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.23.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.23.
|
|
20
|
-
"@cloudcommerce/modules": "^0.23.
|
|
18
|
+
"@cloudcommerce/events": "^0.23.3",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.3",
|
|
20
|
+
"@cloudcommerce/modules": "^0.23.3"
|
|
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.23.
|
|
26
|
+
"@cloudcommerce/cli": "^0.23.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^0.23.
|
|
29
|
+
"@cloudcommerce/eslint": "^0.23.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.23.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.23.
|
|
20
|
-
"@cloudcommerce/passport": "^0.23.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.23.3",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.3",
|
|
20
|
+
"@cloudcommerce/passport": "^0.23.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -22,6 +22,22 @@
|
|
|
22
22
|
"youtube": "https://www.youtube.com/channel/UCBlIxK5JAub0E1EX_qHdzmA",
|
|
23
23
|
"tiktok": "",
|
|
24
24
|
"pinterest": "",
|
|
25
|
+
"threads": "",
|
|
26
|
+
"service_links": [
|
|
27
|
+
{
|
|
28
|
+
"title": "Fale conosco",
|
|
29
|
+
"href": "/pages/contato"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"payment_methods": [
|
|
33
|
+
"pix",
|
|
34
|
+
"visa",
|
|
35
|
+
"mastercard",
|
|
36
|
+
"elo",
|
|
37
|
+
"amex",
|
|
38
|
+
"hipercard",
|
|
39
|
+
"boleto"
|
|
40
|
+
],
|
|
25
41
|
"modules": {
|
|
26
42
|
"list_payments": {
|
|
27
43
|
"installments_option": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.23.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.23.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.23.
|
|
20
|
+
"@cloudcommerce/api": "^0.23.3",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.23.3",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.23.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.23.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.23.
|
|
27
|
-
"@cloudcommerce/types": "^0.23.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.23.3",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.23.3",
|
|
27
|
+
"@cloudcommerce/types": "^0.23.3",
|
|
28
28
|
"@fontsource-variable/heebo": "^5.0.5",
|
|
29
29
|
"@iconify-json/carbon": "^1.1.18"
|
|
30
30
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<MenuItem
|
|
47
47
|
as="li"
|
|
48
48
|
v-slot="{ active }"
|
|
49
|
-
v-for="({ title, href }, i) in
|
|
49
|
+
v-for="({ title, href }, i) in $settings.service_links"
|
|
50
50
|
:key="`s-${i}`"
|
|
51
51
|
>
|
|
52
52
|
<ALink
|
|
@@ -92,13 +92,4 @@ import {
|
|
|
92
92
|
} from '@@sf/state/customer-session';
|
|
93
93
|
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
94
94
|
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
95
|
-
|
|
96
|
-
export interface Props {
|
|
97
|
-
serviceLinks?: Array<{
|
|
98
|
-
title: string;
|
|
99
|
-
href: string;
|
|
100
|
-
}>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
defineProps<Props>();
|
|
104
95
|
</script>
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
class="mx-auto overflow-x-hidden"
|
|
4
4
|
:class="hasHeader ? 'grid grid-cols-1 md:grid-cols-2 items-center' : null"
|
|
5
5
|
>
|
|
6
|
-
<
|
|
7
|
-
:is="href ? 'a-link' : 'span'"
|
|
6
|
+
<ALink
|
|
8
7
|
:href="href"
|
|
9
8
|
class="[&_img]:rounded-lg"
|
|
10
9
|
:class="hasHeader ? 'basis-1/2 grow-0 md:order-last' : '[&_img]:w-full'"
|
|
11
10
|
>
|
|
12
11
|
<slot name="picture" />
|
|
13
|
-
</
|
|
12
|
+
</ALink>
|
|
14
13
|
<div
|
|
15
14
|
v-if="hasHeader"
|
|
16
15
|
class="basis-1/2 grow-0 p-12 xl:ps-32 mb-3 md:mb-0"
|
|
@@ -25,14 +24,13 @@
|
|
|
25
24
|
<p v-if="parsedSubtitle" class="text-lg mt-4 md:mt-6">
|
|
26
25
|
{{ parsedSubtitle }}
|
|
27
26
|
</p>
|
|
28
|
-
<
|
|
27
|
+
<ALink
|
|
29
28
|
v-if="parsedButtonText"
|
|
30
|
-
:is="buttonLink ? 'a-link' : 'span'"
|
|
31
29
|
:href="buttonLink"
|
|
32
30
|
class="ui-btn-lg ui-btn-contrast min-w-[150px] mt-7 md:mt-10"
|
|
33
31
|
>
|
|
34
32
|
{{ parsedButtonText }}
|
|
35
|
-
</
|
|
33
|
+
</ALink>
|
|
36
34
|
</div>
|
|
37
35
|
</div>
|
|
38
36
|
</template>
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
:key="i"
|
|
8
8
|
class="shrink-0 basis-full h-full text-center"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
11
|
-
:is="slide.href ? 'ALink' : 'span'"
|
|
10
|
+
<ALink
|
|
12
11
|
:href="slide.href"
|
|
13
12
|
:target="slide.target"
|
|
14
13
|
class="inline-block px-8"
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
[&_strong]:text-transparent [&_strong]:bg-clip-text [&_strong]:bg-gradient-to-r
|
|
24
23
|
[&_strong]:from-yellow-200 [&_strong]:to-yellow-400"
|
|
25
24
|
></span>
|
|
26
|
-
</
|
|
25
|
+
</ALink>
|
|
27
26
|
</li>
|
|
28
27
|
<template #controls>
|
|
29
28
|
<div
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
:data-sku="product.sku"
|
|
5
5
|
class="relative h-full max-w-[350px] mx-auto py-3 group"
|
|
6
6
|
>
|
|
7
|
-
<
|
|
8
|
-
:is="link ? 'ALink' : 'span'"
|
|
7
|
+
<ALink
|
|
9
8
|
:href="link"
|
|
10
9
|
class="flex flex-col h-full rounded overflow-hidden
|
|
11
10
|
group-hover:shadow group-hover:ring-1 ring-black/5"
|
|
@@ -14,7 +13,7 @@
|
|
|
14
13
|
motion-safe:group-hover:scale-110 transition-transform">
|
|
15
14
|
<div class="relative w-full h-full bg-white rounded overflow-hidden
|
|
16
15
|
group-hover:rounded-none">
|
|
17
|
-
<
|
|
16
|
+
<span v-if="images?.length" class="text-xs text-opacity-70">
|
|
18
17
|
<AImg
|
|
19
18
|
:picture="images[0]"
|
|
20
19
|
:alt="title"
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
opacity-0 group-hover:opacity-100 transition-opacity
|
|
29
28
|
motion-safe:duration-300 text-transparent z-10"
|
|
30
29
|
/>
|
|
31
|
-
</
|
|
30
|
+
</span>
|
|
32
31
|
<div
|
|
33
32
|
v-else
|
|
34
33
|
class="w-full h-full bg-gradient-to-br from-base-50/20 to-base-100"
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
{{ $t.i19addToCart }}
|
|
79
78
|
</button>
|
|
80
79
|
</div>
|
|
81
|
-
</
|
|
80
|
+
</ALink>
|
|
82
81
|
</article>
|
|
83
82
|
</template>
|
|
84
83
|
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
<section class="ui-section">
|
|
3
3
|
<div v-if="title" class="max-w-prose mx-auto text-center mb-2">
|
|
4
4
|
<h2 class="ui-text-brand text-3xl">
|
|
5
|
-
<ALink
|
|
5
|
+
<ALink :href="titleLink" :class="titleLink ? 'ui-link' : 'text-base-700'">
|
|
6
6
|
{{ title }}
|
|
7
7
|
</ALink>
|
|
8
|
-
<span v-else class="text-base-700">
|
|
9
|
-
{{ title }}
|
|
10
|
-
</span>
|
|
11
8
|
</h2>
|
|
12
9
|
</div>
|
|
13
10
|
<Carousel class="group/shelf">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<i class="i-magnifying-glass w-7 h-7
|
|
35
35
|
hover:text-primary hover:scale-110 active:scale-125"></i>
|
|
36
36
|
</button>
|
|
37
|
-
<AccountMenu
|
|
37
|
+
<AccountMenu class="hidden sm:block">
|
|
38
38
|
<template #button="{ open }">
|
|
39
39
|
<i
|
|
40
40
|
class="i-user-circle w-7 h-7
|
|
@@ -101,12 +101,7 @@ import SearchModal from '~/components/SearchModal.vue';
|
|
|
101
101
|
import AccountMenu from '~/components/AccountMenu.vue';
|
|
102
102
|
import CartSidebar from '~/components/CartSidebar.vue';
|
|
103
103
|
|
|
104
|
-
export interface Props extends Omit<UseShopHeaderProps, 'header'> {
|
|
105
|
-
serviceLinks?: Array<{
|
|
106
|
-
title: string;
|
|
107
|
-
href: string;
|
|
108
|
-
}>;
|
|
109
|
-
}
|
|
104
|
+
export interface Props extends Omit<UseShopHeaderProps, 'header'> {}
|
|
110
105
|
|
|
111
106
|
const props = defineProps<Props>();
|
|
112
107
|
const header = ref<HTMLElement | null>(null);
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.23.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.23.
|
|
20
|
-
"@cloudcommerce/modules": "^0.23.
|
|
18
|
+
"@cloudcommerce/events": "^0.23.3",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.3",
|
|
20
|
+
"@cloudcommerce/modules": "^0.23.3"
|
|
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.23.
|
|
26
|
+
"@cloudcommerce/cli": "^0.23.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^0.23.
|
|
29
|
+
"@cloudcommerce/eslint": "^0.23.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.24.0",
|
|
5
5
|
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
|
|
6
6
|
"main": "packages/api/lib/index.js",
|
|
7
7
|
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@commitlint/cli": "^17.
|
|
20
|
-
"@commitlint/config-conventional": "^17.
|
|
21
|
-
"@commitlint/rules": "^17.
|
|
22
|
-
"@types/node": "^18.17.
|
|
23
|
-
"eslint": "^8.
|
|
19
|
+
"@commitlint/cli": "^17.7.1",
|
|
20
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
21
|
+
"@commitlint/rules": "^17.7.0",
|
|
22
|
+
"@types/node": "^18.17.5",
|
|
23
|
+
"eslint": "^8.47.0",
|
|
24
24
|
"husky": "^8.0.3",
|
|
25
25
|
"standard-version": "^9.5.0",
|
|
26
26
|
"ts-node": "^10.9.1",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"typescript": "~5.0.4",
|
|
29
29
|
"uglify-js": "^3.17.4",
|
|
30
30
|
"vite": "^4.4.9",
|
|
31
|
-
"vitest": "^0.
|
|
31
|
+
"vitest": "^0.34.1",
|
|
32
32
|
"zx": "^7.2.3",
|
|
33
|
-
"@cloudcommerce/eslint": "0.
|
|
33
|
+
"@cloudcommerce/eslint": "0.24.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|