From db7a4f0b018382035e0343c35293f5106b7176d8 Mon Sep 17 00:00:00 2001 From: lencx Date: Wed, 25 Jan 2023 10:20:50 +0800 Subject: [PATCH 1/3] chore: fmt --- src/view/model/UserCustom/index.tsx | 2 +- src/view/notes/config.tsx | 1 - src/view/settings/MainWindow.tsx | 2 +- src/view/settings/TrayWindow.tsx | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/view/model/UserCustom/index.tsx b/src/view/model/UserCustom/index.tsx index 591d35f..6236b18 100644 --- a/src/view/model/UserCustom/index.tsx +++ b/src/view/model/UserCustom/index.tsx @@ -12,7 +12,7 @@ import { chatRoot, fmtDate } from '@/utils'; import { modelColumns } from './config'; import UserCustomForm from './Form'; -export default function LanguageModel() { +export default function UserCustom() { const { rowSelection, selectedRowIDs } = useTableRowSelection(); const [isVisible, setVisible] = useState(false); const [jsonPath, setJsonPath] = useState(''); diff --git a/src/view/notes/config.tsx b/src/view/notes/config.tsx index 53ed522..fa100ac 100644 --- a/src/view/notes/config.tsx +++ b/src/view/notes/config.tsx @@ -67,6 +67,5 @@ const RenderPath = ({ row }: any) => { }; export const getPath = async (row: any) => { - const isImg = ['png'].includes(row?.ext); return (await path.join(await chatRoot(), 'notes', row.id)) + `.${row.ext}`; }; diff --git a/src/view/settings/MainWindow.tsx b/src/view/settings/MainWindow.tsx index 0235ab7..d940b07 100644 --- a/src/view/settings/MainWindow.tsx +++ b/src/view/settings/MainWindow.tsx @@ -30,7 +30,7 @@ const PopupSearchLabel = () => { ); }; -export default function General() { +export default function MainWindow() { return ( <> } name="popup_search" valuePropName="checked"> diff --git a/src/view/settings/TrayWindow.tsx b/src/view/settings/TrayWindow.tsx index 7415911..2500c3d 100644 --- a/src/view/settings/TrayWindow.tsx +++ b/src/view/settings/TrayWindow.tsx @@ -17,7 +17,7 @@ const UALabel = () => { ); }; -export default function General() { +export default function TrayWindow() { return ( <> From 1c3b3c1f2243f4778dace88151552b7760c82c1a Mon Sep 17 00:00:00 2001 From: lencx Date: Wed, 25 Jan 2023 10:26:53 +0800 Subject: [PATCH 2/3] readme --- README-ZH_CN.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README-ZH_CN.md b/README-ZH_CN.md index 92d31a6..96024af 100644 --- a/README-ZH_CN.md +++ b/README-ZH_CN.md @@ -87,6 +87,7 @@ - 跨平台: `macOS` `Linux` `Windows` - 导出 ChatGPT 聊天记录 (支持 PNG, PDF 和生成分享链接) +- 主窗口和系统托盘支持自定义 URL,将任意网站包装成一个桌面应用 - 应用自动升级通知 - 丰富的快捷键 - 系统托盘悬浮窗 diff --git a/README.md b/README.md index 58af401..e1e8332 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ You can look at **[awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt - Multi-platform: `macOS` `Linux` `Windows` - Export ChatGPT history (PNG, PDF and Markdown) +- The main window and system tray support custom URLs to wrap any website into a desktop application - Automatic application upgrade notification - Common shortcut keys - System tray hover window From 585582244d9b0daddf4e6055f8c76497ce219539 Mon Sep 17 00:00:00 2001 From: lencx Date: Wed, 25 Jan 2023 10:32:19 +0800 Subject: [PATCH 3/3] readme --- README-ZH_CN.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README-ZH_CN.md b/README-ZH_CN.md index 96024af..46a671a 100644 --- a/README-ZH_CN.md +++ b/README-ZH_CN.md @@ -130,6 +130,7 @@ - `[.chatgpt]` - 应用配置根路径 - `chat.conf.json` - 应用喜好配置 + - `chat.awesome.json` - 自定义 URL 列表,类似于浏览器书签。可以将任意 URL 作为主窗口或托盘窗口 (**Control Conter -> Awesome**) - `chat.model.json` - ChatGPT 输入提示,通过斜杠命令来快速完成输入,主要包含三部分: - `user_custom` - 需要手动录入 (**Control Conter -> Language Model -> User Custom**) - `sync_prompts` - 从 [f/awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) 同步数据 (**Control Conter -> Language Model -> Sync Prompts**) diff --git a/README.md b/README.md index e1e8332..a6e5bce 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ You can look at **[awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt - `[.chatgpt]` - application configuration root folder - `chat.conf.json` - preferences configuration + - `chat.awesome.json` - Custom URL lists, similar to browser bookmarks. Any URL can be used as the main window or tray window (**Control Conter -> Awesome**) - `chat.model.json` - prompts configuration,contains three parts: - `user_custom` - Requires manual data entry (**Control Conter -> Language Model -> User Custom**) - `sync_prompts` - Synchronizing data from [f/awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) (**Control Conter -> Language Model -> Sync Prompts**)