chore: update nuxt to 3.10.3 (#2610)
This commit is contained in:
parent
1fefb6e5b6
commit
55037f04cd
53 changed files with 3584 additions and 3766 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -8,7 +8,7 @@ definePageMeta({
|
|||
|
||||
useWebShareTarget()
|
||||
|
||||
const pwaIsInstalled = process.client && !!useNuxtApp().$pwa?.isInstalled
|
||||
const pwaIsInstalled = import.meta.client && !!useNuxtApp().$pwa?.isInstalled
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue