Refactor: Remove original Dart references from comments across multiple files

- Updated comments in various components, schemas, and repositories to remove references to original Dart files.
- Ensured consistency in documentation while maintaining the context of the code.
This commit is contained in:
2026-06-29 11:31:21 +08:00
parent cdaf3cc365
commit 6e51cb7d16
119 changed files with 116 additions and 128 deletions
@@ -2,7 +2,7 @@
/**
* AiDisclosureBanner AI 声明横幅
*
* 原始 Dart: lib/ui/chat/widgets/ai_disclosure_banner.dart17 行)
*
*
* 视觉:居中灰色小字 "All content is generated by AI"
* 用途:位于聊天区顶部,声明 AI 生成内容(合规 / 法律要求)
@@ -2,7 +2,7 @@
/**
* BrowserHintOverlay 浏览器提示
*
* 原始 Dart: lib/ui/chat/widgets/browser_hint_overlay.dart76 行)
*
*
* 用途:在应用内浏览器(WebView、微信内置浏览器等)中显示提示,
* 引导用户使用外部浏览器访问。
@@ -2,7 +2,7 @@
/**
* ChatInputTextField 输入框
*
* 原始 Dart: lib/ui/chat/widgets/chat_input_text_field.dart75 行)
*
*
* 行为:
* - 多行输入(min 1 行 / max 5 行 ≈ max-height 120px
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* ChatSendButton 发送按钮
*
* 原始 Dart: lib/ui/chat/widgets/chat_send_button.dart37 行)
*
*
* 视觉:
* - 默认:粉色背景 + 渐变边缘
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* DateHeader 日期分隔条
*
* 原始 Dart: lib/ui/chat/widgets/date_header.dart26 行)
*
*
* 视觉:居中灰色 chip"今天 14:32" / "昨天 09:15" / 具体日期)
*/
@@ -2,7 +2,7 @@
/**
* FullscreenImageViewer 全屏图片查看器
*
* 原始 Dart: lib/ui/chat/widgets/fullscreen_image_viewer.dart76 行)
*
*
* 行为:
* - 全屏黑色背景 + 图片居中(contain)
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* LanguageDialog 语言切换弹窗
*
* 原始 Dart: lib/ui/chat/widgets/language_dialog.dart222 行)
*
*
* 简化版:单语种列表选择(保留可扩展性)
* - 支持未来添加更多语言
@@ -2,7 +2,7 @@
/**
* LottieMessageBubble 动画消息气泡
*
* 原始 Dart: lib/ui/chat/widgets/lottie_message_bubble.dart51 行)
*
*
* 原始实现:使用 lottie SDK 渲染"打字指示器"动画
* 本轮实现:使用 CSS keyframes 模拟(无 lottie 依赖)
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* MessageBubble 消息气泡(容器)
*
* 原始 Dart: lib/ui/chat/widgets/message_bubble.dart52 行)
*
*
* 组成(从左到右):
* - AI[Avatar] [Content] [占位 spacer]
@@ -1,5 +1,5 @@
/* PwaInstallDialog PWA 安装弹窗样式
* 原始 Dart: lib/ui/chat/widgets/pwa_install_dialog.dart
*
* 视觉规格:白底 + 大圆角 + 渐变按钮 + 86×86 图标
*/
@@ -2,7 +2,7 @@
/**
* PwaInstallDialog PWA 安装弹窗
*
* 原始 Dart: lib/ui/chat/widgets/pwa_install_dialog.dart145 行)
*
*
* 用途:引导用户将 Web App 安装到桌面
* 触发:由 PwaInstallOverlay 在延迟 3.5s 后自动显示
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* TextBubble 文字气泡
*
* 原始 Dart: lib/ui/chat/widgets/text_bubble.dart41 行)
*
*
* 视觉差异:
* - AI 消息:白底黑字 + 左上角尖角