1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-15 05:19:58 +00:00

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' import type { mastodon } from 'masto'
defineOptions({ defineOptions({

View file

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

View file

@ -1,4 +1,4 @@
<script lang="ts" setup> <script setup lang="ts">
const emit = defineEmits<{ const emit = defineEmits<{
(event: 'close'): void (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 type { Boundaries } from 'vue-advanced-cropper'
import { Cropper } from 'vue-advanced-cropper' import { Cropper } from 'vue-advanced-cropper'
import 'vue-advanced-cropper/dist/style.css' 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 { fileOpen } from 'browser-fs-access'
import type { FileWithHandle } 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' import type { mastodon } from 'masto'
const { const {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
<script lang="ts" setup> <script setup lang="ts">
import type { ComputedRef } from 'vue' import type { ComputedRef } from 'vue'
import type { LocaleObject } from '@nuxtjs/i18n' 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' import ISO6391 from 'iso-639-1'
const supportedTranslationLanguages = ISO6391.getLanguages([...supportedTranslationCodes]) const supportedTranslationLanguages = ISO6391.getLanguages([...supportedTranslationCodes])

View file

@ -1,4 +1,4 @@
<script lang="ts" setup> <script setup lang="ts">
import { usePreferences } from '~/composables/settings' import { usePreferences } from '~/composables/settings'
const route = useRoute() 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' import { STORAGE_KEY_HIDE_EXPLORE_POSTS_TIPS, STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~~/constants'
const { t } = useI18n() 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' import { STORAGE_KEY_HIDE_EXPLORE_NEWS_TIPS, STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~~/constants'
const { t } = useI18n() 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' import { STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~~/constants'
const { t } = useI18n() 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' import { STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~/constants'
const { t } = useI18n() const { t } = useI18n()

View file

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

View file

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

View file

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

View file

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

View file

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