feat: home page

This commit is contained in:
wonfen
2025-03-14 13:31:34 +08:00
parent c25015ed54
commit 1f99cee78b
37 changed files with 4488 additions and 74 deletions

View File

@@ -225,6 +225,10 @@ export async function exportDiagnosticInfo() {
return invoke("export_diagnostic_info");
}
export async function getSystemInfo() {
return invoke<string>("get_system_info");
}
export async function copyIconFile(
path: string,
name: "common" | "sysproxy" | "tun",
@@ -301,6 +305,11 @@ export const getRunningMode = async () => {
return invoke<string>("get_running_mode");
};
// 获取应用运行时间
export const getAppUptime = async () => {
return invoke<number>("get_app_uptime");
};
// 安装/重装系统服务
export const installService = async () => {
return invoke<void>("install_service");