mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-24 02:06:12 +03:00
chore: upgrade to nuxt v3.2.0 (#1695)
This commit is contained in:
parent
73dc060578
commit
efaeb67261
8 changed files with 530 additions and 420 deletions
|
@ -10,7 +10,7 @@ const emit = defineEmits<{
|
|||
<div i-ri:close-line />
|
||||
</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>
|
||||
{{ $t('help.title') }}
|
||||
</h1>
|
||||
|
|
|
@ -96,7 +96,7 @@ onClickOutside(input, () => {
|
|||
<template>
|
||||
<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>
|
||||
<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>
|
||||
{{ $t('action.sign_in') }}
|
||||
</div>
|
||||
|
|
|
@ -71,15 +71,6 @@ export default defineNuxtConfig({
|
|||
},
|
||||
build: {
|
||||
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: {
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
"@iconify-json/ri": "^1.1.4",
|
||||
"@iconify-json/twemoji": "^1.1.10",
|
||||
"@iconify/utils": "^2.0.12",
|
||||
"@nuxt/devtools": "^0.1.0",
|
||||
"@nuxtjs/color-mode": "^3.2.0",
|
||||
"@nuxtjs/i18n": "8.0.0-beta.9",
|
||||
"@pinia/nuxt": "^0.4.6",
|
||||
|
@ -107,7 +108,6 @@
|
|||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.34.1",
|
||||
"@antfu/ni": "^0.19.0",
|
||||
"@nuxt/devtools": "^0.1.0",
|
||||
"@types/chroma-js": "^2.1.4",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/flat": "^5.0.2",
|
||||
|
@ -122,7 +122,7 @@
|
|||
"flat": "^5.0.2",
|
||||
"fs-extra": "^11.1.0",
|
||||
"lint-staged": "^13.1.0",
|
||||
"nuxt": "3.1.1",
|
||||
"nuxt": "3.2.0",
|
||||
"prettier": "^2.8.3",
|
||||
"simple-git-hooks": "^2.8.1",
|
||||
"typescript": "^4.9.5",
|
||||
|
@ -152,9 +152,7 @@
|
|||
"@tiptap/extension-paragraph": "2.0.0-beta.204",
|
||||
"@tiptap/extension-strike": "2.0.0-beta.204",
|
||||
"@tiptap/extension-text": "2.0.0-beta.204",
|
||||
"vitest>vite": "^3.2.5",
|
||||
"@nuxt/kit": "^3.1.2",
|
||||
"@nuxt/schema": "^3.1.2"
|
||||
"vue": "3.2.45"
|
||||
}
|
||||
},
|
||||
"simple-git-hooks": {
|
||||
|
|
|
@ -25,7 +25,7 @@ const handleShowCommit = () => {
|
|||
</template>
|
||||
|
||||
<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>
|
||||
{{ $t('app_desc_short') }}
|
||||
</p>
|
||||
|
|
913
pnpm-lock.yaml
913
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,7 @@
|
|||
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'
|
||||
|
||||
const memory = _memory as typeof import('unstorage/dist/drivers/memory')['default']
|
||||
|
||||
export interface CacheDriverOptions {
|
||||
driver: Driver
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types
|
||||
import _fs from 'unstorage/drivers/fs'
|
||||
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types
|
||||
import _memory from 'unstorage/drivers/memory'
|
||||
import fs from 'unstorage/drivers/fs'
|
||||
import memory from 'unstorage/drivers/memory'
|
||||
|
||||
import { stringifyQuery } from 'ufo'
|
||||
|
||||
|
@ -19,9 +17,6 @@ import { driver } from '#storage-config'
|
|||
import type { AppInfo } from '~/types'
|
||||
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
|
||||
|
||||
if (driver === 'fs') {
|
||||
|
|
Loading…
Reference in a new issue