@nocobase/app 2.1.0-beta.37 → 2.1.0-beta.40
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/dist/client/assets/index-2f950934.js +3343 -0
- package/dist/client/assets/runtime-1dde2b80.js +1 -0
- package/dist/client/assets/{vendor-misc-b987a437.js → vendor-misc-0f74f11a.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/v2/assets/7765-abeeeaed.js +2 -0
- package/dist/client/v2/assets/index-6eee200a.js +1498 -0
- package/dist/client/v2/assets/{runtime-d774d70f.js → runtime-0629701e.js} +1 -1
- package/dist/client/v2/assets/vendor-antd-icons-63769f51.js +2 -0
- package/dist/client/v2/index.html +1 -1
- package/package.json +7 -7
- package/dist/client/assets/7531-36e95bd5.js +0 -1
- package/dist/client/assets/index-a9591d46.js +0 -3308
- package/dist/client/assets/runtime-0e40eef0.js +0 -1
- package/dist/client/v2/assets/5823-183d14b0.js +0 -2
- package/dist/client/v2/assets/7531-6169c833.js +0 -1
- package/dist/client/v2/assets/index-a6485efb.js +0 -1488
- package/dist/client/v2/assets/vendor-antd-icons-99918a41.js +0 -2
- /package/dist/client/assets/{index-a9591d46.js.LICENSE.txt → index-2f950934.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{vendor-misc-b987a437.js.LICENSE.txt → vendor-misc-0f74f11a.js.LICENSE.txt} +0 -0
- /package/dist/client/v2/assets/{5823-5c7b4a6f.css → 7765-5c7b4a6f.css} +0 -0
- /package/dist/client/v2/assets/{5823-183d14b0.js.LICENSE.txt → 7765-abeeeaed.js.LICENSE.txt} +0 -0
- /package/dist/client/v2/assets/{index-a6485efb.js.LICENSE.txt → index-6eee200a.js.LICENSE.txt} +0 -0
- /package/dist/client/v2/assets/{vendor-antd-icons-99918a41.js.LICENSE.txt → vendor-antd-icons-63769f51.js.LICENSE.txt} +0 -0
|
@@ -13,7 +13,7 @@ window['__nocobase_ws_url__'] = window['__nocobase_ws_url__'] || "";
|
|
|
13
13
|
window['__nocobase_ws_path__'] = window['__nocobase_ws_path__'] || "/ws";
|
|
14
14
|
window['__nocobase_app_dev__'] = window['__nocobase_app_dev__'] || false;
|
|
15
15
|
window['__esm_cdn_base_url__'] = window['__esm_cdn_base_url__'] || "https://esm.sh";
|
|
16
|
-
window['__esm_cdn_suffix__'] = window['__esm_cdn_suffix__'] || "";</script><script src="/v2/browser-checker.js?v=1"></script><script type="module" src="/v2/assets/runtime-
|
|
16
|
+
window['__esm_cdn_suffix__'] = window['__esm_cdn_suffix__'] || "";</script><script src="/v2/browser-checker.js?v=1"></script><script type="module" src="/v2/assets/runtime-0629701e.js"></script><script type="module" src="/v2/assets/vendor-antd-ecosystem-de737eca.js"></script><script type="module" src="/v2/assets/vendor-moment-84b317dc.js"></script><script type="module" src="/v2/assets/vendor-lodash-905dd3b8.js"></script><script type="module" src="/v2/assets/vendor-ses-b7bccbcd.js"></script><script type="module" src="/v2/assets/vendor-antd-icons-63769f51.js"></script><script type="module" src="/v2/assets/vendor-antd-f8c3ace1.js"></script><script type="module" src="/v2/assets/7765-abeeeaed.js"></script><script type="module" src="/v2/assets/index-6eee200a.js"></script><link href="/v2/assets/vendor-antd-debce1bd.css" rel="stylesheet"><link href="/v2/assets/7765-5c7b4a6f.css" rel="stylesheet"></head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|
|
19
19
|
</body>
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/app",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/cli-v1": "2.1.0-beta.
|
|
10
|
-
"@nocobase/database": "2.1.0-beta.
|
|
11
|
-
"@nocobase/preset-nocobase": "2.1.0-beta.
|
|
12
|
-
"@nocobase/server": "2.1.0-beta.
|
|
9
|
+
"@nocobase/cli-v1": "2.1.0-beta.40",
|
|
10
|
+
"@nocobase/database": "2.1.0-beta.40",
|
|
11
|
+
"@nocobase/preset-nocobase": "2.1.0-beta.40",
|
|
12
|
+
"@nocobase/server": "2.1.0-beta.40"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@nocobase/client": "2.1.0-beta.
|
|
15
|
+
"@nocobase/client": "2.1.0-beta.40"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
20
20
|
"directory": "packages/core/app"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "36e906138f6305723abbef676a61006058feb5ea"
|
|
23
23
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["7531"],{80566(e,a,t){t.r(a),t.d(a,{default:()=>h});var n=t(74848),r=t(11869),l=t(96540),o=t(79009),u=t(36098),i=t(47767);t(2077);var c=t(92545);let s=e=>{let{children:a}=e,t=(0,r.useFlowEngine)(),o=(0,u.n)(),s=(0,i.useNavigate)(),h=(0,i.useLocation)(),d=(0,i.useParams)(),[m,p]=(0,l.useState)(!1),w=(0,l.useRef)(!1),f=t.context.routeRepository,g=(0,l.useMemo)(()=>"/admin"===(0,c.FY)(h.pathname,o.router.getBasename()),[o,h.pathname]);return((0,l.useEffect)(()=>{w.current=!1},[h.pathname,h.search,h.hash,d.name]),(0,l.useEffect)(()=>{let e=!0;return(async()=>{var a,t,n,r;if(p(!1),!g&&!d.name){e&&p(!0);return}if(!(null==f||null==(a=f.isAccessibleLoaded)?void 0:a.call(f)))try{await (null==f||null==(n=f.ensureAccessibleLoaded)?void 0:n.call(f))}catch(a){e&&p(!0);return}if(!e||w.current)return;if(d.name){let a=null==f||null==(r=f.getRouteBySchemaUid)?void 0:r.call(f,d.name);if((null==a?void 0:a.type)==="page"){let e=(0,c.Yj)({app:o,route:a,location:{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash},preserveLocationState:!0});if("document"===e.navigationMode&&e.runtimePath){w.current=!0,window.location.replace(e.runtimePath);return}}e&&p(!0);return}let l=(0,c.ug)((null==f||null==(t=f.listAccessible)?void 0:t.call(f))||[]);if(!l){e&&p(!0);return}let u=(0,c.Yj)({app:o,route:l});if(!u.runtimePath){e&&p(!0);return}(w.current=!0,"document"===u.navigationMode)?window.location.replace(u.runtimePath):s((0,c.FY)(u.runtimePath,o.router.getBasename()),{replace:!0})})(),()=>{e=!1}},[o,t,g,h.hash,h.pathname,h.search,s,d.name,f]),m)?(0,n.jsx)(n.Fragment,{children:a}):null},h=e=>{let a=(0,r.useFlowEngine)(),t=(0,o.t_Y)(a,{create:!0,props:e,use:o.pXX});if(!t)throw Error("[NocoBase] Failed to create admin-layout-model.");return(0,n.jsx)(s,{children:(0,n.jsx)(r.FlowModelRenderer,{model:t})})}}}]);
|