Skip to content

Commit

Permalink
web: change base url for capa Explorer Web (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
fariss authored Aug 9, 2024
1 parent f69fabc commit 401a0ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
12 changes: 1 addition & 11 deletions web/explorer/src/components/NavBar.vue
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions web/explorer/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 401a0ee

Please sign in to comment.