Files
dozzle/assets/pages/owner/[name].vue
T
Hiram Chirino 3062410b42
Push container / Push branches and PRs (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Test / Typecheck (push) Has been cancelled
Test / JavaScript Tests (push) Has been cancelled
Test / Go Tests (push) Has been cancelled
Test / Go Staticcheck (push) Has been cancelled
Test / Integration Tests (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
feat(k8s): group containers by owner chain (#4811)
Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
2026-07-01 09:07:51 -07:00

40 lines
932 B
Vue

<template>
<Search />
<OwnerLog :owner="owner" :scrollable="pinnedLogs.length > 0" v-if="owner" />
</template>
<script lang="ts" setup>
const route = useRoute("/owner/[name]");
const containerStore = useContainerStore();
const { ready } = storeToRefs(containerStore);
const pinnedLogsStore = usePinnedLogsStore();
const { pinnedLogs } = storeToRefs(pinnedLogsStore);
const k8sStore = useK8sStore();
const { owners } = storeToRefs(k8sStore);
const ownerKey = computed(() => {
try {
return decodeURIComponent(String(route.params.name));
} catch {
return String(route.params.name);
}
});
const owner = computed(() => owners.value.find((o) => o.key === ownerKey.value));
watchEffect(() => {
if (ready.value) {
if (owner.value?.name) {
setTitle(`${owner.value.kind}/${owner.value.name}`);
} else {
setTitle("Not Found");
}
}
});
</script>
<route lang="yaml">
meta:
menu: k8s
</route>