-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-worked navigation to show available resources + basic suppor…
…t for non-implemented object views
- Loading branch information
Jeroen Nijhuis
committed
Jan 16, 2024
1 parent
3136819
commit 4a1fc13
Showing
8 changed files
with
356 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { V1Pod } from "@kubernetes/client-node"; | ||
import { ColumnDef } from "@tanstack/vue-table"; | ||
import { formatDateTimeDifference } from "@/lib/utils"; | ||
|
||
export const columns: ColumnDef<any>[] = [ | ||
{ | ||
accessorKey: "metadata.name", | ||
header: "Name", | ||
}, | ||
{ | ||
header: "Age", | ||
accessorFn: (row) => | ||
formatDateTimeDifference( | ||
row.metadata?.creationTimestamp || new Date(), | ||
new Date() | ||
), | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.