rsgltzyd
|
c7f4305fc3
|
refactor: 重构 RouterContainer 组件以支持懒加载页面模块
- 移除不必要的 Suspense 组件,改为使用 LoadedPage 组件进行懒加载。
- 更新特性获取逻辑,使用 getFeatureByKey 函数替代直接查找。
- 新增 featureMeta.ts 文件,集中管理功能配置和相关方法。
- 实现 pageLoaders 以支持按需加载页面模块,提升性能和用户体验。
|
2026-06-30 22:45:32 +08:00 |
|
雨霖铃
|
ec92afa294
|
refactor(i18n): 移除 chrome.i18n 国际化,统一使用中文硬编码
移除 chromeI18n 工具、_locales 翻译文件和 manifest default_locale 配置,
将所有 UI 文案改为直接硬编码中文,并更新相关测试与文档。
|
2026-06-19 00:26:56 +08:00 |
|
雨霖铃
|
3f73adc015
|
docs: 更新文档和配置,移除未使用的权限和过时描述
|
2026-06-07 09:34:20 +08:00 |
|
雨霖铃
|
e2b76a5f86
|
feat: 替换项目图标为自定义 logo
- 替换 public/icon/ 目录下所有 PNG 图标文件为新 logo
- 删除 public/wxt.svg(不再需要)
- 在 wxt.config.ts 中添加 icons 和 default_icon 配置
- 更新 public/README.md 文档
|
2026-06-05 23:57:04 +08:00 |
|
Ubuntu
|
f551428142
|
hotfix: remove unused alarms permission
|
2026-06-02 19:09:39 +08:00 |
|
雨霖铃
|
92fb853329
|
fix: correct default_locale to zh_CN to match _locales directory
|
2026-06-02 14:16:33 +08:00 |
|
雨霖铃
|
0054e97a0a
|
refactor: 移除设置页面
- 删除 options 入口点目录及相关文件
- 移除 wxt.config.ts 中 options_ui 配置
- 移除 TopBar 组件中的设置按钮和 onOpenOptions prop
- 移除 popup/sidepanel App.tsx 中的 handleOpenOptions
- 移除相关测试中的设置页面引用
- 移除 messages.json 中设置相关翻译键
- 通过 lint、typecheck、test 验证
|
2026-05-28 22:15:56 +08:00 |
|
雨霖铃
|
067a20fb0a
|
feat: remove HTML-Markdown conversion features (htmlToMarkdown & markdownToHtml)
Removed both conversion tools and all related code:
- Deleted page components: HtmlToMarkdown, MarkdownToHtml
- Deleted utility functions: htmlToMarkdown.ts, markdownToHtml.ts
- Deleted unit tests for both utilities
- Removed feature configs and PageType entries from storage.d.ts
- Removed preview mode types and StorageSchema keys
- Removed all i18n translation keys from messages.json
- Removed vendor-markdown chunk from wxt.config.ts
- Removed marked dependency from package.json
- Updated feature count in tests (11 -> 9, page order 10 -> 8)
- Updated README, AGENTS.md, and copilot-instructions.md
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-05-28 21:08:15 +08:00 |
|
雨霖铃
|
b79fe7dd49
|
refactor: reorganize directory structure into src/
Move all source code directories into src/ for cleaner project structure:
- pages/, components/, utils/, config/, providers/, types/, lib/, assets/, entrypoints/ → src/
- Use WXT srcDir config to resolve @/ alias to src/
- Update tsconfig, vitest, eslint, tailwind configs
- Remove scattered README.md files from subdirectories
- Update documentation (AGENTS.md, CODING_STANDARDS.md, README.md)
- Fix pre-existing lint error in RouterProvider.tsx
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-05-28 20:20:45 +08:00 |
|
雨霖铃
|
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 |
|
雨霖铃
|
2d7bb8fc2c
|
refactor: update background.ts comments for clarity and enhance alarm handling in reload logic; add alarms permission in wxt.config.ts
|
2026-05-23 10:08:12 +08:00 |
|
雨霖铃
|
ba57c070f9
|
refactor: replace __MSG_ placeholders with static strings for extension name and description
|
2026-05-22 23:22:28 +08:00 |
|
雨霖铃
|
34030e5f6a
|
refactor: use __MSG_ placeholders for i18n and remove postcss config
|
2026-05-22 23:18:42 +08:00 |
|
雨霖铃
|
3e1753da23
|
移除 wxt.config.ts 中残留的 MUI chunk 配置
|
2026-05-22 00:57:01 +08:00 |
|
雨霖铃
|
3eb00d8a29
|
引入 Tailwind CSS 和 shadcn/ui
|
2026-05-21 22:57:23 +08:00 |
|
雨霖铃
|
72f899477c
|
perf: 配置 manualChunks 拆分 vendor chunk,优化打包体积
- 使用 Vite 插件 manualChunksForHtmlOnly 仅对 HTML 多入口构建生效
- 跳过 background/content-script 的 IIFE 构建(不支持 manualChunks)
- 拆分 vendor-react (193KB)、vendor-mui (326KB)、vendor-i18n (55KB)
- 按需加载 vendor-qr (78KB)、vendor-dnd (45KB)、vendor-markdown (41KB)
- PageErrorBoundary chunk 从 454KB 降至 36KB
|
2026-05-21 01:25:19 +08:00 |
|
雨霖铃
|
3d375f78f3
|
feat: 添加 contextMenus 权限和消息类型定义
|
2026-05-20 20:35:55 +08:00 |
|
LingandRX
|
373fc0496c
|
Develop (#26)
统一简化多个页面里的CopyButton调用,删除不再需要的空回调参数
* feat: 添加clearCookies函数的单元测试并修复cookie域名处理逻辑
* feat: 增强 data URI 处理,支持带参数的前缀并更新相关测试
* fix: 修正 AGENTS.md 中 TypeScript 类型检查命令的描述
* feat: 添加 settings.local.json 文件以配置 Bash 权限
* perf: 预设背景色避免 Popup 弹窗白屏闪烁
* perf: 避免图标过早实例化,传递组件引用而非 JSX 节点
* feat: 添加 useLazyTranslation 和 preloadNamespaces 函数以支持动态加载 i18n 命名空间
* feat: 使用 useLazyTranslation 替换 useTranslation 以支持懒加载翻译
* feat: 添加 PageSkeleton 组件及其测试用例以支持页面加载骨架屏
* feat: 使用骨架屏替换加载状态指示器,优化用户体验
* feat: 优化 CopyButton 组件的复制功能,添加定时器管理复制状态
* feat: 调整 chunk 大小警告阈值以优化构建性能
|
2026-05-20 20:07:44 +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 |
|
雨霖铃
|
8bc11eb696
|
Fix CLAUDE.md formatting from pre-commit hook
- Apply Prettier formatting changes to CLAUDE.md
- Maintain all reorganized content and structure
- Ensure consistent code formatting per project standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-25 21:17:03 +08:00 |
|
雨霖铃
|
f4c2f6d374
|
feat: complete testing-tool browser extension with timestamp converter and storage cleaner
|
2026-03-23 08:11:05 +08:00 |
|