chore(version): 0.2.5

This commit is contained in:
kangfenmao 2024-07-17 15:55:44 +08:00
parent a6ff6e3a4d
commit 2507dd1bcf
6 changed files with 34 additions and 17 deletions

View File

@ -56,5 +56,6 @@ electronDownload:
afterSign: scripts/notarize.js afterSign: scripts/notarize.js
releaseInfo: releaseInfo:
releaseNotes: | releaseNotes: |
- 修复更新日志页面不能滚动问题 🆕 新增百川AI服务商
- 新增检查更新按钮 📢 全新的智能体页面,新增多种职业助手
🌐 多语言问题修复,细节优化

View File

@ -1,5 +1,11 @@
# CHANGES LOG # CHANGES LOG
### v0.2.5 - 2024-07-17
- 🆕 Baichuan AI Service Providers
- 📢 New Intelligent Agent Page with Multiple Professional Assistants
- 🌐 Multilingual Issue Fixes and Detailed Optimizations
### v0.2.4 - 2024-07-16 ### v0.2.4 - 2024-07-16
- Fixed the issue of the update log page cannot be scrolled - Fixed the issue of the update log page cannot be scrolled

View File

@ -1,5 +1,11 @@
# 更新日志 # 更新日志
### v0.2.5 - 2024-07-17
- 🆕 新增百川AI服务商
- 📢 全新的智能体页面,新增多种职业助手
- 🌐 多语言问题修复,细节优化
### v0.2.4 - 2024-07-16 ### v0.2.4 - 2024-07-16
- 修复更新日志页面不能滚动问题 - 修复更新日志页面不能滚动问题

View File

@ -14,13 +14,17 @@ const { Title } = Typography
const AppsPage: FC = () => { const AppsPage: FC = () => {
const { assistants, addAssistant } = useAssistants() const { assistants, addAssistant } = useAssistants()
const assistantGroups = groupBy(SYSTEM_ASSISTANTS, 'group') const assistantGroups = groupBy(
SYSTEM_ASSISTANTS.map((a) => ({ ...a, id: String(a.id) })),
'group'
)
const { t } = useTranslation() const { t } = useTranslation()
const onAddAssistant = (assistant: SystemAssistant) => { const onAddAssistant = (assistant: SystemAssistant) => {
addAssistant({ addAssistant({
...getDefaultAssistant(), ...getDefaultAssistant(),
...assistant ...assistant,
id: String(assistant.id)
}) })
window.message.success({ window.message.success({
content: t('message.assistant.added.content'), content: t('message.assistant.added.content'),
@ -44,7 +48,7 @@ const AppsPage: FC = () => {
{assistantGroups[group].map((assistant, index) => { {assistantGroups[group].map((assistant, index) => {
const added = find(assistants, { id: assistant.id }) const added = find(assistants, { id: assistant.id })
return ( return (
<Col span={6} key={group + index} style={{ marginBottom: 16 }}> <Col span={8} key={group + index}>
<AssistantCard> <AssistantCard>
<EmojiHeader>{assistant.emoji}</EmojiHeader> <EmojiHeader>{assistant.emoji}</EmojiHeader>
<Col> <Col>
@ -56,13 +60,13 @@ const AppsPage: FC = () => {
<AssistantCardPrompt>{assistant.prompt}</AssistantCardPrompt> <AssistantCardPrompt>{assistant.prompt}</AssistantCardPrompt>
<Row> <Row>
{added && ( {added && (
<Button type="default" disabled> <Button type="default" size="small" disabled>
{t('button.added')} {t('button.added')}
</Button> </Button>
)} )}
{!added && ( {!added && (
<Tooltip placement="top" title=" Add to assistant list " arrow> <Tooltip placement="top" title=" Add to assistant list " arrow>
<Button type="default" onClick={() => onAddAssistant(assistant as any)}> <Button type="default" size="small" onClick={() => onAddAssistant(assistant as any)}>
{t('button.add')} {t('button.add')}
</Button> </Button>
</Tooltip> </Tooltip>
@ -89,13 +93,13 @@ const Container = styled.div`
` `
const EmojiHeader = styled.div` const EmojiHeader = styled.div`
width: 60px; width: 36px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
font-size: 50px; margin-right: 5px;
line-height: 50px; font-size: 36px;
margin-right: 10px; line-height: 36px;
` `
const ContentContainer = styled.div` const ContentContainer = styled.div`
@ -113,7 +117,7 @@ const AssistantCard = styled.div`
margin-bottom: 16px; margin-bottom: 16px;
background-color: #2b2b2b; background-color: #2b2b2b;
border-radius: 10px; border-radius: 10px;
padding: 20px; padding: 15px;
position: relative; position: relative;
` `

View File

@ -117,7 +117,7 @@
<p class="description">Windows/macOS GPT 客户端</p> <p class="description">Windows/macOS GPT 客户端</p>
<div class="download-buttons"> <div class="download-buttons">
<a <a
href="https://github.com/kangfenmao/cherry-studio/releases/download/v0.2.4/Cherry-Studio-0.2.4-x64.dmg" href="https://github.com/kangfenmao/cherry-studio/releases/download/v0.2.5/Cherry-Studio-0.2.5-x64.dmg"
class="download-btn"> class="download-btn">
<svg viewBox="0 0 384 512" width="24" height="24"> <svg viewBox="0 0 384 512" width="24" height="24">
<path <path
@ -127,7 +127,7 @@
macOS Intel macOS Intel
</a> </a>
<a <a
href="https://github.com/kangfenmao/cherry-studio/releases/download/v0.2.4/Cherry-Studio-0.2.4-arm64.dmg" href="https://github.com/kangfenmao/cherry-studio/releases/download/v0.2.5/Cherry-Studio-0.2.5-arm64.dmg"
class="download-btn"> class="download-btn">
<svg viewBox="0 0 384 512" width="24" height="24"> <svg viewBox="0 0 384 512" width="24" height="24">
<path <path
@ -137,7 +137,7 @@
macOS Apple Silicon macOS Apple Silicon
</a> </a>
<a <a
href="https://github.com/kangfenmao/cherry-studio/releases/download/v0.2.4/Cherry-Studio-0.2.4-setup.exe" href="https://github.com/kangfenmao/cherry-studio/releases/download/v0.2.5/Cherry-Studio-0.2.5-setup.exe"
class="download-btn"> class="download-btn">
<svg viewBox="0 0 448 512" width="24" height="24"> <svg viewBox="0 0 448 512" width="24" height="24">
<path <path
@ -149,7 +149,7 @@
</div> </div>
<p class="new-app"> <p class="new-app">
🎉 <a href="https://github.com/kangfenmao/cherry-studio" target="_blank">Cherry Studio</a> 最新版本 🎉 <a href="https://github.com/kangfenmao/cherry-studio" target="_blank">Cherry Studio</a> 最新版本
<a href="https://github.com/kangfenmao/cherry-studio/releases/tag/v0.2.4" target="_blank">v0.2.4</a> 发布啦! <a href="https://github.com/kangfenmao/cherry-studio/releases/tag/v0.2.5" target="_blank">v0.2.5</a> 发布啦!
</p> </p>
<div class="footer"> <div class="footer">
<a href="https://github.com/kangfenmao/cherry-studio" target="_blank">开源</a> | <a href="https://github.com/kangfenmao/cherry-studio" target="_blank">开源</a> |