refactor: avoid directly importing all methods from ~/utils

This commit is contained in:
Hakadao
2023-04-13 02:02:06 +08:00
parent b1ccf3e6fc
commit 495c9b460a
18 changed files with 28 additions and 36 deletions

View File

@@ -2,7 +2,8 @@
import type { Ref, UnwrapNestedRefs } from 'vue'
import { useDateFormat } from '@vueuse/core'
import type { Comment, UserCardInfo, VideoInfo } from './types'
import { calcTimeSince, getCSRF, numFormatter, removeHttpFromUrl } from '~/utils'
import { getCSRF, removeHttpFromUrl } from '~/utils/main'
import { calcTimeSince, numFormatter } from '~/utils/dataFormatter'
const videoContent = ref() as Ref<HTMLElement>
// const commentContent = ref() as Ref<HTMLElement>