|
@@ -1,48 +1,57 @@
|
|
|
-<!DOCTYPE html><html lang="en"><head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <link rel="icon" type="image/svg+xml" href="/nginx-ui/vite.svg">
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
- <title>NginxUI</title>
|
|
|
- <script type="application/javascript" src="/nginx-ui/config.js"></script>
|
|
|
- <script crossorigin="">import('/nginx-ui/assets/index-bfcad9eb.js').finally(() => {
|
|
|
-
|
|
|
- const qiankunLifeCycle = window.moudleQiankunAppLifeCycles && window.moudleQiankunAppLifeCycles['nginx-ui'];
|
|
|
- if (qiankunLifeCycle) {
|
|
|
- window.proxy.vitemount((props) => qiankunLifeCycle.mount(props));
|
|
|
- window.proxy.viteunmount((props) => qiankunLifeCycle.unmount(props));
|
|
|
- window.proxy.vitebootstrap(() => qiankunLifeCycle.bootstrap());
|
|
|
- window.proxy.viteupdate((props) => qiankunLifeCycle.update(props));
|
|
|
- }
|
|
|
-
|
|
|
- })</script>
|
|
|
- <link rel="modulepreload" crossorigin="" href="/nginx-ui/cdn/ace-builds-1.23.0.js">
|
|
|
- <link rel="modulepreload" crossorigin="" href="/nginx-ui/cdn/react-all-18.2.0.js">
|
|
|
- <link rel="stylesheet" href="/nginx-ui/assets/index-6a157cc6.css">
|
|
|
- </head>
|
|
|
- <body>
|
|
|
- <div id="nginx_ui_root"></div>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+ <head>
|
|
|
<script>
|
|
|
- const createDeffer = (hookName) => {
|
|
|
- const d = new Promise((resolve, reject) => {
|
|
|
- window.proxy && (window.proxy[`vite${hookName}`] = resolve)
|
|
|
- })
|
|
|
- return props => d.then(fn => fn(props));
|
|
|
- }
|
|
|
- const bootstrap = createDeffer('bootstrap');
|
|
|
- const mount = createDeffer('mount');
|
|
|
- const unmount = createDeffer('unmount');
|
|
|
- const update = createDeffer('update');
|
|
|
+(function (){
|
|
|
+const global = (0, eval)('window')
|
|
|
+const name = 'nginx-ui'
|
|
|
+
|
|
|
+ const proxy = global.proxy
|
|
|
+ let publicPath = (proxy && proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__) || ''
|
|
|
+ publicPath = publicPath.slice(0, publicPath.length - 1)
|
|
|
+ global.legacyQiankun = global.legacyQiankun || {}
|
|
|
+ global.legacyQiankun[name] = global.legacyQiankun[name] || {}
|
|
|
+ Object.assign(global.legacyQiankun[name], {
|
|
|
+ proxy,
|
|
|
+ publicPath,
|
|
|
+ '__INJECTED_PUBLIC_PATH_BY_QIANKUN__': proxy && proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__,
|
|
|
+ '__POWERED_BY_QIANKUN__': proxy && proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__,
|
|
|
+ })})()
|
|
|
+</script>
|
|
|
+ <meta charset="UTF-8" />
|
|
|
+ <link rel="icon" type="image/svg+xml" href="/nginx-ui/vite.svg" />
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
+ <title>NginxUI</title>
|
|
|
+ <script type="application/javascript" src="/nginx-ui/config.js"></script>
|
|
|
+ <!-- replace by vite-plugin-legacy-qiankun <script type="module" crossorigin src="/nginx-ui/assets/index-C4bOgrFY.js"></script> -->
|
|
|
+ <link rel="modulepreload" crossorigin href="/nginx-ui/cdn/ace-builds-1.23.0.js">
|
|
|
+ <link rel="modulepreload" crossorigin href="/nginx-ui/cdn/react-all-18.2.0.js">
|
|
|
+ <link rel="stylesheet" crossorigin href="/nginx-ui/assets/index-Du21pBjA.css">
|
|
|
+ <!-- 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> -->
|
|
|
+ <!-- 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> -->
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="nginx_ui_root"></div>
|
|
|
+ <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>
|
|
|
+ <script crossorigin id="vite-legacy-polyfill" src="/nginx-ui/assets/polyfills-legacy-onNG-a16.js"></script>
|
|
|
+ <script>
|
|
|
+(function (){
|
|
|
+const global = (0, eval)('window')
|
|
|
+const name = 'nginx-ui'
|
|
|
+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())})()
|
|
|
+</script>
|
|
|
+ <script>
|
|
|
+(function (){
|
|
|
+const global = (0, eval)('window')
|
|
|
+const name = 'nginx-ui'
|
|
|
|
|
|
- ;(global => {
|
|
|
- global.qiankunName = 'nginx-ui';
|
|
|
- global['nginx-ui'] = {
|
|
|
- bootstrap,
|
|
|
- mount,
|
|
|
- unmount,
|
|
|
- update
|
|
|
- };
|
|
|
- })(window);
|
|
|
-</script></body></html>
|
|
|
+ const app = global.legacyQiankun[name]
|
|
|
+ if (!app.proxy) return
|
|
|
+ window[name] = {
|
|
|
+ bootstrap: (...args) => app.dynamicImport.then(() => app.lifecyle.bootstrap(...args)),
|
|
|
+ mount: (...args) => app.dynamicImport.then(() => app.lifecyle.mount(...args)),
|
|
|
+ unmount: (...args) => app.dynamicImport.then(() => app.lifecyle.unmount(...args)),
|
|
|
+ update: (...args) => app.dynamicImport.then(() => app.lifecyle.update(...args)),
|
|
|
+ }})()
|
|
|
+</script></body>
|
|
|
+</html>
|