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/storage-option-legacy.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return o};var r,o={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(r){u=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var n=t&&t.prototype instanceof m?t:m,a=Object.create(n.prototype),c=new K(o||[]);return i(a,"_invoke",{value:O(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=f;var d="suspendedStart",y="suspendedYield",v="executing",b="completed",g={};function m(){}function w(){}function x(){}var _={};u(_,l,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(q([])));S&&S!==n&&a.call(S,l)&&(_=S);var L=x.prototype=m.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(t,r){function o(n,i,c,l){var s=h(t[n],t,i);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==e(u)&&a.call(u,"__await")?r.resolve(u.__await).then((function(e){o("next",e,c,l)}),(function(e){o("throw",e,c,l)})):r.resolve(u).then((function(e){p.value=e,c(p)}),(function(e){return o("throw",e,c,l)}))}l(s.arg)}var n;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,n){o(e,t,r,n)}))}return n=n?n.then(a,a):a()}})}function O(e,t,o){var n=d;return function(a,i){if(n===v)throw Error("Generator is already running");if(n===b){if("throw"===a)throw i;return{value:r,done:!0}}for(o.method=a,o.arg=i;;){var c=o.delegate;if(c){var l=P(c,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===d)throw n=b,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=v;var s=h(e,t,o);if("normal"===s.type){if(n=o.done?b:y,s.arg===g)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(n=b,o.method="throw",o.arg=s.arg)}}}function P(e,t){var o=t.method,n=e.iterator[o];if(n===r)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=r,P(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var a=h(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function K(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function q(t){if(t||""===t){var o=t[l];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=x,i(L,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=u(x,p,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,p,"GeneratorFunction")),e.prototype=Object.create(L),e},o.awrap=function(e){return{__await:e}},E(j.prototype),u(j.prototype,s,(function(){return this})),o.AsyncIterator=j,o.async=function(e,t,r,n,a){void 0===a&&(a=Promise);var i=new j(f(e,t,r,n),a);return o.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(L),u(L,p,"Generator"),u(L,l,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},o.values=q,K.prototype={constructor:K,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return c.type="throw",c.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var i=n?n.completion:{};return i.type=e,i.arg=t,n?(this.method="next",this.next=n.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;C(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:q(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),g}},o}function r(e,t,r,o,n,a,i){try{var c=e[a](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(o,n)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useMethod-legacy9.js?v=1777008528","./config-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./validator-legacy.js?v=1777008528","./index-legacy106.js?v=1777008528","./column-legacy.js?v=1777008528"],(function(e,o){"use strict";var n,a,i,c,l,s,p,u,f,h,d,y,v,b,g,m,w,x,_,k,S,L,E,j,O,P,A,C,K,q,T,I,F,G;return{setters:[function(e){n=e.J,a=e.K},function(e){i=e.c,c=e.r,l=e.s,s=e.i,p=e.o,u=e.a1,f=e.k,h=e.l,d=e.e,y=e.x,v=e.I,b=e.aY,g=e.p,m=e.J,w=e.K,x=e.m,_=e.v,k=e.z,S=e.P,L=e.aj,E=e.d,j=e.a7,O=e.a4},function(e){P=e.u,A=e.c,C=e.s},function(e){K=e.an,q=e.ao,T=e.ap,I=e.aq,F=e.ar,G=e.as},null,null,null,null],execute:function(){var N={class:"p-[16px]"},V={key:0,class:"text-[12px] text-gray-500 ml-[1rem]"};e("default",i({__name:"storage-option",props:{compData:{}},emits:["close"],setup:function(e,i){var B=i.expose,D=i.emit,W=c(),H=l(P()),Y=H.ftpConfig,J=H.aliossConfig,U=H.txcosConfig,z=H.qiniuConfig,M=H.txcosStorageType,Q=H.webdavConfig,R=P(),X=R.resetTxcosConfig,Z=R.resetQiniuConfig,$=R.resetFtpConfig,ee=R.resetAliossConfig,te=R.resetWebdavConfig,re=e.compData,oe=re.item,ne=re.isEdit,ae=D,ie={ftp:[{label:"使用SFTP",prop:"use_sftp",component:"el-switch",tip:"是否使用SFTP进行数据传输"},{label:"Host",prop:"ftp_host",placeholder:"请输入服务器IP地址",tip:"* 域名或IP地址",props:{class:"!w-[230px]"}},{label:"用户名",prop:"ftp_user",placeholder:"请输入用户名",tip:"* 指定用户名",props:{class:"!w-[230px]"}},{label:"密码",prop:"ftp_pass",placeholder:"请输入密码",tip:"* 登录密码",props:{class:"!w-[230px]"}},{label:"存储位置",prop:"backup_path",placeholder:"请输入存储位置",tip:"* 相对于根目录的路径,默认是/bt_backup",props:{class:"!w-[230px]"}}],alioss:[{label:"AccessKeyId",prop:"access_key",placeholder:"请输入AccessKeyId",tip:"* 阿里云的AccessKeyId ",props:{class:"!w-[230px]"}},{label:"AccessKeySecret",prop:"secret_key",placeholder:"请输入AccessKeySecret",tip:"* 阿里云的AccessKeySecret",props:{class:"!w-[230px]"}},{label:"Bucket",prop:"bucket_name",placeholder:"请输入Bucket名称",tip:"* 阿里云OSS中您创建的Bucket名称",props:{class:"!w-[230px]"}},{label:"EndPoint",prop:"bucket_domain",placeholder:"请输入EndPoint域名",tip:"* 阿里云OSS地域域名,不包括Bucket名",props:{class:"!w-[230px]"}},{label:"保存路径",prop:"backup_path",placeholder:"请输入保存路径",tip:"* 备份文件保存路径, 默认是/bt_backup",props:{class:"!w-[230px]"}}],txcos:[{label:"secret_id",prop:"secret_id",placeholder:"请输入secret_id",tip:"* 腾讯云COS secret_id",props:{class:"!w-[230px]",disabled:ne}},{label:"secret_key",prop:"secret_key",placeholder:"请输入secret_key",tip:"* 腾讯云COS secret_key",props:{class:"!w-[230px]",disabled:ne}},{label:"region",prop:"region",placeholder:"请输入region名称",tip:"* 腾讯云COS region",props:{class:"!w-[230px]",disabled:ne}},{label:"Bucket",prop:"bucket_name",placeholder:"请输入Bucket域名",tip:"* 腾讯云COS Bucket",props:{class:"!w-[230px]",disabled:ne}},{label:"保存路径",prop:"backup_path",placeholder:"请输入保存路径",tip:"* 备份文件保存路径, 默认是/bt_backup",props:{class:"!w-[230px]"}},{label:"存储方式",prop:"pattern",component:"bt-select",placeholder:"请选择存储方式",props:{class:"!w-[230px]",options:M.value}}],qiniu:[{label:"AccessKey",prop:"access_key_id",placeholder:"请输入AccessKey",tip:"* 七牛秘钥中的AK",props:{class:"!w-[230px]"}},{label:"SecretKey",prop:"access_key_secret",placeholder:"请输入SecretKey",tip:"* 七牛秘钥中的SK",props:{class:"!w-[230px]"}},{label:"存储空间",prop:"bucket_name",placeholder:"请输入对象存储空间名称",tip:"* 七牛对象存储空间名称",props:{class:"!w-[230px]"}},{label:"加速域名",prop:"bucket_domain",placeholder:"请输入绑定域名或测试域名",tip:"* 绑定的加速域名或测试域名",props:{class:"!w-[230px]"}},{label:"保存路径",prop:"backup_path",placeholder:"请输入保存路径",tip:"* 备份文件保存路径, 默认是/bt_backup",props:{class:"!w-[230px]"}}],webdav:[{label:"Host",prop:"hostname",placeholder:"请输入WebDAV服务器地址",tip:"* 域名或IP地址",props:{class:"!w-[230px]"}},{label:"用户名",prop:"username",placeholder:"请输入WebDAV用户名",tip:"* 指定用户名",props:{class:"!w-[230px]"}},{label:"密码",prop:"password",placeholder:"请输入WebDAV密码",tip:"* 用户密码",props:{class:"!w-[230px]"}},{label:"保存路径",prop:"backup_path",placeholder:"请输入WebDAV存储位置",tip:"* 相对于根目录的路径,默认是/bt_backup",props:{class:"!w-[230px]"}}]},ce=s((function(){return{ftp:Y.value,alioss:J.value,txcos:U.value,qiniu:z.value,webdav:Q.value}[oe.type]})),le=s((function(){return ie[oe.type]})),se=s((function(){var e={};return le.value.forEach((function(t){"useSFTP"!==t.prop&&(e[t.prop]=[{required:!0,message:"请输入".concat(t.label),trigger:"blur"}])})),e})),pe=function(){var e,o=(e=t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(W.value){e.next=2;break}return e.abrupt("return",!1);case 2:return e.prev=2,e.next=5,W.value.validate();case 5:"txcos"===oe.type?n({loading:ne?"正在修改...":"正在保存...",request:ne?K({pattern:ce.value.pattern,backup_path:ce.value.backup_path}):q(ce.value),message:!0,success:function(e){if(!e.status)return!1;C(),ae("close")}}):"ftp"===oe.type?n({loading:ne?"正在修改...":"正在保存...",request:T(ce.value),message:!0,success:function(e){if(!e.status)return!1;C(),ae("close")}}):"alioss"===oe.type?n({loading:ne?"正在修改...":"正在保存...",request:I(ce.value),message:!0,success:function(e){if(!e.status)return!1;C(),ae("close")}}):"qiniu"===oe.type?n({loading:ne?"正在修改...":"正在保存...",request:F(ce.value),message:!0,success:function(e){if(!e.status)return!1;C(),ae("close")}}):"webdav"===oe.type&&n({loading:ne?"正在修改...":"正在保存...",request:G(ce.value),message:!0,success:function(e){if(!e.status)return!1;C(),ae("close")}}),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,8]])})),function(){var t=this,o=arguments;return new Promise((function(n,a){var i=e.apply(t,o);function c(e){r(i,n,a,c,l,"next",e)}function l(e){r(i,n,a,c,l,"throw",e)}c(void 0)}))});return function(){return o.apply(this,arguments)}}(),ue={"el-input":S,"el-switch":L,"bt-select":E((function(){return a((function(){return o.import("./utils-lib-legacy.js?v=1777008528").then((function(e){return e.gC}))}),void 0,o.meta.url)}))};return p((function(){ne&&A(oe)})),u((function(){X(),Z(),$(),ee(),te()})),B({onConfirm:pe}),function(e,t){var r=j,o=O;return f(),h("div",N,[d(o,{ref_key:"formRef",ref:W,model:g(ce),rules:g(se),"label-width":"110px"},{default:y((function(){return[(f(!0),h(v,null,b(g(le),(function(e){return f(),m(r,{key:e.prop,label:e.label,prop:e.prop},{default:y((function(){return[(f(),m(w(ue[e.component||"el-input"]),x({modelValue:g(ce)[e.prop],"onUpdate:modelValue":function(t){return g(ce)[e.prop]=t},ref_for:!0},e.props||{},{placeholder:e.placeholder}),null,16,["modelValue","onUpdate:modelValue","placeholder"])),e.tip?(f(),h("span",V,_(e.tip),1)):k("",!0)]})),_:2},1032,["label","prop"])})),128))]})),_:1},8,["model","rules"])])}}}))}}}))}();