Next.js app with a browser-side buttplug/buttplug-wasm control layer (server never touches real-time device commands), SQLite storage via Drizzle, single-secret auth, recordings/replay with device remapping, a usage stats dashboard, Docker deployment, and Gitea CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W8WkFF5ppURBAB918593Eb
27 lines
870 B
TypeScript
27 lines
870 B
TypeScript
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
import { DevicesTable } from "@/components/devices/DevicesTable";
|
|
import { listDevices } from "@/lib/db/queries/devices";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function DevicesPage() {
|
|
const devices = await listDevices();
|
|
|
|
return (
|
|
<div className="flex flex-col gap-6">
|
|
<div>
|
|
<h1 className="font-display text-2xl font-semibold">Devices</h1>
|
|
<p className="text-sm text-muted-foreground">Devices seen across past sessions. Give them friendlier names.</p>
|
|
</div>
|
|
<Card className="bp-glass">
|
|
<CardHeader>
|
|
<CardTitle className="text-base">Known devices</CardTitle>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<DevicesTable devices={devices} />
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|