index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html lang="zh" id="htmlRoot">
  3. <head>
  4. <meta charset="utf-8"><meta content="webkit" name="renderer"/><meta http-equiv="X-UA-Compatible" content="IE=edge">
  5. <meta name="keywords" content="PoweredByJeeSiteV5.0"/><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
  6. <meta name="description" content="PoweredByJeeSiteV5.0"/><meta content="no-cache" http-equiv="Pragma"/><meta http-equiv="Expires" content="0"/>
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
  8. <title><%= VITE_GLOB_APP_TITLE %></title>
  9. <link rel="shortcut icon" href="/favicon.png" type="image/png" />
  10. <link rel="stylesheet" href="/resource/css/index.css">
  11. </head>
  12. <body>
  13. <script>if(navigator.userAgent.indexOf("MSIE")>0||navigator.userAgent.indexOf("rv:11")>0){alert('不支持 IE 访问,请使用现代浏览器访问。')};(()=>{var htmlRoot=document.getElementById('htmlRoot'),theme=window.localStorage.getItem('__APP__DARK__MODE__');if(htmlRoot&&theme){htmlRoot.setAttribute('data-theme',theme);theme=htmlRoot=null}})()</script>
  14. <div id="app">
  15. <div class="app-loading">
  16. <div class="app-loading-wrap">
  17. <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
  18. <div class="app-loading-title"><%= VITE_GLOB_APP_TITLE %></div>
  19. <div class="app-loading-tip" role="status" aria-live="polite"></div>
  20. <div class="app-loading-actions">
  21. <button class="app-loading-reconnect" type="button">重连</button>
  22. <button class="app-loading-server-setup" type="button">修改服务地址</button>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <script>
  28. // 智能工作台是同一份 bundle 的独立窗口:loading 文案跟随窗口职责,避免子窗口也显示主应用标题。
  29. // dev 是 history 路由(pathname=/workbench),prod 是 hash 路由(#/workbench)。
  30. (() => {
  31. const route = (window.location.hash || '').replace(/^#/, '') || window.location.pathname || '';
  32. if (!/^\/workbench(\/|\?|$)/.test(route)) return;
  33. const title = document.querySelector('.app-loading-title');
  34. if (title) title.textContent = '清鉴智能工作台';
  35. })();
  36. </script>
  37. <script type="module" src="/src/main.ts"></script>
  38. <script src="/resource/layer/layer.js"></script>
  39. </body>
  40. </html>