mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-05 01:59:21 +08:00
- 新增 src/lib/import/file-parsers/docx/wmf/:纯 TypeScript WMF 解析器 + SVG 渲染器 - 支持 MathType/公式编辑器常用记录(坐标、对象、状态、绘制) - 正确处理 TA_UPDATECP 文字定位(rtf.js 的 bug:文字全堆在 (0,0)) - 支持 dx 数组逐字定位、字体切换、Symbol/MT Extra 字符映射 - 对象表槽位复用、SaveDC/RestoreDC、连续 LINETO 合并 - metafile.ts 改用自研渲染器,EMF 暂不渲染(MathType 公式基本都是 WMF) - 移除 rtf.js 依赖(约 11MB) - 测试:新增 12 个 WMF 渲染器用例 + 更新 metafile/structured-to-items 测试 - 文档:更新中英文用户指南 Word 公式/图片章节,说明 EMF 暂不渲染
99 lines
2.9 KiB
JSON
99 lines
2.9 KiB
JSON
{
|
|
"name": "wrong-notebook",
|
|
"version": "2026.10.19",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"predev": "node scripts/copy-pdfjs-assets.mjs",
|
|
"dev": "next dev -H 0.0.0.0",
|
|
"prebuild": "node scripts/copy-pdfjs-assets.mjs",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint src --max-warnings=0",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run src/__tests__/unit",
|
|
"test:integration": "vitest run src/__tests__/integration",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "node scripts/run-e2e.mjs",
|
|
"test:report": "playwright show-report --host 0.0.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^1.3.0",
|
|
"@breezystack/lamejs": "1.2.7",
|
|
"@google/genai": "^2.32.0",
|
|
"@next-auth/prisma-adapter": "^1.0.7",
|
|
"@prisma/client": "5.22.0",
|
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-label": "^2.1.8",
|
|
"@radix-ui/react-progress": "^1.1.8",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-slider": "^1.3.6",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"bcryptjs": "^3.0.3",
|
|
"date-fns": "^4.1.0",
|
|
"date-fns-tz": "^3.2.0",
|
|
"docx": "^9.13.0",
|
|
"dotenv": "^18.0.9",
|
|
"fflate": "^0.8.3",
|
|
"global-agent": "^4.1.3",
|
|
"heic-to": "1.6.6",
|
|
"katex": "^0.19.0",
|
|
"next": "~16.4.3",
|
|
"next-auth": "^4.24.15",
|
|
"openai": "^7.46.0",
|
|
"pdfjs-dist": "^6.4.299",
|
|
"react": "19.3.1",
|
|
"react-dom": "19.3.1",
|
|
"react-dropzone": "^20.1.4",
|
|
"react-image-crop": "^11.0.10",
|
|
"react-markdown": "^10.1.0",
|
|
"read-excel-file": "^9.3.12",
|
|
"recharts": "^3.5.0",
|
|
"rehype-katex": "^7.0.1",
|
|
"remark": "^15.0.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-math": "^6.0.0",
|
|
"server-only": "^0.0.1",
|
|
"strip-markdown": "^6.0.0",
|
|
"undici": "^7.16.0",
|
|
"write-excel-file": "^4.1.1",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.57.0",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/node": "^24.19.2",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"baseline-browser-mapping": "^2.8.32",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.4.3",
|
|
"jsdom": "^30.1.3",
|
|
"lucide-react": "^1.65.0",
|
|
"prisma": "5.22.0",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tailwindcss": "^4",
|
|
"ts-node": "^10.9.2",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5",
|
|
"vitest": "^5.0.5"
|
|
},
|
|
"prisma": {
|
|
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
|
|
},
|
|
"overrides": {
|
|
"katex": "$katex",
|
|
"minimatch": "^11.0.3"
|
|
}
|
|
}
|