dsql-admin/dsql-app/.local_dist/server/pages/su/console.js

1 line
9.5 KiB
JavaScript
Raw Normal View History

2024-12-05 07:03:33 +00:00
(()=>{var e={};e.id=866,e.ids=[636,866],e.modules={30671:(e,t)=>{"use strict";Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},509:(e,t,s)=>{"use strict";s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{config:()=>h,default:()=>p,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>d,reportWebVitals:()=>y,routeModule:()=>P,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var i=s(63865),u=s(9455),a=s(30671),l=s(49407),c=s(68268),o=s(21711),n=e([o]);o=(n.then?(await n)():n)[0];let p=(0,a.M)(o,"default"),d=(0,a.M)(o,"getStaticProps"),m=(0,a.M)(o,"getStaticPaths"),x=(0,a.M)(o,"getServerSideProps"),h=(0,a.M)(o,"config"),y=(0,a.M)(o,"reportWebVitals"),f=(0,a.M)(o,"unstable_getStaticProps"),g=(0,a.M)(o,"unstable_getStaticPaths"),q=(0,a.M)(o,"unstable_getStaticParams"),v=(0,a.M)(o,"unstable_getServerProps"),k=(0,a.M)(o,"unstable_getServerSideProps"),P=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/console",pathname:"/su/console",bundlePath:"",filename:""},components:{App:c.default,Document:l.default},userland:o});r()}catch(e){r(e)}})},54254:(e,t,s)=>{"use strict";s.a(e,async(e,r)=>{try{s.d(t,{A:()=>n});var i=s(8732),u=s(82015),a=s.n(u),l=s(10717);s(20008);var c=s(39127),o=e([l,c]);function n({socketDomain:e}){let[t,s]=a().useState(null),[r,u]=a().useState(null),[l,c]=a().useState("");return(0,i.jsxs)(a().Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsx)("h2",{className:"text-2xl m-0",children:"Console"}),(0,i.jsx)("button",{onClick:e=>{t&&t.emit("log","Logging to the console")},children:"Log console"})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-6 w-full items-stretch",children:[(0,i.jsx)("section",{className:"paper bg-slate-900",id:"terminalWrapper",children:(0,i.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,i.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,i.jsx)("h2",{className:"m-0 text-white text-base",children:"Shell"}),(0,i.jsx)("hr",{className:"opacity-20"}),(0,i.jsx)("div",{id:"shell",className:"relative grow z-50 overflow-hidden w-full h-[340px]"})]})})}),(0,i.jsx)("section",{className:"paper bg-slate-500",id:"terminalWrapper",children:(0,i.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,i.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,i.jsx)("h2",{className:"m-0 text-white text-base",children:"Server Log"}),(0,i.jsx)("hr",{className:"opacity-20"}),(0,i.jsx)("div",{id:"terminal",className:"relative grow z-50 overflow-hidden w-full h-[150px]"})]})})})]})]})}[l,c]=o.then?(await o)():o,r()}catch(e){r(e)}})},20008:(e,t,s)=>{"use strict";async function r({socket:e}){let{Terminal:t}=s(86182),{FitAddon:r}=s(91999),i=new r,u=document.getElementById("terminalWrapper"),a=document.getElementById("terminal"),l=Math.round(u.clientWidth/12),c=new t({cols:l,rows:6});c.open(a),i.fit(),e.on("console",e=>{c.write(e)});{let s=new r,i=document.getElementById("shell"),u=new t({cols:l,rows:17});u.open(i),s.fit(),e.on("shell",e=>{u.write(e)}),u.onKey((t,s)=>{e.emit("shell",t.key)})}return c}s.d(t,{A:()=>r})},67105:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4e