diff --git a/.gitattributes b/.gitattributes
index a293ab2..4fabca3 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,3 @@
-*.js linguist-vendored
\ No newline at end of file
+*.js linguist-vendored
+*.tsx linguist-vendored
+*.scss linguist-vendored
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b6bf105..32d67d5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -75,7 +75,7 @@ jobs:
${{ runner.os }}-yarn-
- name: Install app dependencies and build it
- run: yarn
+ run: yarn && yarn build:fe
- uses: tauri-apps/tauri-action@v0.3
env:
diff --git a/.gitignore b/.gitignore
index 20036f9..707eccc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,32 @@
-.DS_Store
-*.lock
-
package-lock.json
node_modules/
yarn.lock
+*.lock
+# rust
target/
Cargo.lock
+
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
diff --git a/AWESOME.md b/AWESOME.md
index bb72e9d..9d75821 100644
--- a/AWESOME.md
+++ b/AWESOME.md
@@ -10,6 +10,7 @@
- [ChatGPT Export and Share](https://github.com/liady/ChatGPT-pdf) - A Chrome extension for downloading your ChatGPT history to PNG, PDF or creating a sharable link
- [ChatGPT for Google](https://github.com/wong2/chat-gpt-google-extension) - A browser extension to display ChatGPT response alongside Google Search results
- [ChatGPT Extension](https://github.com/kazuki-sf/ChatGPT_Extension) - ChatGPT Extension is a really simple Chrome Extension (manifest v3) that you can access OpenAI's ChatGPT from anywhere on the web.
+- [ChatGPT-Google](https://github.com/ZohaibAhmed/ChatGPT-Google) - Chrome Extension that Integrates ChatGPT (Unofficial) into Google Search
`VSCode`
@@ -18,3 +19,8 @@
`Bot`
- [ChatGPT Telegram Bot](https://github.com/altryne/chatGPT-telegram-bot) - This is a very early attempt at having chatGPT work within a telegram bot
+
+## Tools
+
+- [commitgpt](https://github.com/RomanHotsiy/commitgpt) - Automatically generate commit messages using ChatGPT
+- [ShareGPT](https://sharegpt.com/) - ShareGPT: Share your wildest ChatGPT conversations with one click.
diff --git a/README-ZH.md b/README-ZH.md
index 0f8ce5b..7932a69 100644
--- a/README-ZH.md
+++ b/README-ZH.md
@@ -20,9 +20,9 @@
**最新版:**
-- `Mac`: [ChatGPT_0.2.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64.dmg)
-- `Linux`: [chat-gpt_0.2.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/chat-gpt_0.2.1_amd64.deb)
-- `Windows`: [ChatGPT_0.2.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64_en-US.msi)
+- `Mac`: [ChatGPT_v0.3.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/vv0.3.0/ChatGPT_v0.3.0_x64.dmg)
+- `Linux`: [chat-gpt_v0.3.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/vv0.3.0/chat-gpt_v0.3.0_amd64.deb)
+- `Windows`: [ChatGPT_v0.3.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/vv0.3.0/ChatGPT_v0.3.0_x64_en-US.msi)
[其他版本...](https://github.com/lencx/ChatGPT/releases)
@@ -60,9 +60,12 @@ cask "popcorn-time", args: { "no-quarantine": true }
- `Theme` - `Light`, `Dark` (仅支持 macOS 和 Windows)
- `Always On Top`: 窗口置顶
- `Titlebar`: 是否显示 `Titlebar`,仅 macOS 支持
- - `User Agent` ([#17](https://github.com/lencx/ChatGPT/issues/17)): 自定义 `user agent` 防止网站安全检测,默认值为空。
- `Inject Script`: 用于修改网站的用户自定义脚本
- - `Switch Origin` ([#14](https://github.com/lencx/ChatGPT/issues/14)): 切换网站源地址,默认为 `https://chat.openai.com`。需要注意的是镜像网站的 UI 需要和原网站一致,否则可能会导致某些功能不工作
+ - `Control Center`: ChatGPT 应用的控制中心,它将为应用提供无限的可能
+ - 设置 `Theme`,`Always on Top`,`Titlebar` 等
+ - `User Agent` ([#17](https://github.com/lencx/ChatGPT/issues/17)): 自定义 `user agent` 防止网站安全检测,默认值为空
+ - `Switch Origin` ([#14](https://github.com/lencx/ChatGPT/issues/14)): 切换网站源地址,默认为 `https://chat.openai.com`。需要注意的是镜像网站的 UI 需要和原网站一致,否则可能会导致某些功能不工作
+ - `Go to Config`: 打开 ChatGPT 配置目录 (`path: ~/.chatgpt/*`)
- `Clear Config`: 清除 ChatGPT 配置数据 (`path: ~/.chatgpt/*`), 这是危险操作,请提前备份数据
- `Restart ChatGPT`: 重启应用。如果注入脚本编辑完成,或者应用可卡死可以通过此菜单重新启动应用
- `Awesome ChatGPT`: 一个很棒的 ChatGPT 推荐列表
@@ -75,9 +78,10 @@ cask "popcorn-time", args: { "no-quarantine": true }
## 👀 预览
-
+
-
+
+
---
@@ -95,6 +99,10 @@ cask "popcorn-time", args: { "no-quarantine": true }
如果升级应用后无法打开,请尝试清除配置,它位于此目录 `~/.chatgpt/*`。
+### 主窗口已经登录,但是系统托盘窗口显示未登录
+
+可通过菜单项里的 `Restart ChatGPT` 重启应用来修复这个问题(`Menu -> Preferences -> Restart ChatGPT`)。
+
### 它是否安全?
它是安全的,仅仅只是对 [OpenAI ChatGPT](https://chat.openai.com) 网站的包装,注入了一些额外功能(均在本地,未发起网络请求),如果存疑,可以检查源代码。
diff --git a/README.md b/README.md
index 8f49697..a144726 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,9 @@
**Latest:**
-- `Mac`: [ChatGPT_0.2.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64.dmg)
-- `Linux`: [chat-gpt_0.2.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/chat-gpt_0.2.1_amd64.deb)
-- `Windows`: [ChatGPT_0.2.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64_en-US.msi)
+- `Mac`: [ChatGPT_vv0.3.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/vvv0.3.0/ChatGPT_vv0.3.0_x64.dmg)
+- `Linux`: [chat-gpt_vv0.3.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/vvv0.3.0/chat-gpt_vv0.3.0_amd64.deb)
+- `Windows`: [ChatGPT_vv0.3.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/vvv0.3.0/ChatGPT_vv0.3.0_x64_en-US.msi)
[Other version...](https://github.com/lencx/ChatGPT/releases)
@@ -60,9 +60,12 @@ cask "popcorn-time", args: { "no-quarantine": true }
- `Theme` - `Light`, `Dark` (Only macOS and Windows are supported).
- `Always on Top`: The window is always on top of other windows.
- `Titlebar`: Whether to display the titlebar, supported by macOS only.
- - `User Agent` ([#17](https://github.com/lencx/ChatGPT/issues/17)): Custom `user agent`, which may be required in some scenarios. The default value is the empty string.
- `Inject Script`: Using scripts to modify pages.
- - `Switch Origin` ([#14](https://github.com/lencx/ChatGPT/issues/14)): Switch the site source address, the default is `https://chat.openai.com`, please make sure the mirror site UI is the same as the original address. Otherwise, some functions may not be available.
+ - `Control Center`: The control center of ChatGPT application, it will give unlimited imagination to the application.
+ - `Theme`, `Always on Top`, `Titlebar`, ...
+ - `User Agent` ([#17](https://github.com/lencx/ChatGPT/issues/17)): Custom `user agent`, which may be required in some scenarios. The default value is the empty string.
+ - `Switch Origin` ([#14](https://github.com/lencx/ChatGPT/issues/14)): Switch the site source address, the default is `https://chat.openai.com`, please make sure the mirror site UI is the same as the original address. Otherwise, some functions may not be available.
+ - `Go to Config`: Open the configuration file directory (`path: ~/.chatgpt/*`).
- `Clear Config`: Clear the configuration file (`path: ~/.chatgpt/*`), dangerous operation, please backup the data in advance.
- `Restart ChatGPT`: Restart the application, for example: the program is stuck or the injection script can take effect by restarting the application after editing.
- `Awesome ChatGPT`: Recommended Related Resources.
@@ -81,9 +84,9 @@ cask "popcorn-time", args: { "no-quarantine": true }
## 👀 Preview
-
+
-
+
---
@@ -95,6 +98,10 @@ cask "popcorn-time", args: { "no-quarantine": true }
If you cannot open the application after the upgrade, please try to clear the configuration file, which is in the `~/.chatgpt/*` directory.
+### Out of sync login status between multiple windows
+
+If you have already logged in in the main window, but the system tray window shows that you are not logged in, you can fix it by restarting the application (`Menu -> Preferences -> Restart ChatGPT`).
+
### Is it safe?
It's safe, just a wrapper for [OpenAI ChatGPT](https://chat.openai.com) website, no other data transfer exists (you can check the source code).
diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md
index f82c11c..53f128c 100644
--- a/UPDATE_LOG.md
+++ b/UPDATE_LOG.md
@@ -1,5 +1,18 @@
# UPDATE LOG
+## v0.3.0
+
+fix: can't open ChatGPT
+
+feat: menu enhancement
+- the control center of ChatGPT application
+- open the configuration file directory
+
+## v0.2.2
+
+feat:
+- menu: go to config
+
## v0.2.1
feat: menu optimization
diff --git a/assets/auto-update.png b/assets/auto-update.png
index ebf1c9c..9cede36 100644
Binary files a/assets/auto-update.png and b/assets/auto-update.png differ
diff --git a/assets/chat-ua.png b/assets/chat-ua.png
deleted file mode 100644
index fa6a05b..0000000
Binary files a/assets/chat-ua.png and /dev/null differ
diff --git a/assets/chat.png b/assets/chat.png
deleted file mode 100644
index efdd6ab..0000000
Binary files a/assets/chat.png and /dev/null differ
diff --git a/assets/control-center.png b/assets/control-center.png
new file mode 100644
index 0000000..90b8d0d
Binary files /dev/null and b/assets/control-center.png differ
diff --git a/assets/tray-login.png b/assets/tray-login.png
new file mode 100644
index 0000000..0dad35b
Binary files /dev/null and b/assets/tray-login.png differ
diff --git a/dist/.gitkeep b/dist/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..f28c8f0
--- /dev/null
+++ b/index.html
@@ -0,0 +1,13 @@
+
+
+