You've already forked bilibili-subtitle
优化
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, {useMemo} from 'react'
|
||||
import {useAppSelector} from '../hooks/redux'
|
||||
import {getDisplay, getTransText} from '../utils/biz_util'
|
||||
import {getDisplay, getTransText} from '../utils/bizUtil'
|
||||
import classNames from 'classnames'
|
||||
|
||||
const CompactSegmentItem = (props: {
|
||||
|
@@ -5,7 +5,7 @@ import {find, remove} from 'lodash-es'
|
||||
import {setCurFetched, setCurInfo, setData, setInfos, setUploadedTranscript} from '../redux/envReducer'
|
||||
import MoreBtn from './MoreBtn'
|
||||
import classNames from 'classnames'
|
||||
import {parseTranscript} from '../utils/biz_util'
|
||||
import {parseTranscript} from '../utils/bizUtil'
|
||||
|
||||
const Header = (props: {
|
||||
foldCallback: () => void
|
||||
|
@@ -17,7 +17,7 @@ import {EVENT_EXPAND, MESSAGE_TO_INJECT_DOWNLOAD_AUDIO} from '../consts/const'
|
||||
import {formatSrtTime, formatTime, formatVttTime} from '../utils/util'
|
||||
import {downloadText, openUrl} from '@kky002/kky-util'
|
||||
import toast from 'react-hot-toast'
|
||||
import {getSummarize} from '../utils/biz_util'
|
||||
import {getSummarize} from '../utils/bizUtil'
|
||||
import useMessage from '../messaging/layer2/useMessaging'
|
||||
interface Props {
|
||||
placement: Placement
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import React, {useMemo} from 'react'
|
||||
import {formatTime} from '../utils/util'
|
||||
import {useAppSelector} from '../hooks/redux'
|
||||
import {getDisplay, getTransText} from '../utils/biz_util'
|
||||
import {getDisplay, getTransText} from '../utils/bizUtil'
|
||||
import classNames from 'classnames'
|
||||
|
||||
const NormalSegmentItem = (props: {
|
||||
|
@@ -7,7 +7,7 @@ import {PAGE_MAIN, PAGE_SETTINGS, SUMMARIZE_THRESHOLD, SUMMARIZE_TYPES} from '..
|
||||
import useTranslate from '../hooks/useTranslate'
|
||||
import {BsDashSquare, BsPlusSquare, CgFileDocument, FaQuestion, GrOverview, RiFileCopy2Line} from 'react-icons/all'
|
||||
import toast from 'react-hot-toast'
|
||||
import {getLastTime, getSummaryStr, isSummaryEmpty, parseStrTimeToSeconds} from '../utils/biz_util'
|
||||
import {getLastTime, getSummaryStr, isSummaryEmpty, parseStrTimeToSeconds} from '../utils/bizUtil'
|
||||
import {useInViewport} from 'ahooks'
|
||||
import SegmentItem from './SegmentItem'
|
||||
import {stopPopFunc} from '../utils/util'
|
||||
|
Reference in New Issue
Block a user