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/add-stash-dialog-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 n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,a=Object.create(o.prototype),u=new P(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var d="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,c,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(q([])));E&&E!==o&&a.call(E,c)&&(_=E);var k=x.prototype=w.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function V(t,r){function n(o,i,u,c){var l=h(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==e(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function O(e,t,n){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(e,t,n);if("normal"===l.type){if(o=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,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 N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function q(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(a.call(t,o))return e.value=t[o],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 b.prototype=x,i(k,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},j(V.prototype),f(V.prototype,l,(function(){return this})),n.AsyncIterator=V,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new V(p(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(k),f(k,s,"Generator"),f(k,c,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=q,P.prototype={constructor:P,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(D),!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 n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.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),D(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 n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:q(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useStore-legacy4.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],(function(e,n){"use strict";var o,a,i,u,c,l,s,f,p,h,d,m,y,v,g,w,b,x,_;return{setters:[function(e){o=e.c,a=e.r,i=e.h,u=e.o,c=e.k,l=e.l,s=e.e,f=e.x,p=e.p,h=e.q,d=e.N,m=e.a7,y=e.a4},function(e){v=e.I,g=e.j,w=e.e},function(e){b=e.g,x=e.bq,_=e.br},null],execute:function(){var n={class:"flex flex-col p-[1.6rem] lib-box"},L={class:"flex items-center",id:"netInfo"},E=o({__name:"add-stash-dialog",props:{compData:{default:function(){return{}}}},emits:["close"],setup:function(e,o){var w=o.expose,E=o.emit,k=e,j=E,V=b().refs.isRefreshWarehouseList,O=a("add"),S=i({registry:"",name:"",username:"",password:"",namespace:"",remark:"",id:""}),N=a(),D={registry:[{required:!0,message:"请输入仓库地址",trigger:["blur"]}],name:[{required:!0,message:"请输入仓库名",trigger:["blur"]}],username:[{required:!0,message:"请输入用户",trigger:["blur"]}],password:[{required:!0,message:"请输入密码",trigger:["blur"]}],namespace:[{required:!0,message:"请输入命名空间",trigger:["blur"]}]},P=function(){var e,n=(e=t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,N.value.validate();case 3:return e.next=5,v({request:"add"==O.value?x({data:JSON.stringify({registry:S.registry,name:S.name,username:S.username,password:S.password,namespace:S.namespace,remark:S.remark})}):_({data:JSON.stringify(S)}),message:!0,success:function(e){e.status&&(V.value=!0,j("close"))}});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})),function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function u(e){r(i,o,a,u,c,"next",e)}function c(e){r(i,o,a,u,c,"throw",e)}u(void 0)}))});return function(){return n.apply(this,arguments)}}();return u((function(){k.compData.row?(S.registry=k.compData.row.url,S.name=k.compData.row.name,S.username=k.compData.row.username,S.password=k.compData.row.password,S.namespace=k.compData.row.namespace,S.remark=k.compData.row.remark,S.id=k.compData.row.id,O.value="edit"):O.value="add"})),w({onConfirm:P}),function(e,t){var r=g,o=m,a=y;return c(),l("div",n,[s(a,{ref_key:"cmdFormRef",ref:N,model:p(S),rules:D,"label-width":"90px",onSubmit:t[6]||(t[6]=d((function(){}),["prevent"]))},{default:f((function(){return[s(o,{prop:"registry",label:"仓库地址"},{default:f((function(){return[s(r,{modelValue:p(S).registry,"onUpdate:modelValue":t[0]||(t[0]=function(e){return p(S).registry=e}),width:"35rem",placeholder:"例:ccr.ccs.tencentyun.com"},null,8,["modelValue"])]})),_:1}),s(o,{prop:"name",label:"仓库名"},{default:f((function(){return[s(r,{modelValue:p(S).name,"onUpdate:modelValue":t[1]||(t[1]=function(e){return p(S).name=e}),width:"35rem",placeholder:"例:testtest"},null,8,["modelValue"])]})),_:1}),h("div",L,[s(o,{prop:"username",label:"用户",class:"!mb-0"},{default:f((function(){return[s(r,{modelValue:p(S).username,"onUpdate:modelValue":t[2]||(t[2]=function(e){return p(S).username=e}),width:"15rem",placeholder:"请输入仓库用户"},null,8,["modelValue"])]})),_:1}),s(o,{prop:"password",label:"密码","label-width":"3.4rem",id:"two"},{default:f((function(){return[s(r,{modelValue:p(S).password,"onUpdate:modelValue":t[3]||(t[3]=function(e){return p(S).password=e}),width:"14.8rem",placeholder:"请输入仓库密码"},null,8,["modelValue"])]})),_:1})]),s(o,{prop:"namespace",label:"命名空间",class:"mt-[1.5rem]"},{default:f((function(){return[s(r,{modelValue:p(S).namespace,"onUpdate:modelValue":t[4]||(t[4]=function(e){return p(S).namespace=e}),width:"35rem",placeholder:"例:testname"},null,8,["modelValue"])]})),_:1}),s(o,{prop:"remark",label:"备注"},{default:f((function(){return[s(r,{modelValue:p(S).remark,"onUpdate:modelValue":t[5]||(t[5]=function(e){return p(S).remark=e}),width:"35rem",placeholder:"备注"},null,8,["modelValue"])]})),_:1})]})),_:1},8,["model"])])}}});e("default",w(E,[["__scopeId","data-v-f3667780"]]))}}}))}();