diff --git a/webui/src/components/FunctionCapabilities.vue b/webui/src/components/FunctionCapabilities.vue
index 2a78f2e8..0e8ecaa2 100644
--- a/webui/src/components/FunctionCapabilities.vue
+++ b/webui/src/components/FunctionCapabilities.vue
@@ -29,9 +29,7 @@
{{ slotProps.data.ruleName }}
-
+
@@ -39,7 +37,7 @@
@@ -64,7 +62,7 @@ const props = defineProps({
})
const filters = ref({
- 'global': { value: null, matchMode: 'contains' },
+ global: { value: null, matchMode: 'contains' }
})
const filterMode = ref('lenient')
const sourceDialogVisible = ref(false)
diff --git a/webui/src/components/ProcessCapabilities.vue b/webui/src/components/ProcessCapabilities.vue
index 1cfb27e5..6d556446 100644
--- a/webui/src/components/ProcessCapabilities.vue
+++ b/webui/src/components/ProcessCapabilities.vue
@@ -17,14 +17,16 @@
@mouseenter="showTooltip($event, slotProps.node)"
@mouseleave="hideTooltip"
>
-
+
{{ slotProps.node.data.processname }}
-
- - PID: {{ slotProps.node.data.pid }}
-
+ - PID: {{ slotProps.node.data.pid }}
- ({{ slotProps.node.data.uniqueMatchCount }} unique {{ slotProps.node.data.uniqueMatchCount > 1 ? 'matches' : 'match' }})
+ ({{ slotProps.node.data.uniqueMatchCount }} unique
+ {{ slotProps.node.data.uniqueMatchCount > 1 ? 'matches' : 'match' }})
@@ -45,9 +47,16 @@
-
+
- • {{ rule.name }} ({{ rule.matchCount }} {{ rule.scope }} {{ rule.matchCount > 1 ? 'matches' : 'match' }})
+ • {{ rule.name }}
+ ({{ rule.matchCount }} {{ rule.scope }} {{ rule.matchCount > 1 ? 'matches' : 'match' }})
@@ -78,24 +87,30 @@ const currentNode = ref(null)
const tooltipStyle = ref({
position: 'fixed',
top: '0px',
- left: '0px',
+ left: '0px'
})
const getProcessIds = (location) => {
if (!location || location.type === 'no address') {
- return null;
+ return null
}
if (Array.isArray(location.value) && location.value.length >= 2) {
return {
ppid: location.value[0],
pid: location.value[1]
- };
+ }
}
- return null;
+ return null
}
const processTree = computed(() => {
- if (!props.data || !props.data.meta || !props.data.meta.analysis || !props.data.meta.analysis.layout || !props.data.meta.analysis.layout.processes) {
+ if (
+ !props.data ||
+ !props.data.meta ||
+ !props.data.meta.analysis ||
+ !props.data.meta.analysis.layout ||
+ !props.data.meta.analysis.layout.processes
+ ) {
console.error('Invalid data structure')
return []
}
@@ -105,7 +120,7 @@ const processTree = computed(() => {
const processMap = new Map()
// create all process nodes
- processes.forEach(process => {
+ processes.forEach((process) => {
if (!process.address || !Array.isArray(process.address.value) || process.address.value.length < 2) {
console.warn('Invalid process structure', process)
return
@@ -118,7 +133,7 @@ const processTree = computed(() => {
pid,
ppid,
uniqueMatchCount: 0,
- uniqueRules: new Map(),
+ uniqueRules: new Map()
},
children: []
})
@@ -129,7 +144,7 @@ const processTree = computed(() => {
if (!props.showLibraryRules && rule.meta && rule.meta.lib) return
if (!rule.matches || !Array.isArray(rule.matches)) return
- rule.matches.forEach(match => {
+ rule.matches.forEach((match) => {
if (!Array.isArray(match) || match.length === 0) return
const [location] = match
const ids = getProcessIds(location)
@@ -188,7 +203,7 @@ const updateTooltipPosition = (event) => {
tooltipStyle.value = {
position: 'fixed',
top: `${event.clientY + offset}px`,
- left: `${event.clientX + offset}px`,
+ left: `${event.clientX + offset}px`
}
}
diff --git a/webui/src/components/columns/RuleColumn.vue b/webui/src/components/columns/RuleColumn.vue
index 7cb5c98d..483ceebd 100644
--- a/webui/src/components/columns/RuleColumn.vue
+++ b/webui/src/components/columns/RuleColumn.vue
@@ -4,7 +4,7 @@
{{ node.data.name }}
- {{ node.data.name.processName || node.data.name }}
+ {{ node.data.name }}
-