cloudcommerce 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -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/.nvmrc +1 -0
- package/ecomplus-stores/monocard/functions/ssr/content/settings.json +13 -10
- package/ecomplus-stores/monocard/functions/ssr/package.json +10 -6
- package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +1 -1
- 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/.nvmrc +1 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/content/settings.json +15 -11
- package/ecomplus-stores/tia-sonia/functions/ssr/package.json +7 -6
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/granolas-em-pote.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/granolas-espalhadas.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/tiasonia-logo-mono.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/tiasonia-logo-var.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/tiasonia-logo.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/TheHeader.vue +50 -5
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Base.astro +12 -7
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Pages.astro +17 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/PagesHeader.astro +1 -9
- package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Home.astro +9 -8
- package/ecomplus-stores/tia-sonia/package.json +1 -1
- package/package.json +5 -5
- 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 +2 -2
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +3 -3
- package/packages/apps/infinitepay/package.json +2 -2
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagarme/package.json +3 -3
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/events/package.json +2 -2
- 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 +2 -2
- package/packages/ssr/package.json +6 -3
- package/packages/storefront/dist/client/~partytown/partytown-atomics.js +2 -2
- package/packages/storefront/dist/client/~partytown/partytown-media.js +1 -1
- package/packages/storefront/dist/client/~partytown/partytown-sw.js +2 -2
- package/packages/storefront/dist/client/~partytown/partytown.js +2 -2
- package/packages/storefront/dist/server/entry.mjs +4 -5
- package/packages/storefront/package.json +4 -4
- package/packages/types/package.json +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/banner1.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/banner2.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/banner2.webp +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/headless.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/headphone.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/headphone.webp +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/logo.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/logo.webp +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/passion.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/passion.webp +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/pwa-reliable.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/rect8589.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/rect859.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/rect89.png +0 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/rect89.webp +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.3](https://github.com/ecomplus/cloud-commerce/compare/v0.1.2...v0.1.3) (2022-12-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** Update all non-major dependencies ([dae94d3](https://github.com/ecomplus/cloud-commerce/commit/dae94d37862f3b01c1799cc7be4906893b111a46))
|
|
11
|
+
* **ssr:** Add `@vueuse/core` and `@headlessui/vue` to SSR deps ([6c7204e](https://github.com/ecomplus/cloud-commerce/commit/6c7204ee3569a81075e36407fd962f36fac1c669))
|
|
12
|
+
|
|
13
|
+
### [0.1.2](https://github.com/ecomplus/cloud-commerce/compare/v0.1.1...v0.1.2) (2022-12-22)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **ssr:** For global directive, `floating-vue` must be at SSR deps ([3cc4b17](https://github.com/ecomplus/cloud-commerce/commit/3cc4b17bd43dcfb40922887c5a257e2359ae5b59))
|
|
19
|
+
|
|
5
20
|
### [0.1.1](https://github.com/ecomplus/cloud-commerce/compare/v0.1.0...v0.1.1) (2022-12-22)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
16
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"domain": "monocard.
|
|
3
|
-
"primary_color": "#92F7B6",
|
|
4
|
-
"bg_color": "#f5f6fa",
|
|
5
|
-
"repository": "",
|
|
6
|
-
"logo": "/img/uploads/logo.png",
|
|
2
|
+
"domain": "ecom2-monocard.web.app",
|
|
7
3
|
"name": "Monocard",
|
|
8
|
-
"short_name": "Monocard",
|
|
9
|
-
"favicon": "/img/uploads/favicon.png",
|
|
10
|
-
"secondary_color": "#000000",
|
|
11
|
-
"icon": "/img/icon.png",
|
|
12
4
|
"description": "Monocard - O seu último cartão de visitas",
|
|
13
|
-
"
|
|
5
|
+
"logo": "/img/uploads/logo.png",
|
|
6
|
+
"icon": "/img/icon.png",
|
|
7
|
+
"primary_color": "#92F7B6",
|
|
8
|
+
"email": "",
|
|
9
|
+
"phone": "",
|
|
10
|
+
"address": "",
|
|
11
|
+
"corporate_name": "",
|
|
12
|
+
"doc_number": "",
|
|
13
|
+
"lang": "pt_br",
|
|
14
|
+
"currency": "BRL",
|
|
15
|
+
"currency_symbol": "R$",
|
|
16
|
+
"country_code": "BR"
|
|
14
17
|
}
|
|
@@ -19,14 +19,18 @@
|
|
|
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.2",
|
|
23
|
+
"@cloudcommerce/firebase": "^0.1.2",
|
|
24
|
+
"@cloudcommerce/ssr": "^0.1.2"
|
|
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.2",
|
|
28
|
+
"@cloudcommerce/storefront": "^0.1.2",
|
|
29
|
+
"@cloudcommerce/types": "^0.1.2",
|
|
30
|
+
"@iconify-json/arcticons": "^1.1.34",
|
|
31
|
+
"@iconify-json/wpf": "^1.1.3",
|
|
32
|
+
"lottie-web": "^5.10.0",
|
|
33
|
+
"lozad": "^1.16.0"
|
|
30
34
|
},
|
|
31
35
|
"pnpm": {
|
|
32
36
|
"peerDependencyRules": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
16
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"domain": "ecom2-
|
|
3
|
-
"
|
|
4
|
-
"bg_color": "#f5f6fa",
|
|
5
|
-
"repository": "",
|
|
6
|
-
"logo": "/img/uploads/logo.webp",
|
|
7
|
-
"name": "My Shop",
|
|
8
|
-
"short_name": "MyShop",
|
|
9
|
-
"favicon": "/img/uploads/favicon.png",
|
|
10
|
-
"secondary_color": "",
|
|
11
|
-
"icon": "/img/icon.png",
|
|
2
|
+
"domain": "ecom2-tiasonia.web.app",
|
|
3
|
+
"name": "Tia Sônia",
|
|
12
4
|
"description": "My PWA Shop",
|
|
13
|
-
"
|
|
5
|
+
"logo": "/img/uploads/tiasonia-logo.png",
|
|
6
|
+
"icon": "/img/uploads/large-icon.png",
|
|
7
|
+
"primary_color": "#fdda25",
|
|
8
|
+
"secondary_color": "#0057b7",
|
|
9
|
+
"email": "",
|
|
10
|
+
"phone": "",
|
|
11
|
+
"address": "",
|
|
12
|
+
"corporate_name": "",
|
|
13
|
+
"doc_number": "",
|
|
14
|
+
"lang": "pt_br",
|
|
15
|
+
"currency": "BRL",
|
|
16
|
+
"currency_symbol": "R$",
|
|
17
|
+
"country_code": "BR"
|
|
14
18
|
}
|
|
@@ -19,14 +19,15 @@
|
|
|
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.2",
|
|
23
|
+
"@cloudcommerce/firebase": "^0.1.2",
|
|
24
|
+
"@cloudcommerce/ssr": "^0.1.2"
|
|
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.2",
|
|
28
|
+
"@cloudcommerce/storefront": "^0.1.2",
|
|
29
|
+
"@cloudcommerce/types": "^0.1.2",
|
|
30
|
+
"@fontsource/dm-serif-text": "^4.5.9"
|
|
30
31
|
},
|
|
31
32
|
"pnpm": {
|
|
32
33
|
"peerDependencyRules": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
type ImgHTMLAttributes,
|
|
4
|
+
ref,
|
|
5
|
+
computed,
|
|
6
|
+
watch,
|
|
7
|
+
toRefs,
|
|
8
|
+
onMounted,
|
|
9
|
+
} from 'vue';
|
|
10
|
+
import { useWindowScroll } from '@vueuse/core';
|
|
3
11
|
|
|
4
12
|
export interface Props {
|
|
5
13
|
logo?: ImgHTMLAttributes;
|
|
@@ -10,22 +18,59 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
10
18
|
logoAltHeading: 'h2',
|
|
11
19
|
});
|
|
12
20
|
const { logo } = toRefs(props);
|
|
21
|
+
const { y } = useWindowScroll();
|
|
22
|
+
const header = ref<HTMLElement | null>(null);
|
|
23
|
+
const logoImg = ref<HTMLElement | null>(null);
|
|
24
|
+
let height: number = (Number(logo.value.height) || 0) + 20;
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
logoImg.value.onload = () => {
|
|
27
|
+
height = header.value.offsetHeight;
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
const isHidden = ref(false);
|
|
31
|
+
const isSticky = computed(() => y.value > height);
|
|
32
|
+
watch(y, (newY, oldY) => {
|
|
33
|
+
isHidden.value = newY > 0 && newY > oldY;
|
|
34
|
+
});
|
|
13
35
|
</script>
|
|
14
36
|
|
|
15
37
|
<template>
|
|
16
|
-
<header
|
|
17
|
-
|
|
18
|
-
|
|
38
|
+
<header
|
|
39
|
+
class="header z-50 sticky top-0"
|
|
40
|
+
:class="[
|
|
41
|
+
isHidden ? 'opacity-0 -translate-y-full' : null,
|
|
42
|
+
isSticky ? 'bg-white/80 backdrop-blur-md shadow' : null,
|
|
43
|
+
]"
|
|
44
|
+
style="transition: opacity var(--transition-slow), transform var(--transition)"
|
|
45
|
+
ref="header"
|
|
46
|
+
>
|
|
47
|
+
<div
|
|
48
|
+
class="container mx-auto py-1 sm:py-2 px-2 md:px-4 xl:px-7"
|
|
49
|
+
:class="isSticky
|
|
50
|
+
? 'overflow-hidden'
|
|
51
|
+
: 'bg-white/70 rounded-t-md xl:py-4 -mb-1 mt-20'"
|
|
52
|
+
>
|
|
19
53
|
<div class="grid grid-flow-col auto-cols-max justify-between items-center">
|
|
20
54
|
<slot name="aside">
|
|
21
55
|
<div class="header__aside md:hidden">
|
|
22
56
|
<div class="i-bars-3-bottom-left"></div>
|
|
23
57
|
</div>
|
|
24
58
|
</slot>
|
|
59
|
+
<nav class="">
|
|
60
|
+
<ul>
|
|
61
|
+
<li><a href="#">Página inicial</a></li>
|
|
62
|
+
</ul>
|
|
63
|
+
</nav>
|
|
25
64
|
<slot name="logo" v-bind="{ logo }">
|
|
26
65
|
<a v-if="logo" href="/">
|
|
27
66
|
<component :is="(logo.alt && logoAltHeading) || 'span'" class="m-0">
|
|
28
|
-
<img
|
|
67
|
+
<img
|
|
68
|
+
v-bind="logo"
|
|
69
|
+
ref="logoImg"
|
|
70
|
+
:style="isSticky
|
|
71
|
+
? 'margin-bottom: -40px; height: 80px; width: auto'
|
|
72
|
+
: 'margin-top: -50%'"
|
|
73
|
+
/>
|
|
29
74
|
</component>
|
|
30
75
|
</a>
|
|
31
76
|
</slot>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import Base from '@@sf/layouts/Base.astro';
|
|
4
|
+
import '@fontsource/dm-serif-text';
|
|
4
5
|
import InlineScripts from '~/scripts/InlineScripts.astro';
|
|
5
6
|
|
|
6
7
|
export interface Props {
|
|
@@ -17,18 +18,22 @@ const { pageContext, title } = Astro.props as Props;
|
|
|
17
18
|
</Base>
|
|
18
19
|
|
|
19
20
|
<style is:global>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
:
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
:root {
|
|
22
|
+
--custom-font-sans: Roboto;
|
|
23
|
+
--font-brand: "DM Serif Text", serif;
|
|
24
|
+
--c-brand-yellow: rgb(253, 218, 37);
|
|
25
|
+
--c-brand-blue: rgb(0, 87, 183);
|
|
26
|
+
--c-brand-dark-blue: rgb(27, 54, 93);
|
|
27
|
+
--un-prose-links: var(--c-secondary);
|
|
27
28
|
}
|
|
28
29
|
html {
|
|
29
30
|
scroll-behavior: smooth;
|
|
30
31
|
}
|
|
31
32
|
body {
|
|
32
33
|
overflow-x: hidden;
|
|
34
|
+
background-color: var(--c-secondary);
|
|
35
|
+
}
|
|
36
|
+
body > * {
|
|
37
|
+
@apply bg-white;
|
|
33
38
|
}
|
|
34
39
|
</style>
|
|
@@ -12,8 +12,24 @@ const { pageContext, title } = Astro.props as Props;
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<Base pageContext={pageContext} title={title}>
|
|
15
|
+
<img
|
|
16
|
+
src="/img/uploads/granolas-espalhadas.png"
|
|
17
|
+
width="477"
|
|
18
|
+
height="396"
|
|
19
|
+
fetchpriority="low"
|
|
20
|
+
class="fixed bg-transparent rotate-180 top-0 -left-10 lg:left-6 max-w-full -z-10"
|
|
21
|
+
/>
|
|
15
22
|
<slot name="header">
|
|
16
23
|
<Header pageContext={pageContext} />
|
|
17
24
|
</slot>
|
|
18
|
-
<
|
|
25
|
+
<main class="container mx-auto p-6">
|
|
26
|
+
<slot />
|
|
27
|
+
</main>
|
|
28
|
+
<img
|
|
29
|
+
src="/img/uploads/granolas-espalhadas.png"
|
|
30
|
+
width="477"
|
|
31
|
+
height="396"
|
|
32
|
+
fetchpriority="low"
|
|
33
|
+
class="fixed bg-transparent -bottom-70 -right-60 -z-10"
|
|
34
|
+
/>
|
|
19
35
|
</Base>
|
|
@@ -5,7 +5,6 @@ import type CmsContacts from '@@sf/types/cms-contacts';
|
|
|
5
5
|
import type { PageContext } from '@@sf/ssr-context';
|
|
6
6
|
import { i19buyOnWhatsApp } from '@@i18n';
|
|
7
7
|
import { getImage } from '@@sf/ssr/image';
|
|
8
|
-
import TopBar, { Props as TopBarProps } from '@@components/TopBar.vue';
|
|
9
8
|
import TheHeader, { Props as TheHeaderProps } from '@@components/TheHeader.vue';
|
|
10
9
|
import HeaderNav from '@@components/header/HeaderNav.vue';
|
|
11
10
|
import HeaderButtons, { Props as HeaderButtonsProps } from '@@components/header/HeaderButtons.vue';
|
|
@@ -13,7 +12,6 @@ import HeaderButtons, { Props as HeaderButtonsProps } from '@@components/header/
|
|
|
13
12
|
export interface Props {
|
|
14
13
|
pageContext: PageContext;
|
|
15
14
|
logoTransformOptions?: Parameters<typeof getImage>[0];
|
|
16
|
-
topBarProps?: Partial<TopBarProps>;
|
|
17
15
|
theHeaderProps?: Partial<TheHeaderProps>;
|
|
18
16
|
headerButtonsProps?: Partial<HeaderButtonsProps>;
|
|
19
17
|
}
|
|
@@ -25,7 +23,6 @@ const {
|
|
|
25
23
|
cms,
|
|
26
24
|
},
|
|
27
25
|
logoTransformOptions,
|
|
28
|
-
topBarProps,
|
|
29
26
|
theHeaderProps,
|
|
30
27
|
headerButtonsProps,
|
|
31
28
|
} = Astro.props as Props;
|
|
@@ -68,7 +65,6 @@ if (contacts.whatsapp) {
|
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
declare global {
|
|
71
|
-
var TopBarProps: TopBarProps;
|
|
72
68
|
var TheHeaderProps: TheHeaderProps;
|
|
73
69
|
var HeaderButtonsProps: HeaderButtonsProps;
|
|
74
70
|
}
|
|
@@ -78,7 +74,6 @@ globalThis.TopBarProps = {
|
|
|
78
74
|
hasPhoneLinks: header.contacts_stripe.phone_wpp,
|
|
79
75
|
hasNetworkLinks: header.contacts_stripe.socials,
|
|
80
76
|
contacts,
|
|
81
|
-
...topBarProps,
|
|
82
77
|
};
|
|
83
78
|
globalThis.TheHeaderProps = {
|
|
84
79
|
logo: {
|
|
@@ -101,11 +96,8 @@ globalThis.HeaderButtonsProps = {
|
|
|
101
96
|
---
|
|
102
97
|
|
|
103
98
|
<Fragment>
|
|
104
|
-
<slot name="top-bar">
|
|
105
|
-
<TopBar {...globalThis.TopBarProps} />
|
|
106
|
-
</slot>
|
|
107
99
|
<slot name="header">
|
|
108
|
-
<TheHeader {...globalThis.TheHeaderProps}>
|
|
100
|
+
<TheHeader {...globalThis.TheHeaderProps} client:idle>
|
|
109
101
|
<Fragment slot="nav">
|
|
110
102
|
<HeaderNav />
|
|
111
103
|
</Fragment>
|
|
@@ -9,11 +9,12 @@ export interface Props {
|
|
|
9
9
|
const products = (await api.get('products')).data.result;
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</
|
|
12
|
+
<h1 class="font-brand">
|
|
13
|
+
Welcome to
|
|
14
|
+
<span class="text-secondary font-sans font-black">FEITO NA BAHIA</span>
|
|
15
|
+
</h1>
|
|
16
|
+
<ul role="list" class="mt-3 fs-20">
|
|
17
|
+
{products.map((product) => <li>
|
|
18
|
+
<a href={`/${product.slug}`}>{product.sku}</a>
|
|
19
|
+
</li>)}
|
|
20
|
+
</ul>
|
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.3",
|
|
5
5
|
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
|
|
6
6
|
"main": "packages/api/lib/index.js",
|
|
7
7
|
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@commitlint/config-conventional": "^17.3.0",
|
|
21
21
|
"@commitlint/rules": "^17.3.0",
|
|
22
22
|
"@types/node": "^18.11.17",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
24
|
-
"@typescript-eslint/parser": "^5.
|
|
25
|
-
"esbuild": "^0.16.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
24
|
+
"@typescript-eslint/parser": "^5.47.0",
|
|
25
|
+
"esbuild": "^0.16.10",
|
|
26
26
|
"eslint": "^8.30.0",
|
|
27
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
28
28
|
"eslint-plugin-import": "^2.26.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typescript": "^4.9.4",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
36
|
"vite": "^3.2.5",
|
|
37
|
-
"vitest": "^0.26.
|
|
37
|
+
"vitest": "^0.26.2",
|
|
38
38
|
"zx": "^7.1.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-emails",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce default transactional email app",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@cloudcommerce/emails": "workspace:*",
|
|
24
24
|
"@cloudcommerce/firebase": "workspace:*",
|
|
25
25
|
"@ecomplus/transactional-mails": "^1.11.1",
|
|
26
|
-
"firebase-admin": "^11.4.
|
|
26
|
+
"firebase-admin": "^11.4.1",
|
|
27
27
|
"firebase-functions": "^3.24.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Galax Pay for recurring payments",
|
|
6
6
|
"main": "lib/galaxpay.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"axios": "^1.2.1",
|
|
29
|
-
"firebase-admin": "^11.
|
|
30
|
-
"firebase-functions": "^4.1.
|
|
29
|
+
"firebase-admin": "^11.4.1",
|
|
30
|
+
"firebase-functions": "^4.1.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-infinitepay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate InfinitePay",
|
|
6
6
|
"main": "lib/infinitepay.js",
|
|
7
7
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"axios": "^1.2.1",
|
|
29
29
|
"crypto-js": "^4.1.1",
|
|
30
|
-
"firebase-admin": "^11.4.
|
|
30
|
+
"firebase-admin": "^11.4.1",
|
|
31
31
|
"firebase-functions": "^4.1.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|