diff --git a/.env.example b/.env.example index d12f0310..b8bcd2f0 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -NUXT_PUBLIC_API_URL=https://demo-***REMOVED***.***REMOVED*** +NUXT_PUBLIC_API_URL=https://api.heseya.com NUXT_PUBLIC_DIRECTUS_URL=https://cms.heseya.com NUXT_PUBLIC_PRICE_TRACKER_URL=https://main-price-tracker.app.***REMOVED*** NUXT_PUBLIC_PRODUCTION=false diff --git a/README.md b/README.md index 8093332f..aa8cf0f6 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ Template uses 3 different APIs. You can change the url of each API by setting th - `PRICE_TRACKER_URL` is used by the application to fetch data from the Price Tracker API to fullfill the Omnibus requirement. ```env -API_URL=https://demo-***REMOVED***.***REMOVED*** +API_URL=https://api.heseya.com DIRECTUS_URL=https://cms.heseya.com -PRICE_TRACKER_URL=https://main-price-tracker.app.***REMOVED*** +PRICE_TRACKER_URL=https://main-price-tracker.heseya.com ``` ### Custom pages diff --git a/app.vue b/app.vue index bbf86e22..1f472c55 100644 --- a/app.vue +++ b/app.vue @@ -18,6 +18,7 @@ diff --git a/components/auth/RegisterForm.vue b/components/auth/RegisterForm.vue index 70a9f463..85b751ae 100644 --- a/components/auth/RegisterForm.vue +++ b/components/auth/RegisterForm.vue @@ -61,6 +61,8 @@ {{ errorMessage || consentsListError }} + +
{ isLoading.value = true try { - const user = await heseya.Auth.register(registerFormDto.value) + const recaptchaToken = await getRecaptchaToken(recaptchaPublic, 'register') + const user = await heseya.Auth.register({ + ...registerFormDto.value, + captcha_token: recaptchaToken, + }) if (newsletterConsent.value) newsletterSubscribe(user.email) ev.emit(HeseyaEvent.Register, user) diff --git a/components/base/CookiesBar.vue b/components/base/CookiesBar.vue index 0bb4aa3c..9278455f 100644 --- a/components/base/CookiesBar.vue +++ b/components/base/CookiesBar.vue @@ -147,6 +147,7 @@ import { useConfigStore } from '~/store/config' const t = useLocalI18n() const config = useConfigStore() const localePath = useLocalePath() +const { $enableGtm } = useNuxtApp() const optInForm = reactive({ required: true, @@ -180,6 +181,8 @@ const setCookies = ([required, functional, analytics, ads]: [ functionalCookie.value = functional ? 1 : 0 analyticsCookie.value = analytics ? 1 : 0 adsCookie.value = ads ? 1 : 0 + + $enableGtm() } // Tabs diff --git a/components/base/FooterSocialmedia.vue b/components/base/FooterSocialmedia.vue index b750d6d7..bd9de643 100644 --- a/components/base/FooterSocialmedia.vue +++ b/components/base/FooterSocialmedia.vue @@ -3,59 +3,10 @@ -