refactor: add localhos traefik domains

This commit is contained in:
Mauricio Siu
2024-08-22 00:02:02 -06:00
parent ac1637eaf8
commit 7b9abef687
3 changed files with 27 additions and 125 deletions
@@ -11,6 +11,7 @@ import {
import { Badge } from "@/components/ui/badge";
import type { LogEntry } from "./show-requests";
import { format } from "date-fns";
export const columns: ColumnDef<LogEntry>[] = [
{
@@ -65,6 +66,30 @@ export const columns: ColumnDef<LogEntry>[] = [
);
},
},
{
accessorKey: "time",
header: ({ column }) => {
return (
<Button
variant="ghost"
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
Time
<ArrowUpDown className="ml-2 h-4 w-4" />
</Button>
);
},
cell: ({ row }) => {
const log = row.original;
return (
<div className=" flex flex-col gap-2">
<div className="flex flex-row gap-3 w-full">
{format(new Date(log.time), "yyyy-MM-dd HH:mm:ss")}
</div>
</div>
);
},
},
{
id: "actions",
enableHiding: false,