index.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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="stylesheet">
  11. <% } %>
  12. <title><%= VUE_APP_TITLE %></title>
  13. <style>
  14. html, body, #app { height: 100%; margin: 0px; padding: 0px; width: 100%; }
  15. .d2-home { background-color: #303133; height: 100%; display: flex; flex-direction: column; }
  16. .d2-home__main { user-select: none; width: 100%; flex-grow: 1; display: flex; justify-content: center; align-items: center; flex-direction: column; }
  17. .d2-home__footer { width: 100%; flex-grow: 0; text-align: center; padding: 1em 0; }
  18. .d2-home__footer > a { font-size: 12px; color: #ABABAB; text-decoration: none; }
  19. .d2-home__loading { height: 32px; width: 32px; margin-bottom: 20px; }
  20. </style>
  21. <!-- 统计代码 帮助 D2Admin 作者大致统计使用此框架的用户数量 -->
  22. <script>
  23. var _hmt = _hmt || [];
  24. var hmid = "bc38887aa5588add05a38704342ad7e8";
  25. (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);})();
  26. </script>
  27. </head>
  28. <body>
  29. <noscript>
  30. <strong>
  31. Sorry, D2Admin will not work properly without JavaScript support. Enable JavaScript for browsers and continue.
  32. </strong>
  33. </noscript>
  34. <div id="app">
  35. <div class="d2-home">
  36. <div class="d2-home__main">
  37. <img
  38. class="d2-home__loading"
  39. src="./image/loading/loading-spin.svg"
  40. alt="loading">
  41. </div>
  42. <div class="d2-home__footer">
  43. <a
  44. href="https://github.com/d2-projects/d2-admin"
  45. target="_blank">
  46. https://github.com/d2-projects/d2-admin
  47. </a>
  48. </div>
  49. </div>
  50. </div>
  51. <!-- 使用 CDN 加速的 JS 文件,配置在 vue.config.js 下 -->
  52. <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
  53. <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
  54. <% } %>
  55. </body>
  56. </html>