← Back
Editing: index-legacy26.js
!function(){function e(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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 t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return o="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},o(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.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(e){f=function(e,t,r){return e[t]=r}}function v(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),c=new H(n||[]);return a(i,"_invoke",{value:M(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=v;var h="suspendedStart",m="suspendedYield",p="executing",g="completed",y={};function w(){}function b(){}function x(){}var _={};f(_,c,(function(){return this}));var z=Object.getPrototypeOf,L=z&&z(z(C([])));L&&L!==r&&n.call(L,c)&&(_=L);var j=x.prototype=w.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(a,i,c,l){var u=d(e[a],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):t.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return r("throw",e,c,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function M(t,r,n){var o=h;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=V(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:m,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function V(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,V(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=d(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function H(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=x,a(j,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},k(O.prototype),f(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new O(v(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(j),f(j,s,"Generator"),f(j,c,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),t.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}},t.values=C,H.prototype={constructor:H,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){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(!u)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&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):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),y},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),E(r),y}},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;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function u(e,t,r,n,o,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(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){u(a,n,o,i,c,"next",e)}function c(e){u(a,n,o,i,c,"throw",e)}i(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./useMethods-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var i,c,u,f,v,d,h,m,p,g,y,w,b,x,_,z,L,j,k,O,M,V,S,E,H,C,A,P,N,I,D,G,T,B,F,U,J,K,R,Y,q,$;return{setters:[function(e){i=e.r,c=e.k,u=e.g,f=e.c,v=e.aE,d=e.w,h=e.p,m=e.n,p=e.a4,g=e.G,y=e.q,w=e.v,b=e.y,x=e.x,_=e.H,z=e.I,L=e.e,j=e.A,k=e.z,O=e.B,M=e.aN,V=e.F,S=e.a_,E=e.J,H=e.K,C=e.aj,A=e.S,P=e.D,N=e.av,I=e.M,D=e.ai,G=e.b3},function(e){T=e._},function(e){B=e.ah,F=e.aK,U=e.u,J=e._,K=e.R,R=e.w,Y=e.e},function(e){q=e.C,$=e.o},null,null,null],execute:function(){var n=i({containers:{usage:"0",total:"0",size:"-"},images:{usage:"0",total:"0",size:"-"},volumes:{usage:"0",total:"0",size:"-"},networks:{usage:0,total:0},composes:{usage:0,total:0},mirrors:0}),Q=i({search:"",rule:"ALL"}),W=[{label:"全部",value:"ALL"},{label:"运行中",value:"running"},{label:"已停止",value:"exited"}],X=i([]),Z=i(null===localStorage.getItem("hideDockerOverview")||!!Number(localStorage.getItem("hideDockerOverview"))),ee=c({cpu:{percentage:0,load:!0},memory:{percentage:0,userd:0,all:0,load:!0},total:0,p:1,row:50,loading:!1,errmsg:""}),te=null,re=function(){var e=s(l().mark((function e(t,r){var n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{o=JSON.parse(r.data),0!=Object.keys((null===(n=o.data)||void 0===n?void 0:n.container_list)||{}).length?ie(o.data):o.end&&!o.data.container_list&&(ee.errmsg=o.msg,ee.loading=!1)}catch(t){}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),ne=function(){var e=s(l().mark((function e(){var t,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:t=e.sent,(r=t.data).status&&(n.value=r.data);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=s(l().mark((function e(){var t,r,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ee.loading=!0,o=void 0,null===(o=te)||void 0===o||o.close(),te=B({route:"/ws_model",onMessage:re}),n={model_index:"btdocker",mod_name:"container",def_name:"get_all_stats",ws_callback:111},null===(t=te)||void 0===t||t.send(n),null===(r=te)||void 0===r||r.send(n);case 5:case"end":return e.stop()}var o}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(e,t){t.value&&(t.value.scrollHeight,Z.value=e,localStorage.setItem("hideDockerOverview",e?"1":"0"))},ie=function(e){0!==Object.keys(e.container_list).length&&(X.value=Object.entries(e.container_list).map((function(e){var t=a(e,2),n=(t[0],t[1]);return"object"===o(n)&&null!==n?r(r({},n),{},{cpu_usage:Number(n.cpu_usage||0),mem_percent:Number(n.mem_percent||0)}):{}})),ee.loading&&(ee.loading=!1))},ce=function(){var e=s(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{ne(),oe()}catch(t){}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e;null===(e=te)||void 0===e||e.close(),te=null,X.value=[],ee.loading=!1,ee.errmsg="",ee.cpu.percentage=0,ee.cpu.load=!0,ee.memory.percentage=0,ee.memory.userd=0,ee.memory.all=0,ee.memory.load=!0,ee.total=0,ee.p=1,ee.row=50},ue=[{color:"#20a53a",percentage:70},{color:"#f7b851",percentage:90},{color:"#ef0808",percentage:100}],se=u((function(){return 0===X.value.length&&!ee.loading})),fe=u((function(){var t=e(X.value);if("ALL"!==Q.value.rule){var r="running"===Q.value.rule;t=t.filter((function(e){return r?"running"===e.status:"running"!==e.status}))}if(Q.value.search){var n=Q.value.search.toLowerCase();t=t.filter((function(e){return e.name.includes(n)||e.image.toLowerCase().includes(n)}))}return t})),ve={class:"module-ui"},de={class:"svgtofont-el-arrow-down-bold text-[1.6rem]"},he={class:"svgtofont-el-arrow-up-bold text-[1.6rem]"},me={class:"use-menu-list"},pe={class:"use-content"},ge={class:"use-subtitle"},ye={class:"use-content"},we={class:"use-content"},be={class:"use-subtitle"},xe={class:"use-content"},_e={class:"use-content"},ze={class:"use-subtitle"},Le={class:"use-content"},je={class:"mt-[12px] module-ui"},ke={class:"flex justify-between mb-1rem"},Oe={class:"flex items-center"},Me={class:"mr-[1.2rem] w-[10rem]"},Ve={class:"w-[26rem] mr-[1.2rem]"},Se={class:"p-[1.6rem] relative pl-[6.3rem] border-b border-[#ececec] flex flex-col justify-between"},Ee=["onClick"],He=["onClick"],Ce={class:"w-[90%] truncate"},Ae={class:"w-full truncate leading-[1.3] text-[#6b7280]"},Pe={class:"whitespace-nowrap"},Ne={class:"w-full p-[2rem]"},Ie={class:"mb-[1rem]"},De={class:"flex items-center justify-between mb-[.6rem]"},Ge={class:"flex items-center justify-between mb-[.6rem]"},Te={class:"text-[1.2rem]"};t("default",Y(f({__name:"index",setup:function(e,t){var r=t.expose,o=U().mainHeight,a=v(),c=i(null),l=i(0),u=function(){l.value=o.value-470},s=function(){l.value=o.value-280},f=function(e){a.push(e)};return d(o,(function(e){e&&(l.value=Z.value?o.value-280:o.value-470)}),{immediate:!0}),h((function(){ce(),m((function(){!function(e){var t=null!==localStorage.getItem("hideDockerOverview")?Z.value:window.innerHeight<=700;ae(t,e)}(c)}))})),r({init:ce,destroy:le}),p((function(){le()})),function(e,t){var r=D,o=C,a=A,i=P,v=T,d=G,h=N,m=g("bt-loading");return y(),w("div",null,[b("div",ve,[b("div",{class:"text-[1.6rem] flex justify-between items-center cursor-pointer",onClick:t[0]||(t[0]=function(e){return t=!x(Z),void ae(t,c);var t})},[t[10]||(t[10]=b("div",{class:"font-bold text-[1.8rem]"},"资源概览",-1)),b("div",null,[_(b("span",de,null,512),[[z,x(Z)]]),_(b("span",he,null,512),[[z,!x(Z)]])])]),L(M,{name:"slide-down",mode:"out-in",onAfterLeave:s,onBeforeEnter:u},{default:j((function(){return[_(b("div",{ref_key:"useMenuRef",ref:c,class:"use-menu-box"},[b("div",me,[b("div",{class:"use-menu-card",onClick:t[1]||(t[1]=function(e){return f("/docker/containers")})},[t[12]||(t[12]=b("div",{class:"card-icon containers-icon"},[b("svg",{t:"1750640949761",class:"icon",viewBox:"0 0 1031 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4657",width:"200",height:"200"},[b("path",{d:"M248.332363 1023.995632a21.839416 21.839416 0 0 1-11.374696-3.093917L11.374696 890.684195A22.749392 22.749392 0 0 1 0 871.02872V610.593681a22.931387 22.931387 0 0 1 11.374696-19.746472L236.593677 460.629689a23.022385 23.022385 0 0 1 22.749392 0l225.855963 130.21752a22.931387 22.931387 0 0 1 11.374696 19.746472v260.435039a22.749392 22.749392 0 0 1-11.374696 19.655475l-225.491973 130.21752a22.294404 22.294404 0 0 1-11.374696 3.093917zM45.498784 857.925071l202.833579 117.022872 202.742581-117.022872V623.697331L248.332363 506.674458 45.498784 623.697331z m428.325552 13.103649zM782.579084 1023.995632a22.294404 22.294404 0 0 1-11.374696-3.093917L545.985408 890.684195a22.749392 22.749392 0 0 1-11.374696-19.655475V610.593681A22.931387 22.931387 0 0 1 545.985408 590.847209l225.491973-130.21752a23.022385 23.022385 0 0 1 22.749392 0l225.582971 130.21752a22.931387 22.931387 0 0 1 11.374696 19.746472v260.435039a22.749392 22.749392 0 0 1-11.374696 19.655475l-225.582971 130.21752a21.839416 21.839416 0 0 1-11.647689 3.093917zM580.109496 857.925071L782.579084 974.947943l202.833579-117.022872V623.697331L782.579084 506.674458 580.109496 623.697331z m428.325552 13.103649zM512.862293 566.368863a21.839416 21.839416 0 0 1-11.374696-3.093917L275.904626 433.057426a22.749392 22.749392 0 0 1-11.374696-19.655475V152.966912a22.931387 22.931387 0 0 1 11.374696-19.746473L501.487597 3.00292a23.022385 23.022385 0 0 1 22.749392 0l225.491973 130.217519a22.931387 22.931387 0 0 1 11.374696 19.746473v260.435039a22.749392 22.749392 0 0 1-11.374696 19.655475L524.236989 563.274946a22.294404 22.294404 0 0 1-11.374696 3.093917zM310.028714 400.389299l202.833579 116.931875L715.604874 400.389299V166.070562L512.862293 49.047689 310.028714 166.070562z m428.325552 13.10365z","p-id":"4658",fill:"#409eff"}),b("path",{d:"M512.862293 297.380052a23.295377 23.295377 0 0 1-11.465694-3.093917l-142.593189-82.443797a22.749392 22.749392 0 0 1 0-39.401947L501.396599 89.996595a23.20438 23.20438 0 0 1 22.84039 0L666.830178 172.895379a22.749392 22.749392 0 0 1 0 39.401947l-142.593189 81.988809a23.20438 23.20438 0 0 1-11.374696 3.093917zM415.67689 192.186864l97.185403 56.145499L609.683705 192.186864 512.862293 136.496352zM248.332363 763.560593a22.385402 22.385402 0 0 1-11.738686-3.093918l-142.593189-81.897811a22.931387 22.931387 0 0 1-11.374696-19.746472 22.749392 22.749392 0 0 1 11.374696-19.655475L236.593677 556.268133a22.749392 22.749392 0 0 1 22.840389 0l142.593189 82.443796a22.749392 22.749392 0 0 1 11.374696 19.655475 22.931387 22.931387 0 0 1-11.374696 19.746472l-142.593189 81.897812a22.294404 22.294404 0 0 1-11.101703 3.548905zM151.14696 658.367404l97.185403 56.1455L345.790758 658.367404l-97.458395-56.145499zM782.579084 763.560593a22.294404 22.294404 0 0 1-11.374696-3.093918l-142.593189-81.897811a22.931387 22.931387 0 0 1-11.374696-19.746472 22.749392 22.749392 0 0 1 11.374696-19.655475l142.593189-82.443796a22.749392 22.749392 0 0 1 22.84039 0L937.27495 638.711929a22.749392 22.749392 0 0 1 11.374696 19.655475 22.931387 22.931387 0 0 1-11.374696 19.746472l-142.593189 81.897812a22.385402 22.385402 0 0 1-12.102677 3.548905zM685.757672 658.367404L782.579084 714.512904l97.185403-56.1455L782.579084 602.221905z","p-id":"4659",fill:"#409eff"})])],-1)),t[13]||(t[13]=b("div",{class:"use-title"},"容器数量",-1)),b("div",pe,k(x(n).containers.total),1),b("div",ge,[t[11]||(t[11]=O(" 占用空间")),b("span",null,k(x(n).containers.size),1)])]),b("div",{class:"use-menu-card",onClick:t[2]||(t[2]=function(e){return f("/docker/orchestration")})},[t[14]||(t[14]=b("div",{class:"card-icon composes-icon"},[b("svg",{t:"1750641044372",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5832",width:"200",height:"200"},[b("path",{d:"M232.96 15.36H41.984C18.944 15.36 0 34.304 0 57.344v190.976c0 23.04 18.944 41.984 41.984 41.984h190.976c23.04 0 41.984-18.944 41.984-41.984V57.344c0.512-23.04-18.432-41.984-41.984-41.984z m-1.024 219.136c0 7.168-6.144 12.288-12.8 12.288H56.32c-7.168 0-12.8-6.144-12.8-12.288V71.68c0-7.168 6.144-12.288 12.8-12.288h162.816c7.168 0 12.8 6.144 12.8 12.288v162.816zM232.96 370.688H41.984c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h190.976c23.04 0 41.984-18.944 41.984-41.984V412.16c0.512-23.552-18.432-41.472-41.984-41.472z m-1.024 218.624c0 7.168-6.144 12.288-12.8 12.288H56.32c-7.168 0-12.8-6.144-12.8-12.288V425.984c0-7.168 6.144-12.288 12.8-12.288h162.816c7.168 0 12.8 6.144 12.8 12.288v163.328zM232.96 724.992H41.984c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h190.976c23.04 0 41.984-18.944 41.984-41.984v-190.976c0.512-23.04-18.432-41.984-41.984-41.984z m-1.024 219.136c0 7.168-6.144 12.288-12.8 12.288H56.32c-7.168 0-12.8-6.144-12.8-12.288v-162.816c0-7.168 6.144-12.288 12.8-12.288h162.816c7.168 0 12.8 6.144 12.8 12.288v162.816zM982.016 15.36H397.312c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h584.704c23.04 0 41.984-18.944 41.984-41.984V57.344c-0.512-23.04-18.944-41.984-41.984-41.984z m-2.048 219.136c0 7.168-6.144 12.288-12.8 12.288H411.136c-7.168 0-12.8-6.144-12.8-12.288V71.68c0-7.168 6.144-12.288 12.8-12.288H967.68c7.168 0 12.8 6.144 12.8 12.288v162.816h-0.512zM982.016 370.688H397.312c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h584.704c23.04 0 41.984-18.944 41.984-41.984V412.16c-0.512-23.552-18.944-41.472-41.984-41.472z m-2.048 218.624c0 7.168-6.144 12.288-12.8 12.288H411.136c-7.168 0-12.8-6.144-12.8-12.288V425.984c0-7.168 6.144-12.288 12.8-12.288H967.68c7.168 0 12.8 6.144 12.8 12.288v163.328h-0.512zM982.016 724.992H397.312c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h584.704c23.04 0 41.984-18.944 41.984-41.984v-190.976c-0.512-23.04-18.944-41.984-41.984-41.984z m-2.048 219.136c0 7.168-6.144 12.288-12.8 12.288H411.136c-7.168 0-12.8-6.144-12.8-12.288v-162.816c0-7.168 6.144-12.288 12.8-12.288H967.68c7.168 0 12.8 6.144 12.8 12.288v162.816h-0.512z",fill:"#20a53a","p-id":"5833"})])],-1)),t[15]||(t[15]=b("div",{class:"use-title"},"编排数量",-1)),b("div",ye,k(x(n).composes.total),1),t[16]||(t[16]=b("div",{class:"use-subtitle"},"Docker Compose 项目",-1))]),b("div",{class:"use-menu-card",onClick:t[3]||(t[3]=function(e){return f("/docker/images")})},[t[18]||(t[18]=b("div",{class:"card-icon images-icon"},[b("svg",{t:"1750641093279",class:"icon",viewBox:"0 0 1117 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6884",width:"200",height:"200"},[b("path",{d:"M442.898361 116.049051l2.23404 0.74468L74.840328 1.368349A61.901515 61.901515 0 0 0 0 61.966675v883.283427a61.9946 61.9946 0 0 0 74.840328 60.598326l379.507486-118.124847a77.074368 77.074368 0 0 0 41.981329-68.510549V189.58619a77.539793 77.539793 0 0 0-53.430782-73.537139zM403.244157 792.218386L93.084986 874.412428V132.618179l310.159171 82.380212v577.12691zM1054.466716 0.065159a77.260538 77.260538 0 0 0-12.845728 1.30319L675.796995 115.490542l1.30319-0.18617a77.446708 77.446708 0 0 0-56.968012 74.467988v629.161417c0 29.88028 17.034552 55.850991 41.981329 68.696719l379.228231 118.217932a61.9946 61.9946 0 0 0 75.026498-60.691411V61.966675a61.529175 61.529175 0 0 0-61.901515-61.808431z",fill:"#20a53a",opacity:".801","p-id":"6885"})])],-1)),t[19]||(t[19]=b("div",{class:"use-title"},"镜像数量",-1)),b("div",we,k(x(n).images.total),1),b("div",be,[t[17]||(t[17]=O(" 占用空间")),b("span",null,k(x(n).images.size),1)])]),b("div",{class:"use-menu-card",onClick:t[4]||(t[4]=function(e){return f("/docker/network")})},[t[20]||(t[20]=b("div",{class:"card-icon networks-icon"},[b("svg",{t:"1750641121238",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8080",width:"200",height:"200"},[b("path",{d:"M372.305 745.773C403.023 787.057 441.673 822.09 486 848.615v-127.74c-39.818 2.647-78.01 11.24-113.695 24.898z m-51.609 24.217a392.912 392.912 0 0 0-60.194 41.64h-1.271c56.974 48.113 127.858 80.27 205.76 89.58-57.186-32.69-106.475-77.62-144.295-131.22zM295.985 540c4.004 56.745 20.087 110.155 45.691 157.675 44.903-18.522 93.476-29.956 144.324-32.91V540H295.985z m-56.124 0H120.985c6.296 89.215 42.447 170.188 98.523 232.989a449.204 449.204 0 0 1 71.8-50.725C262.051 667.323 243.903 605.57 239.86 540z m445.864 158.764c25.95-47.793 42.251-101.585 46.29-158.764H541v124.899c51.032 3.215 99.745 14.975 144.725 33.865z m50.207 24.904a449.248 449.248 0 0 1 68.903 48.937c55.88-62.746 91.897-143.571 98.18-232.605H788.138c-4.08 66.13-22.507 128.377-52.206 183.668zM541 849.194c44.394-26.387 83.134-61.292 113.965-102.46-35.735-13.96-74.02-22.825-113.965-25.706v128.166z m23.097 51.374c75.9-10.079 144.941-41.875 200.672-88.937h-0.484a392.964 392.964 0 0 0-57.91-40.348c-37.456 52.683-86.02 96.917-142.278 129.285z m-222.315-574.44c-25.666 47.57-41.787 101.05-45.797 157.872H486V358.884c-50.804-2.916-99.34-14.297-144.218-32.755z m-50.397-24.538a449.186 449.186 0 0 1-71.828-50.634C163.453 313.765 127.283 394.76 120.985 484H239.86c4.047-65.628 22.223-127.432 51.524-182.41zM486 175.385c-44.257 26.483-82.856 61.448-113.551 102.648 35.648 13.593 73.79 22.132 113.551 24.744V175.385z m-21.01-52.595c-77.702 9.286-148.422 41.303-205.321 89.21h0.518a392.903 392.903 0 0 0 60.606 41.872c37.808-53.54 87.06-98.42 144.198-131.082zM654.7 276.878c-30.788-41.016-69.433-75.796-113.7-102.108v127.81c39.849-2.906 78.045-11.77 113.7-25.702z m51.415-24.562A392.966 392.966 0 0 0 763.97 212h0.361c-55.635-46.843-124.483-78.493-200.153-88.558 56.093 32.29 104.535 76.377 141.937 128.874zM732.017 484c-4.045-57.343-20.423-111.282-46.498-159.179C640.6 343.7 591.959 355.465 541 358.712V484h191.017z m56.123 0h114.875c-6.295-89.205-42.439-170.17-98.504-232.968a449.25 449.25 0 0 1-68.79 48.87c29.828 55.4 48.333 117.798 52.42 184.098zM512 960C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448z",fill:"#20a53a","p-id":"8081"})])],-1)),t[21]||(t[21]=b("div",{class:"use-title"},"网络数量",-1)),b("div",xe,k(x(n).networks.total),1),t[22]||(t[22]=b("div",{class:"use-subtitle"},"已创建的网络",-1))]),b("div",{class:"use-menu-card",onClick:t[5]||(t[5]=function(e){return f("/docker/storage")})},[t[24]||(t[24]=b("div",{class:"card-icon volumes-icon"},[b("svg",{t:"1750641138362",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9125",width:"200",height:"200"},[b("path",{d:"M925.27 269.25V758c0 112.46-185.35 203.64-414 203.64s-414-91.18-414-203.64V269.25c0-112.46 185.34-203.63 414-203.63s414 91.17 414 203.63zM842.47 758V269.25c0-43.07-125.73-122.18-331.18-122.18s-331.18 79.11-331.18 122.18V758c0 43.07 125.73 122.18 331.18 122.18S842.47 801.05 842.47 758z",fill:"#20a53a","p-id":"9126"}),b("path",{d:"M925.27 269.25c0 112.47-185.35 203.64-414 203.64s-414-91.17-414-203.64 185.34-203.63 414-203.63 414 91.17 414 203.63z m-82.8 0c0-43.07-125.73-122.18-331.18-122.18s-331.18 79.11-331.18 122.18 125.73 122.18 331.18 122.18 331.18-79.1 331.18-122.18z",fill:"#20a53a","p-id":"9127"}),b("path",{d:"M511.29 554.34c-205.45 0-331.18-79.1-331.18-122.18H97.32c0 112.47 185.34 203.64 414 203.64s414-91.17 414-203.64h-82.8c-0.05 43.08-125.78 122.18-331.23 122.18z",fill:"#20a53a","p-id":"9128"}),b("path",{d:"M511.29 717.25c-205.45 0-331.18-79.11-331.18-122.18H97.32c0 112.47 185.34 203.64 414 203.64s414-91.17 414-203.64h-82.8c-0.05 43.07-125.78 122.18-331.23 122.18z",fill:"#20a53a","p-id":"9129"})])],-1)),t[25]||(t[25]=b("div",{class:"use-title"},"存储卷数量",-1)),b("div",_e,k(x(n).volumes.total),1),b("div",ze,[t[23]||(t[23]=O(" 占用空间")),b("span",null,k(x(n).volumes.size),1)])]),b("div",{class:"use-menu-card",onClick:t[6]||(t[6]=function(e){return f("/docker/warehouse")})},[t[26]||(t[26]=b("div",{class:"card-icon mirrors-icon"},[b("svg",{t:"1750641157017",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10179",width:"200",height:"200"},[b("path",{d:"M528.832 106.432l352 217.92a32 32 0 0 1 15.168 27.2V896a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V351.552a32 32 0 0 1 15.168-27.2l352-217.92a32 32 0 0 1 33.664 0zM512 171.264l-320 198.08V864h640V369.344l-320-198.08z m-253.44 212.832l3.712 0.512 213.344 42.688a32 32 0 0 1 25.504 27.616l0.224 3.744v298.688a32 32 0 0 1-22.08 30.4l-3.648 0.96-213.344 42.688a32 32 0 0 1-38.08-27.68L224 800V416a32 32 0 0 1 34.56-31.904zM800 416v384a32 32 0 0 1-38.272 31.36l-213.344-42.656a32 32 0 0 1-25.728-31.36v-298.688a32 32 0 0 1 25.728-31.36l213.344-42.688A32 32 0 0 1 800 416zM287.968 455.008v305.952l149.344-29.856v-246.24l-149.344-29.856z m448.032 0l-149.344 29.856v246.24L736 760.96v-305.952z","p-id":"10180",fill:"#20a53a"})])],-1)),t[27]||(t[27]=b("div",{class:"use-title"},"镜像仓库数量",-1)),b("div",Le,k(x(n).mirrors),1),t[28]||(t[28]=b("div",{class:"use-subtitle"},"已配置的仓库",-1))])])],512),[[z,!x(Z)]])]})),_:1})]),b("div",je,[b("div",null,[b("div",ke,[t[30]||(t[30]=b("div",{class:"font-bold text-[1.8rem]"},"容器列表",-1)),b("div",Oe,[b("div",Me,[L(o,{modelValue:x(Q).rule,"onUpdate:modelValue":t[7]||(t[7]=function(e){return x(Q).rule=e}),onChange:t[8]||(t[8]=function(e){return x(Q).rule=e})},{default:j((function(){return[(y(!0),w(V,null,S(x(W),(function(e){return y(),I(r,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]),b("div",Ve,[L(a,{modelValue:x(Q).search,"onUpdate:modelValue":t[9]||(t[9]=function(e){return x(Q).search=e}),placeholder:"搜索容器名称或镜像名"},{prefix:j((function(){return t[29]||(t[29]=[b("i",{class:"svgtofont-el-search"},null,-1)])})),_:1},8,["modelValue"])]),L(i,{onClick:x(oe)},{default:j((function(){return[L(x(J),{icon:"el-refresh"})]})),_:1},8,["onClick"])])]),_((y(),w("div",{class:E(x(se)?"flex pt-[1.6rem] justify-center items-center":"con-grid"),ref:"scrollContainer",style:H("height:".concat(x(l),"px;"))},[(y(!0),w(V,null,S(x(fe),(function(e){var r,n,o;return y(),w("div",{key:e.id,class:"w-full border border-[#eee] hover:shadow-[0_0_6px_rgba(0,0,0,.125)] rounded-[.6rem] text-[1.2rem] text-[#999]"},[b("div",Se,[b("span",{class:"monitor svgtofont-el-monitor",onClick:function(t){return x(q)(e)}},null,8,Ee),b("div",{class:"text-[1.6rem] leading-[1.5] mb-[.7rem] w-full truncate cursor-pointer font-bold text-[#444] flex items-center justify-between",onClick:function(t){return x($)(e)}},[b("div",Ce,[L(v,{text:e.name},null,8,["text"])]),b("span",{class:E(["w-[.8rem] h-[.8rem] rounded-full inline-block","running"===e.status?"bg-[#20a53a]":"bg-[#ef0808]"])},null,2)],8,He),b("div",Ae,[L(v,{text:e.image},null,8,["text"])]),b("div",Pe,"创建时间:"+k(x(K)(e.created_time)),1)]),b("div",Ne,[b("div",Ie,[b("div",De,[t[31]||(t[31]=b("div",{class:"text-[1.2rem] text-[#666]"},"CPU使用率",-1)),b("div",{class:E(["text-[1.2rem]",{"text-[#20a53a]":e.cpu_usage<70,"text-[#f7b851]":e.cpu_usage>=70&&e.cpu_usage<90,"text-[#ef0808]":e.cpu_usage>=90}])},k("".concat(null===(r=Number(e.cpu_usage))||void 0===r?void 0:r.toFixed(1),"%")),3)]),L(d,{percentage:e.cpu_usage,color:x(ue),"stroke-width":6,"show-text":!1},null,8,["percentage","color"])]),b("div",null,[b("div",Ge,[t[32]||(t[32]=b("div",{class:"text-[1.2rem] text-[#666]"},"内存使用情况",-1)),b("div",Te,k("".concat(x(R)(null===(n=e.memory_usage)||void 0===n?void 0:n.mem_usage),"/").concat(x(R)(null===(o=e.memory_usage)||void 0===o?void 0:o.mem_limit))),1)]),L(d,{percentage:e.mem_percent,color:x(ue),"stroke-width":6,"show-text":!1},null,8,["percentage","color"])])])])})),128)),_(L(h,{description:x(ee).errmsg},null,8,["description"]),[[z,x(se)]])],6)),[[m,x(ee).loading],[m,"正在加载运行中的容器列表,请稍候...","title"]])])])])}}}),[["__scopeId","data-v-e46e2a3f"]]))}}}))}();
Save File
Cancel