@nocobase/app 1.6.0-alpha.3 → 1.6.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/.umirc.ts +9 -6
- package/client/public/browser-checker.js +10 -0
- package/client/src/.umi-production/core/helmet.ts +1 -1
- package/client/src/.umi-production/core/history.ts +1 -1
- package/client/src/.umi-production/core/historyIntelli.ts +1 -1
- package/client/src/.umi-production/core/polyfill.ts +233 -233
- package/client/src/.umi-production/exports.ts +3 -3
- package/client/src/.umi-production/testBrowser.tsx +1 -1
- package/client/src/.umi-production/tsconfig.json +1 -1
- package/client/src/.umi-production/umi.ts +2 -2
- package/dist/client/4750.667c5051.async.js +69 -0
- package/dist/client/browser-checker.js +10 -0
- package/dist/client/index.html +4 -4
- package/dist/client/index.html.tpl +4 -4
- package/dist/client/npm._at_ant-design.5ba41bf5.async.js +139 -0
- package/dist/client/{npm._at_formily.16deb97f.async.js → npm._at_formily.07fa921d.async.js} +2 -2
- package/dist/client/npm._at_formulajs.0bdd8ac2.async.js +1 -0
- package/dist/client/npm._at_umijs.7f6c4722.async.js +7 -0
- package/dist/client/{npm.antd.aedb4432.async.js → npm.antd.483a9a61.async.js} +96 -96
- package/dist/client/{npm.highlight.js.8a8320c8.async.js → npm.highlight.js.83fe0142.async.js} +1 -1
- package/dist/client/{npm.lodash-es.c06b3dd5.async.js → npm.lodash-es.99877438.async.js} +1 -1
- package/dist/client/{npm.rc-picker.ef8a3e8b.async.js → npm.rc-picker.9e629062.async.js} +1 -1
- package/dist/client/npm.react-router-dom.2109af81.async.js +1 -0
- package/dist/client/p__index.314b4524.async.js +1557 -0
- package/dist/client/p__index.b415ed71.chunk.css +1 -0
- package/dist/client/{umi.4bb47824.js → umi.cb577ad1.js} +11 -11
- package/lib/config/cache.d.ts +1 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/index.js +1 -4
- package/package.json +6 -6
- package/src/index.ts +1 -4
- package/dist/client/5415.e54e63e7.async.js +0 -73
- package/dist/client/npm._at_ant-design.736bcf26.async.js +0 -109
- package/dist/client/npm._at_formulajs.ff63776b.async.js +0 -1
- package/dist/client/npm._at_remix-run.9a0418a9.async.js +0 -2
- package/dist/client/npm.react-router-dom.832efba3.async.js +0 -1
- package/dist/client/p__index.9a8aaa6c.chunk.css +0 -1
- package/dist/client/p__index.c2222913.async.js +0 -1575
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
const basename = window['__nocobase_public_path__'] || '/';
|
|
2
|
+
let currentPath = window.location.pathname;
|
|
3
|
+
if (currentPath === basename.slice(0, -1)) {
|
|
4
|
+
const newUrl = `${window.location.origin}${basename}${window.location.search}${window.location.hash}`;
|
|
5
|
+
window.location.replace(newUrl);
|
|
6
|
+
} else if (!currentPath.startsWith(basename)) {
|
|
7
|
+
let newPath = basename + (currentPath.startsWith('/') ? currentPath.slice(1) : currentPath);
|
|
8
|
+
let newUrl = window.location.origin + newPath + window.location.search + window.location.hash;
|
|
9
|
+
window.location.replace(newUrl);
|
|
10
|
+
}
|
|
1
11
|
showLog = true;
|
|
2
12
|
function log(m) {
|
|
3
13
|
if (window.console && showLog) {
|
package/dist/client/index.html
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head>
|
|
2
2
|
<meta charset="utf-8">
|
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
4
|
-
<meta name="viewport" content="initial-scale=0.
|
|
5
|
-
<link rel="shortcut icon" href="/
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
5
|
+
<link rel="shortcut icon" href="/favicon_no_exist.ico">
|
|
6
6
|
<title>Loading...</title>
|
|
7
7
|
<link rel="stylesheet" href="/global.css">
|
|
8
|
-
<script src="/browser-checker.js"></script>
|
|
9
8
|
<script>
|
|
10
9
|
window['__webpack_public_path__'] = '/';
|
|
11
10
|
window['__nocobase_public_path__'] = '/';
|
|
@@ -15,9 +14,10 @@
|
|
|
15
14
|
window['__nocobase_ws_url__'] = '';
|
|
16
15
|
window['__nocobase_ws_path__'] = '/ws';
|
|
17
16
|
</script>
|
|
17
|
+
<script src="/browser-checker.js?v=1"></script>
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|
|
21
|
-
<script src="/umi.
|
|
21
|
+
<script src="/umi.cb577ad1.js"></script>
|
|
22
22
|
|
|
23
23
|
</body></html>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head>
|
|
2
2
|
<meta charset="utf-8">
|
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
4
|
-
<meta name="viewport" content="initial-scale=0.
|
|
5
|
-
<link rel="shortcut icon" href="{{env.APP_PUBLIC_PATH}}
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
5
|
+
<link rel="shortcut icon" href="{{env.APP_PUBLIC_PATH}}favicon_no_exist.ico">
|
|
6
6
|
<title>Loading...</title>
|
|
7
7
|
<link rel="stylesheet" href="{{env.APP_PUBLIC_PATH}}global.css">
|
|
8
|
-
<script src="{{env.APP_PUBLIC_PATH}}browser-checker.js"></script>
|
|
9
8
|
<script>
|
|
10
9
|
window['__webpack_public_path__'] = '{{env.APP_PUBLIC_PATH}}';
|
|
11
10
|
window['__nocobase_public_path__'] = '{{env.APP_PUBLIC_PATH}}';
|
|
@@ -15,9 +14,10 @@
|
|
|
15
14
|
window['__nocobase_ws_url__'] = '{{env.WS_URL}}';
|
|
16
15
|
window['__nocobase_ws_path__'] = '{{env.WS_PATH}}';
|
|
17
16
|
</script>
|
|
17
|
+
<script src="{{env.APP_PUBLIC_PATH}}browser-checker.js?v=1"></script>
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|
|
21
|
-
<script src="/umi.
|
|
21
|
+
<script src="/umi.cb577ad1.js"></script>
|
|
22
22
|
|
|
23
23
|
</body></html>
|