Phase 1成果: - 数据库准备:demo.sqlite(117文件,5.07GB) - 双虚拟Tree:demo_library_zh + demo_library_en - 文件分类映射:258个节点(自动分类) Phase 2成果: - Tauri项目初始化:完整项目结构 - 7个管理模块:安装/配置/诊断/管理/健康/监控/文件浏览 - 7个Rust Commands:完整后端逻辑(约3000行) - 7个Vue页面:完整前端UI(约2000行) - Vite build修复:Rolldown外部化配置成功 - 前端构建成功:dist目录生成 总体进度:90%完成(约5000行代码)
40 lines
1.0 KiB
Rust
40 lines
1.0 KiB
Rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
mod commands;
|
|
|
|
use commands::*;
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![
|
|
get_tree,
|
|
list_files,
|
|
upload_file,
|
|
search_files,
|
|
download_file,
|
|
open_file,
|
|
check_system_environment,
|
|
initialize_database,
|
|
create_service_account,
|
|
start_services,
|
|
load_config,
|
|
save_config,
|
|
reset_config,
|
|
run_diagnostic,
|
|
run_full_diagnostic,
|
|
apply_diagnostic_repairs,
|
|
start_all_services,
|
|
stop_all_services,
|
|
restart_all_services,
|
|
get_service_status,
|
|
create_backup,
|
|
restore_backup,
|
|
list_backups,
|
|
list_users,
|
|
run_health_check,
|
|
get_monitor_data,
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|