chore: update all deps (#1976)

This commit is contained in:
Anthony Fu 2023-04-12 14:35:35 +02:00 committed by GitHub
parent 3acf87d5b6
commit 189d358b2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 1730 additions and 2078 deletions

View file

@ -2,7 +2,7 @@
const emit = defineEmits<{ const emit = defineEmits<{
(event: 'close'): void (event: 'close'): void
}>() }>()
const { modelValue: visible } = defineModel<{ const { modelValue: visible } = defineModels<{
modelValue?: boolean modelValue?: boolean
}>() }>()

View file

@ -3,7 +3,7 @@ defineProps<{
label: string label: string
hover?: boolean hover?: boolean
}>() }>()
const { modelValue } = defineModel<{ const { modelValue } = defineModels<{
modelValue?: boolean modelValue?: boolean
}>() }>()
</script> </script>

View file

@ -14,7 +14,7 @@ const props = withDefaults(defineProps<Props>(), {
stencilSizePercentage: 0.9, stencilSizePercentage: 0.9,
}) })
const { modelValue: file } = defineModel<{ const { modelValue: file } = defineModels<{
/** Images to be cropped */ /** Images to be cropped */
modelValue: File | null modelValue: File | null
}>() }>()

View file

@ -22,7 +22,7 @@ const emit = defineEmits<{
(event: 'error', code: number, message: string): void (event: 'error', code: number, message: string): void
}>() }>()
const { modelValue: file } = defineModel<{ const { modelValue: file } = defineModels<{
modelValue: FileWithHandle | null modelValue: FileWithHandle | null
}>() }>()

View file

@ -4,7 +4,7 @@ defineProps<{
value: any value: any
hover?: boolean hover?: boolean
}>() }>()
const { modelValue } = defineModel<{ const { modelValue } = defineModels<{
modelValue: any modelValue: any
}>() }>()
</script> </script>

View file

@ -8,7 +8,7 @@ const { options, command } = defineProps<{
command?: boolean command?: boolean
}>() }>()
const { modelValue } = defineModel<{ const { modelValue } = defineModels<{
modelValue: string modelValue: string
}>() }>()

View file

@ -6,7 +6,7 @@ const emit = defineEmits<{
(e: 'listUpdated', list: mastodon.v1.List): void (e: 'listUpdated', list: mastodon.v1.List): void
(e: 'listRemoved', id: string): void (e: 'listRemoved', id: string): void
}>() }>()
const { list } = defineModel<{ const { list } = defineModels<{
list: mastodon.v1.List list: mastodon.v1.List
}>() }>()

View file

@ -48,7 +48,7 @@ const emit = defineEmits<{
(event: 'close',): void (event: 'close',): void
}>() }>()
const { modelValue: visible } = defineModel<{ const { modelValue: visible } = defineModels<{
/** v-model dislog visibility */ /** v-model dislog visibility */
modelValue: boolean modelValue: boolean
}>() }>()

View file

@ -14,7 +14,7 @@ const emit = defineEmits<{
(event: 'close'): void (event: 'close'): void
}>() }>()
const { modelValue } = defineModel<{ const { modelValue } = defineModels<{
modelValue: number modelValue: number
}>() }>()

View file

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
let { modelValue } = $defineModel<{ let { modelValue } = $defineModels<{
modelValue: boolean modelValue: boolean
}>() }>()
const colorMode = useColorMode() const colorMode = useColorMode()

View file

@ -3,7 +3,7 @@ defineProps<{
title?: string title?: string
message: string message: string
}>() }>()
const { modelValue } = defineModel<{ const { modelValue } = defineModels<{
modelValue: boolean modelValue: boolean
}>() }>()
</script> </script>

View file

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import Fuse from 'fuse.js' import Fuse from 'fuse.js'
let { modelValue } = $defineModel<{ let { modelValue } = $defineModels<{
modelValue: string modelValue: string
}>() }>()

View file

@ -3,7 +3,7 @@ const { editing } = defineProps<{
editing?: boolean editing?: boolean
}>() }>()
let { modelValue } = $defineModel<{ let { modelValue } = $defineModels<{
modelValue: string modelValue: string
}>() }>()

