feat: 新增系统托盘功能与关闭确认对话框

- 新增系统托盘图标及菜单,支持显示窗口、启动/停止穿透、退出应用
- 点击窗口关闭按钮或使用系统关闭快捷键时,弹出确认对话框,可选择最小化到托盘或直接退出
- 托盘菜单随语言切换同步更新,且根据穿透运行状态自动启用/禁用对应选项
- 升级应用版本至v1.1.0,添加Tauri tray-icon特性及相关权限配置
This commit is contained in:
Yuhang Wu
2026-10-14 14:54:07 +08:00
parent 827075bdef
commit 8185275937
17 changed files with 489 additions and 8 deletions
+13
View File
@@ -28,6 +28,19 @@
"download": "Download frpc",
"setting": "Settings"
},
"tray": {
"show": "Show window",
"start": "Start tunnel",
"stop": "Stop tunnel",
"quit": "Quit"
},
"closeDialog": {
"title": "Close Frpilot",
"tray": "Minimize to system tray",
"trayDesc": "Keep Frpilot running in the background; reopen it from the system tray",
"exit": "Quit directly",
"exitDesc": "Stop the tunnel and exit Frpilot completely"
},
"system": {
"cpu": "CPU usage",
"memory": "Memory usage",
+13
View File
@@ -28,6 +28,19 @@
"download": "Frpc 下载",
"setting": "设置"
},
"tray": {
"show": "显示窗口",
"start": "启动穿透",
"stop": "停止穿透",
"quit": "退出"
},
"closeDialog": {
"title": "关闭 Frpilot",
"tray": "最小化到系统托盘",
"trayDesc": "保持 Frpilot 在后台运行,可从系统托盘随时打开",
"exit": "直接退出",
"exitDesc": "停止穿透并完全退出 Frpilot"
},
"system": {
"cpu": "CPU 占用",
"memory": "内存占用",