diff --git a/package.json b/package.json index fdeb1d1..6700d41 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frpcpilot", "private": true, - "version": "1.3.2", + "version": "1.4.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/src/commands/frp.rs b/src-tauri/src/commands/frp.rs index 25a52f3..260d2aa 100644 --- a/src-tauri/src/commands/frp.rs +++ b/src-tauri/src/commands/frp.rs @@ -174,8 +174,8 @@ fn emit_progress( /// 获取 Frp 版本列表(返回所有架构的发行包,并合并本机已下载 / 已导入记录) /// -/// 前端根据「展示所有架构的 Frpc / Frps」开关在本地过滤,避免频繁请求 -/// GitHub API 触发限流;默认仅展示当前运行平台由前端完成。 +/// 前端根据平台下拉列表在本地过滤,避免频繁请求 GitHub API 触发限流; +/// 默认仅展示当前运行平台由前端完成。 #[tauri::command] #[auto_collect_command] pub async fn get_frp_releases( diff --git a/src/api/frp.ts b/src/api/frp.ts index 344a333..9f28401 100644 --- a/src/api/frp.ts +++ b/src/api/frp.ts @@ -22,7 +22,7 @@ async function call(command: string, args?: Record): Promise } /** - * 获取 Frp 版本列表(返回所有架构,前端按开关过滤) + * 获取 Frp 版本列表(返回所有架构,前端按平台筛选) */ export function getFrpReleases() { return call("get_frp_releases") diff --git a/src/components/frp/FrpCard.vue b/src/components/frp/FrpCard.vue index cccb8c7..e7e6a79 100644 --- a/src/components/frp/FrpCard.vue +++ b/src/components/frp/FrpCard.vue @@ -11,7 +11,7 @@
{{ release.platform }} frpc - frps + frps
@@ -93,7 +93,6 @@ import type { FrpDownloadProgress, FrpRelease } from "@/types/frp" const props = defineProps<{ release: FrpRelease progress?: FrpDownloadProgress | null - showFrps?: boolean }>() const emit = defineEmits<{ diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index a9adf21..2de6ceb 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json @@ -25,7 +25,7 @@ "dashboard": "Dashboard", "servers": "Servers", "tunnels": "Tunnels", - "download": "Download frpc", + "download": "Frp Download", "setting": "Settings" }, "tray": { @@ -62,7 +62,7 @@ "arch": "Architecture", "ip": "IP address", "frpcVersion": "Frpc version", - "frpcVersionEmpty": "No downloaded version yet. Download one from the Frpc download page first.", + "frpcVersionEmpty": "No downloaded version yet. Download one from the Frp download page first.", "start": "One-click start", "stop": "Stop", "logs": "Live logs", @@ -236,8 +236,8 @@ "frp": { "refresh": "Refresh", "import": "Import local", - "showAllArchFrpc": "All-arch Frpc", - "showAllArchFrps": "All-arch Frps", + "platformFilter": "Platform", + "allPlatforms": "All", "empty": "No Frp release data. Click Refresh to retry.", "downloaded": "Downloaded", "local": "Local", @@ -272,8 +272,8 @@ "intro": "FrpcPilot is a visual client for frp built with Tauri 2 + Vue 3 + TypeScript. Manage frpc versions, servers and tunnels through a friendly GUI — and say goodbye to hand-writing frpc.toml.", "flowTitle": "How to use", "flow": { - "step1Title": "Download frpc", - "step1Desc": "Open \"Download frpc\", grab the build for your platform and architecture, or import a local one.", + "step1Title": "Download Frp", + "step1Desc": "Open \"Frp Download\", grab the build for your platform and architecture, or import a local one.", "step2Title": "Configure a server", "step2Desc": "Add the frps address, port and auth token under \"Servers\", then enable one of them.", "step3Title": "Configure tunnels", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index cd9a7e5..3c069c0 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -25,7 +25,7 @@ "dashboard": "仪表盘", "servers": "服务器", "tunnels": "隧道列表", - "download": "Frpc 下载", + "download": "Frp下载", "setting": "设置" }, "tray": { @@ -62,7 +62,7 @@ "arch": "系统架构", "ip": "IP 地址", "frpcVersion": "Frpc 版本", - "frpcVersionEmpty": "暂无已下载版本,请先前往 Frpc 下载页面下载", + "frpcVersionEmpty": "暂无已下载版本,请先前往 Frp下载页面下载", "start": "一键启动", "stop": "停止", "logs": "实时日志", @@ -236,8 +236,8 @@ "frp": { "refresh": "刷新", "import": "导入本地", - "showAllArchFrpc": "所有架构 Frpc", - "showAllArchFrps": "所有架构 Frps", + "platformFilter": "架构", + "allPlatforms": "全部", "empty": "暂无 Frp 版本数据,点击刷新重试", "downloaded": "已下载", "local": "本地", @@ -272,8 +272,8 @@ "intro": "FrpcPilot 是一个基于 Tauri 2 + Vue 3 + TypeScript 打造的 frp 可视化客户端,帮你用图形界面管理 frpc 版本、服务器与隧道,从此告别手写 frpc.toml。", "flowTitle": "使用流程", "flow": { - "step1Title": "下载 frpc", - "step1Desc": "进入「Frpc 下载」,按平台与架构下载,或导入本地已有的 frpc。", + "step1Title": "下载 Frp", + "step1Desc": "进入「Frp下载」,按平台与架构下载,或导入本地已有的 frpc。", "step2Title": "配置服务器", "step2Desc": "在「服务器」中填写 frps 地址、端口与鉴权 Token,并启用其中一台。", "step3Title": "配置隧道", diff --git a/src/views/Download.vue b/src/views/Download.vue index 63fb604..fbe4ceb 100644 --- a/src/views/Download.vue +++ b/src/views/Download.vue @@ -10,13 +10,15 @@
- -