mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-08-04 06:53:00 +00:00
Update prefix issue
This commit is contained in:
+29
-36
@@ -1,10 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="./img/Logo-2-128x128.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WGDashboard Client</title>
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="./img/Logo-2-128x128.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WGDashboard Client</title>
|
||||
<base href="./client/">
|
||||
<style>
|
||||
*{
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
@@ -27,32 +28,24 @@
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
let appPrefix = "{{ APP_PREFIX if APP_PREFIX else '' }}";
|
||||
if (appPrefix.includes('{' + '{')) {
|
||||
appPrefix = '';
|
||||
}
|
||||
window.APP_PREFIX = appPrefix;
|
||||
const isViteDevMode = document.querySelector('script[src*="@vite/client"]') !== null;
|
||||
const base = document.createElement('base');
|
||||
if (isViteDevMode) {
|
||||
base.href = '/';
|
||||
} else {
|
||||
base.href = (window.APP_PREFIX || '') + '/client/';
|
||||
}
|
||||
document.head.insertBefore(base, document.head.firstChild);
|
||||
</script>
|
||||
<script type="module" crossorigin src="./assets/index-Cvh_c-yQ.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-TPmsOMhK.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div id="preloader">
|
||||
<div id="preloader_placeholder">
|
||||
<img style="width: 100%" src="./img/Logo-2-128x128.png" alt="WGDashboard Client" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</style>
|
||||
<script>
|
||||
const isViteDevMode = document.querySelector('script[src*="@vite/client"]') !== null;
|
||||
const base = document.querySelector('base');
|
||||
if (base && isViteDevMode) {
|
||||
base.href = '/';
|
||||
}
|
||||
</script>
|
||||
<script type="module" crossorigin src="./assets/index-Bb60GBsu.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-Cls9cndz.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div id="preloader">
|
||||
<div id="preloader_placeholder">
|
||||
<img style="width: 100%" src="./img/Logo-2-128x128.png" alt="WGDashboard Client" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user