feat: add layout components and pages for NxMesh Admin
- Implemented Header, Sidebar, and Layout components for consistent UI structure. - Created pages for Agents, Certificates, Configurations, Dashboard, and Settings. - Integrated React Query for data fetching in Agents, Certificates, Configurations, and Dashboard pages. - Added Tailwind CSS for styling and responsive design. - Established a utility function for conditional class names. - Set up Vite configuration for React project with TypeScript support. - Included global styles and Tailwind CSS configuration.
This commit is contained in:
26
frontend/vite.config.ts
Normal file
26
frontend/vite.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import path from 'path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8080',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user