chore(version): 0.8.16

This commit is contained in:
kangfenmao 2024-11-20 18:08:46 +08:00
parent 697c3b1838
commit 75e396ecf0
8 changed files with 22 additions and 21 deletions

View File

@ -63,11 +63,6 @@ electronDownload:
afterSign: scripts/notarize.js afterSign: scripts/notarize.js
releaseInfo: releaseInfo:
releaseNotes: | releaseNotes: |
话题搜索修改为弹窗模式 修复系统代理默认设置问题
设置界面样式调整 恢复设置面板模型参数选项
增加APP数据目录显示 界面样式微调
增加代码折叠功能
修复编辑消息后没有保存的问题
修复一些视觉模型不能识别问题
修复一些特殊的数据会导致APP启动后崩溃问题
修复备份文件在某些情况下无法恢复问题

View File

@ -1,6 +1,6 @@
{ {
"name": "CherryStudio", "name": "CherryStudio",
"version": "0.8.15", "version": "0.8.16",
"private": true, "private": true,
"description": "A powerful AI assistant for producer.", "description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js", "main": "./out/main/index.js",

View File

@ -1,4 +1,4 @@
import { BrowserWindow, dialog } from 'electron' import { app, BrowserWindow, dialog } from 'electron'
import logger from 'electron-log' import logger from 'electron-log'
import { AppUpdater as _AppUpdater, autoUpdater, UpdateInfo } from 'electron-updater' import { AppUpdater as _AppUpdater, autoUpdater, UpdateInfo } from 'electron-updater'
@ -47,6 +47,7 @@ export default class AppUpdater {
}) })
.then(({ response }) => { .then(({ response }) => {
if (response === 1) { if (response === 1) {
app.isQuitting = true
setImmediate(() => autoUpdater.quitAndInstall()) setImmediate(() => autoUpdater.quitAndInstall())
} }
}) })

View File

@ -9,7 +9,7 @@
--color-white-soft: rgba(255, 255, 255, 0.8); --color-white-soft: rgba(255, 255, 255, 0.8);
--color-white-mute: rgba(255, 255, 255, 0.94); --color-white-mute: rgba(255, 255, 255, 0.94);
--color-black: #121212; --color-black: #0f0f0f;
--color-black-soft: #191919; --color-black-soft: #191919;
--color-black-mute: #242424; --color-black-mute: #242424;

View File

@ -24,21 +24,20 @@ const AntdProvider: FC<PropsWithChildren> = ({ children }) => {
trackBg: 'transparent', trackBg: 'transparent',
itemSelectedBg: isDarkTheme ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)', itemSelectedBg: isDarkTheme ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)',
boxShadowTertiary: undefined, boxShadowTertiary: undefined,
borderRadiusLG: 6, borderRadiusLG: 12,
borderRadiusSM: 6, borderRadiusSM: 12,
borderRadiusXS: 6 borderRadiusXS: 12
}, },
Menu: { Menu: {
activeBarBorderWidth: 0, activeBarBorderWidth: 0,
darkItemBg: 'transparent' darkItemBg: 'transparent'
}, },
Modal: { Modal: {
colorBgMask: isDarkTheme ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.9)' colorBgMask: isDarkTheme ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.8)'
} }
}, },
token: { token: {
colorPrimary: '#00b96b', colorPrimary: '#00b96b'
borderRadius: 6
} }
}}> }}>
{children} {children}

View File

@ -187,7 +187,7 @@ const Assistants: FC<Props> = ({
suffix={<CommandKey>+K</CommandKey>} suffix={<CommandKey>+K</CommandKey>}
value={search} value={search}
onChange={(e) => setSearch(e.target.value)} onChange={(e) => setSearch(e.target.value)}
style={{ borderWidth: 0.5 }} style={{ borderRadius: 16, borderWidth: 0.5 }}
onKeyDown={onSearch} onKeyDown={onSearch}
ref={searchRef} ref={searchRef}
onFocus={() => dispatch(setSearching(true))} onFocus={() => dispatch(setSearching(true))}
@ -251,7 +251,7 @@ const AssistantItem = styled.div`
margin: 0 10px; margin: 0 10px;
padding-right: 35px; padding-right: 35px;
font-family: Ubuntu; font-family: Ubuntu;
border-radius: 6px; border-radius: 17px;
cursor: pointer; cursor: pointer;
.iconfont { .iconfont {
opacity: 0; opacity: 0;

View File

@ -38,6 +38,8 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
const generating = useAppSelector((state) => state.runtime.generating) const generating = useAppSelector((state) => state.runtime.generating)
const { showTopicTime, topicPosition } = useSettings() const { showTopicTime, topicPosition } = useSettings()
const borderRadius = showTopicTime ? 12 : 17
const onDeleteTopic = useCallback( const onDeleteTopic = useCallback(
(topic: Topic) => { (topic: Topic) => {
if (generating) { if (generating) {
@ -190,7 +192,10 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
const isActive = topic.id === activeTopic?.id const isActive = topic.id === activeTopic?.id
return ( return (
<Dropdown menu={{ items: getTopicMenuItems(topic) }} trigger={['contextMenu']} key={topic.id}> <Dropdown menu={{ items: getTopicMenuItems(topic) }} trigger={['contextMenu']} key={topic.id}>
<TopicListItem className={isActive ? 'active' : ''} onClick={() => onSwitchTopic(topic)}> <TopicListItem
className={isActive ? 'active' : ''}
style={{ borderRadius }}
onClick={() => onSwitchTopic(topic)}>
<TopicName className="name">{topic.name.replace('`', '')}</TopicName> <TopicName className="name">{topic.name.replace('`', '')}</TopicName>
{showTopicTime && <TopicTime>{dayjs(topic.createdAt).format('MM/DD HH:mm')}</TopicTime>} {showTopicTime && <TopicTime>{dayjs(topic.createdAt).format('MM/DD HH:mm')}</TopicTime>}
{isActive && ( {isActive && (
@ -225,7 +230,7 @@ const Container = styled(Scrollbar)`
const TopicListItem = styled.div` const TopicListItem = styled.div`
padding: 7px 12px; padding: 7px 12px;
margin: 0 10px; margin: 0 10px;
border-radius: 6px; border-radius: 17px;
font-family: Ubuntu; font-family: Ubuntu;
font-size: 13px; font-size: 13px;
display: flex; display: flex;

View File

@ -44,6 +44,7 @@ const DropdownButton = styled(Button)`
border-radius: 15px; border-radius: 15px;
padding: 12px 8px 12px 3px; padding: 12px 8px 12px 3px;
-webkit-app-region: none; -webkit-app-region: none;
box-shadow: none;
` `
const ModelName = styled.span` const ModelName = styled.span`