cloudcommerce 2.0.1 → 2.0.3
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 +17 -0
- package/action.yml +6 -6
- package/ecomplus-stores/barra-doce/.github/workflows/build-and-deploy.yml +41 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/astro.config.mjs +2 -1
- package/ecomplus-stores/barra-doce/functions/ssr/content/pages/home.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -8
- package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +1 -4
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +3 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/layouts/Base.astro +0 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/main/Main.astro +2 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/main/content/Sections.astro +5 -5
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/ecomplus-stores/tia-sonia/.github/workflows/build-and-deploy.yml +46 -10
- package/package.json +9 -9
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +2 -2
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +3 -3
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +3 -3
- package/packages/apps/melhor-envio/package.json +2 -2
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/pagarme-v5/package.json +2 -2
- package/packages/apps/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/lib/index.js +6 -4
- package/packages/emails/lib/index.js.map +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/emails/src/index.ts +6 -6
- package/packages/eslint/package.json +3 -3
- 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/lib/firebase/handle-module.js.map +1 -1
- package/packages/modules/package.json +2 -2
- package/packages/modules/src/firebase/handle-module.ts +2 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/lib/cron-ssr-save-views.js +17 -6
- package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
- package/packages/ssr/package.json +3 -3
- package/packages/ssr/src/lib/cron-ssr-save-views.ts +18 -7
- package/packages/storefront/package.json +6 -6
- package/packages/storefront/src/lib/composables/use-sku-selector.ts +11 -7
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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
|
+
### [2.0.3](https://github.com/ecomplus/cloud-commerce/compare/v2.0.2...v2.0.3) (2024-01-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **emails:** Using contact email from settings as default sender if `MAIL_SENDER` env not set ([b843a35](https://github.com/ecomplus/cloud-commerce/commit/b843a3550a3d4cf3f4c3daaae83e397b975639f2))
|
|
11
|
+
* **ssr:** Prevent rejection and proper debug API errors on cron save views ([f8f9bdd](https://github.com/ecomplus/cloud-commerce/commit/f8f9bddd0f166f9a2bf6657d1a51210d6ce44296))
|
|
12
|
+
|
|
13
|
+
### [2.0.2](https://github.com/ecomplus/cloud-commerce/compare/v2.0.1...v2.0.2) (2024-01-08)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **deps:** Update non-major dependencies ([#304](https://github.com/ecomplus/cloud-commerce/issues/304)) ([63b63f4](https://github.com/ecomplus/cloud-commerce/commit/63b63f4021dd26c230f3caba6ec6d1b5b43d9fed))
|
|
19
|
+
* **storefront:** Update Astro to v4.1.1 ([#305](https://github.com/ecomplus/cloud-commerce/issues/305)) ([f03756f](https://github.com/ecomplus/cloud-commerce/commit/f03756ff9b731429a45f53c089cb590a01c1302c))
|
|
20
|
+
* **storefront:** Watching shared `data:grids` event on SKU selector composable ([3f9a0c3](https://github.com/ecomplus/cloud-commerce/commit/3f9a0c3a834186558814301ab9d73f32b1036459))
|
|
21
|
+
|
|
5
22
|
### [2.0.1](https://github.com/ecomplus/cloud-commerce/compare/v2.0.0...v2.0.1) (2024-01-08)
|
|
6
23
|
|
|
7
24
|
|
package/action.yml
CHANGED
|
@@ -19,20 +19,20 @@ inputs:
|
|
|
19
19
|
deploy-codebase:
|
|
20
20
|
description: 'Specific Firebase Functions codebase for partial deploy'
|
|
21
21
|
mail-sender:
|
|
22
|
-
description: 'Emails: sender email'
|
|
22
|
+
description: 'Emails: sender email (default from settings contact email)'
|
|
23
23
|
mail-sender-name:
|
|
24
24
|
description: 'Emails: sender name (default is store name)'
|
|
25
25
|
mail-reply-to:
|
|
26
26
|
description: 'Emails: Reply email'
|
|
27
|
-
smpt-host:
|
|
27
|
+
smpt-host:
|
|
28
28
|
description: 'Emails: SMTP hostname'
|
|
29
|
-
smpt-port:
|
|
29
|
+
smpt-port:
|
|
30
30
|
description: 'Emails: SMTP port number'
|
|
31
|
-
smpt-user:
|
|
31
|
+
smpt-user:
|
|
32
32
|
description: 'Emails: SMTP username'
|
|
33
|
-
smpt-pass:
|
|
33
|
+
smpt-pass:
|
|
34
34
|
description: 'Emails: SMTP password'
|
|
35
|
-
bunnynet-api-key:
|
|
35
|
+
bunnynet-api-key:
|
|
36
36
|
description: 'bunny.net API key (additional CDN layer)'
|
|
37
37
|
sendgrid-api-key:
|
|
38
38
|
description: 'App: SendGrid API key'
|
|
@@ -22,6 +22,7 @@ jobs:
|
|
|
22
22
|
name: Cloud Commerce build and deploy
|
|
23
23
|
runs-on: ubuntu-latest
|
|
24
24
|
if: |
|
|
25
|
+
github.event.head_commit.message != 'Initial commit' &&
|
|
25
26
|
!contains(github.event.head_commit.message, '[skip ci]')
|
|
26
27
|
steps:
|
|
27
28
|
- uses: actions/checkout@v4
|
|
@@ -34,3 +35,43 @@ jobs:
|
|
|
34
35
|
ecom-authentication-id: ${{ secrets.ECOM_AUTHENTICATION_ID }}
|
|
35
36
|
ecom-api-key: ${{ secrets.ECOM_API_KEY }}
|
|
36
37
|
ecom-store-id: ${{ secrets.ECOM_STORE_ID }}
|
|
38
|
+
# deploy-codebase: with-apps
|
|
39
|
+
mail-sender: ${{ secrets.MAIL_SENDER }}
|
|
40
|
+
mail-sender-name: ${{ secrets.MAIL_SENDER_NAME }}
|
|
41
|
+
mail-reply-to: ${{ secrets.MAIL_REPLY_TO }}
|
|
42
|
+
smpt-host: ${{ secrets.SMPT_HOST }}
|
|
43
|
+
smpt-port: ${{ secrets.SMPT_PORT }}
|
|
44
|
+
smpt-user: ${{ secrets.SMPT_USER }}
|
|
45
|
+
smpt-pass: ${{ secrets.SMPT_PASS }}
|
|
46
|
+
bunnynet-api-key: ${{ secrets.BUNNYNET_API_KEY }}
|
|
47
|
+
sendgrid-api-key: ${{ secrets.SENDGRID_API_KEY }}
|
|
48
|
+
tinyerp-token: ${{ secrets.TINYERP_TOKEN }}
|
|
49
|
+
galaxpay-partner-id: ${{ secrets.GALAXPAY_PARTNER_ID }}
|
|
50
|
+
galaxpay-partner-hash: ${{ secrets.GALAXPAY_PARTNER_HASH }}
|
|
51
|
+
datafrete-operator-token: ${{ secrets.DATAFRETE_OPERATOR_TOKEN }}
|
|
52
|
+
mercadopago-token: ${{ secrets.MERCADOPAGO_TOKEN }}
|
|
53
|
+
frenet-token: ${{ secrets.FRENET_TOKEN }}
|
|
54
|
+
galaxpay-id: ${{ secrets.GALAXPAY_ID }}
|
|
55
|
+
galaxpay-hash: ${{ secrets.GALAXPAY_HASH }}
|
|
56
|
+
ga-measurement-id: ${{ secrets.GA_MEASUREMENT_ID }}
|
|
57
|
+
ga-api-secret: ${{ secrets.GA_API_SECRET }}
|
|
58
|
+
infinitepay-id: ${{ secrets.INFINITEPAY_ID }}
|
|
59
|
+
infinitepay-secret: ${{ secrets.INFINITEPAY_SECRET }}
|
|
60
|
+
fb-pixel-id: ${{ secrets.FB_PIXEL_ID }}
|
|
61
|
+
fb-graph-token: ${{ secrets.FB_GRAPH_TOKEN }}
|
|
62
|
+
jadlog-contract-token: ${{ secrets.JADLOG_CONTRACT_TOKEN }}
|
|
63
|
+
pagarme-encrypt-key: ${{ secrets.PAGARME_ENCRYPT_KEY }}
|
|
64
|
+
pagarme-token: ${{ secrets.PAGARME_TOKEN }}
|
|
65
|
+
pagarme-partner-id: ${{ secrets.PAGARME_PARTNER_ID }}
|
|
66
|
+
paghiper-token: ${{ secrets.PAGHIPER_TOKEN }}
|
|
67
|
+
pix-credentials: ${{ secrets.PIX_CREDENTIALS }}
|
|
68
|
+
flashcourier-contract: ${{ secrets.FLASHCOURIER_CONTRACT }}
|
|
69
|
+
webhooks-token: ${{ secrets.WEBHOOKS_TOKEN }}
|
|
70
|
+
mandae-token: ${{ secrets.MANDAE_TOKEN }}
|
|
71
|
+
correios-user: ${{ secrets.CORREIOS_USER }}
|
|
72
|
+
correios-access-code: ${{ secrets.CORREIOS_ACCESS_CODE }}
|
|
73
|
+
correios-postcard-number: ${{ secrets.CORREIOS_POSTCARD_NUMBER }}
|
|
74
|
+
pagarmev5-api-token: ${{ secrets.PAGARMEV5_API_TOKEN }}
|
|
75
|
+
pagarmev5-public-key: ${{ secrets.PAGARMEV5_PUBLIC_KEY }}
|
|
76
|
+
tiktok-pixel-id: ${{ secrets.TIKTOK_PIXEL_ID }}
|
|
77
|
+
tiktok-access-token: ${{ secrets.TIKTOK_ACCESS_TOKEN }}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.0.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.0.
|
|
20
|
-
"@cloudcommerce/passport": "^2.0.
|
|
18
|
+
"@cloudcommerce/feeds": "^2.0.2",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.0.2",
|
|
20
|
+
"@cloudcommerce/passport": "^2.0.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from 'astro/config';
|
|
2
2
|
import { astroConfig } from '@cloudcommerce/storefront/astro.config.mjs';
|
|
3
|
-
import { FontaineTransform } from 'fontaine';
|
|
4
3
|
|
|
4
|
+
/*
|
|
5
5
|
const fontaineTransform = FontaineTransform.vite({
|
|
6
6
|
fallbacks: ['Inter', 'Arial'],
|
|
7
7
|
resolvePath: (id) => new URL(`./public${id}`, import.meta.url),
|
|
@@ -15,5 +15,6 @@ fontaineTransform.transform = async (src, id) => {
|
|
|
15
15
|
return r;
|
|
16
16
|
};
|
|
17
17
|
astroConfig.vite.plugins.push(fontaineTransform);
|
|
18
|
+
*/
|
|
18
19
|
|
|
19
20
|
export default defineConfig(astroConfig);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"title": "",
|
|
27
27
|
"isHeadless": false,
|
|
28
28
|
"isShuffle": false,
|
|
29
|
-
"limit":
|
|
29
|
+
"limit": 8,
|
|
30
30
|
"page": 1
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"title": "Ingredientes que fazem a diferença",
|
|
37
37
|
"isHeadless": false,
|
|
38
38
|
"isShuffle": false,
|
|
39
|
-
"limit":
|
|
39
|
+
"limit": 8,
|
|
40
40
|
"page": 3
|
|
41
41
|
},
|
|
42
42
|
{
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"title": "Fitas de Natal",
|
|
47
47
|
"isHeadless": false,
|
|
48
48
|
"isShuffle": false,
|
|
49
|
-
"limit":
|
|
49
|
+
"limit": 8,
|
|
50
50
|
"page": 3
|
|
51
51
|
}
|
|
52
52
|
]
|
|
@@ -17,18 +17,16 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^2.0.
|
|
21
|
-
"@cloudcommerce/firebase": "^2.0.
|
|
22
|
-
"@cloudcommerce/ssr": "^2.0.
|
|
20
|
+
"@cloudcommerce/api": "^2.0.2",
|
|
21
|
+
"@cloudcommerce/firebase": "^2.0.2",
|
|
22
|
+
"@cloudcommerce/ssr": "^2.0.2",
|
|
23
23
|
"@headlessui/vue": "^1.7.16"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@cloudcommerce/i18n": "^2.0.
|
|
27
|
-
"@cloudcommerce/storefront": "^2.0.
|
|
28
|
-
"@cloudcommerce/types": "^2.0.
|
|
29
|
-
"@fontsource/croissant-one": "^5.0.18",
|
|
26
|
+
"@cloudcommerce/i18n": "^2.0.2",
|
|
27
|
+
"@cloudcommerce/storefront": "^2.0.2",
|
|
28
|
+
"@cloudcommerce/types": "^2.0.2",
|
|
30
29
|
"@iconify-json/mingcute": "^1.1.15",
|
|
31
|
-
"fontaine": "^0.4.1",
|
|
32
30
|
"photoswipe": "^5.4.3"
|
|
33
31
|
}
|
|
34
32
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--font-brand: "Croissant One", "Croissant One fallback";
|
|
3
|
-
}
|
|
4
1
|
html {
|
|
5
2
|
scroll-behavior: smooth;
|
|
6
3
|
}
|
|
@@ -54,7 +51,7 @@ a, button, button > *, [role=button], [role=button] > * {
|
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
.ui-text-brand, .ui-title {
|
|
57
|
-
@apply font-brand font-
|
|
54
|
+
@apply font-brand font-extrabold not-italic;
|
|
58
55
|
}
|
|
59
56
|
.ui-title {
|
|
60
57
|
@apply text-3xl xl:text-5xl;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</button>
|
|
75
75
|
</span>
|
|
76
76
|
</form>
|
|
77
|
-
<AccountMenu class="hidden sm:block">
|
|
77
|
+
<AccountMenu v-if="!isMobile" class="hidden sm:block">
|
|
78
78
|
<template #button="{ open }">
|
|
79
79
|
<i
|
|
80
80
|
class="i-user-2-line text-base-600 hover:text-primary
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
</div>
|
|
103
103
|
</div>
|
|
104
104
|
<ShopHeaderMenu
|
|
105
|
+
v-if="!isMobile"
|
|
105
106
|
v-show="!isSticky"
|
|
106
107
|
v-bind="{ inlineMenuTrees }"
|
|
107
108
|
class="mt-3 hidden px-3 lg:block 2xl:px-8"
|
|
@@ -165,6 +166,7 @@ import {
|
|
|
165
166
|
type Props as UseShopHeaderProps,
|
|
166
167
|
useShopHeader,
|
|
167
168
|
} from '@@sf/composables/use-shop-header';
|
|
169
|
+
import { isMobile } from '@@sf/sf-lib';
|
|
168
170
|
import Drawer from '@@sf/components/Drawer.vue';
|
|
169
171
|
import ShopSidenav from '~/components/ShopSidenav.vue';
|
|
170
172
|
import ShopHeaderMenu from '~/components/ShopHeaderMenu.vue';
|
|
@@ -5,9 +5,9 @@ import Hero from '~/main/content/Hero.astro';
|
|
|
5
5
|
import Sections from '~/main/content/Sections.astro';
|
|
6
6
|
|
|
7
7
|
const { routeContext } = Astro.locals;
|
|
8
|
-
const { fetchingApiContext } = routeContext;
|
|
8
|
+
const { isSearchPage, fetchingApiContext } = routeContext;
|
|
9
9
|
const sharedData: Record<string, any> = {};
|
|
10
|
-
if (fetchingApiContext) {
|
|
10
|
+
if (isSearchPage || fetchingApiContext) {
|
|
11
11
|
const [
|
|
12
12
|
{ data: { result: grids } },
|
|
13
13
|
] = await Promise.all([
|
|
@@ -20,16 +20,16 @@ const { sections } = await usePageSections({
|
|
|
20
20
|
return { props: content };
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
|
-
const {
|
|
23
|
+
const { cmsContent } = routeContext;
|
|
24
24
|
/* `apiContext` is surelly set here (from Main.astro)
|
|
25
25
|
cause route resource is required to define sections from content. */
|
|
26
26
|
---
|
|
27
27
|
|
|
28
28
|
<article class="mb-9 mt-6 md:mb-12 md:mt-8">
|
|
29
|
-
{sections.map(async ({ type, props }) => {
|
|
29
|
+
{sections.map(async ({ type, props }, index) => {
|
|
30
30
|
switch (type) {
|
|
31
31
|
case 'product-shelf':
|
|
32
|
-
return
|
|
32
|
+
return index === 0 || (index < 2 && !cmsContent?.hero?.slides.length)
|
|
33
33
|
? <ProductShelf {...props} client:idle />
|
|
34
34
|
: <ProductShelf {...props} client:visible />
|
|
35
35
|
case 'related-products':
|
|
@@ -46,7 +46,7 @@ cause route resource is required to define sections from content. */
|
|
|
46
46
|
case 'product-details':
|
|
47
47
|
const { hasDescription, hasSpecifications, ...detailsProps } = props;
|
|
48
48
|
return <>
|
|
49
|
-
<ProductDetails {...detailsProps} client:context
|
|
49
|
+
<ProductDetails {...detailsProps} client:context>
|
|
50
50
|
<Fragment slot="description">
|
|
51
51
|
{hasDescription && <DocDescription />}
|
|
52
52
|
{hasSpecifications && <ProductSpecifications />}
|
|
@@ -57,7 +57,7 @@ cause route resource is required to define sections from content. */
|
|
|
57
57
|
case 'context-showcase':
|
|
58
58
|
return <>
|
|
59
59
|
<article class="min-h-[500px]">
|
|
60
|
-
<SearchShowcase {...props} client:context
|
|
60
|
+
<SearchShowcase {...props} client:context />
|
|
61
61
|
</article>
|
|
62
62
|
</>
|
|
63
63
|
case 'page-title':
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.0.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.0.
|
|
20
|
-
"@cloudcommerce/modules": "^2.0.
|
|
18
|
+
"@cloudcommerce/events": "^2.0.2",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.0.2",
|
|
20
|
+
"@cloudcommerce/modules": "^2.0.2"
|
|
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": "^2.0.
|
|
26
|
+
"@cloudcommerce/cli": "^2.0.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^2.0.
|
|
29
|
+
"@cloudcommerce/eslint": "^2.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -6,10 +6,6 @@ on:
|
|
|
6
6
|
- main
|
|
7
7
|
paths:
|
|
8
8
|
- 'functions/**'
|
|
9
|
-
- 'public/**'
|
|
10
|
-
- 'src/**'
|
|
11
|
-
- 'content/**'
|
|
12
|
-
- 'template/**'
|
|
13
9
|
- 'package-lock.json'
|
|
14
10
|
- '.firebaserc'
|
|
15
11
|
- '.ecomplus/**'
|
|
@@ -17,11 +13,8 @@ on:
|
|
|
17
13
|
- '.github/workflows/build-and-deploy.yml'
|
|
18
14
|
pull_request:
|
|
19
15
|
paths:
|
|
20
|
-
- 'functions/**'
|
|
21
|
-
- '
|
|
22
|
-
- 'src/**'
|
|
23
|
-
- 'content/**'
|
|
24
|
-
- 'template/**'
|
|
16
|
+
- 'functions/ssr/**'
|
|
17
|
+
- '.firebaserc'
|
|
25
18
|
- 'package-lock.json'
|
|
26
19
|
|
|
27
20
|
jobs:
|
|
@@ -29,9 +22,12 @@ jobs:
|
|
|
29
22
|
name: Cloud Commerce build and deploy
|
|
30
23
|
runs-on: ubuntu-latest
|
|
31
24
|
if: |
|
|
25
|
+
github.event.head_commit.message != 'Initial commit' &&
|
|
32
26
|
!contains(github.event.head_commit.message, '[skip ci]')
|
|
33
27
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0
|
|
35
31
|
- uses: ecomplus/cloud-commerce@main
|
|
36
32
|
with:
|
|
37
33
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -39,3 +35,43 @@ jobs:
|
|
|
39
35
|
ecom-authentication-id: ${{ secrets.ECOM_AUTHENTICATION_ID }}
|
|
40
36
|
ecom-api-key: ${{ secrets.ECOM_API_KEY }}
|
|
41
37
|
ecom-store-id: ${{ secrets.ECOM_STORE_ID }}
|
|
38
|
+
# deploy-codebase: with-apps
|
|
39
|
+
mail-sender: ${{ secrets.MAIL_SENDER }}
|
|
40
|
+
mail-sender-name: ${{ secrets.MAIL_SENDER_NAME }}
|
|
41
|
+
mail-reply-to: ${{ secrets.MAIL_REPLY_TO }}
|
|
42
|
+
smpt-host: ${{ secrets.SMPT_HOST }}
|
|
43
|
+
smpt-port: ${{ secrets.SMPT_PORT }}
|
|
44
|
+
smpt-user: ${{ secrets.SMPT_USER }}
|
|
45
|
+
smpt-pass: ${{ secrets.SMPT_PASS }}
|
|
46
|
+
bunnynet-api-key: ${{ secrets.BUNNYNET_API_KEY }}
|
|
47
|
+
sendgrid-api-key: ${{ secrets.SENDGRID_API_KEY }}
|
|
48
|
+
tinyerp-token: ${{ secrets.TINYERP_TOKEN }}
|
|
49
|
+
galaxpay-partner-id: ${{ secrets.GALAXPAY_PARTNER_ID }}
|
|
50
|
+
galaxpay-partner-hash: ${{ secrets.GALAXPAY_PARTNER_HASH }}
|
|
51
|
+
datafrete-operator-token: ${{ secrets.DATAFRETE_OPERATOR_TOKEN }}
|
|
52
|
+
mercadopago-token: ${{ secrets.MERCADOPAGO_TOKEN }}
|
|
53
|
+
frenet-token: ${{ secrets.FRENET_TOKEN }}
|
|
54
|
+
galaxpay-id: ${{ secrets.GALAXPAY_ID }}
|
|
55
|
+
galaxpay-hash: ${{ secrets.GALAXPAY_HASH }}
|
|
56
|
+
ga-measurement-id: ${{ secrets.GA_MEASUREMENT_ID }}
|
|
57
|
+
ga-api-secret: ${{ secrets.GA_API_SECRET }}
|
|
58
|
+
infinitepay-id: ${{ secrets.INFINITEPAY_ID }}
|
|
59
|
+
infinitepay-secret: ${{ secrets.INFINITEPAY_SECRET }}
|
|
60
|
+
fb-pixel-id: ${{ secrets.FB_PIXEL_ID }}
|
|
61
|
+
fb-graph-token: ${{ secrets.FB_GRAPH_TOKEN }}
|
|
62
|
+
jadlog-contract-token: ${{ secrets.JADLOG_CONTRACT_TOKEN }}
|
|
63
|
+
pagarme-encrypt-key: ${{ secrets.PAGARME_ENCRYPT_KEY }}
|
|
64
|
+
pagarme-token: ${{ secrets.PAGARME_TOKEN }}
|
|
65
|
+
pagarme-partner-id: ${{ secrets.PAGARME_PARTNER_ID }}
|
|
66
|
+
paghiper-token: ${{ secrets.PAGHIPER_TOKEN }}
|
|
67
|
+
pix-credentials: ${{ secrets.PIX_CREDENTIALS }}
|
|
68
|
+
flashcourier-contract: ${{ secrets.FLASHCOURIER_CONTRACT }}
|
|
69
|
+
webhooks-token: ${{ secrets.WEBHOOKS_TOKEN }}
|
|
70
|
+
mandae-token: ${{ secrets.MANDAE_TOKEN }}
|
|
71
|
+
correios-user: ${{ secrets.CORREIOS_USER }}
|
|
72
|
+
correios-access-code: ${{ secrets.CORREIOS_ACCESS_CODE }}
|
|
73
|
+
correios-postcard-number: ${{ secrets.CORREIOS_POSTCARD_NUMBER }}
|
|
74
|
+
pagarmev5-api-token: ${{ secrets.PAGARMEV5_API_TOKEN }}
|
|
75
|
+
pagarmev5-public-key: ${{ secrets.PAGARMEV5_PUBLIC_KEY }}
|
|
76
|
+
tiktok-pixel-id: ${{ secrets.TIKTOK_PIXEL_ID }}
|
|
77
|
+
tiktok-access-token: ${{ secrets.TIKTOK_ACCESS_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
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,21 +16,21 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@commitlint/cli": "^18.4.
|
|
20
|
-
"@commitlint/config-conventional": "^18.4.
|
|
21
|
-
"@commitlint/rules": "^18.4.
|
|
22
|
-
"@types/node": "^18.19.
|
|
19
|
+
"@commitlint/cli": "^18.4.4",
|
|
20
|
+
"@commitlint/config-conventional": "^18.4.4",
|
|
21
|
+
"@commitlint/rules": "^18.4.4",
|
|
22
|
+
"@types/node": "^18.19.5",
|
|
23
23
|
"eslint": "^8.56.0",
|
|
24
24
|
"husky": "^8.0.3",
|
|
25
25
|
"standard-version": "^9.5.0",
|
|
26
26
|
"ts-node": "^10.9.2",
|
|
27
|
-
"turbo": "^1.11.
|
|
27
|
+
"turbo": "^1.11.3",
|
|
28
28
|
"typescript": "~5.2.2",
|
|
29
29
|
"uglify-js": "^3.17.4",
|
|
30
|
-
"vite": "^5.0.
|
|
31
|
-
"vitest": "^1.1.
|
|
30
|
+
"vite": "^5.0.11",
|
|
31
|
+
"vitest": "^1.1.3",
|
|
32
32
|
"zx": "^7.2.3",
|
|
33
|
-
"@cloudcommerce/eslint": "2.0.
|
|
33
|
+
"@cloudcommerce/eslint": "2.0.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@cloudcommerce/api": "workspace:*",
|
|
28
28
|
"@cloudcommerce/firebase": "workspace:*",
|
|
29
29
|
"@google-cloud/pubsub": "^4.1.0",
|
|
30
|
-
"axios": "^1.6.
|
|
30
|
+
"axios": "^1.6.5",
|
|
31
31
|
"firebase-admin": "^12.0.0",
|
|
32
32
|
"firebase-functions": "^4.6.0"
|
|
33
33
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-datafrete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
|
|
6
6
|
"main": "lib/datafrete.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
29
|
-
"axios": "^1.6.
|
|
29
|
+
"axios": "^1.6.5",
|
|
30
30
|
"firebase-admin": "^12.0.0",
|
|
31
31
|
"firebase-functions": "^4.6.0"
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-flash-courier",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Flash Courier",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
29
|
-
"firebase-functions": "^4.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
|
+
"firebase-functions": "^4.6.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-frenet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
|
|
6
6
|
"main": "lib/frenet.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@cloudcommerce/api": "workspace:*",
|
|
28
28
|
"@cloudcommerce/firebase": "workspace:*",
|
|
29
|
-
"axios": "^1.6.
|
|
29
|
+
"axios": "^1.6.5",
|
|
30
30
|
"firebase-admin": "^12.0.0",
|
|
31
31
|
"firebase-functions": "^4.6.0"
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Galax Pay for recurring payments",
|
|
6
6
|
"main": "lib/galaxpay.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
29
|
"firebase-admin": "^12.0.0",
|
|
30
30
|
"firebase-functions": "^4.6.0"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-google-analytics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to send carts/orders events to GA Measurement Protocol",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"axios": "^1.6.
|
|
24
|
+
"axios": "^1.6.5",
|
|
25
25
|
"firebase-admin": "^12.0.0",
|
|
26
26
|
"firebase-functions": "^4.6.0"
|
|
27
27
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-jadlog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
|
-
"axios": "^1.6.
|
|
23
|
+
"axios": "^1.6.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@cloudcommerce/types": "workspace:*"
|