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/stash-pull-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 d(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),u=new T(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,c,(function(){return this}));var L=Object.getPrototypeOf,k=L&&L(L(G([])));k&&k!==o&&a.call(k,c)&&(x=k);var E=_.prototype=b.prototype=Object.create(x);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(t,r){function n(o,i,u,c){var l=p(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=h;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){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=V(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===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=p(e,t,n);if("normal"===l.type){if(o=n.done?y:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function V(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,V(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=p(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 P(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function G(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 w.prototype=_,i(E,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},j(S.prototype),f(S.prototype,l,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new S(d(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(E),f(E,s,"Generator"),f(E,c,(function(){return this})),f(E,"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=G,T.prototype={constructor:T,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(N),!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),N(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;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:G(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)}function n(e){return 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)}))}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy114.js?v=1777008528","./useStore-legacy4.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],(function(e,r){"use strict";var o,a,i,u,c,l,s,f,d,p,h,m,v,y,g,b,w,_,x,L,k,E,j,S,O,V,P,N,T;return{setters:[function(e){o=e.I,a=e.a6,i=e.ac,u=e.b,c=e.a7,l=e.e},function(e){s=e.c,f=e.r,d=e.h,p=e.o,h=e.k,m=e.l,v=e.e,y=e.x,g=e.p,b=e.N,w=e.L,_=e.y,x=e.q,L=e.M,k=e.a7,E=e.A,j=e.P,S=e.a4,O=e.ay},function(e){V=e._},function(e){P=e.g,N=e.P,T=e.Z},null],execute:function(){var r={class:"flex flex-col p-[1.6rem] lib-box"},G={class:"rounded-default bg-[#333] h-[45.6rem]"},F={class:"rounded-default bg-[#333] h-[45.6rem]"},C=s({__name:"stash-pull-dialog",props:{compData:{default:function(){return{}}}},setup:function(e,l){var s=l.expose,C=P().refs.isRefreshTableList,I=u(),A=null,U=f(!1),q=f(""),R=f("common"),z=d({name:"",image:"",cmd:""}),K={model_index:"btdocker",mod_name:"image",def_name:"pull_from_some_registry",ws_callback:111,name:"",image:""},M=function(){q.value=""},Y=function(e,t){try{var r=t.data;if(q.value+="".concat(r),r.includes("bt_successful")||r.includes("bt_failed")){var n,o={status:r.includes("bt_successful"),msg:r.includes("bt_successful")?"拉取成功":"拉取失败"};I.request(o),o.status&&(C.value=!0),null===(n=A)||void 0===n||n.close(),U.value=!1}}catch(a){console.log(a)}},D=function(){var e,t;null===(e=A)||void 0===e||e.close(),q.value="",null===(t=A=c({route:"/ws_model",onMessage:Y}))||void 0===t||t.send(K)},H=f(),Z={image:[{validator:function(e,t,r){""===t?r(new Error("请输入镜像名")):r()},trigger:["blur"]}]},B=f([]);p(n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o({request:N(),data:Array,success:function(e){var t;e.forEach((function(e){B.value.push({value:e.url,label:"".concat(e.name).concat("docker.io"===e.url?"":"(".concat(e.url,")")),url:e.url,name:e.name})})),z.name=null===(t=B.value[0])||void 0===t?void 0:t.value}});case 1:case"end":return e.stop()}}),e)}))));var J=function(){var e=n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,""!==z.cmd){e.next=4;break}return I.error("请输入命令"),e.abrupt("return");case 4:U.value=!0,K.name="",K.url="",K.image="",K.def_name="get_cmd_log",T({cmd:z.cmd},"image"),D(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log(e.t0);case 16:return e.prev=16,e.finish(16);case 18:case"end":return e.stop()}}),e,null,[[0,13,16,18]])})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"cmd"!==R.value){e.next=4;break}return J(),e.abrupt("return");case 4:if(""!==z.name){e.next=7;break}return I.error("请选择仓库名"),e.abrupt("return");case 7:return U.value=!0,e.next=10,H.value.validate(function(){var e=n(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r?(K.name=B.value.find((function(e){return e.url==z.name})).name,K.url=B.value.find((function(e){return e.url==z.name})).url,K.image=z.image,K.def_name="pull_from_some_registry",D()):U.value=!1;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log(e.t0);case 15:return e.prev=15,e.finish(15);case 17:case"end":return e.stop()}}),e,null,[[0,12,15,17]])})));return function(){return e.apply(this,arguments)}}();return s({onConfirm:Q,onCancel:function(){C.value=!0}}),function(e,t){var n=a,o=k,u=E,c=j,l=V,s=S,f=O,d=i;return h(),m("div",r,[v(d,{modelValue:g(R),"onUpdate:modelValue":t[5]||(t[5]=function(e){return L(R)?R.value=e:null}),type:"card",onChange:M},{default:y((function(){return[v(f,{name:"common",label:"常规拉取"},{default:y((function(){return[v(s,{ref_key:"cmdFormRef",ref:H,size:"default",model:g(z),rules:Z,disabled:g(U),class:"relative w-full","label-position":"right",onSubmit:t[2]||(t[2]=b((function(){}),["prevent"]))},{default:y((function(){return[v(o,{prop:"name",label:"仓库名"},{default:y((function(){return[v(n,{modelValue:g(z).name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return g(z).name=e}),options:g(B),class:"!w-[32rem]"},null,8,["modelValue","options"])]})),_:1}),v(o,{prop:"image",label:"镜像名"},{default:y((function(){return[v(c,{class:"!w-[32rem]",modelValue:g(z).image,"onUpdate:modelValue":t[1]||(t[1]=function(e){return g(z).image=e}),onKeydown:w(Q,["enter","native"]),placeholder:"请输入镜像名,按回车拉取,如:image:v1"},{append:y((function(){return[v(u,{type:"default",onClick:Q},{default:y((function(){return t[6]||(t[6]=[_("拉取")])})),_:1})]})),_:1},8,["modelValue"])]})),_:1}),t[7]||(t[7]=x("div",{class:"resultTitle px-[.2rem] py-[.4rem] mt-[1.6rem]"},"拉取结果:",-1)),x("div",G,[v(l,{class:"h-[45.6rem] !rounded-none",content:g(q)},null,8,["content"])])]})),_:1},8,["model","disabled"])]})),_:1}),v(f,{name:"cmd",label:"命令拉取"},{default:y((function(){return[v(s,{ref:"cmdRef",size:"large",model:g(z),rules:Z,disabled:g(U),class:"relative w-full","label-position":"right",onSubmit:t[4]||(t[4]=b((function(){}),["prevent"]))},{default:y((function(){return[v(o,{prop:"cmd"},{default:y((function(){return[v(c,{autofocus:"",modelValue:g(z).cmd,"onUpdate:modelValue":t[3]||(t[3]=function(e){return g(z).cmd=e}),onKeyup:w(Q,["enter","native"]),placeholder:"请输入需要执行的命令,docker pull redis:latest,按回车执行"},{append:y((function(){return[v(u,{type:"default",onClick:Q},{default:y((function(){return t[8]||(t[8]=[_("执行命令")])})),_:1})]})),_:1},8,["modelValue"])]})),_:1}),t[9]||(t[9]=x("div",{class:"resultTitle px-[.2rem] py-[.4rem] mt-[1.6rem]"},"拉取结果:",-1)),x("div",F,[v(l,{class:"h-[45.6rem] !rounded-none",content:g(q)},null,8,["content"])])]})),_:1},8,["model","disabled"])]})),_:1})]})),_:1},8,["modelValue"])])}}});e("default",l(C,[["__scopeId","data-v-22e27e62"]]))}}}))}();