From d11b517d5eca15e034c35c5962c89f8f53057905 Mon Sep 17 00:00:00 2001 From: IndieKKY Date: Sun, 6 Oct 2024 19:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MoreBtn.tsx | 1 - src/hooks/useSubtitleService.ts | 1 - src/hooks/useTranslate.ts | 1 - src/pages/OptionsPage.tsx | 1 - 4 files changed, 4 deletions(-) diff --git a/src/components/MoreBtn.tsx b/src/components/MoreBtn.tsx index 55e46fd..30f44a9 100644 --- a/src/components/MoreBtn.tsx +++ b/src/components/MoreBtn.tsx @@ -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 diff --git a/src/hooks/useSubtitleService.ts b/src/hooks/useSubtitleService.ts index 2178390..034e6ab 100644 --- a/src/hooks/useSubtitleService.ts +++ b/src/hooks/useSubtitleService.ts @@ -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' /** diff --git a/src/hooks/useTranslate.ts b/src/hooks/useTranslate.ts index e51ff61..ee5e236 100644 --- a/src/hooks/useTranslate.ts +++ b/src/hooks/useTranslate.ts @@ -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() diff --git a/src/pages/OptionsPage.tsx b/src/pages/OptionsPage.tsx index 9127867..98d82f9 100644 --- a/src/pages/OptionsPage.tsx +++ b/src/pages/OptionsPage.tsx @@ -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: {