Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,112 changes: 332 additions & 780 deletions dashboard/package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"@vitejs/plugin-react": "^6.0.1",
"@tailwindcss/postcss": "^4.3.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17",
"tailwindcss": "^4.3.0",
"vite": "^8.0.0"
}
}
2 changes: 1 addition & 1 deletion dashboard/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
plugins: {
tailwindcss: {},
'@tailwindcss/postcss': {},
autoprefixer: {},
},
};
105 changes: 92 additions & 13 deletions dashboard/src/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,85 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'tailwindcss';

@theme {
--color-primary-50: #eff6ff;
--color-primary-100: #dbeafe;
--color-primary-200: #bfdbfe;
--color-primary-300: #93c5fd;
--color-primary-400: #60a5fa;
--color-primary-500: #3b82f6;
--color-primary-600: #2563eb;
--color-primary-700: #1d4ed8;
--color-primary-800: #1e40af;
--color-primary-900: #1e3a8a;

--color-success-50: #f0fdf4;
--color-success-100: #dcfce7;
--color-success-200: #bbf7d0;
--color-success-300: #86efac;
--color-success-400: #4ade80;
--color-success-500: #22c55e;
--color-success-600: #16a34a;
--color-success-700: #15803d;
--color-success-800: #166534;
--color-success-900: #14532d;

--color-warning-50: #fffbeb;
--color-warning-100: #fef3c7;
--color-warning-200: #fde68a;
--color-warning-300: #fcd34d;
--color-warning-400: #fbbf24;
--color-warning-500: #f59e0b;
--color-warning-600: #d97706;
--color-warning-700: #b45309;
--color-warning-800: #92400e;
--color-warning-900: #78350f;

--color-danger-50: #fef2f2;
--color-danger-100: #fee2e2;
--color-danger-200: #fecaca;
--color-danger-300: #fca5a5;
--color-danger-400: #f87171;
--color-danger-500: #ef4444;
--color-danger-600: #dc2626;
--color-danger-700: #b91c1c;
--color-danger-800: #991b1b;
--color-danger-900: #7f1d1d;

--color-info-50: #f0f9ff;
--color-info-100: #e0f2fe;
--color-info-200: #bae6fd;
--color-info-300: #7dd3fc;
--color-info-400: #38bdf8;
--color-info-500: #0ea5e9;
--color-info-600: #0284c7;
--color-info-700: #0369a1;
--color-info-800: #075985;
--color-info-900: #0c4a6e;

--animate-fade-in: fadeIn 0.5s ease-in-out;
--animate-slide-up: slideUp 0.3s ease-out;
--animate-pulse-slow: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes slideUp {
0% {
transform: translateY(10px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}

:root {
--toast-bg: #ffffff;
Expand All @@ -24,19 +103,19 @@
}

.btn-primary {
@apply btn bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500;
@apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500;
}

.btn-secondary {
@apply btn bg-gray-200 text-gray-900 hover:bg-gray-300 focus:ring-gray-500 dark:bg-gray-700 dark:text-gray-100 dark:hover:bg-gray-600;
@apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gray-200 text-gray-900 hover:bg-gray-300 focus:ring-gray-500 dark:bg-gray-700 dark:text-gray-100 dark:hover:bg-gray-600;
}

.btn-danger {
@apply btn bg-danger-600 text-white hover:bg-danger-700 focus:ring-danger-500;
@apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 bg-danger-600 text-white hover:bg-danger-700 focus:ring-danger-500;
}

.btn-success {
@apply btn bg-success-600 text-white hover:bg-success-700 focus:ring-success-500;
@apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 bg-success-600 text-white hover:bg-success-700 focus:ring-success-500;
}

.btn-xs {
Expand All @@ -56,26 +135,26 @@
}

.badge-success {
@apply badge bg-success-100 text-success-800 dark:bg-success-900 dark:text-success-200;
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-success-100 text-success-800 dark:bg-success-900 dark:text-success-200;
}

.badge-warning {
@apply badge bg-warning-100 text-warning-800 dark:bg-warning-900 dark:text-warning-200;
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-warning-100 text-warning-800 dark:bg-warning-900 dark:text-warning-200;
}

.badge-danger {
@apply badge bg-danger-100 text-danger-800 dark:bg-danger-900 dark:text-danger-200;
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-danger-100 text-danger-800 dark:bg-danger-900 dark:text-danger-200;
}

.badge-info {
@apply badge bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-200;
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-200;
}

.badge-primary {
@apply badge bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-200;
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-200;
}

.badge-secondary {
@apply badge bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200;
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200;
}
}
2 changes: 2 additions & 0 deletions public/dashboard/assets/index-BqyCQgiH.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/dashboard/assets/index-xwhFvHKy.css

This file was deleted.

4 changes: 2 additions & 2 deletions public/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FuncDock Dashboard</title>
<script type="module" crossorigin src="/dashboard/assets/index-nlJpKwh7.js"></script>
<script type="module" crossorigin src="/dashboard/assets/index-Da2lERX1.js"></script>
<link rel="modulepreload" crossorigin href="/dashboard/assets/rolldown-runtime-S-ySWqyJ.js">
<link rel="modulepreload" crossorigin href="/dashboard/assets/socket-BfTrxTT5.js">
<link rel="modulepreload" crossorigin href="/dashboard/assets/vendor-CtfHM8wr.js">
<link rel="stylesheet" crossorigin href="/dashboard/assets/index-xwhFvHKy.css">
<link rel="stylesheet" crossorigin href="/dashboard/assets/index-BqyCQgiH.css">
</head>
<body>
<div id="root"></div>
Expand Down
Loading