diff --git a/public/openai-up.ico b/public/openai-up.ico new file mode 100644 index 0000000..fbcfb14 Binary files /dev/null and b/public/openai-up.ico differ diff --git a/src/biz/Body.tsx b/src/biz/Body.tsx index 2f036a5..c41051f 100644 --- a/src/biz/Body.tsx +++ b/src/biz/Body.tsx @@ -18,6 +18,7 @@ import { AiOutlineCloseCircle, BsDashSquare, BsPlusSquare, + FaGripfire, FaQuestion, FaRegArrowAltCircleDown, IoWarning, @@ -71,7 +72,7 @@ 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 recommendIdx = useMemo(() => random(0, 3), []) const showSearchInput = useMemo(() => { return (segments != null && segments.length > 0) && (envData.searchEnabled ? envData.searchEnabled : (envData.askEnabled ?? ASK_ENABLED_DEFAULT)) }, [envData.askEnabled, envData.searchEnabled, segments]) @@ -209,7 +210,7 @@ const Body = () => { // 自动滚动 useEffect(() => { if (checkAutoScroll && curOffsetTop && autoScroll && !needScroll) { - if (bodyRef.current.scrollTop <= curOffsetTop - bodyRef.current.offsetTop - (totalHeight-120) + (floatKeyPointsSegIdx != null ? 100 : 0) || + if (bodyRef.current.scrollTop <= curOffsetTop - bodyRef.current.offsetTop - (totalHeight-160) + (floatKeyPointsSegIdx != null ? 100 : 0) || bodyRef.current.scrollTop >= curOffsetTop - bodyRef.current.offsetTop - 40 - 10 ) { dispatch(setNeedScroll(true)) @@ -348,6 +349,11 @@ const Body = () => { e.preventDefault() openUrl('https://microsoftedge.microsoft.com/addons/detail/galeejdehabppfgooagmkclpppnbccpc') }} className='link text-sm text-accent'>Edge商店 + { + e.preventDefault() + openUrl('https://www.crxsoso.com/webstore/detail/fiaeclpicddpifeflpmlgmbjgaedladf') + }} className='link text-sm text-accent'>Crx搜搜(国内可访问)
@@ -362,6 +368,12 @@ const Body = () => { e.preventDefault() openUrl('https://chromewebstore.google.com/detail/mcijpllinkhflgpkggimnafkbmpiijah') }} className='link text-sm text-accent'>Chrome商店 + { + e.preventDefault() + openUrl('https://www.crxsoso.com/webstore/detail/mcijpllinkhflgpkggimnafkbmpiijah') + }} className='link text-sm text-accent'>Crx搜搜(国内可访问)
} @@ -371,7 +383,7 @@ const Body = () => {
- {recommendIdx === 0 &&
+ {recommendIdx === 0 &&
{ e.preventDefault() openUrl('https://bibigpt.co/r/bilibili') @@ -398,6 +410,15 @@ const Body = () => { className='w-8 h-8'/>Immersive Summary 沉浸式总结网页文章。
} + {recommendIdx === 3 &&
+ { + e.preventDefault() + openUrl('https://api.openai-up.com/register?aff=varM') + }}>Openai Up logoOpenai代理 + 目前价格不到官方的6折 +
}
} diff --git a/src/biz/Settings.tsx b/src/biz/Settings.tsx index f42ba11..dd662cf 100644 --- a/src/biz/Settings.tsx +++ b/src/biz/Settings.tsx @@ -13,7 +13,6 @@ import { PAGE_MAIN, PROMPT_DEFAULTS, PROMPT_TYPES, - SERVER_URL_THIRD, SUMMARIZE_LANGUAGE_DEFAULT, TRANSLATE_FETCH_DEFAULT, TRANSLATE_FETCH_MAX, @@ -21,7 +20,7 @@ import { TRANSLATE_FETCH_STEP, WORDS_RATE, } from '../const' -import {IoWarning} from 'react-icons/all' +import {FaGripfire, IoWarning} from 'react-icons/all' import classNames from 'classnames' import toast from 'react-hot-toast' import {useBoolean, useEventTarget} from 'ahooks' @@ -210,7 +209,7 @@ const Settings = () => { - +
@@ -220,35 +219,41 @@ const Settings = () => { {(!aiTypeValue || aiTypeValue === 'openai') &&
- + - setServerUrlValue(e.target.value)}/> + setServerUrlValue(e.target.value)}/> -
- {moreFold?'点击查看说明':'点击折叠说明'} +
+
+
【官方地址】
+
官方网址:点击访问
+ +
【第三方代理】
+
代理网址:点击访问
+ +
目前价格不到官方价格的6折
+
- {!moreFold &&
- -
} - {MODELS.map(model => )} {!promptsFold &&
{PROMPT_TYPES.map((item, idx) => @@ -257,16 +262,18 @@ const Settings = () => { setPromptsValue({ ...promptsValue, // @ts-expect-error - [item.type]: PROMPT_DEFAULTS[item.type]??'' + [item.type]: PROMPT_DEFAULTS[item.type] ?? '' }) - }}>点击填充默认
+ }}>点击填充默认 +
} htmlFor={`prompt-${item.type}`}> -