diff --git a/frontend/src/pages/builds/index.tsx b/frontend/src/pages/builds/index.tsx deleted file mode 100644 index 12518a73a..000000000 --- a/frontend/src/pages/builds/index.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { useRead } from "@hooks"; -import { BuildCard } from "@resources/build/card"; - -export const Builds = () => { - const builds = useRead({ type: "ListBuilds", params: {} }).data; - - return ( -
-

Builds

-
- {builds?.map(({ id }) => ( - - ))} -
-
- ); -}; diff --git a/frontend/src/pages/dashboard/index.tsx b/frontend/src/pages/dashboard/index.tsx index cf6f734aa..6e6b20cff 100644 --- a/frontend/src/pages/dashboard/index.tsx +++ b/frontend/src/pages/dashboard/index.tsx @@ -1,11 +1,9 @@ -import { useRead, useUser } from "@hooks"; -import { Card, CardDescription, CardHeader, CardTitle } from "@ui/card"; -import { version_to_string } from "@util/helpers"; +import { useUser } from "@hooks"; +import { Card, CardHeader, CardTitle } from "@ui/card"; import { ServersChart } from "./components/servers-chart"; import { DeploymentsChart } from "./components/deployments-chart"; import { Link } from "react-router-dom"; import { RecentlyViewed } from "./components/recently-viewed"; -import { ServerStatusIcon } from "@resources/server/util"; export const Dashboard = () => { const user = useUser().data; diff --git a/frontend/src/pages/deployments/index.tsx b/frontend/src/pages/deployments/index.tsx deleted file mode 100644 index 97ba84944..000000000 --- a/frontend/src/pages/deployments/index.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import { useRead } from "@hooks"; -import { DeploymentCard } from "@resources/deployment/card"; -import { NewDeployment } from "@resources/deployment/new"; -import { Button } from "@ui/button"; -import { Input } from "@ui/input"; -import { PlusCircle } from "lucide-react"; -import { useState } from "react"; - -export const Deployments = () => { - const deployments = useRead({ type: "ListDeployments", params: {} }).data; - const [search, setSearch] = useState(""); - const [open, setOpen] = useState(false); - - return ( -
-
-

Deployments

-
- setSearch(e.target.value)} - /> - - -
-
-
- {deployments?.map( - ({ id, name }) => - (search.includes(name) || name.includes(search)) && ( - - ) - )} -
-
- ); -}; diff --git a/frontend/src/pages/servers/index.tsx b/frontend/src/pages/servers/index.tsx deleted file mode 100644 index 0d70a4956..000000000 --- a/frontend/src/pages/servers/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { useRead } from "@hooks"; -import { ServerCard } from "@resources/server/card"; -import { Button } from "@ui/button"; -import { Input } from "@ui/input"; -import { PlusCircle } from "lucide-react"; -import { useState } from "react"; - -const Resources = () => {}; - -export const Servers = () => { - const servers = useRead({ type: "ListServers", params: {} }).data; - const [search, set] = useState(""); - - return ( -
-
-

Servers

-
- set(e.target.value)} - /> - -
-
{" "} -
- {servers?.map( - ({ id, name }) => - (search.includes(name) || name.includes(search)) && ( - - ) - )} -
-
- ); -};