flowrix 1.0.1-beta.112 → 1.0.1-beta.114

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flowrix",
3
3
  "configKey": "flowrix",
4
- "version": "1.0.1-beta.112",
4
+ "version": "1.0.1-beta.114",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,7 +1,8 @@
1
- import { useHead, useRequestEvent } from "#imports";
1
+ import { useHead, useRequestEvent, useRoute } from "#imports";
2
2
  import { getRequestURL } from "h3";
3
3
  import { useCompanyProfile } from "../stores/useCompanyProfile.js";
4
4
  export const useApp = () => {
5
+ const route = useRoute();
5
6
  const companyProfile = useCompanyProfile();
6
7
  const gtmId = companyProfile.profile?.data?.integrations["google-tag-manager"]["script"] || "";
7
8
  const tiktok = companyProfile.profile?.data?.integrations["tiktok"]["script"] || "";
@@ -10,6 +11,10 @@ export const useApp = () => {
10
11
  const meta_title = companyProfile.profile?.data?.meta_title || "";
11
12
  const meta_description = companyProfile.profile?.data?.meta_description || "";
12
13
  const robots = companyProfile.profile?.data?.robots || "";
14
+ let recaptcha = "";
15
+ if (companyProfile.profile?.data?.recaptcha) {
16
+ recaptcha = `https://www.google.com/recaptcha/api.js?render=${companyProfile.profile?.data?.recaptcha}`;
17
+ }
13
18
  let websiteurl = "";
14
19
  if (process.server) {
15
20
  const event = useRequestEvent();
@@ -18,6 +23,12 @@ export const useApp = () => {
18
23
  websiteurl = window.location.origin;
19
24
  }
20
25
  useHead({
26
+ link: [
27
+ {
28
+ rel: "canonical",
29
+ href: `${websiteurl}${route.path}`
30
+ }
31
+ ],
21
32
  meta: [
22
33
  {
23
34
  name: "robots",
@@ -25,6 +36,11 @@ export const useApp = () => {
25
36
  }
26
37
  ],
27
38
  script: [
39
+ {
40
+ src: recaptcha,
41
+ async: true,
42
+ defer: true
43
+ },
28
44
  {
29
45
  children: `
30
46
  (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.112",
3
+ "version": "1.0.1-beta.114",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",