feat: 新增常规设置页面,支持关闭行为与语言切换
新增常规设置路由和页面,实现关闭行为(每次询问/保持选择)与应用语言的持久化配置;封装卡片式单选组组件复用在关闭弹窗和设置页;修改关闭逻辑,根据关闭行为决定是否显示确认弹窗,同步更新多语言文案和类型定义。
This commit is contained in:
@@ -39,7 +39,12 @@
|
||||
"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"
|
||||
"exitDesc": "Stop the tunnel and exit Frpilot completely",
|
||||
"behavior": "Close behavior",
|
||||
"ask": "Ask every time",
|
||||
"askDesc": "Show this dialog on every close and let you choose",
|
||||
"remember": "Keep the choice above",
|
||||
"rememberDesc": "Remember the close method above and never ask again"
|
||||
},
|
||||
"system": {
|
||||
"cpu": "CPU usage",
|
||||
@@ -73,9 +78,20 @@
|
||||
"title": "Settings",
|
||||
"placeholder": "The settings page is under construction.",
|
||||
"menu": {
|
||||
"general": "General",
|
||||
"appearance": "Appearance",
|
||||
"about": "About"
|
||||
},
|
||||
"general": {
|
||||
"title": "General",
|
||||
"subtitle": "Basic settings such as close behavior and app language",
|
||||
"closeBehavior": "Close behavior",
|
||||
"closeBehaviorTip": "Choose what happens when you click the close button. Kept in sync with the close dialog.",
|
||||
"closeAction": "Close method",
|
||||
"closeActionTip": "Takes effect when \"Keep the choice above\" is selected. The window closes this way directly, and it is also the default option in the close dialog.",
|
||||
"language": "Language",
|
||||
"languageTip": "Switch the interface language. In sync with the language switcher in the title bar."
|
||||
},
|
||||
"appearance": {
|
||||
"title": "Appearance",
|
||||
"subtitle": "Customize the theme mode and window background",
|
||||
|
||||
@@ -39,7 +39,12 @@
|
||||
"tray": "最小化到系统托盘",
|
||||
"trayDesc": "保持 Frpilot 在后台运行,可从系统托盘随时打开",
|
||||
"exit": "直接退出",
|
||||
"exitDesc": "停止穿透并完全退出 Frpilot"
|
||||
"exitDesc": "停止穿透并完全退出 Frpilot",
|
||||
"behavior": "关闭行为",
|
||||
"ask": "每次询问",
|
||||
"askDesc": "每次关闭都弹出此对话框,由你选择关闭方式",
|
||||
"remember": "保持以上选择",
|
||||
"rememberDesc": "记住上面的关闭方式,之后关闭不再询问"
|
||||
},
|
||||
"system": {
|
||||
"cpu": "CPU 占用",
|
||||
@@ -73,9 +78,20 @@
|
||||
"title": "设置",
|
||||
"placeholder": "设置页面开发中,敬请期待。",
|
||||
"menu": {
|
||||
"general": "常规",
|
||||
"appearance": "外观设置",
|
||||
"about": "关于"
|
||||
},
|
||||
"general": {
|
||||
"title": "常规",
|
||||
"subtitle": "关闭行为与应用语言等基础设置",
|
||||
"closeBehavior": "关闭行为",
|
||||
"closeBehaviorTip": "设置点击关闭按钮时的处理方式,与关闭弹窗中的选项保持一致",
|
||||
"closeAction": "关闭方式",
|
||||
"closeActionTip": "选择「保持以上选择」后生效,关闭窗口时将直接按此方式处理,同时也作为关闭弹窗的默认选项",
|
||||
"language": "语言",
|
||||
"languageTip": "切换界面显示语言,与顶部栏的语言切换保持同步"
|
||||
},
|
||||
"appearance": {
|
||||
"title": "外观设置",
|
||||
"subtitle": "自定义窗口的主题模式与背景图片",
|
||||
|
||||
Reference in New Issue
Block a user