chore: update nuxt to 3.10.3 (#2610)

This commit is contained in:
Joaquín Sánchez 2024-02-24 17:46:14 +01:00 committed by GitHub
parent 1fefb6e5b6
commit 55037f04cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 3584 additions and 3766 deletions

View file

@ -8,7 +8,7 @@ const accountName = computed(() => toShortHandle(params.account as string))
const { t } = useI18n()
const { data: account, pending, refresh } = await useAsyncData(() => fetchAccountByHandle(accountName.value).catch(() => null), { immediate: process.client, default: () => shallowRef() })
const { data: account, pending, refresh } = await useAsyncData(() => fetchAccountByHandle(accountName.value).catch(() => null), { immediate: import.meta.client, default: () => shallowRef() })
const relationship = computed(() => account ? useRelationship(account.value).value : undefined)
const userSettings = useUserSettings()

View file

@ -6,7 +6,7 @@ definePageMeta({
const route = useRoute()
const router = useRouter()
if (process.client && route.path === '/signin/callback')
if (import.meta.client && route.path === '/signin/callback')
router.push('/home')
const { t } = useI18n()

View file

@ -12,7 +12,7 @@ useHydratedHead({
const loggedInUsers = useUsers()
async function exportTokens() {
if (process.server)
if (import.meta.server)
return
if (!confirm('Please aware that the tokens represent the **full access** to your accounts, and should be treated as sensitive information. Are you sure you want to export the tokens?'))
@ -31,7 +31,7 @@ async function exportTokens() {
}
async function importTokens() {
if (process.server)
if (import.meta.server)
return
const file = await fileOpen({
description: 'Token File',

View file

@ -8,7 +8,7 @@ definePageMeta({
useWebShareTarget()
const pwaIsInstalled = process.client && !!useNuxtApp().$pwa?.isInstalled
const pwaIsInstalled = import.meta.client && !!useNuxtApp().$pwa?.isInstalled
</script>
<template>