From 4c2014f1d645c938a2dec1c1ca6b27ab053b1dbb Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Wed, 21 Aug 2024 10:15:19 +0800 Subject: [PATCH] chore(version): 0.6.0 --- package.json | 2 +- .../assets/fonts/{Ubuntu => ubuntu}/Ubuntu-Bold.ttf | Bin .../fonts/{Ubuntu => ubuntu}/Ubuntu-BoldItalic.ttf | Bin .../fonts/{Ubuntu => ubuntu}/Ubuntu-Italic.ttf | Bin .../fonts/{Ubuntu => ubuntu}/Ubuntu-Light.ttf | Bin .../fonts/{Ubuntu => ubuntu}/Ubuntu-LightItalic.ttf | Bin .../fonts/{Ubuntu => ubuntu}/Ubuntu-Medium.ttf | Bin .../{Ubuntu => ubuntu}/Ubuntu-MediumItalic.ttf | Bin .../fonts/{Ubuntu => ubuntu}/Ubuntu-Regular.ttf | Bin .../fonts/{Ubuntu/Ubuntu.css => ubuntu/ubuntu.css} | 0 src/renderer/src/components/Icons/CopyIcon.tsx | 4 ++-- src/renderer/src/pages/home/Markdown/CodeBlock.tsx | 5 +++-- 12 files changed, 6 insertions(+), 5 deletions(-) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-Bold.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-BoldItalic.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-Italic.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-Light.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-LightItalic.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-Medium.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-MediumItalic.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu => ubuntu}/Ubuntu-Regular.ttf (100%) rename src/renderer/src/assets/fonts/{Ubuntu/Ubuntu.css => ubuntu/ubuntu.css} (100%) diff --git a/package.json b/package.json index 3471c7db3..f65c72655 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Bold.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-Bold.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Bold.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-Bold.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-BoldItalic.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-BoldItalic.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-BoldItalic.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-BoldItalic.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Italic.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-Italic.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Italic.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-Italic.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Light.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-Light.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Light.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-Light.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-LightItalic.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-LightItalic.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-LightItalic.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-LightItalic.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Medium.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-Medium.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Medium.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-Medium.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-MediumItalic.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-MediumItalic.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-MediumItalic.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-MediumItalic.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Regular.ttf b/src/renderer/src/assets/fonts/ubuntu/Ubuntu-Regular.ttf similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu-Regular.ttf rename to src/renderer/src/assets/fonts/ubuntu/Ubuntu-Regular.ttf diff --git a/src/renderer/src/assets/fonts/Ubuntu/Ubuntu.css b/src/renderer/src/assets/fonts/ubuntu/ubuntu.css similarity index 100% rename from src/renderer/src/assets/fonts/Ubuntu/Ubuntu.css rename to src/renderer/src/assets/fonts/ubuntu/ubuntu.css diff --git a/src/renderer/src/components/Icons/CopyIcon.tsx b/src/renderer/src/components/Icons/CopyIcon.tsx index 79f2b56a8..20a91db47 100644 --- a/src/renderer/src/components/Icons/CopyIcon.tsx +++ b/src/renderer/src/components/Icons/CopyIcon.tsx @@ -1,7 +1,7 @@ import { FC } from 'react' -const CopyIcon: FC = () => { - return +const CopyIcon: FC, HTMLElement>> = (props) => { + return } export default CopyIcon diff --git a/src/renderer/src/pages/home/Markdown/CodeBlock.tsx b/src/renderer/src/pages/home/Markdown/CodeBlock.tsx index 17d67ef78..b3bac4fda 100644 --- a/src/renderer/src/pages/home/Markdown/CodeBlock.tsx +++ b/src/renderer/src/pages/home/Markdown/CodeBlock.tsx @@ -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 = ({ children, className, ...rest }) =
{'<' + match[1].toUpperCase() + '>'} - {!copied && } + {!copied && } {copied && }