From 09ca906a8a07f842dce8b1b86a10aae6e903701c Mon Sep 17 00:00:00 2001 From: kevin olson Date: Wed, 20 Nov 2024 21:35:47 -0600 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/header/HeaderMain.vue | 11 +- app/components/header/HeaderProfile.vue | 11 +- package.json | 26 +- pnpm-lock.yaml | 2620 ++++++++++++----------- tsconfig.json | 7 +- 5 files changed, 1355 insertions(+), 1320 deletions(-) diff --git a/app/components/header/HeaderMain.vue b/app/components/header/HeaderMain.vue index 32d8b9c..b01cdf2 100644 --- a/app/components/header/HeaderMain.vue +++ b/app/components/header/HeaderMain.vue @@ -2,12 +2,21 @@ import type { NavItem } from '@nuxt/content' const { crumbs, actions } = useCrumb() -const { loggedIn } = useUserSession() +const { loggedIn, user } = useUserSession() const { toggleContentSearch } = useUIState() const navigation = inject('navigation', []) +const { init, setUser } = useCrisp() + +init(user.value) + +watch(loggedIn, () => { + if (loggedIn.value) + setUser(user.value) +}) + const links = [ { label: 'Home', diff --git a/app/components/header/HeaderProfile.vue b/app/components/header/HeaderProfile.vue index 3924f65..79faaed 100644 --- a/app/components/header/HeaderProfile.vue +++ b/app/components/header/HeaderProfile.vue @@ -1,14 +1,5 @@