mirror of
https://github.com/mandiant/capa.git
synced 2025-12-05 20:40:05 -08:00
web: change base url for capa Explorer Web (#2267)
This commit is contained in:
@@ -1,19 +1,9 @@
|
||||
<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/")
|
||||
}
|
||||
]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Menubar :model="items" class="p-1">
|
||||
<Menubar class="p-1">
|
||||
<template #end>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<a
|
||||
|
||||
@@ -3,12 +3,11 @@ import vue from "@vitejs/plugin-vue";
|
||||
import { viteSingleFile } from "vite-plugin-singlefile";
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
export default defineConfig(({ command, mode }) => {
|
||||
export default defineConfig(({ mode }) => {
|
||||
const isBundle = mode === "bundle";
|
||||
|
||||
return {
|
||||
base: isBundle ? "/" : "/capa/",
|
||||
base: './',
|
||||
plugins: isBundle ? [vue(), viteSingleFile()] : [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user