feat(client): 设备数超限挡板 DeviceLimitScreen(#16 前端)
登录响应带 device_limit 时,顶层路由把用户挡在「移除设备」页,降到上限内才进主界面。 - auth_api.dart:AuthTokens 解析 device_limit;新增 DeviceLimit/DeviceBrief 模型 - auth_provider.dart:deviceLimitProvider(挡板状态);auth_screen 登录后置入 - main.dart:isLoggedIn 后若 deviceLimit!=null → DeviceLimitScreen(挡 HomeShell) - screens/device_limit_screen.dart(新):设备列表(本机标注不可删)+ 每台移除 + 一键「移除最久未用」+ 退出登录;降到上限内自动清挡板放行(复用 devicesProvider.remove) - l10n:deviceLimitTitle/Desc/RemoveOldest(zh/en);顺带修 devicesSub 文案 5→3 台 analyze 干净;client 全量测试 161 通过。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -129,9 +129,15 @@ class StringsZh extends AppText {
|
||||
@override
|
||||
String get accChange => '修改';
|
||||
@override
|
||||
String get deviceLimitTitle => '设备数已达上限';
|
||||
@override
|
||||
String get deviceLimitDesc => '你的套餐最多 %s 台设备,请移除一台以继续。';
|
||||
@override
|
||||
String get deviceLimitRemoveOldest => '移除最久未用';
|
||||
@override
|
||||
String get myDevices => '我的设备';
|
||||
@override
|
||||
String get devicesSub => 'PRO 套餐最多 5 台设备同时在线';
|
||||
String get devicesSub => 'PRO 套餐最多 3 台设备同时在线';
|
||||
@override
|
||||
String get thisDevice => '本机';
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user