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/shell-type-select-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(n,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return r(f,"_invoke",function(n,r,o){var u,a,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return u=e,a=0,i=t,p.n=n,c}};function d(n,r){for(a=n,i=r,e=0;!s&&l&&!o&&e<f.length;e++){var o,u=f[e],d=p.p,y=u[2];n>3?(o=y===r)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=d&&((o=n<2&&d<u[1])?(a=0,p.v=r,p.n=u[1]):d<y&&(o=n<3||u[0]>r||r>y)&&(u[4]=n,u[5]=r,p.n=y,a=0))}if(o||n>1)return c;throw s=!0,r}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,y),a=f,i=y;(e=a<2?t:i)||!s;){u||(a?a<3?(a>1&&(p.n=-1),d(a,i)):p.n=i:p.v=i);try{if(l=2,u){if(a||(o="next"),e=u[o]){if(!(e=e.call(u,i)))throw TypeError("iterator result is not an object");if(!e.done)return e;i=e.value,a<2&&(a=0)}else 1===a&&(e=u.return)&&e.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=t}else if((e=(s=p.n<0)?i:n.call(r,p))!==c)break}catch(e){u=t,a=1,i=e}finally{l=1}}return{value:e,done:s}}}(n,u,a),!0),f}var c={};function l(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][u]?e(e([][u]())):(r(e={},u,function(){return this}),e),d=s.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return f.prototype=s,r(d,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,a,"GeneratorFunction"),r(d),r(d,a,"Generator"),r(d,u,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:i,m:y}})()}function r(t,e,n,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}r=function(t,e,n,o){function a(e,n){r(t,e,function(t){return this._invoke(e,n,t)})}e?u?u(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},r(t,e,n,o)}function o(t,e,n,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(e,r){"use strict";var u,a,i,c,l,f,s,p,d,y,m,v,b,h,g;return{setters:[function(t){u=t.c,a=t.r,i=t.H,c=t.j,l=t.C,f=t.v,s=t.e,p=t.p,d=t.q,y=t.ad,m=t.U,v=t.ab},function(t){b=t.k,h=t.dw,g=t.W},null],execute:function(){e("default",u({__name:"shell-type-select",props:{compData:{default:function(){return{}}}},emits:["close"],setup:function(e,r){var u=r.expose,_=r.emit,j=e,w=_,O=j.compData.row.id,S=a(),T=i({type:"bash",sudo:!1}),A=function(){var t,e=(t=n().m(function t(){return n().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,S.value.validate();case 1:return t.n=2,b({request:h({id:O,shell:T.type,sudo_i:T.sudo?1:0}),success:function(t){j.compData.openTerminalLog(t.msg),t.status&&w("close")}});case 2:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,u){var a=t.apply(e,n);function i(t){o(a,r,u,i,c,"next",t)}function c(t){o(a,r,u,i,c,"throw",t)}i(void 0)})});return function(){return e.apply(this,arguments)}}();return u({onConfirm:A}),function(e,n){var r=g,o=y,u=m,a=v;return c(),l(a,{ref_key:"shellFormRef",ref:S,class:"p-[2rem]",model:p(T)},{default:f(function(){return[s(o,{label:"请选择shell"},{default:f(function(){return[s(r,{modelValue:p(T).type,"onUpdate:modelValue":n[0]||(n[0]=function(t){return p(T).type=t}),options:[{label:"Bash",value:"bash"},{label:"sh",value:"sh"}],class:"!w-[20rem]"},null,8,["modelValue"])]}),_:1}),s(o,{label:" "},{default:f(function(){return[s(u,{modelValue:p(T).sudo,"onUpdate:modelValue":n[1]||(n[1]=function(t){return p(T).sudo=t})},{default:f(function(){return t(n[2]||(n[2]=[d("div",{class:"flex items-center"},"使用root权限执行",-1)]))}),_:1},8,["modelValue"])]}),_:1})]}),_:1},8,["model"])}}}))}}})}();