Skip to content

Commit

Permalink
⬆️ updates
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Nov 21, 2024
1 parent b706416 commit 09ca906
Show file tree
Hide file tree
Showing 5 changed files with 1,355 additions and 1,320 deletions.
11 changes: 10 additions & 1 deletion app/components/header/HeaderMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<NavItem[]>('navigation', [])
const { init, setUser } = useCrisp()
init(user.value)
watch(loggedIn, () => {
if (loggedIn.value)
setUser(user.value)
})
const links = [
{
label: 'Home',
Expand Down
11 changes: 1 addition & 10 deletions app/components/header/HeaderProfile.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<script setup lang="ts">
const { user, clear, loggedIn } = await useUserSession()
const { init, setUser } = useCrisp()
init(user.value)
watch(loggedIn, () => {
if (loggedIn.value)
setUser(user.value)
})
const { user, clear } = await useUserSession()
const logout = async () => {
clear()
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,29 @@
"jose": "^5.9.6"
},
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@cloudflare/workers-types": "^4.20241106.0",
"@antfu/eslint-config": "^3.9.2",
"@cloudflare/workers-types": "^4.20241112.0",
"@iconify-json/logos": "^1.2.3",
"@iconify-json/mdi": "^1.2.1",
"@nuxt/content": "^2.13.4",
"@nuxt/devtools": "^1.6.0",
"@nuxt/eslint": "^0.6.1",
"@nuxt/devtools": "^1.6.1",
"@nuxt/eslint": "^0.6.2",
"@nuxt/image": "^1.8.1",
"@nuxt/test-utils": "^3.14.4",
"@nuxthub/core": "^0.8.6",
"@nuxthub/core": "^0.8.7",
"@prisma/client": "^5.22.0",
"@types/ua-parser-js": "^0.7.39",
"@vitest/coverage-v8": "^2.1.4",
"@vitest/ui": "^2.1.4",
"dotenv-cli": "^7.4.2",
"happy-dom": "^15.11.0",
"nuxt": "^3.14.159",
"nuxt-auth-utils": "^0.5.2",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/ui": "^2.1.5",
"dotenv-cli": "^7.4.3",
"happy-dom": "^15.11.6",
"nuxt": "^3.14.1592",
"nuxt-auth-utils": "^0.5.5",
"nuxt-og-image": "3.0.8",
"prisma": "^5.22.0",
"ua-parser-js": "^1.0.39",
"vitest": "^2.1.4",
"wrangler": "^3.85.0",
"vitest": "^2.1.5",
"wrangler": "^3.88.0",
"zod": "^3.23.8"
}
}
Loading

0 comments on commit 09ca906

Please sign in to comment.