chore: upgrade to nuxt v3.2.0 (#1695)

zio/stable
Daniel Roe 2023-02-12 12:56:29 +01:00 committed by GitHub
parent 73dc060578
commit efaeb67261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 530 additions and 420 deletions

View File

@ -10,7 +10,7 @@ const emit = defineEmits<{
<div i-ri:close-line /> <div i-ri:close-line />
</button> </button>
<img :alt="$t('app_logo')" src="/logo.svg" w-20 h-20 height="80" width="80" mxa class="rtl-flip"> <img :alt="$t('app_logo')" :src="`/${''}logo.svg`" w-20 h-20 height="80" width="80" mxa class="rtl-flip">
<h1 mxa text-4xl mb4> <h1 mxa text-4xl mb4>
{{ $t('help.title') }} {{ $t('help.title') }}
</h1> </h1>

View File

@ -96,7 +96,7 @@ onClickOutside(input, () => {
<template> <template>
<form text-center justify-center items-center max-w-150 py6 flex="~ col gap-3" @submit.prevent="oauth"> <form text-center justify-center items-center max-w-150 py6 flex="~ col gap-3" @submit.prevent="oauth">
<div flex="~ center" items-end mb2 gap-x-2> <div flex="~ center" items-end mb2 gap-x-2>
<img src="/logo.svg" w-12 h-12 mxa height="48" width="48" :alt="$t('app_logo')" class="rtl-flip"> <img :src="`/${''}logo.svg`" w-12 h-12 mxa height="48" width="48" :alt="$t('app_logo')" class="rtl-flip">
<div text-3xl> <div text-3xl>
{{ $t('action.sign_in') }} {{ $t('action.sign_in') }}
</div> </div>

View File

@ -71,15 +71,6 @@ export default defineNuxtConfig({
}, },
build: { build: {
target: 'esnext', target: 'esnext',
rollupOptions: {
output: {
manualChunks: (id) => {
// TODO: find and resolve issue in nuxt/vite/pwa
if (id.includes('.svg') || id.includes('entry'))
return 'entry'
},
},
},
}, },
}, },
postcss: { postcss: {

View File

@ -39,6 +39,7 @@
"@iconify-json/ri": "^1.1.4", "@iconify-json/ri": "^1.1.4",
"@iconify-json/twemoji": "^1.1.10", "@iconify-json/twemoji": "^1.1.10",
"@iconify/utils": "^2.0.12", "@iconify/utils": "^2.0.12",
"@nuxt/devtools": "^0.1.0",
"@nuxtjs/color-mode": "^3.2.0", "@nuxtjs/color-mode": "^3.2.0",
"@nuxtjs/i18n": "8.0.0-beta.9", "@nuxtjs/i18n": "8.0.0-beta.9",
"@pinia/nuxt": "^0.4.6", "@pinia/nuxt": "^0.4.6",
@ -107,7 +108,6 @@
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.34.1", "@antfu/eslint-config": "^0.34.1",
"@antfu/ni": "^0.19.0", "@antfu/ni": "^0.19.0",
"@nuxt/devtools": "^0.1.0",
"@types/chroma-js": "^2.1.4", "@types/chroma-js": "^2.1.4",
"@types/file-saver": "^2.0.5", "@types/file-saver": "^2.0.5",
"@types/flat": "^5.0.2", "@types/flat": "^5.0.2",
@ -122,7 +122,7 @@
"flat": "^5.0.2", "flat": "^5.0.2",
"fs-extra": "^11.1.0", "fs-extra": "^11.1.0",
"lint-staged": "^13.1.0", "lint-staged": "^13.1.0",
"nuxt": "3.1.1", "nuxt": "3.2.0",
"prettier": "^2.8.3", "prettier": "^2.8.3",
"simple-git-hooks": "^2.8.1", "simple-git-hooks": "^2.8.1",
"typescript": "^4.9.5", "typescript": "^4.9.5",
@ -152,9 +152,7 @@
"@tiptap/extension-paragraph": "2.0.0-beta.204", "@tiptap/extension-paragraph": "2.0.0-beta.204",
"@tiptap/extension-strike": "2.0.0-beta.204", "@tiptap/extension-strike": "2.0.0-beta.204",
"@tiptap/extension-text": "2.0.0-beta.204", "@tiptap/extension-text": "2.0.0-beta.204",
"vitest>vite": "^3.2.5", "vue": "3.2.45"
"@nuxt/kit": "^3.1.2",
"@nuxt/schema": "^3.1.2"
} }
}, },
"simple-git-hooks": { "simple-git-hooks": {

View File

@ -25,7 +25,7 @@ const handleShowCommit = () => {
</template> </template>
<div flex="~ col gap4" w-full items-center justify-center my5> <div flex="~ col gap4" w-full items-center justify-center my5>
<img :alt="$t('app_logo')" src="/logo.svg" w-24 h-24 class="rtl-flip"> <img :alt="$t('app_logo')" :src="`${''}/logo.svg`" w-24 h-24 class="rtl-flip">
<p text-lg> <p text-lg>
{{ $t('app_desc_short') }} {{ $t('app_desc_short') }}
</p> </p>

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,7 @@
import type { Driver } from 'unstorage' import type { Driver } from 'unstorage'
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types import memory from 'unstorage/drivers/memory'
import _memory from 'unstorage/drivers/memory'
import { defineDriver } from 'unstorage' import { defineDriver } from 'unstorage'
const memory = _memory as typeof import('unstorage/dist/drivers/memory')['default']
export interface CacheDriverOptions { export interface CacheDriverOptions {
driver: Driver driver: Driver
} }

View File

@ -1,7 +1,5 @@
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types import fs from 'unstorage/drivers/fs'
import _fs from 'unstorage/drivers/fs' import memory from 'unstorage/drivers/memory'
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types
import _memory from 'unstorage/drivers/memory'
import { stringifyQuery } from 'ufo' import { stringifyQuery } from 'ufo'
@ -19,9 +17,6 @@ import { driver } from '#storage-config'
import type { AppInfo } from '~/types' import type { AppInfo } from '~/types'
import { APP_NAME } from '~/constants' import { APP_NAME } from '~/constants'
const fs = _fs as typeof import('unstorage/dist/drivers/fs')['default']
const memory = _memory as typeof import('unstorage/dist/drivers/memory')['default']
const storage = useStorage() as Storage const storage = useStorage() as Storage
if (driver === 'fs') { if (driver === 'fs') {