chore(version): 0.6.0

This commit is contained in:
kangfenmao 2024-08-21 10:15:19 +08:00
parent 647dd3e751
commit 4c2014f1d6
12 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "cherry-studio",
"version": "0.5.9",
"version": "0.6.0",
"description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js",
"author": "kangfenmao@qq.com",

View File

@ -1,7 +1,7 @@
import { FC } from 'react'
const CopyIcon: FC = () => {
return <i className="iconfont icon-copy" />
const CopyIcon: FC<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>> = (props) => {
return <i {...props} className={`iconfont icon-copy ${props.className}`} />
}
export default CopyIcon

View File

@ -1,4 +1,5 @@
import { CheckOutlined, CopyOutlined } from '@ant-design/icons'
import { CheckOutlined } from '@ant-design/icons'
import CopyIcon from '@renderer/components/Icons/CopyIcon'
import { initMermaid } from '@renderer/init'
import { useTheme } from '@renderer/providers/ThemeProvider'
import { ThemeMode } from '@renderer/store/settings'
@ -39,7 +40,7 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ children, className, ...rest }) =
<div>
<CodeHeader>
<CodeLanguage>{'<' + match[1].toUpperCase() + '>'}</CodeLanguage>
{!copied && <CopyOutlined className="copy" onClick={onCopy} />}
{!copied && <CopyIcon className="copy" onClick={onCopy} />}
{copied && <CheckOutlined style={{ color: 'var(--color-primary)' }} />}
</CodeHeader>
<SyntaxHighlighter