Skip to content

Commit

Permalink
fix assets img path from dev to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Jul 2, 2024
1 parent 1d4214a commit b2e43c1
Show file tree
Hide file tree
Showing 21 changed files with 263 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/vite/src/assets/img/favicon-white.ico
Binary file not shown.
Binary file added src/client/vite/src/assets/img/favicon.ico
Binary file not shown.
Binary file added src/client/vite/src/assets/img/logo-bw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/vite/src/assets/img/logo-menu-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/vite/src/assets/img/logo-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/vite/src/assets/img/no_internet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/client/vite/src/components/Dashboard/Loader.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script setup>
import { onMounted, reactive, ref } from "vue";
import logoMenu2 from "@public/img/logo-menu-2.png";
// Get assets path
import logo2 from "@assets/img/logo-menu-2.png";
// Change path on PROD removing '/' in order to get the right path
const logoMenu2 = logo2.substring(import.meta.env.DEV ? 0 : 1);
/**
@name Dashboard/Loader.vue
@description This component is a loader used to transition between pages.
Expand Down
11 changes: 8 additions & 3 deletions src/client/vite/src/components/Dashboard/Menu.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<script setup>
import Icons from "@components/Widget/Icons.vue";
import { reactive, onMounted, onBeforeMount } from "vue";
import { reactive, onBeforeMount } from "vue";
import { menuIndex, menuFloatIndex } from "@/utils/tabindex.js";
import { useBannerStore } from "@store/global.js";
import logoMenu2 from "@public/img/logo-menu-2.png";
import logoMenu from "@public/img/logo-menu.png";
// Get assets path
import logo from "@assets/img/logo-menu.png";
import logo2 from "@assets/img/logo-menu-2.png";
// Change path on PROD removing '/' in order to get the right path
const logoMenu = logo.substring(import.meta.env.DEV ? 0 : 1);
const logoMenu2 = logo2.substring(import.meta.env.DEV ? 0 : 1);
/**
@name Dashboard/Menu.vue
Expand Down
25 changes: 25 additions & 0 deletions src/ui/static/assets/home-409d04c4.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-4dedb9c1.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-55d62ea9.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-9060b7b9.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-a85457e7.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-bc58f8dd.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-cb430cab.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-d04bd3e4.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-e3d69c5d.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/ui/static/assets/home-ee122e19.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ui/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/flag-icons.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BunkerWeb | DASHBOARD</title>
<script nonce="{{ script_nonce }}" type="module" crossorigin src="assets/home-b002ec3a.js"></script>
<script nonce="{{ script_nonce }}" type="module" crossorigin src="assets/home-4dedb9c1.js"></script>
</head>
<body>
<div class="hidden" data-csrf-token="{{ csrf_token() }}"></div>
Expand Down

0 comments on commit b2e43c1

Please sign in to comment.