mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-10 00:13:42 +00:00
7a6a944622
Add zod@4.3.6, react-hook-form@7.72.1, @hookform/resolvers@5.2.2. Create src/schemas/ with 6 validation schemas: - agent.schema.ts, provider.schema.ts, cron.schema.ts - channel.schema.ts, credential.schema.ts, heartbeat.schema.ts Refactor 6 form dialogs from manual useState chains to RHF + Zod: - agent-create-dialog: 12 → 2 useState - provider-form-dialog: 8 → 0 useState - cron-form-dialog: 7 → 0 useState - channel-instance-form-dialog: 11 → 6 useState - cli-credential-form-dialog: 18 → 9 useState - heartbeat-config-dialog: 19 → 4 useState Total: 75 useState removed, replaced with type-safe form state. Async side-effects kept as hooks. No behavior changes.
59 lines
1.7 KiB
JSON
59 lines
1.7 KiB
JSON
{
|
|
"name": "goclaw-web",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@tanstack/react-query": "^5.95.2",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"@xyflow/react": "^12.10.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"d3-force": "^3.0.0",
|
|
"date-fns": "^4.1.0",
|
|
"framer-motion": "^12.38.0",
|
|
"highlight.js": "^11.11.1",
|
|
"i18next": "^26.0.1",
|
|
"jszip": "^3.10.1",
|
|
"lucide-react": "^1.7.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-force-graph-2d": "^1.29.1",
|
|
"react-hook-form": "^7.72.1",
|
|
"react-i18next": "^17.0.1",
|
|
"react-markdown": "^10.1.0",
|
|
"react-router": "^7.13.2",
|
|
"recharts": "^3.8.1",
|
|
"rehype-highlight": "^7.0.2",
|
|
"remark-gfm": "^4.0.1",
|
|
"tailwind-merge": "^3.5.0",
|
|
"zod": "^4.3.6",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@types/d3-force": "^3.0.10",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/ws": "^8.18.1",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"tailwindcss": "^4.2.2",
|
|
"typescript": "^6.0.2",
|
|
"vite": "^8.0.3",
|
|
"ws": "^8.20.0"
|
|
},
|
|
"packageManager": "pnpm@10.30.1+sha512.3590e550d5384caa39bd5c7c739f72270234b2f6059e13018f975c313b1eb9fefcc09714048765d4d9efe961382c312e624572c0420762bdc5d5940cdf9be73a"
|
|
}
|