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