diff --git a/src/assets/icons/expand.svg b/src/assets/icons/expand.svg new file mode 100644 index 0000000..3b6be9e --- /dev/null +++ b/src/assets/icons/expand.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/RouterViewport.vue b/src/components/RouterViewport.vue index af5119e..4d377c7 100644 --- a/src/components/RouterViewport.vue +++ b/src/components/RouterViewport.vue @@ -1,11 +1,15 @@ - - - - + + + + + + + diff --git a/src/components/TabOrchestrator.vue b/src/components/TabOrchestrator.vue new file mode 100644 index 0000000..4ef4e89 --- /dev/null +++ b/src/components/TabOrchestrator.vue @@ -0,0 +1,36 @@ + + + + + + + Logs for minikube/default/countdown-b8dz2 + + + Tab 2 + + + Tab 3 + + + + + + + Test + + diff --git a/src/components/tables/pods.ts b/src/components/tables/pods.ts index d51a7a5..98daad0 100644 --- a/src/components/tables/pods.ts +++ b/src/components/tables/pods.ts @@ -37,18 +37,3 @@ export const columns: ColumnDef[] = [ accessorKey: "spec.nodeName", }, ]; - -export const rowActions: RowAction[] = [ - { - label: "Describe", - handler: (row) => { - console.log("Describe", row); - }, - }, - { - label: "Logs", - handler: (row) => { - console.log("Logs", row); - }, - }, -]; diff --git a/src/components/ui/DataTable.vue b/src/components/ui/DataTable.vue index abfa703..d29179b 100644 --- a/src/components/ui/DataTable.vue +++ b/src/components/ui/DataTable.vue @@ -18,7 +18,6 @@ import { TableRow, } from "@/components/ui/table"; import { RowAction } from "../tables/types"; -import { rowActions } from "../tables/pods"; interface DataTableState { contextMenuSubject: T | null; @@ -101,7 +100,7 @@ const table = useVueTable({ - + ([]); +const rowActions: RowAction[] = [ + { + label: "Edit", + handler: (row) => { + console.log("Edit", row); + }, + }, + { + label: "Describe", + handler: (row) => { + console.log("Describe", row); + }, + }, + { + label: "Logs", + handler: (row) => { + router.push({ name: "PodLogs", params: { podName: row.metadata?.name } }); + }, + }, +]; + async function getPods(refresh: boolean = false) { if (!refresh) { pods.value = []; @@ -47,7 +73,7 @@ const { startRefreshing, stopRefreshing } = useDataRefresher(getPods, 1000, [ namespace, ]); -x + diff --git a/tailwind.config.js b/tailwind.config.js index 6fd7346..cae86e6 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -20,6 +20,9 @@ module.exports = { }, }, extend: { + rotate: { + 270: "270deg", + }, backdropBlur: { xxs: "1px", },