~ K A L I ~
UNAME : Linux web63.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.63 -________-
CLIENT IP : 216.73.216.254 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/dsh-servers~a204d7be.7d4b403d.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dsh-servers~a204d7be"],{"0377":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("data-table",{attrs:{headers:e.tableHeaders,data:e.tableRows,colsHasRowSpan:2,search:e.search_keyword,sortBy:"groupId",itemsPerPage:-1},scopedSlots:e._u([{key:"header-append-groupId",fn:function(){return[r("span",{staticClass:"ml-1 mxs-color-helper text-grayed-out"},[e._v(" ("+e._s(e.monitorsLength)+") ")])]},proxy:!0},{key:"header-append-id",fn:function(){return[r("span",{staticClass:"ml-1 mxs-color-helper text-grayed-out"},[e._v(" ("+e._s(e.all_servers.length)+") ")])]},proxy:!0},{key:"header-append-serviceIds",fn:function(){return[r("span",{staticClass:"ml-1 mxs-color-helper text-grayed-out"},[e._v(" ("+e._s(e.servicesLength)+") ")])]},proxy:!0},{key:"groupId",fn:function(t){var s=t.data.item.groupId;return[s!==e.$mxs_t("not",{action:"monitored"})?r("router-link",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s},expression:"{ keyword: search_keyword, txt: groupId }"}],staticClass:"rsrc-link font-weight-bold",attrs:{to:"/dashboard/monitors/"+s}},[e._v(" "+e._s(s)+" ")]):r("span",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s},expression:"{ keyword: search_keyword, txt: groupId }"}]},[e._v(" "+e._s(s)+" ")])]}},{key:"groupId-append",fn:function(t){var s=t.data.item.groupId;return[e.isCooperative(s)?r("span",{staticClass:"ml-1 mxs-color-helper text-success cooperative-indicator"},[e._v(" Primary ")]):e._e()]}},{key:"monitorState",fn:function(t){var s=t.data.item.monitorState;return[r("div",{staticClass:"d-flex align-center"},[s?r("icon-sprite-sheet",{staticClass:"monitor-state-icon mr-1",attrs:{size:"16",frame:e.$helpers.monitorStateIcon(s)}},[e._v(" monitors ")]):e._e(),r("span",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s},expression:"{ keyword: search_keyword, txt: monitorState }"}]},[e._v(" "+e._s(s)+" ")])],1)]}},{key:"id",fn:function(t){var s=t.data.item,a=s.id,o=s.isSlave,i=s.isMaster,n=s.serverInfo;return void 0===n&&(n=[]),[r("rep-tooltip",{attrs:{disabled:!(o||i),serverInfo:n,isMaster:i,"open-delay":400,top:!0},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on;return[r("div",e._g({class:{"override-td--padding disable-auto-truncate pointer text-truncate":o||i}},s),[r("router-link",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:a},expression:"{ keyword: search_keyword, txt: id }"}],staticClass:"rsrc-link",attrs:{to:"/dashboard/servers/"+a}},[e._v(" "+e._s(a)+" ")])],1)]}}],null,!0)})]}},{key:"serverState",fn:function(t){var s=t.data.item,a=s.serverState,o=s.isSlave,i=s.isMaster,n=s.serverInfo;return void 0===n&&(n=[]),[a?r("rep-tooltip",{attrs:{disabled:!(o||i),serverInfo:n,isMaster:i,top:!0},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on;return[r("div",e._g({staticClass:"override-td--padding",class:{pointer:o||i}},s),[r("icon-sprite-sheet",{staticClass:"mr-1 server-state-icon",attrs:{size:"16",frame:e.$helpers.serverStateIcon(a)}},[e._v(" servers ")]),r("span",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:a},expression:"{ keyword: search_keyword, txt: serverState }"}]},[e._v(" "+e._s(a)+" ")])],1)]}}],null,!0)}):e._e()]}},{key:"serviceIds",fn:function(t){var s=t.data.item.serviceIds;return["string"===typeof s?r("span",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s},expression:"{ keyword: search_keyword, txt: serviceIds }"}]},[e._v(" "+e._s(s)+" ")]):1===s.length?[r("router-link",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s[0]},expression:"{ keyword: search_keyword, txt: serviceIds[0] }"}],staticClass:"rsrc-link",attrs:{to:"/dashboard/services/"+s[0]}},[e._v(" "+e._s(s[0])+" ")])]:r("v-menu",{attrs:{top:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1,"open-on-hover":"","allow-overflow":"","content-class":"shadow-drop"},scopedSlots:e._u([{key:"activator",fn:function(t){var a=t.on;return[r("div",e._g({staticClass:"pointer mxs-color-helper text-anchor override-td--padding disable-auto-truncate"},a),[e._v(" "+e._s(s.length)+" "+e._s(e.$mxs_tc("services",2).toLowerCase())+" ")])]}}],null,!0)},[r("v-sheet",{staticClass:"pa-4"},e._l(s,(function(t,s){return r("router-link",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:t},expression:"{ keyword: search_keyword, txt: serviceId }"}],key:s,staticClass:"text-body-2 d-block rsrc-link",attrs:{to:"/dashboard/services/"+t}},[e._v(" "+e._s(t)+" ")])})),1)],1)]}}])})},a=[],o=(r("ddb0"),r("2f62")),i={data(){return{tableHeaders:[{text:"Monitor",value:"groupId",autoTruncate:!0,padding:"0px 0px 0px 24px"},{text:"State",value:"monitorState",padding:"0px 12px 0px 24px"},{text:"Servers",value:"id",autoTruncate:!0,padding:"0px 0px 0px 24px"},{text:"Address",value:"serverAddress",padding:"0px 0px 0px 24px"},{text:"Connections",value:"serverConnections",autoTruncate:!0,padding:"0px 0px 0px 24px"},{text:"State",value:"serverState",padding:"0px 0px 0px 24px"},{text:"GTID",value:"gtid",padding:"0px 0px 0px 24px"},{text:"Services",value:"serviceIds",autoTruncate:!0}],servicesLength:0,monitorsLength:0,monitorSupportsReplica:"mariadbmon"}},computed:{...Object(o["e"])({search_keyword:"search_keyword",all_servers:e=>e.server.all_servers}),...Object(o["c"])({getAllMonitorsMap:"monitor/getAllMonitorsMap",getAllServersMap:"server/getAllServersMap"}),tableRows:function(){let e=[];if(this.all_servers.length){let t=[],r=[],s=this.$helpers.lodash.cloneDeep(this.getAllMonitorsMap);this.all_servers.forEach(a=>{const{id:o,attributes:{state:i,parameters:{address:n,port:d,socket:l},statistics:{connections:c},gtid_current_pos:p},relationships:{services:{data:h=[]}={},monitors:{data:v=[]}={}}}=a,u=h.length?h.map(e=>""+e.id):this.$mxs_t("noEntity",{entityName:"services"});"string"!==typeof u&&(t=[...t,...u]);let g={id:o,serverAddress:l||`${n}:${d}`,serverConnections:c,serverState:i,serviceIds:u,gtid:p};if(this.getAllMonitorsMap.size&&v.length){const{id:e=null,attributes:{state:t,module:a,monitor_diagnostics:{master:o,server_info:i=[]}={}}={}}=this.getAllMonitorsMap.get(v[0].id)||{};e&&(r.push(e),g.groupId=e,g.monitorState=t,a===this.monitorSupportsReplica&&(o===g.id?(g.isMaster=!0,g.serverInfo=i.filter(e=>e.name!==o)):(g.isSlave=!0,g.serverInfo=i.filter(e=>e.name===g.id))),s.delete(e))}else g.groupId=this.$mxs_t("not",{action:"monitored"}),g.monitorState="";e.push(g)}),s.forEach(t=>{r.push(t.id),e.push({id:"",serverAddress:"",serverConnections:"",serverState:"",serviceIds:"",gtid:"",groupId:t.id,monitorState:t.attributes.state})});const a=new Set(t);this.setServicesLength([...a].length);const o=new Set(r);this.setMonitorsLength([...o].length)}return e}},methods:{setServicesLength(e){this.servicesLength=e},setMonitorsLength(e){this.monitorsLength=e},isCooperative(e){return this.$typy(this.getAllMonitorsMap.get(e),"attributes.monitor_diagnostics.primary").safeBoolean}}},n=i,d=(r("2184"),r("2877")),l=r("6544"),c=r.n(l),p=r("e449"),h=r("8dd9"),v=Object(d["a"])(n,s,a,!1,null,"09be3fdc",null);t["default"]=v.exports;c()(v,{VMenu:p["a"],VSheet:h["a"]})},2184:function(e,t,r){"use strict";r("59b9")},"59b9":function(e,t,r){}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com