@nocobase/app 2.1.0-beta.23 → 2.1.0-beta.25
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/{7531-44e119c3.js → 7531-6421c08c.js} +1 -1
- package/dist/client/assets/{index-6dab1e57.js → index-0ddad0c1.js} +101 -101
- package/dist/client/assets/{runtime-53264ccc.js → runtime-cded108b.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/v2/assets/6157-8e763248.js +1 -0
- package/dist/client/v2/assets/{7531-fe28b61d.js → 7531-8bbed383.js} +1 -1
- package/dist/client/v2/assets/{7835-be87c260.js → 7835-e6bc3477.js} +1 -1
- package/dist/client/v2/assets/8289-9faf2c9c.js +2 -0
- package/dist/client/v2/assets/{3990-48026493.js.LICENSE.txt → 8289-9faf2c9c.js.LICENSE.txt} +14 -0
- package/dist/client/v2/assets/{index-d4fe6945.js → index-40cd7568.js} +130 -130
- package/dist/client/v2/assets/{runtime-2c46c8fa.js → runtime-134591aa.js} +1 -1
- package/dist/client/v2/index.html +1 -1
- package/package.json +7 -7
- package/dist/client/v2/assets/3990-48026493.js +0 -2
- package/dist/client/v2/assets/6157-e2f9e9a3.js +0 -1
- /package/dist/client/assets/{index-6dab1e57.js.LICENSE.txt → index-0ddad0c1.js.LICENSE.txt} +0 -0
- /package/dist/client/v2/assets/{3990-5c7b4a6f.css → 8289-5c7b4a6f.css} +0 -0
- /package/dist/client/v2/assets/{index-d4fe6945.js.LICENSE.txt → index-40cd7568.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
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(40532),l=t(96540),o=t(
|
|
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(40532),l=t(96540),o=t(46578),i=t(36098),u=t(47767);t(2077);var c=t(92545);let s=e=>{let{children:a}=e,t=(0,r.useFlowEngine)(),o=(0,i.n)(),s=(0,u.useNavigate)(),h=(0,u.useLocation)(),d=(0,u.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.MM)((null==f||null==(t=f.listAccessible)?void 0:t.call(f))||[]);if(!l){e&&p(!0);return}let i=(0,c.Yj)({app:o,route:l});if(!i.runtimePath){e&&p(!0);return}(w.current=!0,"document"===i.navigationMode)?window.location.replace(i.runtimePath):s((0,c.FY)(i.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})})}}}]);
|