2024-01-08 12:23:57 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
2024-11-07 10:37:11 +08:00
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="application-name" content="WGDashboard">
|
|
|
|
|
<meta name="apple-mobile-web-app-title" content="WGDashboard">
|
2025-12-18 02:38:05 +01:00
|
|
|
<link rel="manifest" href="./json/manifest.json">
|
|
|
|
|
<link rel="icon" href="./img/Logo-2-512x512.png">
|
2024-11-07 10:37:11 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>WGDashboard</title>
|
2025-12-18 02:38:05 +01:00
|
|
|
<script>
|
2025-12-18 07:14:24 +01:00
|
|
|
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 || '') + '/';
|
|
|
|
|
}
|
|
|
|
|
document.head.insertBefore(base, document.head.firstChild);
|
2025-12-18 02:38:05 +01:00
|
|
|
</script>
|
2025-08-16 17:05:25 +08:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="app"></div>
|
2024-11-07 10:37:11 +08:00
|
|
|
<script type="module" src="./src/main.js"></script>
|
|
|
|
|
</body>
|
2024-01-08 12:23:57 -05:00
|
|
|
</html>
|