mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-11 06:25:17 +00:00
refactor: add localhos traefik domains
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user