mirror of
https://github.com/mandiant/capa.git
synced 2026-01-05 09:17:47 -08:00
replace path traversal with @ path shortcut
This commit is contained in:
@@ -1,31 +1,30 @@
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
|
||||
import Menubar from "primevue/menubar";
|
||||
|
||||
const items = ref([
|
||||
{
|
||||
label: "Import Analysis",
|
||||
icon: "pi pi-file-import",
|
||||
command: () => {
|
||||
window.location.href = window.location.origin + "/capa/";
|
||||
}
|
||||
command: () => (window.location.href = window.location.origin + "/capa/")
|
||||
}
|
||||
]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Menubar :model="items" class="p-1">
|
||||
<div class="flex align-items-center gap-3">
|
||||
<a
|
||||
v-ripple
|
||||
href="https://github.com/mandiant/capa"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="flex align-items-center justify-content-center text-color w-2rem"
|
||||
>
|
||||
<i id="github-icon" class="pi pi-github text-2xl"></i>
|
||||
</a>
|
||||
<img src="../assets/images/icon.png" alt="Logo" class="w-2rem" />
|
||||
</div>
|
||||
<template #end>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<a
|
||||
v-ripple
|
||||
href="https://github.com/mandiant/capa"
|
||||
class="flex align-items-center justify-content-center text-color w-2rem"
|
||||
>
|
||||
<i id="gitsub-icon" class="pi pi-github text-2xl"></i>
|
||||
</a>
|
||||
<img src="@/assets/images/icon.png" alt="Logo" class="w-2rem" />
|
||||
</div>
|
||||
</template>
|
||||
</Menubar>
|
||||
</template>
|
||||
|
||||
@@ -181,7 +181,7 @@ import RuleColumn from "@/components/columns/RuleColumn.vue";
|
||||
import VTIcon from "@/components/misc/VTIcon.vue";
|
||||
|
||||
import { parseRules } from "@/utils/rdocParser";
|
||||
import { createMBCHref, createATTACKHref, createCapaRulesUrl, createVirusTotalUrl } from "../utils/urlHelpers";
|
||||
import { createMBCHref, createATTACKHref, createCapaRulesUrl, createVirusTotalUrl } from "@/utils/urlHelpers";
|
||||
|
||||
const props = defineProps({
|
||||
data: {
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<script setup>
|
||||
import { defineProps } from "vue";
|
||||
import LibraryTag from "../misc/LibraryTag.vue";
|
||||
import LibraryTag from "@/components/misc/LibraryTag.vue";
|
||||
|
||||
defineProps({
|
||||
node: {
|
||||
|
||||
Reference in New Issue
Block a user