chore: unify script setup lang order (#2943)

This commit is contained in:
Shinigami 2024-09-07 09:38:18 +02:00 committed by GitHub
parent b2102732cf
commit 3054667050
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 25 additions and 25 deletions

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { mastodon } from 'masto'
defineOptions({

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { ResolvedCommand } from '~/composables/command'
const {

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
const emit = defineEmits<{
(event: 'close'): void
}>()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { Boundaries } from 'vue-advanced-cropper'
import { Cropper } from 'vue-advanced-cropper'
import 'vue-advanced-cropper/dist/style.css'

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { fileOpen } from 'browser-fs-access'
import type { FileWithHandle } from 'browser-fs-access'

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { mastodon } from 'masto'
const {

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { mastodon } from 'masto'
import sparkline from '@fnando/sparkline'

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
const { userId } = defineProps<{
userId: string
}>()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
export interface Props {

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { invoke } from '@vueuse/core'
const modelValue = defineModel<boolean>({ required: true })

View file

@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
const { busy, oauth, singleInstanceServer } = useSignIn()
</script>

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { DEFAULT_FONT_SIZE } from '~/constants'
import type { FontSize } from '~/composables/settings'

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
const props = defineProps<{
text?: string
content?: string

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { ComputedRef } from 'vue'
import type { LocaleObject } from '@nuxtjs/i18n'

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import ISO6391 from 'iso-639-1'
const supportedTranslationLanguages = ISO6391.getLanguages([...supportedTranslationCodes])

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { usePreferences } from '~/composables/settings'
const route = useRoute()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { STORAGE_KEY_HIDE_EXPLORE_POSTS_TIPS, STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~~/constants'
const { t } = useI18n()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { STORAGE_KEY_HIDE_EXPLORE_NEWS_TIPS, STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~~/constants'
const { t } = useI18n()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~~/constants'
const { t } = useI18n()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import { STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~/constants'
const { t } = useI18n()

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { mastodon } from 'masto'
definePageMeta({

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
definePageMeta({
wideLayout: true,
})

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
import type { mastodon } from 'masto'
import { useForm } from 'slimeform'

View file

@ -1,4 +1,4 @@
<script lang="ts" setup>
<script setup lang="ts">
/* eslint-disable no-alert */
import { fileOpen } from 'browser-fs-access'
import type { UserLogin } from '~/types'

View file

@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
definePageMeta({
middleware: () => {
if (!useAppConfig().pwaEnabled)