index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.png">
  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. </head>
  27. <body>
  28. <noscript>
  29. <strong>
  30. Sorry, D2Admin will not work properly without JavaScript support. Enable JavaScript for browsers and continue.
  31. </strong>
  32. </noscript>
  33. <div id="app">
  34. <div class="d2-home">
  35. <div class="d2-home__main">
  36. <img
  37. class="d2-home__loading"
  38. src="./image/loading/loading-spin.svg"
  39. alt="loading">
  40. </div>
  41. <div class="d2-home__footer">
  42. <!-- <a-->
  43. <!-- href="https://github.com/d2-projects/d2-admin"-->
  44. <!-- target="_blank">-->
  45. <!-- https://github.com/d2-projects/d2-admin-->
  46. <!-- </a>-->
  47. </div>
  48. </div>
  49. </div>
  50. <!-- 使用 CDN 加速的 JS 文件,配置在 vue.config.js 下 -->
  51. <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
  52. <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
  53. <% } %>
  54. </body>
  55. </html>