57ea4d9858
- **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**: 更新单元测试以覆盖新增的工具函数及功能特性。
62 lines
1.8 KiB
JSON
62 lines
1.8 KiB
JSON
{
|
|
"name": "testing-tools",
|
|
"description": "A browser extension providing useful testing tools including timestamp conversion and storage management",
|
|
"private": false,
|
|
"version": "1.0.0",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "wxt",
|
|
"dev:firefox": "wxt -b firefox",
|
|
"build": "wxt build",
|
|
"build:firefox": "wxt build -b firefox",
|
|
"zip": "wxt zip",
|
|
"zip:firefox": "wxt zip -b firefox",
|
|
"compile": "tsc --noEmit",
|
|
"postinstall": "wxt prepare",
|
|
"prepare": "husky",
|
|
"lint": "eslint . --max-warnings=0",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "^11.14.0",
|
|
"@emotion/styled": "^11.14.1",
|
|
"@mui/icons-material": "^7.3.8",
|
|
"@mui/material": "^7.3.8",
|
|
"@webext-core/messaging": "^2.3.0",
|
|
"dayjs": "^1.11.19",
|
|
"qr-scanner": "^1.4.2",
|
|
"qrious": "^4.0.2",
|
|
"react": "^19.2.3",
|
|
"react-dom": "^19.2.3"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.6.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/chrome": "^0.1.36",
|
|
"@types/react": "^19.2.7",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/webextension-polyfill": "^0.12.4",
|
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
"@typescript-eslint/parser": "^8.54.0",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"@wxt-dev/module-react": "^1.1.5",
|
|
"eslint": "^9.39.2",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"globals": "^17.2.0",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^25.0.0",
|
|
"lint-staged": "^16.2.7",
|
|
"prettier": "^3.8.1",
|
|
"terser": "^5.46.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.54.0",
|
|
"vitest": "^2.0.0",
|
|
"wxt": "^0.20.6"
|
|
}
|
|
}
|