mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-10 19:47:39 +02:00
2 lines
8.4 KiB
JavaScript
2 lines
8.4 KiB
JavaScript
(function(){System.register([`./rolldown-runtime-legacy.js?v=1787646744133`,`./vendor-utils-legacy.js?v=1787646744133`,`./vendor-vue-legacy.js?v=1787646744133`,`./vendor-naive-legacy.js?v=1787646744133`,`./app-legacy.js?v=1787646744133`,`./app-components-legacy.js?v=1787646744133`,`./app-shared-legacy.js?v=1787646744133`,`./app-base-legacy.js?v=1787646744133`],function(e,t){var n,r,i,a,o,s,c,l,u,d,f,ee,p,m,h,g,_,v,y,b,x,S,C,w,T,E,te,ne,re,D,ie,ae,O,k,A,j,oe,M,se,N,P,F,I,L,R,z,B,V,H,U,W,G,ce,K,q,J,Y,le,X,ue,de,fe,pe,Z,me;function he(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Q(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){he(a,r,i,o,s,`next`,e)}function s(e){he(a,r,i,o,s,`throw`,e)}o(void 0)})}}function $(e,t){var n,r,i,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype),s=Object.defineProperty;return s(o,`next`,{value:c(0)}),s(o,`throw`,{value:c(1)}),s(o,`return`,{value:c(2)}),typeof Symbol==`function`&&s(o,Symbol.iterator,{value:function(){return this}}),o;function c(e){return function(t){return l([e,t])}}function l(s){if(n)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=s[0]&2?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if((i=a.trys,!(i=i.length>0&&i[i.length-1]))&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(s[0]===6&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function ge(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!P(e)}return e({n:void 0,t:void 0}),{setters:[function(e){l=e.r},function(e){s=e.mn,b=e.bn,x=e.xn,S=e.Sn,C=e.Cn,w=e.En,T=e.Dn,E=e.kn,e.fr,e.Pn,e.Ir,A=e.nn,se=e.hr,P=e.In,R=e.Hn,z=e.Jn,B=e.vr,V=e.br,H=e.Xn,U=e.$n,W=e.Cr,K=e.ei,q=e.Or,pe=e.or,Z=e.cr,me=e.lr},function(e){G=e.p,J=e.l},function(e){n=e.gt,r=e.B,a=e.Et,o=e.L,c=e.v},function(e){m=e.zf,te=e.hd,ne=e.vd,re=e.Td,D=e.i,M=e.yp,N=e.bp,Y=e.Xt,le=e.dd,X=e.Oa,ue=e.ha},function(e){g=e.Qi,_=e.Yi,v=e.Zi},function(e){de=e.Sf,fe=e.Cf},function(e){h=e.u,y=e.l}],execute:function(){u=document.createElement(`style`),u.textContent=`.install[data-v-bd159bda]:before{content:"";--un-bg-opacity:1;background-color:rgba(32,165,58,var(--un-bg-opacity)) ;border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.cmd[data-v-bd159bda]{white-space:pre-line;--un-bg-opacity:1;background-color:rgba(66,66,81,var(--un-bg-opacity)) ;--un-text-opacity:1;height:200px;color:rgba(255,255,255,var(--un-text-opacity)) ;margin-top:10px;margin-bottom:10px;padding:5px;line-height:22px;overflow:auto}[data-v-f3dc0026] .bt-log .hljs{padding:5px 0 5px 5px!important}
|
|
/*$vite$:1*/`,document.head.appendChild(u),A(),i=E({name:`EmptyBox`,setup:function(e,t){var i=t.slots,c=D(),l=J().t,u=function(){de()};return function(){var e,t;return T(s,null,[c.taskCount===0?T(a,{class:`pt-80px`,size:`huge`,description:l(`Layout.MessageBox.index_1`)},null):T(s,null,[T(o,{class:`justify-between! flex-nowrap!`},{default:function(){return[T(`span`,null,[l(`Layout.MessageBox.index_2`)]),T(n,{text:!0,type:`primary`,onClick:u},ge(t=l(`Public.Status.Restart`))?t:{default:function(){return[t]}})]}}),T(r,{class:`mt-12px! mb-16px!`},null),(e=i.default)==null?void 0:e.call(i)])])}}}),A(),f={class:`h-460px overflow-auto`},ee={class:`install`},p={key:0,class:`cmd`},k=E({__name:`index`,setup:function(e,t){var r=t.expose,a=D(),c=Y(),l=le(),u=V(``),d=fe(`/sock_shell`,{onMessage:function(e,t){var n=t.data;N(n)&&(u.value+=n)}}),m=d.send,h=d.close,g=function(){m(`tail -n 100 -f /tmp/panelExec.log`)},_=function(e){return Q(function(){return $(this,function(t){switch(t.label){case 0:return h(),[4,te({id:e})];case 1:return t.sent(),[4,l.getList()];case 2:return t.sent(),[2]}})})()},v=function(){if(l.taskList.length){var e=l.taskList[0],t=e.type,n=e.status;t===`execshell`&&(n===`-1`?(u.value=``,g()):setTimeout(function(){return Q(function(){return $(this,function(e){switch(e.label){case 0:return[4,l.getList()];case 1:return e.sent(),v(),[2]}})})()},2e3))}};pe(function(){return a.taskCount},function(e){e&&v(),c.getMessageCount()}),R(function(){h()});var y=function(){return Q(function(){return $(this,function(e){switch(e.label){case 0:return[4,l.getList()];case 1:return e.sent(),a.taskCount===0?[2]:(v(),l.onRepetion(),[2])}})})()};return y(),r({init:y}),function(e,t){var r=n,a=o,c=U(`scroll-bottom`);return z(),x(q(i),null,{default:Z(function(){return[b(`div`,f,[(z(!0),C(s,null,H(q(l).taskList,function(n){return z(),C(`div`,{key:n.id},[n.type===`execshell`?(z(),C(s,{key:0},[T(a,{class:`justify-between! mb-8px`},{default:Z(function(){return[b(`span`,ee,K(n.name),1),b(`div`,null,[w(K(n.status===`0`?`waiting`:e.$t(`Soft.index_40`))+` `,1),t[0]||(t[0]=b(`img`,{src:`data:image/gif;base64,R0lGODlhDgACAIAAAHNzcwAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFDgABACwAAAAAAgACAAACAoRRACH5BAUOAAEALAQAAAACAAIAAAIChFEAIfkEBQ4AAQAsCAAAAAIAAgAAAgKEUQAh+QQJDgABACwAAAAADgACAAACBoyPBpu9BQA7`},null,-1)),t[1]||(t[1]=b(`span`,{class:`px-5px`},`|`,-1)),T(r,{type:`primary`,text:``,onClick:function(e){return _(n.id)}},{default:Z(function(){return[w(K(e.$t(`Public.Btn.Del`)),1)]}),_:1},8,[`onClick`])])]}),_:2},1024),n.status===`-1`?me((z(),C(`pre`,p,[w(K(q(u)),1)])),[[c]]):S(``,!0)],64)):S(``,!0)])}),128))])]}),_:1})}}}),ce=m(k,[[`__scopeId`,`data-v-bd159bda`]]),A(),O=E({__name:`index`,setup:function(e,t){var n=t.expose,r=Y(),i=G(r),a=i.loading,o=i.table,s=i.columns,c=i.search,l=function(){r.getMessageCount()};return n({init:l}),function(e,t){var n=_,r=v,i=g;return z(),x(i,null,{table:Z(function(){return[T(n,{loading:q(a),data:q(o).data,columns:q(s)},null,8,[`loading`,`data`,`columns`])]}),pageRight:Z(function(){return[T(r,{page:q(c).p,"onUpdate:page":t[0]||(t[0]=function(e){return q(c).p=e}),"page-size":q(c).limit,"onUpdate:pageSize":t[1]||(t[1]=function(e){return q(c).limit=e}),"item-count":q(o).total,"page-slot":5,"show-size-picker":!1,onRefresh:l},null,8,[`page`,`page-size`,`item-count`])]}),_:1})}}}),I=O,A(),ae=E({__name:`index`,setup:function(e,t){var n=t.expose,r=V(`None`),i=X(),a=i.loading,o=i.setLoading,s=function(){return Q(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),o(!0),[4,ne()];case 1:return e=t.sent().message,M(e)&&(r.value=N(e.result)?e.result:`None`),[3,3];case 2:return o(!1),[7];case 3:return[2]}})})()};return s(),n({init:s}),function(e,t){var n=h,i=c;return z(),x(i,{class:`h-full`,show:q(a)},{default:Z(function(){return[T(n,{log:q(r)},null,8,[`log`])]}),_:1},8,[`show`])}}}),L=m(ae,[[`__scopeId`,`data-v-f3dc0026`]]),A(),d={class:`h-550px`},ie=E({__name:`index`,setup:function(e,t){var n=t.expose,r=J().t,i=D(),a=Y(),o=V(`task`),s=B([{key:`task`,label:function(){return T(`span`,null,[r(`Layout.MessageBox.index_3`),w(` (`),i.taskCount,w(`)`)])},component:W(ce)},{key:`message`,label:function(){return T(`span`,null,[r(`Layout.MessageBox.index_4`),w(` (`),a.listConut,w(`)`)])},component:W(I)},{key:`log`,label:r(`Layout.MessageBox.index_5`),component:W(L)}]);return function(){a.getMessageCount()}(),n({onClose:function(){ue()}}),function(e,t){var n=y;return z(),C(`div`,d,[T(n,{value:q(o),"onUpdate:value":t[0]||(t[0]=function(e){return se(o)?o.value=e:null}),ref:`tabsRef`,data:q(s)},null,8,[`value`,`data`])])}}}),e(`n`,l({default:function(){return F}})),F=ie,A(),oe=E({__name:`install-log`,props:{id:{}},setup:function(e,t){var n=t.expose,r=e,i=V(`None`),a=X(),o=a.loading,s=a.setLoading,c=function(){return Q(function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),s(!0),[4,re({path:`/www/server/panel/logs/installed/task_`.concat(r.id,`.log`)})];case 1:return e=t.sent().message,M(e)&&(i.value=e.data),[3,4];case 2:return t.sent(),i.value=`None`,[3,4];case 3:return s(!1),[7];case 4:return[2]}})})()};return c(),n({init:c}),function(e,t){var n=h;return z(),x(n,{log:q(i),loading:q(o)},null,8,[`log`,`loading`])}}}),e(`t`,l({default:function(){return j}})),j=oe}}})})(); |