chore: update all deps (#1976)
This commit is contained in:
parent
3acf87d5b6
commit
189d358b2a
20 changed files with 1730 additions and 2078 deletions
|
@ -2,7 +2,7 @@
|
|||
const emit = defineEmits<{
|
||||
(event: 'close'): void
|
||||
}>()
|
||||
const { modelValue: visible } = defineModel<{
|
||||
const { modelValue: visible } = defineModels<{
|
||||
modelValue?: boolean
|
||||
}>()
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ defineProps<{
|
|||
label: string
|
||||
hover?: boolean
|
||||
}>()
|
||||
const { modelValue } = defineModel<{
|
||||
const { modelValue } = defineModels<{
|
||||
modelValue?: boolean
|
||||
}>()
|
||||
</script>
|
||||
|
|
|
@ -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
|
||||
}>()
|
||||
|
|
|
@ -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
|
||||
}>()
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ defineProps<{
|
|||
value: any
|
||||
hover?: boolean
|
||||
}>()
|
||||
const { modelValue } = defineModel<{
|
||||
const { modelValue } = defineModels<{
|
||||
modelValue: any
|
||||
}>()
|
||||
</script>
|
||||
|
|
|
@ -8,7 +8,7 @@ const { options, command } = defineProps<{
|
|||
command?: boolean
|
||||
}>()
|
||||
|
||||
const { modelValue } = defineModel<{
|
||||
const { modelValue } = defineModels<{
|
||||
modelValue: string
|
||||
}>()
|
||||
|
||||
|
|
|
@ -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
|
||||
}>()
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ const emit = defineEmits<{
|
|||
(event: 'close',): void
|
||||
}>()
|
||||
|
||||
const { modelValue: visible } = defineModel<{
|
||||
const { modelValue: visible } = defineModels<{
|
||||
/** v-model dislog visibility */
|
||||
modelValue: boolean
|
||||
}>()
|
||||
|
|
|
@ -14,7 +14,7 @@ const emit = defineEmits<{
|
|||
(event: 'close'): void
|
||||
}>()
|
||||
|
||||
const { modelValue } = defineModel<{
|
||||
const { modelValue } = defineModels<{
|
||||
modelValue: number
|
||||
}>()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
let { modelValue } = $defineModel<{
|
||||
let { modelValue } = $defineModels<{
|
||||
modelValue: boolean
|
||||
}>()
|
||||
const colorMode = useColorMode()
|
||||
|
|
|
@ -3,7 +3,7 @@ defineProps<{
|
|||
title?: string
|
||||
message: string
|
||||
}>()
|
||||
const { modelValue } = defineModel<{
|
||||
const { modelValue } = defineModels<{
|
||||
modelValue: boolean
|
||||
}>()
|
||||
</script>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import Fuse from 'fuse.js'
|
||||
|
||||
let { modelValue } = $defineModel<{
|
||||
let { modelValue } = $defineModels<{
|
||||
modelValue: string
|
||||
}>()
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ const { editing } = defineProps<{
|
|||
editing?: boolean
|
||||
}>()
|
||||
|
||||
let { modelValue } = $defineModel<{
|
||||
let { modelValue } = $defineModels<{
|
||||
modelValue: string
|
||||
}>()
|
||||
|
||||
|
|
|
@ -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']>
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue