You've already forked bilibili-subtitle
优化
This commit is contained in:
@@ -18,7 +18,6 @@ import {formatSrtTime, formatTime, formatVttTime} from '../utils/util'
|
||||
import {downloadText, openUrl} from '@kky002/kky-util'
|
||||
import toast from 'react-hot-toast'
|
||||
import {getSummarize} from '../utils/bizUtil'
|
||||
import useMessaging from '../messaging/layer2/useMessaging'
|
||||
import { useMessage } from '@/hooks/message'
|
||||
interface Props {
|
||||
placement: Placement
|
||||
|
@@ -19,7 +19,6 @@ import {EventBusContext} from '../Router'
|
||||
import {EVENT_EXPAND, GEMINI_TOKENS, TOTAL_HEIGHT_MAX, TOTAL_HEIGHT_MIN, WORDS_MIN, WORDS_RATE} from '../consts/const'
|
||||
import {useAsyncEffect, useInterval} from 'ahooks'
|
||||
import {getModelMaxTokens, getWholeText} from '../utils/bizUtil'
|
||||
import useMessaging from '../messaging/layer2/useMessaging'
|
||||
import { useMessage } from './message'
|
||||
|
||||
/**
|
||||
|
@@ -29,7 +29,6 @@ import toast from 'react-hot-toast'
|
||||
import {useMemoizedFn} from 'ahooks/es'
|
||||
import {extractJsonArray, extractJsonObject, getModel} from '../utils/bizUtil'
|
||||
import {formatTime} from '../utils/util'
|
||||
import useMessaging from '@/messaging/layer2/useMessaging'
|
||||
import { useMessage } from './message'
|
||||
const useTranslate = () => {
|
||||
const dispatch = useAppDispatch()
|
||||
|
@@ -26,7 +26,6 @@ import classNames from 'classnames'
|
||||
import toast from 'react-hot-toast'
|
||||
import {useBoolean, useEventTarget} from 'ahooks'
|
||||
import {useEventChecked} from '@kky002/kky-hooks'
|
||||
import useMessaging from '@/messaging/layer2/useMessaging'
|
||||
import { useMessage } from '@/hooks/message'
|
||||
|
||||
const Section = (props: {
|
||||
|
Reference in New Issue
Block a user