index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="description" content="Metronic Vue Demo" />
  6. <link rel="icon" href="/favicon.ico">
  7. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700">
  8. <link rel="stylesheet" href="/splash-screen.css">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <title>Vber</title>
  11. </head>
  12. <body class="page-loading">
  13. <!--begin::Theme mode setup on page load-->
  14. <script>
  15. let themeMode = "system";
  16. const STORAGE_KEY = `VberAdmin.1.0.1.vber`
  17. const storageStr = localStorage.getItem(STORAGE_KEY)
  18. if (storageStr) {
  19. const storage = JSON.parse(storageStr || "{}")
  20. themeMode = storage["VB_THEME_MODE_VALUE"] || "system";
  21. }
  22. if (themeMode === "system") {
  23. themeMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
  24. }
  25. document.documentElement.setAttribute("data-bs-theme", themeMode);
  26. </script>
  27. <!--end::Theme mode setup on page load-->
  28. <div id="app"></div>
  29. <!--begin::Loading markup-->
  30. <div id="splash-screen" class="splash-screen">
  31. <img src="/media/logos/default-small.png" alt="VBER light logo" />
  32. <span>正在加载中 ...</span>
  33. </div>
  34. <!--end::Loading markup-->
  35. <script type="module" src="/src/main.ts"></script>
  36. </body>
  37. </html>