index.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html><html lang="en"><head>
  2. <meta charset="UTF-8">
  3. <link rel="icon" type="image/svg+xml" href="/nginx-ui/vite.svg">
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5. <title>NginxUI</title>
  6. <script type="application/javascript" src="/nginx-ui/config.js"></script>
  7. <script crossorigin="">import('/nginx-ui/assets/index-bfcad9eb.js').finally(() => {
  8. const qiankunLifeCycle = window.moudleQiankunAppLifeCycles && window.moudleQiankunAppLifeCycles['nginx-ui'];
  9. if (qiankunLifeCycle) {
  10. window.proxy.vitemount((props) => qiankunLifeCycle.mount(props));
  11. window.proxy.viteunmount((props) => qiankunLifeCycle.unmount(props));
  12. window.proxy.vitebootstrap(() => qiankunLifeCycle.bootstrap());
  13. window.proxy.viteupdate((props) => qiankunLifeCycle.update(props));
  14. }
  15. })</script>
  16. <link rel="modulepreload" crossorigin="" href="/nginx-ui/cdn/ace-builds-1.23.0.js">
  17. <link rel="modulepreload" crossorigin="" href="/nginx-ui/cdn/react-all-18.2.0.js">
  18. <link rel="stylesheet" href="/nginx-ui/assets/index-6a157cc6.css">
  19. </head>
  20. <body>
  21. <div id="nginx_ui_root"></div>
  22. <script>
  23. const createDeffer = (hookName) => {
  24. const d = new Promise((resolve, reject) => {
  25. window.proxy && (window.proxy[`vite${hookName}`] = resolve)
  26. })
  27. return props => d.then(fn => fn(props));
  28. }
  29. const bootstrap = createDeffer('bootstrap');
  30. const mount = createDeffer('mount');
  31. const unmount = createDeffer('unmount');
  32. const update = createDeffer('update');
  33. ;(global => {
  34. global.qiankunName = 'nginx-ui';
  35. global['nginx-ui'] = {
  36. bootstrap,
  37. mount,
  38. unmount,
  39. update
  40. };
  41. })(window);
  42. </script></body></html>