diff --git a/src/app/dashboard/chart.tsx b/src/app/dashboard/chart.tsx index dc59de4..83d2296 100644 --- a/src/app/dashboard/chart.tsx +++ b/src/app/dashboard/chart.tsx @@ -1,7 +1,14 @@ -"use client" +"use client"; -import { TrendingUp } from "lucide-react" -import { Area, AreaChart, CartesianGrid, ResponsiveContainer, XAxis, YAxis } from "recharts" +import { TrendingUp } from "lucide-react"; +import { + Area, + AreaChart, + CartesianGrid, + ResponsiveContainer, + XAxis, + YAxis, +} from "recharts"; import { Card, @@ -10,13 +17,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/components/ui/card" +} from "@/components/ui/card"; import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/components/ui/chart" +} from "@/components/ui/chart"; const chartConfig = { cpu: { @@ -27,9 +34,13 @@ const chartConfig = { label: "RAM", color: "var(--chart-1)", }, -} satisfies ChartConfig +} satisfies ChartConfig; -export function ChartAreaGradient({chartData}: {chartData: {hour: number, cpu: number, ram: number}[]}) { +export function ChartAreaGradient({ + chartData, +}: { + chartData: { hour: number; cpu: number; ram: number }[]; +}) { return ( @@ -52,11 +63,17 @@ export function ChartAreaGradient({chartData}: {chartData: {hour: number, cpu: n tickLine={false} axisLine={false} tickMargin={8} - tickFormatter={(value) => value+"h"} + tickFormatter={(value) => value + "h"} height={34} /> - + } /> @@ -105,5 +122,5 @@ export function ChartAreaGradient({chartData}: {chartData: {hour: number, cpu: n - ) + ); } diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index ab3a297..173030f 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -17,7 +17,6 @@ export function generateHourlyData() { return result; } - export function SummaryCard({ children, value, @@ -36,16 +35,18 @@ export function SummaryCard({ - + ); } - -export function Summary({value, children}: {value: number, children: React.ReactNode}) { +export function Summary({ + value, + children, +}: { + value: number; + children: React.ReactNode; +}) { return (
@@ -67,7 +68,9 @@ export default async function Dashboard() { Online Servers Online - Issues + + Issues + Avg CPU Usage CPU @@ -85,11 +88,13 @@ export default async function Dashboard() { System Overview - Average CPU Usage - Average Memory Usage + Average CPU + Average Memory + Storage + Average Network
- ) + ); } diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 6831f70..5473980 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -54,7 +54,11 @@ export default function Login() { return (
-
e.preventDefault()} className="flex flex-col gap-2"> + e.preventDefault()} + className="flex flex-col gap-2" + >

Login

diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 0546ef3..043a71b 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -11,8 +11,7 @@ export default function AppLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const showSidebar = !hiddenRoutes.includes(pathname); - return ( - showSidebar ? + return showSidebar ? (
@@ -22,10 +21,7 @@ export default function AppLayout({ children }: { children: React.ReactNode }) {
- - : -
- {children} -
+ ) : ( +
{children}
); } diff --git a/src/components/AppSidebar.tsx b/src/components/AppSidebar.tsx index 08ac952..37d7bd9 100644 --- a/src/components/AppSidebar.tsx +++ b/src/components/AppSidebar.tsx @@ -4,7 +4,7 @@ import { SidebarFooter, SidebarGroup, SidebarHeader, -} from "@/components/ui/sidebar" +} from "@/components/ui/sidebar"; export default function AppSidebar() { return ( @@ -16,5 +16,5 @@ export default function AppSidebar() { - ) -} \ No newline at end of file + ); +}