index.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!--
  2. ~ Copyright 2014-2018 the original author or authors.
  3. ~
  4. ~ Licensed under the Apache License, Version 2.0 (the "License");
  5. ~ you may not use this file except in compliance with the License.
  6. ~ You may obtain a copy of the License at
  7. ~
  8. ~ http://www.apache.org/licenses/LICENSE-2.0
  9. ~
  10. ~ Unless required by applicable law or agreed to in writing, software
  11. ~ distributed under the License is distributed on an "AS IS" BASIS,
  12. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. ~ See the License for the specific language governing permissions and
  14. ~ limitations under the License.
  15. -->
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19. <!-- <base th:href="@{${adminContextPath} + '/'}" href="/">-->
  20. <meta charset="utf-8">
  21. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  22. <meta name="format-detection" content="telephone=no,email=no">
  23. <meta name="theme-color" content="#42d3a5">
  24. <link rel="preload" href="assets/css/sba-core.css" as="style">
  25. <th:block th:each="cssFile : ${cssExtensions}">
  26. <link rel="preload" th:href="${cssFile.resourcePath}" as="style">
  27. </th:block>
  28. <link rel="preload" href="assets/js/vendors.js" as="script">
  29. <th:block th:each="jsFile : ${jsExtensions}">
  30. <link rel="preload" th:href="${jsFile.resourcePath}" as="script">
  31. </th:block>
  32. <link rel="preload" href="assets/js/sba-core.js" as="script">
  33. <link href="assets/css/sba-core.css" rel="stylesheet">
  34. <th:block th:each="cssFile : ${cssExtensions}">
  35. <link th:href="${cssFile.resourcePath}" rel="stylesheet">
  36. </th:block>
  37. <link rel="shortcut icon" href="assets/img/favicon.png" type="image/png">
  38. <title th:text="${uiSettings.title}">微服务运行监控</title>
  39. </head>
  40. <body>
  41. <div id="app"></div>
  42. <script th:inline="javascript">
  43. var SBA = {
  44. uiSettings: /*[[${uiSettings}]]*/ {},
  45. user: /*[[${user}]]*/ null,
  46. extensions: [],
  47. /*[#th:block th:if="${_csrf}"]*/
  48. csrf: {
  49. parameterName: /*[[${_csrf.parameterName}]]*/ null,
  50. headerName: /*[[${_csrf.headerName}]]*/ null
  51. },
  52. /*[/th:block]*/
  53. use: function (ext) {
  54. this.extensions.push(ext);
  55. }
  56. }
  57. </script>
  58. <script lang="javascript" src="/common-assets/js/project.config.js"></script>
  59. <script lang="javascript" src="assets/js/vendors.js" defer></script>
  60. <th:block th:each="jsFile : ${jsExtensions}">
  61. <script lang="javascript" th:src="${jsFile.resourcePath}" defer></script>
  62. </th:block>
  63. <script lang="javascript" src="assets/js/sba-core.js" defer></script>
  64. </body>
  65. </html>