HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy465.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(e,o,i,u){var a=o&&o.prototype instanceof s?o:s,l=Object.create(a.prototype);return n(l,"_invoke",function(e,n,o){var i,u,a,s=0,l=o||[],f=!1,v={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,u=0,a=t,v.n=n,c}};function d(e,n){for(u=e,a=n,r=0;!f&&s&&!o&&r<l.length;r++){var o,i=l[r],d=v.p,p=i[2];e>3?(o=p===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=e<2&&d<i[1])?(u=0,v.v=n,v.n=i[1]):d<p&&(o=e<3||i[0]>n||n>p)&&(i[4]=e,i[5]=n,v.n=p,u=0))}if(o||e>1)return c;throw f=!0,n}return function(o,l,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,p),u=l,a=p;(r=u<2?t:a)||!f;){i||(u?u<3?(u>1&&(v.n=-1),d(u,a)):v.n=a:v.v=a);try{if(s=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((r=(f=v.n<0)?a:e.call(n,v))!==c)break}catch(r){i=t,u=1,a=r}finally{s=1}}return{value:r,done:f}}}(e,i,u),!0),l}var c={};function s(){}function l(){}function f(){}r=Object.getPrototypeOf;var v=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),d=f.prototype=s.prototype=Object.create(v);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,n(d,"constructor",f),n(f,"constructor",l),l.displayName="GeneratorFunction",n(f,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,i,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:p}})()}function n(e,t,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}n=function(e,t,r,o){function u(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(u("next",0),u("throw",1),u("return",2))},n(e,t,r,o)}function t(e,n,t,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){return void t(e)}a.done?n(c):Promise.resolve(c).then(r,o)}function r(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var u=e.apply(n,r);function a(e){t(u,o,i,a,c,"next",e)}function c(e){t(u,o,i,a,c,"throw",e)}a(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./index.vue_vue_type_style_index_0_lang-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useStore-legacy12.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./add-host.vue_vue_type_script_setup_true_lang-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./useController-legacy3.js?v=1777008528","./marked.esm-legacy.js?v=1777008528"],function(n,t){"use strict";var o,i,u,a,c,s,l,f,v,d,p,y,h,_,m,g,b,j,k,S,w,x,O;return{setters:[function(e){o=e.w,i=e.k,u=e.gR,a=e.M,c=e.fj,s=e.gS,l=e.e,f=e._,v=e.cZ},function(e){d=e._},function(e){p=e.c,y=e.r,h=e.o,_=e.a8,m=e.j,g=e.k,b=e.q,j=e.x,k=e.p,S=e.e,w=e.y,x=e.G},function(e){O=e.u},null,null,null,null,null,null],execute:function(){var T=O(),G=T.setNodeSSHisSet,N=T.setNodeInfo,H=T.isRefreshNodeList,P=T.sshTerminalVisible,C=function(){var n=r(e().m(function n(t){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o({icon:"warning-filled",title:"提示",content:"即将删除节点SSH,是否继续操作?"});case 1:return e.n=2,i({loading:"正在删除节点,请稍后...",request:u({node_id:t}),message:!0,success:function(e){e.status?(a.success("删除成功"),N.value.ssh_conf={},H.value=!0,G.value=!1,P.value=!1):a.error(e.msg||"删除失败")}});case 2:return e.a(2)}},n)}));return function(e){return n.apply(this,arguments)}}(),E={height:"500px"},F={class:"flex justify-between items-center"},I={class:"pr-[1rem]"},q={key:0},D={key:0},R={key:1},V={class:"h-[44rem] overflow-hidden bg-white dark:bg-[#1D1E1F] mt-[10px]"},L={key:0,class:"terminal-view"},M={key:1,style:{height:"44rem"}},Z=p({__name:"index",setup:function(n){var o=O(),i=o.setNodeInfo,u=o.setNodeSSHisSet,v=o.sshTerminalVisible,p=y();function T(){v.value=!v.value}var G=function(){var n=r(e().m(function n(r){var o,u,v,d,p,y,h;return e().w(function(e){for(;;)switch(e.n){case 0:if(r){e.n=1;break}return e.a(2);case 1:if(o=r.id,u=r.ssh_conf,v=void 0===u?{}:u,d=r.server_ip,console.log(i.value,"setNodeInfo.value"),!c(v.host)){e.n=3;break}return p=a.load("正在获取SSH端口信息..."),e.n=2,s({node_id:o});case 2:y=e.v,(h=y.data).status||a.error(h.msg||"获取SSH端口信息失败"),v.port=h.data.port,null==p||p.close();case 3:l({title:"编辑root账号信息",area:50,compData:{node_id:o,server_ip:d,ssh_conf:v||{}},btn:["保存"],component:function(){return f(function(){return t.import("./ssh-edit-legacy.js?v=1777008528")},void 0,t.meta.url)}});case 4:return e.a(2)}},n)}));return function(e){return n.apply(this,arguments)}}();return h(function(){var e=i.value||{};(e.ssh_conf||{}).host?u.value=!0:G(e)}),_(function(){u.value=!1,v.value=!1}),function(e,n){var t,r=x,o=d;return m(),g("div",E,[b("div",F,[b("span",I,[n[3]||(n[3]=j(" root 密码: ",-1)),k(u)?(m(),g("span",q,"已设置")):(m(),g("span",{key:1,class:"cursor-pointer underline",onClick:n[0]||(n[0]=function(e){return G(k(i))})},"未设置"))]),b("div",null,[k(u)?(m(),g("span",D,[b("span",{class:"cursor-pointer bt-link",onClick:T},"终端"),S(r,{direction:"vertical"})])):w("",!0),b("span",{onClick:n[1]||(n[1]=function(e){return G(k(i))}),class:"cursor-pointer bt-link"},"编辑"),k(u)?(m(),g("span",R,[S(r,{direction:"vertical"}),b("span",{class:"cursor-pointer bt-link",onClick:n[2]||(n[2]=function(e){var n;return k(C)(null===(n=k(i))||void 0===n?void 0:n.id)})},"删除")])):w("",!0)])]),n[4]||(n[4]=b("div",{class:"my-[16px] text-tertiary"},"* 保存root密码用于终端或者节点功能调用",-1)),b("div",V,[k(v)?(m(),g("div",L,[S(o,{ref:k(p),active:!0,id:"nodeTerminal","host-info":(null===(t=k(i))||void 0===t?void 0:t.ssh_conf)||{},class:"h-[43rem] p-[8px]"},null,8,["host-info"])])):(m(),g("div",M))])])}}});n("default",v(Z,[["__scopeId","data-v-eb9fe7dd"]]))}}})}();