From b8f7c13f3a406ae75fb921a5e3cfa544591e99e2 Mon Sep 17 00:00:00 2001 From: jagruti Date: Fri, 27 Oct 2023 12:26:00 +0530 Subject: [PATCH] Revert deployment changes --- .../services/WhatWeOfferDesktop.vue | 16 +--- .../components/services/WhatWeOfferMobile.vue | 14 +--- vue-frontend/src/config.js | 1 + vue-frontend/src/config.prod.js | 1 + .../src/pages/android-app-development.vue | 81 +++++++++++-------- 5 files changed, 56 insertions(+), 57 deletions(-) diff --git a/vue-frontend/src/components/services/WhatWeOfferDesktop.vue b/vue-frontend/src/components/services/WhatWeOfferDesktop.vue index 83d06e71c..01cf90232 100644 --- a/vue-frontend/src/components/services/WhatWeOfferDesktop.vue +++ b/vue-frontend/src/components/services/WhatWeOfferDesktop.vue @@ -18,16 +18,8 @@
- import("@/components/android-app-development/CaseStudySection.vue"), + import("@/components/android-app-development/CaseStudySection.vue") ); const SuccessStorySection = defineAsyncComponent(() => - import("@/components/android-app-development/SuccessStorySection.vue"), + import("@/components/android-app-development/SuccessStorySection.vue") ); const FaqSection = defineAsyncComponent(() => - import("@/components/android-app-development/FaqSection.vue"), + import("@/components/android-app-development/FaqSection.vue") ); const PinkCtaSection = defineAsyncComponent(() => - import("@/components/android-app-development/PinkCtaSection.vue"), + import("@/components/android-app-development/PinkCtaSection.vue") ); const CtaSection = defineAsyncComponent(() => - import("@/components/android-app-development/CtaSection.vue"), + import("@/components/android-app-development/CtaSection.vue") ); const BlackCtaSection = defineAsyncComponent(() => - import("@/components/android-app-development/BlackCtaSection.vue"), + import("@/components/android-app-development/BlackCtaSection.vue") ); const BlogSection = defineAsyncComponent(() => - import("@/components/android-app-development/BlogSection.vue"), + import("@/components/android-app-development/BlogSection.vue") ); const NewFooter = defineAsyncComponent(() => - import("@/components/partials/NewFooter.vue"), + import("@/components/partials/NewFooter.vue") ); export default { + data() { + return { + event: "", + events: { + landing: "view_android_development_landing_section", + footer: "view_android_development_footer", + development: "view_android_development_section", + casestudy: "view_android_development_casestudy_section", + faq: "view_android_development_faq_section", + successstory: "view_android_development_success_story_section", + cta1: "view_android_development_cta_section", + cta2: "view_android_development_cta2_section", + cta3: "view_android_development_cta3_section", + }, + }; + }, setup() { var seoData = config.ANDRIOD_APP_DEVELOPMENT_SEO_META_DATA; useMeta({ + meta: [ + { + name: "robots", + content: "noindex, nofollow", + vmid: "robots", + }, + ], title: seoData.title, description: seoData.description, og: { @@ -82,30 +105,6 @@ export default { CtaSection, NewFooter, }, - data() { - return { - event: "", - events: { - landing: "view_android_development_landing_section", - footer: "view_android_development_footer", - development: "view_android_development_section", - casestudy: "view_android_development_casestudy_section", - faq: "view_android_development_faq_section", - successstory: "view_android_development_success_story_section", - cta1: "view_android_development_cta_section", - cta2: "view_android_development_cta2_section", - cta3: "view_android_development_cta3_section", - }, - }; - }, - inject: ["mixpanel"], - mounted() { - window.addEventListener("scroll", this.sendEvent); - this.mixpanel.track("view_android_development_page"); - }, - unmounted() { - window.removeEventListener("scroll", this.sendEvent); - }, methods: { sendEvent() { const event = this.events[elementInViewPort(this.$refs)]; @@ -115,5 +114,23 @@ export default { } }, }, + beforeRouteEnter(to, from, next) { + if (!config.SHOW_ANDROID_APP_DEVELOPMENT_PAGE) { + next({ + name: "Error404Page", + params: { pathMatch: "/android-app-development" }, + }); + } else { + next(); + } + }, + inject: ["mixpanel"], + mounted() { + window.addEventListener("scroll", this.sendEvent); + this.mixpanel.track("view_android_development_page"); + }, + unmounted() { + window.removeEventListener("scroll", this.sendEvent); + }, };