Skip to content

Commit

Permalink
Revert deployment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Oct 27, 2023
1 parent 01647f1 commit 9e52529
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 48 deletions.
14 changes: 2 additions & 12 deletions vue-frontend/src/components/services/WhatWeOfferDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,8 @@
<div class="tw-absolute tw-top-[50%] tw-translate-y-[-50%]">
<div
class="tw-py-5"
@click="
[
showServices ? openUrl(service.url) : '',
index == 0 && showAndroidProd ? openUrl(service.url) : '',
]
"
:class="[
showServices ? 'tw-cursor-pointer' : '',
index == 0 && showAndroidProd ? 'tw-cursor-pointer' : '',
]"
@click="showServices ? openUrl(service.url) : ''"
:class="showServices ? 'tw-cursor-pointer' : ''"
>
<span
class="tw-font-inter-semibold tw-text-[1.5rem] tw-leading-9 md:tw-text-[2.25rem] md:tw-leading-[3.43rem] xl:tw-text-[3.125rem] xl:tw-leading-[4.6875rem]"
Expand Down Expand Up @@ -75,12 +67,10 @@ import uiuxdesign800w from "@/assets/images/services/service/uiuxdesign-800w.web
import iosApp800w from "@/assets/images/services/service/iosapp-800w.webp";
import { elementInViewPort } from "@/utils";
import config from "@/config.js";
import prod from "@/config.prod.js";
export default {
data() {
return {
showServices: !config.IS_PROD,
showAndroidProd: prod.IS_PROD,
services: [
{
path: [0, 0],
Expand Down
14 changes: 2 additions & 12 deletions vue-frontend/src/components/services/WhatWeOfferMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,8 @@
<div :class="service.class" class="tw-px-2.5 sm:tw-px-20">
<div
class="tw-py-5 sm:tw-py-6"
@click="
[
showServices ? openUrl(service.url) : '',
index == 0 && showAndroidProd ? openUrl(service.url) : '',
]
"
:class="[
showServices ? 'tw-cursor-pointer' : '',
index == 0 && showAndroidProd ? 'tw-cursor-pointer' : '',
]"
@click="showServices ? openUrl(service.url) : ''"
:class="showServices ? 'tw-cursor-pointer' : ''"
>
<span
class="tw-text-center tw-font-inter-semibold tw-text-[1.5rem] tw-leading-9"
Expand Down Expand Up @@ -72,13 +64,11 @@ import frontend400w from "@/assets/images/services/service/frontend-400w.webp";
import frontend800w from "@/assets/images/services/service/frontend-800w.webp";
import config from "@/config.js";
import prod from "@/config.prod.js";
export default {
data() {
return {
showServices: !config.IS_PROD,
showAndroidProd: prod.IS_PROD,
services: [
{
Expand Down
1 change: 1 addition & 0 deletions vue-frontend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default Object.freeze({
image: "https://dev-stack.canopas.com/apple-touch-icon.png",
},
IS_PROD: false,
SHOW_ANDROID_APP_DEVELOPMENT_PAGE: true,
SHOW_FLUTTER_APP_DEVELOPMENT_PAGE: true,
SHOW_IOS_APP_DEVELOPMENT_PAGE: true,
SMILEPLUS_URL: "https://www.udini.ai/products/smile",
Expand Down
1 change: 1 addition & 0 deletions vue-frontend/src/config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default Object.freeze({
image: "https://dev-stack.canopas.com/apple-touch-icon.png",
},
IS_PROD: true,
SHOW_ANDROID_APP_DEVELOPMENT_PAGE: false,
SHOW_IOS_APP_DEVELOPMENT_PAGE: false,
SHOW_FLUTTER_APP_DEVELOPMENT_PAGE: false,
SMILEPLUS_URL: "https://www.udini.ai/products/smile",
Expand Down
65 changes: 41 additions & 24 deletions vue-frontend/src/pages/android-app-development.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,32 @@ const NewFooter = defineAsyncComponent(() =>
);
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: {
Expand All @@ -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)];
Expand All @@ -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);
},
};
</script>

0 comments on commit 9e52529

Please sign in to comment.