index.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <link rel="icon" href="<%= BASE_URL %>icon.ico">
  8. <!-- 使用 CDN 加速的 CSS 文件,配置在 vue.config.js 下 -->
  9. <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.css) { %>
  10. <link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style">
  11. <link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet">
  12. <% } %>
  13. <!-- 使用 CDN 加速的 JS 文件,配置在 vue.config.js 下 -->
  14. <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
  15. <link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script">
  16. <% } %>
  17. <title><%= VUE_APP_TITLE %></title>
  18. <style>
  19. html, body, #app { height: 100%; margin: 0px; padding: 0px; width: 100%; }
  20. .d2-home { background-color: #303133; height: 100%; display: flex; flex-direction: column; }
  21. .d2-home__main { user-select: none; width: 100%; flex-grow: 1; display: flex; justify-content: center; align-items: center; flex-direction: column; }
  22. .d2-home__footer { width: 100%; flex-grow: 0; text-align: center; padding: 1em 0; }
  23. .d2-home__footer > a { font-size: 12px; color: #ABABAB; text-decoration: none; }
  24. .d2-home__loading { height: 32px; width: 32px; margin-bottom: 20px; }
  25. </style>
  26. <script>
  27. var _hmt = _hmt || [];
  28. var hmid = "bc38887aa5588add05a38704342ad7e8";
  29. (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?" + hmid; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
  30. </script>
  31. </head>
  32. <body>
  33. <noscript>
  34. <strong>
  35. Sorry, D2Admin will not work properly without JavaScript support. Enable JavaScript for browsers and continue.
  36. </strong>
  37. </noscript>
  38. <div id="app">
  39. <div class="d2-home">
  40. <div class="d2-home__main">
  41. <img
  42. class="d2-home__loading"
  43. src="./image/loading/loading-spin.svg"
  44. alt="loading">
  45. </div>
  46. <div class="d2-home__footer">
  47. <a
  48. href="https://github.com/d2-projects/d2-admin"
  49. target="_blank">
  50. https://github.com/d2-projects/d2-admin
  51. </a>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- 使用 CDN 加速的 JS 文件,配置在 vue.config.js 下 -->
  56. <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
  57. <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
  58. <% } %>
  59. </body>
  60. </html>