This commit is contained in:
Nicolas
2025-03-02 22:54:16 +01:00
parent 3f4c77ef39
commit 5f43ab34fa
4 changed files with 65 additions and 2 deletions

View File

@@ -0,0 +1,46 @@
import { PaginatedTable } from "../../../_components/PaginatedTable";
export default async () => {
return (
<>
<PaginatedTable
prismaModel="user"
searchFields={["publicId", "firstname", "lastname", "email"]}
columns={[
{
header: "Station",
accessorKey: "station",
},
{
header: "Alarmzeit",
accessorKey: "alarm",
},
{
header: "Status 3",
accessorKey: "s3",
},
{
header: "Status 4",
accessorKey: "s4",
},
{
header: "Status 7",
accessorKey: "s7",
},
{
header: "Status 8",
accessorKey: "s8",
},
{
header: "Status 1",
accessorKey: "s1",
},
{
header: "Flugzeit",
accessorKey: "fz",
},
]}
/>
</>
);
};

View File

@@ -0,0 +1,17 @@
import { NotebookText } from "lucide-react";
import LogbookTable from "./_components/LogbookTable";
export default () => {
return (
<div className="grid grid-cols-6 gap-4">
<div className="col-span-full">
<p className="text-2xl font-semibold text-left flex items-center gap-2">
<NotebookText className="w-5 h-5" /> Logbook
</p>
</div>
<div className="card bg-base-200 shadow-xl mb-4 col-span-6">
<LogbookTable />
</div>
</div>
);
};

View File

@@ -28,7 +28,7 @@ export default function Home() {
</span>
<Link
className="badge badge-sm badge-info badge-outline"
href="/settings"
href="/logbook"
>
Zum vollständigen Logbook <ArrowRight className="w-4 h-4" />
</Link>

View File

@@ -23,7 +23,7 @@ export const VerticalNav = () => {
</Link>
</li>
<li>
<Link href="/events">
<Link href="/logbook">
<ReaderIcon />
Logbook
</Link>