feat: add admin hardware management page with CRUD

- Device list fetched from /api/hardware/stats
- Create/edit devices via modal form
- Delete with confirmation dialog
- Uses existing hardware CRUD API endpoints
This commit is contained in:
2026-04-27 21:20:01 +08:00
parent b6c3070854
commit c0c624c2ae
2 changed files with 364 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import type { Metadata } from "next"
import { HardwareClient } from "./hardware-client"
export const metadata: Metadata = {
title: "Hardware",
}
export default function HardwarePage() {
return <HardwareClient />
}