@dao42/d42paas-front 0.7.10 → 0.7.11
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/DaoPaaS.es.js +2 -2
- package/dist/DaoPaaS.umd.js +1 -1
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -44090,9 +44090,9 @@ const CmdKey = () => {
|
|
|
44090
44090
|
(_b2 = (_a2 = useOT.getState()) == null ? void 0 : _a2.socket) == null ? void 0 : _b2.emit("active");
|
|
44091
44091
|
}
|
|
44092
44092
|
}, {
|
|
44093
|
-
id: "
|
|
44093
|
+
id: "containerStop",
|
|
44094
44094
|
title: "\u505C\u6B62\u5BB9\u5668",
|
|
44095
|
-
hotkey: "
|
|
44095
|
+
hotkey: "cs",
|
|
44096
44096
|
mdIcon: "input",
|
|
44097
44097
|
handler: () => {
|
|
44098
44098
|
var _a2, _b2;
|
package/dist/DaoPaaS.umd.js
CHANGED
|
@@ -856,7 +856,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
856
856
|
<slot name="footer"> ${ant} </slot>
|
|
857
857
|
</div>
|
|
858
858
|
</div>
|
|
859
|
-
`}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){const i=e.handler(e);(i==null?void 0:i.keepOpen)||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;((t=e.target)===null||t===void 0?void 0:t.classList.contains("modal"))&&this.close()}};Wr.styles=[lnt],yo([No({type:String})],Wr.prototype,"placeholder",void 0),yo([No({type:Boolean})],Wr.prototype,"disableHotkeys",void 0),yo([No({type:Boolean})],Wr.prototype,"hideBreadcrumbs",void 0),yo([No()],Wr.prototype,"openHotkey",void 0),yo([No()],Wr.prototype,"navigationUpHotkey",void 0),yo([No()],Wr.prototype,"navigationDownHotkey",void 0),yo([No()],Wr.prototype,"closeHotkey",void 0),yo([No()],Wr.prototype,"goBackHotkey",void 0),yo([No()],Wr.prototype,"selectHotkey",void 0),yo([No({type:Boolean})],Wr.prototype,"hotKeysJoinedView",void 0),yo([No({type:Boolean})],Wr.prototype,"noAutoLoadMdIcons",void 0),yo([No({type:Array,hasChanged(){return!0}})],Wr.prototype,"data",void 0),yo([Fp()],Wr.prototype,"visible",void 0),yo([Fp()],Wr.prototype,"_bump",void 0),yo([Fp()],Wr.prototype,"_actionMatches",void 0),yo([Fp()],Wr.prototype,"_search",void 0),yo([Fp()],Wr.prototype,"_currentRoot",void 0),yo([Fp()],Wr.prototype,"_flatData",void 0),yo([Fp()],Wr.prototype,"breadcrumbs",null),yo([Fp()],Wr.prototype,"_selected",void 0),Wr=yo([ON("ninja-keys")],Wr);const cnt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Yr.getState())==null?void 0:n.socket)==null||e.emit("clearCache")},unt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Yr.getState())==null?void 0:n.socket)==null||e.emit("adminClearCache")},Hue=Jl(n=>({showGUI:!1,setShowGUI:e=>n(()=>({showGUI:e}))}));var $N;(function(n){n.editor="\u7F16\u8F91\u5668",n.file="\u6587\u4EF6",n.terminal="\u7EC8\u7AEF",n.console="\u8FD0\u884C\u6846",n.media="\u5F71\u97F3"})($N||($N={}));var Vue={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zue=xe.createContext&&xe.createContext(Vue),Bp=globalThis&&globalThis.__assign||function(){return Bp=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Bp.apply(this,arguments)},dnt=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Uue(n){return n&&n.map(function(e,t){return xe.createElement(e.tag,Bp({key:t},e.attr),Uue(e.child))})}function hnt(n){return function(e){return xe.createElement(fnt,Bp({attr:Bp({},n.attr)},e),Uue(n.child))}}function fnt(n){var e=function(t){var i=n.attr,r=n.size,o=n.title,s=dnt(n,["attr","size","title"]),a=r||t.size||"1em",l;return t.className&&(l=t.className),n.className&&(l=(l?l+" ":"")+n.className),xe.createElement("svg",Bp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:l,style:Bp(Bp({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&xe.createElement("title",null,o),n.children)};return zue!==void 0?xe.createElement(zue.Consumer,null,function(t){return e(t)}):e(Vue)}function gnt(n){return hnt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 5.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(n)}const pnt=({drawerOpen:n,setDrawerOpen:e,replayList:t})=>{const[i,r]=O.exports.useState("");return O.exports.useEffect(()=>{},[t]),dt(qx,{size:"lg",placement:"right",open:n,onClose:()=>e(!1),children:[dt(qx.Header,{children:[ne(qx.Title,{children:"\u56DE\u653E\u5217\u8868"}),ne(qx.Actions,{children:dt(hse,{children:[ne(hse.Addon,{children:ne(gnt,{size:"1.5em"})}),ne(Yqe,{onChange:o=>{r(o)}})]})})]}),ne(qx.Body,{children:t?ne("div",{children:ne("ul",{role:"list",className:"marker:text-sky-400 list-disc pl-5 space-y-3 text-gray-400",children:i?t.filter(o=>sa.getState().userList.find(s=>s.uuid===o.userInfo.uuid).username.indexOf(i)>=0).map((o,s)=>{var a,l;return dt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),N9({userId:o.userInfo.uuid,timestamp:o.timestamp})},children:[$N[o.event],ne("span",{className:"mx-4",style:{color:(a=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:a.color},children:(l=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:l.username}),dt("span",{children:["\u3010",T9(Number(o.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},s)}):t.map((o,s)=>{var a,l;return dt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),N9({userId:o.userInfo.uuid,timestamp:o.timestamp})},children:[$N[o.event],ne("span",{className:"mx-4",style:{color:(a=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:a.color},children:(l=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:l.username}),dt("span",{children:["\u3010",T9(Number(o.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},s)})})}):ne(jje.Paragraph,{style:{marginTop:30}})})]})},mnt=()=>{const n=O.exports.useRef(null),e=[{id:"replay",title:"\u56DE\u653E",hotkey:"r",mdIcon:"replay",handler:()=>{l()}},{id:"active",title:"\u6FC0\u6D3B\u5BB9\u5668",hotkey:"a",mdIcon:"input",handler:()=>{var c,u;(u=(c=Yr.getState())==null?void 0:c.socket)==null||u.emit("active")}},{id:"
|
|
859
|
+
`}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){const i=e.handler(e);(i==null?void 0:i.keepOpen)||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;((t=e.target)===null||t===void 0?void 0:t.classList.contains("modal"))&&this.close()}};Wr.styles=[lnt],yo([No({type:String})],Wr.prototype,"placeholder",void 0),yo([No({type:Boolean})],Wr.prototype,"disableHotkeys",void 0),yo([No({type:Boolean})],Wr.prototype,"hideBreadcrumbs",void 0),yo([No()],Wr.prototype,"openHotkey",void 0),yo([No()],Wr.prototype,"navigationUpHotkey",void 0),yo([No()],Wr.prototype,"navigationDownHotkey",void 0),yo([No()],Wr.prototype,"closeHotkey",void 0),yo([No()],Wr.prototype,"goBackHotkey",void 0),yo([No()],Wr.prototype,"selectHotkey",void 0),yo([No({type:Boolean})],Wr.prototype,"hotKeysJoinedView",void 0),yo([No({type:Boolean})],Wr.prototype,"noAutoLoadMdIcons",void 0),yo([No({type:Array,hasChanged(){return!0}})],Wr.prototype,"data",void 0),yo([Fp()],Wr.prototype,"visible",void 0),yo([Fp()],Wr.prototype,"_bump",void 0),yo([Fp()],Wr.prototype,"_actionMatches",void 0),yo([Fp()],Wr.prototype,"_search",void 0),yo([Fp()],Wr.prototype,"_currentRoot",void 0),yo([Fp()],Wr.prototype,"_flatData",void 0),yo([Fp()],Wr.prototype,"breadcrumbs",null),yo([Fp()],Wr.prototype,"_selected",void 0),Wr=yo([ON("ninja-keys")],Wr);const cnt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Yr.getState())==null?void 0:n.socket)==null||e.emit("clearCache")},unt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Yr.getState())==null?void 0:n.socket)==null||e.emit("adminClearCache")},Hue=Jl(n=>({showGUI:!1,setShowGUI:e=>n(()=>({showGUI:e}))}));var $N;(function(n){n.editor="\u7F16\u8F91\u5668",n.file="\u6587\u4EF6",n.terminal="\u7EC8\u7AEF",n.console="\u8FD0\u884C\u6846",n.media="\u5F71\u97F3"})($N||($N={}));var Vue={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zue=xe.createContext&&xe.createContext(Vue),Bp=globalThis&&globalThis.__assign||function(){return Bp=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Bp.apply(this,arguments)},dnt=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Uue(n){return n&&n.map(function(e,t){return xe.createElement(e.tag,Bp({key:t},e.attr),Uue(e.child))})}function hnt(n){return function(e){return xe.createElement(fnt,Bp({attr:Bp({},n.attr)},e),Uue(n.child))}}function fnt(n){var e=function(t){var i=n.attr,r=n.size,o=n.title,s=dnt(n,["attr","size","title"]),a=r||t.size||"1em",l;return t.className&&(l=t.className),n.className&&(l=(l?l+" ":"")+n.className),xe.createElement("svg",Bp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:l,style:Bp(Bp({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&xe.createElement("title",null,o),n.children)};return zue!==void 0?xe.createElement(zue.Consumer,null,function(t){return e(t)}):e(Vue)}function gnt(n){return hnt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 5.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(n)}const pnt=({drawerOpen:n,setDrawerOpen:e,replayList:t})=>{const[i,r]=O.exports.useState("");return O.exports.useEffect(()=>{},[t]),dt(qx,{size:"lg",placement:"right",open:n,onClose:()=>e(!1),children:[dt(qx.Header,{children:[ne(qx.Title,{children:"\u56DE\u653E\u5217\u8868"}),ne(qx.Actions,{children:dt(hse,{children:[ne(hse.Addon,{children:ne(gnt,{size:"1.5em"})}),ne(Yqe,{onChange:o=>{r(o)}})]})})]}),ne(qx.Body,{children:t?ne("div",{children:ne("ul",{role:"list",className:"marker:text-sky-400 list-disc pl-5 space-y-3 text-gray-400",children:i?t.filter(o=>sa.getState().userList.find(s=>s.uuid===o.userInfo.uuid).username.indexOf(i)>=0).map((o,s)=>{var a,l;return dt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),N9({userId:o.userInfo.uuid,timestamp:o.timestamp})},children:[$N[o.event],ne("span",{className:"mx-4",style:{color:(a=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:a.color},children:(l=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:l.username}),dt("span",{children:["\u3010",T9(Number(o.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},s)}):t.map((o,s)=>{var a,l;return dt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),N9({userId:o.userInfo.uuid,timestamp:o.timestamp})},children:[$N[o.event],ne("span",{className:"mx-4",style:{color:(a=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:a.color},children:(l=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:l.username}),dt("span",{children:["\u3010",T9(Number(o.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},s)})})}):ne(jje.Paragraph,{style:{marginTop:30}})})]})},mnt=()=>{const n=O.exports.useRef(null),e=[{id:"replay",title:"\u56DE\u653E",hotkey:"r",mdIcon:"replay",handler:()=>{l()}},{id:"active",title:"\u6FC0\u6D3B\u5BB9\u5668",hotkey:"a",mdIcon:"input",handler:()=>{var c,u;(u=(c=Yr.getState())==null?void 0:c.socket)==null||u.emit("active")}},{id:"containerStop",title:"\u505C\u6B62\u5BB9\u5668",hotkey:"cs",mdIcon:"input",handler:()=>{var c,u;prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&((u=(c=Yr.getState())==null?void 0:c.socket)==null||u.emit("stop"))}},{id:"clearCache",title:"\u6E05\u9664\u7F13\u5B58",hotkey:"c",mdIcon:"autorenew",handler:()=>{cnt()}},{id:"admClearCache",title:"\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",hotkey:"k",mdIcon:"admin_panel_settings",handler:()=>{prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&unt()}},{id:"GUI",title:"GUI",hotkey:"g",mdIcon:"build_circle",handler:()=>{const{showGUI:c,setShowGUI:u}=Hue.getState();u(!c)}},{id:"DOC",title:"\u6587\u6863",mdIcon:"desktop_windows",children:[{id:"tsdoc",title:"TS\u6587\u6863",hotkey:"t",mdIcon:"highlight",handler:()=>{window.open("https://develop.1024paas.com/tsdoc")}},{id:"storybook",title:"Storybook",hotkey:"s",mdIcon:"description",handler:()=>{window.open("https://develop.1024paas.com/storybook")}}]}],[t,i]=O.exports.useState(!1),[r,o]=O.exports.useState(null),[s,a]=O.exports.useState(e);O.exports.useEffect(()=>{console.log("leva init"),n.current&&(n.current.data=s)},[]),O.exports.useEffect(()=>{t||n.current.close()},[t]);const l=async c=>{o(await Uee()),i(!0)};return dt(iUe,{theme:"dark",children:[ne("ninja-keys",{ref:n,className:"dark"}),ne(pnt,{drawerOpen:t,setDrawerOpen:i,replayList:r})]})},_nt=()=>{const{socket:n}=Yr.getState(),e=Hue(i=>i.showGUI),t=(i,r)=>{const o=new Set(aE.getState().ignoreReplayers);r?o.add(i):o.delete(i),aE.getState().setIgnoreReplayer(Array.from(o))};return Dtt({syncCursor:{label:"\u5149\u6807\u540C\u6B65",value:Yt.getState().globalData.syncCursor,onChange:i=>{Yt.getState().setGlobalData({syncCursor:i}),n==null||n.emit("globalData",{syncCursor:i})},transient:!1},\u5C4F\u853D\u7EC4\u4EF6:Yce({Editor:{value:!1,onChange:i=>{t("editor",i)},transient:!1},Terminal:{value:!1,onChange:i=>{t("terminal",i)},transient:!1},File:{value:!1,onChange:i=>{console.log(i),t("file",i)},transient:!1}})}),dt(Qr,{children:[ne(tue,{hidden:!e}),ne(Itt,{}),ne(mnt,{})]})},vnt=Np(async()=>(await Promise.resolve().then(function(){return jit})).FileTree),bnt=Np(async()=>(await Promise.resolve().then(function(){return Lwe})).Editor),ynt=Np(async()=>(await Promise.resolve().then(function(){return DNt})).default),Cnt=Np(async()=>(await Promise.resolve().then(function(){return NNt})).default),wnt=Np(async()=>(await Promise.resolve().then(function(){return ANt})).default),Snt=Np(async()=>await Promise.resolve().then(function(){return c2t}));window.MonacoEnvironment={getWorkerUrl(n,e){return e==="json"?"/assets/json.worker.bundle.js":e==="css"?"/assets/css.worker.bundle.js":e==="html"?"/assets/html.worker.bundle.js":e==="typescript"||e==="javascript"?"/assets/ts.worker.bundle.js":`data:text/javascript;charset=utf-8,${encodeURIComponent(`
|
|
860
860
|
importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class xnt{constructor({mode:e,ticket:t,playgroundId:i,userId:r,tenantId:o,username:s,components:a,env:l="develop",serviceWorkerOrigin:c}){Qi(this,"shellDOM");Qi(this,"editorDOM");Qi(this,"pageDOM");Qi(this,"storeProps");Qi(this,"ticket");Qi(this,"userId");Qi(this,"tenantId");Qi(this,"username");Qi(this,"userInfo",{});Qi(this,"env");Qi(this,"components");Qi(this,"mode");Qi(this,"playgroundId");Qi(this,"serviceWorkerOrigin");this.mode=e,this.ticket=t,this.playgroundId=i,this.userId=r,this.tenantId=o,this.username=s||"",this.env=l,this.components=a,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",i),this.init()}get otstore(){return Yt.getState()}get socketIO(){return Yr.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return aE.getState().ignoreReplayers}get userList(){return sa.getState().userList}async init(){if(this.mode==="tsdoc")return;const{setSocket:e}=Yr.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=Mu.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId},a=await(await fetch(`https://${this.env}.1024paas.com/jssdk/ticket`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:this.ticket})})).json();if(e(new iRe(ot(Te({},o),{ioPath:`wss://${a.data}`}))),!o.userId)throw"\u7F3A\u5C11userId";if(!o.playgroundId)throw"\u7F3A\u5C11playgroundId";if(!o.ticket)throw"\u7F3A\u5C11ticket";i(ot(Te({},r),{uuid:o.userId,userId:o.userId})),Xqe(ot(Te(Te({},this.userInfo),o),{io:Yr.getState().socket,callback:()=>{this.components&&this.mapRender(this.components)}})),this.components&&this.mapRender(this.components),window.onerror=l=>{/dError/.test(l)&&Y_.message({type:"error",content:l.replace("Uncaught dError:",""),placement:"bottomEnd"})},fl.exports.render(ne(_nt,{}),document.querySelector(".init-class"))}clearIDB(e){indexedDB.deleteDatabase("daopaas").onsuccess=()=>{e&&e()}}replay(e){N9({userId:e.userInfo.uuid,timestamp:e.timestamp})}setIgnoreReplayers(e){aE.getState().setIgnoreReplayer(e)}activePlayground(){var e;(e=Yr.getState().socket)==null||e.emit("active")}runPlayground(){var e;(e=Yr.getState().socket)==null||e.emit("run")}stopPlayground(){var e;(e=Yr.getState().socket)==null||e.emit("stop")}onUploadFile(e){var t;(t=Yr.getState().socket)==null||t.emit("upload",e)}switchLspServer(e){this.otstore.setGlobalData({useLsp:!this.otstore.globalData.useLsp})}record(e){const{socket:t}=Yr.getState();if(e==="undefined"){this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e});return}this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e})}on(e,t){switch(e){case"message":t();break;case"error":t();break;default:console.log("\u4F20\u53C2\u9519\u8BEF")}}mapRender(e){e==null||e.forEach(({container:t,props:i,item:r},o)=>{switch(r){case"Tree":this.Tree({container:t,props:i});break;case"Editor":this.Editor({container:t,props:ot(Te({},i),{serviceWorkerOrigin:this.serviceWorkerOrigin})});break;case"Console":this.Console({container:t,props:i});break;case"Browser":this.Browser({container:t,props:i});break;case"Shell":this.Shell({container:t,props:i});break}})}Page({container:e,props:t}){this.storeProps=t,this.pageDOM=e?fy(e):this.pageDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(Snt,{})}),this.pageDOM)}Editor({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(bnt,ot(Te({},t),{serviceWorkerOrigin:this.serviceWorkerOrigin}))}),this.editorDOM)}Shell({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(wnt,Te({},t))}),this.editorDOM)}Tree({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(vnt,Te({},t))}),this.editorDOM)}Console({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(ynt,Te({},t))}),this.editorDOM)}Browser({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(Cnt,Te({},t))}),this.editorDOM)}}function fy(n){return/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(n))?n:document.querySelector(n)}var xl=globalThis&&globalThis.__assign||function(){return xl=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},xl.apply(this,arguments)},$p=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(function(t){return!!t}).join(" ")},Ent=function(n){var e=xl({renderItemTitle:function(t){var i=t.title,r=t.context,o=t.info;if(!o.isSearching||!r.isSearchMatching)return xe.createElement(xe.Fragment,null,i);var s=i.toLowerCase().indexOf(o.search.toLowerCase());return xe.createElement(xe.Fragment,null,s>0&&xe.createElement("span",null,i.slice(0,s)),xe.createElement("span",{className:"rct-tree-item-search-highlight"},i.slice(s,s+o.search.length)),s+o.search.length<i.length&&xe.createElement("span",null,i.slice(s+o.search.length,i.length)))},renderItemArrow:function(t){var i=t.item,r=t.context;return xe.createElement("div",xl({className:$p(i.hasChildren&&"rct-tree-item-arrow-hasChildren","rct-tree-item-arrow")},r.arrowProps),i.hasChildren&&(r.isExpanded?xe.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},xe.createElement("g",null,xe.createElement("g",null,xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M12,5c-0.28,0-0.53,0.11-0.71,0.29L8,8.59L4.71,5.29C4.53,5.11,4.28,5,4,5
|
|
861
861
|
C3.45,5,3,5.45,3,6c0,0.28,0.11,0.53,0.29,0.71l4,4C7.47,10.89,7.72,11,8,11s0.53-0.11,0.71-0.29l4-4C12.89,6.53,13,6.28,13,6
|
|
862
862
|
C13,5.45,12.55,5,12,5z`,className:"rct-tree-item-arrow-path"})))):xe.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},xe.createElement("g",null,xe.createElement("g",null,xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M10.71,7.29l-4-4C6.53,3.11,6.28,3,6,3C5.45,3,5,3.45,5,4
|