Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Refine metrics graph visuals and dashboard header

Juan Denis22e3b1dca59b
diff --git a/frontend/src/components/MetricsGraph.jsx b/frontend/src/components/MetricsGraph.jsx
index 99c63967..9fa3c27a 100644
--- a/frontend/src/components/MetricsGraph.jsx
+++ b/frontend/src/components/MetricsGraph.jsx
@@ -233,14 +233,6 @@ const MetricsGraph = ({ compact = false }) => {
<stop offset="5%" stopColor={CHART_COLORS.network} stopOpacity={0.5} />
<stop offset="95%" stopColor={CHART_COLORS.network} stopOpacity={0} />
</linearGradient>
- {/* Glow filters for lines */}
- <filter id="glow" x="-20%" y="-20%" width="140%" height="140%">
- <feGaussianBlur stdDeviation="2" result="coloredBlur" />
- <feMerge>
- <feMergeNode in="coloredBlur" />
- <feMergeNode in="SourceGraphic" />
- </feMerge>
- </filter>
</defs>
<CartesianGrid strokeDasharray="3 3" stroke="#27272a" opacity={0.5} />
<XAxis
@@ -265,9 +257,7 @@ const MetricsGraph = ({ compact = false }) => {
stroke={CHART_COLORS.cpu}
fill="url(#cpuGradient)"
strokeWidth={2}
- tension={0.4}
dot={false}
- activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.cpu, fill: '#18181b' }}
name="CPU"
/>
)}
@@ -278,9 +268,7 @@ const MetricsGraph = ({ compact = false }) => {
stroke={CHART_COLORS.memory}
fill="url(#memoryGradient)"
strokeWidth={2}
- tension={0.4}
dot={false}
- activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.memory, fill: '#18181b' }}
name="Memory"
/>
)}
@@ -291,9 +279,7 @@ const MetricsGraph = ({ compact = false }) => {
stroke={CHART_COLORS.network}
fill="url(#networkGradient)"
strokeWidth={2}
- tension={0.1}
dot={false}
- activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.network, fill: '#18181b' }}
name="Network"
/>
)}
diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx
index 392008ff..c8387fcc 100644
--- a/frontend/src/pages/Dashboard.jsx
+++ b/frontend/src/pages/Dashboard.jsx
@@ -87,10 +87,9 @@ const Dashboard = () => {
<div className="server-identity">
<h1>
<span className="status-dot-live"></span>
- ServerKit
+ {hostname}
</h1>
<div className="server-details">
- <span>HOST: {hostname}</span>
<span>IP: {ipAddress}</span>
<span>KERNEL: {kernelVersion}</span>
<span>UPTIME: {uptimeFormatted.days}d {String(uptimeFormatted.hours).padStart(2, '0')}h {String(uptimeFormatted.minutes).padStart(2, '0')}m</span>
diff --git a/frontend/src/styles/components/_metrics-graph.less b/frontend/src/styles/components/_metrics-graph.less
index 004e3888..57dea72b 100644
--- a/frontend/src/styles/components/_metrics-graph.less
+++ b/frontend/src/styles/components/_metrics-graph.less
@@ -344,13 +344,6 @@
fill: @text-secondary;
}
-.recharts-area-curve {
- filter: drop-shadow(0 0 4px currentColor);
-}
-
-.recharts-active-dot {
- filter: drop-shadow(0 0 6px currentColor);
-}
.recharts-tooltip-cursor {
stroke: @text-tertiary;
diff --git a/frontend/src/styles/pages/_dashboard.less b/frontend/src/styles/pages/_dashboard.less
index 7c998049..be6fd841 100644
--- a/frontend/src/styles/pages/_dashboard.less
+++ b/frontend/src/styles/pages/_dashboard.less
@@ -27,13 +27,7 @@
align-items: center;
gap: 10px;
color: @text-primary;
- }
-
- .pro-badge {
- font-weight: @font-weight-normal;
- color: @text-tertiary;
- margin-left: 10px;
- font-size: 1rem;
+ font-family: @font-mono;
}
}