index.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. 紫光软件 物联网平台
  52. </a>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- 使用 CDN 加速的 JS 文件,配置在 vue.config.js 下 -->
  57. <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
  58. <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
  59. <% } %>
  60. </body>
  61. </html>