Skip to content

Commit

Permalink
replace path traversal with @ path shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
fariss committed Aug 8, 2024
1 parent 850ae5a commit 9d137a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
29 changes: 14 additions & 15 deletions web/explorer/src/components/NavBar.vue
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion web/explorer/src/components/RuleMatchesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion web/explorer/src/components/columns/RuleColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 9d137a2

Please sign in to comment.