refactor: reorganize components, add interface to network

This commit is contained in:
2025-06-28 01:49:02 -07:00
parent 78ca57e491
commit f6c13e0ec7
9 changed files with 155 additions and 130 deletions

10
astal/widget/disk.tsx Normal file
View File

@@ -0,0 +1,10 @@
import { bind, Variable } from "astal"
import { get_disk_space } from "./cpu"
let disk_space = Variable(get_disk_space()).poll(5000, () => get_disk_space())
export default function Disk() {
return <box className="status-box">
<label label={bind(disk_space).as((s) => `${s}`)} />
</box>
}