feat: 添加项目详情 Markdown 渲染支持及项目添加脚本

- 新增 MarkdownContent 组件支持 Markdown 渲染
- 新增 scripts 目录下的项目添加工具脚本
- 更新项目详情页面支持 Markdown 内容显示
- 更新依赖包支持 Markdown 解析

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-27 17:19:39 +08:00
co-authored by Claude
parent a0cca1f171
commit bf69555978
7 changed files with 1765 additions and 31 deletions
+26 -20
View File
@@ -11,41 +11,47 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@prisma/client": "^6.1.0",
"@radix-ui/react-dropdown-menu": "^2.1.4",
"@radix-ui/react-navigation-menu": "^1.2.2",
"@radix-ui/react-separator": "^1.1.1",
"@radix-ui/react-slot": "^1.1.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.468.0",
"next": "15.1.6",
"next-intl": "^4.0.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next-intl": "^4.0.2",
"@prisma/client": "^6.1.0",
"zod": "^3.24.1",
"clsx": "^2.1.1",
"react-markdown": "^10.1.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"rehype-shiki": "^0.0.9",
"remark-gfm": "^4.0.1",
"shiki": "^3.20.0",
"tailwind-merge": "^2.6.0",
"class-variance-authority": "^0.7.1",
"lucide-react": "^0.468.0",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-navigation-menu": "^1.2.2",
"@radix-ui/react-dropdown-menu": "^2.1.4",
"@radix-ui/react-separator": "^1.1.1"
"zod": "^3.24.1"
},
"devDependencies": {
"@playwright/test": "^1.49.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"typescript": "^5",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"eslint": "^9",
"eslint-config-next": "15.1.6",
"eslint-config-prettier": "^9.1.0",
"postcss": "^8",
"prettier": "^3.4.2",
"prisma": "^6.1.0",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"postcss": "^8",
"autoprefixer": "^10.4.20",
"prisma": "^6.1.0",
"vitest": "^2.1.8",
"@testing-library/react": "^16.1.0",
"@testing-library/jest-dom": "^6.6.3",
"@vitejs/plugin-react": "^4.3.4",
"@playwright/test": "^1.49.1",
"ts-node": "^10.9.2"
"ts-node": "^10.9.2",
"typescript": "^5",
"vitest": "^2.1.8"
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"