Skip to content

Commit c882b86

Browse files
committed
simply: remove <home> page, remove <LayoutTraffic>(in the left corner).
1 parent 1c70314 commit c882b86

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ inherits = "release" # 继承 release 的配置
135135
panic = "unwind" # 与 release 相同
136136
codegen-units = 32 # 增加编译单元,提升编译速度
137137
lto = false # 禁用 LTO,提升编译速度
138-
opt-level = 3 # 禁用优化,大幅提升编译速度
138+
opt-level = 1 # 禁用优化,大幅提升编译速度
139139
debug = true # 保留调试信息
140140
strip = false # 不剥离符号,保留调试信息
141141

src-tauri/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ mod app_init {
202202
cmd::start_logs_monitoring,
203203
cmd::stop_logs_monitoring,
204204
cmd::clear_logs,
205-
cmd::get_system_monitor_overview,
205+
// cmd::get_system_monitor_overview,
206206
cmd::start_traffic_service,
207207
cmd::stop_traffic_service,
208208
// Verge configuration

src-tauri/tauri.conf.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"createUpdaterArtifacts": true
2121
},
2222
"build": {
23-
"beforeBuildCommand": "pnpm run web:build",
2423
"frontendDist": "../dist",
2524
"beforeDevCommand": "pnpm run web:dev",
2625
"devUrl": "http://localhost:3000/"

src/pages/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import iconLight from "@/assets/image/icon_light.svg?react";
1616
import iconDark from "@/assets/image/icon_dark.svg?react";
1717
import { useThemeMode, useEnableLog } from "@/services/states";
1818
import { LayoutItem } from "@/components/layout/layout-item";
19-
import { LayoutTraffic } from "@/components/layout/layout-traffic";
19+
// import { LayoutTraffic } from "@/components/layout/layout-traffic";
2020
import { UpdateButton } from "@/components/layout/update-button";
2121
import { useCustomTheme } from "@/components/layout/use-custom-theme";
2222
import getSystem from "@/utils/get-system";
@@ -583,7 +583,7 @@ const Layout = () => {
583583
</List>
584584

585585
<div className="the-traffic">
586-
<LayoutTraffic />
586+
{/* <LayoutTraffic /> */}
587587
</div>
588588
</div>
589589

src/pages/_routers.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import ProfilesPage from "./profiles";
44
import SettingsPage from "./settings";
55
import ConnectionsPage from "./connections";
66
import RulesPage from "./rules";
7-
import HomePage from "./home";
87
import UnlockPage from "./unlock";
98
import { BaseErrorBoundary } from "@/components/base";
109

@@ -27,12 +26,6 @@ import HomeRoundedIcon from "@mui/icons-material/HomeRounded";
2726
import LockOpenRoundedIcon from "@mui/icons-material/LockOpenRounded";
2827

2928
export const routers = [
30-
{
31-
label: "Label-Home",
32-
path: "/home",
33-
icon: [<HomeRoundedIcon />, <HomeSvg />],
34-
element: <HomePage />,
35-
},
3629
{
3730
label: "Label-Proxies",
3831
path: "/",

0 commit comments

Comments
 (0)