feat(profile): 实现个人资料编辑与策略本地缓存
- 将资料编辑页重构为可交互表单,支持昵称、签名编辑与头像更换 - 新增 DioClient 本地缓存读取与写入方法,支持离线读取策略快照 - 设备策略切换后自动使本地缓存失效,避免数据不一致 - Home Tab 切换时选中态跟随可见页面,滑动过程中实时更新底栏高亮 - 系统设置页引入 loading 遮罩层,防止切换开关时重复操作 - 个人资料页接入 profileController 展示真实用户信息与加载状态 - 适配深色模式,修正 home_tab 中头像与文字颜色硬编码问题
This commit is contained in:
1 parent
5f84a64c3e
commit
e06e12fbbc
30 files changed
+2059
-336
No files matched your search
@@ -2287,6 +2287,36 @@ abstract class AppLocalizations {
|
||||
/// In zh, this message translates to:
|
||||
/// **'当前平台暂不支持该功能'**
|
||||
String get featureUnsupported;
|
||||
|
||||
/// No description provided for @profileChangeAvatar.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'更换头像'**
|
||||
String get profileChangeAvatar;
|
||||
|
||||
/// No description provided for @profileNicknameInvalid.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'昵称须为1至64个字符'**
|
||||
String get profileNicknameInvalid;
|
||||
|
||||
/// No description provided for @profileSignatureInvalid.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'个性签名不能超过200个字符'**
|
||||
String get profileSignatureInvalid;
|
||||
|
||||
/// No description provided for @profileAvatarTooLarge.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'请选择不超过5MB的头像图片'**
|
||||
String get profileAvatarTooLarge;
|
||||
|
||||
/// No description provided for @profileAvatarUnsupported.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'头像仅支持JPEG或PNG图片'**
|
||||
String get profileAvatarUnsupported;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
||||
@@ -1144,4 +1144,20 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get featureUnsupported =>
|
||||
'This feature is not supported on this platform yet';
|
||||
|
||||
@override
|
||||
String get profileChangeAvatar => 'Change avatar';
|
||||
|
||||
@override
|
||||
String get profileNicknameInvalid => 'Enter a nickname with 1–64 characters';
|
||||
|
||||
@override
|
||||
String get profileSignatureInvalid =>
|
||||
'Your signature must be 200 characters or fewer';
|
||||
|
||||
@override
|
||||
String get profileAvatarTooLarge => 'Choose an avatar no larger than 5 MB';
|
||||
|
||||
@override
|
||||
String get profileAvatarUnsupported => 'Choose a JPEG or PNG image';
|
||||
}
|
||||
@@ -1118,4 +1118,19 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get featureUnsupported => '当前平台暂不支持该功能';
|
||||
|
||||
@override
|
||||
String get profileChangeAvatar => '更换头像';
|
||||
|
||||
@override
|
||||
String get profileNicknameInvalid => '昵称须为1至64个字符';
|
||||
|
||||
@override
|
||||
String get profileSignatureInvalid => '个性签名不能超过200个字符';
|
||||
|
||||
@override
|
||||
String get profileAvatarTooLarge => '请选择不超过5MB的头像图片';
|
||||
|
||||
@override
|
||||
String get profileAvatarUnsupported => '头像仅支持JPEG或PNG图片';
|
||||
}
|
||||
@@ -376,5 +376,10 @@
|
||||
"commonRetry": "Retry",
|
||||
"commonLoadFailed": "Failed to load",
|
||||
"albumLoadMore": "Load more",
|
||||
"featureUnsupported": "This feature is not supported on this platform yet"
|
||||
"featureUnsupported": "This feature is not supported on this platform yet",
|
||||
"profileChangeAvatar": "Change avatar",
|
||||
"profileNicknameInvalid": "Enter a nickname with 1–64 characters",
|
||||
"profileSignatureInvalid": "Your signature must be 200 characters or fewer",
|
||||
"profileAvatarTooLarge": "Choose an avatar no larger than 5 MB",
|
||||
"profileAvatarUnsupported": "Choose a JPEG or PNG image"
|
||||
}
|
||||
@@ -1489,5 +1489,10 @@
|
||||
"featureUnsupported": "当前平台暂不支持该功能",
|
||||
"@featureUnsupported": {
|
||||
"description": "通用:当前平台不支持该功能"
|
||||
}
|
||||
},
|
||||
"profileChangeAvatar": "更换头像",
|
||||
"profileNicknameInvalid": "昵称须为1至64个字符",
|
||||
"profileSignatureInvalid": "个性签名不能超过200个字符",
|
||||
"profileAvatarTooLarge": "请选择不超过5MB的头像图片",
|
||||
"profileAvatarUnsupported": "头像仅支持JPEG或PNG图片"
|
||||
}
|
||||
Reference in new issue
Block a user