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
888 B
TypeScript
27 lines
888 B
TypeScript
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
import { SessionsTable } from "@/components/sessions/SessionsTable";
|
|
import { listPlaySessions } from "@/lib/db/queries/play-sessions";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function SessionsPage() {
|
|
const sessions = [...(await listPlaySessions())].reverse();
|
|
|
|
return (
|
|
<div className="flex flex-col gap-6">
|
|
<div>
|
|
<h1 className="font-display text-2xl font-semibold">Sessions</h1>
|
|
<p className="text-sm text-muted-foreground">History of live control and replay sessions.</p>
|
|
</div>
|
|
<Card className="bp-glass">
|
|
<CardHeader>
|
|
<CardTitle className="text-base">History</CardTitle>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<SessionsTable sessions={sessions} />
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|