雨霖铃
|
aa23a263fe
|
refactor: 迁移 i18n 系统从 react-i18next 到 chrome.i18n
- 移除 react-i18next、i18next 及相关依赖
- 删除旧的 i18n/ 目录和 useLazyTranslation 工具
- 新增 utils/chromeI18n.ts 类型安全 wrapper(useI18n Hook + getMessage)
- 生成 public/_locales/{zh,en}/messages.json(298 个翻译 key)
- 批量更新 39+ 组件文件的导入和翻译调用
- 转换翻译键格式:namespace:key → namespace_key
- 修复 ErrorBoundary/PageErrorBoundary 从 withTranslation HOC 改为直接调用 getMessage
- 更新 vitest.setup.ts mock 加载实际翻译文本
- 修复 11 个测试文件的断言以匹配中文翻译
- TypeScript、ESLint、547 项测试全部通过
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-05-28 19:21:54 +08:00 |
|
雨霖铃
|
c61b599287
|
docs: 添加项目文档(copilot-instructions、编码规范、各目录 README)
- 新增 .github/copilot-instructions.md:Copilot 指令文件,涵盖构建命令、CI 流水线、项目架构、关键规范
- 新增 .github/CODING_STANDARDS.md:完整的代码编写规范文档(TypeScript、React、样式、错误处理、命名、测试、Hook、i18n、存储等 12 个章节)
- 新增 11 个目录的 README.md:components、components/ui、config、entrypoints、i18n、lib、pages、providers、public、src、types、utils
- 更新 AGENTS.md:补充页面组件模式说明和 components/ui 目录
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-05-27 11:54:21 +08:00 |
|
LingandRX
|
57ea4d9858
|
Enhance form recognition, optimize UI, and unify components (#19)
- **docs**: 完善组件注释、README 目录结构及 AGENTS.md 文档。
- **refactor**:
- 提取通用 `PageHeader`、`Button`、`DashboardCard` 及 `ErrorBoundary` 组件。
- 重构消息通信机制,采用 `@webext-core/messaging` 实现类型安全。
- 将全局通知系统重构为 `SnackbarProvider` (后合并至 `GlobalSnackbar`)。
- 迁移样式系统至 MUI 主题,移除冗余 CSS。
- 优化路由配置,支持独立标签页模式及页面懒加载。
- 移除未使用文件、URL 工具及表单映射相关功能。
- **feat**:
- 新增配置导出功能(JSON)及状态提示。
- 新增侧边栏状态变化通知机制。
- 新增文本统计及 JWT 解析工具。
- 优化二维码生成与解析逻辑,换用更轻量的 `qrious` 和 `qr-scanner`。
- 增强高亮器功能,支持闪烁效果及 Shadow DOM 穿透。
- **style**: 优化仪表盘响应式网格布局及 UI 细节。
- **fix**: 修复 `useStorageState` 依赖缺失及路由初始化性能问题。
- **test**: 更新单元测试以覆盖新增的工具函数及功能特性。
|
2026-05-03 17:06:32 +08:00 |
|
LingandRX
|
84ffd2a132
|
Develop fastapi (#6)
* feat: add side panel with navigation and storage cleaner functionality
* feat: add OpenUrlPage and integrate into app navigation
* feat: 添加 GlobalSnackbar 组件并在多个页面中集成,替换原有 Snackbar 实现
* feat: fix OpenUrl sidebar issue with architecture refactor
- 修复原问题:不再直接替换侧边栏 URL,保持插件导航可见
- 采用配置页 + 查看页分离架构:OpenUrlPage (配置) + OpenUrlViewerPage (查看)
- 支持多个 URL 快捷方式管理(添加/删除)
- 每个 URL 提供两种打开方式:在侧边栏打开 / 在新标签页打开
- 侧边栏查看页使用 iframe 占满全部剩余空间
- 更新 TypeScript 类型定义
- 保留原有混合内容警告检查
- 数据持久化到 Chrome Storage
* refactor: centralized route management - consolidate routing config into single source
* feat: 更换logo
* refactor: code review fixes - security and race condition improvements
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Changes:
- wxt.config.ts: Remove unused `debugger` permission (no code uses it)
- OpenUrlPage.tsx: Fix unreachable showMessage after window.close()
- OpenUrlPage.tsx: Replace unnecessary div wrapper with Fragment to reduce DOM nesting
- OpenUrlViewerPage.tsx: Add URL validation to prevent XSS via javascript:/data: URLs
- OpenUrlViewerPage.tsx: Add sandbox attribute to iframe for security isolation
- OpenUrlViewerPage.tsx: Add error handling for invalid URLs
- StorageCleanerPage.tsx: Fix race condition in handleOptionChange preference saving
- StorageCleanerPage.tsx: Remove unnecessary storage reads when saving preferences (use state directly)
- StorageCleanerPage.tsx: Add timeout cleanup for setTimeout to follow React best practices
* feat: implement drill-down navigation with master-detail dashboard
* feat: enhance dashboard dynamism and refine options UI
* feat: overhaul storage cleaner UI with real-time size estimation and modern aesthetics
* feat: overhaul TimestampPage UI/UX and fix GlobalSnackbar positioning
* fix: decouple popup routing from storage sync and enhance OpenUrlPage UI
* fix: avoid closing sidepanel when opening URL preview from within sidepanel
|
2026-04-16 08:54:23 +08:00 |
|
雨霖铃
|
f4c2f6d374
|
feat: complete testing-tool browser extension with timestamp converter and storage cleaner
|
2026-03-23 08:11:05 +08:00 |
|