1
0

refactor: cleanup imports

This commit is contained in:
三咲智子 2023-01-07 02:50:31 +08:00
parent e2dc90a889
commit c7756add7d
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
10 changed files with 4 additions and 19 deletions

View File

@ -2,7 +2,7 @@
// @ts-expect-error missing types
import { DynamicScroller } from 'vue-virtual-scroller'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
import type { Account, Paginator, WsEvents } from 'masto'
import type { Paginator, WsEvents } from 'masto'
const {
paginator,

View File

@ -4,9 +4,7 @@
import type { Notification, Paginator, WsEvents } from 'masto'
// type used in <template>
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
import type { GroupedLikeNotifications } from '~/types'
import type { GroupedAccountLike, NotificationSlot } from '~/types'
import type { GroupedAccountLike, GroupedLikeNotifications, NotificationSlot } from '~/types'
const { paginator, stream } = defineProps<{
paginator: Paginator<any, Notification[]>

View File

@ -2,7 +2,6 @@
import { formatTimeAgo } from '@vueuse/core'
const route = useRoute()
const router = useRouter()
let draftKey = $ref('home')

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import type { History, Tag } from 'masto'
import type { Tag } from 'masto'
const { hashtag } = defineProps<{ hashtag: Tag }>()

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import type { Card } from 'masto'
const props = defineProps<{
defineProps<{
card: Card
/** When it is root card in the list, not appear as a child card */
root?: boolean

View File

@ -1,5 +1,4 @@
<script setup lang="ts">
import type { Account } from 'masto'
import AccountTabs from '~/components/account/AccountTabs.vue'
const params = useRoute().params

View File

@ -1,6 +1,4 @@
<script setup lang="ts">
import type { Account } from 'masto'
definePageMeta({ name: 'account-media' })
const { t } = useI18n()

View File

@ -1,6 +1,4 @@
<script setup lang="ts">
import type { Account } from 'masto'
definePageMeta({ name: 'account-replies' })
const { t } = useI18n()

View File

@ -1,6 +1,4 @@
<script setup lang="ts">
import { invoke } from '@vueuse/shared'
const { t } = useI18n()
const tabs = $computed(() => [

View File

@ -1,5 +1,4 @@
<script lang="ts" setup>
import type { Tag } from 'masto'
import { STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS } from '~~/constants'
const { t } = useI18n()
@ -12,10 +11,6 @@ const { data, pending, error } = useLazyAsyncData(
const hideTagsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, false)
function getTagUrl(tag: Tag) {
return new URL(tag.url).pathname
}
useHeadFixed({
title: () => `${t('tab.hashtags')} | ${t('nav.explore')}`,
})