mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
Migrate to react-router-dom for SPA routing: - Add BrowserRouter with nested routes - Implement AuthGuard component for protected routes - Add collapsible sidebar navigation - Support /repos and /config routes Changes: - App.tsx: Route definitions with AuthGuard wrapper - main.tsx: Force dark mode, improved retry logic - DashboardPage.tsx: New layout with sidebar + Outlet - vite.config.ts: Expose dev server on 0.0.0.0 Dependencies added: - react-router-dom - @radix-ui/react-select, switch, separator, tabs
52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"name": "frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-label": "^2.1.7",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"@tanstack/react-query": "^5.90.1",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"axios": "^1.12.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^0.544.0",
|
|
"next-themes": "^0.4.6",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"react-router-dom": "^7.13.1",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.36.0",
|
|
"@types/node": "^24.5.2",
|
|
"@types/react": "^19.1.13",
|
|
"@types/react-dom": "^19.1.9",
|
|
"@vitejs/plugin-react": "^5.0.3",
|
|
"autoprefixer": "^10.4.21",
|
|
"eslint": "^9.36.0",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
"globals": "^16.4.0",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^3",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"tw-animate-css": "^1.3.8",
|
|
"typescript": "~5.8.3",
|
|
"typescript-eslint": "^8.44.0",
|
|
"vite": "^7.1.7"
|
|
}
|
|
}
|