cloudcommerce 0.20.2 → 0.22.0
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/.gitmodules +3 -0
- package/.nvmrc +1 -0
- package/.vscode/settings.json +2 -1
- package/CHANGELOG.md +44 -0
- package/action.yml +37 -13
- package/ecomplus-stores/iluminim/.devcontainer/devcontainer.json +30 -0
- package/ecomplus-stores/iluminim/.eslintrc.cjs +3 -0
- package/ecomplus-stores/iluminim/.firebaserc +5 -0
- package/ecomplus-stores/iluminim/.github/renovate.json +5 -0
- package/ecomplus-stores/iluminim/.github/workflows/build-and-deploy.yml +36 -0
- package/ecomplus-stores/iluminim/.github/workflows/calibreapp-image-actions.yml +23 -0
- package/ecomplus-stores/iluminim/.gitpod.yml +12 -0
- package/ecomplus-stores/iluminim/.nvmrc +1 -0
- package/ecomplus-stores/iluminim/.vscode/extensions.json +8 -0
- package/ecomplus-stores/iluminim/.vscode/launch.json +11 -0
- package/ecomplus-stores/iluminim/.vscode/settings.json +10 -0
- package/ecomplus-stores/iluminim/README.md +113 -0
- package/ecomplus-stores/iluminim/README.pt-BR.md +113 -0
- package/ecomplus-stores/iluminim/functions/config.json +3 -0
- package/ecomplus-stores/iluminim/functions/example.env +10 -0
- package/ecomplus-stores/iluminim/functions/many/index.js +14 -0
- package/ecomplus-stores/iluminim/functions/many/package.json +22 -0
- package/ecomplus-stores/iluminim/functions/ssr/.eslintrc.cjs +6 -0
- package/ecomplus-stores/iluminim/functions/ssr/astro.config.mjs +4 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/blog/.gitkeep +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/extra-pages/.gitkeep +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/layout.json +33 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/pages/home.json +70 -0
- package/ecomplus-stores/iluminim/functions/ssr/content/settings.json +49 -0
- package/ecomplus-stores/iluminim/functions/ssr/index.js +18 -0
- package/ecomplus-stores/iluminim/functions/ssr/package.json +31 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/admin/.gitkeep +2 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cms-preview.css +274 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cms.css +114 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/cvv.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/img-placeholder.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/payments.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/assets/ssl-safe.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/icon.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/large-icon.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/banner-chamada-desktop-9x81zmd91q.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/banner2.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/chamada-mobile-q1c6om6jx4.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/ecom-icon.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/headphone.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/logo.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/og-image.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/passion.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/rect8589.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/rect859.png +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/img/uploads/rect89.webp +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/public/robots.txt +8 -0
- package/ecomplus-stores/iluminim/functions/ssr/scripts/build.sh +14 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/assets/style.css +65 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +104 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Banner.vue +59 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/BannersGrid.astro +25 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/CartSidebar.vue +35 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Countdown.vue +79 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/HeroSlider.vue +52 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/PitchBar.vue +57 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Prices.vue +96 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductCard.vue +118 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductShelf.vue +60 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductsCountdown.vue +20 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/SearchModal.vue +6 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +137 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeaderMenu.vue +58 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeaderSubmenu.vue +88 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenav.vue +61 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenavCategory.vue +78 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/env.d.ts +13 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/Base.astro +16 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/Checkout.astro +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/layouts/PageHeader.astro +33 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Fallback.astro +10 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Home.astro +49 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Sections.astro +42 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/main/Wildcard.astro +18 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/[...slug].astro +40 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/_vue.ts +3 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/app/account.astro +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/app/index.astro +0 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/fallback.astro +25 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/pages/index.astro +35 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/scripts/InlineScripts.astro +10 -0
- package/ecomplus-stores/iluminim/functions/ssr/tailwind.config.cjs +13 -0
- package/ecomplus-stores/iluminim/functions/ssr/tsconfig.json +12 -0
- package/ecomplus-stores/iluminim/functions/ssr/uno.config.cjs +5 -0
- package/ecomplus-stores/iluminim/functions/with-apps/index.js +12 -0
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +22 -0
- package/ecomplus-stores/iluminim/package.json +28 -0
- package/ecomplus-stores/iluminim/scripts/install.sh +14 -0
- package/ecomplus-stores/monocard/.eslintrc.cjs +3 -0
- package/ecomplus-stores/monocard/.nvmrc +1 -0
- package/ecomplus-stores/tia-sonia/.eslintrc.cjs +3 -0
- package/ecomplus-stores/tia-sonia/.nvmrc +1 -0
- package/package.json +4 -4
- package/packages/api/package.json +1 -1
- package/packages/api/types.d.ts +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 +1 -1
- 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/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/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/config/firebase.json +10 -0
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/lib/en_us/i19hour.txt +1 -0
- package/packages/i18n/lib/en_us/i19hours.txt +1 -0
- package/packages/i18n/lib/en_us/i19milliseconds.txt +1 -0
- package/packages/i18n/lib/en_us/i19minute.txt +1 -0
- package/packages/i18n/lib/en_us/i19minutes.txt +1 -0
- package/packages/i18n/lib/en_us/i19second.txt +1 -0
- package/packages/i18n/lib/en_us/i19seconds.txt +1 -0
- package/packages/i18n/lib/en_us.d.ts +7 -0
- package/packages/i18n/lib/en_us.js +7 -0
- package/packages/i18n/lib/en_us.js.map +1 -1
- package/packages/i18n/lib/pt_br/i19home.txt +1 -1
- package/packages/i18n/lib/pt_br/i19hour.txt +1 -0
- package/packages/i18n/lib/pt_br/i19hours.txt +1 -0
- package/packages/i18n/lib/pt_br/i19milliseconds.txt +1 -0
- package/packages/i18n/lib/pt_br/i19minute.txt +1 -0
- package/packages/i18n/lib/pt_br/i19minutes.txt +1 -0
- package/packages/i18n/lib/pt_br/i19second.txt +1 -0
- package/packages/i18n/lib/pt_br/i19seconds.txt +1 -0
- package/packages/i18n/lib/pt_br.d.ts +8 -1
- package/packages/i18n/lib/pt_br.js +8 -1
- package/packages/i18n/lib/pt_br.js.map +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/i18n/src/en_us.ts +7 -0
- package/packages/i18n/src/pt_br.ts +8 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +24 -18
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/ssr/src/firebase/serve-storefront.ts +25 -18
- package/packages/storefront/.eslintrc.cjs +8 -1
- package/packages/storefront/client.d.ts +1 -19
- package/packages/storefront/dist/client/_astro/HeroSlider.0890631f.js +1 -0
- package/packages/storefront/dist/client/_astro/{ShopHeader.0c884bbe.js → ShopHeader.82ae97a5.js} +1 -1
- package/packages/storefront/dist/client/_astro/_...slug_.c85b8978.css +1 -0
- package/packages/storefront/dist/client/_astro/{client.8035a95a.js → client.0fb6b44e.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.9d9d7ac4.js → hoisted.572313d6.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/_...7e1df40a.mjs +34 -0
- package/packages/storefront/dist/server/chunks/{account@_@astro.89e4cf60.mjs → account@_@astro.5f1dba7a.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{astro.45d3047f.mjs → astro.2d3ebf0f.mjs} +560 -511
- package/packages/storefront/dist/server/chunks/{endpoint@_@js.f880a152.mjs → endpoint@_@js.80de0568.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{fallback@_@astro.89538855.mjs → fallback@_@astro.02a45b47.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{index@_@astro.56fdd6da.mjs → index@_@astro.23b50301.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/{index@_@astro.548cf7ad.mjs → index@_@astro.7cb07e52.mjs} +7 -8
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.bde9380b.mjs → _...slug_.astro.4358f614.mjs} +92 -104
- package/packages/storefront/dist/server/chunks/pages/{account.astro.f07cf19e.mjs → account.astro.afae5a12.mjs} +6 -6
- package/packages/storefront/dist/server/chunks/pages/{endpoint.js.d4e37801.mjs → endpoint.js.60fd21aa.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{fallback.astro.e2e8a0e4.mjs → fallback.astro.e5566925.mjs} +10 -10
- package/packages/storefront/dist/server/chunks/pages/{index.astro.3760ebe3.mjs → index.astro.5bc6b9d8.mjs} +34 -32
- package/packages/storefront/dist/server/entry.mjs +13 -12
- package/packages/storefront/dist/server/renderers.mjs +7 -8
- package/packages/storefront/package.json +2 -2
- package/packages/storefront/server.d.ts +3 -27
- package/packages/storefront/src/lib/$storefront.d.ts +28 -0
- package/packages/storefront/src/lib/assets/base.css +2 -0
- package/packages/storefront/src/lib/layouts/Base.astro +1 -9
- package/packages/storefront/src/lib/layouts/BaseHead.astro +73 -2
- package/packages/storefront/src/lib/layouts/use-page-main.ts +18 -5
- package/packages/storefront/src/lib/pages/_vue.ts +1 -1
- package/packages/storefront/src/lib/server-data.ts +1 -1
- package/packages/storefront/src/lib/ssr-context.ts +46 -36
- package/packages/storefront/src/vue-globals.d.ts +3 -3
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +2 -2
- package/packages/storefront/dist/client/_astro/HeroSlider.eb156f18.js +0 -1
- package/packages/storefront/dist/client/_astro/_...slug_.c2da43fb.css +0 -1
- package/packages/storefront/dist/server/chunks/_...9e22b578.mjs +0 -35
- package/packages/storefront/src/lib/composables/use-hero-slider.ts +0 -26
- package/packages/storefront/src/lib/layouts/BaseStateJson.astro +0 -68
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
import api from '@cloudcommerce/api';
|
|
3
|
+
import loadRouteContext, { RouteContext } from '@@sf/ssr-context';
|
|
4
|
+
import BaseHead from '@@sf/layouts/BaseHead.astro';
|
|
5
|
+
import Base from '~/layouts/Base.astro';
|
|
6
|
+
import PageHeader from '~/layouts/PageHeader.astro';
|
|
7
|
+
import WildcardMain from '~/main/Wildcard.astro';
|
|
8
|
+
|
|
9
|
+
if (String(Astro.params.slug).endsWith('.css.map')) {
|
|
10
|
+
return new Response(null, { status: 404 });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let routeContext: RouteContext | undefined;
|
|
14
|
+
let loadError: any;
|
|
15
|
+
try {
|
|
16
|
+
routeContext = await loadRouteContext(Astro);
|
|
17
|
+
} catch (err: any) {
|
|
18
|
+
if (err.astroResponse) {
|
|
19
|
+
return err.astroResponse;
|
|
20
|
+
}
|
|
21
|
+
loadError = err;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export async function getStaticPaths() {
|
|
25
|
+
return (await api.get('products?sort=-sales&limit=4&fields=slug'))
|
|
26
|
+
.data.result.map(({ slug }) => ({ params: { slug } }));
|
|
27
|
+
}
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
<!DOCTYPE html>
|
|
31
|
+
<html lang={routeContext?.lang.replace('_', '-')}>
|
|
32
|
+
{routeContext &&
|
|
33
|
+
<Base>
|
|
34
|
+
<BaseHead slot="base-head" />
|
|
35
|
+
<PageHeader />
|
|
36
|
+
<WildcardMain />
|
|
37
|
+
</Base>
|
|
38
|
+
}
|
|
39
|
+
{loadError && <Fragment set:html={loadError.responseHTML} />}
|
|
40
|
+
</html>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
import loadRouteContext, { RouteContext } from '@@sf/ssr-context';
|
|
3
|
+
import BaseHead from '@@sf/layouts/BaseHead.astro';
|
|
4
|
+
import Base from '~/layouts/Base.astro';
|
|
5
|
+
import PageHeader from '~/layouts/PageHeader.astro';
|
|
6
|
+
import FallbackMain from '~/main/Fallback.astro';
|
|
7
|
+
|
|
8
|
+
let routeContext: RouteContext;
|
|
9
|
+
try {
|
|
10
|
+
routeContext = await loadRouteContext(Astro);
|
|
11
|
+
} catch (err: any) {
|
|
12
|
+
return err.astroResponse;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// export const prerender = true;
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
<!DOCTYPE html>
|
|
19
|
+
<html lang={routeContext?.lang.replace('_', '-')}>
|
|
20
|
+
<Base>
|
|
21
|
+
<BaseHead slot="base-head" />
|
|
22
|
+
<PageHeader />
|
|
23
|
+
<FallbackMain />
|
|
24
|
+
</Base>
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
import loadRouteContext, { RouteContext } from '@@sf/ssr-context';
|
|
3
|
+
import BaseHead from '@@sf/layouts/BaseHead.astro';
|
|
4
|
+
import Base from '~/layouts/Base.astro';
|
|
5
|
+
import PageHeader from '~/layouts/PageHeader.astro';
|
|
6
|
+
import HomeMain from '~/main/Home.astro';
|
|
7
|
+
|
|
8
|
+
let routeContext: RouteContext | undefined;
|
|
9
|
+
let loadError: any;
|
|
10
|
+
try {
|
|
11
|
+
routeContext = await loadRouteContext(Astro);
|
|
12
|
+
/* Faster SSR without store categories (default) prefetch:
|
|
13
|
+
routeContext = await loadRouteContext(Astro, {
|
|
14
|
+
apiPrefetchEndpoints: [],
|
|
15
|
+
});
|
|
16
|
+
*/
|
|
17
|
+
} catch (err: any) {
|
|
18
|
+
if (err.astroResponse) {
|
|
19
|
+
return err.astroResponse;
|
|
20
|
+
}
|
|
21
|
+
loadError = err;
|
|
22
|
+
}
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<!DOCTYPE html>
|
|
26
|
+
<html lang={routeContext?.lang.replace('_', '-')}>
|
|
27
|
+
{routeContext &&
|
|
28
|
+
<Base>
|
|
29
|
+
<BaseHead slot="base-head" />
|
|
30
|
+
<PageHeader />
|
|
31
|
+
<HomeMain />
|
|
32
|
+
</Base>
|
|
33
|
+
}
|
|
34
|
+
{loadError && <Fragment set:html={loadError.responseHTML} />}
|
|
35
|
+
</html>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script is:inline>
|
|
2
|
+
window.$firebaseConfig = {
|
|
3
|
+
apiKey: "AIzaSyDY08utue456KIi4tjXomMxX5PC3y1u6cE",
|
|
4
|
+
authDomain: "ecom2iluminim.firebaseapp.com",
|
|
5
|
+
projectId: "ecom2iluminim",
|
|
6
|
+
storageBucket: "ecom2iluminim.appspot.com",
|
|
7
|
+
messagingSenderId: "725654553320",
|
|
8
|
+
appId: "1:725654553320:web:2f0607a479b52ddb783f5d"
|
|
9
|
+
};
|
|
10
|
+
</script>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
process.env.STOREFRONT_BASE_DIR = __dirname;
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
4
|
+
const { genTailwindConfig } = require('@cloudcommerce/storefront/config/storefront.tailwind.cjs');
|
|
5
|
+
|
|
6
|
+
const themeOptions = {
|
|
7
|
+
// generalIcons: 'tabler',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
...genTailwindConfig(themeOptions),
|
|
12
|
+
themeOptions,
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@cloudcommerce/storefront/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"paths": {
|
|
6
|
+
"@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
|
|
7
|
+
"@@sf/*": ["./node_modules/@cloudcommerce/storefront/src/lib/*"],
|
|
8
|
+
"~/*": ["./src/*"],
|
|
9
|
+
"content/*": ["./content/*"],
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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/modules/firebase';
|
|
11
|
+
|
|
12
|
+
export * from '@cloudcommerce/events/firebase';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "iluminim-with-apps",
|
|
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/events": "^0.21.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.21.0",
|
|
20
|
+
"@cloudcommerce/modules": "^0.21.0"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ecomplus-stores/iluminim",
|
|
3
|
+
"private": true,
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "E-Com Plus Cloud Commerce starter store",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "cloudcommerce",
|
|
8
|
+
"logs": "cloudcommerce logs",
|
|
9
|
+
"serve": "cloudcommerce serve",
|
|
10
|
+
"shell": "cloudcommerce shell",
|
|
11
|
+
"start": "cloudcommerce start",
|
|
12
|
+
"build": "cloudcommerce build",
|
|
13
|
+
"predeploy": "cloudcommerce predeploy",
|
|
14
|
+
"deploy": "cloudcommerce deploy",
|
|
15
|
+
"login": "cloudcommerce login",
|
|
16
|
+
"setup": "bash scripts/install.sh && cloudcommerce setup",
|
|
17
|
+
"setup:quiet": "cloudcommerce setup --no-deploy --no-commit"
|
|
18
|
+
},
|
|
19
|
+
"main": "functions/index.js",
|
|
20
|
+
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
21
|
+
"license": "Apache 2.0 with Commons Clause",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@cloudcommerce/cli": "^0.21.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.0",
|
|
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>",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@commitlint/cli": "^17.6.
|
|
20
|
-
"@commitlint/config-conventional": "^17.6.
|
|
21
|
-
"@commitlint/rules": "^17.6.
|
|
19
|
+
"@commitlint/cli": "^17.6.7",
|
|
20
|
+
"@commitlint/config-conventional": "^17.6.7",
|
|
21
|
+
"@commitlint/rules": "^17.6.7",
|
|
22
22
|
"@types/node": "^18.16.19",
|
|
23
23
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
24
24
|
"@typescript-eslint/parser": "^5.62.0",
|
package/packages/api/types.d.ts
CHANGED
|
@@ -355,7 +355,7 @@ type EventsResult<TEndpoint extends EventsEndpoint> = {
|
|
|
355
355
|
|
|
356
356
|
type ResponseBody<
|
|
357
357
|
TConfig extends Config,
|
|
358
|
-
ListFields extends string[] | null = TConfig['endpoint'] extends Resource
|
|
358
|
+
ListFields extends string[] | null = TConfig['endpoint'] extends Resource | 'search/v1'
|
|
359
359
|
? TConfig['params']['fields'] extends string ? '*'
|
|
360
360
|
: TConfig['fields'] extends readonly string[] ? TConfig['fields']
|
|
361
361
|
: null
|
|
@@ -66,6 +66,16 @@
|
|
|
66
66
|
"function": "feeds",
|
|
67
67
|
"region": "us-east4"
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
"source": "/repos/**/{git,contents,issues,branches,pulls,commits}/**",
|
|
71
|
+
"function": "feeds",
|
|
72
|
+
"region": "us-east4"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"source": "/.*/git/**",
|
|
76
|
+
"function": "feeds",
|
|
77
|
+
"region": "us-east4"
|
|
78
|
+
},
|
|
69
79
|
{
|
|
70
80
|
"source": "**/!(*(*.)ico|*(*.)png|*(*.)map)",
|
|
71
81
|
"function": "ssr",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/emails",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce email sender",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@cloudcommerce/firebase": "workspace:*",
|
|
26
26
|
"axios": "^1.4.0",
|
|
27
27
|
"ejs": "^3.1.9",
|
|
28
|
-
"nodemailer": "^6.9.
|
|
28
|
+
"nodemailer": "^6.9.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hour
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hours
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Milliseconds
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Minute
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Minutes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Second
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Seconds
|