mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
chore: temp
This commit is contained in:
parent
13e1ddbccd
commit
182bf49ad0
|
@ -22,10 +22,10 @@ fn main() -> std::io::Result<()> {
|
|||
}
|
||||
|
||||
let menu = SystemTrayMenu::new()
|
||||
.add_item(CustomMenuItem::new("open_window", "显示应用"))
|
||||
.add_item(CustomMenuItem::new("restart_clash", "重启clash"))
|
||||
.add_item(CustomMenuItem::new("open_window", "Show"))
|
||||
.add_item(CustomMenuItem::new("restart_clash", "Restart Clash"))
|
||||
.add_native_item(SystemTrayMenuItem::Separator)
|
||||
.add_item(CustomMenuItem::new("quit", "退出").accelerator("CmdOrControl+Q"));
|
||||
.add_item(CustomMenuItem::new("quit", "Quit").accelerator("CmdOrControl+Q"));
|
||||
|
||||
tauri::Builder::default()
|
||||
.manage(states::VergeState::default())
|
||||
|
|
|
@ -43,11 +43,11 @@ const SettingClash = ({ onError }: Props) => {
|
|||
return (
|
||||
<List>
|
||||
<ListSubheader sx={{ background: "transparent" }}>
|
||||
Clash设置
|
||||
Clash Setting
|
||||
</ListSubheader>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="局域网连接" />
|
||||
<ListItemText primary="Allow Lan" />
|
||||
<GuardState
|
||||
value={allowLan}
|
||||
valueProps="checked"
|
||||
|
@ -75,7 +75,7 @@ const SettingClash = ({ onError }: Props) => {
|
|||
</SettingItem>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="日志等级" />
|
||||
<ListItemText primary="Log Level" />
|
||||
<GuardState
|
||||
value={logLevel}
|
||||
onCatch={onError}
|
||||
|
@ -94,7 +94,7 @@ const SettingClash = ({ onError }: Props) => {
|
|||
</SettingItem>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="混合代理端口" />
|
||||
<ListItemText primary="Mixed Port" />
|
||||
<TextField
|
||||
size="small"
|
||||
value={mixedPort!}
|
||||
|
|
|
@ -39,10 +39,12 @@ const SettingVerge = ({ onError }: Props) => {
|
|||
|
||||
return (
|
||||
<List>
|
||||
<ListSubheader sx={{ background: "transparent" }}>通用设置</ListSubheader>
|
||||
<ListSubheader sx={{ background: "transparent" }}>
|
||||
Common Setting
|
||||
</ListSubheader>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="外观主题" />
|
||||
<ListItemText primary="Theme Mode" />
|
||||
<GuardState
|
||||
value={mode === "dark"}
|
||||
valueProps="checked"
|
||||
|
@ -58,7 +60,7 @@ const SettingVerge = ({ onError }: Props) => {
|
|||
</SettingItem>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="开机自启" />
|
||||
<ListItemText primary="Self Start" />
|
||||
<GuardState
|
||||
value={startup}
|
||||
valueProps="checked"
|
||||
|
@ -74,7 +76,7 @@ const SettingVerge = ({ onError }: Props) => {
|
|||
</SettingItem>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="设置系统代理" />
|
||||
<ListItemText primary="System Proxy" />
|
||||
<GuardState
|
||||
value={proxy}
|
||||
valueProps="checked"
|
||||
|
|
|
@ -17,23 +17,23 @@ import Traffic from "../components/traffic";
|
|||
|
||||
const routers = [
|
||||
{
|
||||
label: "代理",
|
||||
label: "Proxy",
|
||||
link: "/proxy",
|
||||
},
|
||||
{
|
||||
label: "配置",
|
||||
label: "Profile",
|
||||
link: "/profile",
|
||||
},
|
||||
{
|
||||
label: "连接",
|
||||
label: "Connections",
|
||||
link: "/connections",
|
||||
},
|
||||
{
|
||||
label: "日志",
|
||||
label: "Log",
|
||||
link: "/log",
|
||||
},
|
||||
{
|
||||
label: "设置",
|
||||
label: "Setting",
|
||||
link: "/setting",
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user