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-legacy534.js
!function(){function e(n){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(n)}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(n,o,a,u){var c=o&&o.prototype instanceof i?o:i,s=Object.create(c.prototype);return t(s,"_invoke",function(n,t,o){var a,u,c,i=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(n,t){return a=n,u=0,c=e,m.n=t,l}};function p(n,t){for(u=n,c=t,r=0;!f&&i&&!o&&r<s.length;r++){var o,a=s[r],p=m.p,d=a[2];n>3?(o=d===t)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,m.v=t,m.n=a[1]):p<d&&(o=n<3||a[0]>t||t>d)&&(a[4]=n,a[5]=t,m.n=d,u=0))}if(o||n>1)return l;throw f=!0,t}return function(o,s,d){if(i>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),u=s,c=d;(r=u<2?e:c)||!f;){a||(u?u<3?(u>1&&(m.n=-1),p(u,c)):m.n=c:m.v=c);try{if(i=2,a){if(u||(o="next"),r=a[o]){if(!(r=r.call(a,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,u<2&&(u=0)}else 1===u&&(r=a.return)&&r.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=e}else if((r=(f=m.n<0)?c:n.call(t,m))!==l)break}catch(r){a=e,u=1,c=r}finally{i=1}}return{value:r,done:f}}}(n,a,u),!0),s}var l={};function i(){}function s(){}function f(){}r=Object.getPrototypeOf;var m=[][a]?r(r([][a]())):(t(r={},a,function(){return this}),r),p=f.prototype=i.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,u,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,t(p,"constructor",f),t(f,"constructor",s),s.displayName="GeneratorFunction",t(f,u,"GeneratorFunction"),t(p),t(p,u,"Generator"),t(p,a,function(){return this}),t(p,"toString",function(){return"[object Generator]"}),(n=function(){return{w:c,m:d}})()}function t(e,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,n,r,o){function u(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(u("next",0),u("throw",1),u("return",2))},t(e,n,r,o)}function r(e,n,t,r,o,a,u){try{var c=e[a](u),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var n=this,t=arguments;return new Promise(function(o,a){var u=e.apply(n,t);function c(e){r(u,o,a,c,l,"next",e)}function l(e){r(u,o,a,c,l,"throw",e)}c(void 0)})}}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e)||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 u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy130.js?v=1777008528","./add-compose-legacy.js?v=1777008528","./index-legacy515.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./ace-legacy.js?v=1777008528","./useMethods-legacy.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy206.js?v=1777008528"],function(t,r){"use strict";var u,c,l,i,s,f,m,p,d,v,y,h,b,g,w,_,j,S,x,k,C,O,T,A,V,F,E,I,P,W,G;return{setters:[function(e){u=e.X,c=e.M,l=e.dR,i=e.cZ,s=e.L,f=e.cR},function(e){m=e.c,p=e.a7,d=e.g,v=e.e,y=e.U,h=e.j,b=e.C,g=e.p,w=e.aC,_=e.r,j=e.k,S=e.v,x=e.Q,k=e.aE},function(e){C=e.F,O=e.b,T=e.c,A=e.e,V=e.f,F=e.g,E=e.d},function(e){I=e.w},function(e){P=e.B},function(e){W=e.A},function(e){G=e.default},null,null,null,null,null,null,null],execute:function(){var r=m({__name:"add-common",emits:["close","submit"],setup:function(t,r){var i,s=r.expose,f=r.emit,m=p(),w=f,_=u({data:function(){return{name:"",remark:"",data:"",env:"",save:!1,template:"",path:"",envpath:"",type:"data"}},options:function(e){return d(function(){return[C("编排名称","name",{attrs:{placeholder:"请输入编排名称",class:"!w-[43.5rem]"},rules:[{required:!0,message:"请输入编排名称",trigger:["blur"]}]}),O([T("来源","type",[{label:"编辑",value:"data"},{label:"文件",value:"path"}],{attrs:{size:"default",onChange:function(){console.log(k)}}})])].concat(a("path"==e.value.type?[O([A(" ","path",{attrs:{class:"!w-[30rem]",placeholder:"请选择compose文件"}},function(){return x(e,"compose")}),V("本地上传",{attrs:{class:"!ml-[1rem]",onClick:function(){U(e,"compose")}}})])]:[]),[F("compose内容",function(){return v(P,{key:"editer1",class:"w-full h-[30rem]",modelValue:e.value.data,"onUpdate:modelValue":function(n){return e.value.data=n},editorOption:k},null)},"data")],a("path"==e.value.type?[O([A(" ","envpath",{attrs:{class:"!w-[30rem]",placeholder:"请选择.env文件"}},function(){return x(e,"env")}),V("本地上传",{attrs:{class:"!ml-[1rem]",onClick:function(){U(e,"env")}}})])]:[]),[F(".env内容",function(){return v(P,{key:"editer2",class:"w-full h-[10rem]",modelValue:e.value.env,"onUpdate:modelValue":function(n){return e.value.env=n},editorOption:k},null)},"data"),F("同时存为模板",function(){return v(y,{modelValue:e.value.save,"onUpdate:modelValue":function(n){return e.value.save=n}},null)},"save")],a(e.value.save?[C("模板名称","template",{attrs:{placeholder:"请输入模板名称",class:"!w-[43.5rem]"}}),C("备注","remark",{attrs:{placeholder:"备注",class:"!w-[43.5rem]"}})]:[]),[E(" ",[{content:"编排名称重复时,将会覆盖现有项目"}])])})},submit:(i=o(n().m(function e(t,r,o){return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,r();case 1:G(t);case 2:return e.a(2)}},e)})),function(e,n,t){return i.apply(this,arguments)})}),j=_.BtForm,S=_.submit,x=function(e,n){I({type:"file",change:function(t){t&&("compose"==n&&(e.value.path=t),"env"==n&&(e.value.envpath=t),t.endsWith(".yml")||t.endsWith(".yaml")||"compose"!=n?t.endsWith(".env")||"env"!=n?W(t,e,n):c.error("请选择.env文件"):c.error("请选择compose文件"))}})},k={mode:"ace/mode/yaml",theme:m.value?"ace/theme/clouds_midnight":"ace/theme/chrome",wrap:!0,showInvisibles:!1,showFoldWidgets:!1,useSoftTabs:!0,tabSize:2,showPrintMargin:!1,readOnly:!1,fontSize:"12px"},W=function(){var t=o(n().m(function t(r,o,a){var u,c,i;return n().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,l({path:r});case 1:u=n.v,"object"===e(c=u.data)&&("compose"==a&&(o.value.data=c.data||""),"env"==a&&(o.value.env=c.data||"")),n.n=3;break;case 2:n.p=2,i=n.v,console.log(i);case 3:return n.a(2)}},t,null,[[0,2]])}));return function(e,n,r){return t.apply(this,arguments)}}(),G=function(){var e=o(n().m(function e(t){var r,o;return n().w(function(e){for(;;)switch(e.n){case 0:r=t.value,o={mod_name:"docker",sub_mod_name:"com",def_name:"create",project_name:r.name,config:r.data,env:r.env,add_template:r.save?1:0,remark:r.remark,ws_callback:"create"},r.save&&(o.template_name=r.template),w("submit",{params:o,close:function(){return w("close")}});case 1:return e.a(2)}},e)}));return function(n){return e.apply(this,arguments)}}(),U=function(e,n){var t=document.createElement("input");t.type="file",t.style.display="none","compose"===n&&(t.accept=".yml,.yaml"),t.addEventListener("change",function(t){var r,o=null===(r=t.target.files)||void 0===r?void 0:r[0];if(o)if("compose"!==n||o.name.endsWith(".yml")||o.name.endsWith(".yaml"))if("env"!==n||o.name.endsWith("env")){var a=new FileReader;a.onload=function(t){var r,a=null===(r=t.target)||void 0===r?void 0:r.result;"compose"===n?(e.value.path=o.name,e.value.data=a):"env"===n&&(e.value.envpath=o.name,e.value.env=a)},a.onerror=function(){c.error("读取文件内容失败")},a.readAsText(o)}else c.error("请选择env文件");else c.error("请选择compose文件")}),document.body.appendChild(t),t.click(),setTimeout(function(){document.body.removeChild(t)},0)};return s({onConfirm:S}),function(e,n){return h(),b(g(j),{class:"p-[1.6rem]"})}}}),U=i(r,[["__scopeId","data-v-9657634d"]]),D={class:"flex flex-col p-[16px] lib-box"},M=m({__name:"index",props:{compData:{default:function(){return{}}}},emits:["close"],setup:function(e,t){var r=t.expose,a=t.emit,u=w("popupSetFooter",function(e){}),c=s().refs.orchestrationData,l=_("first"),i=_(),m=_(),p=function(e){l.value=e,u("third"!==e),"third"===e&&(c.value.currentCompose.name="")},d=function(){var e=o(n().m(function e(){return n().w(function(e){for(;;)switch(e.n){case 0:try{"first"==l.value?i.value.onConfirm():m.value.onConfirm()}catch(n){}case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),y=function(){a("close")};return r({onConfirm:d}),function(n,t){var r=k,o=f;return h(),j("div",D,[v(o,{type:"card",modelValue:g(l),"onUpdate:modelValue":t[0]||(t[0]=function(e){return x(l)?l.value=e:null}),onChange:p},{default:S(function(){return[v(r,{label:"常规创建",name:"first"},{default:S(function(){return[v(U,{ref_key:"first",ref:i,onClose:y,onSubmit:e.compData.wsConfirm},null,8,["onSubmit"])]}),_:1}),v(r,{label:"使用模板",name:"second"},{default:S(function(){return[v(W,{ref_key:"second",ref:m,onClose:y},null,512)]}),_:1}),v(r,{label:"从备份创建",name:"third"},{default:S(function(){return[v(G,{ref:"third",compData:{isImport:!0},class:"!p-0",onClose:y},null,512)]}),_:1})]}),_:1},8,["modelValue"])])}}});t("default",i(M,[["__scopeId","data-v-f9939559"]]))}}})}();