refactor: remove component auto import (#740)

This commit is contained in:
Stephen Zhou
2024-05-10 19:18:24 +08:00
committed by GitHub
parent 40b68174f5
commit 41611675bb
32 changed files with 117 additions and 15 deletions

View File

@@ -2,6 +2,11 @@
import type { Ref } from 'vue'
import type { GridLayout } from '~/logic'
import type { DataItem as MomentItem, MomentResult } from '~/models/moment/moment'
import Button from '~/components/Button.vue'
import Empty from '~/components/Empty.vue'
import Loading from '~/components/Loading.vue'
import VideoCard from '~/components/VideoCard/VideoCard.vue'
import VideoCardSkeleton from '~/components/VideoCard/VideoCardSkeleton.vue'
const props = defineProps<{
gridLayout: GridLayout

View File

@@ -10,6 +10,12 @@ import { accessKey, settings } from '~/logic'
import { LanguageType } from '~/enums/appEnums'
import { TVAppKey, getTvSign } from '~/utils/authProvider'
import { isVerticalVideo } from '~/utils/uriParse'
import Button from '~/components/Button.vue'
import Dialog from '~/components/Dialog.vue'
import Empty from '~/components/Empty.vue'
import Loading from '~/components/Loading.vue'
import VideoCard from '~/components/VideoCard/VideoCard.vue'
import VideoCardSkeleton from '~/components/VideoCard/VideoCardSkeleton.vue'
const props = defineProps<{
gridLayout: GridLayout

View File

@@ -6,6 +6,11 @@ import type { List as RankingPgcItem, RankingPgcResult } from '~/models/video/ra
import type { GridLayout } from '~/logic'
import { settings } from '~/logic'
import emitter from '~/utils/mitt'
import LongCoverCard from '~/components/LongCoverCard/LongCoverCard.vue'
import LongCoverCardSkeleton from '~/components/LongCoverCard/LongCoverCardSkeleton.vue'
import OverlayScrollbarsComponent from '~/components/OverlayScrollbarsComponent'
import VideoCard from '~/components/VideoCard/VideoCard.vue'
import VideoCardSkeleton from '~/components/VideoCard/VideoCardSkeleton.vue'
const props = defineProps<{
gridLayout: GridLayout

View File

@@ -2,6 +2,11 @@
import type { Ref } from 'vue'
import type { GridLayout } from '~/logic'
import type { DataItem as MomentItem, MomentResult } from '~/models/moment/moment'
import Button from '~/components/Button.vue'
import Empty from '~/components/Empty.vue'
import Loading from '~/components/Loading.vue'
import VideoCard from '~/components/VideoCard/VideoCard.vue'
import VideoCardSkeleton from '~/components/VideoCard/VideoCardSkeleton.vue'
const props = defineProps<{
gridLayout: GridLayout

View File

@@ -2,6 +2,9 @@
import type { Ref } from 'vue'
import type { GridLayout } from '~/logic'
import type { TrendingResult, List as VideoItem } from '~/models/video/trending'
import Loading from '~/components/Loading.vue'
import VideoCard from '~/components/VideoCard/VideoCard.vue'
import VideoCardSkeleton from '~/components/VideoCard/VideoCardSkeleton.vue'
const props = defineProps<{
gridLayout: GridLayout