~ 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_64
SERVER IP : 10.0.187.63 -________- CLIENT IP : 216.73.216.230
PATH :/usr/share/maxscale/gui/js/
UP FILE :
MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/server-detail~112ced2d.92c7dca1.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["server-detail~112ced2d"],{bc55:function(e,t,s){},c9ef:function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("page-wrapper",[e.$helpers.lodash.isEmpty(e.current_server)?e._e():s("v-sheet",{staticClass:"pl-6"},[s("page-header",{attrs:{currentServer:e.current_server,onEditSucceeded:e.dispatchFetchServer},on:{"on-count-done":e.fetchAll}}),s("overview-header",{attrs:{currentServer:e.current_server,getRelationshipData:e.getRelationshipData},on:{"on-relationship-update":e.dispatchRelationshipUpdate}}),s("v-tabs",{staticClass:"v-tabs--mariadb-style",model:{value:e.currentActiveTab,callback:function(t){e.currentActiveTab=t},expression:"currentActiveTab"}},[e._l(e.tabs,(function(t){return s("v-tab",{key:t.name},[e._v(" "+e._s(t.name)+" ")])})),s("v-tabs-items",{model:{value:e.currentActiveTab,callback:function(t){e.currentActiveTab=t},expression:"currentActiveTab"}},[s("v-tab-item",{staticClass:"pt-5"},[s("v-row",[s("v-col",{attrs:{cols:"4"}},[s("v-row",[s("v-col",{attrs:{cols:"12"}},[s("details-readonly-table",{ref:"statistics-table",attrs:{title:""+e.$mxs_tc("statistics",2),tableData:e.serverStats,isTree:""}})],1),s("v-col",{attrs:{cols:"12"}},[s("relationship-table",{attrs:{relationshipType:"services",addable:"",removable:"",tableRows:e.serviceTableRow,getRelationshipData:e.getRelationshipData},on:{"on-relationship-update":e.dispatchRelationshipUpdate}})],1)],1)],1),s("v-col",{attrs:{cols:"8"}},[s("sessions-table",{attrs:{collapsible:"",delayLoading:"",headers:e.sessionsTableHeader,items:e.sessionsTableRow,"server-items-length":e.getTotalFilteredSessions},on:{"get-data-from-api":function(t){return e.fetchSessionsWithFilter(e.filterSessionParam)},"confirm-kill":function(t){e.killSession({id:t.id,callback:e.fetchSessionsWithFilter(e.filterSessionParam)})}}})],1)],1)],1),s("v-tab-item",{staticClass:"pt-5"},[s("v-row",[s("v-col",{attrs:{cols:"6"}},[s("details-parameters-table",{attrs:{resourceId:e.current_server.id,parameters:e.current_server.attributes.parameters,usePortOrSocket:"",updateResourceParameters:e.updateServerParameters,onEditSucceeded:e.dispatchFetchServer}})],1),s("v-col",{attrs:{cols:"6"}},[s("details-readonly-table",{ref:"diagnostics-table",attrs:{title:""+e.$mxs_t("monitorDiagnostics"),tableData:e.monitorDiagnostics,expandAll:"",isTree:""}})],1)],1)],1)],1)],2)],1)],1)},a=[],i=(s("ddb0"),s("2f62")),o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("details-page-title",{scopedSlots:e._u([{key:"setting-menu",fn:function(){return[s("details-icon-group-wrapper",{attrs:{multiIcons:""},scopedSlots:e._u([{key:"body",fn:function(){return e._l([e.serverOps[e.SERVER_OP_TYPES.MAINTAIN],e.serverOps[e.SERVER_OP_TYPES.CLEAR]],(function(t){return s("mxs-tooltip-btn",{key:t.text,attrs:{tooltipProps:{bottom:!0},btnClass:t.type+"-btn",text:"",color:t.color,disabled:t.disabled},on:{click:function(s){return e.handleClick(t)}},scopedSlots:e._u([{key:"btn-content",fn:function(){return[s("v-icon",{attrs:{size:t.iconSize}},[e._v(" "+e._s(t.icon)+" ")])]},proxy:!0}],null,!0)},[e._v(" "+e._s(t.text)+" ")])}))},proxy:!0}])}),e._l([e.serverOps[e.SERVER_OP_TYPES.DRAIN],e.serverOps[e.SERVER_OP_TYPES.DELETE]],(function(t){return s("details-icon-group-wrapper",{key:t.text,scopedSlots:e._u([{key:"body",fn:function(){return[s("mxs-tooltip-btn",{attrs:{tooltipProps:{bottom:!0},btnClass:t.type+"-btn",text:"",color:t.color,disabled:t.disabled},on:{click:function(s){return e.handleClick(t)}},scopedSlots:e._u([{key:"btn-content",fn:function(){return[s("v-icon",{attrs:{size:t.iconSize}},[e._v(" "+e._s(t.icon)+" ")])]},proxy:!0}],null,!0)},[e._v(" "+e._s(t.text)+" ")])]},proxy:!0}],null,!0)})}))]},proxy:!0},{key:"append",fn:function(){return[s("portal",{attrs:{to:"page-header--right"}},[s("refresh-rate",e._g({model:{value:e.refreshRate,callback:function(t){e.refreshRate=t},expression:"refreshRate"}},e.$listeners)),s("global-search",{staticClass:"ml-4 d-inline-block"}),s("create-resource",{staticClass:"ml-4 d-inline-block",attrs:{defRelationshipObj:{id:e.$route.params.id,type:e.RELATIONSHIP_TYPES.SERVERS}}})],1),s("mxs-conf-dlg",{attrs:{title:e.dialogTitle,saveText:e.confDlgSaveTxt,type:e.dialogType,item:e.currentServer,smallInfo:e.smallInfo,onSave:e.confirmSave},scopedSlots:e._u(["maintain"===e.dialogType?{key:"body-append",fn:function(){return[s("v-checkbox",{staticClass:"v-checkbox--custom-label mt-2 mb-4",attrs:{label:e.$mxs_t("forceClosing"),color:"primary","hide-details":"",dense:""},model:{value:e.forceClosing,callback:function(t){e.forceClosing=t},expression:"forceClosing"}})]},proxy:!0}:null],null,!0),model:{value:e.isConfDlgOpened,callback:function(t){e.isConfDlgOpened=t},expression:"isConfDlgOpened"}}),s("icon-sprite-sheet",{staticClass:"server-state-icon mr-1",attrs:{size:"16",frame:e.stateIconFrame}},[e._v(" servers ")]),s("span",{staticClass:"mxs-color-helper text-navigation text-body-2 server-healthy"},[e._v(" "+e._s(e.serverHealthy)+" ")]),e.version_string?s("span",{staticClass:"mxs-color-helper text-grayed-out text-body-2"},[e._v(" | "),s("span",{staticClass:"version-string"},[e._v(e._s(e.$mxs_t("version"))+" "+e._s(e.version_string))])]):e._e()]},proxy:!0}])})},n=[],c=s("51ff"),l=s("7f29"),d={name:"page-header",mixins:[c["a"],l["a"]],props:{onEditSucceeded:{type:Function,required:!0},currentServer:{type:Object,required:!0}},data(){return{dialogTitle:"",dialogType:"delete",smallInfo:"",opParams:"",forceClosing:!1,isConfDlgOpened:!1}},computed:{...Object(i["e"])({SERVER_OP_TYPES:e=>e.app_config.SERVER_OP_TYPES,RELATIONSHIP_TYPES:e=>e.app_config.RELATIONSHIP_TYPES}),...Object(i["c"])({getCurrStateMode:"server/getCurrStateMode",getServerOps:"server/getServerOps"}),version_string(){return this.currentServer.attributes.version_string},serverState(){return this.currentServer.attributes.state},stateIconFrame(){return this.$helpers.serverStateIcon(this.serverState)},serverHealthy(){switch(this.stateIconFrame){case 0:return this.$mxs_t("unHealthy");case 1:return this.$mxs_t("healthy");default:return this.$mxs_t("maintenance")}},currStateMode(){return this.getCurrStateMode(this.serverState)},serverOps(){return this.getServerOps({currStateMode:this.currStateMode,scope:this})},confDlgSaveTxt(){const{MAINTAIN:e}=this.SERVER_OP_TYPES;switch(this.dialogType){case e:return"set";default:return this.dialogType}}},methods:{...Object(i["b"])("server",["destroyServer","setOrClearServerState"]),handleClick({type:e,text:t,info:s,params:r}){this.dialogType=e,this.dialogTitle=t,this.opParams=r,this.smallInfo=s,this.isConfDlgOpened=!0},async confirmSave(){const{MAINTAIN:e,CLEAR:t,DRAIN:s,DELETE:r}=this.SERVER_OP_TYPES;switch(this.dialogType){case r:await this.destroyServer(this.currentServer.id),this.goBack();break;case s:case t:case e:await this.setOrClearServerState({id:this.currentServer.id,opParams:this.opParams,type:this.dialogType,callback:this.onEditSucceeded,forceClosing:this.forceClosing});break}}}},u=d,h=s("2877"),p=s("6544"),v=s.n(p),m=s("ac7c"),f=s("132d"),_=Object(h["a"])(u,o,n,!1,null,null,null),S=_.exports;v()(_,{VCheckbox:m["a"],VIcon:f["a"]});var b=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-sheet",{staticClass:"d-flex mb-2"},[e._l(e.getTopOverviewInfo,(function(t,r,a){return s("outlined-overview-card",{key:r,attrs:{wrapperClass:"mt-5",cardClass:"px-10",hoverableCard:"monitor"===r},on:{"card-hover":function(t){e.showEditBtn=t}},scopedSlots:e._u([0===a?{key:"title",fn:function(){return[e._v(" "+e._s(e.$mxs_t("overview"))+" ")]},proxy:!0}:null,{key:"card-body",fn:function(){return[s("span",{staticClass:"detail-overview__card__name text-caption text-uppercase font-weight-bold mxs-color-helper text-deep-ocean"},[e._v(" "+e._s(r.replace("_"," "))+" ")]),"monitor"===r?["undefined"!==t?s("router-link",{key:a,class:[e.valueClass,"rsrc-link"],attrs:{to:"/dashboard/monitors/"+t}},[s("span",[e._v(e._s(t)+" ")])]):s("span",{class:e.valueClass},[e._v(" "+e._s(t)+" ")]),e.showEditBtn?s("v-btn",{staticClass:"monitor-edit-btn",attrs:{icon:""},on:{click:function(){return e.onEdit("monitors")}}},[s("v-icon",{attrs:{size:"18",color:"primary"}},[e._v(" $vuetify.icons.mxs_edit ")])],1):e._e()]:s("span",{class:e.valueClass},"state"===r?[t.indexOf(",")>0?[s("span",{staticClass:"mxs-color-helper font-weight-bold",class:[e.serverStateClass]},[e._v(" "+e._s(t.slice(0,t.indexOf(",")))+" ")]),e._v(" / "),s("span",{staticClass:"mxs-color-helper font-weight-bold",class:[e.serverStateClass]},[e._v(" "+e._s(t.slice(t.indexOf(",")+1))+" ")])]:s("span",{staticClass:"mxs-color-helper font-weight-bold",class:[e.serverStateClass]},[e._v(" "+e._s(t)+" ")])]:[[e._v(" "+e._s("triggered_at"===r&&"undefined"!==t?e.$helpers.dateFormat({moment:e.$moment,value:t,formatType:"DATE_RFC2822"}):t)+" ")]],2)]},proxy:!0}],null,!0)})})),s("mxs-sel-dlg",{attrs:{title:e.dialogTitle,saveText:"change",entityName:e.targetSelectItemType,clearable:"",itemsList:e.itemsList,defaultItems:e.defaultItems,onSave:e.confirmChange},on:{"selected-items":function(t){e.targetItem=t},"on-open":e.getAllEntities},model:{value:e.isSelectDlgOpened,callback:function(t){e.isSelectDlgOpened=t},expression:"isSelectDlgOpened"}})],2)},g=[],y={name:"overview-header",props:{getRelationshipData:{type:Function,required:!0},currentServer:{type:Object,required:!0}},data(){return{showEditBtn:!1,dialogTitle:"",targetItem:null,isSelectDlgOpened:!1,targetSelectItemType:"monitors",itemsList:[],defaultItems:{},valueClass:"detail-overview__card__value text-no-wrap text-body-2"}},computed:{serverStateClass:function(){switch(this.$helpers.serverStateIcon(this.getTopOverviewInfo.state)){case 0:return"text-error";case 1:return"text-success";default:return"text-grayed-out"}},getTopOverviewInfo:function(){const{attributes:{state:e,last_event:t,triggered_at:s,parameters:{address:r,socket:a,port:i}={}}={},relationships:{monitors:o}={}}=this.currentServer;let n={address:r,socket:a,port:i,state:e,last_event:t,triggered_at:s,monitor:o?o.data[0].id:"undefined"};return a?(delete n.address,delete n.port):delete n.socket,Object.keys(n).forEach(e=>n[e]=this.$helpers.convertType(n[e])),n}},methods:{onEdit(e){switch(this.dialogTitle=""+this.$mxs_t("changeEntity",{entityName:this.$mxs_tc(e,1)}),e){case"monitors":this.targetSelectItemType=e;break}this.isSelectDlgOpened=!0},async getAllEntities(){switch(this.targetSelectItemType){case"monitors":{const e=await this.getRelationshipData(this.targetSelectItemType);this.itemsList=e.map(e=>({id:e.id,type:e.type}));const{monitor:t}=this.getTopOverviewInfo;this.defaultItems="undefined"!==t?{id:t,type:"monitors"}:{}}break}},async confirmChange(){switch(this.targetSelectItemType){case"monitors":await this.$emit("on-relationship-update",{type:this.targetSelectItemType,data:this.targetItem});break}}}},T=y,x=(s("e93e"),s("8336")),E=s("8dd9"),R=Object(h["a"])(T,b,g,!1,null,"1b9bc1e8",null),w=R.exports;v()(R,{VBtn:x["a"],VIcon:f["a"],VSheet:E["a"]});var I={name:"server-detail",components:{PageHeader:S,OverviewHeader:w},data(){return{currentActiveTab:null,tabs:[{name:`${this.$mxs_tc("statistics",2)} & ${this.$mxs_tc("sessions",2)}`},{name:`${this.$mxs_tc("parameters",2)} & ${this.$mxs_tc("diagnostics",2)}`}],serviceTableRow:[],sessionsTableHeader:[{text:"ID",value:"id"},{text:"Client",value:"user"},{text:"Connected",value:"connected"},{text:"IDLE (s)",value:"idle"},{text:"Memory",value:"memory"}]}},computed:{...Object(i["e"])({should_refresh_resource:"should_refresh_resource",current_server:e=>e.server.current_server,monitor_diagnostics:e=>e.monitor.monitor_diagnostics,filtered_sessions:e=>e.session.filtered_sessions}),...Object(i["c"])({getTotalFilteredSessions:"session/getTotalFilteredSessions",getFilterParamByServerId:"session/getFilterParamByServerId"}),serverStats(){return this.$typy(this.current_server,"attributes.statistics").safeObjectOrEmpty},monitorDiagnostics(){const{attributes:{monitor_diagnostics:{server_info:e=[]}={}}={}}=this.monitor_diagnostics;return e.find(e=>e.name===this.$route.params.id)||{}},sessionsTableRow(){let e=[];return this.filtered_sessions.forEach(t=>{const{id:s,attributes:{idle:r,connected:a,user:i,remote:o,memory:n}}=t;e.push({id:s,user:`${i}@${o}`,connected:this.$helpers.dateFormat({moment:this.$moment,value:a}),idle:r,memory:n})}),e},filterSessionParam(){return this.getFilterParamByServerId(this.$route.params.id)}},watch:{async should_refresh_resource(e){e&&(this.SET_REFRESH_RESOURCE(!1),await this.fetchAll())},async currentActiveTab(e){switch(e){case 1:await this.fetchModuleParameters("servers");break}},async $route(){await this.fetchAll(),1===this.currentActiveTab&&await this.fetchModuleParameters("servers")}},async created(){await this.fetchAll()},methods:{...Object(i["d"])({SET_REFRESH_RESOURCE:"SET_REFRESH_RESOURCE",SET_MONITOR_DIAGNOSTICS:"monitor/SET_MONITOR_DIAGNOSTICS"}),...Object(i["b"])({getResourceState:"getResourceState",fetchModuleParameters:"fetchModuleParameters",fetchServerById:"server/fetchServerById",updateServerRelationship:"server/updateServerRelationship",updateServerParameters:"server/updateServerParameters",fetchMonitorDiagnosticsById:"monitor/fetchMonitorDiagnosticsById",fetchSessionsWithFilter:"session/fetchSessionsWithFilter",killSession:"session/killSession"}),async fetchAll(){await this.dispatchFetchServer(),await Promise.all([this.serviceTableRowProcessing(),this.fetchSessionsWithFilter(this.filterSessionParam),this.fetchMonitorDiagnostics()])},async fetchMonitorDiagnostics(){const{relationships:{monitors:e={}}={}}=this.current_server;if(e.data){const t=e.data[0].id;await this.fetchMonitorDiagnosticsById(t)}else this.SET_MONITOR_DIAGNOSTICS({})},async dispatchFetchServer(){await this.fetchServerById(this.$route.params.id)},async serviceTableRowProcessing(){const{relationships:{services:{data:e=[]}={}}={}}=this.current_server;let t=[];for(const s of e){const e=await this.getRelationshipData("services",s.id),{id:r,type:a,attributes:{state:i=null}={}}=e;t.push({id:r,state:i,type:a})}this.serviceTableRow=t},async getRelationshipData(e,t){const s=await this.getResourceState({resourceId:t,resourceType:e,caller:"server-detail-page-getRelationshipData"});return s},async dispatchRelationshipUpdate({type:e,data:t}){switch(await this.updateServerRelationship({id:this.current_server.id,type:e,[e]:t,callback:this.dispatchFetchServer}),e){case"monitors":await this.fetchMonitorDiagnostics();break;case"services":await this.serviceTableRowProcessing();break}}}},O=I,C=s("62ad"),k=s("0fd9"),P=s("71a3"),D=s("c671"),$=s("fe57"),A=s("aac8"),F=Object(h["a"])(O,r,a,!1,null,null,null);t["default"]=F.exports;v()(F,{VCol:C["a"],VRow:k["a"],VSheet:E["a"],VTab:P["a"],VTabItem:D["a"],VTabs:$["a"],VTabsItems:A["a"]})},e93e:function(e,t,s){"use strict";s("bc55")}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com