diff --git a/frontend/src/components/home/Summary.tsx b/frontend/src/components/home/Summary.tsx index df15ba016..725e10e1e 100644 --- a/frontend/src/components/home/Summary.tsx +++ b/frontend/src/components/home/Summary.tsx @@ -1,8 +1,7 @@ -import { Accessor, Component, createMemo, For, Show } from "solid-js"; +import { Accessor, Component, createMemo } from "solid-js"; import { useAppState } from "../../state/StateProvider"; import { DockerContainerState, ServerStatus } from "../../types"; import Grid from "../shared/layout/Grid"; -import Flex from "../shared/layout/Flex"; import PieChart, { PieChartSection } from "../shared/PieChart"; import { COLORS } from "../../style/colors"; import { useAppDimensions } from "../../state/DimensionProvider"; @@ -41,45 +40,6 @@ const Summary: Component<{}> = (p) => { export default Summary; -const SummaryItem: Component<{ - title: string; - metrics: Array<{ title: string; class: string; count?: number }>; -}> = (p) => { - return ( - -

{p.title}

- - - {(metric) => ( - 0}> - -
{metric.title}
-

{metric.count}

-
-
- )} -
-
-
- ); -}; - -const BuildsSummary = () => { - const { builds } = useAppState(); - return ( - - ); -}; - function useDeploymentCount(): Accessor { const { deployments } = useAppState(); const count = createMemo(() => { @@ -148,3 +108,42 @@ function useServerCount(): Accessor { }); return count; } + +// const SummaryItem: Component<{ +// title: string; +// metrics: Array<{ title: string; class: string; count?: number }>; +// }> = (p) => { +// return ( +// +//

{p.title}

+// +// +// {(metric) => ( +// 0}> +// +//
{metric.title}
+//

{metric.count}

+//
+//
+// )} +//
+//
+//
+// ); +// }; + +// const BuildsSummary = () => { +// const { builds } = useAppState(); +// return ( +// +// ); +// }; \ No newline at end of file diff --git a/frontend/src/components/shared/PieChart.tsx b/frontend/src/components/shared/PieChart.tsx index 7e5824744..0dbdd5930 100644 --- a/frontend/src/components/shared/PieChart.tsx +++ b/frontend/src/components/shared/PieChart.tsx @@ -6,6 +6,7 @@ import { For, onCleanup, onMount, + Show, } from "solid-js"; import Grid from "./layout/Grid"; @@ -89,10 +90,7 @@ const PieChart: Component<{ >
{section.title}: @@ -101,6 +99,9 @@ const PieChart: Component<{
)} + +
none
+