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-legacy415.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}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,n,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(e,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return r(f,"_invoke",function(e,r,o){var u,a,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(e,r){return u=e,a=0,i=t,p.n=r,c}};function v(e,r){for(a=e,i=r,n=0;!s&&l&&!o&&n<f.length;n++){var o,u=f[n],v=p.p,d=u[2];e>3?(o=d===r)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=v&&((o=e<2&&v<u[1])?(a=0,p.v=r,p.n=u[1]):v<d&&(o=e<3||u[0]>r||r>d)&&(u[4]=e,u[5]=r,p.n=d,a=0))}if(o||e>1)return c;throw s=!0,r}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,d),a=f,i=d;(n=a<2?t:i)||!s;){u||(a?a<3?(a>1&&(p.n=-1),v(a,i)):p.n=i:p.v=i);try{if(l=2,u){if(a||(o="next"),n=u[o]){if(!(n=n.call(u,i)))throw TypeError("iterator result is not an object");if(!n.done)return n;i=n.value,a<2&&(a=0)}else 1===a&&(n=u.return)&&n.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=t}else if((n=(s=p.n<0)?i:e.call(r,p))!==c)break}catch(n){u=t,a=1,i=n}finally{l=1}}return{value:n,done:s}}}(e,u,a),!0),f}var c={};function l(){}function f(){}function s(){}n=Object.getPrototypeOf;var p=[][u]?n(n([][u]())):(r(n={},u,function(){return this}),n),v=s.prototype=l.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=s,r(v,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,a,"GeneratorFunction"),r(v),r(v,a,"Generator"),r(v,u,function(){return this}),r(v,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:d}})()}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 n(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function o(t,e,r,n,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void r(t)}i.done?e(c):Promise.resolve(c).then(n,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useStore-legacy15.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,r){"use strict";var u,a,i,c,l,f,s,p,v,d,y,m,w,h,b,g,_,j;return{setters:[function(t){u=t.fb,a=t.fc,i=t.du,c=t.X},function(t){l=t.r,f=t.c,s=t.g,p=t.j,v=t.k,d=t.e,y=t.p},function(t){m=t.a,w=t.u,h=t.m},function(t){b=t.F,g=t.h,_=t.e},function(t){j=t.w},null,null,null],execute:function(){var r=m(),P=r.isEdit,S=(r.addFtpRef,r.ftpForm,r.defaultPath),F=w().rowData;l({name:[{validator:function(t,e,r){0===e.length?r(new Error("FTP用户名不能为空!")):/^[a-zA-Z0-9_]+$/g.test(e)?e.length<=3?r(new Error("FTP用户名长度错误,需要大于3个字符!")):r():r(new Error("FTP用户名只能包含字母、数字和下划线!"))},required:!0,trigger:["blur","change"]}],password:[u({complex:{length:6}}),{required:!0}],path:[a(),{required:!0}]});var T=function(){try{var t,e,r,n=S.value||"/www/wwwroot";return P.value&&(n=null===(t=F.value)||void 0===t?void 0:t.path),{ftp_username:(null===(e=F.value)||void 0===e?void 0:e.name)||"",path:n,ftp_password:(null===(r=F.value)||void 0===r?void 0:r.password)||i(12)}}catch(o){return console.log(o),{}}},x={class:"p-[2rem]"};t("default",f({__name:"index",setup:function(t,r){var l,f,P=r.expose,S=m(),F=S.isEdit,E=S.defaultPath,O=w().rowData,G=c({data:T,options:function(t){return s(function(){return[b("用户名","ftp_username",{attrs:{class:"!w-[320px]",clearable:!0,placeholder:"请输入用户名",disabled:F.value,onInput:function(e){t.value.path="".concat(E.value).concat(t.value.ftp_username.length>0?"/"+t.value.ftp_username:"")}},rules:[{validator:function(t,e,r){0===e.length?r(new Error("FTP用户名不能为空!")):/^[a-zA-Z0-9_]+$/g.test(e)?e.length<=3?r(new Error("FTP用户名长度错误,需要大于3个字符!")):r():r(new Error("FTP用户名只能包含字母、数字和下划线!"))},trigger:["blur","change"]}]}),g("密码","ftp_password",{attrs:{class:"!w-[32rem]",placeholder:"请输入密码"},rules:[u({complex:{length:6}})]},function(){return t.value.ftp_password=i(12)}),_("根目录","path",{attrs:{class:"!w-[32rem]",placeholder:"请输入根目录"},rules:[a()]},function(){j({type:"dir",path:"/www/wwwroot",change:function(e){t.value.path=e}})})]})},submit:(l=e().m(function t(r,o,u){var a,i,c,l,f;return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,o();case 1:return a=r.value,i=a.ftp_username,c=a.path,l=a.ftp_password,f=n(n({ftp_username:i,path:c},F.value?"new_password":"ftp_password",l),"ps",i),F.value&&(f.id=O.value.id),t.n=2,h(f,F.value);case 2:return t.a(2,t.v)}},t)}),f=function(){var t=this,e=arguments;return new Promise(function(r,n){var u=l.apply(t,e);function a(t){o(u,r,n,a,i,"next",t)}function i(t){o(u,r,n,a,i,"throw",t)}a(void 0)})},function(t,e,r){return f.apply(this,arguments)})}),k=G.BtForm;return P({onConfirm:G.submit}),function(t,e){return p(),v("div",x,[d(y(k))])}}}))}}})}();