~ 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.230 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/dsh-services~71e885bc.92387efe.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dsh-services~71e885bc"],{"2e96":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:{search:e.search_keyword,headers:e.tableHeaders,data:e.tableRows,sortDesc:!1,sortBy:"id",itemsPerPage:-1,customFilter:e.customFilter},scopedSlots:e._u([{key:"id",fn:function(t){var s=t.data.item.id;return[r("router-link",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s},expression:"{ keyword: search_keyword, txt: id }"}],key:s,staticClass:"rsrc-link",attrs:{to:"/dashboard/services/"+s}},[e._v(" "+e._s(s)+" ")])]}},{key:"state",fn:function(t){var s=t.data.item.state;return[r("icon-sprite-sheet",{staticClass:"service-state-icon mr-1",attrs:{size:"16",frame:e.$helpers.serviceStateIcon(s)}},[e._v(" services ")]),r("span",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:s},expression:"{ keyword: search_keyword, txt: state }"}]},[e._v(e._s(s)+" ")])]}},{key:"header-append-routingTargets",fn:function(){return[r("span",{staticClass:"ml-1 mxs-color-helper text-grayed-out"},[e._v(" ("+e._s(e.routingTargetsLength)+") ")])]},proxy:!0},{key:"routingTargets",fn:function(t){var s=t.data.item.routingTargets;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: routingTargets }"}]},[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].id},expression:"{ keyword: search_keyword, txt: routingTargets[0].id }"}],staticClass:"rsrc-link",attrs:{to:"/dashboard/"+s[0].type+"/"+s[0].id}},[e._v(" "+e._s(s[0].id)+" ")])]:r("v-menu",{attrs:{top:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1,"open-on-hover":"","content-class":"shadow-drop","min-width":1},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)+" targets ")])]}}],null,!0)},[r("v-sheet",{staticClass:"pa-4"},e._l(s,(function(t){return r("router-link",{directives:[{name:"mxs-highlighter",rawName:"v-mxs-highlighter",value:{keyword:e.search_keyword,txt:t.id},expression:"{ keyword: search_keyword, txt: target.id }"}],key:t.id,staticClass:"text-body-2 d-block rsrc-link",attrs:{to:"/dashboard/"+t.type+"/"+t.id}},[e._v(" "+e._s(t.id)+" ")])})),1)],1)]}}])})},a=[],i=(r("13d5"),r("caad"),r("ddb0"),r("2f62")),n={name:"services",data(){return{tableHeaders:[{text:"Service",value:"id",autoTruncate:!0},{text:"State",value:"state"},{text:"Router",value:"router"},{text:"Current Sessions",value:"connections",autoTruncate:!0},{text:"Total Sessions",value:"total_connections",autoTruncate:!0},{text:this.$mxs_t("routingTargets"),value:"routingTargets",autoTruncate:!0}],routingTargetsLength:0}},computed:{...Object(i["e"])({search_keyword:"search_keyword",all_services:e=>e.service.all_services,ROUTING_TARGET_RELATIONSHIP_TYPES:e=>e.app_config.ROUTING_TARGET_RELATIONSHIP_TYPES}),tableRows(){let e=[],t=[];this.all_services.forEach(r=>{const{id:s,attributes:{state:a,router:i,connections:n,total_connections:o},relationships:c={}}=r||{},d=Object.keys(c).reduce((e,t)=>(this.ROUTING_TARGET_RELATIONSHIP_TYPES.includes(t)&&(e=[...e,...this.$typy(c[t],"data").safeArray]),e),[]),l=d.length?d:this.$mxs_t("noEntity",{entityName:this.$mxs_t("routingTargets")});"string"!==typeof l&&(t=[...t,...l]);const h={id:s,state:a,router:i,connections:n,total_connections:o,routingTargets:l};e.push(h)});const r=new Set(t.map(e=>e.id));return this.setRoutingTargetsLength([...r].length),e}},methods:{setRoutingTargetsLength(e){this.routingTargetsLength=e},customFilter(e,t){let r=""+e;return this.$typy(e).isArray&&(r=e.map(e=>e.id).join(", ")),this.$helpers.ciStrIncludes(r,t)}}},o=n,c=r("2877"),d=r("6544"),l=r.n(d),h=r("e449"),u=r("8dd9"),g=Object(c["a"])(o,s,a,!1,null,null,null);t["default"]=g.exports;l()(g,{VMenu:h["a"],VSheet:u["a"]})}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com