chore(version): 1.0.2
This commit is contained in:
parent
78a7b2759e
commit
94d9b79957
@ -81,8 +81,9 @@ afterPack: scripts/after-pack.js
|
|||||||
afterSign: scripts/notarize.js
|
afterSign: scripts/notarize.js
|
||||||
releaseInfo:
|
releaseInfo:
|
||||||
releaseNotes: |
|
releaseNotes: |
|
||||||
Web 搜索增加更多配置选项
|
服务商新增天翼云
|
||||||
用户消息支持快速重新发送
|
助手支持使用模型图标当作头像
|
||||||
知识库网址支持右键配置别名
|
网络搜索网站图标快速加载
|
||||||
支持更多类型的思考内容显示
|
macOS 移除 Option 开头快捷键限制
|
||||||
知识库错误修复
|
代理配置优化
|
||||||
|
界面优化和错误修复
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "CherryStudio",
|
"name": "CherryStudio",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"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",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import FileManager from '@renderer/services/FileManager'
|
import FileManager from '@renderer/services/FileManager'
|
||||||
import { FileType } from '@renderer/types'
|
import { FileType } from '@renderer/types'
|
||||||
import { Upload } from 'antd'
|
import { Upload as AntdUpload, UploadFile } from 'antd'
|
||||||
import { isEmpty } from 'lodash'
|
import { isEmpty } from 'lodash'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
@ -19,12 +19,15 @@ const AttachmentPreview: FC<Props> = ({ files, setFiles }) => {
|
|||||||
<ContentContainer>
|
<ContentContainer>
|
||||||
<Upload
|
<Upload
|
||||||
listType={files.length > 20 ? 'text' : 'picture-card'}
|
listType={files.length > 20 ? 'text' : 'picture-card'}
|
||||||
fileList={files.map((file) => ({
|
fileList={files.map(
|
||||||
uid: file.id,
|
(file) =>
|
||||||
url: 'file://' + FileManager.getSafePath(file),
|
({
|
||||||
status: 'done',
|
uid: file.id,
|
||||||
name: file.name
|
url: 'file://' + FileManager.getSafePath(file),
|
||||||
}))}
|
status: 'done',
|
||||||
|
name: file.name
|
||||||
|
}) as UploadFile
|
||||||
|
)}
|
||||||
onRemove={(item) => setFiles(files.filter((file) => item.uid !== file.id))}
|
onRemove={(item) => setFiles(files.filter((file) => item.uid !== file.id))}
|
||||||
/>
|
/>
|
||||||
</ContentContainer>
|
</ContentContainer>
|
||||||
@ -38,4 +41,10 @@ const ContentContainer = styled.div`
|
|||||||
padding: 10px 15px 0;
|
padding: 10px 15px 0;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const Upload = styled(AntdUpload)`
|
||||||
|
.ant-upload-list-item {
|
||||||
|
background-color: var(--color-background);
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
export default AttachmentPreview
|
export default AttachmentPreview
|
||||||
|
|||||||
@ -653,7 +653,8 @@ const InputBarContainer = styled.div`
|
|||||||
border: 0.5px solid var(--color-border);
|
border: 0.5px solid var(--color-border);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 15px 20px;
|
margin: 14px 20px;
|
||||||
|
margin-top: 12px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
background-color: var(--color-background-opacity);
|
background-color: var(--color-background-opacity);
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user