mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
web: fix build warnings (#2268)
* web: remove unneeded import * web: fix code comments style
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/public/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Capa Explorer</title>
|
<title>Capa Explorer</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="cursor-default">
|
<div class="cursor-default">
|
||||||
<!--- example node: "parse PE headers (2 matches) lib" --->
|
<!-- example node: "parse PE headers (2 matches) lib" -->
|
||||||
<template v-if="node.data.type === 'rule'">
|
<template v-if="node.data.type === 'rule'">
|
||||||
<div>
|
<div>
|
||||||
<span>{{ node.data.name }}</span>
|
<span>{{ node.data.name }}</span>
|
||||||
@@ -9,12 +9,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--- example node: "basic block @ 0x401000" or "explorer.exe" --->
|
<!-- example node: "basic block @ 0x401000" or "explorer.exe" -->
|
||||||
<template v-else-if="node.data.type === 'match location'">
|
<template v-else-if="node.data.type === 'match location'">
|
||||||
<span class="text-sm font-italic">{{ node.data.name }}</span>
|
<span class="text-sm font-italic">{{ node.data.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--- example node: "- or", "- and" --->
|
<!-- example node: "- or", "- and" -->
|
||||||
<template v-else-if="node.data.type === 'statement'"
|
<template v-else-if="node.data.type === 'statement'"
|
||||||
>-
|
>-
|
||||||
<span
|
<span
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--- example node: "- api: GetProcAddress", "- regex: .*\\.exe" --->
|
<!-- example node: "- api: GetProcAddress", "- regex: .*\\.exe" -->
|
||||||
<template v-else-if="node.data.type === 'feature'">
|
<template v-else-if="node.data.type === 'feature'">
|
||||||
<span>
|
<span>
|
||||||
- {{ node.data.typeValue }}:
|
- {{ node.data.typeValue }}:
|
||||||
@@ -37,17 +37,17 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--- example node: "- malware.exe" (these are the captures (i.e. children nodes) of regex nodes) --->
|
<!-- example node: "- malware.exe" (these are the captures (i.e. children nodes) of regex nodes) -->
|
||||||
<template v-else-if="node.data.type === 'regex-capture'">
|
<template v-else-if="node.data.type === 'regex-capture'">
|
||||||
- <span class="text-green-700 font-monospace">{{ node.data.name }}</span>
|
- <span class="text-green-700 font-monospace">{{ node.data.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--- example node: "exit(0) -> 0" (if the node type is call-info, we highlight node.data.name.callInfo) --->
|
<!-- example node: "exit(0) -> 0" (if the node type is call-info, we highlight node.data.name.callInfo) -->
|
||||||
<template v-else-if="node.data.type === 'call-info'">
|
<template v-else-if="node.data.type === 'call-info'">
|
||||||
<highlightjs lang="c" :code="node.data.name.callInfo" />
|
<highlightjs lang="c" :code="node.data.name.callInfo" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- example node: " = IMAGE_NT_SIGNATURE (PE)" --->
|
<!-- example node: " = IMAGE_NT_SIGNATURE (PE)" -->
|
||||||
<span v-if="node.data.description" class="text-gray-500 text-sm" style="font-size: 90%">
|
<span v-if="node.data.description" class="text-gray-500 text-sm" style="font-size: 90%">
|
||||||
= {{ node.data.description }}
|
= {{ node.data.description }}
|
||||||
</span>
|
</span>
|
||||||
@@ -55,7 +55,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { defineProps } from "vue";
|
|
||||||
import LibraryTag from "@/components/misc/LibraryTag.vue";
|
import LibraryTag from "@/components/misc/LibraryTag.vue";
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
|
|||||||
Reference in New Issue
Block a user