- 安装 @tailwindcss/typography 并在 index.css 添加 @plugin 指令,使 prose 样式生效 - 在 AiPanel.tsx 中为 ReactMarkdown 添加 pre 组件,并为 code 组件增加 className 参数,区分 inline code 与 code block(兼容 react-markdown v10) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
90 lines
2.9 KiB
JSON
90 lines
2.9 KiB
JSON
{
|
|
"name": "program1",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "concurrently -n client,server -c cyan,yellow \"vite\" \"tsx --watch server/index.ts\"",
|
|
"dev:client": "vite",
|
|
"dev:server": "tsx --watch server/index.ts",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.92.0",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@hono/node-server": "^2.0.1",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@tiptap/extension-bubble-menu": "^3.22.5",
|
|
"@tiptap/extension-character-count": "^3.22.5",
|
|
"@tiptap/extension-code-block-lowlight": "^3.22.5",
|
|
"@tiptap/extension-color": "^3.22.5",
|
|
"@tiptap/extension-highlight": "^3.22.5",
|
|
"@tiptap/extension-image": "^3.22.5",
|
|
"@tiptap/extension-link": "^3.22.5",
|
|
"@tiptap/extension-placeholder": "^3.22.5",
|
|
"@tiptap/extension-strike": "^3.22.5",
|
|
"@tiptap/extension-subscript": "^3.22.5",
|
|
"@tiptap/extension-superscript": "^3.22.5",
|
|
"@tiptap/extension-table": "^3.22.5",
|
|
"@tiptap/extension-table-cell": "^3.22.5",
|
|
"@tiptap/extension-table-header": "^3.22.5",
|
|
"@tiptap/extension-table-row": "^3.22.5",
|
|
"@tiptap/extension-task-item": "^3.22.5",
|
|
"@tiptap/extension-task-list": "^3.22.5",
|
|
"@tiptap/extension-text-style": "^3.22.5",
|
|
"@tiptap/extension-typography": "^3.22.5",
|
|
"@tiptap/extension-underline": "^3.22.5",
|
|
"@tiptap/react": "^3.22.5",
|
|
"@tiptap/starter-kit": "^3.22.5",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"dexie": "^4.4.2",
|
|
"docx": "^9.6.1",
|
|
"dotenv": "^17.4.2",
|
|
"framer-motion": "^12.38.0",
|
|
"hono": "^4.12.16",
|
|
"lowlight": "^3.3.0",
|
|
"lucide-react": "^1.14.0",
|
|
"mammoth": "^1.12.0",
|
|
"pdfjs-dist": "^5.7.284",
|
|
"react": "^19.2.5",
|
|
"react-dom": "^19.2.5",
|
|
"react-markdown": "^10.1.0",
|
|
"tailwind-merge": "^3.5.0",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@tailwindcss/vite": "^4.2.4",
|
|
"@types/node": "^24.12.2",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"autoprefixer": "^10.5.0",
|
|
"concurrently": "^9.2.1",
|
|
"eslint": "^10.2.1",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.5.0",
|
|
"postcss": "^8.5.13",
|
|
"tailwindcss": "^4.2.4",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "~6.0.2",
|
|
"typescript-eslint": "^8.58.2",
|
|
"vite": "^8.0.10",
|
|
"vitest": "^4.1.5"
|
|
}
|
|
}
|