mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
minor fixes: NamespaceChart and ProcessCapabilities
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user