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<{
(event: 'close'): void
}>()
const { modelValue: visible } = defineModel<{
const { modelValue: visible } = defineModels<{
modelValue?: boolean
}>()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -19,11 +19,11 @@ const { client } = $(useMasto())
async function vote(e: Event) {
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
for (const [index, option] of poll.options.entries()) {
if (choices.includes(String(index)))
if (choices.includes(index))
option.votesCount = (option.votesCount || 0) + 1
}
poll.voted = true