diff --git a/pkgs/webview-ui/app/src/routes/blockdevices/view.tsx b/pkgs/webview-ui/app/src/routes/blockdevices/view.tsx deleted file mode 100644 index f7d7c7b3f..000000000 --- a/pkgs/webview-ui/app/src/routes/blockdevices/view.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { callApi } from "@/src/api"; -import { Component, For, Show } from "solid-js"; - -import { createQuery } from "@tanstack/solid-query"; -import { Button } from "@/src/components/button"; -import Icon from "@/src/components/icon"; - -export const BlockDevicesView: Component = () => { - const { - data: devices, - refetch: loadDevices, - isFetching, - } = createQuery(() => ({ - queryKey: ["block_devices"], - queryFn: async () => { - const result = await callApi("show_block_devices", { options: {} }); - if (result.status === "error") throw new Error("Failed to fetch data"); - - return result.data; - }, - staleTime: 1000 * 60 * 5, - })); - - return ( -
-
- -
-
- {isFetching ? ( - - ) : ( - - {(devices) => ( - - {(device) => ( -
-
-
Name
-
- {" "} - storage{" "} - {device.name} -
-
-
- -
-
Size
-
{device.size}
-
-
-
- )} -
- )} -
- )} -
-
- ); -};