style: remove markdown bold syntax from code comments
Remove `**...**` emphasis markers from inline comments and JSDoc blocks across auth and chat components, machine mappers, and quota helpers. These are plain code comments, not rendered markdown, so the bold syntax was noise. Files touched: - src/app/auth/components/auth-screen.tsx - src/app/chat/components/chat-header.tsx - src/app/chat/components/chat-screen.tsx - chat machine mapper / quota helpers No functional or behavioral changes.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
* 认证仓库:编排远程 API + 本地 AuthStorage + UserStorage。
|
||||
* 行为对齐原 Dart `lib/data/repositories/auth_repository_impl.dart`:
|
||||
* - 登录成功后调 `_saveLoginData` 持久化 token + User
|
||||
* - 登出先调 API,再**强制**清本地态(无论 API 成败)
|
||||
* - `getCurrentUser` 成功后**尽力**写本地 User 缓存(不因缓存失败影响主流程)
|
||||
* - 登出先调 API,再强制清本地态(无论 API 成败)
|
||||
* - `getCurrentUser` 成功后尽力写本地 User 缓存(不因缓存失败影响主流程)
|
||||
* - 写 storage 失败用 `console.warn` 记录,不让本地缓存失败影响主流程
|
||||
*
|
||||
* 原始 Dart: lib/data/repositories/auth_repository_impl.dart
|
||||
@@ -98,7 +98,7 @@ export class AuthRepository implements IAuthRepository {
|
||||
}
|
||||
|
||||
/**
|
||||
* 退出登录:先调 API 注销服务端会话,**无论成败**都清本地登录态。
|
||||
* 退出登录:先调 API 注销服务端会话,无论成败都清本地登录态。
|
||||
* 强制清本地的逻辑:用户即使在 API 失败时也想从设备上登出。
|
||||
*/
|
||||
async logout(): Promise<Result<void>> {
|
||||
@@ -237,7 +237,7 @@ export class AuthRepository implements IAuthRepository {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前登录用户。成功后**尽力**写本地 User 缓存(offline hydrate),
|
||||
* 获取当前登录用户。成功后尽力写本地 User 缓存(offline hydrate),
|
||||
* 缓存失败用 `console.warn` 记录,不影响主流程。
|
||||
*/
|
||||
async getCurrentUser(): Promise<Result<User>> {
|
||||
|
||||
Reference in New Issue
Block a user