Update prefix issue

This commit is contained in:
Donald Zou
2025-12-25 16:49:32 +08:00
parent 53f7a32202
commit a0bbace7ee
157 changed files with 163 additions and 294 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+29 -36
View File
@@ -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>