-![card](README/card.png)
+![view](README/view.png)
+
+# 文档
+
+- **[Simplified Chinese](README.md)**
+- **English(Current)**
## ✨ Supported Features
+
- ✅ Developed with a complete Vue.js framwork, frontend-backend seperated
- 🎨 Adaptive landscape and portrait layouts
- 🖥️ PWA support (why not just use our cool Electron app anyway)
@@ -39,18 +40,23 @@
- 🛠 More to come ...
## ♿️ Get Started
+
### > Running Services
+
Stapxs QQ Lite requires connecting to a QQ bot API to function properly. You can set one up by following [📖 this documentation](https://github.com/Stapxs/Stapxs-QQ-Lite-2.0/wiki/%E8%BF%9E%E6%8E%A5-oicq2-http).
### > Using the App On the Go
+
GitHub Pages is enabled and is serving a live demo [🌎 over here](https://stapxs.github.io/Stapxs-QQ-Lite-2.0).
### > Installing the App
+
Besides the live demo, you can also download the desktop app built with Electron that has more features [📦️ here](https://github.com/Stapxs/Stapxs-QQ-Lite-2.0/releases).
## 💬 Tips and FAQs
### > Insecure connections?
+
- When connecting to a WebSocket (ws) service via an HTTPS page, or vice versa, the connection will fail because one of them is insecure. In this case, you can choose to upgrade the WebSocket connection to a secure WebSocket (wss) or downgrade the HTTPS connection to HTTP (insecure) to solve the problem. However, specific solutions are not provided here. >> [Stapxs-QQ-Lite#32](https://github.com/Stapxs/Stapxs-QQ-Lite/issues/32)
### > Could I use other QQ bot APIs?
@@ -62,57 +68,95 @@ Besides the live demo, you can also download the desktop app built with Electron
- For potential risks in using oicq-http, refer to [this page](). If you're using other QQ bot APIs, check out their own repositories for more infomation.
-### > I have questions / problems.
+### > I have questions / problems
- Don't hesitate to send us an [issue]() if you do. Bug reports and suggestions are also welcome.
## 📦️ Building the App
-### > Building Webpages
-Stapxs QQ Lite 2.0 is a single-page Vue application, which means you'll have to build the page before serving it.
-NOTE: if you do not serve the app at public web root, you'll have to modify the value of `publicPath` in `vue.config.js` to your need before you build it. You can also remove the mentioned key if you only plan to serve the app at web root.
+In order to standardize the reference to other repositories, Stapxs QQ Lite 2.0 repository contains some submodules, which means you need to include submodules when cloning the repository:
-Below are commands used to test and build this Vue app. Artifacts will be in `dist` folder.
+``` bash
+git clone https://github.com/Stapxs/Stapxs-QQ-Lite-2.0 --recursive
+```
+
+If you have already cloned the repository, you can also use this to complete the submodules:
+
+``` bash
+git submodule update --init
+```
+
+Before starting to build, install dependencies, please make sure to install yarn:
``` bash
# Install dependencies
+yarn
+
+or
+
yarn install
-# Test the app locally
-yarn serve
-# Check and format the code
+```
+
+### > Building Webpages
+
+Stapxs QQ Lite 2.0 is a single-page Vue application, which means you'll have to build the page before serving it.
+
+Below are commands used to test and build this Vue app. Artifacts will be in `dist` folder.
+
+``` bash
+# Run local debugging
+yarn dev
+
+# Code check and automatic formatting
yarn lint
-# Build the app
+
+# Build application
yarn build
```
### > Building the Electron App
+
Starting from version `2.3.0`, Stapxs QQ Lite 2.0 can be built into an Electron app with enhanced features for some platforms. You can also build the app yourself with instructions below.
Commands for testing and building the Electron app are shown below. Artifacts will be in `dist_electron/out` folder.
``` bash
-# Run local Electron test
-yarn electron:serve
-# Build the Electron app
-yarn electron:build
-```
-You can also specify the desired platform with an option:
+# Electron run local debugging
+yarn dev:electron
-```bash
-yarn electron:build --linux
+# Electron build application
+yarn build:win
```
+
+Other platform builds can be viewed in [command list](#-command-list)
+
+### > Command List
+
+Command format is `yarn `, where `` is one of the following in the list:
+
+| Command | Command |
+| ------------- | ----------------------------------- |
+| install | Install dependencies |
+| lint | Code check and automatic formatting |
+| dev | Web debugging |
+| dev:electron | Electron debugging |
+| dev:ios | Ios debugging |
+| dev:android | Android debugging |
+| build | Web build |
+| build:win | Build Windows App |
+| build:mac | Build MacOs App |
+| build:linux | Build Liunx App |
+| build:ios | Build Ios App |
+| build:android | Build Andorid App |
+
### > GitHub Actions
+
*Why would anyone be interested in build automation? Anyway, I had worked on it for so long and you can check it out yourself in GitHub Actions.*
![auto-build](README/auto-build.png)
-## 🖼️ Screenshots
-![1](README/pics/1.png)
-![2](README/pics/2.png)
-![3](README/pics/4.png)
-![3](README/pics/3.png)
-
## 🎉 Credits
+
Shoutout to my friends who have offered help in development and translation!
diff --git a/src/renderer/src/pages/options/OptView.vue b/src/renderer/src/pages/options/OptView.vue
index 32e3fbb..0af2c13 100644
--- a/src/renderer/src/pages/options/OptView.vue
+++ b/src/renderer/src/pages/options/OptView.vue
@@ -235,17 +235,17 @@