minor fixes: NamespaceChart and ProcessCapabilities

This commit is contained in:
Soufiane Fariss
2024-08-08 07:18:56 +02:00
parent 287e4282a9
commit 368f635387
2 changed files with 4 additions and 15 deletions

View File

@@ -99,7 +99,7 @@ const renderChart = () => {
parents: sunburstData.parents,
values: sunburstData.values,
outsidetextfont: { size: 20, color: "#377eb8" },
leaf: { opacity: 0.6 },
leaf: { opacity: 0.4 },
marker: { line: { width: 2 } },
branchvalues: "total"
}
@@ -112,15 +112,6 @@ const renderChart = () => {
};
onMounted(() => {
const data = renderChart();
console.log(data);
renderChart();
});
watch(
() => props.data,
() => {
renderChart();
},
{ deep: true }
);
</script>

View File

@@ -18,8 +18,7 @@
@mouseleave="hideTooltip"
>
<span
class="text-lg text-overflow-ellipsis overflow-hidden white-space-nowrap inline-block max-w-20rem"
style="font-family: monospace"
class="text-lg text-overflow-ellipsis overflow-hidden white-space-nowrap inline-block max-w-20rem font-monospace"
>
{{ slotProps.node.data.processname }}
</span>
@@ -67,7 +66,7 @@
import { ref, computed, onMounted, onUnmounted } from "vue";
import TreeTable from "primevue/treetable";
import Column from "primevue/column";
import LibraryTag from "./misc/LibraryTag.vue";
import LibraryTag from "@/components/misc/LibraryTag.vue";
const props = defineProps({
data: {
@@ -166,7 +165,6 @@ const processTree = computed(() => {
// build the final tree structure
const rootProcesses = [];
processMap.forEach((processNode) => {
console.log(processNode);
processNode.data.uniqueRules = Array.from(processNode.data.uniqueRules.values());
const parentProcess = processMap.get(processNode.data.ppid);
if (parentProcess) {