Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- frontend/package.json +33 -0
- frontend/tailwind.config.js +48 -0
- frontend/vite.config.js +18 -0
frontend/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "ruhi-core-dashboard",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"private": true,
|
| 5 |
+
"type": "module",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"dev": "vite",
|
| 8 |
+
"build": "vite build",
|
| 9 |
+
"preview": "vite preview"
|
| 10 |
+
},
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"react": "^18.3.1",
|
| 13 |
+
"react-dom": "^18.3.1",
|
| 14 |
+
"react-router-dom": "^6.28.0",
|
| 15 |
+
"framer-motion": "^11.12.0",
|
| 16 |
+
"lucide-react": "^0.460.0",
|
| 17 |
+
"recharts": "^2.14.1",
|
| 18 |
+
"zustand": "^5.0.2",
|
| 19 |
+
"@tanstack/react-query": "^5.62.0",
|
| 20 |
+
"react-hot-toast": "^2.4.1",
|
| 21 |
+
"react-dropzone": "^14.3.5",
|
| 22 |
+
"react-syntax-highlighter": "^15.6.1",
|
| 23 |
+
"date-fns": "^4.1.0",
|
| 24 |
+
"clsx": "^2.1.1"
|
| 25 |
+
},
|
| 26 |
+
"devDependencies": {
|
| 27 |
+
"@vitejs/plugin-react": "^4.3.4",
|
| 28 |
+
"vite": "^6.0.3",
|
| 29 |
+
"tailwindcss": "^3.4.16",
|
| 30 |
+
"postcss": "^8.4.49",
|
| 31 |
+
"autoprefixer": "^10.4.20"
|
| 32 |
+
}
|
| 33 |
+
}
|
frontend/tailwind.config.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default {
|
| 2 |
+
content: ["./index.html", "./src/**/*.{js,jsx}"],
|
| 3 |
+
theme: {
|
| 4 |
+
extend: {
|
| 5 |
+
colors: {
|
| 6 |
+
neon: '#00ffcc',
|
| 7 |
+
'neon-dim': 'rgba(0, 255, 204, 0.1)',
|
| 8 |
+
'bg-primary': '#0a0a0f',
|
| 9 |
+
'bg-secondary': '#12121a',
|
| 10 |
+
'bg-card': 'rgba(20, 20, 35, 0.8)',
|
| 11 |
+
'bg-glass': 'rgba(255, 255, 255, 0.03)',
|
| 12 |
+
danger: '#ff4757',
|
| 13 |
+
warning: '#ffa502',
|
| 14 |
+
success: '#2ed573',
|
| 15 |
+
purple: '#a855f7',
|
| 16 |
+
},
|
| 17 |
+
fontFamily: {
|
| 18 |
+
sans: ['Inter', 'system-ui', 'sans-serif'],
|
| 19 |
+
mono: ['JetBrains Mono', 'monospace'],
|
| 20 |
+
},
|
| 21 |
+
animation: {
|
| 22 |
+
'glow': 'glow 2s ease-in-out infinite alternate',
|
| 23 |
+
'slide-up': 'slideUp 0.5s ease-out',
|
| 24 |
+
'slide-in': 'slideIn 0.3s ease-out',
|
| 25 |
+
'pulse-neon': 'pulseNeon 2s infinite',
|
| 26 |
+
},
|
| 27 |
+
keyframes: {
|
| 28 |
+
glow: {
|
| 29 |
+
'0%': { boxShadow: '0 0 5px rgba(0,255,204,0.2)' },
|
| 30 |
+
'100%': { boxShadow: '0 0 20px rgba(0,255,204,0.4)' },
|
| 31 |
+
},
|
| 32 |
+
slideUp: {
|
| 33 |
+
'0%': { transform: 'translateY(20px)', opacity: '0' },
|
| 34 |
+
'100%': { transform: 'translateY(0)', opacity: '1' },
|
| 35 |
+
},
|
| 36 |
+
slideIn: {
|
| 37 |
+
'0%': { transform: 'translateX(100%)', opacity: '0' },
|
| 38 |
+
'100%': { transform: 'translateX(0)', opacity: '1' },
|
| 39 |
+
},
|
| 40 |
+
pulseNeon: {
|
| 41 |
+
'0%, 100%': { opacity: '1' },
|
| 42 |
+
'50%': { opacity: '0.5' },
|
| 43 |
+
},
|
| 44 |
+
},
|
| 45 |
+
},
|
| 46 |
+
},
|
| 47 |
+
plugins: [],
|
| 48 |
+
}
|
frontend/vite.config.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
|
| 4 |
+
export default defineConfig({
|
| 5 |
+
plugins: [react()],
|
| 6 |
+
build: {
|
| 7 |
+
outDir: 'dist',
|
| 8 |
+
assetsDir: 'assets',
|
| 9 |
+
sourcemap: false,
|
| 10 |
+
minify: 'terser',
|
| 11 |
+
},
|
| 12 |
+
server: {
|
| 13 |
+
proxy: {
|
| 14 |
+
'/api': 'http://localhost:7860',
|
| 15 |
+
'/ws': { target: 'ws://localhost:7860', ws: true },
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
})
|