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-legacy27.js
!function(){function n(n){return function(n){if(Array.isArray(n))return t(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return t(n,e);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,e):void 0}}(n)||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 t(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,t,u="function"==typeof Symbol?Symbol:{},o=u.iterator||"@@iterator",a=u.toStringTag||"@@toStringTag";function i(e,u,o,a){var i=u&&u.prototype instanceof c?u:c,s=Object.create(i.prototype);return r(s,"_invoke",function(e,r,u){var o,a,i,c=0,s=u||[],f=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(t,e){return o=t,a=0,i=n,d.n=e,l}};function p(e,r){for(a=e,i=r,t=0;!f&&c&&!u&&t<s.length;t++){var u,o=s[t],p=d.p,v=o[2];e>3?(u=v===r)&&(i=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=n):o[0]<=p&&((u=e<2&&p<o[1])?(a=0,d.v=r,d.n=o[1]):p<v&&(u=e<3||o[0]>r||r>v)&&(o[4]=e,o[5]=r,d.n=v,a=0))}if(u||e>1)return l;throw f=!0,r}return function(u,s,v){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),a=s,i=v;(t=a<2?n:i)||!f;){o||(a?a<3?(a>1&&(d.n=-1),p(a,i)):d.n=i:d.v=i);try{if(c=2,o){if(a||(u="next"),t=o[u]){if(!(t=t.call(o,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(i=TypeError("The iterator does not provide a '"+u+"' method"),a=1);o=n}else if((t=(f=d.n<0)?i:e.call(r,d))!==l)break}catch(t){o=n,a=1,i=t}finally{c=1}}return{value:t,done:f}}}(e,o,a),!0),s}var l={};function c(){}function s(){}function f(){}t=Object.getPrototypeOf;var d=[][o]?t(t([][o]())):(r(t={},o,function(){return this}),t),p=f.prototype=c.prototype=Object.create(d);function v(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,f):(n.__proto__=f,r(n,a,"GeneratorFunction")),n.prototype=Object.create(p),n}return s.prototype=f,r(p,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,a,"GeneratorFunction"),r(p),r(p,a,"Generator"),r(p,o,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:v}})()}function r(n,t,e,u){var o=Object.defineProperty;try{o({},"",{})}catch(n){o=0}r=function(n,t,e,u){function a(t,e){r(n,t,function(n){return this._invoke(t,e,n)})}t?o?o(n,t,{value:e,enumerable:!u,configurable:!u,writable:!u}):n[t]=e:(a("next",0),a("throw",1),a("return",2))},r(n,t,e,u)}function u(n,t,e,r,u,o,a){try{var i=n[o](a),l=i.value}catch(n){return void e(n)}i.done?t(l):Promise.resolve(l).then(r,u)}function o(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function i(n){u(a,r,o,i,l,"next",n)}function l(n){u(a,r,o,i,l,"throw",n)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy217.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy175.js?v=1777008528","./database-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./useStore-legacy4.js?v=1777008528","./useMethod-legacy5.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy2.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,r){"use strict";var u,a,i,l,c,s,f,d,p,v,y,g,m,h,b,_,w,j,x,S,k,C,O,V,A,T,U,G,M,P,q,E,F,D,I,J,L,N,H,R,z,B,K,Q,$,W,X,Y,Z,nn,tn,en,rn,un,on,an,ln,cn,sn,fn,dn;return{setters:[function(n){u=n.k,a=n.K,i=n.c7,l=n.c_,c=n.d3,s=n.d4,f=n.c4,d=n.e,p=n._},function(n){v=n._},function(n){y=n._},function(n){g=n.c,m=n.r,h=n.j,b=n.k,_=n.e,w=n.v,j=n.x,x=n.q,S=n.p,k=n.Q,C=n.z,O=n.ap,V=n.H,A=n.V,T=n.g,U=n.w,G=n.o,M=n.I,P=n.C,q=n.y,E=n.L,F=n.F,D=n.B,I=n.s,J=n.J,L=n.am,N=n.an},function(n){H=n._},function(n){R=n.setAuthStatus,z=n.getModulesCloudServer,B=n.getMongodbConfig,K=n.getModulesList},function(n){Q=n.t,$=n.e,W=n.D,X=n.E,Y=n.g},function(n){Z=n.g},function(n){nn=n.b,tn=n.g,en=n.o,rn=n.f,un=n.h,on=n.l,an=n.p,ln=n.j,cn=n.k,sn=n.m},function(n){fn=n._},function(n){dn=n._},null,null,null,null],execute:function(){var pn={class:"p-20px"},vn={class:"flex items-center"},yn=g({__name:"index",setup:function(t){var r=Z().refs.safetyStatus,i=m(!1),l=function(){var n=o(e().m(function n(){return e().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,u({loading:"正在设置安全状态,请稍候...",request:R({data:JSON.stringify({status:r.value?"1":"0"})}),message:!0,success:function(n){n.status||(r.value=!r.value)}});case 1:n.n=3;break;case 2:n.p=2,n.v;case 3:return n.a(2)}},n,null,[[0,2]])}));return function(){return n.apply(this,arguments)}}();return function(t,e){var u=C,o=O,c=a;return h(),b("div",null,[_(u,{type:"default",onClick:e[0]||(e[0]=function(n){return i.value=!0})},{default:w(function(){return n(e[3]||(e[3]=[j("安全认证",-1)]))}),_:1}),_(c,{title:"安全认证",modelValue:S(i),"onUpdate:modelValue":e[2]||(e[2]=function(n){return k(i)?i.value=n:null}),area:40},{default:w(function(){return[x("div",pn,[x("div",vn,[e[4]||(e[4]=x("span",{class:"mr-8px"},"安全认证:",-1)),_(o,{modelValue:S(r),"onUpdate:modelValue":e[1]||(e[1]=function(n){return k(r)?r.value=n:null}),width:36,onChange:l},null,8,["modelValue"])]),e[5]||(e[5]=x("ul",{class:"mt-8px leading-8 text-small list-disc ml-20px"},[x("li",null,"安全认证:开启后访问数据需要使用帐号和密码")],-1))])]}),_:1},8,["modelValue"])])}}}),gn={class:"flex items-center"},mn={class:"w-[20rem] truncate inline-block"};t("default",g({__name:"index",setup:function(t){var a=Z(),g=a.refs,O=g.isRefreshTable,R=g.isLoading,pn=g.safetyStatus,vn=g.envStatus,hn=g.isHaveServer,bn=a.resetRefresh,_n=a.refreshTableList,wn=V({total:0,page:1,row:10}),jn=m([]),xn=A([]),Sn=m(null),kn=m("all"),Cn=m(""),On=m(""),Vn=m([]),An=rn(),Tn=T(function(){return!vn.value.setup&&!hn.value}),Un=function(){return[$()].concat(n(un(on)),[W({event:function(n,t){return an(n,t)}}),ln(Vn.value,"mongodb"),X({table:"databases"}),Y([{onClick:function(n){return function(n){d({title:"【".concat(n.name,"】权限配置"),area:53,compData:n,showFooter:!0,component:function(){return p(function(){return r.import("./index-legacy391.js?v=1777008528")},void 0,r.meta.url)}})}(n)},title:"权限"},{onClick:function(n){return cn(n,"【".concat(n.name,"】集合"))},title:"数据"},{onClick:function(n){return on(n)},title:"改密"},{onClick:function(n){return sn(n)},title:"删除"}])])},Gn=function(){var n=o(e().m(function n(){return e().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,u({request:z({data:JSON.stringify({type:"mongodb"})},"mongodb"),data:[Array,Vn]});case 1:return Vn.value.length||(hn.value=!1),n.a(2,Vn.value)}},n)}));return function(){return n.apply(this,arguments)}}(),Mn=function(){var n=o(e().m(function n(){var t;return e().w(function(n){for(;;)switch(n.n){case 0:return""===(t={p:wn.page,limit:wn.row,tables:"databases",search:Cn.value,sid:"all"===kn.value?"":kn.value}).sid&&delete t.sid,n.n=1,u({loading:R,request:K({data:JSON.stringify(t)},"mongodb"),data:{data:[Array,jn],page:f(wn)}});case 1:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),Pn=function(){var n=o(e().m(function n(){var t;return e().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,u({request:B(),data:{root:[String,On],authorization:[String,function(n){return{status:"enabled"===n||!1}}]}});case 1:t=n.v,pn.value=t.status;case 2:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),qn=function(){var n=o(e().m(function n(){return e().w(function(n){for(;;)switch(n.n){case 0:return Mn(),!Tn.value&&Pn(),n.n=1,Gn();case 1:xn.value=Un();case 2:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return U(function(){return O.value},function(){var n=o(e().m(function n(t){return e().w(function(n){for(;;)switch(n.n){case 0:if(!t){n.n=1;break}return n.n=1,Mn();case 1:bn();case 2:return n.a(2)}},n)}));return function(t){return n.apply(this,arguments)}}()),G(function(){return qn()}),function(t,e){var r=H,u=C,o=i,a=L,f=N,d=l,p=c,g=s,m=y,O=v,V=M("bt-loading");return h(),b("div",null,[S(Tn)?(h(),P(r,{key:0},{content:w(function(){return[_(dn,{type:"MongoDB"})]}),_:1})):q("",!0),_(O,null,{"header-left":w(function(){return[x("div",gn,[_(u,{type:"primary",onClick:e[0]||(e[0]=function(n){return S(nn)(Gn)})},{default:w(function(){return n(e[7]||(e[7]=[j("添加数据库",-1)]))}),_:1}),S(pn)?(h(),P(u,{key:0,onClick:e[1]||(e[1]=function(n){return S(tn)(S(On),function(){return Pn()})})},{default:w(function(){return n(e[8]||(e[8]=[j("root密码",-1)]))}),_:1})):q("",!0),_(u,{onClick:S(en)},{default:w(function(){return n(e[9]||(e[9]=[j("远程数据库",-1)]))}),_:1},8,["onClick"]),_(yn,{class:"mx-[10px]"}),_(fn,{"comp-data":S(Vn)},null,8,["comp-data"]),_(o,{onClick:e[2]||(e[2]=function(n){return S(Q)({name:"数据库",type:12})}),icon:"desired",class:"ml-[12px]",iconClass:"text-medium"},{default:w(function(){return n(e[10]||(e[10]=[j("需求反馈",-1)]))}),_:1})])]}),"header-right":w(function(){return[_(f,{modelValue:S(kn),"onUpdate:modelValue":e[3]||(e[3]=function(n){return k(kn)?kn.value=n:null}),onChange:S(_n),class:E(["!w-[14rem] mr-[8px]",{"custom-types-bg-green":"all"!==S(kn)}])},{default:w(function(){return[_(a,{label:"全部",value:"all"}),(h(!0),b(F,null,D(S(Vn),function(n,t){return h(),P(a,{key:t,label:"".concat("all"!==S(kn)?"已选:":"").concat(n.ps),value:n.id},{default:w(function(){return[x("span",mn,I(n.ps),1)]}),_:2},1032,["label","value"])}),128))]}),_:1},8,["modelValue","onChange","class"]),_(d,{class:"w-[26rem]",modelValue:S(Cn),"onUpdate:modelValue":e[4]||(e[4]=function(n){return k(Cn)?Cn.value=n:null}),onSearch:S(_n),placeholder:"请输入数据库名称/备注"},null,8,["modelValue","onSearch"])]}),content:w(function(){return[J(_(p,{ref_key:"mongoDbTableRef",ref:Sn,column:S(xn),data:S(jn)},null,8,["column","data"]),[[V,S(R)]])]}),"footer-left":w(function(){return[_(g,{options:S(An),"table-ref":S(Sn)},null,8,["options","table-ref"])]}),"footer-right":w(function(){return[_(m,{total:S(wn).total,page:S(wn).page,"onUpdate:page":e[5]||(e[5]=function(n){return S(wn).page=n}),row:S(wn).row,"onUpdate:row":e[6]||(e[6]=function(n){return S(wn).row=n}),onChange:S(_n)},null,8,["total","page","row","onChange"])]}),_:1})])}}}))}}})}();