index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <script>
  5. (function (){
  6. const global = (0, eval)('window')
  7. const name = 'nginx-ui'
  8. const proxy = global.proxy
  9. let publicPath = (proxy && proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__) || ''
  10. publicPath = publicPath.slice(0, publicPath.length - 1)
  11. global.legacyQiankun = global.legacyQiankun || {}
  12. global.legacyQiankun[name] = global.legacyQiankun[name] || {}
  13. Object.assign(global.legacyQiankun[name], {
  14. proxy,
  15. publicPath,
  16. '__INJECTED_PUBLIC_PATH_BY_QIANKUN__': proxy && proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__,
  17. '__POWERED_BY_QIANKUN__': proxy && proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__,
  18. })})()
  19. </script>
  20. <meta charset="UTF-8" />
  21. <link rel="icon" type="image/svg+xml" href="/nginx-ui/vite.svg" />
  22. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  23. <title>NginxUI</title>
  24. <script type="application/javascript" src="/nginx-ui/config.js"></script>
  25. <!-- replace by vite-plugin-legacy-qiankun <script type="module" crossorigin src="/nginx-ui/assets/index-C4bOgrFY.js"></script> -->
  26. <link rel="modulepreload" crossorigin href="/nginx-ui/cdn/ace-builds-1.23.0.js">
  27. <link rel="modulepreload" crossorigin href="/nginx-ui/cdn/react-all-18.2.0.js">
  28. <link rel="stylesheet" crossorigin href="/nginx-ui/assets/index-Du21pBjA.css">
  29. <!-- replace by vite-plugin-legacy-qiankun <script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script> -->
  30. <!-- replace by vite-plugin-legacy-qiankun <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script> -->
  31. </head>
  32. <body>
  33. <div id="nginx_ui_root"></div>
  34. <script >!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
  35. <script crossorigin id="vite-legacy-polyfill" src="/nginx-ui/assets/polyfills-legacy-onNG-a16.js"></script>
  36. <script>
  37. (function (){
  38. const global = (0, eval)('window')
  39. const name = 'nginx-ui'
  40. global.legacyQiankun[name].dynamicImport = System.import(!global.legacyQiankun[name].__POWERED_BY_QIANKUN__ ? '/nginx-ui/assets/index-legacy-C9bzCwDK.js' : new URL('/nginx-ui/assets/index-legacy-C9bzCwDK.js', global.legacyQiankun[name].__POWERED_BY_QIANKUN__).toString())})()
  41. </script>
  42. <script>
  43. (function (){
  44. const global = (0, eval)('window')
  45. const name = 'nginx-ui'
  46. const app = global.legacyQiankun[name]
  47. if (!app.proxy) return
  48. window[name] = {
  49. bootstrap: (...args) => app.dynamicImport.then(() => app.lifecyle.bootstrap(...args)),
  50. mount: (...args) => app.dynamicImport.then(() => app.lifecyle.mount(...args)),
  51. unmount: (...args) => app.dynamicImport.then(() => app.lifecyle.unmount(...args)),
  52. update: (...args) => app.dynamicImport.then(() => app.lifecyle.update(...args)),
  53. }})()
  54. </script></body>
  55. </html>