feat(app-iced): M114 账户页三轨登录(微软正版 / 第三方皮肤站 / 本地档案)
- 账户页:当前账户卡 + 全部账户列表 + 空态三入口 + 皮肤区;五项动作(添加/切换/删除/重新登录/校验) - 三轨添加流程:设备码(用户码+链接+倒计时+过期重试+取消)、授权码(浏览器+可复制链接+取消)、 本地档案(名字校验)、第三方站(服务地址 + 服务发现校验 + 密码登录,密码掩码且用完即弃) - 导航:账户为一等页,入口是轨底头像位(未登录=描边剪影 / 已登录=首字母块+名字;窄高收成图标条) - 凭据红线:DTO 侧形状脱敏 + 状态层二次脱敏 + 密码掩码;Inject-JWT 测试断言视图模型干净(已做变异取证) - presenter:authlib 登录/服务发现/皮肤抓取(复用下载引擎的 HTTP 客户端,无新增依赖)、 皮肤原图经 DTO 到 UI 裁剪成头像(既有 image 依赖,未改 Cargo.toml) - i18n:新增 account 域 51 条中英文案(离线档案口径全量写入),金表同步
This commit is contained in:
1 parent
e7b04c4afe
commit
1ff00bbe50
43 files changed
+4343
-117
No files matched your search
@@ -35,6 +35,11 @@ pub enum Route {
|
||||
Logs,
|
||||
/// G6 设置页
|
||||
Settings,
|
||||
/// G7 账户页(三轨登录:微软正版 / 第三方皮肤站 / 本地档案)
|
||||
///
|
||||
/// 一级页,但**不进主序列**:入口是导航轨底部的头像位(`shell/nav.rs`),
|
||||
/// 所以 [`Route::nav`] 对它返回 `None`(不点亮四个主项中的任何一个)。
|
||||
Accounts,
|
||||
/// 实例详情(G4):从磁贴点进来,返回时回到实例页
|
||||
Detail(InstanceId),
|
||||
/// AI 助手独立页(D16 双形态之一)
|
||||
@@ -46,7 +51,13 @@ impl Route {
|
||||
pub fn is_top_level(&self) -> bool {
|
||||
matches!(
|
||||
self,
|
||||
Self::Instances | Self::Download | Self::Content | Self::Logs | Self::Settings
|
||||
// M109 的 `Content` 与 M114 的 `Accounts` 都是一级页:两个都留。
|
||||
Self::Instances
|
||||
| Self::Download
|
||||
| Self::Content
|
||||
| Self::Logs
|
||||
| Self::Settings
|
||||
| Self::Accounts
|
||||
)
|
||||
}
|
||||
|
||||
@@ -57,7 +68,7 @@ impl Route {
|
||||
Self::Download | Self::Content => Some(NavSection::Download),
|
||||
Self::Logs => Some(NavSection::Logs),
|
||||
Self::Settings => Some(NavSection::Settings),
|
||||
Self::Agent => None,
|
||||
Self::Accounts | Self::Agent => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user