mirror of
https://github.com/amir20/dozzle.git
synced 2026-08-07 10:04:45 +00:00
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
Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
40 lines
932 B
Vue
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>
|