Initial commit: Pixel AI comic/video creation platform

- FastAPI backend with SQLModel, Alembic migrations, AgentScope agents
- Next.js 15 frontend with React 19, Tailwind, Zustand, React Flow
- Multi-provider AI system (DashScope, Kling, MiniMax, Volcengine, OpenAI, etc.)
- All HTTP clients migrated from sync requests to async httpx
- Admin-managed API keys via environment variables
- SSRF vulnerability fixed in ensure_url()
This commit is contained in:
张鹏
2026-04-29 01:20:12 +08:00
commit f9f4560459
808 changed files with 151724 additions and 0 deletions

102
frontend/package.json Normal file
View File

@@ -0,0 +1,102 @@
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"type-check": "tsc --noEmit",
"format": "eslint . --fix",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"e2e": "playwright test",
"e2e:headed": "playwright test --headed",
"gen:api": "curl -s http://localhost:8000/openapi.json -o openapi.json && npx openapi-typescript-codegen --input ./openapi.json --output ./src/lib/api --client axios && rm openapi.json"
},
"dependencies": {
"@ai-sdk/react": "^3.0.69",
"@google/genai": "^1.34.0",
"@hookform/resolvers": "^5.2.2",
"@lobehub/icons": "^4.0.0",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-avatar": "^1.1.3",
"@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-popover": "^1.1.15",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@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",
"@tanstack/react-query": "^5.90.16",
"@types/react-virtualized-auto-sizer": "^1.0.4",
"@types/react-window": "^1.8.8",
"@xyflow/react": "^12.10.0",
"ai": "^6.0.67",
"axios": "^1.13.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"fast-json-patch": "^3.1.1",
"form-data": "^4.0.5",
"framer-motion": "^12.23.26",
"html2canvas": "^1.4.1",
"i18next": "^25.7.3",
"i18next-browser-languagedetector": "^8.2.0",
"i18next-resources-to-backend": "^1.2.1",
"immer": "^11.1.3",
"lodash-es": "^4.17.21",
"lucide-react": "^0.562.0",
"lz-string": "^1.5.0",
"next": "^15.5.9",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.69.0",
"react-i18next": "^16.5.1",
"react-intersection-observer": "^10.0.2",
"react-virtualized-auto-sizer": "^2.0.2",
"react-window": "^2.2.5",
"recharts": "^2.15.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^4.3.4",
"zustand": "^5.0.9"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.3",
"@playwright/test": "^1.55.0",
"@tailwindcss/typography": "^0.5.19",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitest/ui": "^4.0.17",
"eslint": "^9.39.2",
"eslint-config-next": "^15.1.0",
"jsdom": "^27.4.0",
"openapi-typescript-codegen": "^0.30.0",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"vitest": "^4.0.17"
},
"overrides": {
"@emoji-mart/react": {
"react": "$react",
"react-dom": "$react-dom"
}
}
}