This commit is contained in:
Rizky 2024-07-17 00:57:23 +07:00
parent b981e9a520
commit b1fcb09d45
3 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,7 @@ ${p}
}
`:"inset-0 overflow-auto",css`
contain: content;
`),children:(0,un.jsx)(Vy,{api_url:C.site.api_url,entry:Object.values(C.page.root.childs).filter(a=>a).map(a=>a.id),meta:C.page.meta,mode:C.mode,page_id:C.page.id,site_id:C.site.id,db:C.site.db,api:C.site.api,preloaded:a=>{let p=C.route.router?.lookup(a);return!!(p&&C.page.cache[p.id])},comp_load:async a=>{let p=C.comp;if(p.list[a])return p.list[a];try{let f=await(await fetch(C.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[a]})})).json();for(let[d,g]of Object.entries(f))delete p.pending[d],p.list[d]=g,await zl(`comp-${d}`,g)}catch{}return p.list[a]},layout:C.layout.id&&C.layout.root&&C.layout.meta?{id:C.layout.id,meta:C.layout.meta,entry:Object.values(C.layout.root.childs).filter(a=>a).map(a=>a.id)}:void 0,script:{init_local_effect:C.init_local_effect},on_preload:async({urls:a,opt:p})=>{let f=[];if(C.cache.urls)for(let d of a)C.cache.urls.has(d)||(f.push(d),C.cache.urls.add(d));if(f.length>0){let d=await Gy(f);if(p?.on_load&&p.on_load(d,t3),Array.isArray(d))for(let g of d){let w={id:g.id,url:g.url,root:g.root,meta:{}};await ui(g.root.childs),Aa(w.meta,g.root),C.page.cache[w.id]=w}}}})})})})},t3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Kd(r,t)},Kd=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Kd(n.content,t);for(let n of e.childs)Kd(n,t)}};var j1=P(G());(async()=>{ng();let e=document.getElementById("root");if(e){await tg(!1);let t={root:(0,z1.createRoot)(e)};q0(),le.navigateOverride=n=>(n&&n.startsWith("/")&&Qd()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,j1.jsx)(M1,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0"),import("./font-ULAYMU2A.js")}})();
`),children:(0,un.jsx)(Vy,{api_url:C.site.api_url,entry:Object.values(C.page.root.childs).filter(a=>a).map(a=>a.id),meta:C.page.meta,mode:C.mode,page_id:C.page.id,site_id:C.site.id,db:C.site.db,api:C.site.api,preloaded:a=>{let p=C.route.router?.lookup(a);return!!(p&&C.page.cache[p.id])},comp_load:async a=>{let p=C.comp;if(p.list[a])return p.list[a];try{let f=await(await fetch(C.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[a]})})).json();for(let[d,g]of Object.entries(f))delete p.pending[d],p.list[d]=g,await zl(`comp-${d}`,g)}catch{}return p.list[a]},layout:C.layout.id&&C.layout.root&&C.layout.meta?{id:C.layout.id,meta:C.layout.meta,entry:Object.values(C.layout.root.childs).filter(a=>a).map(a=>a.id)}:void 0,script:{init_local_effect:C.init_local_effect},on_preload:async({urls:a,opt:p})=>{let f=[];if(C.cache.urls)for(let d of a)C.cache.urls.has(d)||(f.push(d),C.cache.urls.add(d));if(f.length>0){let d=await Gy(f);if(p?.on_load&&p.on_load(d,t3),Array.isArray(d))for(let g of d){let w={id:g.id,url:g.url,root:g.root,meta:{}};await ui(g.root.childs),Aa(w.meta,g.root),C.page.cache[w.id]=w}}}})})})})},t3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Kd(r,t)},Kd=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Kd(n.content,t);for(let n of e.childs)Kd(n,t)}};var j1=P(G());(async()=>{import("./font-ULAYMU2A.js"),ng();let e=document.getElementById("root");if(e){await tg(!1);let t={root:(0,z1.createRoot)(e)};q0(),le.navigateOverride=n=>(n&&n.startsWith("/")&&Qd()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,j1.jsx)(M1,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})();
/*! Bundled license information:
react/cjs/react.production.min.js:

View File

@ -15,6 +15,7 @@ export const prodIndex = (
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="/prod/_/index.css">
<link rel="stylesheet" href="/prod/_/main.css">
${this.head.join("\n")}
</head>

View File

@ -5,6 +5,7 @@ import { Root, isPreview } from "./root";
import { w } from "./w";
(async () => {
import("./font");
initBaseConfig();
const div = document.getElementById("root");
if (div) {
@ -35,6 +36,5 @@ import { w } from "./w";
document.body.classList.remove("opacity-0");
}
import("./font");
}
})();