From 72c8f9608e3e9bf7630ac3b5971ac98c744206d1 Mon Sep 17 00:00:00 2001 From: IndieKKY Date: Mon, 18 Mar 2024 11:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/immersive-summary.png | Bin 0 -> 23600 bytes src/biz/Body.tsx | 151 ++++++++++++++++++++++---------- src/biz/MoreBtn.tsx | 42 ++++----- src/const.tsx | 1 + src/hooks/useSubtitleService.ts | 7 +- 5 files changed, 130 insertions(+), 71 deletions(-) create mode 100644 public/immersive-summary.png diff --git a/public/immersive-summary.png b/public/immersive-summary.png new file mode 100644 index 0000000000000000000000000000000000000000..59c94fb2002e1742a71e58a0126d2f1c9942785a GIT binary patch literal 23600 zcmV(|K+(U6P)iIYwU^pU?WOiod#SzD{%>kpYeoN;xBqYhfJqHgVZ4XP-BPVqdqR$C za~-GGQBJe2R?~|ACASIx*5lYHDdlSImho>+X<8(uXS8y%j;ohk(vzC>P^jcgm8!*| zXr*vkweQZ-f1vhLEdYA%WV#ep8$wQaH)*;mJ3s$u z)c`HyqY>r0hjIQpsjBW+s<;CU4ZZU!aJiqR_ERMQVzRRntrXQSCtZD&CiQ9z{3eWi zop%i1khcHw8*f(F*q`ss`ctZE=UMSRQAN9Y1bujvT=xztRsW6B8wT;WOFt#;r$PYq z?D2+byzWhqfS*;4db#5`&9K`T=hfZURGTX2jIT6iRILyZ9XQVXPP5j_X_fq|gJxvK z`Bz;Q=Y}v8anv2kasHmNbeC%B8KxI`dr=F3E(~vVUHTRH?>D2Tz0l$?Pr8|u^(?MY zK1_#9w)Q91rAnnjzy$c#IVqL359TZf!bh{AY5(Cj&t6`6AzF31AlgPz36 zze}O=XDKpwSgHMGdJ(o4od8TtJ(+4tHeahl)nCA$Z^DE`HF^JGqA)=`nN~@mb*@aB zOf=q?D`l#bOH``lsa!5oxm1?VTzi~p+P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L{d7!6vJcilaAxC3!!E)C~}Vl>eO_^0lcFOXz653VsFLf?ph>R&e%4|7(jq zd~-oH>tULygHrygTxFip<6K3j|jE+UEIo zJK;=KPU5=v;hcBCr`$yo#p7z*wj%wMwVzr62sV8aqKNRE4^-e!uRf5#eu!e#@#iy1^Fp=% z5CX7P6YMZQUr+HuBZYM@RjHZRw31V8CKYbN5n;xHj@{2hszSnHu2fmXBxgW0ER*9- zQM3YrMlBL;EI!|fnU~s2?WOiod#SzDUTQD3m)cA11!@03x-Ypq=qa1$00000NkvXX Hu0mjfEOL&q literal 0 HcmV?d00001 diff --git a/src/biz/Body.tsx b/src/biz/Body.tsx index 2384e72..01fcb0b 100644 --- a/src/biz/Body.tsx +++ b/src/biz/Body.tsx @@ -22,7 +22,6 @@ import { FaRegArrowAltCircleDown, IoWarning, MdExpand, - RiFileCopy2Line, RiTranslate } from 'react-icons/all' import classNames from 'classnames' @@ -32,9 +31,9 @@ import { ASK_ENABLED_DEFAULT, HEADER_HEIGHT, PAGE_SETTINGS, + RECOMMEND_HEIGHT, SEARCH_BAR_HEIGHT, SUMMARIZE_ALL_THRESHOLD, - SUMMARIZE_TYPES, TITLE_HEIGHT } from '../const' import {FaClipboardList} from 'react-icons/fa' @@ -42,6 +41,7 @@ import useTranslate from '../hooks/useTranslate' import {getSummarize} from '../util/biz_util' import {openUrl} from '@kky002/kky-util' import Markdown from '../components/Markdown' +import {random} from 'lodash-es' const Body = () => { const dispatch = useAppDispatch() @@ -56,6 +56,7 @@ const Body = () => { const translateEnable = useAppSelector(state => state.env.envData.translateEnable) const summarizeEnable = useAppSelector(state => state.env.envData.summarizeEnable) const {addSummarizeTask, addAskTask} = useTranslate() + const infos = useAppSelector(state => state.env.infos) const askFold = useAppSelector(state => state.env.askFold) const askQuestion = useAppSelector(state => state.env.askQuestion) const askContent = useAppSelector(state => state.env.askContent) @@ -70,6 +71,10 @@ const Body = () => { const title = useAppSelector(state => state.env.title) const fontSize = useAppSelector(state => state.env.envData.fontSize) const searchText = useAppSelector(state => state.env.searchText) + const recommendIdx = useMemo(() => random(0, 2), []) + const showSearchInput = useMemo(() => { + return (segments != null && segments.length > 0) && (envData.searchEnabled ? envData.searchEnabled : (envData.askEnabled ?? ASK_ENABLED_DEFAULT)) + }, [envData.askEnabled, envData.searchEnabled, segments]) const searchPlaceholder = useMemo(() => { let placeholder = '' if (envData.searchEnabled) { @@ -245,7 +250,7 @@ const Body = () => { {/* search */} - {(envData.searchEnabled ? envData.searchEnabled : (envData.askEnabled ?? ASK_ENABLED_DEFAULT)) &&
+ {showSearchInput &&
{searchText && }
} @@ -262,11 +267,11 @@ const Body = () => {
{/* ask */} - {(envData.askEnabled??ASK_ENABLED_DEFAULT) && (searchText || askQuestion) && + {(envData.askEnabled ?? ASK_ENABLED_DEFAULT) && (searchText || askQuestion) &&
@@ -287,8 +292,8 @@ const Body = () => {
} {!askFold && } + className={classNames('btn btn-link btn-xs', askStatus === 'pending' && 'loading')} + onClick={onAsk}>{askStatus === 'init' ? '点击提问' : (askStatus === 'pending' ? '生成中' : '重新生成')}} {!askFold && askStatus === 'init' &&
提问举例:这个视频说了什么
} {!askFold && askError &&
{askError}
}
} @@ -298,49 +303,101 @@ const Body = () => { segmentIdx={segmentIdx} bodyRef={bodyRef}/>)} {/* tip */} -
-
💡提示💡
-
可以尝试将概览生成的内容粘贴到视频评论里,发布后看看有什么效果🥳 + {/*
*/} + {/*
💡提示💡
*/} + {/*
可以尝试将概览生成的内容粘贴到视频评论里,发布后看看有什么效果🥳 */} + {/*
*/} + {/* {(segments?.length ?? 0) > 0 && } */} + {/*
*/} + {((infos == null) || infos.length === 0) &&
+
+
BibiGPT logoBibiGPT +
+
这是网页版的字幕列表,支持任意视频提取字幕总结(包括没有字幕的视频) +
+
- {(segments?.length ?? 0) > 0 && } -
-
-
BibiGPTBibiGPT + -
这是网页版的字幕列表,支持任意视频提取字幕总结(包括没有字幕的视频)
- - +
} +
+ + {/* recommend */} +
} diff --git a/src/biz/MoreBtn.tsx b/src/biz/MoreBtn.tsx index 3676194..bda7928 100644 --- a/src/biz/MoreBtn.tsx +++ b/src/biz/MoreBtn.tsx @@ -261,27 +261,27 @@ const MoreBtn = (props: Props) => { 微信公众号(IndieKKY) -
  • - { - e.preventDefault() - e.stopPropagation() - openUrl('https://bibigpt.co/r/bilibili') - }}> - BibiGPT - BibiGPT - -
  • -
  • - { - e.preventDefault() - e.stopPropagation() - openUrl('https://chromewebstore.google.com/detail/fiaeclpicddpifeflpmlgmbjgaedladf') - }}> - youtube subtitle - Youtube Caption - -
  • + {/*
  • */} + {/* { */} + {/* e.preventDefault() */} + {/* e.stopPropagation() */} + {/* openUrl('https://bibigpt.co/r/bilibili') */} + {/* }}> */} + {/* BibiGPT */} + {/* BibiGPT */} + {/* */} + {/*
  • */} + {/*
  • */} + {/* { */} + {/* e.preventDefault() */} + {/* e.stopPropagation() */} + {/* openUrl('https://chromewebstore.google.com/detail/fiaeclpicddpifeflpmlgmbjgaedladf') */} + {/* }}> */} + {/* youtube subtitle */} + {/* Youtube Caption */} + {/* */} + {/*
  • */}
  • { dispatch(setPage(PAGE_SETTINGS)) diff --git a/src/const.tsx b/src/const.tsx index d1581c5..6756274 100644 --- a/src/const.tsx +++ b/src/const.tsx @@ -159,6 +159,7 @@ export const TOTAL_HEIGHT_MAX = 800 export const HEADER_HEIGHT = 44 export const TITLE_HEIGHT = 24 export const SEARCH_BAR_HEIGHT = 32 +export const RECOMMEND_HEIGHT = 36 export const WORDS_RATE = 0.75 export const WORDS_MIN = 500 diff --git a/src/hooks/useSubtitleService.ts b/src/hooks/useSubtitleService.ts index 96fc1ed..b508f64 100644 --- a/src/hooks/useSubtitleService.ts +++ b/src/hooks/useSubtitleService.ts @@ -86,6 +86,7 @@ const useSubtitleService = () => { if (data.data.totalHeight) { dispatch(setTotalHeight(Math.min(Math.max(data.data.totalHeight, TOTAL_HEIGHT_MIN), TOTAL_HEIGHT_MAX))) } + console.debug('setSettings', data.data) } } @@ -98,12 +99,12 @@ const useSubtitleService = () => { // 有数据时自动展开 useEffect(() => { - if ((data != null) && data.body.length > 0) { + if (infos != null) { eventBus.emit({ type: EVENT_EXPAND }) } - }, [data, eventBus]) + }, [eventBus, infos]) // 当前未展示 & (未折叠 | 自动展开) & 有列表 => 展示第一个 useEffect(() => { @@ -207,7 +208,7 @@ const useSubtitleService = () => { } } dispatch(setSegments(segments)) - }, [data?.body, dispatch, envData.summarizeEnable, envData.words]) + }, [data?.body, dispatch, envData.aiType, envData.model, envData.summarizeEnable, envData.words]) // 每秒更新当前视频时间 useInterval(() => {