diff --git a/src/renderer/src/components/app/Sidebar.tsx b/src/renderer/src/components/app/Sidebar.tsx index bc337098..355a30a5 100644 --- a/src/renderer/src/components/app/Sidebar.tsx +++ b/src/renderer/src/components/app/Sidebar.tsx @@ -1,6 +1,12 @@ -import { FileSearchOutlined, FolderOutlined, PictureOutlined, TranslationOutlined } from '@ant-design/icons' +import { + FileSearchOutlined, + FolderOutlined, + PictureOutlined, + QuestionCircleOutlined, + TranslationOutlined +} from '@ant-design/icons' import { isMac } from '@renderer/config/constant' -import { isLocalAi, UserAvatar } from '@renderer/config/env' +import { AppLogo, isLocalAi, UserAvatar } from '@renderer/config/env' import { useTheme } from '@renderer/context/ThemeProvider' import useAvatar from '@renderer/hooks/useAvatar' import { useMinapps } from '@renderer/hooks/useMinapps' @@ -42,6 +48,14 @@ const Sidebar: FC = () => { navigate(path) } + const onOpenDocs = () => { + MinApp.start({ + name: t('docs.title'), + url: 'https://docs.cherry-ai.com/', + logo: AppLogo + }) + } + return ( { )} + + + + + toggleTheme()}> {theme === 'dark' ? ( diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 840e497e..c9a2aafd 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -740,6 +740,9 @@ "quit": "Quit", "show_window": "Show Window", "visualization": "Visualization" + }, + "docs": { + "title": "Docs" } } } diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json index 1588e599..3823d2b4 100644 --- a/src/renderer/src/i18n/locales/ja-jp.json +++ b/src/renderer/src/i18n/locales/ja-jp.json @@ -740,6 +740,9 @@ "quit": "終了", "show_window": "ウィンドウを表示", "visualization": "可視化" + }, + "docs": { + "title": "ドキュメント" } } } diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index 47d1019b..4534cf5d 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -740,6 +740,9 @@ "quit": "Выйти", "show_window": "Показать окно", "visualization": "Визуализация" + }, + "docs": { + "title": "Документация" } } } diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index de61f322..54589db1 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -740,6 +740,9 @@ "quit": "退出", "show_window": "显示窗口", "visualization": "可视化" + }, + "docs": { + "title": "帮助文档" } } } diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 94608835..4e547c91 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -740,6 +740,9 @@ "quit": "退出", "show_window": "顯示視窗", "visualization": "可視化" + }, + "docs": { + "title": "幫助文件" } } }