mao-service-discovery-webui 1.6.9-webui-rc1-master-0b05cdd95f9f42f36c24f6e9273fb69cf0ea960b.0 → 1.6.9-webui-rc1-master-735512a6bf2351add10bbef172c470b9c28698c6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mao-service-discovery-webui",
3
- "version": "1.6.9-webui-rc1-master-0b05cdd95f9f42f36c24f6e9273fb69cf0ea960b.0",
3
+ "version": "1.6.9-webui-rc1-master-735512a6bf2351add10bbef172c470b9c28698c6.0",
4
4
  "description": "Discover your services by using gRPC stream, ICMP or etcd. Come with WebGUI, Restful API and Config Persistence ability.",
5
5
  "main": "MaoServiceDiscovery",
6
6
  "scripts": {
@@ -1 +1 @@
1
- <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>Mao-Service-Discovery</title><script defer="defer" src="/js/chunk-vendors.418b351e.js"></script><script defer="defer" src="/js/app.d9d8180e.js"></script><link href="/css/chunk-vendors.1020ffab.css" rel="stylesheet"><link href="/css/app.da22edd4.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Mao-Service-Discovery doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
1
+ <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>Mao-Service-Discovery</title><script defer="defer" src="/js/chunk-vendors.418b351e.js"></script><script defer="defer" src="/js/app.b0225ffa.js"></script><link href="/css/chunk-vendors.1020ffab.css" rel="stylesheet"><link href="/css/app.da22edd4.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Mao-Service-Discovery doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
@@ -0,0 +1 @@
1
+ (function(){"use strict";var e={9571:function(e,t,a){var o=a(9242),n=a(2065),l=(a(4415),a(4161)),r=a(3396);const i={id:"app"};function m(e,t,a,o,n,l){const m=(0,r.up)("el-header"),s=(0,r.up)("Menu"),u=(0,r.up)("el-icon"),d=(0,r.up)("el-menu-item"),p=(0,r.up)("el-menu"),c=(0,r.up)("el-aside"),f=(0,r.up)("router-view"),h=(0,r.up)("el-main"),v=(0,r.up)("el-container");return(0,r.wg)(),(0,r.iD)("div",i,[(0,r.Wm)(v,{class:"class-container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{style:{"font-size":"xx-large"}},{default:(0,r.w5)((()=>[(0,r.Uk)("Bigmao Radio Station")])),_:1}),(0,r.Wm)(v,null,{default:(0,r.w5)((()=>[(0,r.Wm)(c,{style:{width:"210px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(p,{"default-active":"/deviceStatus",style:{height:"100%"},router:""},{default:(0,r.w5)((()=>[(0,r.Wm)(d,{index:"/deviceStatus"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" 设备状态 ")])),_:1}),(0,r.Wm)(d,{index:"/config"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" 服务配置 ")])),_:1}),(0,r.Wm)(d,{index:"/topo"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" 数字地图 ")])),_:1}),(0,r.Wm)(d,{index:"/apiListOldApi"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" API列表、老版WebUI ")])),_:1})])),_:1})])),_:1}),(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r.Wm)(f,{name:"maoMain"})])),_:1})])),_:1})])),_:1})])}var s={name:"App",components:{},methods:{}},u=a(89);const d=(0,u.Z)(s,[["render",m]]);var p=d,c=a(2748),f=a(2483);function h(e,t,a,o,n,l){const i=(0,r.up)("el-menu-item"),m=(0,r.up)("el-menu"),s=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r.Wm)(m,{"default-active":"/config/config",mode:"horizontal",router:""},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{index:"/config/config"},{default:(0,r.w5)((()=>[(0,r.Uk)("配置中心")])),_:1}),(0,r.Wm)(i,{index:"/config/email"},{default:(0,r.w5)((()=>[(0,r.Uk)("邮件通知配置")])),_:1}),(0,r.Wm)(i,{index:"/config/icmp"},{default:(0,r.w5)((()=>[(0,r.Uk)("ICMP检测配置")])),_:1}),(0,r.Wm)(i,{index:"/config/grpc"},{default:(0,r.w5)((()=>[(0,r.Uk)("gRPC服务管理")])),_:1}),(0,r.Wm)(i,{index:"/config/topo"},{default:(0,r.w5)((()=>[(0,r.Uk)("拓扑接口配置")])),_:1}),(0,r.Wm)(i,{index:"/config/mysql"},{default:(0,r.w5)((()=>[(0,r.Uk)("MySQL接口配置")])),_:1}),(0,r.Wm)(i,{index:"/config/allText"},{default:(0,r.w5)((()=>[(0,r.Uk)("配置文件导出")])),_:1})])),_:1}),(0,r.Wm)(s,{name:"maoConfig"})])}var v={name:"ConfigPages",data(){return{}},mounted(){},methods:{}};const w=(0,u.Z)(v,[["render",h]]);var g=w;const b=(0,r._)("div",{style:{margin:"20px"}},null,-1);function y(e,t,a,o,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form");return(0,r.wg)(),(0,r.iD)(r.HY,null,[b,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"Username"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.username=e)},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Password"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.password,"onUpdate:modelValue":t[1]||(t[1]=e=>n.form.password=e),placeholder:"*** ***"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"SMTP Server address and port"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.smtpServerAddrPort,"onUpdate:modelValue":t[2]||(t[2]=e=>n.form.smtpServerAddrPort=e),placeholder:"e.g. smtp.mao.com:25"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Sender Email"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.sender,"onUpdate:modelValue":t[3]||(t[3]=e=>n.form.sender=e)},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Receiver Emails"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.receiver,"onUpdate:modelValue":t[4]||(t[4]=e=>n.form.receiver=e),placeholder:"one line, one receiver",type:"textarea",rows:"10"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Create")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])],64)}var _=a(4870),W=a(7178),C={name:"ConfigEmail",data(){return{form:(0,_.qj)({username:"",password:"",smtpServerAddrPort:"",sender:"",receiver:""})}},mounted(){this.onLoad()},methods:{onLoad(){var e=this;this.$http.get("/api/getEmailInfo").then((function(t){var a=t.data;e.form.username=a["username"],e.form.smtpServerAddrPort=a["smtpServerAddrPort"],e.form.sender=a["sender"],e.form.receiver=a["receiver"].join("\n"),e.form.password=""})).catch((function(e){console.log("errMao: "+e)}))},onSubmit(){var e=this;this.$http.post("/api/addEmailInfo",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"邮件配置提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"邮件配置提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}};const D=(0,u.Z)(C,[["render",y]]);var S=D;const T=(0,r._)("div",{style:{margin:"20px"}},null,-1);function x(e,t,a,o,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form");return(0,r.wg)(),(0,r.iD)(r.HY,null,[T,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"MySQL Server address"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.mysqlServerAddr,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.mysqlServerAddr=e),placeholder:"e.g. mysql.mao.com"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"MySQL Server port"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.mysqlServerPort,"onUpdate:modelValue":t[1]||(t[1]=e=>n.form.mysqlServerPort=e),placeholder:"e.g. 3306"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"MySQL database name"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.databaseName,"onUpdate:modelValue":t[2]||(t[2]=e=>n.form.databaseName=e),placeholder:"e.g. MaoDB"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Username"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.username,"onUpdate:modelValue":t[3]||(t[3]=e=>n.form.username=e)},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Password"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.password,"onUpdate:modelValue":t[4]||(t[4]=e=>n.form.password=e),placeholder:"*** ***"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Submit")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])],64)}var I={name:"ConfigMysql",data(){return{form:(0,_.qj)({mysqlServerAddr:"",mysqlServerPort:"",databaseName:"",username:"",password:""})}},mounted(){this.onLoad()},methods:{onLoad(){var e=this;this.$http.get("/api/getMysqlInfo").then((function(t){var a=t.data;e.form.mysqlServerAddr=a["mysqlServerAddr"],e.form.mysqlServerPort=0!==a["mysqlServerPort"]?a["mysqlServerPort"]:"",e.form.databaseName=a["databaseName"],e.form.username=a["username"],e.form.password=""})).catch((function(e){console.log("errMao: "+e)}))},onSubmit(){var e=this;this.$http.post("/api/addMysqlInfo",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"数据库配置提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"数据库配置提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}};const R=(0,u.Z)(I,[["render",x]]);var k=R;const L=(0,r._)("div",{style:{margin:"20px"}},null,-1),N=(0,r._)("span",{style:{width:"2%"}},null,-1);function V(e,t,a,n,l,i){const m=(0,r.up)("el-button"),s=(0,r.up)("el-form-item"),u=(0,r.up)("el-input"),d=(0,r.up)("el-form"),p=(0,r.up)("el-table-column"),c=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[L,(0,r.Wm)(d,{ref:"formRef",model:l.formData,rules:l.formRules,style:{"max-width":"100%"},"label-width":"auto"},{default:(0,r.w5)((()=>[(0,r.Wm)(s,null,{default:(0,r.w5)((()=>[(0,r.Wm)(m,{type:"primary",onClick:i.submitServices},{default:(0,r.w5)((()=>[(0,r.Uk)("Submit")])),_:1},8,["onClick"]),(0,r.Wm)(m,{onClick:i.addServiceLine},{default:(0,r.w5)((()=>[(0,r.Uk)("Add")])),_:1},8,["onClick"])])),_:1}),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(l.formData.serviceIpName,((e,t)=>((0,r.wg)(),(0,r.j4)(s,{key:e.key,label:"Service "+(t+1)},{default:(0,r.w5)((()=>[(0,r.Wm)(s,{label:"IP:",style:{width:"40%"},prop:"serviceIpName."+t+".address",rules:l.formRules["serviceIpName.address"]},{default:(0,r.w5)((()=>[(0,r.Wm)(u,{modelValue:e.address,"onUpdate:modelValue":t=>e.address=t},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["prop","rules"]),(0,r.Wm)(s,{label:"名称:",style:{width:"40%"}},{default:(0,r.w5)((()=>[(0,r.Wm)(u,{modelValue:e.serviceName,"onUpdate:modelValue":t=>e.serviceName=t},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),N,(0,r.Wm)(m,{class:"mt-2",onClick:(0,o.iM)((e=>i.removeServiceLine(t)),["prevent"])},{default:(0,r.w5)((()=>[(0,r.Uk)("Delete")])),_:2},1032,["onClick"])])),_:2},1032,["label"])))),128))])),_:1},8,["model","rules"]),(0,r.Wm)(c,{data:l.maoIcmpTableData,ref:"maoTable","cell-class-name":i.tableCellClassName,"empty-text":"暂无数据","max-height":"610px"},{default:(0,r.w5)((()=>[(0,r.Wm)(p,{label:"Control"},{default:(0,r.w5)((e=>[(0,r.Wm)(m,{size:"small",type:"danger",onClick:t=>i.handleDelete(e.$index,e.row)},{default:(0,r.w5)((()=>[(0,r.Uk)("Delete")])),_:2},1032,["onClick"])])),_:1}),(0,r.Wm)(p,{label:"Service Name",prop:"serviceName"}),(0,r.Wm)(p,{label:"Device IP",prop:"deviceIp"}),(0,r.Wm)(p,{label:"Alive",prop:"alive"}),(0,r.Wm)(p,{label:"Detect Count",prop:"Detect_Count"}),(0,r.Wm)(p,{label:"Report Count",prop:"Report_Count"}),(0,r.Wm)(p,{label:"RTT Duration",prop:"RTT_Duration"}),(0,r.Wm)(p,{label:"Last Seen",prop:"Last_Seen"}),(0,r.Wm)(p,{label:"Timestamp",prop:"RttOutbound_or_Remote_Timestamp"})])),_:1},8,["data","cell-class-name"])],64)}a(7658);var O={name:"ConfigIcmp",data(){return{maoIcmpTableData:[],refreshTimer:"",formData:{serviceIpName:[{key:Date.now(),address:"",serviceName:""}]},formRules:{"serviceIpName.address":[{required:!0,message:"IP can not be null",trigger:"blur"}]},form:{ipv4v6:""}}},mounted(){this.onLoad(),this.refreshTimer=setInterval(this.onLoad,1e3)},beforeUnmount(){clearInterval(this.refreshTimer)},methods:{addServiceLine(){this.formData.serviceIpName.push({key:Date.now(),address:"",serviceName:""})},removeServiceLine(e){e>=0&&this.formData.serviceIpName.splice(e,1),0===this.formData.serviceIpName.length&&this.addServiceLine()},submitServices(){this.$refs.formRef.validate((e=>{if(e){console.log("表单验证通过,可提交数据!"),console.log(this.formData);var t=this;this.$http.post("/api/addServiceIp",this.formData,{headers:{"Content-Type":"application/json"}}).then((function(){(0,W.z8)({message:"ICMP检测提交成功",type:"success"}),t.onLoad()})).catch((function(e){(0,W.z8)({message:"ICMP检测提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}))},tableCellClassName({row:e,column:t,rowIndex:a,columnIndex:o}){e.index=a,t.index=o},handleDelete(e,t){var a=this;this.$http.post("/api/delServiceIp",{ipv4v6:t.deviceIp},{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"ICMP检测删除成功",type:"success"}),a.onLoad()})).catch((function(e){(0,W.z8)({message:"ICMP检测删除失败:"+e,type:"warning"}),console.log("errMao: "+e)}))},onLoad(){var e=this;this.$http.get("/api/showServiceIP").then((function(t){e.maoIcmpTableData=[];for(var a=t.data,o=0;o<a.length;o++)console.log(a[o]),e.maoIcmpTableData.push({serviceName:null!=a[o]["ServiceName"]?a[o]["ServiceName"]:"/",deviceIp:null!=a[o]["Address"]?a[o]["Address"]:a[o]["Hostname"],alive:a[o]["Alive"],Detect_Count:null!=a[o]["DetectCount"]?a[o]["DetectCount"]:"/",Report_Count:null!=a[o]["ReportCount"]?a[o]["ReportCount"]:a[o]["ReportTimes"],RTT_Duration:null!=a[o]["RttDuration"]?(a[o]["RttDuration"]/1e3/1e3).toFixed(3)+"ms":"/",Last_Seen:null!=a[o]["LastSeen"]?a[o]["LastSeen"]:a[o]["LocalLastSeen"],RttOutbound_or_Remote_Timestamp:null!=a[o]["RttOutboundTimestamp"]?a[o]["RttOutboundTimestamp"]:a[o]["ServerDateTime"]})})).catch((function(e){console.log("errMao: "+e)}))}}};const P=(0,u.Z)(O,[["render",V]]);var U=P;const M=(0,r._)("div",{style:{margin:"20px"}},null,-1);function A(e,t,a,o,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form"),d=(0,r.up)("el-table-column"),p=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[M,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"},action:"/addServiceIp",method:"post"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"ONOS Endpoint address and port"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.addrPort,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.addrPort=e),placeholder:"e.g. 127.0.0.1:8181"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Create")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"]),(0,r.Wm)(p,{data:n.maoOnosTableData,ref:"maoTable","row-class-name":l.tableRowClassName,"empty-text":"暂无数据","max-height":"610px"},{default:(0,r.w5)((()=>[(0,r.Wm)(d,{label:"API Name",prop:"API_NAME"}),(0,r.Wm)(d,{label:"API URL",prop:"API_URL"})])),_:1},8,["data","row-class-name"])],64)}var $={name:"ConfigTopo",data(){return{form:(0,_.qj)({addrPort:""}),maoOnosTableData:[]}},mounted(){this.onLoad()},methods:{tableRowClassName(e){return-1!==e.row.API_URL.indexOf("%")?"warning-row":""},onSubmit(){var e=this;this.$http.post("/api/addOnosInfo",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"拓扑配置提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"拓扑配置提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))},onLoad(){var e=this;this.$http.get("/api/getOnosInfo").then((function(t){for(var a in e.maoOnosTableData=[],t.data)"addrPort"===a?e.form.addrPort=t.data[a]:e.maoOnosTableData.push({API_NAME:a,API_URL:t.data[a]})})).catch((function(e){console.log("errMao: "+e)}))}}};const q=(0,u.Z)($,[["render",A]]);var j=q;const z=(0,r._)("div",{style:{margin:"20px"}},null,-1);function H(e,t,a,o,n,l){const i=(0,r.up)("el-input");return(0,r.wg)(),(0,r.iD)(r.HY,null,[z,(0,r.Wm)(i,{modelValue:n.maoConfigData,"onUpdate:modelValue":t[0]||(t[0]=e=>n.maoConfigData=e),type:"textarea",placeholder:"Loading config data ...",autosize:{minRows:0,maxRows:36}},null,8,["modelValue"])],64)}var E={name:"ConfigAllText",data(){return{maoConfigData:""}},mounted(){this.onLoad()},methods:{onLoad(){var e=this;this.$http.get("/api/getAllConfigText").then((function(t){e.maoConfigData=t.data})).catch((function(e){console.log("errMao: "+e)}))}}};const Z=(0,u.Z)(E,[["render",H]]);var Y=Z;const G={key:0},K={name:"DeviceInfo",data(){return{refreshSwitch:!0,refreshTimer:"",maoTableData:[]}},mounted(){this.refreshData(),this.refreshTimer=setInterval(this.refreshData,1e3)},beforeUnmount(){clearInterval(this.refreshTimer)},methods:{tableRowClassName(e){return!1===e.row.alive?"warning-row":""},tableCellClassName({row:e,column:t,rowIndex:a,columnIndex:o}){e.index=a,t.index=o},maoTableClick(e,t){1===t.index&&this.$refs.maoTable.toggleRowExpansion(e)},refreshData(){if(this.refreshSwitch){var e=this;this.$http.get("/api/showMergeServiceIP").then((function(t){e.maoTableData=[];for(var a=t.data,o=0;o<a.length;o++){var n=[],l=[];for(let e in a[o]){var r;if("OtherData"===e){var i=JSON.parse(a[o][e]);for(const e in i)l.push({subAttrName:e,subAttrValue:i[e]});r=l}else r=a[o][e];n.push({attrName:e,attrValue:r})}n=n.sort(((e,t)=>e["attrName"]<t["attrName"]?-1:1)),e.maoTableData.push({attr:n,serviceName:null!=a[o]["ServiceName"]?a[o]["ServiceName"]:null!=a[o]["Hostname"]?a[o]["Hostname"]:"/",Report_IP:null!=a[o]["Ips"]?a[o]["Ips"].join("\n"):null!=a[o]["Address"]?a[o]["Address"]:a[o]["Hostname"],alive:a[o]["Alive"],Detect_Count:null!=a[o]["DetectCount"]?a[o]["DetectCount"]:"/",Report_Count:null!=a[o]["ReportCount"]?a[o]["ReportCount"]:a[o]["ReportTimes"],RTT_Duration:null!=a[o]["RttDuration"]?(a[o]["RttDuration"]/1e3/1e3).toFixed(3)+"ms":"/",Last_Seen:null!=a[o]["LastSeen"]?a[o]["LastSeen"]:a[o]["LocalLastSeen"],RttOutbound_or_Remote_Timestamp:null!=a[o]["RttOutboundTimestamp"]?a[o]["RttOutboundTimestamp"]:a[o]["ServerDateTime"],Other_Data:null!=a[o]["OtherData"]?a[o]["OtherData"]:"/"})}})).catch((function(e){console.log("errMao"+e)}))}},maoDoClick(){console.log("DeviceControl clicked")},maoDeviceOnline(e){var t=this;console.log(e),this.$http.post("/api/devices/setDeviceOnline",{deviceid:e}).then((function(e){console.log(e),e["data"]?t.$notify({title:"成功",message:"这是一条成功的提示消息, maoDeviceOnline",type:"success"}):t.$notify.error({title:"错误",message:"这是一条错误的提示消息, maoDeviceOnline"})})).catch((function(e){console.log(e)}))},maoDeviceOffline(e){var t=this;this.$http.post("/api/devices/setDeviceOffline",{deviceid:e}).then((function(e){console.log(e),e["data"]?t.$notify({title:"成功",message:"这是一条成功的提示消息, maoDeviceOffline",type:"success"}):t.$notify.error({title:"错误",message:"这是一条错误的提示消息, maoDeviceOffline"})})).catch((function(e){console.log(e)}))}}};var B=Object.assign(K,{setup(e){return(e,t)=>{const a=(0,r.up)("el-switch"),o=(0,r.up)("el-row"),n=(0,r.up)("el-table-column"),l=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(o,{class:"row-bg",justify:"center"},{default:(0,r.w5)((()=>[(0,r.Wm)(a,{modelValue:e.refreshSwitch,"onUpdate:modelValue":t[0]||(t[0]=t=>e.refreshSwitch=t),size:"default","active-text":"启用刷新"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(l,{data:e.maoTableData,ref:"maoTable",onCellClick:e.maoTableClick,"cell-class-name":e.tableCellClassName,"row-class-name":e.tableRowClassName,"empty-text":"暂无数据","max-height":"845px"},{default:(0,r.w5)((()=>[(0,r.Wm)(n,{label:"",type:"expand"},{default:(0,r.w5)((e=>[(0,r.Wm)(l,{data:e.row.attr,border:!0},{default:(0,r.w5)((()=>[(0,r.Wm)(n,{label:"属性",prop:"attrName",width:"200px"}),(0,r.Wm)(n,{label:"值",prop:"attrValue"},{default:(0,r.w5)((e=>["OtherData"===e.row.attrName?((0,r.wg)(),(0,r.iD)("div",G,[(0,r.Wm)(l,{data:e.row.attrValue,border:!0},{default:(0,r.w5)((()=>[(0,r.Wm)(n,{label:"属性",prop:"subAttrName",width:"200px"}),(0,r.Wm)(n,{label:"值",prop:"subAttrValue"})])),_:2},1032,["data"])])):(0,r.kq)("",!0)])),_:1})])),_:2},1032,["data"])])),_:1}),(0,r.Wm)(n,{label:"Service Name",prop:"serviceName"}),(0,r.Wm)(n,{label:"Device IP / Report IP",prop:"Report_IP"}),(0,r.Wm)(n,{label:"Alive",prop:"alive"}),(0,r.Wm)(n,{label:"Detect Count",prop:"Detect_Count"}),(0,r.Wm)(n,{label:"Report Count",prop:"Report_Count"}),(0,r.Wm)(n,{label:"RTT Duration",prop:"RTT_Duration"}),(0,r.Wm)(n,{label:"Last Seen",prop:"Last_Seen"}),(0,r.Wm)(n,{label:"Timestamp",prop:"RttOutbound_or_Remote_Timestamp"})])),_:1},8,["data","onCellClick","cell-class-name","row-class-name"])],64)}}});const F=B;var Q=F;function J(e,t,a,o,n,l){const i=(0,r.up)("el-text");return(0,r.wg)(),(0,r.j4)(i,{id:"onosTips",type:n.tipsType,size:"large"},null,8,["type"])}var X={name:"ONOS",data(){return{tipsType:"danger"}},mounted(){this.queryOnosPage()},methods:{queryOnosPage(){var e=this;this.$http.get("/api/getOnosInfo").then((function(t){var a=t.data["addrPort"];null!=a&&""!==a?(e.tipsType="success",document.getElementById("onosTips").innerText="在新窗口中查看拓扑",window.open("http://"+a+"/onos/ui","_blank")):(e.tipsType="warning",document.getElementById("onosTips").innerText="拓扑接口暂未配置")})).catch((function(t){console.log("errMao: "+t),e.tipsType="danger",document.getElementById("onosTips").innerText="拓扑接口获取异常:"+t}))}}};const ee=(0,u.Z)(X,[["render",J]]);var te=ee;const ae={src:"/api",width:"100%",height:"100%"};function oe(e,t,a,o,n,l){return(0,r.wg)(),(0,r.iD)("iframe",ae)}var ne={name:"ApiListOldApi",data(){return{}},mounted(){},methods:{}};const le=(0,u.Z)(ne,[["render",oe]]);var re=le;const ie=(0,r._)("div",{style:{margin:"20px"}},null,-1);function me(e,t,a,o,n,l){const i=(0,r.up)("el-button"),m=(0,r.up)("el-table-column"),s=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[ie,(0,r.Wm)(s,{data:n.maoGrpcTableData,ref:"maoTable","cell-class-name":l.tableCellClassName,"empty-text":"暂无数据","max-height":"610px"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"Control"},{default:(0,r.w5)((e=>[(0,r.Wm)(i,{size:"small",type:"danger",onClick:t=>l.handleDelete(e.$index,e.row)},{default:(0,r.w5)((()=>[(0,r.Uk)("Delete")])),_:2},1032,["onClick"])])),_:1}),(0,r.Wm)(m,{label:"Service Name",prop:"serviceName"}),(0,r.Wm)(m,{label:"Report IP",prop:"deviceIps"}),(0,r.Wm)(m,{label:"Alive",prop:"alive"}),(0,r.Wm)(m,{label:"Report Count",prop:"reportCount"}),(0,r.Wm)(m,{label:"RTT Duration",prop:"rttDuration"}),(0,r.Wm)(m,{label:"Last Seen",prop:"lastSeen"}),(0,r.Wm)(m,{label:"Timestamp",prop:"remoteTimestamp"})])),_:1},8,["data","cell-class-name"])],64)}var se={name:"ConfigGrpc",data(){return{maoGrpcTableData:[],refreshTimer:"",form:{serviceNames:""}}},mounted(){this.onLoad(),this.refreshTimer=setInterval(this.onLoad,1e3)},beforeUnmount(){clearInterval(this.refreshTimer)},methods:{tableCellClassName({row:e,column:t,rowIndex:a,columnIndex:o}){e.index=a,t.index=o},handleDelete(e,t){var a=this;this.$http.post("/api/delGrpcService",{serviceNames:t.serviceName},{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){a.onLoad()})).catch((function(e){console.log("errMao: "+e)}))},onLoad(){var e=this;this.$http.get("/api/showAllGrpcService").then((function(t){e.maoGrpcTableData=[];for(var a=t.data,o=0;o<a.length;o++)e.maoGrpcTableData.push({serviceName:a[o]["Hostname"],deviceIps:a[o]["Ips"].join("\n"),alive:a[o]["Alive"],reportCount:a[o]["ReportTimes"],rttDuration:(a[o]["RttDuration"]/1e3/1e3).toFixed(3)+"ms",lastSeen:a[o]["LocalLastSeen"],remoteTimestamp:a[o]["ServerDateTime"]})})).catch((function(e){console.log("errMao: "+e)}))}}};const ue=(0,u.Z)(se,[["render",me]]);var de=ue;const pe=(0,r._)("div",{style:{margin:"20px"}},null,-1);function ce(e,t,a,o,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form");return(0,r.wg)(),(0,r.iD)(r.HY,null,[pe,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"Security Key"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.secKey,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.secKey=e),"show-password":"",placeholder:"*** ***"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Submit")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])],64)}var fe={name:"ConfigCenter",data(){return{form:(0,_.qj)({secKey:""})}},mounted(){this.onLoad()},methods:{onLoad(){this.form.secKey=""},onSubmit(){var e=this;this.$http.post("/api/setConfigSecKey",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"密钥提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"密钥提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}};const he=(0,u.Z)(fe,[["render",ce]]);var ve=he,we=(0,f.p7)({history:(0,f.r5)(),routes:[{path:"/",components:{maoMain:Q}},{path:"/config",components:{maoMain:g},children:[{path:"",components:{maoConfig:ve}},{path:"config",components:{maoConfig:ve}},{path:"email",components:{maoConfig:S}},{path:"icmp",components:{maoConfig:U}},{path:"grpc",components:{maoConfig:de}},{path:"topo",components:{maoConfig:j}},{path:"mysql",components:{maoConfig:k}},{path:"allText",components:{maoConfig:Y}}]},{path:"/deviceStatus",components:{maoMain:Q}},{path:"/topo",components:{maoMain:te}},{path:"/apiListOldApi",components:{maoMain:re}}]});console.log("1 ===");const ge=(0,o.ri)(p);console.log("2 ===");for(const[be,ye]of Object.entries(c))ge.component(be,ye);console.log("3 ==="),ge.config.globalProperties.$http=l.Z.create({baseUrl:"https://www.maojianwei.com/resources/",timeout:3e3}),console.log("4 ==="),ge.use(n.Z,{size:"large"}),console.log("5 ==="),ge.use(we),console.log("6 ==="),ge.mount("#app"),console.log("7 ===")}},t={};function a(o){var n=t[o];if(void 0!==n)return n.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,a),l.exports}a.m=e,function(){var e=[];a.O=function(t,o,n,l){if(!o){var r=1/0;for(u=0;u<e.length;u++){o=e[u][0],n=e[u][1],l=e[u][2];for(var i=!0,m=0;m<o.length;m++)(!1&l||r>=l)&&Object.keys(a.O).every((function(e){return a.O[e](o[m])}))?o.splice(m--,1):(i=!1,l<r&&(r=l));if(i){e.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[o,n,l]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};a.O.j=function(t){return 0===e[t]};var t=function(t,o){var n,l,r=o[0],i=o[1],m=o[2],s=0;if(r.some((function(t){return 0!==e[t]}))){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);if(m)var u=m(a)}for(t&&t(o);s<r.length;s++)l=r[s],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return a.O(u)},o=self["webpackChunkMao_Service_Discovery"]=self["webpackChunkMao_Service_Discovery"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var o=a.O(void 0,[998],(function(){return a(9571)}));o=a.O(o)})();
package/resource.zip CHANGED
Binary file
@@ -1 +0,0 @@
1
- (function(){"use strict";var e={3943:function(e,t,o){var a=o(9242),n=o(2065),l=(o(4415),o(4161)),r=o(3396);const i={id:"app"};function m(e,t,o,a,n,l){const m=(0,r.up)("el-header"),s=(0,r.up)("Menu"),u=(0,r.up)("el-icon"),d=(0,r.up)("el-menu-item"),c=(0,r.up)("el-menu"),p=(0,r.up)("el-aside"),f=(0,r.up)("router-view"),h=(0,r.up)("el-main"),v=(0,r.up)("el-container");return(0,r.wg)(),(0,r.iD)("div",i,[(0,r.Wm)(v,{class:"class-container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{style:{"font-size":"xx-large"}},{default:(0,r.w5)((()=>[(0,r.Uk)("Bigmao Radio Station")])),_:1}),(0,r.Wm)(v,null,{default:(0,r.w5)((()=>[(0,r.Wm)(p,{style:{width:"210px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(c,{"default-active":"/deviceStatus",style:{height:"100%"},router:""},{default:(0,r.w5)((()=>[(0,r.Wm)(d,{index:"/deviceStatus"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" 设备状态 ")])),_:1}),(0,r.Wm)(d,{index:"/config"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" 服务配置 ")])),_:1}),(0,r.Wm)(d,{index:"/topo"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" 数字地图 ")])),_:1}),(0,r.Wm)(d,{index:"/apiListOldApi"},{default:(0,r.w5)((()=>[(0,r.Wm)(u,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s)])),_:1}),(0,r.Uk)(" API列表、老版WebUI ")])),_:1})])),_:1})])),_:1}),(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r.Wm)(f,{name:"maoMain"})])),_:1})])),_:1})])),_:1})])}var s={name:"App",components:{},methods:{}},u=o(89);const d=(0,u.Z)(s,[["render",m]]);var c=d,p=o(2748),f=o(2483);function h(e,t,o,a,n,l){const i=(0,r.up)("el-menu-item"),m=(0,r.up)("el-menu"),s=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r.Wm)(m,{"default-active":"/config/config",mode:"horizontal",router:""},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{index:"/config/config"},{default:(0,r.w5)((()=>[(0,r.Uk)("配置中心")])),_:1}),(0,r.Wm)(i,{index:"/config/email"},{default:(0,r.w5)((()=>[(0,r.Uk)("邮件通知配置")])),_:1}),(0,r.Wm)(i,{index:"/config/icmp"},{default:(0,r.w5)((()=>[(0,r.Uk)("ICMP检测配置")])),_:1}),(0,r.Wm)(i,{index:"/config/grpc"},{default:(0,r.w5)((()=>[(0,r.Uk)("gRPC服务管理")])),_:1}),(0,r.Wm)(i,{index:"/config/topo"},{default:(0,r.w5)((()=>[(0,r.Uk)("拓扑接口配置")])),_:1}),(0,r.Wm)(i,{index:"/config/mysql"},{default:(0,r.w5)((()=>[(0,r.Uk)("MySQL接口配置")])),_:1}),(0,r.Wm)(i,{index:"/config/allText"},{default:(0,r.w5)((()=>[(0,r.Uk)("配置文件导出")])),_:1})])),_:1}),(0,r.Wm)(s,{name:"maoConfig"})])}var v={name:"ConfigPages",data(){return{}},mounted(){},methods:{}};const w=(0,u.Z)(v,[["render",h]]);var g=w;const b=(0,r._)("div",{style:{margin:"20px"}},null,-1);function y(e,t,o,a,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form");return(0,r.wg)(),(0,r.iD)(r.HY,null,[b,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"Username"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.username=e)},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Password"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.password,"onUpdate:modelValue":t[1]||(t[1]=e=>n.form.password=e),placeholder:"*** ***"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"SMTP Server address and port"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.smtpServerAddrPort,"onUpdate:modelValue":t[2]||(t[2]=e=>n.form.smtpServerAddrPort=e),placeholder:"e.g. smtp.mao.com:25"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Sender Email"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.sender,"onUpdate:modelValue":t[3]||(t[3]=e=>n.form.sender=e)},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Receiver Emails"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.receiver,"onUpdate:modelValue":t[4]||(t[4]=e=>n.form.receiver=e),placeholder:"one line, one receiver",type:"textarea",rows:"10"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Create")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])],64)}var _=o(4870),W=o(7178),C={name:"ConfigEmail",data(){return{form:(0,_.qj)({username:"",password:"",smtpServerAddrPort:"",sender:"",receiver:""})}},mounted(){this.onLoad()},methods:{onLoad(){var e=this;this.$http.get("/api/getEmailInfo").then((function(t){var o=t.data;e.form.username=o["username"],e.form.smtpServerAddrPort=o["smtpServerAddrPort"],e.form.sender=o["sender"],e.form.receiver=o["receiver"].join("\n"),e.form.password=""})).catch((function(e){console.log("errMao: "+e)}))},onSubmit(){var e=this;this.$http.post("/api/addEmailInfo",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"邮件配置提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"邮件配置提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}};const D=(0,u.Z)(C,[["render",y]]);var S=D;const T=(0,r._)("div",{style:{margin:"20px"}},null,-1);function x(e,t,o,a,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form");return(0,r.wg)(),(0,r.iD)(r.HY,null,[T,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"MySQL Server address"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.mysqlServerAddr,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.mysqlServerAddr=e),placeholder:"e.g. mysql.mao.com"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"MySQL Server port"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.mysqlServerPort,"onUpdate:modelValue":t[1]||(t[1]=e=>n.form.mysqlServerPort=e),placeholder:"e.g. 3306"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"MySQL database name"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.databaseName,"onUpdate:modelValue":t[2]||(t[2]=e=>n.form.databaseName=e),placeholder:"e.g. MaoDB"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Username"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.username,"onUpdate:modelValue":t[3]||(t[3]=e=>n.form.username=e)},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,{label:"Password"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.password,"onUpdate:modelValue":t[4]||(t[4]=e=>n.form.password=e),placeholder:"*** ***"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Submit")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])],64)}var I={name:"ConfigMysql",data(){return{form:(0,_.qj)({mysqlServerAddr:"",mysqlServerPort:"",databaseName:"",username:"",password:""})}},mounted(){this.onLoad()},methods:{onLoad(){var e=this;this.$http.get("/api/getMysqlInfo").then((function(t){var o=t.data;e.form.mysqlServerAddr=o["mysqlServerAddr"],e.form.mysqlServerPort=0!==o["mysqlServerPort"]?o["mysqlServerPort"]:"",e.form.databaseName=o["databaseName"],e.form.username=o["username"],e.form.password=""})).catch((function(e){console.log("errMao: "+e)}))},onSubmit(){var e=this;this.$http.post("/api/addMysqlInfo",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"数据库配置提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"数据库配置提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}};const R=(0,u.Z)(I,[["render",x]]);var L=R;const k=(0,r._)("div",{style:{margin:"20px"}},null,-1),N=(0,r._)("span",{style:{width:"2%"}},null,-1);function P(e,t,o,n,l,i){const m=(0,r.up)("el-button"),s=(0,r.up)("el-form-item"),u=(0,r.up)("el-input"),d=(0,r.up)("el-form"),c=(0,r.up)("el-table-column"),p=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[k,(0,r.Wm)(d,{ref:"formRef",model:l.formData,rules:l.formRules,style:{"max-width":"100%"},"label-width":"auto"},{default:(0,r.w5)((()=>[(0,r.Wm)(s,null,{default:(0,r.w5)((()=>[(0,r.Wm)(m,{type:"primary",onClick:i.submitServices},{default:(0,r.w5)((()=>[(0,r.Uk)("Submit")])),_:1},8,["onClick"]),(0,r.Wm)(m,{onClick:i.addServiceLine},{default:(0,r.w5)((()=>[(0,r.Uk)("Add")])),_:1},8,["onClick"])])),_:1}),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(l.formData.serviceIpName,((e,t)=>((0,r.wg)(),(0,r.j4)(s,{key:e.key,label:"Service "+(t+1)},{default:(0,r.w5)((()=>[(0,r.Wm)(s,{label:"IP:",style:{width:"40%"},prop:"serviceIpName."+t+".address",rules:l.formRules["serviceIpName.address"]},{default:(0,r.w5)((()=>[(0,r.Wm)(u,{modelValue:e.address,"onUpdate:modelValue":t=>e.address=t},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["prop","rules"]),(0,r.Wm)(s,{label:"名称:",style:{width:"40%"}},{default:(0,r.w5)((()=>[(0,r.Wm)(u,{modelValue:e.serviceName,"onUpdate:modelValue":t=>e.serviceName=t},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),N,(0,r.Wm)(m,{class:"mt-2",onClick:(0,a.iM)((e=>i.removeServiceLine(t)),["prevent"])},{default:(0,r.w5)((()=>[(0,r.Uk)("Delete")])),_:2},1032,["onClick"])])),_:2},1032,["label"])))),128))])),_:1},8,["model","rules"]),(0,r.Wm)(p,{data:l.maoIcmpTableData,ref:"maoTable","cell-class-name":i.tableCellClassName,"empty-text":"暂无数据","max-height":"610px"},{default:(0,r.w5)((()=>[(0,r.Wm)(c,{label:"Control"},{default:(0,r.w5)((e=>[(0,r.Wm)(m,{size:"small",type:"danger",onClick:t=>i.handleDelete(e.$index,e.row)},{default:(0,r.w5)((()=>[(0,r.Uk)("Delete")])),_:2},1032,["onClick"])])),_:1}),(0,r.Wm)(c,{label:"Service Name",prop:"serviceName"}),(0,r.Wm)(c,{label:"Device IP",prop:"deviceIp"}),(0,r.Wm)(c,{label:"Alive",prop:"alive"}),(0,r.Wm)(c,{label:"Detect Count",prop:"Detect_Count"}),(0,r.Wm)(c,{label:"Report Count",prop:"Report_Count"}),(0,r.Wm)(c,{label:"RTT Duration",prop:"RTT_Duration"}),(0,r.Wm)(c,{label:"Last Seen",prop:"Last_Seen"}),(0,r.Wm)(c,{label:"Timestamp",prop:"RttOutbound_or_Remote_Timestamp"})])),_:1},8,["data","cell-class-name"])],64)}o(7658);var V={name:"ConfigIcmp",data(){return{maoIcmpTableData:[],refreshTimer:"",formData:{serviceIpName:[{key:Date.now(),address:"",serviceName:""}]},formRules:{"serviceIpName.address":[{required:!0,message:"IP can not be null",trigger:"blur"}]},form:{ipv4v6:""}}},mounted(){this.onLoad(),this.refreshTimer=setInterval(this.onLoad,1e3)},beforeUnmount(){clearInterval(this.refreshTimer)},methods:{addServiceLine(){this.formData.serviceIpName.push({key:Date.now(),address:"",serviceName:""})},removeServiceLine(e){e>=0&&this.formData.serviceIpName.splice(e,1),0===this.formData.serviceIpName.length&&this.addServiceLine()},submitServices(){this.$refs.formRef.validate((e=>{if(e){console.log("表单验证通过,可提交数据!"),console.log(this.formData);var t=this;this.$http.post("/api/addServiceIp",this.formData,{headers:{"Content-Type":"application/json"}}).then((function(){(0,W.z8)({message:"ICMP检测提交成功",type:"success"}),t.onLoad()})).catch((function(e){(0,W.z8)({message:"ICMP检测提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}))},tableCellClassName({row:e,column:t,rowIndex:o,columnIndex:a}){e.index=o,t.index=a},handleDelete(e,t){var o=this;this.$http.post("/api/delServiceIp",{ipv4v6:t.deviceIp},{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"ICMP检测删除成功",type:"success"}),o.onLoad()})).catch((function(e){(0,W.z8)({message:"ICMP检测删除失败:"+e,type:"warning"}),console.log("errMao: "+e)}))},onLoad(){var e=this;this.$http.get("/api/showServiceIP").then((function(t){e.maoIcmpTableData=[];for(var o=t.data,a=0;a<o.length;a++)console.log(o[a]),e.maoIcmpTableData.push({serviceName:null!=o[a]["ServiceName"]?o[a]["ServiceName"]:"/",deviceIp:null!=o[a]["Address"]?o[a]["Address"]:o[a]["Hostname"],alive:o[a]["Alive"],Detect_Count:null!=o[a]["DetectCount"]?o[a]["DetectCount"]:"/",Report_Count:null!=o[a]["ReportCount"]?o[a]["ReportCount"]:o[a]["ReportTimes"],RTT_Duration:null!=o[a]["RttDuration"]?(o[a]["RttDuration"]/1e3/1e3).toFixed(3)+"ms":"/",Last_Seen:null!=o[a]["LastSeen"]?o[a]["LastSeen"]:o[a]["LocalLastSeen"],RttOutbound_or_Remote_Timestamp:null!=o[a]["RttOutboundTimestamp"]?o[a]["RttOutboundTimestamp"]:o[a]["ServerDateTime"]})})).catch((function(e){console.log("errMao: "+e)}))}}};const O=(0,u.Z)(V,[["render",P]]);var U=O;const M=(0,r._)("div",{style:{margin:"20px"}},null,-1);function A(e,t,o,a,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form"),d=(0,r.up)("el-table-column"),c=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[M,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"},action:"/addServiceIp",method:"post"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"ONOS Endpoint address and port"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.addrPort,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.addrPort=e),placeholder:"e.g. 127.0.0.1:8181"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Create")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"]),(0,r.Wm)(c,{data:n.maoOnosTableData,ref:"maoTable","row-class-name":l.tableRowClassName,"empty-text":"暂无数据","max-height":"610px"},{default:(0,r.w5)((()=>[(0,r.Wm)(d,{label:"API Name",prop:"API_NAME"}),(0,r.Wm)(d,{label:"API URL",prop:"API_URL"})])),_:1},8,["data","row-class-name"])],64)}var $={name:"ConfigTopo",data(){return{form:(0,_.qj)({addrPort:""}),maoOnosTableData:[]}},mounted(){this.onLoad()},methods:{tableRowClassName(e){return-1!==e.row.API_URL.indexOf("%")?"warning-row":""},onSubmit(){var e=this;this.$http.post("/api/addOnosInfo",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"拓扑配置提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"拓扑配置提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))},onLoad(){var e=this;this.$http.get("/api/getOnosInfo").then((function(t){for(var o in e.maoOnosTableData=[],t.data)"addrPort"===o?e.form.addrPort=t.data[o]:e.maoOnosTableData.push({API_NAME:o,API_URL:t.data[o]})})).catch((function(e){console.log("errMao: "+e)}))}}};const q=(0,u.Z)($,[["render",A]]);var j=q;const z=(0,r._)("div",{style:{margin:"20px"}},null,-1);function H(e,t,o,a,n,l){const i=(0,r.up)("el-input");return(0,r.wg)(),(0,r.iD)(r.HY,null,[z,(0,r.Wm)(i,{modelValue:n.maoConfigData,"onUpdate:modelValue":t[0]||(t[0]=e=>n.maoConfigData=e),type:"textarea",placeholder:"Loading config data ...",autosize:{minRows:0,maxRows:36}},null,8,["modelValue"])],64)}var E={name:"ConfigAllText",data(){return{maoConfigData:""}},mounted(){this.onLoad()},methods:{onLoad(){var e=this;this.$http.get("/api/getAllConfigText").then((function(t){e.maoConfigData=t.data})).catch((function(e){console.log("errMao: "+e)}))}}};const Z=(0,u.Z)(E,[["render",H]]);var Y=Z;const G={name:"DeviceInfo",data(){return{refreshSwitch:!0,refreshTimer:"",maoTableData:[]}},mounted(){this.refreshData(),this.refreshTimer=setInterval(this.refreshData,1e3)},beforeUnmount(){clearInterval(this.refreshTimer)},methods:{tableRowClassName(e){return!1===e.row.alive?"warning-row":""},tableCellClassName({row:e,column:t,rowIndex:o,columnIndex:a}){e.index=o,t.index=a},maoTableClick(e,t){1===t.index&&this.$refs.maoTable.toggleRowExpansion(e)},refreshData(){if(this.refreshSwitch){var e=this;this.$http.get("/api/showMergeServiceIP").then((function(t){e.maoTableData=[];for(var o=t.data,a=0;a<o.length;a++){var n=[];for(let e in o[a])n.push({attrName:e,attrValue:o[a][e]});n=n.sort(((e,t)=>e["attrName"]<t["attrName"]?-1:1)),e.maoTableData.push({attr:n,serviceName:null!=o[a]["ServiceName"]?o[a]["ServiceName"]:null!=o[a]["Hostname"]?o[a]["Hostname"]:"/",Report_IP:null!=o[a]["Ips"]?o[a]["Ips"].join("\n"):null!=o[a]["Address"]?o[a]["Address"]:o[a]["Hostname"],alive:o[a]["Alive"],Detect_Count:null!=o[a]["DetectCount"]?o[a]["DetectCount"]:"/",Report_Count:null!=o[a]["ReportCount"]?o[a]["ReportCount"]:o[a]["ReportTimes"],RTT_Duration:null!=o[a]["RttDuration"]?(o[a]["RttDuration"]/1e3/1e3).toFixed(3)+"ms":"/",Last_Seen:null!=o[a]["LastSeen"]?o[a]["LastSeen"]:o[a]["LocalLastSeen"],RttOutbound_or_Remote_Timestamp:null!=o[a]["RttOutboundTimestamp"]?o[a]["RttOutboundTimestamp"]:o[a]["ServerDateTime"],Other_Data:null!=o[a]["OtherData"]?o[a]["OtherData"]:"/"})}})).catch((function(e){console.log("errMao"+e)}))}},maoDoClick(){console.log("DeviceControl clicked")},maoDeviceOnline(e){var t=this;console.log(e),this.$http.post("/api/devices/setDeviceOnline",{deviceid:e}).then((function(e){console.log(e),e["data"]?t.$notify({title:"成功",message:"这是一条成功的提示消息, maoDeviceOnline",type:"success"}):t.$notify.error({title:"错误",message:"这是一条错误的提示消息, maoDeviceOnline"})})).catch((function(e){console.log(e)}))},maoDeviceOffline(e){var t=this;this.$http.post("/api/devices/setDeviceOffline",{deviceid:e}).then((function(e){console.log(e),e["data"]?t.$notify({title:"成功",message:"这是一条成功的提示消息, maoDeviceOffline",type:"success"}):t.$notify.error({title:"错误",message:"这是一条错误的提示消息, maoDeviceOffline"})})).catch((function(e){console.log(e)}))}}};var K=Object.assign(G,{setup(e){return(e,t)=>{const o=(0,r.up)("el-switch"),a=(0,r.up)("el-row"),n=(0,r.up)("el-table-column"),l=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(a,{class:"row-bg",justify:"center"},{default:(0,r.w5)((()=>[(0,r.Wm)(o,{modelValue:e.refreshSwitch,"onUpdate:modelValue":t[0]||(t[0]=t=>e.refreshSwitch=t),size:"default","active-text":"启用刷新"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(l,{data:e.maoTableData,ref:"maoTable",onCellClick:e.maoTableClick,"cell-class-name":e.tableCellClassName,"row-class-name":e.tableRowClassName,"empty-text":"暂无数据","max-height":"845px"},{default:(0,r.w5)((()=>[(0,r.Wm)(n,{label:"",type:"expand"},{default:(0,r.w5)((e=>[(0,r.Wm)(l,{data:e.row.attr,border:!0},{default:(0,r.w5)((()=>[(0,r.Wm)(n,{label:"属性",prop:"attrName",width:"200px"}),(0,r.Wm)(n,{label:"值",prop:"attrValue"})])),_:2},1032,["data"])])),_:1}),(0,r.Wm)(n,{label:"Service Name",prop:"serviceName"}),(0,r.Wm)(n,{label:"Device IP / Report IP",prop:"Report_IP"}),(0,r.Wm)(n,{label:"Alive",prop:"alive"}),(0,r.Wm)(n,{label:"Detect Count",prop:"Detect_Count"}),(0,r.Wm)(n,{label:"Report Count",prop:"Report_Count"}),(0,r.Wm)(n,{label:"RTT Duration",prop:"RTT_Duration"}),(0,r.Wm)(n,{label:"Last Seen",prop:"Last_Seen"}),(0,r.Wm)(n,{label:"Timestamp",prop:"RttOutbound_or_Remote_Timestamp"})])),_:1},8,["data","onCellClick","cell-class-name","row-class-name"])],64)}}});const B=K;var F=B;function Q(e,t,o,a,n,l){const i=(0,r.up)("el-text");return(0,r.wg)(),(0,r.j4)(i,{id:"onosTips",type:n.tipsType,size:"large"},null,8,["type"])}var J={name:"ONOS",data(){return{tipsType:"danger"}},mounted(){this.queryOnosPage()},methods:{queryOnosPage(){var e=this;this.$http.get("/api/getOnosInfo").then((function(t){var o=t.data["addrPort"];null!=o&&""!==o?(e.tipsType="success",document.getElementById("onosTips").innerText="在新窗口中查看拓扑",window.open("http://"+o+"/onos/ui","_blank")):(e.tipsType="warning",document.getElementById("onosTips").innerText="拓扑接口暂未配置")})).catch((function(t){console.log("errMao: "+t),e.tipsType="danger",document.getElementById("onosTips").innerText="拓扑接口获取异常:"+t}))}}};const X=(0,u.Z)(J,[["render",Q]]);var ee=X;const te={src:"/api",width:"100%",height:"100%"};function oe(e,t,o,a,n,l){return(0,r.wg)(),(0,r.iD)("iframe",te)}var ae={name:"ApiListOldApi",data(){return{}},mounted(){},methods:{}};const ne=(0,u.Z)(ae,[["render",oe]]);var le=ne;const re=(0,r._)("div",{style:{margin:"20px"}},null,-1);function ie(e,t,o,a,n,l){const i=(0,r.up)("el-button"),m=(0,r.up)("el-table-column"),s=(0,r.up)("el-table");return(0,r.wg)(),(0,r.iD)(r.HY,null,[re,(0,r.Wm)(s,{data:n.maoGrpcTableData,ref:"maoTable","cell-class-name":l.tableCellClassName,"empty-text":"暂无数据","max-height":"610px"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"Control"},{default:(0,r.w5)((e=>[(0,r.Wm)(i,{size:"small",type:"danger",onClick:t=>l.handleDelete(e.$index,e.row)},{default:(0,r.w5)((()=>[(0,r.Uk)("Delete")])),_:2},1032,["onClick"])])),_:1}),(0,r.Wm)(m,{label:"Service Name",prop:"serviceName"}),(0,r.Wm)(m,{label:"Report IP",prop:"deviceIps"}),(0,r.Wm)(m,{label:"Alive",prop:"alive"}),(0,r.Wm)(m,{label:"Report Count",prop:"reportCount"}),(0,r.Wm)(m,{label:"RTT Duration",prop:"rttDuration"}),(0,r.Wm)(m,{label:"Last Seen",prop:"lastSeen"}),(0,r.Wm)(m,{label:"Timestamp",prop:"remoteTimestamp"})])),_:1},8,["data","cell-class-name"])],64)}var me={name:"ConfigGrpc",data(){return{maoGrpcTableData:[],refreshTimer:"",form:{serviceNames:""}}},mounted(){this.onLoad(),this.refreshTimer=setInterval(this.onLoad,1e3)},beforeUnmount(){clearInterval(this.refreshTimer)},methods:{tableCellClassName({row:e,column:t,rowIndex:o,columnIndex:a}){e.index=o,t.index=a},handleDelete(e,t){var o=this;this.$http.post("/api/delGrpcService",{serviceNames:t.serviceName},{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){o.onLoad()})).catch((function(e){console.log("errMao: "+e)}))},onLoad(){var e=this;this.$http.get("/api/showAllGrpcService").then((function(t){e.maoGrpcTableData=[];for(var o=t.data,a=0;a<o.length;a++)e.maoGrpcTableData.push({serviceName:o[a]["Hostname"],deviceIps:o[a]["Ips"].join("\n"),alive:o[a]["Alive"],reportCount:o[a]["ReportTimes"],rttDuration:(o[a]["RttDuration"]/1e3/1e3).toFixed(3)+"ms",lastSeen:o[a]["LocalLastSeen"],remoteTimestamp:o[a]["ServerDateTime"]})})).catch((function(e){console.log("errMao: "+e)}))}}};const se=(0,u.Z)(me,[["render",ie]]);var ue=se;const de=(0,r._)("div",{style:{margin:"20px"}},null,-1);function ce(e,t,o,a,n,l){const i=(0,r.up)("el-input"),m=(0,r.up)("el-form-item"),s=(0,r.up)("el-button"),u=(0,r.up)("el-form");return(0,r.wg)(),(0,r.iD)(r.HY,null,[de,(0,r.Wm)(u,{model:n.form,"label-width":"120px","label-position":"top",style:{"max-width":"600px"}},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{label:"Security Key"},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{modelValue:n.form.secKey,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.secKey=e),"show-password":"",placeholder:"*** ***"},null,8,["modelValue"])])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(s,{type:"primary",onClick:l.onSubmit},{default:(0,r.w5)((()=>[(0,r.Uk)("Submit")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])],64)}var pe={name:"ConfigCenter",data(){return{form:(0,_.qj)({secKey:""})}},mounted(){this.onLoad()},methods:{onLoad(){this.form.secKey=""},onSubmit(){var e=this;this.$http.post("/api/setConfigSecKey",this.form,{headers:{"Content-Type":"application/x-www-form-urlencoded;"}}).then((function(){(0,W.z8)({message:"密钥提交成功",type:"success"}),e.onLoad()})).catch((function(e){(0,W.z8)({message:"密钥提交失败:"+e,type:"warning"}),console.log("errMao: "+e)}))}}};const fe=(0,u.Z)(pe,[["render",ce]]);var he=fe,ve=(0,f.p7)({history:(0,f.r5)(),routes:[{path:"/",components:{maoMain:F}},{path:"/config",components:{maoMain:g},children:[{path:"",components:{maoConfig:he}},{path:"config",components:{maoConfig:he}},{path:"email",components:{maoConfig:S}},{path:"icmp",components:{maoConfig:U}},{path:"grpc",components:{maoConfig:ue}},{path:"topo",components:{maoConfig:j}},{path:"mysql",components:{maoConfig:L}},{path:"allText",components:{maoConfig:Y}}]},{path:"/deviceStatus",components:{maoMain:F}},{path:"/topo",components:{maoMain:ee}},{path:"/apiListOldApi",components:{maoMain:le}}]});console.log("1 ===");const we=(0,a.ri)(c);console.log("2 ===");for(const[ge,be]of Object.entries(p))we.component(ge,be);console.log("3 ==="),we.config.globalProperties.$http=l.Z.create({baseUrl:"https://www.maojianwei.com/resources/",timeout:3e3}),console.log("4 ==="),we.use(n.Z,{size:"large"}),console.log("5 ==="),we.use(ve),console.log("6 ==="),we.mount("#app"),console.log("7 ===")}},t={};function o(a){var n=t[a];if(void 0!==n)return n.exports;var l=t[a]={exports:{}};return e[a].call(l.exports,l,l.exports,o),l.exports}o.m=e,function(){var e=[];o.O=function(t,a,n,l){if(!a){var r=1/0;for(u=0;u<e.length;u++){a=e[u][0],n=e[u][1],l=e[u][2];for(var i=!0,m=0;m<a.length;m++)(!1&l||r>=l)&&Object.keys(o.O).every((function(e){return o.O[e](a[m])}))?a.splice(m--,1):(i=!1,l<r&&(r=l));if(i){e.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[a,n,l]}}(),function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){o.d=function(e,t){for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};o.O.j=function(t){return 0===e[t]};var t=function(t,a){var n,l,r=a[0],i=a[1],m=a[2],s=0;if(r.some((function(t){return 0!==e[t]}))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(m)var u=m(o)}for(t&&t(a);s<r.length;s++)l=r[s],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(u)},a=self["webpackChunkMao_Service_Discovery"]=self["webpackChunkMao_Service_Discovery"]||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}();var a=o.O(void 0,[998],(function(){return o(3943)}));a=o.O(a)})();