mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
- Login page with dynamic OAuth provider buttons from /api/v1/auth/providers - Dashboard with AuthGuard, user info display, and token management - TokenList component with create/delete operations via TanStack Query - CreateTokenDialog with one-time token display and copy functionality - API client with typed auth and token endpoints - shadcn/ui components: Button, Card, Dialog, Table, Input, Label - Tailwind CSS with CSS variables theming - TanStack Router with Home, Login, Dashboard routes - ESLint + TypeScript strict mode configuration
29 lines
580 B
TypeScript
29 lines
580 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
'/oauth2': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
'/login': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|