File: /www/server/panel/BTPanel/static/js/index-legacy507.js
!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):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 n(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}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,n,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function i(t,a,u,o){var i=a&&a.prototype instanceof l?a:l,s=Object.create(i.prototype);return r(s,"_invoke",function(t,r,a){var u,o,i,l=0,s=a||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(n,t){return u=n,o=0,i=e,d.n=t,c}};function p(t,r){for(o=t,i=r,n=0;!f&&l&&!a&&n<s.length;n++){var a,u=s[n],p=d.p,m=u[2];t>3?(a=m===r)&&(i=u[(o=u[4])?5:(o=3,3)],u[4]=u[5]=e):u[0]<=p&&((a=t<2&&p<u[1])?(o=0,d.v=r,d.n=u[1]):p<m&&(a=t<3||u[0]>r||r>m)&&(u[4]=t,u[5]=r,d.n=m,o=0))}if(a||t>1)return c;throw f=!0,r}return function(a,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,m),o=s,i=m;(n=o<2?e:i)||!f;){u||(o?o<3?(o>1&&(d.n=-1),p(o,i)):d.n=i:d.v=i);try{if(l=2,u){if(o||(a="next"),n=u[a]){if(!(n=n.call(u,i)))throw TypeError("iterator result is not an object");if(!n.done)return n;i=n.value,o<2&&(o=0)}else 1===o&&(n=u.return)&&n.call(u),o<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),o=1);u=e}else if((n=(f=d.n<0)?i:t.call(r,d))!==c)break}catch(n){u=e,o=1,i=n}finally{l=1}}return{value:n,done:f}}}(t,u,o),!0),s}var c={};function l(){}function s(){}function f(){}n=Object.getPrototypeOf;var d=[][u]?n(n([][u]())):(r(n={},u,function(){return this}),n),p=f.prototype=l.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,r(p,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,o,"GeneratorFunction"),r(p),r(p,o,"Generator"),r(p,u,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:m}})()}function r(e,n,t,a){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}r=function(e,n,t,a){function o(n,t){r(e,n,function(e){return this._invoke(n,t,e)})}n?u?u(e,n,{value:t,enumerable:!a,configurable:!a,writable:!a}):e[n]=t:(o("next",0),o("throw",1),o("return",2))},r(e,n,t,a)}function a(e,n,t,r,a,u,o){try{var i=e[u](o),c=i.value}catch(e){return void t(e)}i.done?n(c):Promise.resolve(c).then(r,a)}function u(e){return function(){var n=this,t=arguments;return new Promise(function(r,u){var o=e.apply(n,t);function i(e){a(o,r,u,i,c,"next",e)}function c(e){a(o,r,u,i,c,"throw",e)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy130.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy23.js?v=1777008528","./index-legacy3.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy24.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./ace-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(n,r){"use strict";var a,o,i,c,l,s,f,d,p,m,y,v,b,h,_,g,x,w,j,V,S,C,O,k,T,E,G,A,P,I,z,U,q,F;return{setters:[function(e){a=e.k,o=e.F,i=e.G,c=e.cO,l=e.cR,s=e.cZ},function(e){f=e.r,d=e.H,p=e.c,m=e.o,y=e.I,v=e.j,b=e.C,h=e.v,_=e.e,g=e.q,x=e.J,w=e.p,j=e.Q,V=e.x,S=e.aE,C=e.z,O=e.ay,k=e.aA,T=e.ad,E=e.ab},function(e){G=e.B},function(e){A=e.S,P=e._},function(e){I=e.b4,z=e.b5,U=e.ae},function(e){q=e.S,F=e._},null,null,null,null],execute:function(){var r=A(),H=q(),M=f({}),N={bind:"监听IP",port:"监听端口",cachesize:"最大缓存容量",maxconn:"最大连接数限制",curr_connections:"当前打开的连接数",cmd_get:"GET请求数",get_hits:"GET命中次数",get_misses:"GET失败次数",hit:"GET命中率",curr_items:"当前被缓存的数据行数",evictions:"因内存不足而被清理的缓存行数",bytes:"当前已使用内存",bytes_read:"请求总大小",bytes_written:"发送总大小"},B=f("service"),D=f(""),R=f(!1),Z=f(!1),J=f([]),Q=d({ip:"",cachesize:"",maxconn:"",port:"",btn_set_memcached:""}),X=f(""),$=f([]),K=function(){var e=u(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a({loading:R,request:z(),success:function(e){Q.ip=e.data.bind,Q.cachesize=e.data.cachesize,Q.maxconn=e.data.maxconn,Q.port=e.data.port}});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=u(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a({loading:"正在保存中,请稍后...",request:I(Q),message:!0});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),W=function(){var e=u(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a({loading:R,request:z(),success:function(e){J.value=[];var n=["bytes","bytes_read","bytes_written"];Object.keys(e.data).forEach(function(t){"limit_maxbytes"!==t&&J.value.push({name:t,ps:N[t],value:n.includes(t)?i(Number(e.data[t])):e.data[t]})})}});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=u(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a({loading:R,request:U({path:"/etc/init.d/memcached"}),data:{data:[String,D]}});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=u(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a({loading:"正在保存中,请稍后...",request:o({path:"/etc/init.d/memcached",data:D.value,encoding:"utf-8"}),message:!0});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),ne=function(e){switch(e.props.name){case"service":te();break;case"performance":K();break;case"config":Y();break;case"load":W()}},te=function(e){B.value="service",e&&(M.value=e),r.init(M.value),H.init(M.value),X.value=M.value.version.split(".")[0]+"."+M.value.version.split(".")[1],$.value=M.value.versions},re={class:"my-[12px]"},ae={class:"flex flex-col text-secondary performance"},ue={class:"flex items-center"},oe={class:"flex items-center"},ie={class:"flex items-center"},ce={class:"flex items-center"};n("default",s(p({__name:"index",props:{compData:{default:{}}},setup:function(n){var t=n;return m(function(){te(t.compData)}),function(n,t){var r=S,a=G,u=C,o=O,i=k,s=c,f=T,d=E,p=l,m=y("bt-loading");return v(),b(p,{modelValue:w(B),"onUpdate:modelValue":t[5]||(t[5]=function(e){return j(B)?B.value=e:null}),type:"left-bg-card",onTabClick:w(ne)},{default:h(function(){return[_(r,{label:"服务",name:"service"},{default:h(function(){return[_(P),_(F)]}),_:1}),_(r,{label:"配置文件",name:"config"},{default:h(function(){return[t[7]||(t[7]=g("span",{class:"my-[4px] text-secondary"},"提示:Ctrl+F 搜索关键字,Ctrl+S 保存,Ctrl+H 查找替换",-1)),g("div",re,[x(_(a,{class:"!h-[36rem] !w-[full]",modelValue:w(D),"onUpdate:modelValue":t[0]||(t[0]=function(e){return j(D)?D.value=e:null}),id:"configContent",filePath:"/etc/init.d/memcached"},null,8,["modelValue"]),[[m,w(R)]])]),_(u,{onClick:w(ee),type:"primary"},{default:h(function(){return e(t[6]||(t[6]=[V("保存",-1)]))}),_:1},8,["onClick"]),t[8]||(t[8]=g("ul",{class:"leading-8 mt-20px text-small list-disc ml-[20px]"},[g("li",null,"此处为memcached主配置文件,若您不了解配置规则,请勿随意修改")],-1))]}),_:1}),_(r,{label:"负载状态",name:"load"},{default:h(function(){return[x((v(),b(i,{"max-height":"500",data:w(J),border:"",style:{width:"100%"}},{default:h(function(){return[_(o,{prop:"name",label:"字段"}),_(o,{prop:"value",label:"当前值"}),_(o,{prop:"ps",label:"说明"})]}),_:1},8,["data"])),[[m,w(R)]])]}),_:1}),x((v(),b(r,{label:"性能调整",name:"performance"},{default:h(function(){return[g("div",ae,[_(d,{model:w(Q)},{default:h(function(){return[_(f,{label:"BindIp"},{default:h(function(){return[g("div",ue,[_(s,{modelValue:w(Q).ip,"onUpdate:modelValue":t[1]||(t[1]=function(e){return w(Q).ip=e})},null,8,["modelValue"]),t[9]||(t[9]=g("span",{class:"unit"},"监听IP,请勿随意修改",-1))])]}),_:1}),_(f,{label:"PORT"},{default:h(function(){return[g("div",oe,[_(s,{modelValue:w(Q).port,"onUpdate:modelValue":t[2]||(t[2]=function(e){return w(Q).port=e}),type:"number"},null,8,["modelValue"]),t[10]||(t[10]=g("span",{class:"unit"}," 监听端口,一般无需修改",-1))])]}),_:1}),_(f,{label:"CACHESIZE"},{default:h(function(){return[g("div",ie,[_(s,{modelValue:w(Q).cachesize,"onUpdate:modelValue":t[3]||(t[3]=function(e){return w(Q).cachesize=e}),type:"number"},null,8,["modelValue"]),t[11]||(t[11]=g("span",{class:"unit"}," MB,缓存大小,建议不要大于512M",-1))])]}),_:1}),_(f,{label:"MAXCONN"},{default:h(function(){return[g("div",ce,[_(s,{modelValue:w(Q).maxconn,"onUpdate:modelValue":t[4]||(t[4]=function(e){return w(Q).maxconn=e}),type:"number"},null,8,["modelValue"]),t[12]||(t[12]=g("span",{class:"unit"},"最大连接数,建议不要大于40960",-1))])]}),_:1}),_(f,{label:" "},{default:h(function(){return[_(u,{onClick:w(L),type:"primary"},{default:h(function(){return e(t[13]||(t[13]=[V("保存",-1)]))}),_:1},8,["onClick"])]}),_:1})]}),_:1},8,["model"])])]}),_:1})),[[m,w(Z)]])]}),_:1},8,["modelValue","onTabClick"])}}}),[["__scopeId","data-v-44840559"]]))}}})}();