View file

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import type { mastodon } from 'masto' import type { mastodon } from 'masto'
const { form } = defineModel<{ const { form } = defineModels<{
form: { form: {
fieldsAttributes: NonNullable<mastodon.v1.UpdateCredentialsParams['fieldsAttributes']> fieldsAttributes: NonNullable<mastodon.v1.UpdateCredentialsParams['fieldsAttributes']>
} }

View file

@ -19,11 +19,11 @@ const { client } = $(useMasto())
async function vote(e: Event) { async function vote(e: Event) {
const formData = new FormData(e.target as HTMLFormElement) const formData = new FormData(e.target as HTMLFormElement)
const choices = formData.getAll('choices') as string[] const choices = formData.getAll('choices').map(i => +i) as number[]
// Update the poll optimistically // Update the poll optimistically
for (const [index, option] of poll.options.entries()) { for (const [index, option] of poll.options.entries()) {
if (choices.includes(String(index))) if (choices.includes(index))
option.votesCount = (option.votesCount || 0) + 1 option.votesCount = (option.votesCount || 0) + 1
} }
poll.voted = true poll.voted = true

View file

@ -1,7 +1,7 @@
import LRU from 'lru-cache' import { LRUCache } from 'lru-cache'
import type { mastodon } from 'masto' import type { mastodon } from 'masto'
const cache = new LRU<string, any>({ const cache = new LRUCache<string, any>({
max: 1000, max: 1000,
}) })

View file

@ -13,6 +13,6 @@
}, },
"devDependencies": { "devDependencies": {
"@nuxt-themes/docus": "^1.10.1", "@nuxt-themes/docus": "^1.10.1",
"nuxt": "^3.3.2" "nuxt": "^3.4.0"
} }
} }

View file

@ -3,6 +3,7 @@ import { isCI, isDevelopment, isWindows } from 'std-env'
import { isPreview } from './config/env' import { isPreview } from './config/env'
import { i18n } from './config/i18n' import { i18n } from './config/i18n'
import { pwa } from './config/pwa' import { pwa } from './config/pwa'
import type { BuildInfo } from './types'
const { resolve } = createResolver(import.meta.url) const { resolve } = createResolver(import.meta.url)
@ -32,11 +33,14 @@ export default defineNuxtConfig({
'~/modules/tauri/index', '~/modules/tauri/index',
'~/modules/pwa/index', // change to '@vite-pwa/nuxt' once released and remove pwa module '~/modules/pwa/index', // change to '@vite-pwa/nuxt' once released and remove pwa module
'stale-dep/nuxt', 'stale-dep/nuxt',
'@nuxt/devtools',
], ],
devtools: {
enabled: true,
},
experimental: { experimental: {
payloadExtraction: false, payloadExtraction: false,
inlineSSRStyles: false, inlineSSRStyles: false,
renderJsonPayloads: true,
}, },
css: [ css: [
'@unocss/reset/tailwind.css', '@unocss/reset/tailwind.css',
@ -259,3 +263,11 @@ declare module 'nuxt/dist/app' {
'elk-logo:click': () => void 'elk-logo:click': () => void
} }
} }
declare module '@nuxt/schema' {
interface AppConfig {
storage: any
env: BuildInfo['env']
buildInfo: BuildInfo
}
}

View file

