diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..91e2a66 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +name: Build and Package Multi-API + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + inputs: + reason: + description: 'Manual build reason' + required: false + default: 'Manual build' + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '24.x' + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Install pkg globally + run: npm install -g pkg + + - name: Build and package + run: node build.js + + - name: Archive build artifacts + uses: actions/upload-artifact@v4 + with: + name: Multi-API-Build + path: Multi-API/ + retention-days: 14 diff --git a/Multi-API.zip b/Multi-API.zip deleted file mode 100644 index 3faf904..0000000 Binary files a/Multi-API.zip and /dev/null differ diff --git a/Multi-API/Clean-Privacy.exe b/Multi-API/Clean-Privacy.exe index d310472..015a76a 100644 Binary files a/Multi-API/Clean-Privacy.exe and b/Multi-API/Clean-Privacy.exe differ diff --git a/Multi-API/Multi-API.exe b/Multi-API/Multi-API.exe index fd81985..6fa2285 100644 Binary files a/Multi-API/Multi-API.exe and b/Multi-API/Multi-API.exe differ diff --git a/Multi-API/README.txt b/Multi-API/README.txt index 0a31e09..51e2900 100644 --- a/Multi-API/README.txt +++ b/Multi-API/README.txt @@ -1,20 +1,10 @@ # Multi-API 应用 -## 功能特点 - -- 多API端点管理和切换 -- API密钥安全存储 -- 多语言界面(中文和英文) -- Debug模式用于API交互日志记录 -- 轻量级且资源占用少 - ## 使用说明 1. 在Linux/macOS系统上,执行 ./start.sh 启动Multi-API服务;在Windows系统上,双击 start.bat 或执行 start.bat 2. 打开浏览器访问 http://localhost:3000 使用应用 3. 如需清理隐私数据,在Linux/macOS系统上执行 ./clean-privacy.sh;在Windows系统上,双击 clean-privacy.bat 或执行 clean-privacy.bat -4. 在界面右上角可以切换语言(中文/英文) -5. 在代理信息卡片中可以开启/关闭Debug模式,记录API交互日志 ## 文件说明 diff --git a/Multi-API/clean-privacy.sh b/Multi-API/clean-privacy.sh new file mode 100644 index 0000000..3f9fef9 --- /dev/null +++ b/Multi-API/clean-privacy.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "正在启动隐私数据清理工具..." + +# 获取脚本所在目录 +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# 执行清理工具 +"$SCRIPT_DIR/Clean-Privacy.exe" diff --git a/Multi-API/data/db.json b/Multi-API/data/db.json index 649bf30..1cc78b8 100644 --- a/Multi-API/data/db.json +++ b/Multi-API/data/db.json @@ -1,4 +1,7 @@ { "apiConfigs": [], - "activeConfig": null + "activeConfig": null, + "debugMode": false, + "debugLogs": [], + "language": "zh" } \ No newline at end of file diff --git a/Multi-API/public/css/style.css b/Multi-API/public/css/style.css index 8b7d0fa..daa13d2 100644 --- a/Multi-API/public/css/style.css +++ b/Multi-API/public/css/style.css @@ -19,17 +19,39 @@ body { } header { - text-align: center; margin-bottom: 30px; } +.header-content { + display: flex; + justify-content: space-between; + align-items: center; +} + header h1 { color: #2c3e50; margin-bottom: 10px; + text-align: left; } header p { color: #7f8c8d; + text-align: left; +} + +.language-selector { + display: flex; + gap: 10px; +} + +.language-selector button { + min-width: 80px; +} + +.language-selector button.active { + background-color: #3498db; + border-color: #3498db; + color: white; } /* 卡片样式 */ diff --git a/Multi-API/public/index.html b/Multi-API/public/index.html index b907777..141745e 100644 --- a/Multi-API/public/index.html +++ b/Multi-API/public/index.html @@ -9,8 +9,16 @@
管理和切换您的API端点和密钥
+管理和切换您的API端点和密钥
+