- Implemented a new SettingsPage component for user preferences including appearance, behavior, and account security settings. - Added a ThemeToggle component to switch between light, dark, and system modes. - Created reusable UI components: AlertDialog, Avatar, Badge, Button, Card, Dialog, Input, Label, Progress, ScrollArea, Separator, Sheet, Skeleton, Tooltip. - Introduced utility functions for class name merging and formatting bytes/uptime. - Added a custom hook for media query handling
30 lines
807 B
TypeScript
30 lines
807 B
TypeScript
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5178,
|
|
strictPort: false,
|
|
proxy: {
|
|
'/api': { target: 'http://localhost:5099', changeOrigin: true, ws: true },
|
|
'/avatar': { target: 'http://localhost:5099', changeOrigin: true },
|
|
},
|
|
},
|
|
build: {
|
|
// Emit into the monorepo-root dist/client so the bundled core can serve it via Hono.
|
|
outDir: '../../dist/client',
|
|
emptyOutDir: true,
|
|
},
|
|
});
|