@ -31,12 +31,12 @@
"@emoji-mart/data": "^1.1.2", "@emoji-mart/data": "^1.1.2",
"@fnando/sparkline": "^0.3.10", "@fnando/sparkline": "^0.3.10",
"@iconify-emoji/twemoji": "^1.0.2", "@iconify-emoji/twemoji": "^1.0.2",
"@iconify/json": "^2.2.37", "@iconify/json": "^2.2.49",
"@iconify/utils": "^2.0.12", "@iconify/utils": "^2.1.5",
"@nuxt/devtools": "^0.3.0", "@nuxt/devtools": "^0.4.0",
"@nuxtjs/color-mode": "^3.2.0", "@nuxtjs/color-mode": "^3.2.0",
"@nuxtjs/i18n": "8.0.0-beta.10", "@nuxtjs/i18n": "8.0.0-beta.10",
"@pinia/nuxt": "^0.4.6", "@pinia/nuxt": "^0.4.8",
"@tiptap/extension-character-count": "2.0.2", "@tiptap/extension-character-count": "2.0.2",
"@tiptap/extension-code-block": "2.0.2", "@tiptap/extension-code-block": "2.0.2",
"@tiptap/extension-history": "2.0.2", "@tiptap/extension-history": "2.0.2",
@ -44,25 +44,25 @@
"@tiptap/extension-paragraph": "2.0.2", "@tiptap/extension-paragraph": "2.0.2",
"@tiptap/extension-placeholder": "2.0.2", "@tiptap/extension-placeholder": "2.0.2",
"@tiptap/extension-text": "2.0.2", "@tiptap/extension-text": "2.0.2",
"@tiptap/pm": "^2.0.1", "@tiptap/pm": "^2.0.2",
"@tiptap/starter-kit": "2.0.2", "@tiptap/starter-kit": "2.0.2",
"@tiptap/suggestion": "2.0.2", "@tiptap/suggestion": "2.0.2",
"@tiptap/vue-3": "2.0.2", "@tiptap/vue-3": "2.0.2",
"@unocss/nuxt": "^0.51.0", "@unocss/nuxt": "^0.51.4",
"@vue-macros/nuxt": "^1.2.3", "@vue-macros/nuxt": "^1.2.8",
"@vueuse/core": "^9.13.0", "@vueuse/core": "^9.13.0",
"@vueuse/gesture": "2.0.0-beta.1", "@vueuse/gesture": "2.0.0-beta.1",
"@vueuse/integrations": "^9.13.0", "@vueuse/integrations": "^9.13.0",
"@vueuse/math": "^9.13.0", "@vueuse/math": "^9.13.0",
"@vueuse/motion": "2.0.0-beta.12", "@vueuse/motion": "2.0.0-beta.12",
"@vueuse/nuxt": "^9.13.0", "@vueuse/nuxt": "^9.13.0",
"blurhash": "^2.0.4", "blurhash": "^2.0.5",
"browser-fs-access": "^0.33.0", "browser-fs-access": "^0.33.0",
"chroma-js": "^2.4.2", "chroma-js": "^2.4.2",
"emoji-mart": "^5.5.2", "emoji-mart": "^5.5.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"floating-vue": "2.0.0-beta.20", "floating-vue": "2.0.0-beta.20",
"focus-trap": "^7.2.0", "focus-trap": "^7.4.0",
"form-data": "^4.0.0", "form-data": "^4.0.0",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"github-reserved-names": "^2.0.4", "github-reserved-names": "^2.0.4",
@ -70,31 +70,31 @@
"ignore-dependency-scripts": "^1.0.1", "ignore-dependency-scripts": "^1.0.1",
"iso-639-1": "^2.1.15", "iso-639-1": "^2.1.15",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"lru-cache": "^7.14.1", "lru-cache": "^9.0.1",
"masto": "^5.9.2", "masto": "^5.11.1",
"nuxt-security": "^0.13.0", "nuxt-security": "^0.13.0",
"nuxt-vitest": "^0.6.4", "nuxt-vitest": "^0.6.9",
"page-lifecycle": "^0.1.2", "page-lifecycle": "^0.1.2",
"pinia": "^2.0.33", "pinia": "^2.0.34",
"postcss-nested": "^6.0.0", "postcss-nested": "^6.0.1",
"rollup-plugin-node-polyfills": "^0.2.1", "rollup-plugin-node-polyfills": "^0.2.1",
"shiki": "^0.14.0", "shiki": "^0.14.1",
"shiki-es": "^0.2.0", "shiki-es": "^0.2.0",
"simple-git": "^3.16.0", "simple-git": "^3.17.0",
"slimeform": "^0.9.0", "slimeform": "^0.9.1",
"stale-dep": "^0.6.0", "stale-dep": "^0.6.0",
"std-env": "^3.3.1", "std-env": "^3.3.2",
"string-length": "^5.0.1", "string-length": "^5.0.1",
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log", "tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store", "tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
"theme-vitesse": "^0.6.0", "theme-vitesse": "^0.6.4",
"tiny-decode": "^0.1.3", "tiny-decode": "^0.1.3",
"tippy.js": "^6.3.7", "tippy.js": "^6.3.7",
"ufo": "^1.0.1", "ufo": "^1.1.1",
"ultrahtml": "^1.2.0", "ultrahtml": "^1.2.0",
"unimport": "^2.1.0", "unimport": "^3.0.6",
"unplugin-auto-import": "^0.15.0", "unplugin-auto-import": "^0.15.2",
"vite-plugin-pwa": "^0.14.1", "vite-plugin-pwa": "^0.14.7",
"vue-advanced-cropper": "^2.8.8", "vue-advanced-cropper": "^2.8.8",
"vue-virtual-scroller": "2.0.0-beta.8", "vue-virtual-scroller": "2.0.0-beta.8",
"workbox-build": "^6.5.4", "workbox-build": "^6.5.4",
@ -102,7 +102,7 @@
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.38.4", "@antfu/eslint-config": "^0.38.4",
"@antfu/ni": "^0.21.2", "@antfu/ni": "^0.21.3",
"@types/chroma-js": "^2.4.0", "@types/chroma-js": "^2.4.0",
"@types/file-saver": "^2.0.5", "@types/file-saver": "^2.0.5",
"@types/flat": "^5.0.2", "@types/flat": "^5.0.2",
@ -110,17 +110,18 @@
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"@types/js-yaml": "^4.0.5", "@types/js-yaml": "^4.0.5",
"@types/prettier": "^2.7.2", "@types/prettier": "^2.7.2",
"@types/wicg-file-system-access": "^2020.9.5", "@types/wicg-file-system-access": "^2020.9.6",
"bumpp": "^9.1.0", "bumpp": "^9.1.0",
"consola": "^3.0.1",
"eslint": "^8.38.0", "eslint": "^8.38.0",
"esno": "^0.16.3", "esno": "^0.16.3",
"flat": "^5.0.2", "flat": "^5.0.2",
"fs-extra": "^11.1.1", "fs-extra": "^11.1.1",
"lint-staged": "^13.2.0", "lint-staged": "^13.2.1",
"nuxt": "3.3.2", "nuxt": "3.4.0",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"simple-git-hooks": "^2.8.1", "simple-git-hooks": "^2.8.1",
"typescript": "^5.0.3", "typescript": "^5.0.4",
"vitest": "^0.30.1", "vitest": "^0.30.1",
"vue-tsc": "^1.2.0" "vue-tsc": "^1.2.0"
}, },

File diff suppressed because it is too large Load diff