feat: implement user authentication and dashboard

Adds a complete user authentication system and a protected dashboard.

- Implements JWT-based authentication using ElysiaJS.
- Integrates Prisma for database access and user management.
- Creates a login page and protected routes for the dashboard.
- Adds a dashboard layout with pages for API key management.
- Includes necessary UI components from Mantine.
This commit is contained in:
bipproduction
2025-10-07 16:53:00 +08:00
parent 35caccdd44
commit 2159a86b5d
49 changed files with 12534 additions and 12 deletions

View File

@@ -1,23 +1,32 @@
{
"name": "bun-react-template",
"name": "jenna-mcp",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "bun --hot src/index.tsx",
"build": "bun build ./src/index.html --outdir=dist --sourcemap --target=browser --minify --define:process.env.NODE_ENV='\"production\"' --env='BUN_PUBLIC_*'",
"start": "NODE_ENV=production bun src/index.tsx"
"start": "NODE_ENV=production bun src/index.tsx",
"seed": "bun prisma/seed.ts"
},
"dependencies": {
"@elysiajs/cors": "^1.4.0",
"@elysiajs/eden": "^1.4.1",
"@elysiajs/jwt": "^1.4.0",
"@elysiajs/swagger": "^1.3.1",
"@mantine/core": "^8.3.3",
"@mantine/hooks": "^8.3.3",
"@mantine/notifications": "^8.3.3",
"@prisma/client": "^6.7.0",
"@tabler/icons-react": "^3.35.0",
"@types/jwt-decode": "^3.1.0",
"add": "^2.0.6",
"elysia": "^1.4.9",
"jwt-decode": "^4.0.0",
"react": "^19",
"react-dom": "^19",
"react-router-dom": "^7.9.3"
"react-router-dom": "^7.9.3",
"swr": "^2.3.6"
},
"devDependencies": {
"@types/bun": "latest",
@@ -25,6 +34,7 @@
"@types/react-dom": "^19",
"postcss": "^8.5.6",
"postcss-preset-mantine": "^1.18.0",
"postcss-simple-vars": "^7.0.1"
"postcss-simple-vars": "^7.0.1",
"prisma": "^6.7.0"
}
}