Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
chore: remove unused CSS and clean up code
rcourtman0e602518c8ea
diff --git a/frontend-modern/src/components/shared/UnifiedHistoryChart.tsx b/frontend-modern/src/components/shared/UnifiedHistoryChart.tsxindex 8144bdd825..b83462cc0c 100644--- a/frontend-modern/src/components/shared/UnifiedHistoryChart.tsx+++ b/frontend-modern/src/components/shared/UnifiedHistoryChart.tsx@@ -3,6 +3,7 @@ import { Portal } from 'solid-js/web';import { AggregatedMetricPoint, ChartsAPI, HistoryTimeRange, ResourceType } from '@/api/charts';import { formatBytes } from '@/utils/format';import { hasFeature, loadLicenseStatus } from '@/stores/license';+import { logger } from '@/utils/logger';interface UnifiedHistoryChartProps {resourceType: ResourceType;@@ -201,7 +202,7 @@ export const UnifiedHistoryChart: Component<UnifiedHistoryChartProps> = (props)Object.entries(metricConfigs).forEach(([metricId, config]) => {const points = dataMap[metricId];if (!points || points.length === 0) {- console.log(`[UnifiedHistoryChart] No points for ${metricId}`);+ logger.debug(`[UnifiedHistoryChart] No points for ${metricId}`);return;}diff --git a/frontend-modern/src/index.tsx b/frontend-modern/src/index.tsxindex 6dbdac4c39..73cbd4e5c7 100644--- a/frontend-modern/src/index.tsx+++ b/frontend-modern/src/index.tsx@@ -1,7 +1,6 @@/* @refresh reload */import { render } from 'solid-js/web';import './index.css';-import './styles/animations.css';import App from './App';import { logger } from './utils/logger';diff --git a/frontend-modern/src/stores/license.ts b/frontend-modern/src/stores/license.tsindex 21b3d39e72..3b2bdde40e 100644--- a/frontend-modern/src/stores/license.ts+++ b/frontend-modern/src/stores/license.ts@@ -43,11 +43,6 @@ export const isPro = createMemo(() => {return Boolean(current?.valid && current.tier !== 'free');});-/**- * @deprecated Use isPro() or hasFeature() instead. Kept for backwards compatibility.- */-export const isEnterprise = isPro;-/*** Check if a specific feature is enabled by the current license.*/diff --git a/frontend-modern/src/styles/animations.css b/frontend-modern/src/styles/animations.cssdeleted file mode 100644index 3d6b9392c7..0000000000--- a/frontend-modern/src/styles/animations.css+++ /dev/null@@ -1,262 +0,0 @@-/* Animated Metric Container */-.metric-container {- position: relative;- display: inline-flex;- align-items: center;- overflow: visible;- min-height: 1em;-}--.metric-value {- display: inline-flex;- align-items: center;- position: relative;- z-index: 2;-}--.metric-ghost {- position: absolute;- top: 0;- left: 0;- z-index: 1;- pointer-events: none;-}--/* Ghost sliding UP and fading out (old value when increasing) */-@keyframes ghostSlideUp {- 0% {- transform: translateY(0);- opacity: 1;- filter: blur(0);- }- 100% {- transform: translateY(-20px);- opacity: 0;- filter: blur(2px);- }-}--/* Ghost sliding DOWN and fading out (old value when decreasing) */-@keyframes ghostSlideDown {- 0% {- transform: translateY(0);- opacity: 1;- filter: blur(0);- }- 100% {- transform: translateY(20px);- opacity: 0;- filter: blur(2px);- }-}--/* New value entering from below (when increasing) */-@keyframes enterFromBelow {- 0% {- transform: translateY(15px);- opacity: 0;- filter: blur(1px);- color: rgb(34, 197, 94); /* green-500 */- }- 50% {- color: rgb(34, 197, 94);- }- 100% {- transform: translateY(0);- opacity: 1;- filter: blur(0);- color: inherit;- }-}--/* New value entering from above (when decreasing) */-@keyframes enterFromAbove {- 0% {- transform: translateY(-15px);- opacity: 0;- filter: blur(1px);- color: rgb(239, 68, 68); /* red-500 */- }- 50% {- color: rgb(239, 68, 68);- }- 100% {- transform: translateY(0);- opacity: 1;- filter: blur(0);- color: inherit;- }-}--/* Apply animations */-.metric-ghost-up {- animation: ghostSlideUp 0.4s ease-out forwards;- color: rgb(156, 163, 175); /* gray-400 */-}--.metric-ghost-down {- animation: ghostSlideDown 0.4s ease-out forwards;- color: rgb(156, 163, 175); /* gray-400 */-}--.metric-entering-up {- animation: enterFromBelow 0.4s ease-out;-}--.metric-entering-down {- animation: enterFromAbove 0.4s ease-out;-}--/* Dark mode adjustments */-.dark .metric-ghost-up,-.dark .metric-ghost-down {- color: rgb(107, 114, 128); /* gray-500 */-}--.dark .metric-entering-up {- animation: enterFromBelowDark 0.4s ease-out;-}--.dark .metric-entering-down {- animation: enterFromAboveDark 0.4s ease-out;-}--@keyframes enterFromBelowDark {- 0% {- transform: translateY(15px);- opacity: 0;- filter: blur(1px);- color: rgb(74, 222, 128); /* green-400 */- }- 50% {- color: rgb(74, 222, 128);- }- 100% {- transform: translateY(0);- opacity: 1;- filter: blur(0);- color: inherit;- }-}--@keyframes enterFromAboveDark {- 0% {- transform: translateY(-15px);- opacity: 0;- filter: blur(1px);- color: rgb(248, 113, 113); /* red-400 */- }- 50% {- color: rgb(248, 113, 113);- }- 100% {- transform: translateY(0);- opacity: 1;- filter: blur(0);- color: inherit;- }-}--/* Optional: Add a subtle glow during animation */-.metric-entering-up::before,-.metric-entering-down::before {- content: '';- position: absolute;- top: 50%;- left: 50%;- transform: translate(-50%, -50%);- width: 150%;- height: 150%;- pointer-events: none;- border-radius: 50%;- animation: pulseGlow 0.4s ease-out;-}--.metric-entering-up::before {- background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 60%);-}--.metric-entering-down::before {- background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 60%);-}--@keyframes pulseGlow {- 0% {- opacity: 0;- transform: translate(-50%, -50%) scale(0.5);- }- 50% {- opacity: 1;- }- 100% {- opacity: 0;- transform: translate(-50%, -50%) scale(1.5);- }-}-/* Node row click animation */-@keyframes nodeClick {- 0% {- transform: scale(1);- }- 50% {- transform: scale(0.98);- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);- }- 100% {- transform: scale(1);- }-}--.node-click {- animation: nodeClick 0.15s ease-out;-}--/* AI Context row highlight - subtle left accent bar */-/* Using blue-500 for consistency with Pulse styling */--.ai-context-row {- background-color: rgba(59, 130, 246, 0.04);- box-shadow: inset 3px 0 0 0 rgba(59, 130, 246, 0.6);-}--.ai-context-row:hover {- background-color: rgba(59, 130, 246, 0.08);-}--/* Adjacent rows - keep the left border consistent */-.ai-context-row.ai-context-no-top,-.ai-context-row.ai-context-no-bottom,-.ai-context-row.ai-context-no-top.ai-context-no-bottom {- background-color: rgba(59, 130, 246, 0.04);- box-shadow: inset 3px 0 0 0 rgba(59, 130, 246, 0.6);-}--.ai-context-row.ai-context-no-top:hover,-.ai-context-row.ai-context-no-bottom:hover,-.ai-context-row.ai-context-no-top.ai-context-no-bottom:hover {- background-color: rgba(59, 130, 246, 0.08);-}--/* Dark mode - using blue-400 for better visibility */-.dark .ai-context-row {- background-color: rgba(96, 165, 250, 0.06);- box-shadow: inset 3px 0 0 0 rgba(96, 165, 250, 0.5);-}--.dark .ai-context-row:hover {- background-color: rgba(96, 165, 250, 0.12);-}--.dark .ai-context-row.ai-context-no-top,-.dark .ai-context-row.ai-context-no-bottom,-.dark .ai-context-row.ai-context-no-top.ai-context-no-bottom {- background-color: rgba(96, 165, 250, 0.06);- box-shadow: inset 3px 0 0 0 rgba(96, 165, 250, 0.5);-}--.dark .ai-context-row.ai-context-no-top:hover,-.dark .ai-context-row.ai-context-no-bottom:hover,-.dark .ai-context-row.ai-context-no-top.ai-context-no-bottom:hover {- background-color: rgba(96, 165, 250, 0.12);-}-