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>
|
<script setup>
|
||||||
import { ref } from "vue";
|
|
||||||
|
|
||||||
import Menubar from "primevue/menubar";
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Menubar :model="items" class="p-1">
|
<Menubar class="p-1">
|
||||||
<template #end>
|
<template #end>
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex align-items-center gap-3">
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -3,12 +3,11 @@ import vue from "@vitejs/plugin-vue";
|
|||||||
import { viteSingleFile } from "vite-plugin-singlefile";
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
||||||
import { fileURLToPath, URL } from "node:url";
|
import { fileURLToPath, URL } from "node:url";
|
||||||
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
export default defineConfig(({ mode }) => {
|
||||||
export default defineConfig(({ command, mode }) => {
|
|
||||||
const isBundle = mode === "bundle";
|
const isBundle = mode === "bundle";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
base: isBundle ? "/" : "/capa/",
|
base: './',
|
||||||
plugins: isBundle ? [vue(), viteSingleFile()] : [vue()],
|
plugins: isBundle ? [vue(), viteSingleFile()] : [vue()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||
Reference in New Issue
Block a user