Skip to content

Commit

Permalink
Fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Nov 24, 2023
1 parent c21a062 commit f45f280
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 35 deletions.
10 changes: 5 additions & 5 deletions nuxt-frontend/pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<AboutusVirtue />
<WithCanopasSection ref="withcanopas" />
<ClientReviewSection />
<CTASection />
<CTASection ref="cta" />
</div>
<NewFooter ref="footer" />
<NewFooter />
</div>
</template>

Expand Down Expand Up @@ -43,7 +43,7 @@ const NewFooter = defineAsyncComponent(
const { $mixpanel } = useNuxtApp();
const withcanopas = ref(null);
const footer = ref(null);
const cta = ref(null);
const seoData = config.ABOUT_SEO_META_DATA;
useSeoMeta({
Expand All @@ -58,13 +58,13 @@ useSeoMeta({
let event = "";
let events = {
withcanopas: "view_about_phases",
footer: "view_about_footer",
cta: "view_about_cta",
};
let elements;
onMounted(() => {
elements = ref({
withcanopas: withcanopas,
footer: footer,
cta: cta,
});
window.addEventListener("scroll", sendEvent);
$mixpanel.track("view_about_page");
Expand Down
42 changes: 21 additions & 21 deletions nuxt-frontend/pages/contributions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<AnimatedCreation />
<UnitTest class="md:overflow-hidden" />
<DevOps />
<ExploreDesign class="overflow-hidden" />
<ExploreDesign class="overflow-hidden" ref="design" />
</div>
<NewFooter ref="footer" />
<NewFooter />
</div>
</template>

Expand All @@ -27,34 +27,34 @@ import MobileLandingSection from "@/components/contributions/MobileLanding.vue";
import DesktopLandingSection from "@/components/contributions/DesktopLanding.vue";
import GithubContribution from "@/components/contributions/GithubContribution.vue";
import { elementInViewPort } from "@/utils.js";
const WeeklyUpdateSection = defineAsyncComponent(
() => import("@/components/contributions/WeeklyUpdate.vue"),
const WeeklyUpdateSection = defineAsyncComponent(() =>
import("@/components/contributions/WeeklyUpdate.vue")
);
const WhatsTrending = defineAsyncComponent(
() => import("@/components/contributions/WhatsTrending.vue"),
const WhatsTrending = defineAsyncComponent(() =>
import("@/components/contributions/WhatsTrending.vue")
);
const Favourite = defineAsyncComponent(
() => import("@/components/contributions/Favourite.vue"),
const Favourite = defineAsyncComponent(() =>
import("@/components/contributions/Favourite.vue")
);
const AnimatedCreation = defineAsyncComponent(
() => import("@/components/contributions/AnimatedCreation.vue"),
const AnimatedCreation = defineAsyncComponent(() =>
import("@/components/contributions/AnimatedCreation.vue")
);
const UnitTest = defineAsyncComponent(
() => import("@/components/contributions/UnitTest.vue"),
const UnitTest = defineAsyncComponent(() =>
import("@/components/contributions/UnitTest.vue")
);
const DevOps = defineAsyncComponent(
() => import("@/components/contributions/DevOps.vue"),
const DevOps = defineAsyncComponent(() =>
import("@/components/contributions/DevOps.vue")
);
const ExploreDesign = defineAsyncComponent(
() => import("@/components/contributions/DesignExplore.vue"),
const ExploreDesign = defineAsyncComponent(() =>
import("@/components/contributions/DesignExplore.vue")
);
const NewFooter = defineAsyncComponent(
() => import("@/components/partials/NewFooter.vue"),
const NewFooter = defineAsyncComponent(() =>
import("@/components/partials/NewFooter.vue")
);
const { $mixpanel } = useNuxtApp();
const favourite = ref(null);
const footer = ref(null);
const design = ref(null);
const seoData = config.CONTRIBUTION_SEO_META_DATA;
useSeoMeta({
Expand All @@ -69,15 +69,15 @@ useSeoMeta({
let event = "";
let events = {
favourite: "view_favourite_contribution",
footer: "view_contribution_footer",
design: "view_design_contribution",
};
let elements;
onMounted(() => {
elements = ref({
favourite: favourite,
footer: footer,
design: design,
});
window.addEventListener("scroll", sendEvent);
$mixpanel.track("view_contribution_page");
Expand Down
12 changes: 4 additions & 8 deletions nuxt-frontend/pages/portfolio/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
ref="userReview"
class="pb-0 sm:pb-10 md:pb-8 lg:pb-20 sm:top-10"
/>
<CTASection />
<NewFooter ref="footer" />
<CTASection ref="cta" />
<NewFooter />
</div>
</template>

Expand All @@ -29,10 +29,8 @@ const NewFooter = defineAsyncComponent(() =>
);
const { $mixpanel } = useNuxtApp();
const casestudy = ref(null);
const userReview = ref(null);
const ctasection = ref(null);
const footer = ref(null);
const cta = ref(null);
const seoData = config.PORTFOLIO_SEO_META_DATA;
useSeoMeta({
Expand All @@ -47,17 +45,15 @@ useSeoMeta({
let event = "";
let events = {
userReview: "view_portfolio_user_review_section",
footer: "view_portfolio_footer_section",
cta: "view_portfolio_cta_section",
};
let elements;
onMounted(() => {
elements = ref({
casestudy: casestudy,
userReview: userReview,
ctasection: ctasection,
footer: footer,
});
window.addEventListener("scroll", sendEvent);
$mixpanel.track("view_portfolio_page");
Expand Down
2 changes: 1 addition & 1 deletion nuxt-frontend/pages/services.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<LandingSection />
<WhatWeOfferMobile class="block lg:hidden" />
<WhatWeOfferDesktop class="hidden lg:block" />
<CTASection class="!mt-24 xl:!mt-40" ref="cta" />
<CTASection class="!mt-24 xl:!mt-40" />
<TechnologyStack />
<BlogSection ref="blogs" />
<ContributionSection class="hidden lg:block" />
Expand Down

0 comments on commit f45f280

Please sign in to comment.