12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <!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="./config.js"></script>
- <script crossorigin="">import('/nginx-ui/assets/index-91b358e1.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="stylesheet" href="/nginx-ui/assets/index-d604e10f.css">
- </head>
- <body>
- <div id="nginx_ui_root"></div>
-
-
- <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');
- ;(global => {
- global.qiankunName = 'nginx-ui';
- global['nginx-ui'] = {
- bootstrap,
- mount,
- unmount,
- update
- };
- })(window);
- </script></body></html>
|