feat(client): 改进启动窗口、维护交互与操作图标
- feat(client): 增加无边框动画启动窗口,加载完成后恢复主窗口 - feat(ui): 为操作按钮引入本地 Material Symbols Rounded 图标 - fix(maintenance): 移除烧录前无效的原生确认框,保留页面检查与后端校验 - fix(maintenance): 统一板卡示意风格并修正装甲板比例和图传右侧 USB 接线 - docs: 按 humanizer-zh 润色项目文档并将写作约定纳入 AGENTS.md 验证:前端构建、Tauri 主机编译与启动配置测试通过;维护流程 4 项测试通过;目录回归 4 项通过。已检查浏览器受影响页面与 Windows 原生启动窗口切换。 未执行设备烧录、板上运行或多显示器与高 DPI 验证。
This commit is contained in:
52 files changed
+965
-440
No files matched your search
@@ -30,6 +30,7 @@ mod firmware_build;
|
||||
mod recording;
|
||||
mod server;
|
||||
mod state;
|
||||
mod startup;
|
||||
|
||||
use std::error::Error;
|
||||
use std::path::PathBuf;
|
||||
@@ -310,8 +311,11 @@ fn run() -> Result<(), Box<dyn Error>> {
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.manage(Arc::clone(&state))
|
||||
.manage(latency_recorder)
|
||||
.manage(startup::StartupState::default())
|
||||
.manage(Arc::new(maintenance::MaintenanceState::default()))
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
startup::finish_startup,
|
||||
startup::cancel_startup,
|
||||
maintenance::maintenance_list_ports,
|
||||
maintenance::maintenance_load_bundle,
|
||||
maintenance::maintenance_probe,
|
||||
@@ -375,7 +379,8 @@ fn run() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
let state = window.state::<Arc<AppState>>();
|
||||
|
||||
if state.config().role.needs_password() && !state.is_unlocked() {
|
||||
if window.state::<startup::StartupState>().finished()
|
||||
&& state.config().role.needs_password() && !state.is_unlocked() {
|
||||
api.prevent_close();
|
||||
state.push(server::WireMsg::ConfirmQuit);
|
||||
}
|
||||
@@ -392,7 +397,8 @@ fn run() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
let state = app.state::<Arc<AppState>>();
|
||||
|
||||
if state.config().role.needs_password() && !state.is_unlocked() {
|
||||
if app.state::<startup::StartupState>().finished()
|
||||
&& state.config().role.needs_password() && !state.is_unlocked() {
|
||||
api.prevent_exit();
|
||||
state.push(server::WireMsg::ConfirmQuit);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user