cloudcommerce 2.2.0 → 2.2.2
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/.husky/commit-msg +0 -3
- package/.husky/pre-commit +0 -3
- package/CHANGELOG.md +21 -0
- package/action.yml +76 -52
- package/ecomplus-stores/barra-doce/.husky/pre-commit +0 -3
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/content/pages/brands.json +2 -1
- package/ecomplus-stores/barra-doce/functions/ssr/content/pages/categories.json +2 -1
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +2 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountMenu.vue +5 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/PageTitle.vue +26 -17
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +4 -5
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductDetails.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/SearchShowcase.vue +3 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeaderSubmenu.vue +4 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/pages/[...slug].astro +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/src/pages/blog/[page].astro +6 -5
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +4 -4
- package/package.json +10 -10
- 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 +2 -2
- 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 +2 -2
- 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/ci/bunny-config-base.sh +1 -1
- package/packages/cli/ci/bunny-prepare-ab.sh +1 -1
- package/packages/cli/ci/bunny-remove-ab.sh +1 -1
- package/packages/cli/ci/bunny-setup.sh +1 -1
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/eslint/package.json +2 -2
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +2 -2
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/lib/cron-ssr-save-views.js +6 -0
- package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
- package/packages/ssr/package.json +4 -4
- package/packages/ssr/src/lib/cron-ssr-save-views.ts +6 -0
- package/packages/storefront/astro.config.mjs +2 -0
- package/packages/storefront/dist/client/_astro/{AccountPage.89hLh9p2.js → AccountPage.HcKW6HTE.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.G25ZUnKP.js → CartSidebar.osvr0MUo.js} +1 -1
- package/packages/storefront/dist/client/_astro/{HeroSlider.XZb2xsyV.js → HeroSlider.I5mC8JdX.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.Nr7T3S3T.js → PitchBar.xC4J7MDy.js} +1 -1
- package/packages/storefront/dist/client/_astro/{Prices.Ye-m2HTo.js → Prices.Jt09rVKv.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductDetails.ntFWLjla.js → ProductDetails.oouZY3cL.js} +1 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.dYlXuNId.js +1 -0
- package/packages/storefront/dist/client/_astro/{ProductShelf.PPitdYxI.js → ProductShelf.vGE0E3Qf.js} +1 -1
- package/packages/storefront/dist/client/_astro/{QuantitySelector.tumfWDjC.js → QuantitySelector.OL4MN-C_.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchModal.R55jFaBZ.js → SearchModal.d8lbvLay.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.ynowXX4j.js +1 -0
- package/packages/storefront/dist/client/_astro/{ShopHeader.OLf0l4Ot.js → ShopHeader.l4KJGvUd.js} +2 -2
- package/packages/storefront/dist/client/_astro/_slug_.4W7qhV-L.css +1 -0
- package/packages/storefront/dist/client/_astro/{customer-session.AcETMuhI.js → customer-session.TRPGDX3c.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.Wi6YpdWJ.js → hoisted.8pwSenCN.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.WBjTfX6e.js → hoisted.SLwcAI01.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.PxLuJZKI.js → hoisted.gqV7f6f3.js} +1 -1
- package/packages/storefront/dist/client/_astro/{modules-info.tVRhvxNm.js → modules-info.WWsUqEPZ.js} +1 -1
- package/packages/storefront/dist/client/_astro/sf-utils.luvTU5uS.js +1 -0
- package/packages/storefront/dist/client/_astro/{shopping-cart.dJsZkyuD.js → shopping-cart.ATTXCPd0.js} +1 -1
- package/packages/storefront/dist/client/_astro/use-analytics.WpkjGsWi.js +1 -0
- package/packages/storefront/dist/client/_astro/{use-product-card.WRVLjenR.js → use-product-card.BhUXhJIp.js} +1 -1
- package/packages/storefront/dist/client/app/account/index.html +58 -0
- package/packages/storefront/dist/client/app/index.html +98 -0
- package/packages/storefront/dist/client/blog/1/index.html +86 -0
- package/packages/storefront/dist/client/{~index.html → index.html} +11 -8
- package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +93 -0
- package/packages/storefront/dist/client/monitores-gamer/index.html +95 -0
- package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +93 -0
- package/packages/storefront/dist/client/p/contato/index.html +90 -0
- package/packages/storefront/dist/client/p/terms/index.html +101 -0
- package/packages/storefront/dist/client/posts/3/index.html +101 -0
- package/packages/storefront/dist/client/posts/4/index.html +101 -0
- package/packages/storefront/dist/client/{~fallback.html → ~fallback/index.html} +4 -3
- package/packages/storefront/package.json +7 -7
- package/packages/storefront/src/helpers/sf-utils.ts +7 -3
- package/packages/storefront/src/lib/components/QuantitySelector.vue +1 -1
- package/packages/storefront/src/lib/composables/use-search-showcase.ts +34 -8
- package/packages/storefront/src/lib/composables/use-sticky-header.ts +1 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +1 -0
- package/packages/storefront/src/lib/pages/_vue.ts +2 -0
- package/packages/storefront/src/lib/ssr-context.ts +1 -0
- package/packages/storefront/src/lib/state/search-engine.ts +7 -2
- package/packages/storefront/src/vue-globals.d.ts +1 -0
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.xSxmHkTe.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.I1PPFu_n.js +0 -1
- package/packages/storefront/dist/client/_astro/_slug_.Hc-dqhcW.css +0 -1
- package/packages/storefront/dist/client/_astro/sf-utils.Z4H-dRBJ.js +0 -1
- package/packages/storefront/dist/client/_astro/use-analytics.uqK_2k_k.js +0 -1
|
@@ -104,11 +104,11 @@ jobs:
|
|
|
104
104
|
${{ steps.npm-paths.outputs.LIB_PATH }}
|
|
105
105
|
${{ steps.npm-paths.outputs.BIN_PATH }}
|
|
106
106
|
~/.npm-global/bin
|
|
107
|
-
key: ${{ runner.os }}-npm-globals-firebase-tools-13.0
|
|
107
|
+
key: ${{ runner.os }}-npm-globals-firebase-tools-13.1.0
|
|
108
108
|
|
|
109
109
|
- if: steps.npm-g-cache.outputs.cache-hit != 'true'
|
|
110
110
|
shell: bash
|
|
111
|
-
run: npm install -g firebase-tools@13.0
|
|
111
|
+
run: npm install -g firebase-tools@13.1.0
|
|
112
112
|
|
|
113
113
|
- name: Initialize Firebase emulators
|
|
114
114
|
shell: bash
|
package/.husky/commit-msg
CHANGED
package/.husky/pre-commit
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.2.2](https://github.com/ecomplus/cloud-commerce/compare/v2.2.1...v2.2.2) (2024-01-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **cli:** Call `ci/bunny-config-base.sh` with correct args on setup ([4e816c1](https://github.com/ecomplus/cloud-commerce/commit/4e816c174a5b02fbb660adda297717cf30c36692))
|
|
11
|
+
* **ssr:** Purge bunny.net cache only for page views older than 3min ([391ed21](https://github.com/ecomplus/cloud-commerce/commit/391ed21011fa28b342ed95b1e3cb99a7157374a9))
|
|
12
|
+
* **storefront:** Bump Astro to latest v4.2.7 ([a32bf15](https://github.com/ecomplus/cloud-commerce/commit/a32bf15037131af22dbfa2ae7bc7f27ac5318eb1))
|
|
13
|
+
* **storefront:** Preventing hydration mismatch with random `useId`s ([481518a](https://github.com/ecomplus/cloud-commerce/commit/481518a1f5375871f01b882dd8714731fbb41808))
|
|
14
|
+
* **storefront:** Preventing hydration mismatch with random `useId`s ([bfc4f8c](https://github.com/ecomplus/cloud-commerce/commit/bfc4f8c5e363d28dc30f085eab97e6e2fc88530b))
|
|
15
|
+
* **storefront:** Reducing sticky header scroll watcher debounce to 20ms ([aff44e5](https://github.com/ecomplus/cloud-commerce/commit/aff44e5e5f8185472a848b83b42bdc82f374ed12))
|
|
16
|
+
|
|
17
|
+
### [2.2.1](https://github.com/ecomplus/cloud-commerce/compare/v2.2.0...v2.2.1) (2024-01-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **storefront:** Fix `useSearchShowcase` to ensure URL params respected on initial (maybe) fetch ([1ecc3df](https://github.com/ecomplus/cloud-commerce/commit/1ecc3dfd2973c22e4186d37ee05cc266f5a56e31))
|
|
23
|
+
* **storefront:** New optional `pageSize` prop to search showcase compsable ([5b3fa04](https://github.com/ecomplus/cloud-commerce/commit/5b3fa04d837a4d54488ca7cc4e3b78131c0589b3))
|
|
24
|
+
* **storefront:** Update Astro to latest v4.2.6 ([#312](https://github.com/ecomplus/cloud-commerce/issues/312)) ([76ddf9a](https://github.com/ecomplus/cloud-commerce/commit/76ddf9ab17fc6bd31c674b580c185747260fc17f))
|
|
25
|
+
|
|
5
26
|
## [2.2.0](https://github.com/ecomplus/cloud-commerce/compare/v2.1.0...v2.2.0) (2024-01-28)
|
|
6
27
|
|
|
7
28
|
|
package/action.yml
CHANGED
|
@@ -104,6 +104,9 @@ outputs: {}
|
|
|
104
104
|
runs:
|
|
105
105
|
using: "composite"
|
|
106
106
|
steps:
|
|
107
|
+
- shell: bash
|
|
108
|
+
run: echo "year=$(date +'%Y')" >> $GITHUB_ENV
|
|
109
|
+
|
|
107
110
|
- uses: actions/setup-node@v4
|
|
108
111
|
with:
|
|
109
112
|
node-version: 18
|
|
@@ -116,24 +119,6 @@ runs:
|
|
|
116
119
|
path: node_modules
|
|
117
120
|
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
|
|
118
121
|
|
|
119
|
-
- uses: actions/cache@v3
|
|
120
|
-
id: npm-cache-many
|
|
121
|
-
with:
|
|
122
|
-
path: functions/many/node_modules
|
|
123
|
-
key: ${{ runner.os }}-npm-${{ hashFiles('functions/many/package-lock.json') }}
|
|
124
|
-
|
|
125
|
-
- uses: actions/cache@v3
|
|
126
|
-
id: npm-cache-ssr
|
|
127
|
-
with:
|
|
128
|
-
path: functions/ssr/node_modules
|
|
129
|
-
key: ${{ runner.os }}-npm-${{ hashFiles('functions/ssr/package-lock.json') }}
|
|
130
|
-
|
|
131
|
-
- uses: actions/cache@v3
|
|
132
|
-
id: npm-cache-with-apps
|
|
133
|
-
with:
|
|
134
|
-
path: functions/with-apps/node_modules
|
|
135
|
-
key: ${{ runner.os }}-npm-${{ hashFiles('functions/with-apps/package-lock.json') }}
|
|
136
|
-
|
|
137
122
|
- if: steps.npm-cache-root.outputs.cache-hit != 'true'
|
|
138
123
|
shell: bash
|
|
139
124
|
run: npm ci --omit=dev --ignore-scripts
|
|
@@ -153,40 +138,14 @@ runs:
|
|
|
153
138
|
${{ steps.npm-paths.outputs.LIB_PATH }}
|
|
154
139
|
${{ steps.npm-paths.outputs.BIN_PATH }}
|
|
155
140
|
~/.npm-global/bin
|
|
156
|
-
key: ${{ runner.os }}-npm-g-firebase-tools-13.0
|
|
141
|
+
key: ${{ runner.os }}-npm-g-firebase-tools-13.1.0
|
|
157
142
|
|
|
158
143
|
- if: github.event_name == 'push' && steps.npm-g-cache.outputs.cache-hit != 'true'
|
|
159
144
|
shell: bash
|
|
160
|
-
run: npm i --location=global firebase-tools@13.0
|
|
161
|
-
|
|
162
|
-
- if: steps.npm-cache-many.outputs.cache-hit != 'true'
|
|
163
|
-
name: Install codebase "many" dependencies
|
|
164
|
-
shell: bash
|
|
165
|
-
working-directory: functions/many
|
|
166
|
-
run: npm ci
|
|
167
|
-
|
|
168
|
-
- if: steps.npm-cache-ssr.outputs.cache-hit != 'true'
|
|
169
|
-
name: Install codebase "ssr" dependencies
|
|
170
|
-
shell: bash
|
|
171
|
-
working-directory: functions/ssr
|
|
172
|
-
run: npm ci
|
|
173
|
-
|
|
174
|
-
- if: steps.npm-cache-with-apps.outputs.cache-hit != 'true'
|
|
175
|
-
name: Install codebase "with-apps" dependencies
|
|
176
|
-
shell: bash
|
|
177
|
-
working-directory: functions/with-apps
|
|
178
|
-
run: npm ci
|
|
145
|
+
run: npm i --location=global firebase-tools@13.1.0
|
|
179
146
|
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
working-directory: functions
|
|
183
|
-
env:
|
|
184
|
-
ECOM_STORE_ID: ${{ inputs.ecom-store-id }}
|
|
185
|
-
run: |
|
|
186
|
-
echo "ecom_store_id=${ECOM_STORE_ID:-$(cat config.json | jq -r '.storeId')}" >> $GITHUB_ENV
|
|
187
|
-
echo "git_branch=${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}" >> $GITHUB_ENV
|
|
188
|
-
|
|
189
|
-
- uses: dorny/paths-filter@v2.11.1
|
|
147
|
+
- if: github.event_name == 'push'
|
|
148
|
+
uses: dorny/paths-filter@v3.0.0
|
|
190
149
|
id: changes
|
|
191
150
|
with:
|
|
192
151
|
filters: |
|
|
@@ -196,8 +155,9 @@ runs:
|
|
|
196
155
|
- 'functions/with-apps/**'
|
|
197
156
|
ssr:
|
|
198
157
|
- 'functions/ssr/**'
|
|
199
|
-
|
|
200
|
-
-
|
|
158
|
+
|
|
159
|
+
- if: github.event_name == 'push'
|
|
160
|
+
name: Check functions codebase to deploy
|
|
201
161
|
shell: bash
|
|
202
162
|
env:
|
|
203
163
|
DEPLOY_CODEBASE: ${{ inputs.deploy-codebase }}
|
|
@@ -220,6 +180,70 @@ runs:
|
|
|
220
180
|
fi
|
|
221
181
|
echo "deploy_codebase=$deploy_codebase" >> $GITHUB_ENV
|
|
222
182
|
|
|
183
|
+
- if: github.event_name == 'pull_request'
|
|
184
|
+
shell: bash
|
|
185
|
+
run: echo "deploy_codebase=ssr" >> $GITHUB_ENV
|
|
186
|
+
|
|
187
|
+
- if: env.deploy_codebase == '' || env.deploy_codebase == 'many'
|
|
188
|
+
uses: actions/cache@v3
|
|
189
|
+
id: npm-cache-many
|
|
190
|
+
with:
|
|
191
|
+
path: functions/many/node_modules
|
|
192
|
+
key: ${{ runner.os }}-npm-${{ hashFiles('functions/many/package-lock.json') }}
|
|
193
|
+
|
|
194
|
+
- if: env.deploy_codebase == '' || env.deploy_codebase == 'ssr'
|
|
195
|
+
uses: actions/cache@v3
|
|
196
|
+
id: npm-cache-ssr
|
|
197
|
+
with:
|
|
198
|
+
path: functions/ssr/node_modules
|
|
199
|
+
key: ${{ runner.os }}-npm-${{ hashFiles('functions/ssr/package-lock.json') }}
|
|
200
|
+
|
|
201
|
+
- if: env.deploy_codebase == '' || env.deploy_codebase == 'ssr'
|
|
202
|
+
uses: actions/cache@v3
|
|
203
|
+
with:
|
|
204
|
+
path: functions/ssr/.cache
|
|
205
|
+
key: ${{ runner.os }}-${{ env.year }}-storefront
|
|
206
|
+
|
|
207
|
+
- if: env.deploy_codebase == '' || env.deploy_codebase == 'with-apps'
|
|
208
|
+
uses: actions/cache@v3
|
|
209
|
+
id: npm-cache-with-apps
|
|
210
|
+
with:
|
|
211
|
+
path: functions/with-apps/node_modules
|
|
212
|
+
key: ${{ runner.os }}-npm-${{ hashFiles('functions/with-apps/package-lock.json') }}
|
|
213
|
+
|
|
214
|
+
- if: |
|
|
215
|
+
(env.deploy_codebase == '' || env.deploy_codebase == 'many')
|
|
216
|
+
&& steps.npm-cache-many.outputs.cache-hit != 'true'
|
|
217
|
+
name: Install codebase "many" dependencies
|
|
218
|
+
shell: bash
|
|
219
|
+
working-directory: functions/many
|
|
220
|
+
run: npm ci
|
|
221
|
+
|
|
222
|
+
- if: |
|
|
223
|
+
(env.deploy_codebase == '' || env.deploy_codebase == 'ssr')
|
|
224
|
+
&& steps.npm-cache-ssr.outputs.cache-hit != 'true'
|
|
225
|
+
name: Install codebase "ssr" dependencies
|
|
226
|
+
shell: bash
|
|
227
|
+
working-directory: functions/ssr
|
|
228
|
+
run: npm ci
|
|
229
|
+
|
|
230
|
+
- if: |
|
|
231
|
+
(env.deploy_codebase == '' || env.deploy_codebase == 'with-apps')
|
|
232
|
+
&& steps.npm-cache-with-apps.outputs.cache-hit != 'true'
|
|
233
|
+
name: Install codebase "with-apps" dependencies
|
|
234
|
+
shell: bash
|
|
235
|
+
working-directory: functions/with-apps
|
|
236
|
+
run: npm ci
|
|
237
|
+
|
|
238
|
+
- name: Set ecom_store_id and git_branch env
|
|
239
|
+
shell: bash
|
|
240
|
+
working-directory: functions
|
|
241
|
+
env:
|
|
242
|
+
ECOM_STORE_ID: ${{ inputs.ecom-store-id }}
|
|
243
|
+
run: |
|
|
244
|
+
echo "ecom_store_id=${ECOM_STORE_ID:-$(cat config.json | jq -r '.storeId')}" >> $GITHUB_ENV
|
|
245
|
+
echo "git_branch=${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}" >> $GITHUB_ENV
|
|
246
|
+
|
|
223
247
|
- if: github.event_name == 'push'
|
|
224
248
|
name: Deploy to Firebase live
|
|
225
249
|
shell: bash
|
|
@@ -334,7 +358,7 @@ runs:
|
|
|
334
358
|
npm run deploy -- --only functions:$DEPLOY_CODEBASE
|
|
335
359
|
fi
|
|
336
360
|
fi
|
|
337
|
-
|
|
361
|
+
|
|
338
362
|
- if: github.event_name == 'push' && contains(github.event.head_commit.message, '[run:')
|
|
339
363
|
name: Run script from `@cloudcommerce/cli/ci/`
|
|
340
364
|
shell: bash
|
|
@@ -396,7 +420,7 @@ runs:
|
|
|
396
420
|
bash $GITHUB_ACTION_PATH/packages/cli/ci/bunny-prepare-ab.sh 1 $domain $CHANNEL_URL
|
|
397
421
|
fi
|
|
398
422
|
fi
|
|
399
|
-
|
|
423
|
+
|
|
400
424
|
- if: |
|
|
401
425
|
github.event_name == 'pull_request' && github.event.action == 'closed'
|
|
402
426
|
&& startsWith(env.git_branch, 'main-')
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.1
|
|
19
|
-
"@cloudcommerce/firebase": "^2.1
|
|
20
|
-
"@cloudcommerce/passport": "^2.1
|
|
18
|
+
"@cloudcommerce/feeds": "^2.2.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.2.1",
|
|
20
|
+
"@cloudcommerce/passport": "^2.2.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@cloudcommerce/api": "^2.1
|
|
22
|
-
"@cloudcommerce/firebase": "^2.1
|
|
23
|
-
"@cloudcommerce/ssr": "^2.1
|
|
21
|
+
"@cloudcommerce/api": "^2.2.1",
|
|
22
|
+
"@cloudcommerce/firebase": "^2.2.1",
|
|
23
|
+
"@cloudcommerce/ssr": "^2.2.1",
|
|
24
24
|
"@headlessui/vue": "^1.7.17"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@cloudcommerce/i18n": "^2.1
|
|
28
|
-
"@cloudcommerce/storefront": "^2.1
|
|
29
|
-
"@cloudcommerce/types": "^2.1
|
|
27
|
+
"@cloudcommerce/i18n": "^2.2.1",
|
|
28
|
+
"@cloudcommerce/storefront": "^2.2.1",
|
|
29
|
+
"@cloudcommerce/types": "^2.2.1",
|
|
30
30
|
"@iconify-json/mingcute": "^1.1.15",
|
|
31
31
|
"photoswipe": "^5.4.3"
|
|
32
32
|
}
|
|
@@ -36,7 +36,7 @@ a, button, button > *, [role=button], [role=button] > * {
|
|
|
36
36
|
ring-primary/30;
|
|
37
37
|
}
|
|
38
38
|
.ui-btn-secondary {
|
|
39
|
-
@apply bg-secondary-100/50 text-secondary border-secondary
|
|
39
|
+
@apply bg-secondary-100/50 text-secondary-700 border-secondary
|
|
40
40
|
hover:primary ring-secondary/30;
|
|
41
41
|
}
|
|
42
42
|
.ui-btn-contrast {
|
|
@@ -54,7 +54,7 @@ a, button, button > *, [role=button], [role=button] > * {
|
|
|
54
54
|
@apply font-brand font-extrabold not-italic;
|
|
55
55
|
}
|
|
56
56
|
.ui-title {
|
|
57
|
-
@apply text-3xl xl:text-5xl;
|
|
57
|
+
@apply text-3xl xl:text-5xl text-balance;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
[class*=ui-badge] {
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
<span v-once>{{ initializeFirebaseAuth() }}</span>
|
|
9
9
|
</div>
|
|
10
10
|
<AccountLink role="button" @click.prevent>
|
|
11
|
-
<MenuButton
|
|
11
|
+
<MenuButton
|
|
12
|
+
id="AccountBtn"
|
|
13
|
+
class="outline-none"
|
|
14
|
+
:aria-label="$t.i19myAccount"
|
|
15
|
+
>
|
|
12
16
|
<slot name="button" v-bind="{ open }" />
|
|
13
17
|
</MenuButton>
|
|
14
18
|
</AccountLink>
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class="
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
<section
|
|
3
|
+
v-if="title"
|
|
4
|
+
class="from-secondary-50/20 to-secondary-100 bg-gradient-to-br py-2"
|
|
5
|
+
>
|
|
6
|
+
<article class="ui-section">
|
|
7
|
+
<div class="prose mx-auto">
|
|
8
|
+
<div class="not-prose flex items-center gap-4 md:justify-center">
|
|
9
|
+
<AImg
|
|
10
|
+
v-if="logo"
|
|
11
|
+
:picture="logo"
|
|
12
|
+
:alt="logo.alt || title"
|
|
13
|
+
class="h-auto max-w-[150px] xl:max-w-[200px]"
|
|
14
|
+
/>
|
|
15
|
+
<h1 class="ui-title from-secondary-600 to-secondary-700 bg-gradient-to-br
|
|
16
|
+
bg-clip-text text-center text-transparent">
|
|
17
|
+
{{ title }}
|
|
18
|
+
</h1>
|
|
19
|
+
</div>
|
|
20
|
+
<p
|
|
21
|
+
v-if="description"
|
|
22
|
+
:class="description.length < 120 && 'md:text-center'"
|
|
23
|
+
>
|
|
24
|
+
{{ description }}
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
</article>
|
|
19
28
|
</section>
|
|
20
29
|
</template>
|
|
21
30
|
|
|
@@ -36,11 +36,10 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
<span
|
|
38
38
|
v-if="discountPercentage"
|
|
39
|
-
class=":uno:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
group-hover:translate-x-2 group-hover:scale-110"
|
|
39
|
+
class=":uno: absolute right-2
|
|
40
|
+
top-9 rounded-full bg-gradient-to-bl from-fuchsia-100
|
|
41
|
+
to-fuchsia-100/20 px-2 py-0.5
|
|
42
|
+
text-xs text-fuchsia-900 transition-transform"
|
|
44
43
|
>
|
|
45
44
|
-<strong>{{ discountPercentage }}</strong>%
|
|
46
45
|
</span>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<ImagesGallery :pictures="product.pictures" />
|
|
7
7
|
</template>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="lg:sticky-header:translate-y-
|
|
9
|
+
<div class="lg:sticky-header:translate-y-24 top-0 py-4
|
|
10
10
|
transition-transform lg:sticky">
|
|
11
11
|
<h1 class="text-secondary-900 ui-text-brand text-lg">
|
|
12
12
|
{{ title }}
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
<Fade>
|
|
20
20
|
<section
|
|
21
21
|
v-if="hasFiltersBar"
|
|
22
|
-
class="to-base-100 ui-section-slim sticky-header:translate-y-16
|
|
22
|
+
class="to-base-100 ui-section-slim sticky-header:translate-y-16
|
|
23
|
+
lg:sticky-header:translate-y-24 sticky top-0
|
|
23
24
|
z-[12] flex items-center justify-between
|
|
24
25
|
rounded-b bg-white/80 px-6 py-4 shadow-sm
|
|
25
26
|
backdrop-blur-sm transition-transform"
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
as="div"
|
|
60
61
|
class="text-base-800 relative text-sm"
|
|
61
62
|
>
|
|
62
|
-
<ListboxButton class="ui-btn-sm ui-btn-secondary">
|
|
63
|
+
<ListboxButton :id="$useId('ss')" class="ui-btn-sm ui-btn-secondary">
|
|
63
64
|
{{ $t.i19sort }}
|
|
64
65
|
</ListboxButton>
|
|
65
66
|
<Fade>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Popover v-slot="{ open }">
|
|
3
3
|
<a :href="`/${categoryTree.slug}`" role="button">
|
|
4
|
-
<PopoverButton
|
|
4
|
+
<PopoverButton
|
|
5
|
+
:id="`PopB${categoryTree._id || $useId('c')}`"
|
|
6
|
+
class="outline-none"
|
|
7
|
+
>
|
|
5
8
|
<slot name="button" v-bind="{ open }" />
|
|
6
9
|
</PopoverButton>
|
|
7
10
|
</a>
|
|
@@ -65,13 +65,13 @@ export async function getStaticPaths() {
|
|
|
65
65
|
|
|
66
66
|
<!DOCTYPE html>
|
|
67
67
|
<html lang={routeContext?.lang.replace('_', '-')}>
|
|
68
|
-
{routeContext
|
|
69
|
-
|
|
68
|
+
{routeContext && <>
|
|
69
|
+
<Base>
|
|
70
70
|
<BaseHead slot="base-head" />
|
|
71
71
|
<PageHeader />
|
|
72
72
|
<Main />
|
|
73
73
|
<PageFooter />
|
|
74
74
|
</Base>
|
|
75
|
-
}
|
|
75
|
+
</>}
|
|
76
76
|
{loadError && <Fragment set:html={loadError.responseHTML} />}
|
|
77
77
|
</html>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { type RouteContext, loadRouteContext } from '@@sf/ssr-context';
|
|
3
3
|
import BaseHead from '@@sf/layouts/BaseHead.astro';
|
|
4
|
+
import { POSTS_PER_PAGE, countBlogPages } from './_blog-pages';
|
|
4
5
|
import Base from '~/layouts/Base.astro';
|
|
5
6
|
import PageHeader from '~/layouts/PageHeader.astro';
|
|
6
7
|
import PageFooter from '~/layouts/PageFooter.astro';
|
|
7
8
|
import BlogPosts, { type Props as BlogPostsProps } from '~/components/BlogPosts.vue';
|
|
8
|
-
import { POSTS_PER_PAGE, countBlogPages } from './_blog-pages';
|
|
9
9
|
|
|
10
10
|
let routeContext: RouteContext | undefined;
|
|
11
11
|
let loadError: any;
|
|
@@ -33,8 +33,9 @@ await Promise.all(
|
|
|
33
33
|
return new Promise((resolve) => {
|
|
34
34
|
getContent(`blog/${slug}`).then((content) => {
|
|
35
35
|
if (content) {
|
|
36
|
-
const {
|
|
37
|
-
|
|
36
|
+
const post = { ...content, slug };
|
|
37
|
+
delete post.markdown;
|
|
38
|
+
posts.push(post);
|
|
38
39
|
}
|
|
39
40
|
resolve(null);
|
|
40
41
|
});
|
|
@@ -53,7 +54,7 @@ export async function getStaticPaths() {
|
|
|
53
54
|
|
|
54
55
|
<!DOCTYPE html>
|
|
55
56
|
<html lang={routeContext.lang.replace('_', '-')}>
|
|
56
|
-
{routeContext &&
|
|
57
|
+
{routeContext && <>
|
|
57
58
|
<Base {metaTitle}>
|
|
58
59
|
<Fragment slot="base-head">
|
|
59
60
|
<BaseHead />
|
|
@@ -66,6 +67,6 @@ export async function getStaticPaths() {
|
|
|
66
67
|
</main>
|
|
67
68
|
<PageFooter />
|
|
68
69
|
</Base>
|
|
69
|
-
}
|
|
70
|
+
</>}
|
|
70
71
|
{loadError && <Fragment set:html={loadError.responseHTML} />}
|
|
71
72
|
</html>
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.1
|
|
19
|
-
"@cloudcommerce/firebase": "^2.1
|
|
20
|
-
"@cloudcommerce/modules": "^2.1
|
|
18
|
+
"@cloudcommerce/events": "^2.2.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.2.1",
|
|
20
|
+
"@cloudcommerce/modules": "^2.2.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"login": "cloudcommerce login",
|
|
16
16
|
"setup": "bash scripts/install.sh && cloudcommerce setup",
|
|
17
17
|
"setup:quiet": "cloudcommerce setup --no-deploy --no-commit",
|
|
18
|
-
"prepare": "husky
|
|
18
|
+
"prepare": "husky"
|
|
19
19
|
},
|
|
20
20
|
"lint-staged": {
|
|
21
21
|
"functions/ssr/**/*.{ts,vue,astro}": "eslint -c ./functions/ssr/.staged.eslintrc.cjs --fix",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cloudcommerce/cli": "^2.1
|
|
29
|
+
"@cloudcommerce/cli": "^2.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@cloudcommerce/eslint": "^2.1
|
|
33
|
-
"husky": "^
|
|
32
|
+
"@cloudcommerce/eslint": "^2.2.1",
|
|
33
|
+
"husky": "^9.0.7",
|
|
34
34
|
"lint-staged": "^15.2.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
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>",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"packages/!(storefront)/**/*.ts": "eslint --fix"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@commitlint/cli": "^18.
|
|
24
|
-
"@commitlint/config-conventional": "^18.
|
|
25
|
-
"@commitlint/rules": "^18.
|
|
26
|
-
"@types/node": "^18.19.
|
|
27
|
-
"dotenv": "^16.
|
|
23
|
+
"@commitlint/cli": "^18.6.0",
|
|
24
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
25
|
+
"@commitlint/rules": "^18.6.0",
|
|
26
|
+
"@types/node": "^18.19.10",
|
|
27
|
+
"dotenv": "^16.4.1",
|
|
28
28
|
"eslint": "^8.56.0",
|
|
29
|
-
"husky": "^
|
|
29
|
+
"husky": "^9.0.7",
|
|
30
30
|
"lint-staged": "^15.2.0",
|
|
31
31
|
"standard-version": "^9.5.0",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"typescript": "~5.2.2",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
36
|
"vite": "^5.0.11",
|
|
37
|
-
"vitest": "^1.2.
|
|
37
|
+
"vitest": "^1.2.2",
|
|
38
38
|
"zx": "^7.2.3",
|
|
39
|
-
"@cloudcommerce/eslint": "2.2.
|
|
39
|
+
"@cloudcommerce/eslint": "2.2.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
43
|
-
"postinstall": "husky
|
|
43
|
+
"postinstall": "husky && pnpm run -r prepare-monorepo",
|
|
44
44
|
"new-pkg": "bash scripts/new-package.sh",
|
|
45
45
|
"build": "turbo run build --filter='!./ecomplus-stores/**'",
|
|
46
46
|
"build:apps": "turbo run build --filter='./packages/{apps/**,modules}'",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
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.1",
|
|
30
|
-
"axios": "^1.6.
|
|
30
|
+
"axios": "^1.6.7",
|
|
31
31
|
"firebase-admin": "^12.0.0",
|
|
32
32
|
"firebase-functions": "^4.6.0"
|
|
33
33
|
},
|