cloudcommerce 0.1.3 → 0.1.4
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 +14 -0
- package/ecomplus-stores/monocard/functions/core/package.json +1 -1
- package/ecomplus-stores/monocard/functions/events/package.json +2 -2
- package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
- package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
- package/ecomplus-stores/monocard/functions/ssr/package.json +6 -6
- package/ecomplus-stores/monocard/package.json +1 -1
- package/ecomplus-stores/tia-sonia/functions/core/package.json +1 -1
- package/ecomplus-stores/tia-sonia/functions/events/package.json +2 -2
- package/ecomplus-stores/tia-sonia/functions/modules/package.json +2 -2
- package/ecomplus-stores/tia-sonia/functions/passport/package.json +2 -2
- package/ecomplus-stores/tia-sonia/functions/ssr/content/settings.json +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/package.json +9 -7
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/fimdeano1920x736.jpg +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/TheHeader.vue +103 -9
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderBarLink.vue +5 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderButtonLink.vue +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderNav.vue +7 -6
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Base.astro +11 -4
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Pages.astro +2 -2
- package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Home.astro +7 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/tailwind.config.cjs +9 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/uno.config.cjs +3 -1
- package/ecomplus-stores/tia-sonia/package.json +1 -1
- package/package.json +2 -1
- package/packages/api/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/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/frenet/events.js +1 -0
- package/packages/apps/frenet/lib/frenet-events.d.ts +6 -0
- package/packages/apps/frenet/lib/frenet-events.js +19 -0
- package/packages/apps/frenet/lib/frenet-events.js.map +1 -0
- package/packages/apps/frenet/lib/functions-lib/database.d.ts +18 -0
- package/packages/apps/frenet/lib/functions-lib/database.js +128 -0
- package/packages/apps/frenet/lib/functions-lib/database.js.map +1 -0
- package/packages/apps/frenet/lib/functions-lib/events-to-frenet.d.ts +3 -0
- package/packages/apps/frenet/lib/functions-lib/events-to-frenet.js +48 -0
- package/packages/apps/frenet/lib/functions-lib/events-to-frenet.js.map +1 -0
- package/packages/apps/frenet/lib/functions-lib/fetch-tracking-code.d.ts +2 -0
- package/packages/apps/frenet/lib/functions-lib/fetch-tracking-code.js +19 -0
- package/packages/apps/frenet/lib/functions-lib/fetch-tracking-code.js.map +1 -0
- package/packages/apps/frenet/lib/functions-lib/remove-delivered.d.ts +2 -0
- package/packages/apps/frenet/lib/functions-lib/remove-delivered.js +30 -0
- package/packages/apps/frenet/lib/functions-lib/remove-delivered.js.map +1 -0
- package/packages/apps/frenet/lib/functions-lib/tracking-codes.d.ts +2 -0
- package/packages/apps/frenet/lib/functions-lib/tracking-codes.js +138 -0
- package/packages/apps/frenet/lib/functions-lib/tracking-codes.js.map +1 -0
- package/packages/apps/frenet/lib/functions-lib/update-fulfillments.d.ts +5 -0
- package/packages/apps/frenet/lib/functions-lib/update-fulfillments.js +49 -0
- package/packages/apps/frenet/lib/functions-lib/update-fulfillments.js.map +1 -0
- package/packages/apps/frenet/package.json +11 -3
- package/packages/apps/frenet/src/frenet-events.ts +25 -0
- package/packages/apps/frenet/src/functions-lib/database.ts +159 -0
- package/packages/apps/frenet/src/functions-lib/events-to-frenet.ts +62 -0
- package/packages/apps/frenet/src/functions-lib/fetch-tracking-code.ts +22 -0
- package/packages/apps/frenet/src/functions-lib/remove-delivered.ts +31 -0
- package/packages/apps/frenet/src/functions-lib/tracking-codes.ts +170 -0
- package/packages/apps/frenet/src/functions-lib/update-fulfillments.ts +56 -0
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/infinitepay/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/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/events/lib/firebase.js +2 -0
- package/packages/events/lib/firebase.js.map +1 -1
- package/packages/events/package.json +2 -1
- package/packages/events/src/firebase.ts +2 -0
- package/packages/firebase/lib/config.d.ts +1 -0
- package/packages/firebase/lib/config.js +4 -0
- package/packages/firebase/lib/config.js.map +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/firebase/src/config.ts +5 -0
- 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 +1 -2
- package/packages/storefront/dist/client/HeaderButtons.300c19e5.js +1 -0
- package/packages/storefront/dist/client/Prices.d79bd862.js +1 -0
- package/packages/storefront/dist/client/{ProductCard.7b68cc35.js → ProductCard.6b27d9fa.js} +1 -1
- package/packages/storefront/dist/client/assets/_...slug_.4dbd1d47.css +1 -0
- package/packages/storefront/dist/client/assets/server.4d9646d8.css +1 -0
- package/packages/storefront/dist/client/chunks/{HeaderButtons.cbbb059d.js → HeaderButtons.1abd5bf4.js} +1 -1
- package/packages/storefront/dist/client/chunks/{LoginForm.ac2f1b1f.js → LoginForm.7e7d6137.js} +1 -1
- package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.b29421b3.js +1 -0
- package/packages/storefront/dist/client/chunks/_plugin-vue_export-helper.fc452b02.js +1 -0
- package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.b4556b35.js +1 -0
- package/packages/storefront/dist/client/client.2a3e5a58.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/entry.mjs +32 -1556
- package/packages/storefront/package.json +4 -5
- package/packages/storefront/src/lib/assets/tooltip.css +43 -0
- package/packages/storefront/src/lib/components/Prices.vue +1 -1
- package/packages/storefront/src/lib/layouts/BaseBody.astro +1 -1
- package/packages/storefront/src/lib/pages/_vue.ts +0 -2
- package/packages/storefront/tailwind.config.cjs +30 -19
- package/packages/storefront/uno.config.cjs +20 -19
- package/packages/types/package.json +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderNavLink.vue +0 -5
- package/packages/storefront/dist/client/HeaderButtons.8acf8a3b.js +0 -1
- package/packages/storefront/dist/client/Prices.9099fe99.js +0 -1
- package/packages/storefront/dist/client/assets/_...slug_.f19a16ca.css +0 -1
- package/packages/storefront/dist/client/assets/server.55b8d73d.css +0 -1
- package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.c37148c1.js +0 -1
- package/packages/storefront/dist/client/chunks/_plugin-vue_export-helper.5ccc5d75.js +0 -1
- package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.d5646b29.js +0 -1
- package/packages/storefront/dist/client/client.9783ef49.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.4](https://github.com/ecomplus/cloud-commerce/compare/v0.1.3...v0.1.4) (2022-12-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **frenet:** Create Frenet app events for shipping status auto-update ([#97](https://github.com/ecomplus/cloud-commerce/issues/97)) ([d71b46b](https://github.com/ecomplus/cloud-commerce/commit/d71b46b617120f143647fa7d4ca4853ebd45568e))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** Update dependency unocss to ^0.48.0 ([#98](https://github.com/ecomplus/cloud-commerce/issues/98)) ([d25cc84](https://github.com/ecomplus/cloud-commerce/commit/d25cc84b88a3b9009333cd00e8a03a2b432d1cca))
|
|
16
|
+
* **storefront:** Update default bold/subtle diffs ([7380a8e](https://github.com/ecomplus/cloud-commerce/commit/7380a8e7bb7a26048fe97eebffda7a177ba90db5))
|
|
17
|
+
* **storefront:** Use RGB values on CSS vars to support color utils with opacity ([5c37128](https://github.com/ecomplus/cloud-commerce/commit/5c371288e101b111bdfb7f88da9755ebf03b12b0)), closes [#discussioncomment-4491119](https://github.com/ecomplus/cloud-commerce/issues/discussioncomment-4491119)
|
|
18
|
+
|
|
5
19
|
### [0.1.3](https://github.com/ecomplus/cloud-commerce/compare/v0.1.2...v0.1.3) (2022-12-24)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@astrojs/image": "^0.12.1",
|
|
21
21
|
"@astrojs/node": "^4.0.0",
|
|
22
|
-
"@cloudcommerce/api": "^0.1.
|
|
23
|
-
"@cloudcommerce/firebase": "^0.1.
|
|
24
|
-
"@cloudcommerce/ssr": "^0.1.
|
|
22
|
+
"@cloudcommerce/api": "^0.1.3",
|
|
23
|
+
"@cloudcommerce/firebase": "^0.1.3",
|
|
24
|
+
"@cloudcommerce/ssr": "^0.1.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@cloudcommerce/i18n": "^0.1.
|
|
28
|
-
"@cloudcommerce/storefront": "^0.1.
|
|
29
|
-
"@cloudcommerce/types": "^0.1.
|
|
27
|
+
"@cloudcommerce/i18n": "^0.1.3",
|
|
28
|
+
"@cloudcommerce/storefront": "^0.1.3",
|
|
29
|
+
"@cloudcommerce/types": "^0.1.3",
|
|
30
30
|
"@iconify-json/arcticons": "^1.1.34",
|
|
31
31
|
"@iconify-json/wpf": "^1.1.3",
|
|
32
32
|
"lottie-web": "^5.10.0",
|
|
@@ -19,15 +19,17 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@astrojs/image": "^0.12.1",
|
|
21
21
|
"@astrojs/node": "^4.0.0",
|
|
22
|
-
"@cloudcommerce/api": "^0.1.
|
|
23
|
-
"@cloudcommerce/firebase": "^0.1.
|
|
24
|
-
"@cloudcommerce/ssr": "^0.1.
|
|
22
|
+
"@cloudcommerce/api": "^0.1.3",
|
|
23
|
+
"@cloudcommerce/firebase": "^0.1.3",
|
|
24
|
+
"@cloudcommerce/ssr": "^0.1.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@cloudcommerce/i18n": "^0.1.
|
|
28
|
-
"@cloudcommerce/storefront": "^0.1.
|
|
29
|
-
"@cloudcommerce/types": "^0.1.
|
|
30
|
-
"@fontsource/dm-serif-text": "^4.5.9"
|
|
27
|
+
"@cloudcommerce/i18n": "^0.1.3",
|
|
28
|
+
"@cloudcommerce/storefront": "^0.1.3",
|
|
29
|
+
"@cloudcommerce/types": "^0.1.3",
|
|
30
|
+
"@fontsource/dm-serif-text": "^4.5.9",
|
|
31
|
+
"@fontsource/roboto-condensed": "^4.5.9",
|
|
32
|
+
"@iconify-json/tabler": "^1.1.53"
|
|
31
33
|
},
|
|
32
34
|
"pnpm": {
|
|
33
35
|
"peerDependencyRules": {
|
|
Binary file
|
|
@@ -45,20 +45,113 @@ watch(y, (newY, oldY) => {
|
|
|
45
45
|
ref="header"
|
|
46
46
|
>
|
|
47
47
|
<div
|
|
48
|
-
class="container mx-auto py-1 sm:py-2 px-2 md:px-4 xl:px-7"
|
|
48
|
+
class="container mx-auto relative py-1 sm:py-2 px-2 md:px-4 xl:px-7"
|
|
49
49
|
:class="isSticky
|
|
50
50
|
? 'overflow-hidden'
|
|
51
|
-
: 'bg-white/70 rounded-t-md xl:
|
|
51
|
+
: 'bg-white/70 rounded-t-md rounded-tl-none lg:pt-3 xl:pt-4 xl:pb-3'"
|
|
52
|
+
:style="{ marginTop: isSticky ? null : '70px' }"
|
|
52
53
|
>
|
|
53
|
-
<div
|
|
54
|
+
<div
|
|
55
|
+
v-if="!isSticky"
|
|
56
|
+
class="absolute top-0 left-0 w-full flex justify-between"
|
|
57
|
+
style="height: 66px; margin-top: -60px"
|
|
58
|
+
>
|
|
59
|
+
<div class="mt-auto" style="padding-bottom: 6px">
|
|
60
|
+
<a
|
|
61
|
+
class="inline-block bg-white/70 text-secondary font-bold uppercase
|
|
62
|
+
rounded-t-md px-4 py-2 mr-2 lg:mr-3"
|
|
63
|
+
href="#"
|
|
64
|
+
>
|
|
65
|
+
<i class="i-building-store mr-1"></i> Conheça a Tia Sônia
|
|
66
|
+
</a>
|
|
67
|
+
<a
|
|
68
|
+
class="inline-block bg-secondary-subtle/70 text-white font-bold uppercase
|
|
69
|
+
rounded-t-md px-4 py-2"
|
|
70
|
+
href="#"
|
|
71
|
+
>
|
|
72
|
+
<i class="i-chevron-down mr-1"></i> Marcas parceiras
|
|
73
|
+
</a>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="h-full flex flex-col-reverse justify-between text-sm text-right mr-4">
|
|
76
|
+
<div>
|
|
77
|
+
<a class="secondary hover:secondary-bold rounded p-2 px-3 mr-2" href="#">
|
|
78
|
+
<i class="i-calendar-time mr-1"></i> Assinatura Tia Sônia
|
|
79
|
+
<b class="ml-1">10% OFF</b>
|
|
80
|
+
</a>
|
|
81
|
+
<a class="primary-subtle hover:primary rounded p-2 px-3" href="#">
|
|
82
|
+
Indique e ganhe <i class="i-pig-money ml-1"></i>
|
|
83
|
+
</a>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="text-white pr-1">
|
|
86
|
+
<nav>
|
|
87
|
+
<ul class="flex flex-row-reverse gap-3 lg:gap-4">
|
|
88
|
+
<li>
|
|
89
|
+
<a href="#">
|
|
90
|
+
<strong>Para Você</strong>
|
|
91
|
+
</a>
|
|
92
|
+
</li>
|
|
93
|
+
<li>
|
|
94
|
+
<a href="#">
|
|
95
|
+
Área do lojista
|
|
96
|
+
</a>
|
|
97
|
+
</li>
|
|
98
|
+
<li>
|
|
99
|
+
<a href="#">
|
|
100
|
+
Onde encontrar
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
<a href="#">
|
|
105
|
+
Contato
|
|
106
|
+
</a>
|
|
107
|
+
</li>
|
|
108
|
+
<li>
|
|
109
|
+
<a href="#">
|
|
110
|
+
<i class="i-notes"></i> Prescritores
|
|
111
|
+
</a>
|
|
112
|
+
</li>
|
|
113
|
+
</ul>
|
|
114
|
+
</nav>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="grid grid-flow-col grid-cols-3 justify-between items-center">
|
|
54
119
|
<slot name="aside">
|
|
55
120
|
<div class="header__aside md:hidden">
|
|
56
121
|
<div class="i-bars-3-bottom-left"></div>
|
|
57
122
|
</div>
|
|
58
123
|
</slot>
|
|
59
|
-
<nav
|
|
60
|
-
<ul>
|
|
61
|
-
<li
|
|
124
|
+
<nav>
|
|
125
|
+
<ul class="flex items-center gap-2 md:gap-3 text-sm">
|
|
126
|
+
<li>
|
|
127
|
+
<a
|
|
128
|
+
class="text-on-primary font-bold uppercase rounded px-4 py-2"
|
|
129
|
+
:class="isSticky ? 'bg-primary' : 'bg-primary/80'"
|
|
130
|
+
href="#"
|
|
131
|
+
>
|
|
132
|
+
<i class="i-chevron-down mr-1"></i> Produtos
|
|
133
|
+
</a>
|
|
134
|
+
</li>
|
|
135
|
+
<li class="flex-grow">
|
|
136
|
+
<form>
|
|
137
|
+
<label for="header-search" class="mb-2 sr-only">
|
|
138
|
+
Buscar
|
|
139
|
+
</label>
|
|
140
|
+
<div class="relative text-base-700">
|
|
141
|
+
<div class="absolute inset-y-0 left-0
|
|
142
|
+
flex items-center pl-3 pt-1 pointer-events-none">
|
|
143
|
+
<i class="i-search"></i>
|
|
144
|
+
</div>
|
|
145
|
+
<input
|
|
146
|
+
type="search"
|
|
147
|
+
id="header-search"
|
|
148
|
+
class="w-full pr-4 py-2 pl-9 text-sm bg-white/80 rounded border-none"
|
|
149
|
+
placeholder="Buscar granolas, snacks, coquinho ..."
|
|
150
|
+
required
|
|
151
|
+
/>
|
|
152
|
+
</div>
|
|
153
|
+
</form>
|
|
154
|
+
</li>
|
|
62
155
|
</ul>
|
|
63
156
|
</nav>
|
|
64
157
|
<slot name="logo" v-bind="{ logo }">
|
|
@@ -67,14 +160,15 @@ watch(y, (newY, oldY) => {
|
|
|
67
160
|
<img
|
|
68
161
|
v-bind="logo"
|
|
69
162
|
ref="logoImg"
|
|
163
|
+
class="w-auto mx-auto"
|
|
70
164
|
:style="isSticky
|
|
71
|
-
? '
|
|
72
|
-
: 'margin-top: -
|
|
165
|
+
? 'height: 80px; margin-bottom: -40px'
|
|
166
|
+
: 'height: 122px; margin-top: -76px'"
|
|
73
167
|
/>
|
|
74
168
|
</component>
|
|
75
169
|
</a>
|
|
76
170
|
</slot>
|
|
77
|
-
<div class="flex items-center">
|
|
171
|
+
<div class="flex items-center justify-end">
|
|
78
172
|
<slot name="actions">
|
|
79
173
|
<slot name="nav" />
|
|
80
174
|
<slot name="search" />
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import HeaderNavLink from '@@components/header/HeaderNavLink.vue';
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<template>
|
|
6
|
-
<nav class="font-
|
|
7
|
-
<
|
|
2
|
+
<nav class="font-bold uppercase text-sm px-3 flex gap-2 lg:gap-4">
|
|
3
|
+
<a href="#" class="text-secondary hover:text-secondary-bold">
|
|
4
|
+
Mais vendidos
|
|
5
|
+
</a>
|
|
6
|
+
<a href="#" class="text-primary-800 hover:text-primary-900">
|
|
7
|
+
Promoções
|
|
8
|
+
</a>
|
|
8
9
|
</nav>
|
|
9
10
|
</template>
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
import type { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import Base from '@@sf/layouts/Base.astro';
|
|
4
4
|
import '@fontsource/dm-serif-text';
|
|
5
|
+
import '@fontsource/roboto-condensed';
|
|
6
|
+
import '@fontsource/roboto-condensed/400-italic.css';
|
|
7
|
+
import '@fontsource/roboto-condensed/700.css';
|
|
8
|
+
import '@fontsource/roboto-condensed/700-italic.css';
|
|
5
9
|
import InlineScripts from '~/scripts/InlineScripts.astro';
|
|
6
10
|
|
|
7
11
|
export interface Props {
|
|
@@ -19,11 +23,11 @@ const { pageContext, title } = Astro.props as Props;
|
|
|
19
23
|
|
|
20
24
|
<style is:global>
|
|
21
25
|
:root {
|
|
22
|
-
--custom-font-sans: Roboto;
|
|
26
|
+
--custom-font-sans: "Roboto Condensed";
|
|
23
27
|
--font-brand: "DM Serif Text", serif;
|
|
24
28
|
--c-brand-yellow: rgb(253, 218, 37);
|
|
25
|
-
--c-brand-blue: rgb(
|
|
26
|
-
--c-brand-
|
|
29
|
+
--c-brand-blue: rgb(27, 54, 93);
|
|
30
|
+
--c-brand-light-blue: rgb(0, 87, 183);
|
|
27
31
|
--un-prose-links: var(--c-secondary);
|
|
28
32
|
}
|
|
29
33
|
html {
|
|
@@ -31,9 +35,12 @@ html {
|
|
|
31
35
|
}
|
|
32
36
|
body {
|
|
33
37
|
overflow-x: hidden;
|
|
34
|
-
background-color: var(--c-
|
|
38
|
+
background-color: var(--c-brand-light-blue);
|
|
35
39
|
}
|
|
36
40
|
body > * {
|
|
37
41
|
@apply bg-white;
|
|
38
42
|
}
|
|
43
|
+
a {
|
|
44
|
+
transition: color var(--transition), background-color var(--transition);
|
|
45
|
+
}
|
|
39
46
|
</style>
|
|
@@ -17,12 +17,12 @@ const { pageContext, title } = Astro.props as Props;
|
|
|
17
17
|
width="477"
|
|
18
18
|
height="396"
|
|
19
19
|
fetchpriority="low"
|
|
20
|
-
class="
|
|
20
|
+
class="absolute bg-transparent rotate-180 top-0 -left-10 lg:left-6 max-w-full -z-10"
|
|
21
21
|
/>
|
|
22
22
|
<slot name="header">
|
|
23
23
|
<Header pageContext={pageContext} />
|
|
24
24
|
</slot>
|
|
25
|
-
<main class="container mx-auto
|
|
25
|
+
<main class="container mx-auto">
|
|
26
26
|
<slot />
|
|
27
27
|
</main>
|
|
28
28
|
<img
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import api from '@cloudcommerce/api';
|
|
4
|
+
import { Image } from '@astrojs/image/components';
|
|
4
5
|
|
|
5
6
|
export interface Props {
|
|
6
7
|
pageContext: PageContext;
|
|
@@ -9,9 +10,14 @@ export interface Props {
|
|
|
9
10
|
const products = (await api.get('products')).data.result;
|
|
10
11
|
---
|
|
11
12
|
|
|
13
|
+
<Image src="/img/uploads/fimdeano1920x736.jpg"
|
|
14
|
+
format={'webp'}
|
|
15
|
+
width={1920} height={736}
|
|
16
|
+
alt="Seu fim de ano na Tia Sônia. Cupons QUERO10, QUERO15, QUERO20."
|
|
17
|
+
/>
|
|
12
18
|
<h1 class="font-brand">
|
|
13
19
|
Welcome to
|
|
14
|
-
<span class="text-secondary font-sans font-
|
|
20
|
+
<span class="text-secondary font-sans font-bold">FEITO NA BAHIA</span>
|
|
15
21
|
</h1>
|
|
16
22
|
<ul role="list" class="mt-3 fs-20">
|
|
17
23
|
{products.map((product) => <li>
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
process.env.STOREFRONT_BASE_DIR = __dirname;
|
|
2
|
+
|
|
3
|
+
globalThis.storefront_theme_options = {
|
|
4
|
+
generalIcons: 'tabler',
|
|
5
|
+
};
|
|
6
|
+
|
|
1
7
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
-
|
|
8
|
+
const defaultConfig = require('@cloudcommerce/storefront/tailwind.config.cjs');
|
|
9
|
+
|
|
10
|
+
module.exports = defaultConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
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>",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"zx": "^7.1.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
+
"fix-install": "bash scripts/pre-install.sh && pnpm i --frozen-lockfile",
|
|
41
42
|
"postinstall": "husky install && pnpm run -r prepare-monorepo",
|
|
42
43
|
"new-pkg": "bash scripts/new-package.sh",
|
|
43
44
|
"build": "turbo run build",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/frenet-events';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
import '@cloudcommerce/firebase/lib/init';
|
|
3
|
+
import { createAppEventsFunction } from '@cloudcommerce/firebase/lib/helpers/pubsub';
|
|
4
|
+
import config from '@cloudcommerce/firebase/lib/config';
|
|
5
|
+
import functions from 'firebase-functions/v1';
|
|
6
|
+
import handleTrackingCodes from './functions-lib/tracking-codes.js';
|
|
7
|
+
import handleApiEvent from './functions-lib/events-to-frenet.js';
|
|
8
|
+
|
|
9
|
+
const { httpsFunctionOptions: { region } } = config.get();
|
|
10
|
+
|
|
11
|
+
export const frenet = {
|
|
12
|
+
cronTrackingCodes: functions.region(region).pubsub
|
|
13
|
+
.schedule('*/30 * * * *')
|
|
14
|
+
.onRun(() => {
|
|
15
|
+
return handleTrackingCodes;
|
|
16
|
+
}),
|
|
17
|
+
onStoreEvent: createAppEventsFunction('frenet', handleApiEvent),
|
|
18
|
+
};
|
|
19
|
+
// # sourceMappingURL=frenet-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frenet-events.js","sourceRoot":"","sources":["../src/frenet-events.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EACL,uBAAuB,GAExB,MAAM,4CAA4C,CAAC;AACpD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAE9D,MAAM,EAAE,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE1D,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,iBAAiB,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM;SAC/C,QAAQ,CAAC,cAAc,CAAC;SACxB,KAAK,CAAC,GAAG,EAAE;QACV,OAAO,mBAAmB,CAAC;IAC7B,CAAC,CAAC;IAEJ,YAAY,EAAE,uBAAuB,CACnC,QAAQ,EACR,cAAiC,CAClC;CACF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const db: {
|
|
2
|
+
save: (orderId: string, trackingStatus: string, trackingCode: string, serviceCode?: string) => Promise<unknown>;
|
|
3
|
+
get: (orderId: string, trackingCode: string) => Promise<unknown>;
|
|
4
|
+
clear: () => Promise<unknown>;
|
|
5
|
+
remove: (trackingCode: string, serviceCode: string) => Promise<unknown>;
|
|
6
|
+
update: (trackingStatus: string, trackingCode: string) => Promise<unknown>;
|
|
7
|
+
getAll: () => Promise<unknown>;
|
|
8
|
+
getAllDelivered: () => Promise<unknown>;
|
|
9
|
+
};
|
|
10
|
+
export default db;
|
|
11
|
+
export type TrackingDoc = {
|
|
12
|
+
orderId: string;
|
|
13
|
+
trackingStatus: string;
|
|
14
|
+
trackingCode: string;
|
|
15
|
+
serviceCode: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updateAt?: string;
|
|
18
|
+
};
|