cloudcommerce 0.6.7 → 0.6.8
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/renovate.json +1 -1
- package/CHANGELOG.md +16 -0
- package/ecomplus-stores/monocard/.devcontainer/devcontainer.json +3 -0
- package/ecomplus-stores/monocard/.github/workflows/build-and-deploy.yml +4 -9
- package/ecomplus-stores/monocard/.vscode/launch.json +11 -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/content/header.json +16 -28
- package/ecomplus-stores/monocard/functions/ssr/content/settings.json +39 -2
- package/ecomplus-stores/monocard/functions/ssr/package.json +14 -18
- 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 +1 -1
- 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/src/components/AccountMenu.vue +104 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/CasesGrid.astro +49 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/components/MonocardCustomizer.vue +8 -8
- package/ecomplus-stores/monocard/functions/ssr/src/components/MotionFade.vue +17 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/PitchBar.vue +61 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/Prices.vue +112 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/SearchModal.vue +6 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeader.vue +97 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeaderMenu.vue +92 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenav.vue +65 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenavCategory.vue +78 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/header/HeaderButtons.vue +1 -21
- package/ecomplus-stores/monocard/functions/ssr/src/components/header/HeaderNav.vue +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/env.d.ts +2 -1
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Base.astro +11 -20
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Pages.astro +15 -2
- package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +53 -32
- package/ecomplus-stores/monocard/functions/ssr/src/pages/[...slug].astro +2 -2
- package/ecomplus-stores/monocard/functions/ssr/src/pages/_vue.ts +8 -1
- package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +0 -2
- package/ecomplus-stores/monocard/functions/ssr/src/pages/fallback.astro +4 -2
- package/ecomplus-stores/monocard/functions/ssr/src/pages/index.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/tailwind.config.cjs +29 -1
- package/ecomplus-stores/monocard/functions/ssr/tsconfig.json +0 -4
- package/ecomplus-stores/monocard/functions/ssr/uno.config.cjs +2 -1
- package/ecomplus-stores/monocard/package.json +1 -1
- package/ecomplus-stores/monocard/scripts/install.sh +1 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/package.json +0 -8
- package/package.json +9 -9
- package/packages/api/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/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/infinitepay/package.json +2 -2
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- 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/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/events/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +3 -3
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +6 -6
- package/packages/storefront/dist/client/_astro/PitchBar.db7cd775.js +1 -0
- package/packages/storefront/dist/client/_astro/{Prices.7368883b.js → Prices.55399c72.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductCard.b9f8f3e7.js → ProductCard.7e891c08.js} +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.301e109b.js +4 -0
- package/packages/storefront/dist/client/_astro/_...slug_.0607a6ef.css +1 -0
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.3dfd3410.js → _plugin-vue_export-helper.77ed7c18.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.0de2f274.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.e75b6ce1.js → format-money.ab6b71eb.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.16f33784.js +1 -0
- package/packages/storefront/dist/client/_astro/{modules-info.6e650119.js → modules-info.06ac0727.js} +1 -1
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.d2f39f33.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/client/workbox-e0d788d4.js +1 -0
- package/packages/storefront/dist/server/chunks/{astro.a9f695c0.mjs → astro.2e59789d.mjs} +7 -18
- package/packages/storefront/dist/server/chunks/pages/{all.571056bd.mjs → all.726ca7f4.mjs} +19 -14
- package/packages/storefront/dist/server/entry.mjs +10 -16
- package/packages/storefront/package.json +10 -10
- package/packages/storefront/src/lib/assets/base.css +5 -0
- package/packages/storefront/src/lib/pages/_vue.ts +6 -2
- package/packages/storefront/src/lib/ssr/Picture.astro +13 -4
- package/packages/storefront/src/lib/ssr-context.ts +1 -1
- package/packages/storefront/src/vue-globals.d.ts +2 -0
- package/packages/types/index.ts +1 -0
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +3 -3
- package/ecomplus-stores/monocard/functions/ssr/content/contacts.json +0 -13
- package/ecomplus-stores/monocard/functions/ssr/content/info.json +0 -18
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/HowItWorksAccordion.vue +0 -32
- package/ecomplus-stores/monocard/functions/ssr/src/components/TheHeader.vue +0 -42
- package/ecomplus-stores/monocard/functions/ssr/src/components/TopBar.vue +0 -10
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/PagesHeader.astro +0 -51
- package/packages/storefront/dist/client/_astro/PitchBar.16431255.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.7967a383.js +0 -4
- package/packages/storefront/dist/client/_astro/_...slug_.61014c4c.css +0 -1
- package/packages/storefront/dist/client/_astro/client.3ab4cffd.js +0 -1
- package/packages/storefront/dist/client/_astro/index.140ec818.js +0 -1
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.b4764bdb.js +0 -1
- package/packages/storefront/dist/client/assets/icons/bootstrap-icons/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/feather-icons/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/font-awesome/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/line-awesome/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/tabler-icons/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/workbox-e2ee76b5.js +0 -1
- /package/ecomplus-stores/monocard/functions/ssr/content/{social.json → metatags.json} +0 -0
- /package/ecomplus-stores/monocard/functions/ssr/src/{pages/monocard.astro → layouts/Checkout.astro} +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import Base from '@@sf/layouts/Base.astro';
|
|
4
4
|
import InlineScripts from '~/scripts/InlineScripts.astro';
|
|
5
|
+
import '@fontsource/inter/variable-full.css';
|
|
5
6
|
|
|
6
7
|
export interface Props {
|
|
7
8
|
pageContext: PageContext;
|
|
@@ -25,22 +26,13 @@ const { pageContext, title } = Astro.props as Props;
|
|
|
25
26
|
font-display: swap;
|
|
26
27
|
}
|
|
27
28
|
:root {
|
|
28
|
-
--font-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
--font-brand: "Favorit", sans-serif;
|
|
30
|
+
--c-on-primary: rgb(0, 0, 0);
|
|
31
|
+
--un-prose-links: rgb(var(--rgb-primary-700));
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
a:not([role=button]):is([aria-current], :hover, :active, :focus) {
|
|
36
|
-
--color: var(--primary-900);
|
|
37
|
-
}
|
|
38
|
-
@media only screen and (prefers-color-scheme: dark) {
|
|
39
|
-
:root:not([data-theme=light]) a:not([role=button]) {
|
|
40
|
-
--color: var(--primary-500);
|
|
41
|
-
}
|
|
42
|
-
:root:not([data-theme=light]) a:not([role=button]):is([aria-current], :hover, :active, :focus) {
|
|
43
|
-
--color: var(--primary-700);
|
|
33
|
+
@supports (font-variation-settings: normal) {
|
|
34
|
+
:root {
|
|
35
|
+
--custom-font-sans: "InterVariable";
|
|
44
36
|
}
|
|
45
37
|
}
|
|
46
38
|
html {
|
|
@@ -49,10 +41,9 @@ html {
|
|
|
49
41
|
body {
|
|
50
42
|
overflow-x: hidden;
|
|
51
43
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
font-weight: 700;
|
|
44
|
+
a, button, button > * {
|
|
45
|
+
transition: background-color var(--transition),
|
|
46
|
+
color var(--transition), border-color var(--transition),
|
|
47
|
+
opacity var(--transition), transform var(--transition-fast);
|
|
57
48
|
}
|
|
58
49
|
</style>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import Base from '~/layouts/Base.astro';
|
|
4
|
-
import
|
|
4
|
+
import Picture from '@@sf/ssr/Picture.astro';
|
|
5
|
+
import Header from '@@sf/layouts/PagesHeader.astro';
|
|
5
6
|
|
|
6
7
|
export interface Props {
|
|
7
8
|
pageContext: PageContext;
|
|
@@ -9,11 +10,23 @@ export interface Props {
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
const { pageContext, title } = Astro.props as Props;
|
|
13
|
+
const { settings } = pageContext;
|
|
12
14
|
---
|
|
13
15
|
|
|
14
16
|
<Base pageContext={pageContext} title={title}>
|
|
15
17
|
<slot name="header">
|
|
16
|
-
<Header pageContext={pageContext}
|
|
18
|
+
<Header pageContext={pageContext}>
|
|
19
|
+
<Picture
|
|
20
|
+
slot="logo-picture"
|
|
21
|
+
src={settings.logo}
|
|
22
|
+
alt={settings.name}
|
|
23
|
+
widths={[300]}
|
|
24
|
+
sizes="150px"
|
|
25
|
+
fetchpriority="high"
|
|
26
|
+
loading="eager"
|
|
27
|
+
class="hover:drop-shadow-sm"
|
|
28
|
+
/>
|
|
29
|
+
</Header>
|
|
17
30
|
</slot>
|
|
18
31
|
<slot />
|
|
19
32
|
<script>
|
|
@@ -1,34 +1,54 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import api from '@cloudcommerce/api';
|
|
4
|
-
import LottiePhoneNFC from '
|
|
5
|
-
import
|
|
6
|
-
import DemoVideo from '~/components/DemoVideo.vue';
|
|
4
|
+
import LottiePhoneNFC from '~/components/LottiePhoneNFC.vue';
|
|
5
|
+
import CasesGrid from '~/components/CasesGrid.astro';
|
|
7
6
|
|
|
8
7
|
export interface Props {
|
|
9
8
|
pageContext: PageContext;
|
|
10
9
|
}
|
|
11
10
|
|
|
11
|
+
const { settings } = Astro.props.pageContext;
|
|
12
12
|
const products = (await api.get('products')).data.result;
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
<main
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<div class="grid grid-cols-1 lg:grid-cols-7
|
|
19
|
-
<div class="lg:col-span-3 pt-5 lg:py-18 xl:py-20 text-right">
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
<main style="min-height: 3000px;">
|
|
16
|
+
<section class="bg-white">
|
|
17
|
+
<article class="container mx-auto px-8">
|
|
18
|
+
<div class="grid grid-cols-1 lg:grid-cols-7">
|
|
19
|
+
<div class="lg:col-span-3 pt-5 lg:py-18 xl:py-20 lg:text-right prose">
|
|
20
|
+
<h3 class="text-5xl lg:text-7xl 2xl:text-8xl font-bold mt-7">
|
|
21
|
+
A melhor forma de se
|
|
22
|
+
<span class="text-transparent bg-clip-text bg-gradient-to-br
|
|
23
|
+
from-base-900 to-secondary-500">
|
|
24
|
+
conectar</span>
|
|
25
|
+
</h3>
|
|
26
|
+
<h2 class="text-lg lg:text-lg 2xl:text-2xl font-medium">
|
|
27
|
+
O Monocard é o cartão de visitas tecnológico e digital
|
|
28
|
+
perfeito para pessoas e empresas
|
|
29
|
+
</h2>
|
|
30
|
+
<div class="not-prose mt-5 flex gap-3 lg:gap-4 text-center lg:justify-end
|
|
31
|
+
text-lg sm:text-xl lg:text-3xl font-brand lowercase">
|
|
32
|
+
<a role="button" href="/#produtos"
|
|
33
|
+
class="primary lg:border-4 border-primary
|
|
34
|
+
hover:border-primary-bold active:primary-bold
|
|
35
|
+
basis-1/2 lg:basis-auto rounded-full px-4 py-2.5 xl:px-7 xl:py-4">
|
|
36
|
+
Compre agora
|
|
37
|
+
</a>
|
|
38
|
+
<a role="button" href={settings.metafields.business_lp_url}
|
|
39
|
+
class="bg-primary/40 text-primary-900 lg:border-4 border-primary/20
|
|
40
|
+
hover:primary hover:border-primary-bold active:primary-bold
|
|
41
|
+
basis-1/2 lg:basis-auto rounded-full px-4 py-2.5 xl:px-7 xl:py-4">
|
|
42
|
+
<i class="i-chat-1-line"></i> Empresas
|
|
43
|
+
</a>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="hidden lg:block pt-7 xl:pt-10 text-sm">
|
|
46
|
+
<div class="flex items-center lg:justify-end">
|
|
27
47
|
<b class="text-lg">Instantâneo</b>
|
|
28
48
|
<i class="i-wpf:define-location text-2xl ml-2"></i>
|
|
29
49
|
</div>
|
|
30
50
|
<div class="mt-2 mb-4">Compartilhe suas informações com um toque</div>
|
|
31
|
-
<div class="flex items-center justify-end">
|
|
51
|
+
<div class="flex items-center lg:justify-end">
|
|
32
52
|
<b class="text-lg">Fácil e compatível</b>
|
|
33
53
|
<i class="i-wpf:nfc-checkpoint text-2xl ml-2"></i>
|
|
34
54
|
<i class="i-wpf:android text-2xl ml-1"></i>
|
|
@@ -39,25 +59,26 @@ const products = (await api.get('products')).data.result;
|
|
|
39
59
|
<br>Funciona em Android e iPhone
|
|
40
60
|
</div>
|
|
41
61
|
</div>
|
|
62
|
+
<div class="lg:hidden pt-5 flex gap-2 justify-between items-center">
|
|
63
|
+
<div>Instantâneo, fácil e compatível</div>
|
|
64
|
+
<div class="text-2xl">
|
|
65
|
+
<i class="i-wpf:nfc-checkpoint"></i>
|
|
66
|
+
<i class="i-wpf:android"></i>
|
|
67
|
+
<i class="i-wpf:iphone"></i>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
42
70
|
</div>
|
|
43
|
-
<div class="lg:col-span-4">
|
|
71
|
+
<div class="lg:col-span-4 mt-5 lg:mt-7 h-96 sm:h-auto">
|
|
44
72
|
<LottiePhoneNFC client:only />
|
|
45
73
|
</div>
|
|
46
74
|
</div>
|
|
47
|
-
</
|
|
48
|
-
</
|
|
49
|
-
<section class="
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
No momento da compra você decide o Monocard que mais combina com
|
|
55
|
-
você ou sua empresa. Opte pela versão clássica ou personalizada.
|
|
56
|
-
</p>
|
|
57
|
-
<HowItWorksAccordion />
|
|
58
|
-
</div>
|
|
59
|
-
<DemoVideo />
|
|
60
|
-
</div>
|
|
75
|
+
</article>
|
|
76
|
+
</section>
|
|
77
|
+
<section class="bg-white pb-9">
|
|
78
|
+
<CasesGrid />
|
|
79
|
+
</section>
|
|
80
|
+
<section class="bg-gradient-to-br from-base-50 to-base-200 h-96">
|
|
81
|
+
|
|
61
82
|
</section>
|
|
62
|
-
<section id="
|
|
83
|
+
<section id="produtos"></section>
|
|
63
84
|
</main>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
import api from '@cloudcommerce/api';
|
|
3
|
-
import loadPageContext, { PageContext } from '
|
|
4
|
-
import WildcardMain from '~/main/Wildcard.astro';
|
|
3
|
+
import loadPageContext, { PageContext } from '@@sf/ssr-context';
|
|
5
4
|
import PagesLayout from '~/layouts/Pages.astro';
|
|
5
|
+
import WildcardMain from '~/main/Wildcard.astro';
|
|
6
6
|
|
|
7
7
|
if (String(Astro.params.slug).endsWith('.css.map')) {
|
|
8
8
|
return new Response(null, { status: 404 });
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import { MotionPlugin } from '@vueuse/motion';
|
|
3
|
+
import _createApp from '@@sf/pages/_vue';
|
|
4
|
+
|
|
5
|
+
const createApp = (app: App) => {
|
|
6
|
+
app.use(MotionPlugin);
|
|
7
|
+
return _createApp(app);
|
|
8
|
+
};
|
|
2
9
|
|
|
3
10
|
export default createApp;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import loadPageContext, { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import PagesLayout from '~/layouts/Pages.astro';
|
|
4
4
|
import MonocardCustomizer from '~/components/MonocardCustomizer.vue';
|
|
5
|
-
import HowItWorksAccordion from '~/components/HowItWorksAccordion.vue';
|
|
6
5
|
import DemoVideo from '~/components/DemoVideo.vue';
|
|
7
6
|
|
|
8
7
|
let pageContext: PageContext;
|
|
@@ -29,7 +28,6 @@ window.monocardWithLogo = ${JSON.stringify(monocardWithLogo)};`;
|
|
|
29
28
|
<script is:inline set:html={inlineClientJS} />
|
|
30
29
|
<MonocardCustomizer client:load {monocard} />
|
|
31
30
|
<div class="max-w-3xl mx-auto mt-14">
|
|
32
|
-
<HowItWorksAccordion isStartOpen={true} />
|
|
33
31
|
<div class="my-10 text-center">
|
|
34
32
|
<a id="como-funciona"></a>
|
|
35
33
|
<DemoVideo width="900" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
import loadPageContext, { PageContext } from '
|
|
2
|
+
import loadPageContext, { PageContext } from '@@sf/ssr-context';
|
|
3
|
+
import PagesLayout from '~/layouts/Pages.astro';
|
|
3
4
|
import FallbackMain from '~/main/Fallback.astro';
|
|
4
|
-
import PagesLayout from '../layouts/Pages.astro';
|
|
5
5
|
|
|
6
6
|
let pageContext: PageContext;
|
|
7
7
|
try {
|
|
@@ -9,6 +9,8 @@ try {
|
|
|
9
9
|
} catch (err) {
|
|
10
10
|
return err.astroResponse;
|
|
11
11
|
}
|
|
12
|
+
|
|
13
|
+
// export const prerender = true;
|
|
12
14
|
---
|
|
13
15
|
|
|
14
16
|
<!DOCTYPE html>
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
+
process.env.STOREFRONT_BASE_DIR = __dirname;
|
|
2
|
+
|
|
1
3
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
-
|
|
4
|
+
const defaultConfig = require('@cloudcommerce/storefront/tailwind.config.cjs');
|
|
5
|
+
|
|
6
|
+
const themeOptions = {
|
|
7
|
+
baseColor: 'gray',
|
|
8
|
+
generalIcons: 'ri',
|
|
9
|
+
iconAliases: {
|
|
10
|
+
'shopping-cart': 'shopping-bag-3-line',
|
|
11
|
+
cashback: 'arrow-go-back-fill',
|
|
12
|
+
menu: 'menu-3-line',
|
|
13
|
+
account: 'account-pin-circle-line',
|
|
14
|
+
logout: 'logout-circle-r-line',
|
|
15
|
+
close: 'close-fill',
|
|
16
|
+
favorites: 'heart-2-line',
|
|
17
|
+
'chevron-down': 'arrow-down-s-line',
|
|
18
|
+
'chevron-up': 'arrow-up-s-line',
|
|
19
|
+
'chevron-right': 'arrow-right-s-line',
|
|
20
|
+
'chevron-left': 'arrow-left-s-line',
|
|
21
|
+
'arrow-right': 'arrow-right-line',
|
|
22
|
+
'arrow-left': 'arrow-left-line',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const genTailwindConfig = () => defaultConfig.genTailwindConfig(themeOptions);
|
|
26
|
+
|
|
27
|
+
module.exports = {
|
|
28
|
+
...genTailwindConfig(),
|
|
29
|
+
themeOptions,
|
|
30
|
+
};
|
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
"paths": {
|
|
6
6
|
"@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
|
|
7
7
|
"@@sf/*": ["./node_modules/@cloudcommerce/storefront/src/lib/*"],
|
|
8
|
-
"@@components/*": [
|
|
9
|
-
"./src/components/*",
|
|
10
|
-
"./node_modules/@cloudcommerce/storefront/src/lib/components/*",
|
|
11
|
-
],
|
|
12
8
|
"~/*": ["./src/*"],
|
|
13
9
|
"content/*": ["./content/*"],
|
|
14
10
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
2
|
const { genUnoCSSConfig } = require('@cloudcommerce/storefront/uno.config');
|
|
3
|
+
const { themeOptions } = require('./tailwind.config.cjs');
|
|
3
4
|
|
|
4
|
-
export default genUnoCSSConfig();
|
|
5
|
+
export default genUnoCSSConfig(themeOptions);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
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>",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"@commitlint/cli": "^17.4.4",
|
|
20
20
|
"@commitlint/config-conventional": "^17.4.4",
|
|
21
21
|
"@commitlint/rules": "^17.4.4",
|
|
22
|
-
"@types/node": "^18.14.
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
24
|
-
"@typescript-eslint/parser": "^5.
|
|
25
|
-
"esbuild": "^0.17.
|
|
26
|
-
"eslint": "^8.
|
|
22
|
+
"@types/node": "^18.14.2",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.53.0",
|
|
24
|
+
"@typescript-eslint/parser": "^5.53.0",
|
|
25
|
+
"esbuild": "^0.17.10",
|
|
26
|
+
"eslint": "^8.35.0",
|
|
27
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
28
28
|
"eslint-plugin-import": "^2.27.5",
|
|
29
29
|
"eslint-plugin-vue": "^9.9.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"turbo": "1.6.3",
|
|
34
34
|
"typescript": "^4.9.5",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
|
-
"vite": "^4.1.
|
|
37
|
-
"vitest": "^0.
|
|
38
|
-
"zx": "^7.
|
|
36
|
+
"vite": "^4.1.4",
|
|
37
|
+
"vitest": "^0.29.1",
|
|
38
|
+
"zx": "^7.2.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/correios.js",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
|
-
"axios": "^1.3.
|
|
23
|
+
"axios": "^1.3.4",
|
|
24
24
|
"xml2js": "^0.4.23"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-datafrete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
|
|
6
6
|
"main": "lib/datafrete.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"@ecomplus/utils": "1.5.0-rc.3",
|
|
29
|
-
"axios": "^1.3.
|
|
29
|
+
"axios": "^1.3.4",
|
|
30
30
|
"firebase-admin": "^11.5.0",
|
|
31
31
|
"firebase-functions": "^4.2.1"
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-frenet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
|
|
6
6
|
"main": "lib/frenet.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.3.
|
|
28
|
+
"axios": "^1.3.4",
|
|
29
29
|
"firebase-admin": "^11.5.0",
|
|
30
30
|
"firebase-functions": "^4.2.1"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Galax Pay for recurring payments",
|
|
6
6
|
"main": "lib/galaxpay.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.3.
|
|
28
|
+
"axios": "^1.3.4",
|
|
29
29
|
"firebase-admin": "^11.5.0",
|
|
30
30
|
"firebase-functions": "^4.2.1"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-google-analytics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to send carts/orders events to GA Measurement Protocol",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"axios": "^1.3.
|
|
24
|
+
"axios": "^1.3.4",
|
|
25
25
|
"firebase-admin": "^11.5.0",
|
|
26
26
|
"firebase-functions": "^4.2.1"
|
|
27
27
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-infinitepay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate InfinitePay",
|
|
6
6
|
"main": "lib/infinitepay.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.3.
|
|
28
|
+
"axios": "^1.3.4",
|
|
29
29
|
"crypto-js": "^4.1.1",
|
|
30
30
|
"firebase-admin": "^11.5.0",
|
|
31
31
|
"firebase-functions": "^4.2.1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-jadlog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
|
-
"axios": "^1.3.
|
|
23
|
+
"axios": "^1.3.4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-melhor-envio",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Melhor Envio",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.3.
|
|
28
|
+
"axios": "^1.3.4",
|
|
29
29
|
"firebase-admin": "^11.5.0",
|
|
30
30
|
"firebase-functions": "^4.2.1"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-mercadopago",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.8",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
|
|
6
6
|
"main": "lib/mercadopago.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.3.
|
|
28
|
+
"axios": "^1.3.4",
|
|
29
29
|
"firebase-admin": "^11.5.0",
|
|
30
30
|
"firebase-functions": "^4.2.1"
|
|
31
31
|
},
|