revert fb8e77bb68
Local Build and Deploy / deploy (push) Successful in 1m11s

revert style: clean up code with prettier and eslint
This commit is contained in:
remco committed 2026-07-12 21:02:03 +02:00
1 parent 27de078f54
commit e85e4d74ea
378 files changed
+20710 -22428

No files matched your search

+19 -19
View File
@@ -1,36 +1,36 @@
"use client";
'use client'
import { DataTable } from "@/components/admin/data-table";
import { formatTimestamp } from "@/lib/admin-helpers";
import type { DataTableColumn, PaginatedResult } from "@/types";
import { DataTable } from '@/components/admin/data-table'
import { formatTimestamp } from '@/lib/admin-helpers'
import type { DataTableColumn, PaginatedResult } from '@/types'
interface ChatLogRow {
id: number;
username: string;
message: string;
timestamp: number;
roomId: number;
id: number
username: string
message: string
timestamp: number
roomId: number
}
const columns: DataTableColumn<ChatLogRow>[] = [
{ key: "id", label: "ID", sortable: true },
{ key: "username", label: "User" },
{ key: 'id', label: 'ID', sortable: true },
{ key: 'username', label: 'User' },
{
key: "message",
label: "Message",
key: 'message',
label: 'Message',
render: (value) => <span className="max-w-[300px] truncate block">{String(value)}</span>,
},
{
key: "timestamp",
label: "Time",
key: 'timestamp',
label: 'Time',
sortable: true,
render: (value) => <span>{formatTimestamp(Number(value))}</span>,
},
{ key: "roomId", label: "Room ID", sortable: true },
];
{ key: 'roomId', label: 'Room ID', sortable: true },
]
interface ChatTableProps {
data: PaginatedResult<ChatLogRow>;
data: PaginatedResult<ChatLogRow>
}
export function ChatTable({ data }: ChatTableProps) {
@@ -41,5 +41,5 @@ export function ChatTable({ data }: ChatTableProps) {
searchPlaceholder="Search by username or message..."
exportUrl="/api/admin/export?type=chatlogs"
/>
);
)
}