cloudcommerce 0.36.2 → 0.37.1
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 +0 -1
- package/CHANGELOG.md +38 -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/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/package.json +5 -5
- package/packages/api/package.json +1 -1
- package/packages/apps/affilate-program/package.json +1 -1
- package/packages/apps/correios/package.json +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/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/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +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/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/package.json +4 -4
- package/packages/storefront/package.json +11 -10
- package/packages/storefront/src/helpers/sf-utils.ts +8 -5
- package/packages/storefront/src/lib/components/CarouselControl.vue +1 -1
- package/packages/storefront/src/lib/composables/use-search-modal.ts +90 -0
- package/packages/storefront/src/lib/composables/use-shop-header.ts +69 -1
- package/packages/storefront/src/lib/state/search-engine.ts +39 -13
- package/packages/storefront/src/lib/state/shopping-cart.ts +2 -1
- package/packages/storefront/src/lib/state/use-analytics.ts +27 -11
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/ecomplus-stores/monocard/.devcontainer/devcontainer.json +0 -30
- package/ecomplus-stores/monocard/.editorconfig +0 -13
- package/ecomplus-stores/monocard/.eslintrc.cjs +0 -3
- package/ecomplus-stores/monocard/.firebaserc +0 -5
- package/ecomplus-stores/monocard/.github/build-and-deploy +0 -1
- package/ecomplus-stores/monocard/.github/renovate.json +0 -5
- package/ecomplus-stores/monocard/.github/workflows/build-and-deploy.yml +0 -37
- package/ecomplus-stores/monocard/.github/workflows/calibreapp-image-actions.yml +0 -23
- package/ecomplus-stores/monocard/.gitpod.yml +0 -12
- package/ecomplus-stores/monocard/.idx/dev.nix +0 -24
- package/ecomplus-stores/monocard/.nvmrc +0 -1
- package/ecomplus-stores/monocard/.vscode/extensions.json +0 -8
- package/ecomplus-stores/monocard/.vscode/launch.json +0 -11
- package/ecomplus-stores/monocard/.vscode/settings.json +0 -13
- package/ecomplus-stores/monocard/LICENSE.md +0 -230
- package/ecomplus-stores/monocard/README.md +0 -31
- package/ecomplus-stores/monocard/SETUP.md +0 -129
- package/ecomplus-stores/monocard/SETUP.pt-BR.md +0 -129
- package/ecomplus-stores/monocard/functions/config.json +0 -3
- package/ecomplus-stores/monocard/functions/example.env +0 -10
- package/ecomplus-stores/monocard/functions/many/index.js +0 -14
- package/ecomplus-stores/monocard/functions/many/package.json +0 -22
- package/ecomplus-stores/monocard/functions/ssr/.eslintrc.cjs +0 -6
- package/ecomplus-stores/monocard/functions/ssr/astro.config.mjs +0 -4
- package/ecomplus-stores/monocard/functions/ssr/content/blog/.gitkeep +0 -0
- package/ecomplus-stores/monocard/functions/ssr/content/extra-pages/terms.json +0 -11
- package/ecomplus-stores/monocard/functions/ssr/content/extra-pages/trocas.json +0 -11
- package/ecomplus-stores/monocard/functions/ssr/content/layout.json +0 -52
- package/ecomplus-stores/monocard/functions/ssr/content/pages/home.json +0 -20
- package/ecomplus-stores/monocard/functions/ssr/content/pages/products.json +0 -18
- package/ecomplus-stores/monocard/functions/ssr/content/settings.json +0 -78
- package/ecomplus-stores/monocard/functions/ssr/index.js +0 -18
- package/ecomplus-stores/monocard/functions/ssr/package.json +0 -36
- package/ecomplus-stores/monocard/functions/ssr/public/admin/.gitkeep +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/lotties/img_1.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/lotties/img_1.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/lotties/phone-nfc.json +0 -1
- package/ecomplus-stores/monocard/functions/ssr/public/img/icon.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/large-icon.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/card-phone.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/devices.jpg +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/ecom-icon.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/edit-suit.jpg +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/favicon.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/icon.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/large-icon.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-arcelor-mittal.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-azul.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-banco-pan.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-brinks.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-mastercard.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-pfizer.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-prudential.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-unimed.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/mockup-editar.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/og-image.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/padronagem-tilada.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/qrcode-camera.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/sua-logo-aqui.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/robots.txt +0 -6
- package/ecomplus-stores/monocard/functions/ssr/scripts/build.sh +0 -14
- package/ecomplus-stores/monocard/functions/ssr/src/assets/card.css +0 -99
- package/ecomplus-stores/monocard/functions/ssr/src/assets/style.css +0 -79
- package/ecomplus-stores/monocard/functions/ssr/src/components/AccountMenu.vue +0 -97
- package/ecomplus-stores/monocard/functions/ssr/src/components/AccountPage.vue +0 -62
- package/ecomplus-stores/monocard/functions/ssr/src/components/Banner.vue +0 -59
- package/ecomplus-stores/monocard/functions/ssr/src/components/BannersGrid.astro +0 -25
- package/ecomplus-stores/monocard/functions/ssr/src/components/Breadcrumbs.astro +0 -44
- package/ecomplus-stores/monocard/functions/ssr/src/components/CartItem.vue +0 -64
- package/ecomplus-stores/monocard/functions/ssr/src/components/CartSidebar.vue +0 -69
- package/ecomplus-stores/monocard/functions/ssr/src/components/CasesGrid.astro +0 -49
- package/ecomplus-stores/monocard/functions/ssr/src/components/CheckoutPage.vue +0 -33
- package/ecomplus-stores/monocard/functions/ssr/src/components/Collapse.vue +0 -19
- package/ecomplus-stores/monocard/functions/ssr/src/components/DemoVideo.vue +0 -10
- package/ecomplus-stores/monocard/functions/ssr/src/components/DocDescription.vue +0 -28
- package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.vue +0 -286
- package/ecomplus-stores/monocard/functions/ssr/src/components/FeaturesSection.astro +0 -28
- package/ecomplus-stores/monocard/functions/ssr/src/components/FooterStamps.vue +0 -63
- package/ecomplus-stores/monocard/functions/ssr/src/components/ImagesGallery.vue +0 -154
- package/ecomplus-stores/monocard/functions/ssr/src/components/LoginForm.vue +0 -107
- package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +0 -20
- package/ecomplus-stores/monocard/functions/ssr/src/components/MonocardCustomizer.vue +0 -261
- package/ecomplus-stores/monocard/functions/ssr/src/components/PitchBar.vue +0 -61
- package/ecomplus-stores/monocard/functions/ssr/src/components/Prices.vue +0 -95
- package/ecomplus-stores/monocard/functions/ssr/src/components/ProductCard.vue +0 -117
- package/ecomplus-stores/monocard/functions/ssr/src/components/ProductDetails.vue +0 -122
- package/ecomplus-stores/monocard/functions/ssr/src/components/ProductShelf.vue +0 -57
- package/ecomplus-stores/monocard/functions/ssr/src/components/ProductSpecifications.vue +0 -42
- package/ecomplus-stores/monocard/functions/ssr/src/components/SearchModal.vue +0 -6
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopFooter.vue +0 -71
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeader.vue +0 -137
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeaderMenu.vue +0 -92
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenav.vue +0 -64
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenavCategory.vue +0 -77
- package/ecomplus-stores/monocard/functions/ssr/src/components/SkuSelector.vue +0 -58
- package/ecomplus-stores/monocard/functions/ssr/src/env.d.ts +0 -13
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Base.astro +0 -15
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/PageFooter.astro +0 -53
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/PageHeader.astro +0 -35
- package/ecomplus-stores/monocard/functions/ssr/src/main/Fallback.astro +0 -10
- package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +0 -95
- package/ecomplus-stores/monocard/functions/ssr/src/main/Sections.astro +0 -52
- package/ecomplus-stores/monocard/functions/ssr/src/main/Wildcard.astro +0 -18
- package/ecomplus-stores/monocard/functions/ssr/src/pages/[...slug].astro +0 -42
- package/ecomplus-stores/monocard/functions/ssr/src/pages/_vue.ts +0 -10
- package/ecomplus-stores/monocard/functions/ssr/src/pages/app/account.astro +0 -34
- package/ecomplus-stores/monocard/functions/ssr/src/pages/app/index.astro +0 -62
- package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +0 -52
- package/ecomplus-stores/monocard/functions/ssr/src/pages/index.astro +0 -32
- package/ecomplus-stores/monocard/functions/ssr/src/pages/~fallback.astro +0 -23
- package/ecomplus-stores/monocard/functions/ssr/src/scripts/InlineScripts.astro +0 -10
- package/ecomplus-stores/monocard/functions/ssr/tailwind.config.cjs +0 -18
- package/ecomplus-stores/monocard/functions/ssr/tsconfig.json +0 -12
- package/ecomplus-stores/monocard/functions/ssr/uno.config.cjs +0 -5
- package/ecomplus-stores/monocard/functions/with-apps/index.js +0 -12
- package/ecomplus-stores/monocard/functions/with-apps/package.json +0 -22
- package/ecomplus-stores/monocard/package.json +0 -31
- package/ecomplus-stores/monocard/scripts/install.sh +0 -24
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
“Commons Clause” License Condition v1.0
|
|
2
|
-
|
|
3
|
-
The Software is provided to you by the Licensor under the
|
|
4
|
-
License, as defined below, subject to the following condition.
|
|
5
|
-
|
|
6
|
-
Without limiting other conditions in the License, the grant
|
|
7
|
-
of rights under the License will not include, and the License
|
|
8
|
-
does not grant to you, the right to Sell the Software.
|
|
9
|
-
|
|
10
|
-
For purposes of the foregoing, “Sell” means practicing any or
|
|
11
|
-
all of the rights granted to you under the License to provide
|
|
12
|
-
to third parties, for a fee or other consideration (including
|
|
13
|
-
without limitation fees for hosting or consulting/ support
|
|
14
|
-
services related to the Software), a product or service whose
|
|
15
|
-
value derives, entirely or substantially, from the functionality
|
|
16
|
-
of the Software. Any license notice or attribution required by
|
|
17
|
-
the License must also include this Commons Clause License
|
|
18
|
-
Condition notice.
|
|
19
|
-
|
|
20
|
-
Software: E-Com Plus Open Cloud Commerce
|
|
21
|
-
|
|
22
|
-
License: Apache 2.0 with Commons Clause
|
|
23
|
-
|
|
24
|
-
Licensor: E-Com Club Softwares para E-commerce
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
---------------------------------------------------------------------
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Apache License
|
|
31
|
-
Version 2.0, January 2004
|
|
32
|
-
http://www.apache.org/licenses/
|
|
33
|
-
|
|
34
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
35
|
-
|
|
36
|
-
1. Definitions.
|
|
37
|
-
|
|
38
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
39
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
40
|
-
|
|
41
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
42
|
-
the copyright owner that is granting the License.
|
|
43
|
-
|
|
44
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
45
|
-
other entities that control, are controlled by, or are under common
|
|
46
|
-
control with that entity. For the purposes of this definition,
|
|
47
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
48
|
-
direction or management of such entity, whether by contract or
|
|
49
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
50
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
51
|
-
|
|
52
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
53
|
-
exercising permissions granted by this License.
|
|
54
|
-
|
|
55
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
56
|
-
including but not limited to software source code, documentation
|
|
57
|
-
source, and configuration files.
|
|
58
|
-
|
|
59
|
-
"Object" form shall mean any form resulting from mechanical
|
|
60
|
-
transformation or translation of a Source form, including but
|
|
61
|
-
not limited to compiled object code, generated documentation,
|
|
62
|
-
and conversions to other media types.
|
|
63
|
-
|
|
64
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
65
|
-
Object form, made available under the License, as indicated by a
|
|
66
|
-
copyright notice that is included in or attached to the work
|
|
67
|
-
(an example is provided in the Appendix below).
|
|
68
|
-
|
|
69
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
70
|
-
form, that is based on (or derived from) the Work and for which the
|
|
71
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
72
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
73
|
-
of this License, Derivative Works shall not include works that remain
|
|
74
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
75
|
-
the Work and Derivative Works thereof.
|
|
76
|
-
|
|
77
|
-
"Contribution" shall mean any work of authorship, including
|
|
78
|
-
the original version of the Work and any modifications or additions
|
|
79
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
80
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
81
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
82
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
83
|
-
means any form of electronic, verbal, or written communication sent
|
|
84
|
-
to the Licensor or its representatives, including but not limited to
|
|
85
|
-
communication on electronic mailing lists, source code control systems,
|
|
86
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
87
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
88
|
-
excluding communication that is conspicuously marked or otherwise
|
|
89
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
90
|
-
|
|
91
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
92
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
93
|
-
subsequently incorporated within the Work.
|
|
94
|
-
|
|
95
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
96
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
97
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
98
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
99
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
100
|
-
Work and such Derivative Works in Source or Object form.
|
|
101
|
-
|
|
102
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
103
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
104
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
105
|
-
(except as stated in this section) patent license to make, have made,
|
|
106
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
107
|
-
where such license applies only to those patent claims licensable
|
|
108
|
-
by such Contributor that are necessarily infringed by their
|
|
109
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
110
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
111
|
-
institute patent litigation against any entity (including a
|
|
112
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
113
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
114
|
-
or contributory patent infringement, then any patent licenses
|
|
115
|
-
granted to You under this License for that Work shall terminate
|
|
116
|
-
as of the date such litigation is filed.
|
|
117
|
-
|
|
118
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
119
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
120
|
-
modifications, and in Source or Object form, provided that You
|
|
121
|
-
meet the following conditions:
|
|
122
|
-
|
|
123
|
-
(a) You must give any other recipients of the Work or
|
|
124
|
-
Derivative Works a copy of this License; and
|
|
125
|
-
|
|
126
|
-
(b) You must cause any modified files to carry prominent notices
|
|
127
|
-
stating that You changed the files; and
|
|
128
|
-
|
|
129
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
130
|
-
that You distribute, all copyright, patent, trademark, and
|
|
131
|
-
attribution notices from the Source form of the Work,
|
|
132
|
-
excluding those notices that do not pertain to any part of
|
|
133
|
-
the Derivative Works; and
|
|
134
|
-
|
|
135
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
136
|
-
distribution, then any Derivative Works that You distribute must
|
|
137
|
-
include a readable copy of the attribution notices contained
|
|
138
|
-
within such NOTICE file, excluding those notices that do not
|
|
139
|
-
pertain to any part of the Derivative Works, in at least one
|
|
140
|
-
of the following places: within a NOTICE text file distributed
|
|
141
|
-
as part of the Derivative Works; within the Source form or
|
|
142
|
-
documentation, if provided along with the Derivative Works; or,
|
|
143
|
-
within a display generated by the Derivative Works, if and
|
|
144
|
-
wherever such third-party notices normally appear. The contents
|
|
145
|
-
of the NOTICE file are for informational purposes only and
|
|
146
|
-
do not modify the License. You may add Your own attribution
|
|
147
|
-
notices within Derivative Works that You distribute, alongside
|
|
148
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
149
|
-
that such additional attribution notices cannot be construed
|
|
150
|
-
as modifying the License.
|
|
151
|
-
|
|
152
|
-
You may add Your own copyright statement to Your modifications and
|
|
153
|
-
may provide additional or different license terms and conditions
|
|
154
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
155
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
156
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
157
|
-
the conditions stated in this License.
|
|
158
|
-
|
|
159
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
160
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
161
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
162
|
-
this License, without any additional terms or conditions.
|
|
163
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
164
|
-
the terms of any separate license agreement you may have executed
|
|
165
|
-
with Licensor regarding such Contributions.
|
|
166
|
-
|
|
167
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
168
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
169
|
-
except as required for reasonable and customary use in describing the
|
|
170
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
171
|
-
|
|
172
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
173
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
174
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
175
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
176
|
-
implied, including, without limitation, any warranties or conditions
|
|
177
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
178
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
179
|
-
appropriateness of using or redistributing the Work and assume any
|
|
180
|
-
risks associated with Your exercise of permissions under this License.
|
|
181
|
-
|
|
182
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
183
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
184
|
-
unless required by applicable law (such as deliberate and grossly
|
|
185
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
186
|
-
liable to You for damages, including any direct, indirect, special,
|
|
187
|
-
incidental, or consequential damages of any character arising as a
|
|
188
|
-
result of this License or out of the use or inability to use the
|
|
189
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
190
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
191
|
-
other commercial damages or losses), even if such Contributor
|
|
192
|
-
has been advised of the possibility of such damages.
|
|
193
|
-
|
|
194
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
195
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
196
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
197
|
-
or other liability obligations and/or rights consistent with this
|
|
198
|
-
License. However, in accepting such obligations, You may act only
|
|
199
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
200
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
201
|
-
defend, and hold each Contributor harmless for any liability
|
|
202
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
203
|
-
of your accepting any such warranty or additional liability.
|
|
204
|
-
|
|
205
|
-
END OF TERMS AND CONDITIONS
|
|
206
|
-
|
|
207
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
208
|
-
|
|
209
|
-
To apply the Apache License to your work, attach the following
|
|
210
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
211
|
-
replaced with your own identifying information. (Don't include
|
|
212
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
213
|
-
comment syntax for the file format. We also recommend that a
|
|
214
|
-
file or class name and description of purpose be included on the
|
|
215
|
-
same "printed page" as the copyright notice for easier
|
|
216
|
-
identification within third-party archives.
|
|
217
|
-
|
|
218
|
-
Copyright 2021 E-Com Club Softwares para E-commerce
|
|
219
|
-
|
|
220
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
221
|
-
you may not use this file except in compliance with the License.
|
|
222
|
-
You may obtain a copy of the License at
|
|
223
|
-
|
|
224
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
225
|
-
|
|
226
|
-
Unless required by applicable law or agreed to in writing, software
|
|
227
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
228
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
229
|
-
See the License for the specific language governing permissions and
|
|
230
|
-
limitations under the License.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Store
|
|
2
|
-
|
|
3
|
-
[Cloud Commerce](https://github.com/ecomplus/cloud-commerce): the new Store template
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
[:us: First deployment and setup](./SETUP.md)
|
|
8
|
-
|
|
9
|
-
[:brazil: Primeiro deploy e configuração](./SETUP.pt-BR.md)
|
|
10
|
-
|
|
11
|
-
## Local development
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm i
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
> **Note**
|
|
18
|
-
> Check VS Code (highly) recommend extensions in _store/.vscode/extensions.json_
|
|
19
|
-
|
|
20
|
-
### Storefront
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm run dev
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
It starts serving the site at http://localhost:3000/.
|
|
27
|
-
|
|
28
|
-
Edit your store source in _functions/ssr_:
|
|
29
|
-
- _src_: pages, components, styles and scripts sources;
|
|
30
|
-
- _content_: JSON and Markdown content (editable with git-based CMS);
|
|
31
|
-
- _public_: images and not-parsed static assets;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
# Store
|
|
2
|
-
|
|
3
|
-
[Cloud Commerce](https://github.com/ecomplus/cloud-commerce): the new Store template
|
|
4
|
-
|
|
5
|
-
[:brazil: Tradução em português](./SETUP.pt-BR.md)
|
|
6
|
-
|
|
7
|
-
## Getting started
|
|
8
|
-
|
|
9
|
-
1. Start creating new project on [Firebase console](https://console.firebase.google.com/):
|
|
10
|
-
- Set a nice project name (ID) and remember it;
|
|
11
|
-
- Disable (recommended) Google Analytics for Firebase, will not be used by default;
|
|
12
|
-
|
|
13
|
-
2. Go to _Creation > Firestore Database_ page (on sidebar) and _Create database_:
|
|
14
|
-
- Just bypass with default production mode and rules;
|
|
15
|
-
- Select region `us-east4` (recommended, or multi-region `nam5 (us-central)`);
|
|
16
|
-
|
|
17
|
-
3. Go to _Creation > Authentication_ and click _Get started_:
|
|
18
|
-
- Click _Native providers > Email/password_ and enable _Email link (login without password)_;
|
|
19
|
-
- Optionally, add other provides by _Smartphone_ (SMS, generates additional costs) and/or social media;
|
|
20
|
-
|
|
21
|
-
4. Go to :gear: _> Project configurations_ e edit:
|
|
22
|
-
- _Default location for GCP resources_: Same Firestore region (`us-east4`);
|
|
23
|
-
- _Public settings > Publicly displayed name_: Your store name;
|
|
24
|
-
- _Public settings > Support email_ (optional);
|
|
25
|
-
- Under _Your apps_ create a new Web app:
|
|
26
|
-
+ Re-enter the store name and enable Firebase Hosting for the new app;
|
|
27
|
-
+ Copy only the value of the `firebaseConfig` object and replace at `functions/ssr/src/scripts/InlineScripts.astro`;
|
|
28
|
-
+ Just click to continue in the next steps until confirmation and return to the console;
|
|
29
|
-
|
|
30
|
-
5. Firebase free plan doesn't support sending external HTTP requests, so you'll need to upgrade to _Blaze_ (on demand) plan;
|
|
31
|
-
|
|
32
|
-
6. [Use this template](https://github.com/ecomplus/store/generate) to generate a new repository for your store;
|
|
33
|
-
|
|
34
|
-
Proceed with:
|
|
35
|
-
- [Better way using command line](#first-deploy-on-cli)
|
|
36
|
-
- [Only in browser](#browser-only-setup) (may be easier but less safe, not recommended)
|
|
37
|
-
|
|
38
|
-
#### First deploy on CLI
|
|
39
|
-
|
|
40
|
-
7. Setup and first deploy from your terminal with [Firebase CLI](https://firebase.google.com/docs/cli):
|
|
41
|
-
```bash
|
|
42
|
-
# Install `firebase-tools` and login
|
|
43
|
-
npm install -g firebase-tools && firebase login
|
|
44
|
-
```
|
|
45
|
-
```bash
|
|
46
|
-
# Clone your new store repository
|
|
47
|
-
git clone git@github.com:{gh-user}/{new-store}.git
|
|
48
|
-
cd {new-store}
|
|
49
|
-
npm i
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
<details open>
|
|
53
|
-
<summary>With <a href="https://cloud.google.com/sdk/docs/install">gcloud CLI</a> (optional) installed</summary>
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# Run project configuration and deploy on GitHub Actions
|
|
57
|
-
FIREBASE_PROJECT_ID={project-id} npm run setup
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
> **Note**
|
|
61
|
-
> Account key created automatically with only required permissions using gcloud CLI (skip steps 6 and 7).
|
|
62
|
-
|
|
63
|
-
</details>
|
|
64
|
-
|
|
65
|
-
<details>
|
|
66
|
-
<summary>Without gcloud CLI</summary>
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
# Run project configuration and first deploy
|
|
70
|
-
FIREBASE_PROJECT_ID={project-id} npm run setup -- --no-gcloud
|
|
71
|
-
npm run deploy
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
7. [Create a service account](https://console.cloud.google.com/iam-admin/serviceaccounts) for your Firebase project directly on Google Cloud Platform:
|
|
75
|
-
- Name it _Cloud Commerce GH Actions (YOUR REPOSITORY)_;
|
|
76
|
-
- Describe it _A service account with permission to deploy Cloud Commerce from the GitHub repository to Firebase_;
|
|
77
|
-
- Continue and select the following roles to the service account:
|
|
78
|
-
1. _Firebase Admin_
|
|
79
|
-
2. _API Keys Viewer_
|
|
80
|
-
3. _Cloud Run Viewer_
|
|
81
|
-
4. _Cloud Functions Admin_
|
|
82
|
-
5. _Artifact Registry Admin_
|
|
83
|
-
6. _App Engine Creator_
|
|
84
|
-
7. _App Engine Admin_
|
|
85
|
-
8. _Cloud Scheduler Admin_
|
|
86
|
-
8. _Service Account User_
|
|
87
|
-
|
|
88
|
-
8. Back in the service accounts list, click the 3 dots (actions) and select _Manage keys_, generate and download a JSON key for the created account;
|
|
89
|
-
|
|
90
|
-
</details>
|
|
91
|
-
|
|
92
|
-
9. Set the following secrets to your GitHub repository (_Settings > Secrets > Actions_):
|
|
93
|
-
- `FIREBASE_SERVICE_ACCOUNT`: Paste the generated Google Cloud key JSON
|
|
94
|
-
- `ECOM_AUTHENTICATION_ID`: Get from CLI setup output
|
|
95
|
-
- `ECOM_API_KEY`: Get from CLI setup output
|
|
96
|
-
|
|
97
|
-
:checkered_flag: :checkered_flag: :checkered_flag: **All done, congrats!**
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
#### Browser-only setup
|
|
102
|
-
|
|
103
|
-
> **Warning**
|
|
104
|
-
> This configuration option is less secure, we recommend [first deploy on CLI](#first-deploy-on-cli) instead.
|
|
105
|
-
|
|
106
|
-
7. [Create a service account](https://console.cloud.google.com/iam-admin/serviceaccounts) for your Firebase project directly on Google Cloud Platform:
|
|
107
|
-
- Name it _Cloud Commerce GH Actions (YOUR REPOSITORY)_;
|
|
108
|
-
- Describe it _A service account with ALL permissions to deploy Cloud Commerce from the GitHub to Firebase_;
|
|
109
|
-
- Continue and select the role _Quick access > Basic > Proprietary_;
|
|
110
|
-
|
|
111
|
-
8. Back in the service accounts list, click the 3 dots (actions) and select _Manage keys_, generate and download a JSON key for the created account;
|
|
112
|
-
|
|
113
|
-
9. Set the following secrets to your GitHub repository (_Settings > Secrets > Actions_):
|
|
114
|
-
- `FIREBASE_SERVICE_ACCOUNT`: Paste the generated Google Cloud key JSON
|
|
115
|
-
- `ECOM_STORE_ID`: Copy your _Store ID_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
116
|
-
- `ECOM_AUTHENTICATION_ID`: Copy your _Authentication ID_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
117
|
-
- `ECOM_API_KEY`: Copy your _API Key_ on the [E-Com Plus admin](https://ecomplus.app/)
|
|
118
|
-
|
|
119
|
-
## Production best practices
|
|
120
|
-
|
|
121
|
-
Firebase Hosting CDN is fast, but [doesn't support cache _Stale-While-Revalidate_](https://firebase.google.com/docs/hosting/manage-cache) ([context and feature request](https://firebase.uservoice.com/forums/948424-general/suggestions/47179505-hosting-cdn-cache-stale-while-revalidate)) and Hosting proxy + Cloud Functions (even without cold starts) will never take less than 1s (TTFB will probably take ~2s). We like "instant" responses but want to keep dynamic server rendered views (for less client-side JS), so stale caching is a must and so we need another CDN layer on production.
|
|
122
|
-
|
|
123
|
-
[Cloudflare](https://www.cloudflare.com/) Worker is recommended on top of Firebase Hosting + Functions for production stores (when pointing the custom domain) with the following configuration:
|
|
124
|
-
|
|
125
|
-
- SSL full;
|
|
126
|
-
- Page rule for \*/\* (any route) with _Cache Level: Cache Everything_;
|
|
127
|
-
- [_Cache Reserve_](https://www.cloudflare.com/products/cache-reserve/) with Tiered Cache;
|
|
128
|
-
- DNS **proxied** A entry pointing to your Firebase Hosting IP;
|
|
129
|
-
- Worker _swr_ script with source (_quick edit_) copied from [`cloud-commerce/packages/ssr/cloudflare/swr-worker.js`](https://raw.githubusercontent.com/ecomplus/cloud-commerce/main/packages/ssr/cloudflare/swr-worker.js).
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
# Store
|
|
2
|
-
|
|
3
|
-
[Cloud Commerce](https://github.com/ecomplus/cloud-commerce): template para nova loja
|
|
4
|
-
|
|
5
|
-
[:us: English version](./SETUP.md)
|
|
6
|
-
|
|
7
|
-
## Começando
|
|
8
|
-
|
|
9
|
-
1. Comece criando um novo projeto no [Firebase console](https://console.firebase.google.com/):
|
|
10
|
-
- Insira um bom nome (ID) para o projeto e lembre-se dele;
|
|
11
|
-
- Desative (recomendado) Google Analytics for Firebase, não será utilizado por padrão;
|
|
12
|
-
|
|
13
|
-
2. Com o projeto criado, vá para _Criação > Firestore Database_ (menu lateral) e clique em _Criar banco de dados_:
|
|
14
|
-
- Pule com o modo e as regras de produção padrão;
|
|
15
|
-
- Selecione a região `us-east4` ([recomendado](https://github.com/ecomplus/cloud-commerce/issues/164));
|
|
16
|
-
|
|
17
|
-
3. Vá para _Criação > Authentication_ e clique em _Vamos começar_:
|
|
18
|
-
- Clique em _Provedores nativos > E-mail/senha_ e ative _Link do e-mail (login sem senha)_;
|
|
19
|
-
- Opcionalmente, adicione outros fornecedores por _Smartphone_ (SMS, gera custos adicionais) e/ou redes sociais;
|
|
20
|
-
|
|
21
|
-
4. Vá para :gear: _> Configurações do projeto_ e edite:
|
|
22
|
-
- _Local padrão dos recursos do GCP_: mesma região do Firestore (`us-east4`);
|
|
23
|
-
- _Configurações públicas > Nome exibido ao público_: O nome da sua loja;
|
|
24
|
-
- _Configurações públicas > E-mail para suporte_ (opcional);
|
|
25
|
-
- Em _Seus aplicativos_ crie um app Web:
|
|
26
|
-
+ Insira novamente o nome da loja e ativa Firebase Hosting para o novo app;
|
|
27
|
-
+ Copie apenas o valor do objeto `firebaseConfig` e substitua em `functions/ssr/src/scripts/InlineScripts.astro`;
|
|
28
|
-
+ Apenas clique em prosseguir nos próximos passos até confirmar e voltar para o console;
|
|
29
|
-
|
|
30
|
-
5. O plano gratuito do Firebase não é compatível com o envio de solicitações HTTP externas, portanto você precisará fazer upgrade para o plano _Blaze_ (sob demanda) no canto inferior esquerdo do console do Firebase;
|
|
31
|
-
|
|
32
|
-
6. [Use esse template](https://github.com/ecomplus/store/generate) para gerar um novo repositório para sua loja;
|
|
33
|
-
|
|
34
|
-
Prossiga com:
|
|
35
|
-
- [Melhor maneira usando a linha de comando](#primeiro-deploy-em-cli)
|
|
36
|
-
- [Apenas no navegador](#setup-somente-do-navegador) (pode ser mais fácil mas menos seguro, não recomendado)
|
|
37
|
-
|
|
38
|
-
#### Primeiro deploy em CLI
|
|
39
|
-
|
|
40
|
-
7. Setup e primeiro deploy pelo terminal com [Firebase CLI](https://firebase.google.com/docs/cli):
|
|
41
|
-
```bash
|
|
42
|
-
# Install `firebase-tools` and login
|
|
43
|
-
npm install -g firebase-tools && firebase login
|
|
44
|
-
```
|
|
45
|
-
```bash
|
|
46
|
-
# Clone your new store repository
|
|
47
|
-
git clone git@github.com:{gh-user}/{new-store}.git
|
|
48
|
-
cd {new-store}
|
|
49
|
-
npm i
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
<details open>
|
|
53
|
-
<summary>Com <a href="https://cloud.google.com/sdk/docs/install">gcloud CLI</a> (opcional) instalado</summary>
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# Run project configuration and deploy on GitHub Actions
|
|
57
|
-
FIREBASE_PROJECT_ID={project-id} npm run setup
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
> **Note**
|
|
61
|
-
> Chave de conta criada automaticamente apenas com as permissões necessárias usando gcloud CLI (pule as etapas 6 e 7).
|
|
62
|
-
|
|
63
|
-
</details>
|
|
64
|
-
|
|
65
|
-
<details>
|
|
66
|
-
<summary>Sem gcloud CLI</summary>
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
# Run project configuration and first deploy
|
|
70
|
-
FIREBASE_PROJECT_ID={project-id} npm run setup -- --no-gcloud
|
|
71
|
-
npm run deploy
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
7. [Crie uma conta de serviço](https://console.cloud.google.com/iam-admin/serviceaccounts) para seu projeto do Firebase diretamente no Google Cloud Platform:
|
|
75
|
-
- Nomeie _Cloud Commerce GH Actions (YOUR REPOSITORY)_;
|
|
76
|
-
- Descreva como _A service account with permission to deploy Cloud Commerce from the GitHub repository to Firebase_;
|
|
77
|
-
- Continue e selecione as seguintes permissões:
|
|
78
|
-
1. _Administrador do Firebase_
|
|
79
|
-
2. _Leitor de chaves de API_
|
|
80
|
-
3. _Leitor do Cloud Run_
|
|
81
|
-
4. _Administrador do Cloud Functions_
|
|
82
|
-
5. _Administrador do Artifact Registry_
|
|
83
|
-
6. _Criador do App Engine_
|
|
84
|
-
7. _Administrador do App Engine_
|
|
85
|
-
8. _Administrador do Cloud Scheduler_
|
|
86
|
-
9. _Usuário da conta de serviço_
|
|
87
|
-
|
|
88
|
-
8. De volta na lista de contas de serviço, clique nos 3 pontos (ações) and selecione _Gerenciar chaves_, crie e faça o download de uma nova chave JSON para a conta recém criada;
|
|
89
|
-
|
|
90
|
-
</details>
|
|
91
|
-
|
|
92
|
-
9. Configure os seguintes secrets no seu repositório do GitHub (_Settings > Secrets > Actions_):
|
|
93
|
-
- `FIREBASE_SERVICE_ACCOUNT`: Cole o JSON da chave do Google Cloud gerada
|
|
94
|
-
- `ECOM_AUTHENTICATION_ID`: Pegue no output do setup no CLI
|
|
95
|
-
- `ECOM_API_KEY`: Pegue no output do setup no CLI
|
|
96
|
-
|
|
97
|
-
:checkered_flag: :checkered_flag: :checkered_flag: **Tudo pronto, boa!**
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
#### Setup somente do navegador
|
|
102
|
-
|
|
103
|
-
> **Warning**
|
|
104
|
-
> Essa opção de configuração é menos segura, recomendamos o [primeiro deploy em CLI](#primeiro-deploy-em-cli).
|
|
105
|
-
|
|
106
|
-
7. [Crie uma conta de serviço](https://console.cloud.google.com/iam-admin/serviceaccounts) para seu projeto do Firebase diretamente no Google Cloud Platform:
|
|
107
|
-
- Nomeie _Cloud Commerce GH Actions (YOUR REPOSITORY)_;
|
|
108
|
-
- Descreva como _A service account with ALL permissions to deploy Cloud Commerce from the GitHub to Firebase_;
|
|
109
|
-
- Continue e selecione a permissão _Acesso rápido > Básico > Proprietário_;
|
|
110
|
-
|
|
111
|
-
8. Back in the service accounts list, click the 3 dots (actions) and select _Manage keys_, generate and download a JSON key for the created account;
|
|
112
|
-
|
|
113
|
-
9. Configure os seguintes secrets no seu repositório do GitHub (_Settings > Secrets > Actions_):
|
|
114
|
-
- `FIREBASE_SERVICE_ACCOUNT`: Cole o JSON da chave do Google Cloud gerada
|
|
115
|
-
- `ECOM_STORE_ID`: Copie seu _Store ID_ no [admin da E-Com Plus](https://ecomplus.app/)
|
|
116
|
-
- `ECOM_AUTHENTICATION_ID`: Copie seu _Authentication ID_ no [admin da E-Com Plus](https://ecomplus.app/)
|
|
117
|
-
- `ECOM_API_KEY`: Copie seu _API Key_ no [admin da E-Com Plus](https://ecomplus.app/)
|
|
118
|
-
|
|
119
|
-
## Práticas recomendadas de produção
|
|
120
|
-
|
|
121
|
-
O CDN do Firebase Hosting é rápido, mas [não suporta _Stale-While-Revalidate_](https://firebase.google.com/docs/hosting/manage-cache) ([contexto e feature request](https://firebase.uservoice.com/forums/948424-general/suggestions/47179505-hosting-cdn-cache-stale-while-revalidate)) e Hosting proxy + Cloud Functions (mesmo sem cold starts) nunca leva menos que 1s (TTFB provavelmente vai bater ~2s). Nós gostamos de respostas "instantâneas" mas queremos manter views dinâmicas renderizadas em servidor (por menos client-side JS), então stale caching é necessário e portanto precisamos de outra camada de CDN em produção.
|
|
122
|
-
|
|
123
|
-
[Cloudflare](https://www.cloudflare.com/) Worker é recomendado na frente do Firebase Hosting + Functions para lojas em produção (quando apontando o domínio próprio) com as configurações abaixo:
|
|
124
|
-
|
|
125
|
-
- SSL full;
|
|
126
|
-
- Page rule para \*/\* (qualquer rota) com _Cache Level: Cache Everything_;
|
|
127
|
-
- [_Cache Reserve_](https://www.cloudflare.com/products/cache-reserve/) com Tiered Cache;
|
|
128
|
-
- Entrada A no DNS com **proxy ativo** apontando para o IP do seu projeto no Firebase Hosting;
|
|
129
|
-
- Worker _swr_ com o código (_quick edit_) copiado de [`cloud-commerce/packages/ssr/cloudflare/swr-worker.js`](https://raw.githubusercontent.com/ecomplus/cloud-commerce/main/packages/ssr/cloudflare/swr-worker.js).
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Get the store credentials with `npm run setup` from project root
|
|
2
|
-
ECOM_AUTHENTICATION_ID=
|
|
3
|
-
ECOM_API_KEY=
|
|
4
|
-
|
|
5
|
-
# Optional if `storeId` is defined in config.json
|
|
6
|
-
# Automatically set on CLI setup
|
|
7
|
-
ECOM_STORE_ID=
|
|
8
|
-
|
|
9
|
-
# https://github.com/settings/tokens
|
|
10
|
-
GITHUB_TOKEN=
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import '@cloudcommerce/firebase/lib/init';
|
|
2
|
-
import config from '@cloudcommerce/firebase/config';
|
|
3
|
-
import mergeConfig from './config.json' assert { type: 'json' };
|
|
4
|
-
|
|
5
|
-
config.set({
|
|
6
|
-
...mergeConfig,
|
|
7
|
-
hello: 'from store',
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export * from '@cloudcommerce/firebase';
|
|
11
|
-
|
|
12
|
-
export * from '@cloudcommerce/passport/firebase';
|
|
13
|
-
|
|
14
|
-
export * from '@cloudcommerce/feeds/firebase';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "monocard-many",
|
|
3
|
-
"private": true,
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "echo '>> Run build from repository root'",
|
|
7
|
-
"serve": "firebase emulators:start --only functions",
|
|
8
|
-
"shell": "firebase functions:shell",
|
|
9
|
-
"start": "npm run shell",
|
|
10
|
-
"deploy": "firebase deploy --only functions",
|
|
11
|
-
"logs": "firebase functions:log"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": "18"
|
|
15
|
-
},
|
|
16
|
-
"main": "index.js",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.33.4",
|
|
19
|
-
"@cloudcommerce/firebase": "^0.33.4",
|
|
20
|
-
"@cloudcommerce/passport": "^0.33.4"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
File without changes
|