text: (function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],d=0,u=[];d<i.length;d++)o=i[d],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&u.push(s[o][0]),s[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);p&&p(t);while(u.length)u.shift()();return r.push.apply(r,l||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],n=!0,o=1;o<a.length;o++){var i=a[o];0!==s[i]&&(n=!1)}n&&(r.splice(t--,1),e=c(c.s=a[0]))}return e}var n={},o={app:0},s={app:0},r=[];function i(e){return c.p+"js/"+({views:"views"}[e]||e)+"."+{"chunk-2d2084b4":"80fd742e","chunk-45816a6a":"03516df0","chunk-64ee6246":"0d297421","chunk-71367435":"0328e483",views:"32f284ee"}[e]+".js"}function c(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.e=function(e){var t=[],a={"chunk-45816a6a":1,"chunk-64ee6246":1,"chunk-71367435":1,views:1};o[e]?t.push(o[e]):0!==o[e]&&a[e]&&t.push(o[e]=new Promise((function(t,a){for(var n="css/"+({views:"views"}[e]||e)+"."+{"chunk-2d2084b4":"31d6cfe0","chunk-45816a6a":"05e46402","chunk-64ee6246":"45244dfd","chunk-71367435":"333692a6",views:"d79abcd1"}[e]+".css",s=c.p+n,r=document.getElementsByTagName("link"),i=0;i<r.length;i++){var l=r[i],d=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(d===n||d===s))return t()}var u=document.getElementsByTagName("style");for(i=0;i<u.length;i++){l=u[i],d=l.getAttribute("data-href");if(d===n||d===s)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var n=t&&t.target&&t.target.src||s,r=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=n,delete o[e],p.parentNode.removeChild(p),a(r)},p.href=s;var m=document.getElementsByTagName("head")[0];m.appendChild(p)})).then((function(){o[e]=0})));var n=s[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise((function(t,a){n=s[e]=[t,a]}));t.push(n[2]=r);var l,d=document.createElement("script");d.charset="utf-8",d.timeout=120,c.nc&&d.setAttribute("nonce",c.nc),d.src=i(e);var u=new Error;l=function(t){d.onerror=d.onload=null,clearTimeout(p);var a=s[e];if(0!==a){if(a){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",u.name="ChunkLoadError",u.type=n,u.request=o,a[1](u)}s[e]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:d})}),12e4);d.onerror=d.onload=l,document.head.appendChild(d)}return Promise.all(t)},c.m=e,c.c=n,c.d=function(e,t,a){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(a,n,function(t){return e[t]}.bind(null,n));return a},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],d=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var p=d;r.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"034f":function(e,t,a){"use strict";a("85ec")},"0f66":function(e,t,a){"use strict";a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"g",(function(){return r})),a.d(t,"f",(function(){return i})),a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return d})),a.d(t,"i",(function(){return u})),a.d(t,"h",(function(){return p}));var n=a("b5c6");function o(){return Object(n["a"])({url:"/node/getNodeList",method:"get"})}function s(e){return Object(n["a"])({url:"/node/getAppNode/"+e,method:"get"})}function r(e){return Object(n["a"])({url:"/node/getSyncNode",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/node/getNodeList",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/node/deleteNode",method:"delete",data:e})}function l(e){return Object(n["a"])({url:"/node/createNode",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/node/findNode/"+e,method:"get"})}function u(e){return Object(n["a"])({url:"/node/updateNode",method:"put",data:e})}function p(e){return Object(n["a"])({url:"/node/ping/"+e,method:"get"})}},"11ef":function(e,t,a){"use strict";a("e78e")},1800:function(e,t,a){"use strict";a("8e19")},"1d08":function(e,t,a){},2001:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"yaml-editor"},[a("textarea",{ref:"textarea"})])},o=[],s=a("56b3"),r=a.n(s);a("0dd0"),a("a7be"),a("737c"),a("ced0"),a("dc5b"),a("8822"),a("b8d1");window.jsyaml=a("e2c1");var i={name:"YamlEditor",props:["value","re"],data:function(){return{yamlEditor:!1,isValid:!0,jsonData:"123232"}},watch:{value:function(e){var t=this.yamlEditor.getValue();e!==t&&this.yamlEditor.setValue(this.value)}},mounted:function(){this.relt2()},methods:{relt2:function(){var e=this;this.yamlEditor=r.a.fromTextArea(this.$refs.textarea,{lineNumbers:!0,mode:"yaml",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],theme:"lucario",readOnly:this.re,lint:!0,lineWrapping:!0,foldGutter:!0,fullScreen:!0,matchBrackets:!0}),this.yamlEditor.setValue(this.value),this.yamlEditor.on("change",(function(t){e.$emit("changed",t.getValue()),e.$emit("input",t.getValue())}))},getValue:function(){return this.yamlEditor.getValue()},refresh:function(){var e=this;setTimeout((function(){e.yamlEditor.refresh()}),1)}}},c=i,l=(a("dfb6"),a("2877")),d=Object(l["a"])(c,n,o,!1,null,"91420dc4",null);t["a"]=d.exports},"2f76":function(e,t,a){"use strict";a("cce5")},"373a":function(e,t){e.exports={Login:{login:"登录",username:"用户名",password:"密码",loginSuccessfully:"登录成功",logoutSuccessfully:"登出成功",pleaseInputUsername:"请输入用户名",pleaseInputPassword:"请输入密码",invalidUsernameOrPassword:"用户名或密码错误",invalidAccess:"未登录或非法访问",tokenExpired:"授权token已过期",loginStatusFailed:"设置登录状态失败",getTokenFailed:"获取token失败",jwtInvalidationFailed:"jwt作废失败",updatePassword:"修改密码",currentPassword:"当前密码",newPassword:"新密码",confirmPassword:"确认密码",pleaseInputCurrentPassword:"请输入当前密码",pleaseInputNewPassword:"请输入新密码",pleaseInputConfirmPassword:"请再次输入新密码",twoInputPassword:"两个输入不匹配!",lessSixNumber:"密码小于6位数",currentPasswordFailed:"当前密码错误",updatePasswordFailed:"更新密码错误",newCurrentPasswordNotSame:"新密码不能跟当前密码一致",logoutTitle:"是否退出系统, 是否继续?"},Header:{operation:"操作",envManagement:"环境管理",appManagement:"应用管理",languageSwitchButton:"En",logout:"登出",changePassword:"修改密码"},Button:{cancel:"取消",create:"添加",update:"更新",delete:"删除",sync:"同步",release:"发布",determine:"确定"},MessageTitle:{querySuccessfully:"查询成功",queryFailed:"查询失败",createSuccessfully:"创建成功",createFailed:"创建失败",updateSuccessfully:"修改成功",updateFailed:"修改失败",deleteSuccessfully:"删除成功",deleteFailed:"删除失败",connectionSuccess:"连接成功",connectionFailed:"连接失败",releaseSuccess:"发布成功",releaseFailed:"发布失败",syncSuccess:"同步成功",syncFailed:"同步失败"},Node:{node:"环境",nodeStatus:"环境状态",nodeManagement:"环境管理",addNode:"创建环境",updateNode:"修改环境",update:"修改",delete:"删除",testCon:"测试连接",areDelete:"您确定要删除环境:",confirmDelete:"删除前请确认是否还有应用使用该环境",nodeList:"环境列表",List:{conStatus:"连接状态",nodeName:"环境名称",nodeAddress:"环境地址",nodeAddressNotUpdate:"环境地址(地址不能修改)",nodeDescription:"环境说明",operation:"操作"},Error:{conError:"环境无法连接 请尽快修复",nodeConnectionFailed:"环境连接失败",nodeNameDuplicate:"环境名称被其他环境占用",nodeAddressDuplicate:"环境地址重复",nodeHistoryLegacy:"节点存在以往app,请清理数据库再使用",nodeNotFound:"未找到该环境",nodeNotDeleted:"不可以删除有%s应用在使用此环境"},Verification:{pleaseInputNodeName:"请输入环境名称",pleaseInputNodeAddress:"请输入环境地址"},placeholder:{nodeName:"必须是英文 比如dev pro fat",nodeAddress:"flying-config 地址:端口/域名"}},App:{appProject:"应用项目",appManagement:"应用管理",addApp:"创建应用",updateApp:"修改应用",update:"修改",delete:"删除",areDelete:"是否确定要删除应用:",confirmDelete:"删除前请确认是否还有客户端使用该应用配置",appInfo:"应用信息",List:{appName:"应用名称",appId:"AppId",useEnvironment:"使用环境",createTime:"创建时间",operation:"操作"},Verification:{pleaseInputAppId:"请输入AppId",pleaseInputAppName:"请输入应用名称",selectNode:"请至少选择一种/多种环境"},placeholder:{appId:"应用项目AppId",appName:"应用项目名称",selectNode:" 环境无法连接，无法选择",updateCheckNode:"修改环境时，去掉原有勾选的环境，会清除该环境跟当前应用所有的信息，谨慎操作"},Error:{appExistsNode:"%s 环境已经存在此项目",appIdDuplicate:"AppId:%s重复",appNotFind:"未找到应用项目"}},Namespace:{namespace:"命名空间",namespaceNodeError:"环境连接错误,无法查看",namespaceNodeDescription:"环境无法连接，namespace配置也无法查看 23333....",namespaceTestCaption:"您可以通过下面方式进行测试该环境是否正常：",namespaceTestConn:"测试该环境的连接地址",nodeAddress:"环境地址",isWrong:"地址是否有错",refreshDescription:"操作 > 环境管理 > 进行",refresh:"刷新",testConn:"测试连接更新状态",checkRunning:"查看该环境部署状态/运行情况是否正常",addNamespace:"创建命名空间",updateNamespace:"修改命名空间",syncConfig:"同步配置",List:{namespaceName:"命名空间名称",node:"环境",format:"格式",configuration:"配置信息"},Verification:{pleaseInputNamespaceName:"请输入命名空间名称",selectNode:"请至少选择一种/多种环境",selectFormat:"请选择配置格式",pleaseInputConfig:"请输入配置信息"},Error:{namespaceRepeat:"当前应用项目在%s环境已经存在此名称的命名空间",namespaceNotFind:"没有找到命名空间",namespaceNodeNotFind:"未找到到该namespace的环境",releaseOther:"此命名空间已被其他管理员发布"},Warning:{namespaceNoChange:"配置没有变动"},foldConfig:"展开/合上配置",releaseTag:"已发布",noReleaseTag:"未发布",lastReleaseTime:"最后发布时间: ",areDelete:"是否确定要删除命名空间:",confirmDelete:"删除后客户端会无法找到该namespace的配置",releaseTitle:"此命名空间配置发生变化,是否进行发布?",releaseName:"发布名称"},Release:{releaseSyncDescription:"要进行同步的命名空间在要被同步中环境中如果已经存在，会直接进行覆盖配置！如果没有会直接复制一份",releaseSyncDescription2:"命名空间只会同步到目前应用已有的环境(排除当前环境)！同步完成后记得进行到对于环境进行命名空间发布",selectSyncNode:"选择要同步的环境",releaseNamespaceSyncNotFound:"要被同步的命名空间没有找到",releaseNamespaceNodeSyncHistory:"应用项目在%s环境存在相同命名空间,是否进行覆盖?",releaseAppNoFind:"%s环境未找到当前应用项目"}}},"3ff2":function(e,t,a){},"404c":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{title:e.$t("Namespace.addNamespace"),width:800,visible:e.visible,"body-style":{paddingBottom:"80px"},closable:!1,destroyOnClose:!0,VNode:"slot"},on:{close:e.onClose}},[a("a-form-model",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[a("a-form-model-item",{ref:"name",attrs:{label:e.$t("Namespace.List.namespaceName"),prop:"name"}},[a("a-input",{on:{blur:function(){e.$refs.name.onFieldBlur()}},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("a-form-model-item",{attrs:{label:e.$t("Node.node"),prop:"nodes"}},[a("a-checkbox-group",{model:{value:e.form.nodes,callback:function(t){e.$set(e.form,"nodes",t)},expression:"form.nodes"}},[e._l(e.nodeList,(function(t){return[a("a-tooltip",[t.status?e._e():a("template",{slot:"title"},[e._v(" "+e._s(e.$t("App.placeholder.selectNode"))+" ")]),a("a-checkbox",{staticStyle:{"margin-right":"25px"},attrs:{value:t.id,name:t.name,disabled:!t.status}},[e._v(" "+e._s(t.name)+" ")])],2)]}))],2)],1),a("a-form-model-item",{attrs:{label:e.$t("Namespace.List.format"),prop:"format"}},[a("a-radio-group",{ref:"",attrs:{options:e.options2},on:{change:e.onChange2},model:{value:e.form.format,callback:function(t){e.$set(e.form,"format",t)},expression:"form.format"}})],1),a("a-form-model-item",{attrs:{label:e.$t("Namespace.List.configuration"),prop:"value"}}),a("div",{class:[e.isFull?"full":"editor-container"]},[a("a-button",{staticClass:"fullbutton",attrs:{icon:"fullscreen"},on:{click:e.showfull}}),e.isYaml?e._e():a("properties-editor",{ref:"editor",attrs:{re:e.read},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}}),e.isYaml?a("yaml-editor",{ref:"editor",attrs:{re:e.read},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}}):e._e()],1)],1),a("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:999}},[a("a-button",{style:{marginRight:"8px"},on:{click:e.onClose}},[e._v(" "+e._s(e.$t("Button.cancel"))+" ")]),a("a-button",{attrs:{type:"primary",loading:e.iconLoading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("Button.create"))+" ")])],1)],1)},o=[],s=(a("b0c0"),a("5530")),r=a("0f66"),i=a("2f62"),c=a("6892"),l=a("2001"),d=a("ad0c"),u=a("aad4"),p=a("f06c"),m=[{label:"yaml",value:"yaml"},{label:"properties",value:"properties"}],f={name:"AddNamespace",components:{YamlEditor:l["a"],PropertiesEditor:d["a"]},data:function(){return{isFull:!1,value:"",format:"yaml",isYaml:!0,options2:m,visible:!1,loading:!1,iconLoading:!1,labelCol:{span:5},wrapperCol:{span:14},nodeList:[],appId:this.$route.query.asId,form:{name:"",nodes:[],format:"yaml",value:""}}},computed:Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(i["b"])(["asId"])),Object(i["b"])(["appNodeId"])),{},{rules:function(){return{name:[{required:!0,message:this.$t("Namespace.Verification.pleaseInputNamespaceName"),trigger:"blur"}],nodes:[{type:"array",required:!0,message:this.$t("Namespace.Verification.selectNode"),trigger:"change"}],format:[{required:!0,message:this.$t("Namespace.Verification.selectFormat"),trigger:"change"}],value:[{required:!0,message:this.$t("Namespace.Verification.pleaseInputConfig"),trigger:"blur"}]}}}),methods:{showfull:function(){this.isFull=!this.isFull,this.isFull&&this.$refs.editor.refresh()},getAppNode:function(){var e=this;Object(r["d"])(this.$route.query.appId).then((function(t){e.nodeList=t.data.data.node}))},showModal:function(){this.getAppNode(),this.visible=!0},onChange2:function(e){"yaml"===e.target.value?this.isYaml=!0:this.isYaml=!1},submit:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.iconLoading=!0,Object(u["a"])(e.$route.query.appId,e.form.name,e.form.nodes,e.form.format,e.form.value).then((function(t){console.log(t.data),e.iconLoading=!1,Object(p["a"])(e,t.data)&&(e.visible=!1,c["a"].$emit("refresh-namespace"),e.resetForm())}))}))},handleCancel:function(){console.log("Clicked cancel button"),this.visible=!1,this.iconLoading=!1,this.resetForm()},resetForm:function(){this.value="",this.format="yaml",this.$refs.ruleForm.resetFields()},onClose:function(){this.visible=!1,this.iconLoading=!1,this.resetForm()}}},h=f,g=(a("e96d"),a("2877")),b=Object(g["a"])(h,n,o,!1,null,"11092dd7",null);t["a"]=b.exports},"425d":function(e,t,a){"use strict";a("3ff2")},4360:function(e,t,a){"use strict";a("d3b7");var n=a("2b0e"),o=a("2f62"),s=a("da6f"),r=a("c24f"),i=a("56cd");a("79fa");n["a"].use(o["a"]),t["a"]=new o["a"].Store({state:{appNodeId:Object(s["a"])({name:"appNodeId"})||[],asId:Object(s["a"])({name:"asId"})||"",nodeStatus:Object(s["a"])({name:"nodeStatus"})||!0,loading:Object(s["a"])({name:"loading"})||!1,expires_in:Object(s["a"])({name:"expires_in"})||"",username:Object(s["a"])({name:"username"})||"",headerImg:Object(s["a"])({name:"headerImg"})||"",x_token:Object(s["a"])({name:"x_token"})||"",isLock:Object(s["a"])({name:"isLock"})||!1,docsite_language:Object(s["a"])({name:"docsite_language"})||""},mutations:{SET_X_TOKEN:function(e,t){e.x_token=t,Object(s["c"])({name:"x_token",content:e.x_token,type:"session"})},SET_EXPIRES_IN:function(e,t){e.expires_in=t,Object(s["c"])({name:"expires_in",content:e.expires_in,type:"session"})},SET_USERNAME:function(e,t){e.username=t,Object(s["c"])({name:"username",content:e.username,type:"session"})},SET_HEADER_IMG:function(e,t){e.headerImg=t,Object(s["c"])({name:"headerImg",content:e.headerImg,type:"session"})},changeAppNodeId:function(e,t){e.appNodeId[0]=t,Object(s["c"])({name:"appNodeId",content:e.appNodeId})},clearAppNodeId:function(e){e.appNodeId=[],Object(s["c"])({name:"appNodeId",content:e.appNodeId})},changeAsId:function(e,t){e.asId=t,Object(s["c"])({name:"asId",content:e.asId})},changeNodeStatus:function(e,t){e.nodeStatus=t,Object(s["c"])({name:"nodeStatus",content:e.nodeStatus})},changLoading:function(e,t){e.loading=t,Object(s["c"])({name:"loading",content:e.loading})},CLEAR_LOCK:function(e){e.isLock=!1,e.lockPasswd="",Object(s["b"])({name:"lockPasswd"}),Object(s["b"])({name:"isLock"})},changeLanguage:function(e,t){e.docsite_language=t,Object(s["c"])({name:"docsite_language",content:e.docsite_language})}},actions:{LoginIn:function(e,t){var a=e.commit;return new Promise((function(e,n){Object(r["a"])(t).then((function(t){200===t.data.code&&(i["a"].success({message:window.i18n.t("Login.loginSuccessfully")}),a("SET_X_TOKEN",t.data.data.token),a("SET_EXPIRES_IN",t.data.data.expiresAt),a("SET_USERNAME",t.data.data.user.userName),a("SET_HEADER_IMG",t.data.data.user.headerImg),a("CLEAR_LOCK"),e())})).catch((function(e){n(e)}))}))},FedLogOut:function(e){var t=e.commit;return new Promise((function(e){t("SET_X_TOKEN",""),t("SET_EXPIRES_IN",""),t("CLEAR_LOCK"),e()}))},SetLanguage:function(e,t){var a=e.commit;return new Promise((function(e){a("changeLanguage",t),e()}))}},modules:{},getters:{appNodeId:function(e){return e.appNodeId},asId:function(e){return e.asId},nodeStatus:function(e){return e.nodeStatus},loadding:function(e){return e.loadding},expires_in:function(e){return e.user.expires_in},x_token:function(e){return e.x_token},username:function(e){return e.username},headerImg:function(e){return e.headerImg},docsite_language:function(e){return e.docsite_language}}})},4678:function(e,t,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="4678"},"56d7":function(e,t,a){"use strict";a.r(t);var n={};a.r(n),a.d(n,"baseUrl",(function(){return S})),a.d(n,"codeUrl",(function(){return O})),a.d(n,"env",(function(){return $}));a("4160"),a("b64b"),a("159b"),a("e260"),a("e6cf"),a("cca6"),a("a79d");var o=a("2b0e"),s=a("5530"),r=a("a925"),i=a("4360"),c=a("cb88"),l=a.n(c),d=a("373a"),u=a.n(d);if(o["a"].use(r["a"]),""===i["a"].getters.docsite_language){var p="en";i["a"].dispatch("SetLanguage",p)}var m={en:Object(s["a"])({},l.a),zh:Object(s["a"])({},u.a)},f=new r["a"]({locale:i["a"].getters.docsite_language||"en",messages:m});window.i18n=f;var h=f,g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view"),a("vue-ins-progress-bar")],1)},b=[],y={name:"Home",components:{},mounted:function(){this.$insProgress.finish()},created:function(){var e=this;this.$insProgress.start(),this.$router.beforeEach((function(t,a,n){return e.$insProgress.start(),i["a"].getters.x_token?"/login"===t.path?n({name:"首页"}):n():"/login"===t.path?n():n({path:"/login"})})),this.$router.afterEach((function(t,a){e.$insProgress.finish()}))},beforeCreate:function(){document.querySelector("body").setAttribute("style","background-color:#f0f2f5")}},w=y,v=(a("034f"),a("2877")),_=Object(v["a"])(w,g,b,!1,null,null,null),j=_.exports,N=a("a18c"),F=a("b5c6"),k=a("2106"),x=a.n(k),$=Object({NODE_ENV:"production",BASE_URL:"/"}),S="",O="".concat(window.location.origin,"/code");a("c975"),a("ac1f"),a("1276"),a("498a");var E=a("323e"),I=a.n(E);a("a5d8");I.a.configure({showSpinner:!1}),N["a"].beforeEach((function(e,t,a){return i["a"].getters.x_token?"/login"===e.path?a({name:"首页"}):a():"/login"===e.path?a():a({path:"/login"})})),N["a"].afterEach((function(e,t){console.log(e),console.log(t)}));var L=a("f23d"),C=(a("3aed"),a("e222"),a("be35"),a("fc86")),T=a.n(C),M=a("0c58"),A=a.n(M),P={position:"fixed",show:!0,height:"3px"};o["a"].use(A.a),o["a"].use(T.a,P),o["a"].config.productionTip=!1,window.axios=F["a"],o["a"].use(x.a,F["a"]),Object.keys(n).forEach((function(e){o["a"].prototype[e]=n[e]})),o["a"].use(L["a"]),new o["a"]({router:N["a"],store:i["a"],i18n:h,render:function(e){return e(j)}}).$mount("#app")},"624b":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:e.$t("Namespace.syncConfig"),visible:e.visible,width:"50%","dialog-style":{top:"20px"},maskClosable:!1,"confirm-loading":e.confirmLoading,okText:this.$t("Button.sync")},on:{ok:e.handleOk,cancel:e.handleCancel}},[a("a-alert",{attrs:{message:this.$t("Release.releaseSyncDescription"),banner:"",type:"warning",closable:""}}),a("br"),a("a-alert",{attrs:{message:this.$t("Release.releaseSyncDescription2"),banner:"",type:"info",closable:""}}),a("br"),a("br"),a("a-form-model",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[a("a-form-model-item",{attrs:{label:this.$t("Release.selectSyncNode"),prop:"nodes"}},[a("a-checkbox-group",{attrs:{prop:"nodes"},model:{value:e.form.nodes,callback:function(t){e.$set(e.form,"nodes",t)},expression:"form.nodes"}},[e._l(e.nodeList,(function(t){return[a("a-tooltip",[t.status?e._e():a("template",{slot:"title"},[e._v(" "+e._s(e.generateTitle("App.placeholder.selectNode"))+" ")]),a("a-checkbox",{staticStyle:{"margin-right":"25px"},attrs:{value:t.id,name:t.name,disabled:!t.status}},[e._v(" "+e._s(t.name)+" ")])],2)]}))],2)],1)],1)],1)},o=[],s=(a("a9e3"),a("5530")),r=a("0f66"),i=a("aad4"),c=a("2f62"),l=a("f06c"),d=a("79fa"),u={name:"SyncNamespace",data:function(){return{visible:!1,loading:!1,confirmLoading:!1,nodeList:[],nodes:[],labelCol:{span:8},wrapperCol:{span:14},form:{id:0,nodes:[],nId:0}}},computed:Object(s["a"])(Object(s["a"])({},Object(c["b"])(["appNodeId"])),{},{rules:function(){return{nodes:[{type:"array",required:!0,message:this.$t("Namespace.Verification.selectNode"),trigger:"change"}]}}}),methods:{generateTitle:d["a"],showModal:function(e,t,a){this.visible=!0,this.getAppNode(e,t,a)},getAppNode:function(e,t,a){var n=this;this.form.id=e,this.form.nId=Number(a);var o={appId:t,nodeId:a};Object(r["g"])(o).then((function(e){n.nodeList=e.data.data.node}))},syncNamespace:function(){var e=this;console.log(this.form),Object(i["f"])(this.form).then((function(t){e.confirmLoading=!1,Object(l["a"])(e,t.data)&&(e.visible=!1,e.$parent.getAppNamespace(e.$route.query.appId,e.$route.query.nodeId,e.$route.query.status),e.resetForm())}))},handleOk:function(e){var t=this,n=this;this.$refs.ruleForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.confirmLoading=!0,Object(i["d"])(t.form).then((function(e){if(console.log(e),10042===e.data.code){var o=a("3022");t.$confirm({title:o.format(t.$t("Release.releaseNamespaceNodeSyncHistory"),e.data.msg),content:"",okText:t.$t("Button.determine"),okType:"danger",cancelText:t.$t("Button.cancel"),onOk:function(){n.syncNamespace()},onCancel:function(){n.confirmLoading=!1,console.log("Cancel")}})}else n.syncNamespace()}))}))},handleCancel:function(){this.visible=!1,this.confirmLoading=!1,this.resetForm()},resetForm:function(){this.$refs.ruleForm.resetFields()}}},p=u,m=a("2877"),f=Object(m["a"])(p,n,o,!1,null,"4cc4a8d2",null);t["a"]=f.exports},"652e":function(e,t,a){},6892:function(e,t,a){"use strict";var n=a("2b0e"),o=new n["a"];t["a"]=o},"68bd":function(e,t,a){"use strict";a("d002")},"6d9f":function(e,t,a){},"753b":function(e,t,a){},"79fa":function(e,t,a){"use strict";function n(e){var t=this.$te(e),a=this.$t(e);return t?a:e}a.d(t,"a",(function(){return n}))},"85ec":function(e,t,a){},8766:function(e,t,a){"use strict";a("f849")},"8e19":function(e,t,a){},"9d4c":function(e,t,a){},a16b:function(e,t,a){"use strict";a("9d4c")},a18c:function(e,t,a){"use strict";a("d3b7"),a("ac1f"),a("5319");var n=a("2b0e"),o=a("8c4f"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-spin",{attrs:{spinning:this.$store.state.loading,tip:"Loading...",delay:"100"}},[a("a-layout",[a("navber"),a("router-view"),a("a-layout-footer",{staticStyle:{"text-align":"center",padding:"0"}},[e._v(" flying ©"+e._s(e.getDate)+" Created by zcj "),a("a",{attrs:{href:"https://github.com/ZhangChengJi/flying"}},[e._v("github")])])],1)],1)},r=[],i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout-header",{staticStyle:{"background-color":"#42b983"}},[n("a-row",{attrs:{type:"flex",justify:"space-around",align:"middle"}},[n("a-col",{attrs:{flex:15}},[n("a",{attrs:{href:"/"}},[n("img",{staticStyle:{width:"160px"},attrs:{src:a("f5b6")}})])]),n("a-col",{staticStyle:{display:"flex","justify-content":"flex-end"},attrs:{flex:1}},[n("a-dropdown",{attrs:{placement:"bottomLeft"}},[n("a",{staticClass:"handle ant-dropdown-link",staticStyle:{color:"#F7FDF7","font-size":"14px"},on:{click:function(e){return e.preventDefault()}}},[n("a-icon",{attrs:{type:"setting",theme:"filled"}}),e._v(" "+e._s(e.generateTitle("Header.operation"))+" "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("router-link",{attrs:{to:"/list/node"}},[n("span",{staticStyle:{"font-size":"15px"}},[e._v(e._s(e.generateTitle("Header.envManagement"))+" ")])])],1),n("a-menu-item",[n("router-link",{attrs:{to:"/list/app"}},[n("span",{staticStyle:{"font-size":"15px"}},[e._v(e._s(e.generateTitle("Header.appManagement")))])])],1)],1)],1),n("span",{staticClass:"language-switch language-switch-primary",on:{click:e.switchLang}},[e._v(" "+e._s(e.generateTitle("Header.languageSwitchButton"))+" ")]),n("a-dropdown",{attrs:{placement:"bottomLeft"}},[n("a",{staticClass:"ant-dropdown-link",staticStyle:{color:"#F7FDF7","font-size":"14px"}},[n("a-avatar",{staticStyle:{backgroundColor:"#87d068"},attrs:{icon:"user",src:this.headerImg,size:"large"},on:{click:function(e){return e.preventDefault()}}}),e._v(" "+e._s(e.username)),n("a-icon",{attrs:{type:"down"}})],1),n("br"),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{on:{click:function(t){return e.showPassword()}}},[n("span",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(e.generateTitle("Header.changePassword")))])]),n("a-menu-item",{on:{click:e.logout}},[n("span",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(e.generateTitle("Header.logout")))])])],1)],1)],1)],1),n("div"),n("dev"),n("update-password",{ref:"password"})],1)},c=[],l=a("5530"),d=a("2f62"),u=a("4360"),p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:this.$t("Login.updatePassword"),visible:e.visible,"dialog-style":{top:"20px"},maskClosable:!1,"confirm-loading":e.confirmLoading,okText:this.$t("Button.determine"),cancelText:this.$t("Button.cancel")},on:{ok:e.handleOk,cancel:e.handleCancel}},[a("a-form-model",e._b({ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},"a-form-model",e.layout,!1),[a("a-form-model-item",{attrs:{label:this.$t("Login.currentPassword"),prop:"password"}},[a("a-input",{attrs:{type:"password"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),a("a-form-model-item",{attrs:{"has-feedback":"",label:this.$t("Login.newPassword"),prop:"pass"}},[a("a-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.ruleForm.pass,callback:function(t){e.$set(e.ruleForm,"pass",t)},expression:"ruleForm.pass"}})],1),a("a-form-model-item",{attrs:{"has-feedback":"",label:this.$t("Login.confirmPassword"),prop:"checkPass"}},[a("a-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.ruleForm.checkPass,callback:function(t){e.$set(e.ruleForm,"checkPass",t)},expression:"ruleForm.checkPass"}})],1)],1)],1)},m=[],f=(a("a9e3"),a("8ba4"),a("c24f")),h=a("f06c"),g={name:"UpdatePassword",data:function(){return{visible:!1,loading:!1,confirmLoading:!1,labelCol:{span:9},wrapperCol:{span:18},form:{username:this.username,password:"",pass:"",checkPass:""},ruleForm:{username:this.username,password:"",pass:"",checkPass:""},layout:{labelCol:{span:8},wrapperCol:{span:14}}}},computed:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["username"])),{},{rules:function(){var e=this,t=function(t,a,n){""===a?n(new Error(e.$t("Login.pleaseInputNewPassword"))):a.length<6?n(new Error(e.$t("Login.lessSixNumber"))):(""!==e.ruleForm.checkPass&&e.$refs.ruleForm.validateField("checkPass"),n())},a=function(t,a,n){""===a?n(new Error(e.$t("Login.pleaseInputConfirmPassword"))):a!==e.ruleForm.pass?n(new Error(e.$t("Login.twoInputPassword"))):n()};return{pass:[{required:!0,validator:t,trigger:"change"}],checkPass:[{required:!0,validator:a,trigger:"change"}],password:[{required:!0,message:this.$t("Login.pleaseInputCurrentPassword"),trigger:"blur"}]}}}),methods:{showModal:function(){this.visible=!0},handleOk:function(e){var t=this,a=this;this.$refs.ruleForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;a.ruleForm.username=a.username,Object(f["b"])(a.ruleForm).then((function(e){a.confirmLoading=!1,Object(h["a"])(a,e.data)&&(t.visible=!1,t.resetForm(),u["a"].dispatch("FedLogOut").then((function(){a.$router.push({path:"/login"})})))}))}))},handleCancel:function(){this.visible=!1,this.confirmLoading=!1,this.resetForm()},resetForm:function(){this.$refs.ruleForm.resetFields()}}},b=g,y=a("2877"),w=Object(y["a"])(b,p,m,!1,null,"3d4d26e4",null),v=w.exports,_=a("79fa"),j={name:"Navber",data:function(){return{}},components:{UpdatePassword:v},computed:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["username"])),Object(d["b"])(["headerImg"])),methods:{generateTitle:_["a"],showPassword:function(){this.$refs.password.showModal()},switchLang:function(){var e="en"===this.$store.getters.docsite_language?"zh":"en";this.$i18n.locale=e,this.$store.dispatch("SetLanguage",e)},logout:function(){var e=this;this.$confirm({title:this.generateTitle("Login.logoutTitle"),okText:this.$t("Button.determine"),okType:"danger",cancelText:this.$t("Button.cancel"),onOk:function(){u["a"].dispatch("FedLogOut").then((function(){e.$notification["success"]({message:e.$t("Login.logoutSuccessfully")}),e.$router.push({path:"/login"})}))},onCancel:function(){console.log("Cancel")}})}}},N=j,F=(a("68bd"),Object(y["a"])(N,i,c,!1,null,"3e1c84c9",null)),k=F.exports,x={name:"Layout",data:function(){return{}},components:{Navber:k},computed:{getDate:function(){var e=new Date;return e.getFullYear()}}},$=x,S=(a("8766"),Object(y["a"])($,s,r,!1,null,null,null)),O=S.exports,E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-spin",{attrs:{spinning:this.$store.state.loading,tip:"Loading...",delay:"100"}},[a("a-layout",[a("navber"),a("Detail"),a("a-layout-footer",{staticStyle:{"text-align":"center",padding:"0"}},[e._v(" flying ©"+e._s(e.getDate)+" Created by zcj "),a("a",{attrs:{href:"https://github.com/ZhangChengJi/flying"}},[e._v("github")])])],1)],1)},I=[],L=a("c84b"),C={name:"SonView",data:function(){return{}},components:{Detail:L["default"],Navber:k},computed:{getDate:function(){var e=new Date;return e.getFullYear()}}},T=C,M=(a("c98d"),Object(y["a"])(T,E,I,!1,null,null,null)),A=M.exports;n["a"].use(o["a"]);var P=o["a"].prototype.push,D=o["a"].prototype.replace;o["a"].prototype.push=function(e,t,a){return t||a?P.call(this,e,t,a):P.call(this,e).catch((function(e){return e}))},o["a"].prototype.replace=function(e,t,a){return t||a?D.call(this,e,t,a):D.call(this,e).catch((function(e){return e}))};var z=[{path:"/login",name:"login",component:function(){return a.e("chunk-71367435").then(a.bind(null,"a55b"))}},{path:"/",name:"主页",redirect:"/wel"},{path:"/wel",component:O,redirect:"/wel/index",children:[{path:"index",name:"首页",component:function(){return a.e("views").then(a.bind(null,"bb51"))}}]},{path:"/app",component:A,name:"app",children:[{path:"detail",component:function(){return Promise.resolve().then(a.bind(null,"c84b"))},name:"Detail"},{path:"namespace",component:function(){return Promise.resolve().then(a.bind(null,"f2a2"))},name:"Namespace"}]},{path:"/namespace",children:[{path:"namespace",name:"首页",component:function(){return a.e("chunk-2d2084b4").then(a.bind(null,"a3d0"))}}]},{path:"/list",component:O,name:"list",children:[{path:"node",component:function(){return a.e("chunk-64ee6246").then(a.bind(null,"2713"))},name:"Node"},{path:"app",component:function(){return a.e("chunk-45816a6a").then(a.bind(null,"6da2"))},name:"App"}]}],q=new o["a"]({mode:"hash",routes:z});t["a"]=q},aad4:function(e,t,a){"use strict";a.d(t,"e",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return r})),a.d(t,"g",(function(){return i})),a.d(t,"b",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"f",(function(){return d}));var n=a("b5c6");function o(e){return Object(n["a"])({url:"/namespace/getAppNamespace",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/namespace/findNamespace",method:"get",params:e})}function r(e,t,a,o,s){return Object(n["a"])({url:"/namespace/createNamespace",method:"post",data:{appId:e,name:t,nodes:a,format:o,value:s}})}function i(e){return Object(n["a"])({url:"/namespace/updateNamespace",method:"put",data:e})}function c(e,t){return Object(n["a"])({url:"/namespace/deleteNamespace",method:"delete",data:{id:e,nodeId:t}})}function l(e){return Object(n["a"])({url:"/namespace/findRemoteNamespace",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/namespace/syncNamespace",method:"post",data:e})}},ad0c:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"properties-editor"},[a("textarea",{ref:"textarea"})])},o=[],s=a("56b3"),r=a.n(s),i=(a("0dd0"),a("a7be"),a("737c"),a("dc5b"),a("8822"),{name:"PropertiesEditor",props:["value","re"],data:function(){return{propertiesEditor:!1,isValid:!0}},watch:{value:function(e){var t=this.propertiesEditor.getValue();e!==t&&this.propertiesEditor.setValue(this.value)}},mounted:function(){this.relt2()},methods:{relt2:function(){var e=this;this.propertiesEditor=r.a.fromTextArea(this.$refs.textarea,{lineNumbers:!0,mode:"properties",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],theme:"lucario",readOnly:this.re,lint:!0,lineWrapping:!0,foldGutter:!0,fullScreen:!0,matchBrackets:!0}),this.propertiesEditor.setValue(this.value),this.propertiesEditor.on("change",(function(t){e.$emit("changed",t.getValue()),e.$emit("input",t.getValue())}))},getValue:function(){return this.propertiesEditor.getValue()},refresh:function(){var e=this;setTimeout((function(){e.propertiesEditor.refresh()}),1)}}}),c=i,l=(a("1800"),a("2877")),d=Object(l["a"])(c,n,o,!1,null,"2d4394df",null);t["a"]=d.exports},b1e1:function(e,t,a){"use strict";a("6d9f")},b5c6:function(e,t,a){"use strict";a("a9e3"),a("d3b7");var n=a("bc3a"),o=a.n(n),s=a("323e"),r=a.n(s),i=(a("a5d8"),a("a18c")),c=a("4360"),l=(a("d940"),a("f06c"));o.a.defaults.timeout=1e4,o.a.defaults.validateStatus=function(e){return e>=200&&e<=500},o.a.defaults.withCredentials=!0,r.a.configure({showSpinner:!1}),o.a.interceptors.request.use((function(e){r.a.start();var t=c["a"].getters.x_token;return t&&(e.headers["x-token"]=t),e}),(function(e){return Promise.reject(e)})),o.a.interceptors.response.use((function(e){r.a.done();var t=Number(e.status)||200;return 401===t?(Object(l["b"])(e.data),void c["a"].dispatch("FedLogOut").then((function(){i["a"].push({path:"/login"})}))):e}),(function(e){return r.a.done(),Promise.reject(new Error(e))})),t["a"]=o.a},be35:function(e,t,a){},c24f:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s}));var n=a("b5c6");function o(e){return Object(n["a"])({url:"/base/login",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/base/upPass",method:"post",data:e})}},c466:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("4d63"),a("ac1f"),a("25f0"),a("5319");function n(e,t){var a=new Date(e).Format("yyyy-MM-dd hh:mm:ss");return t&&(a=new Date(e).Format(t)),a.toLocaleString()}Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var a in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[a]:("00"+t[a]).substr((""+t[a]).length)));return e}},c58b:function(e,t,a){"use strict";a("1d08")},c84b:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-layout",{attrs:{id:"c-layout"}},[a("app-side"),a("namespace-list")],1)},o=[],s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-layout-sider",{staticStyle:{background:"#f0f2f5","min-height":"500px","min-width":"100px",padding:"0"}},[a("a-card",{attrs:{title:e.$t("Node.nodeList"),bordered:!1,size:"small",headStyle:{backgroundColor:"#42b983",color:"#fff"},bodyStyle:{padding:"1px"}}},[a("dev",[a("a-menu",{staticStyle:{width:"100%"},attrs:{"default-selected-keys":e.current,mode:"inline"}},[e._l(e.nodeList,(function(t){return[a("a-menu-item",{key:t.id,style:t.status?"":"color: red",attrs:{se:"","data-item":t.status}},[a("a-icon",{attrs:{type:t.status?"smile":"frown"}}),a("span",[e._v(e._s(t.name))]),a("router-link",{attrs:{to:{path:"/app/namespace",query:{appId:e.getApp,nodeId:t.id,status:t.status}}}})],1)]}))],2)],1)],1),a("br"),a("br"),a("a-card",{attrs:{title:e.$t("App.appInfo"),bordered:!1,size:"small",headStyle:{backgroundColor:"#42b983",color:"#fff"},bodyStyle:{padding:" 15px"}}},[a("dev",[a("span",{},[a("i",{staticStyle:{"font-family":"Monaco","font-style":"normal","font-size":"14px"}},[e._v(e._s(e.$t("App.List.appId"))+": "),a("i",{staticStyle:{"font-size":"12px",color:"#42b983"}},[e._v(e._s(e.appInfo.appId))])])]),a("br"),a("span",{staticStyle:{"{text-align":"center}"}},[a("i",{staticStyle:{"font-family":"Monaco","font-style":"normal","font-size":"14px"}},[e._v(" "+e._s(e.$t("App.List.appName"))+": ")]),a("i",{staticStyle:{"font-size":"12px",color:"#42b983"}},[e._v(e._s(e.appInfo.name))])])])],1)],1)},r=[],i=a("5530"),c=a("0f66"),l=(a("6892"),a("2f62")),d={name:"AppSide",data:function(){return{openKeys:["sub1"],defaultSelectKey:[],key:"",nodeList:[],appInfo:"",iconList:["cloud-server","deployment-unit","coffee","meh","fire","alert","robot"],appId:"",nodeId:["1"]}},watch:{openKeys:function(e){console.log("openKeys",e)}},computed:Object(i["a"])(Object(i["a"])({},Object(l["b"])(["appNodeId"])),{},{current:function(){return this.$route.query.nodeId},getApp:function(){return this.$route.query.appId}}),mounted:function(){this.getAppNode()},methods:{randomIcon:function(){var e=Math.floor(Math.random()*this.iconList.length+1)-1;return this.iconList[e]},getAppNode:function(){var e=this;Object(c["d"])(this.getApp).then((function(t){if(console.log(t),null!=t.data){var a=t.data.data;e.appInfo=a.app,e.nodeList=a.node}}))},titleClick:function(e){console.log("titleClick",e)}}},u=d,p=(a("c58b"),a("2877")),m=Object(p["a"])(u,s,r,!1,null,"01374557",null),f=m.exports,h=(a("f2a2"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-layout",{staticStyle:{padding:"0 24px 24px 24px"}},[a("add-namespace",{ref:"add"}),a("a-layout-content",{style:{background:"#fff",padding:"0 ",margin:0,minHeight:"700px"}},[a("a-card",{attrs:{title:e.$t("Namespace.namespace"),bordered:!1,size:"small",headStyle:{backgroundColor:"#42b983",color:"#fff"},bodyStyle:{padding:"24px"}}},[a("a-icon",{staticStyle:{color:"#ffffff","font-size":"23px",cursor:"pointer"},attrs:{slot:"extra",title:e.$t("Button.create"),type:"plus-circle"},on:{click:function(t){return e.addShow()}},slot:"extra"}),a("router-view")],1)],1)],1)}),g=[],b=a("2001"),y=a("ad0c"),w=a("404c"),v=a("aad4"),_=a("f52a"),j=a("e0ae"),N=a("624b"),F=a("c466"),k={name:"NamespaceList",components:{SyncNamespace:N["a"],UpdateNamespace:j["a"],YamlEditor:b["a"],PropertiesEditor:y["a"],AddNamespace:w["a"]},data:function(){return{ds:!0,value2:"yaml",mode:"text/x-yaml",ModalText:"Content of the modal",customStyle:"",other:"",namespaceList:[],isNotData:!1,notTitle:"无法查看该namespace配置",status:this.nodeStatus,read:"nocursor",activeKey:0,nodeStatus:"",nodeList:[],appInfo:"",iconList:["cloud-server","deployment-unit","coffee","meh","fire","alert","robot"],meunKey:""}},watch:{},computed:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(l["b"])(["asId"])),Object(l["b"])(["appNodeId"])),Object(l["b"])(["appNodeId"])),mounted:function(){},filters:{formatDate:function(e){if(null!=e&&""!=e){var t=new Date(e);return"最后发布时间："+Object(F["a"])(t,"yyyy-MM-dd hh:mm:ss")}return""}},methods:{addShow:function(){this.$refs.add.showModal()},update:function(e){this.$refs.update.showModal(e)},sync:function(e){this.$refs.sync.showModal(e)},change:function(e){this.ds=e},showDeleteConfirm:function(e,t){var a=this.$createElement,n=this;a("span",{style:"color: red"},["name"]);this.$confirm({title:function(e){return e("div",{style:""},["是否确定要删除namespace: ",e("span",{style:"color: red; font-size: 20px"},[t])])},content:"删除后客户端会无法找到该namespace的配置",okText:"确定",okType:"danger",cancelText:"取消",onOk:function(){Object(v["b"])(e).then((function(e){var t="success",a="删除成功",o="";0!==e.data.code?(t="error",a="删除失败",o=e.data.msg):n.getAppNamespace(n.appNodeId[0]),n.$notification[t]({message:a,description:o})}))},onCancel:function(){console.log("Cancel")}})},getAppNamespace:function(e){var t=this;this.namespaceList=[],Object(v["e"])({aId:this.$route.query.asId,nodeId:e}).then((function(e){t.namespaceList=e.data.data.list,t.status=e.data.data.node.status,t.status&&(e.data.data.list.length<=0?t.isNotData=!0:t.isNotData=!1)}))},getTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),o=e.getHours(),s=e.getMinutes(),r=e.getSeconds();return t+"年"+a+"月"+n+"日"+o+":"+s+":"+r},showConfirm:function(e,t){this.$createElement;var a=this.getTime()+"-RE",n=this;this.$confirm({okText:"发布",width:"25%",title:"此命名空间配置发生变化,是否进行发布?",content:function(e){return e("div",{style:""},[e("span",{style:"font-size: 16px"},["命名空间:       "]),e("span",{style:"font-size: 16px;color:red"},[t]),e("br"),e("span",{style:"font-size: 16px"},["发布名称:       "]),e("span",{style:"font-size: 16px;color:#F5B400"},[a])])},onOk:function(){Object(_["a"])({nId:e,releaseName:a}).then((function(e){var t="success",a="发布成功",o="";0!==e.data.code?(t="error",a="发布失败",o=e.data.msg):n.getAppNamespace(n.appNodeId[0]),n.$notification[t]({message:a,description:o})}))},onCancel:function(){console.log("Cancel")},class:"test"})},onSubmit:function(){this.$refs.ruleForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;alert("submit!")}))},resetForm:function(){}}},x=k,$=(a("11ef"),a("a16b"),Object(p["a"])(x,h,g,!1,null,"d101d0f0",null)),S=$.exports,O={name:"Detail",data:function(){return{nodeId:""}},components:{NamespaceList:S,AppSide:f},methods:{}},E=O,I=Object(p["a"])(E,n,o,!1,null,"f2720c4c",null);t["default"]=I.exports},c98d:function(e,t,a){"use strict";a("ccda")},cb88:function(e,t){e.exports={Login:{login:"Login",username:"Username",password:"Password",loginSuccessfully:"Login successfully",logoutSuccessfully:"Logout successfully",pleaseInputUsername:"Please input username",pleaseInputPassword:"Please input password",invalidUsernameOrPassword:"invalid username or password",invalidAccess:"No login or illegal access",tokenExpired:"The authorization token has expired",loginStatusFailed:"Failed to set login status",getTokenFailed:"get token failed",jwtInvalidationFailed:"jwt invalidation failed",updatePassword:"Update password",currentPassword:"Current password",newPassword:"New password",confirmPassword:"Confirm password",pleaseInputCurrentPassword:"Please input current password",pleaseInputNewPassword:"Please input new password",pleaseInputConfirmPassword:"Please input the new password again",twoInputPassword:"Two inputs don t match!",lessSixNumber:"Password is less than 6 digits",currentPasswordFailed:"The current password is wrong",updatePasswordFailed:"Update password Failed",newCurrentPasswordNotSame:"The new password cannot be the same as the current password",logoutTitle:"Exit the system, continue?"},Header:{operation:"Operation",envManagement:"Environmental management",appManagement:"Application management",languageSwitchButton:"中",logout:"logout",changePassword:"modify password"},Button:{cancel:"Cancel",create:"Create",update:"Update",delete:"Delete",sync:"Sync",release:"Release",determine:"OK"},MessageTitle:{querySuccessfully:"Search successfully",queryFailed:"Search failed",createSuccessfully:"Create successfully",createFailed:"Create failed",updateSuccessfully:"Update successfully",updateFailed:"Update failed",deleteSuccessfully:"Deleted successfully",deleteFailed:"Delete failed",connectionSuccess:"Connection succeeded",connectionFailed:"Connection failed",releaseSuccess:"Release succeeded",releaseFailed:"Release failed",syncSuccess:"Synchronize succeeded",syncFailed:"Synchronize failed"},Status:{createFailed:"Create Failed",createSuccessfully:"Create Successfully"},Node:{node:"Environmental",nodeStatus:"Environmental status",nodeManagement:"Environmental management",addNode:"Add environmental",updateNode:"update environmental",update:"update",delete:"delete",testCon:"Test connection",areDelete:"Are you sure you want to delete the environment:",confirmDelete:"Please confirm whether there are any applications using the environment before deleting",nodeList:"Environmental list",List:{conStatus:"Connection status",nodeName:"Environmental name",nodeAddress:"Environmental Address",nodeAddressNotUpdate:"Environment address (address cannot be modified)",nodeDescription:"Environmental description",operation:"operation"},Error:{conError:"environment cannot be connected. Please repair it as soon as possible",nodeConnectionFailed:"environment failed connected",nodeNameDuplicate:"Environment name is occupied by other environments",nodeAddressDuplicate:"Duplicate environment address name",nodeHistoryLegacy:"The node has past apps, please clean up the database and use it again",nodeUpdateNotFound:"The environment was not found",nodeNotDeleted:"It is not possible to delete the %s application that is using this environment"},Verification:{pleaseInputNodeName:"Please input environment name",pleaseInputNodeAddress:"Please input environment address",nodeHistoryLegacy:"The node has past apps, please clean up the database and use it again"},placeholder:{nodeName:"Must be in English, such as dev pro fat",nodeAddress:"flying-config address:port/domain name"}},App:{appProject:"Application project",appManagement:"Application management",addApp:"Create Application",updateApp:"Update Application",update:"update",delete:"delete",areDelete:"Are you sure you want to delete the application:",confirmDelete:"Please confirm whether there are still clients using the application configuration before deleting",appInfo:"Application information",List:{appName:"Application Name",appId:"AppId",useEnvironment:"Use environment",createTime:"Create time",operation:"operation"},Verification:{pleaseInputAppId:"Please input AppId",pleaseInputAppName:"Please input Application Name",selectNode:"Please select at least one/multiple environments"},placeholder:{appId:"Application Project AppId",appName:"Application project name",selectNode:"The environment cannot be connected and cannot be selected",updateCheckNode:"When modifying the environment, remove the original checked environment, it will clear all the information of the environment and the current application, operate with caution"},Error:{appExistsNode:"This project already exists in %s environment",appIdDuplicate:"AppId: Duplicate %s",appNotFind:"No application found"}},Namespace:{namespace:"namespace",namespaceNodeError:"Environment connection error, unable to view",namespaceNodeDescription:"The environment cannot be connected, and the namespace configuration cannot be viewed 23333....",namespaceTestCaption:"You can test whether the environment is normal by the following methods：",namespaceTestConn:"Test the connection address of the environment",nodeAddress:"Environment address",isWrong:"Is the address wrong?",refreshDescription:"Operation> Environmental Management> Proceed",refresh:"refresh",testConn:"Test connection update status",checkRunning:"Check whether the deployment status/operation of the environment is normal",addNamespace:"Create namespace",updateNamespace:"Update namespace",syncConfig:"Synchronize Configuration",List:{namespaceName:"Namespace name",node:"Environmental",format:"Format",configuration:"Configuration"},Verification:{pleaseInputNamespaceName:"Please input namespace name",selectNode:"Please select at least one/multiple environments",selectFormat:"Please select configuration format",pleaseInputConfig:"Please input configuration"},Error:{namespaceRepeat:"The current application project already has a namespace with this name in the %s environment",namespaceNotFind:"No namespace found",namespaceNodeNotFind:"The environment of the namespace was not found",releaseOther:"This namespace has been published by another administrator"},Warning:{namespaceNoChange:"The configuration has not changed"},foldConfig:"Open/fold configuration",releaseTag:"Release",noReleaseTag:"No release",lastReleaseTime:"Last release time: ",areDelete:"Are you sure you want to delete the namespace:",confirmDelete:"After deletion, the client will not be able to find the configuration of the namespace",releaseTitle:"This namespace configuration has changed, do you want to publish it?",releaseName:"Release name"},Release:{releaseSyncDescription:"If the namespace to be synchronized already exists in the environment to be synchronized, it will be overwritten directly! If not, a copy will be made directly",releaseSyncDescription2:"The namespace will only be synchronized to the existing environment of the current application (excluding the current environment)! After the synchronization is complete, remember to proceed to the namespace publishing for the environment",selectSyncNode:"Please select sync environment",releaseNamespaceSyncNotFound:"The namespace to be synchronized was not found",releaseNamespaceNodeSyncHistory:"The application project has the same namespace in the %s environment, do you want to overwrite it?"}}},ccda:function(e,t,a){},cce5:function(e,t,a){},d002:function(e,t,a){},d940:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n="success",o="error",s="warning",r=a("3022");function i(e){switch(e.code){case 401:return{title:"",msg:window.i18n.t("Login.invalidUsernameOrPassword"),type:o};case 10010:return{title:window.i18n.t("MessageTitle.createFailed"),msg:r.format(window.i18n.t("App.Error.appIdDuplicate"),e.msg),type:o};case 10011:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("App.Error.appNotFind"),type:o};case 10012:return{title:window.i18n.t("MessageTitle.createFailed"),msg:r.format(window.i18n.t("App.Error.appExistsNode"),e.msg),type:o};case 10020:return{title:window.i18n.t("MessageTitle.createFailed"),msg:window.i18n.t("Node.Error.nodeConnectionFailed"),type:o};case 10021:return{title:window.i18n.t("MessageTitle.createFailed"),msg:window.i18n.t("Node.Error.nodeNameDuplicate"),type:o};case 10022:return{title:window.i18n.t("MessageTitle.createFailed"),msg:window.i18n.t("Node.Error.nodeAddressDuplicate"),type:o};case 10023:return{title:window.i18n.t("MessageTitle.createFailed"),msg:window.i18n.t("Node.Error.nodeHistoryLegacy"),type:o};case 10024:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("Node.Error.nodeAddressDuplicate"),type:o};case 10025:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("Node.Error.nodeNameDuplicate"),type:o};case 10026:return{title:window.i18n.t("MessageTitle.deleteFailed"),msg:r.format(window.i18n.t("Node.Error.nodeNotDeleted"),e.msg),type:o};case 10030:return{title:window.i18n.t("MessageTitle.createFailed"),msg:r.format(window.i18n.t("Namespace.Error.namespaceRepeat"),e.msg),type:o};case 10031:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:r.format(window.i18n.t("Namespace.Error.namespaceNotFind"),e.msg),type:o};case 10032:return{title:window.i18n.t("MessageTitle.deleteFailed"),msg:r.format(window.i18n.t("Namespace.Error.namespaceNotFind"),e.msg),type:o};case 10033:return{title:window.i18n.t("MessageTitle.releaseFailed"),msg:window.i18n.t("Namespace.Warning.namespaceNoChange"),type:o};case 10034:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("Namespace.Warning.namespaceNoChange"),type:s};case 10035:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:r.format(window.i18n.t("Namespace.Error.namespaceNodeNotFind"),e.msg),type:o};case 10036:return{title:window.i18n.t("MessageTitle.deleteFailed"),msg:window.i18n.t("Namespace.Error.namespaceNodeNotFind"),type:o};case 10040:return{title:window.i18n.t("MessageTitle.releaseFailed"),msg:window.i18n.t("Namespace.Error.releaseOther"),type:o};case 10041:return{title:window.i18n.t("MessageTitle.syncFailed"),msg:window.i18n.t("Release.releaseNamespaceSyncNotFound"),type:o};case 10050:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("Login.currentPasswordFailed"),type:o};case 10051:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("Login.updatePasswordFailed"),type:o};case 10052:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:window.i18n.t("Login.newCurrentPasswordNotSame"),type:o};case 20010:return{title:window.i18n.t("MessageTitle.createSuccessfully"),msg:"",type:n};case 20011:return{title:window.i18n.t("MessageTitle.updateSuccessfully"),msg:"",type:n};case 20012:return{title:window.i18n.t("MessageTitle.deleteSuccessfully"),msg:"",type:n};case 20013:return{title:window.i18n.t("MessageTitle.connectionSuccess"),msg:"",type:n};case 20014:return{title:window.i18n.t("MessageTitle.releaseSuccess"),msg:"",type:n};case 20015:return{title:window.i18n.t("MessageTitle.syncSuccess"),msg:"",type:n};case 40100:return{title:window.i18n.t("Login.invalidUsernameOrPassword"),msg:"",type:o};case 40101:return{title:window.i18n.t("Login.invalidAccess"),msg:"",type:o};case 40102:return{title:window.i18n.t("Login.tokenExpired"),msg:"",type:o};case 40103:return{title:window.i18n.t("Login.loginStatusFailed"),msg:"",type:o};case 40104:return{title:window.i18n.t("Login.getTokenFailed"),msg:"",type:o};case 40105:return{title:window.i18n.t("Login.jwtInvalidationFailed"),msg:"",type:o};case 50010:return{title:window.i18n.t("MessageTitle.createFailed"),msg:"",type:o};case 50011:return{title:window.i18n.t("MessageTitle.updateFailed"),msg:"",type:o};case 50012:return{title:window.i18n.t("MessageTitle.deleteFailed"),msg:"",type:o};case 50013:return{title:window.i18n.t("MessageTitle.connectionFailed"),msg:"",type:o};case 50014:return{title:window.i18n.t("MessageTitle.releaseFailed"),msg:"",type:o};case 50015:return{title:window.i18n.t("MessageTitle.syncFailed"),msg:"",type:o};default:return""}}},da6f:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return setStore})),__webpack_require__.d(__webpack_exports__,"a",(function(){return getStore})),__webpack_require__.d(__webpack_exports__,"b",(function(){return removeStore}));var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__),_Users_zhangchengji_GoProjects_flying_flying_ui_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("53ca");function validatenull(e){if("boolean"===typeof e)return!1;if("number"===typeof e)return!1;if(e instanceof Array){if(0==e.length)return!0}else{if(!(e instanceof Object))return"null"==e||null==e||"undefined"==e||void 0==e||""==e;if("{}"===JSON.stringify(e))return!0}return!1}var keyName="flying-",setStore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,a=e.content,n=e.type;t=keyName+t;var o={dataType:Object(_Users_zhangchengji_GoProjects_flying_flying_ui_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["a"])(a),content:a,type:n,datetime:(new Date).getTime()};n?window.sessionStorage.setItem(t,JSON.stringify(o)):window.localStorage.setItem(t,JSON.stringify(o))},getStore=function getStore(){var params=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},name=params.name,debug=params.debug;name=keyName+name;var obj={},content;if(obj=window.sessionStorage.getItem(name),validatenull(obj)&&(obj=window.localStorage.getItem(name)),!validatenull(obj)){try{obj=JSON.parse(obj)}catch(_unused){return obj}return debug?obj:("string"==obj.dataType?content=obj.content:"number"==obj.dataType?content=Number(obj.content):"boolean"==obj.dataType?content=eval(obj.content):"object"==obj.dataType&&(content=obj.content),content)}},removeStore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,a=e.type;t=keyName+t,a?window.sessionStorage.removeItem(t):window.localStorage.removeItem(t)},getAllStore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],a=e.type;if(a)for(var n=0;n<=window.sessionStorage.length;n++)t.push({name:window.sessionStorage.key(n),content:getStore({name:window.sessionStorage.key(n),type:"session"})});else for(var o=0;o<=window.localStorage.length;o++)t.push({name:window.localStorage.key(o),content:getStore({name:window.localStorage.key(o)})});return t},clearStore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;t?window.sessionStorage.clear():window.localStorage.clear()}},dfb6:function(e,t,a){"use strict";a("753b")},e0ae:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{title:e.$t("Namespace.updateNamespace"),width:800,visible:e.visible,"body-style":{paddingBottom:"80px"},closable:!1,destroyOnClose:!0,VNode:"slot"},on:{close:e.onClose}},[a("a-form-model",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[a("a-form-model-item",{ref:"name",attrs:{label:e.$t("Namespace.List.namespaceName")}},[a("a-input",{attrs:{disabled:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("a-form-model-item",{attrs:{label:e.$t("Node.node")}},[a("a-checkbox",{attrs:{value:e.node.name,"default-checked":"",disabled:""}},[e._v(" "+e._s(e.node.name)+" ")])],1),a("a-form-model-item",{attrs:{label:e.$t("Namespace.List.format")}},[a("a-radio",{ref:"",attrs:{disabled:""},model:{value:e.form.format,callback:function(t){e.$set(e.form,"format",t)},expression:"form.format"}},[e._v(" "+e._s(e.form.format)+" ")])],1),a("a-form-model-item",{attrs:{label:e.$t("Namespace.List.configuration"),prop:"value"}}),a("div",{class:[e.isFull?"full":"editor-container"]},[a("a-button",{staticClass:"fullbutton",attrs:{icon:"fullscreen"},on:{click:e.showfull}}),e.isYaml?e._e():a("properties-editor",{ref:"editor",attrs:{re:e.read},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}}),e.isYaml?a("yaml-editor",{ref:"editor",attrs:{re:e.read},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}}):e._e()],1)],1),a("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:999}},[a("a-button",{style:{marginRight:"8px"},on:{click:e.onClose}},[e._v(" "+e._s(e.$t("Button.cancel"))+" ")]),a("a-button",{attrs:{type:"primary",loading:e.iconLoading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("Button.update"))+" ")])],1)],1)},o=[],s=(a("a9e3"),a("0f66"),a("2001")),r=a("ad0c"),i=a("aad4"),c=a("f06c"),l=[{label:"yaml",value:"yaml"},{label:"properties",value:"properties"}],d={name:"UpdateNamespace",components:{YamlEditor:s["a"],PropertiesEditor:r["a"]},data:function(){return{isFull:!1,fu:!1,value:"",format:"yaml",isYaml:!0,options2:l,visible:!1,loading:!1,iconLoading:!1,labelCol:{span:4},wrapperCol:{span:14},node:[],read:!1,form:{value:"",nodeId:0}}},computed:{current:function(){return this.$route.query.nodeId},rules:function(){return{name:[{required:!0,message:this.$t("Namespace.Verification.pleaseInputNamespaceName"),trigger:"blur"}],nodes:[{type:"array",required:!0,message:this.$t("Namespace.Verification.selectNode"),trigger:"change"}],format:[{required:!0,message:this.$t("Namespace.Verification.selectFormat"),trigger:"change"}],value:[{required:!0,message:this.$t("Namespace.Verification.pleaseInputConfig"),trigger:"blur"}]}}},methods:{showfull:function(){this.isFull=!this.isFull,this.isFull&&this.$refs.editor.refresh()},findNamespace:function(e,t,a){var n=this;Object(i["c"])({id:e,nodeId:a}).then((function(e){"yaml"===e.data.data.namespace.format?n.isYaml=!0:n.isYaml=!1,n.form=e.data.data.namespace,n.node=e.data.data.node}))},showModal:function(e,t,a){this.visible=!0,this.findNamespace(e,t,a)},onChange2:function(e){"yaml"===e.target.value?this.isYaml=!0:this.isYaml=!1},submit:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.iconLoading=!0,e.form.nodeId=Number(e.$route.query.nodeId),Object(i["g"])(e.form).then((function(t){e.iconLoading=!1,Object(c["a"])(e,t.data)&&(e.visible=!1,e.$parent.getAppNamespace(e.$route.query.appId,e.$route.query.nodeId,e.$route.query.status),e.resetForm())}))}))},handleCancel:function(){console.log("Clicked cancel button"),this.visible=!1,this.iconLoading=!1,this.resetForm()},resetForm:function(){this.value="",this.format="yaml",this.$refs.ruleForm.resetFields()},onClose:function(){this.visible=!1,this.resetForm()}}},u=d,p=(a("b1e1"),a("2877")),m=Object(p["a"])(u,n,o,!1,null,"032aac85",null);t["a"]=m.exports},e222:function(e,t,a){a("c975"),function(e){var t,a,n,o,s,r,i='<svg><symbol id="icon-tianjia" viewBox="0 0 1024 1024"><path d="M512 512m-480 0a480 480 0 1 0 960 0 480 480 0 1 0-960 0Z" fill="#5866D0" ></path><path d="M472 256m40 0l0 0q40 0 40 40l0 432q0 40-40 40l0 0q-40 0-40-40l0-432q0-40 40-40Z" fill="#F17254" ></path><path d="M256 472m40 0l432 0q40 0 40 40l0 0q0 40-40 40l-432 0q-40 0-40-40l0 0q0-40 40-40Z" fill="#F17254" ></path></symbol><symbol id="icon-tubiao-lianjiezhuangtai-zhengchang-" viewBox="0 0 3206 1024"><path d="M562.737626 0h457.465653c47.391736 0 61.812364 32.700298 50.844562 54.161983L613.582188 969.838017c-2.911207 21.190876-49.829025 54.161983-101.553719 54.161983H54.292007c-47.391736 0-61.812364-32.700298-50.844562-54.161983L461.116205 54.161983c2.911207-21.190876 49.761322-54.161983 101.553719-54.161983" fill="#FF0000" ></path><path d="M1616.255907 0h480.687604c37.845686 0 52.537124 32.700298 32.700297 73.18638L1697.905098 950.54281a132.764562 132.764562 0 0 1-104.668034 73.118678h-480.6199c-37.981091 0-52.537124-32.700298-32.768-73.118678l431.73871-877.35643A132.764562 132.764562 0 0 1 1616.255907 0" fill="#FF0000" opacity=".6" ></path><path d="M2683.720899 0h480.687603c37.913388 0 52.537124 32.700298 32.700298 73.18638L2765.437792 950.54281a132.967669 132.967669 0 0 1-104.668033 73.118678H2180.149858c-37.981091 0-52.604826-32.700298-32.835703-73.118678l431.738711-877.35643A132.899967 132.899967 0 0 1 2683.720899 0" fill="#FF0000" opacity=".4" ></path></symbol><symbol id="icon-tubiao-lianjiezhuangtai-zhengchang" viewBox="0 0 3206 1024"><path d="M562.737626 0h457.465653c47.391736 0 61.812364 32.700298 50.844562 54.161983L613.582188 969.838017c-2.911207 21.190876-49.829025 54.161983-101.553719 54.161983H54.292007c-47.391736 0-61.812364-32.700298-50.844562-54.161983L461.116205 54.161983c2.911207-21.190876 49.761322-54.161983 101.553719-54.161983" fill="#8ECA38" ></path><path d="M1616.255907 0h480.687604c37.845686 0 52.537124 32.700298 32.700297 73.18638L1697.905098 950.54281a132.764562 132.764562 0 0 1-104.668034 73.118678h-480.6199c-37.981091 0-52.537124-32.700298-32.768-73.118678l431.73871-877.35643A132.764562 132.764562 0 0 1 1616.255907 0" fill="#8ECA38" opacity=".6" ></path><path d="M2683.720899 0h480.687603c37.913388 0 52.537124 32.700298 32.700298 73.18638L2765.437792 950.54281a132.967669 132.967669 0 0 1-104.668033 73.118678H2180.149858c-37.981091 0-52.604826-32.700298-32.835703-73.118678l431.738711-877.35643A132.899967 132.899967 0 0 1 2683.720899 0" fill="#8ECA38" opacity=".4" ></path></symbol><symbol id="icon-xiangyouzhankai-lan" viewBox="0 0 1024 1024"><path d="M990.099052 511.931651a101.771192 101.771192 0 0 1-20.504605 62.060606l-337.984248 424.308637a60.420238 60.420238 0 0 1-98.832199 0 104.300093 104.300093 0 0 1 0-123.916166l288.568149-362.248031-288.568149-362.248031a104.300093 104.300093 0 0 1 0-124.121212 60.28354 60.28354 0 0 1 98.76385 0l338.052597 424.103591a101.497797 101.497797 0 0 1 20.504605 62.060606z" fill="#2D73F9" ></path><path d="M491.153651 449.871045a101.497797 101.497797 0 0 1 20.504606 62.060606 101.771192 101.771192 0 0 1-20.504606 62.060606l-337.984248 424.308637a60.420238 60.420238 0 0 1-98.832198 0 104.300093 104.300093 0 0 1 0-123.916166l288.568148-362.248031-288.568148-362.248031a104.300093 104.300093 0 0 1 0-124.121212 60.28354 60.28354 0 0 1 98.76385 0L491.153651 449.871045z" fill="#2D73F9" ></path></symbol><symbol id="icon-xiangxiazhankai-lan" viewBox="0 0 1096 1024"><path d="M548.376416 1023.997072a108.987251 108.987251 0 0 1-66.460996-21.958479L27.521294 640.089664a64.704318 64.704318 0 0 1 0-105.839869 111.695463 111.695463 0 0 1 132.702408 0l387.93313 309.028995 387.933129-309.028995a111.695463 111.695463 0 0 1 132.921993 0 64.557928 64.557928 0 0 1 0 105.766674L614.837413 1002.038593a108.694471 108.694471 0 0 1-66.460997 21.958479z" fill="#2D73F9" ></path><path d="M614.837413 489.674082a108.694471 108.694471 0 0 1-66.460997 21.958479 108.987251 108.987251 0 0 1-66.460996-21.958479L27.521294 127.725153a64.704318 64.704318 0 0 1 0-105.839869 111.695463 111.695463 0 0 1 132.702408 0l387.93313 309.028995 387.933129-309.028995a111.695463 111.695463 0 0 1 132.921993 0 64.557928 64.557928 0 0 1 0 105.766674L614.837413 489.674082z" fill="#2D73F9" ></path></symbol><symbol id="icon-bupipei" viewBox="0 0 1024 1024"><path d="M512 1024A512 512 0 1 1 512 0a512 512 0 0 1 0 1024z" fill="#FF5454" ></path><path d="M512 732.992c-24.256 0-40.448 8.064-56.576 24.256-16.192 16.128-24.32 32.32-24.32 56.576s8.128 40.384 24.32 56.576c16.128 16.192 32.32 24.256 56.576 24.256s40.448-8.064 56.576-24.256c16.192-16.192 24.32-32.32 24.32-56.576 0-24.32-8.128-40.448-24.32-56.576-16.128-16.192-32.32-24.32-56.576-24.32zM439.232 215.552l24.32 465.664h88.896l32.32-465.664H439.232z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ylj" viewBox="0 0 1024 1024"><path d="M380.4 678.5c-8.9 0-17.9-3.4-24.7-10.2-13.6-13.6-13.6-35.7 0-49.4l281.6-281.6c13.6-13.6 35.7-13.6 49.4 0 13.6 13.6 13.6 35.7 0 49.4L405.1 668.3c-6.8 6.8-15.7 10.2-24.7 10.2z" fill="#C660FF" ></path><path d="M285.1 1012.2c-70 0-140.1-26.7-193.3-80-51.7-51.6-80.1-120.3-80.1-193.3 0-73 28.4-141.7 80.1-193.3L220 417.4c13.6-13.6 35.7-13.6 49.4 0 13.6 13.6 13.6 35.7 0 49.4L141.1 594.9c-38.5 38.5-59.6 89.6-59.6 144 0 54.4 21.2 105.5 59.6 144 79.4 79.4 208.5 79.4 287.9 0l128.2-128.2c13.6-13.6 35.7-13.6 49.4 0 13.6 13.6 13.6 35.7 0 49.4L478.4 932.2c-53.3 53.3-123.3 80-193.3 80zM779.4 616.8c-8.9 0-17.9-3.4-24.7-10.2-13.6-13.6-13.6-35.7 0-49.4L882.9 429c38.5-38.5 59.6-89.6 59.6-144 0-54.4-21.2-105.5-59.6-144-79.4-79.4-208.6-79.4-287.9 0L466.8 269.3c-13.6 13.6-35.7 13.6-49.4 0-13.6-13.6-13.6-35.7 0-49.4L545.6 91.8c106.6-106.6 280.1-106.6 386.7 0 51.7 51.6 80.1 120.3 80.1 193.3 0 73-28.4 141.7-80.1 193.3L804.1 606.6c-6.9 6.8-15.8 10.2-24.7 10.2z" fill="#4377FF" ></path></symbol><symbol id="icon-wangluoduankailianjie-01" viewBox="0 0 1024 1024"><path d="M715.1 543.58c-13.28 0-25.96-7.63-31.78-20.49-7.93-17.54-0.14-38.2 17.41-46.14l147.87-66.84c29.94-11.51 52.1-32.98 64.31-61.21 12.33-28.53 12.98-60.28 1.8-89.46-11.17-29.16-32.86-52.38-61.08-65.36-27.95-12.87-58.77-14-86.82-3.29l-329.84 126.3c-28.05 10.73-50.21 32.2-62.42 60.44-12.33 28.53-12.98 60.28-1.8 89.46 6.89 17.97-2.11 38.13-20.09 45-17.99 6.99-38.14-2.09-45.03-20.09-17.73-46.28-16.69-96.73 2.93-142.05 19.72-45.62 55.76-80.36 101.48-97.86l329.83-126.3c45.73-17.54 95.77-15.68 140.89 5.04 44.87 20.63 79.34 57.49 97.07 103.79 17.73 46.28 16.69 96.73-2.92 142.05-19.73 45.62-55.77 80.36-101.49 97.86L729.44 540.5c-4.66 2.08-9.54 3.08-14.34 3.08z" fill="#4377FF" ></path><path d="M170.26 324.75c-5.45 0-10.98-1.27-16.16-3.99L52.87 267.67c-17.04-8.94-23.63-30-14.68-47.05s29.98-23.65 47.07-14.68l101.23 53.08c17.04 8.94 23.63 30 14.68 47.05-6.23 11.9-18.36 18.68-30.91 18.68zM256.66 224.19c-14.85 0-28.61-9.55-33.27-24.49L190.01 92.72c-5.73-18.36 4.53-37.92 22.9-43.64 18.43-5.76 37.92 4.52 43.67 22.9l33.37 106.99c5.73 18.36-4.53 37.92-22.9 43.64a34.772 34.772 0 0 1-10.39 1.58zM59.32 497.08c-14.85 0-28.62-9.55-33.27-24.49-5.73-18.38 4.53-37.92 22.91-43.64l100.46-31.32c18.35-5.81 37.94 4.52 43.65 22.9 5.73 18.38-4.53 37.92-22.91 43.64L69.71 495.49a34.424 34.424 0 0 1-10.39 1.59z" fill="#C660FF" ></path><path d="M395.79 971.16c-74.44 0-145.67-50.11-172.67-128.66-15.99-46.5-14.17-96.3 5.13-140.19 19.71-44.85 55.13-77.98 99.7-93.3l139.52-57.96c17.77-7.4 38.17 1.04 45.55 18.84 7.39 17.79-1.06 38.2-18.84 45.57L352.63 674.2c-27.98 9.69-48.77 29.37-60.56 56.19-12.22 27.78-13.29 59.55-3.02 89.46 20.97 61.03 82.7 95.25 137.64 76.42l315.39-108.39c25.94-8.92 46.73-28.6 58.53-55.42 12.22-27.8 13.29-59.58 3.02-89.46-6.26-18.2 3.43-38.04 21.63-44.3 18.22-6.17 38.05 3.45 44.3 21.65 15.99 46.5 14.17 96.3-5.13 140.17-19.72 44.87-55.13 78-99.7 93.32L449.34 962.22c-17.64 6.06-35.7 8.94-53.55 8.94z" fill="#4377FF" ></path></symbol><symbol id="icon-wangluoyilianjie-01" viewBox="0 0 1024 1024"><path d="M207.24 899.89c-50 0-96.9-19.36-132.04-54.51-35.16-35.13-54.51-82.02-54.51-132.04 0-50 19.36-96.89 54.51-132.04l255.52-255.5c35.14-35.16 82.04-54.51 132.04-54.51s96.9 19.36 132.04 54.51c35.16 35.13 54.51 82.02 54.51 132.04 0 50-19.36 96.89-54.51 132.04-13.59 13.62-35.68 13.62-49.29 0s-13.62-35.68 0-49.29c21.98-21.99 34.09-51.38 34.09-82.75 0-31.39-12.11-60.76-34.09-82.75-22-21.99-51.38-34.09-82.75-34.09s-60.76 12.1-82.75 34.09L124.5 630.59c-21.98 21.99-34.09 51.38-34.09 82.75 0 31.39 12.11 60.76 34.09 82.75 21.99 21.99 51.37 34.09 82.75 34.09s60.76-12.1 82.75-34.09c13.59-13.62 35.68-13.62 49.29 0s13.62 35.68 0 49.29c-35.15 35.16-82.05 54.51-132.05 54.51z" fill="#4377FF" ></path><path d="M559.54 727.91c-50 0-96.89-19.36-132.04-54.51-35.16-35.13-54.51-82.02-54.51-132.04 0-50 19.36-96.89 54.51-132.02 13.62-13.62 35.7-13.62 49.29 0 13.62 13.62 13.62 35.68 0 49.29-21.98 21.99-34.09 51.36-34.09 82.72 0 31.39 12.11 60.76 34.09 82.75 21.99 21.99 51.38 34.09 82.75 34.09 31.38 0 60.76-12.1 82.75-34.09L897.8 368.6c45.62-45.62 45.62-119.88 0-165.49-45.62-45.62-119.84-45.59-165.48 0l-59.13 59.12c-13.62 13.62-35.7 13.62-49.29 0-13.62-13.62-13.62-35.68 0-49.29l59.13-59.12c72.8-72.81 191.25-72.81 264.07 0 72.8 72.81 72.8 191.28 0 264.08L691.58 673.4c-35.14 35.15-82.04 54.51-132.04 54.51z" fill="#4377FF" ></path><path d="M731.18 980.42c-12.13 0-23.91-6.33-30.33-17.61l-56.53-99.36c-9.52-16.75-3.68-38.04 13.06-47.55 16.73-9.46 38.01-3.65 47.54 13.05l56.53 99.36c9.52 16.75 3.68 38.04-13.06 47.55-5.45 3.08-11.37 4.56-17.21 4.56zM880.22 820.96c-3.06 0-6.16-0.39-9.26-1.25L762.9 790.03c-18.56-5.11-29.48-24.28-24.37-42.85 5.11-18.59 24.26-29.5 42.85-24.37l108.05 29.69c18.56 5.11 29.48 24.28 24.37 42.85-4.24 15.47-18.28 25.61-33.58 25.61zM506.21 997.87c-3.06 0-6.16-0.39-9.26-1.25-18.56-5.11-29.48-24.28-24.37-42.85l27.87-101.47c5.11-18.59 24.26-29.5 42.85-24.37 18.56 5.11 29.48 24.28 24.37 42.85L539.8 972.25c-4.25 15.48-18.28 25.62-33.59 25.62z" fill="#C660FF" ></path><path d="M306.56 217.85c-13.71 0-26.7-8.12-32.25-21.58L230.78 90.58c-7.33-17.79 1.16-38.17 18.96-45.5 17.84-7.33 38.18 1.16 45.52 18.95l43.53 105.69c7.33 17.79-1.16 38.17-18.96 45.5-4.35 1.8-8.85 2.63-13.27 2.63zM437.32 196.23c-4.47 0-9.01-0.86-13.39-2.68-17.78-7.4-26.18-27.82-18.78-45.59l43.1-103.45c7.4-17.77 27.84-26.15 45.58-18.77 17.78 7.4 26.18 27.82 18.78 45.59l-43.1 103.45c-5.58 13.39-18.54 21.45-32.19 21.45zM207.96 319.21c-4.47 0-9.01-0.86-13.39-2.68l-97.15-40.47c-17.77-7.4-26.18-27.82-18.78-45.59 7.41-17.79 27.82-26.14 45.58-18.77l97.15 40.47c17.77 7.4 26.18 27.82 18.78 45.59-5.58 13.4-18.54 21.45-32.19 21.45z" fill="#C660FF" ></path></symbol><symbol id="icon-shibai" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#FFBB00" ></path><path d="M463.673806 206.451613h104.910452a33.032258 33.032258 0 0 1 33.007484 34.229677l-14.113032 388.129033A33.032258 33.032258 0 0 1 554.471226 660.645161h-76.684387a33.032258 33.032258 0 0 1-33.007484-31.834838l-14.12129-388.129033A33.032258 33.032258 0 0 1 463.682065 206.451613zM470.709677 710.193548h90.83871a24.774194 24.774194 0 0 1 24.774194 24.774194v66.064516a24.774194 24.774194 0 0 1-24.774194 24.774194H470.709677a24.774194 24.774194 0 0 1-24.774193-24.774194v-66.064516a24.774194 24.774194 0 0 1 24.774193-24.774194z" fill="#FFFFFF" ></path></symbol><symbol id="icon-chenggong" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#17BF5B" ></path><path d="M423.458133 729.326933l-199.406933-199.441066a34.0992 34.0992 0 1 1 48.264533-48.264534l151.1424 151.176534 328.123734-328.123734a34.0992 34.0992 0 1 1 48.264533 48.264534L423.458133 729.326933z" fill="#FFFFFF" ></path></symbol><symbol id="icon-shuaxin" viewBox="0 0 1024 1024"><path d="M952.183467 194.218667c-27.374933 18.295467-83.626667 50.039467-83.626667 50.039466-84.650667-120.832-246.920533-190.805333-348.842667-190.805333-212.923733 0-328.977067 123.562667-417.314133 244.9408-5.3248 8.942933 14.677333 12.970667 25.941333 21.162667 16.7936 12.151467 35.703467 26.350933 46.830934 31.9488 25.463467 12.970667 25.668267 22.9376 32.085333 13.312 46.2848-69.358933 123.4944-185.685333 301.124267-185.685334 75.639467 0 194.901333 63.214933 246.442666 134.3488 0 0-58.709333 30.788267-87.108266 49.083734-15.7696 10.171733-13.380267 23.620267 8.3968 35.771733 66.901333 37.341867 211.012267 115.575467 267.0592 149.162667 32.699733 19.592533 35.703467 0.887467 35.703466-19.8656 0-61.098667 0.136533-235.861333 0.6144-311.7056 0.136533-23.3472-5.7344-36.181333-27.306666-21.7088z" fill="#1690FF" ></path><path d="M904.533333 713.386667c-16.7936-12.151467-35.6352-26.350933-46.762666-32.085334-25.531733-12.834133-25.668267-22.801067-32.085334-13.243733-46.2848 69.358933-123.562667 185.685333-301.192533 185.685333-75.639467 0-194.901333-63.214933-246.3744-134.280533 0 0 58.709333-30.856533 87.04-49.152 15.837867-10.171733 13.380267-23.620267-8.3968-35.771733-66.901333-37.341867-210.944-115.575467-267.0592-149.162667-32.631467-19.592533-35.6352-0.8192-35.6352 19.933867 0 61.098667-0.136533 235.793067-0.682667 311.637333-0.068267 23.415467 5.7344 36.181333 27.306667 21.7088 27.4432-18.295467 83.626667-49.9712 83.626667-49.9712 84.650667 120.832 246.920533 190.805333 348.842666 190.805333 212.992 0 329.045333-123.562667 417.314134-245.009066 5.393067-8.874667-14.677333-12.970667-25.941334-21.162667z" fill="#88CCFF" ></path></symbol><symbol id="icon-shuaxin1" viewBox="0 0 1024 1024"><path d="M512 0C229.7125 0 0 229.7125 0 512c0 282.275 229.7125 512 512 512 282.275 0 512-229.7125 512-512S794.2875 0 512 0z" fill="#6A3ECC" ></path><path d="M509.025 788.625c-112.8375 0-209-71.7125-246-171.8625l0.3375-0.1625c-2.4625-4.6875-3.775-9.875-3.8625-15.1625 0-19.0875 15.4625-34.55 34.5375-34.55a34.125 34.125 0 0 1 32.3875 24l0.475-0.175C353.5625 665.675 425 719.5625 509 719.5625c106.775-0.1125 193.3-86.625 193.4375-193.4-0.1125-106.7875-86.65-193.325-193.4375-193.4375-22.7 0.1-45.2 4.2375-66.45 12.225l24.375 46.7c2.8375 3.075 4.575 7.1625 4.575 11.7125 0 9.6625-9.625 17.1-17.575 17.275h-1.1l-172.5125-7.4125c-6.1625-0.2625-11.7125-3.8-14.5625-9.275-2.85-5.475-2.575-12.05 0.7375-17.25l92.675-145.675a17.275 17.275 0 0 1 29.875 1.3l21.3 40.7875a260.90125 260.90125 0 0 1 98.675-19.425c144.725 0 262.4875 117.7625 262.4875 262.4875 0 144.725-117.7625 262.4875-262.4875 262.4875v-0.0375z" fill="#FFFFFF" ></path></symbol></svg>',c=(c=document.getElementsByTagName("script"))[c.length-1].getAttribute("data-injectcss");if(c&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}function l(){s||(s=!0,n())}t=function(){var e,t,a,n;(n=document.createElement("div")).innerHTML=i,i=null,(a=n.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",e=a,(t=document.body).firstChild?(n=e,(a=t.firstChild).parentNode.insertBefore(n,a)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),t()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(n=t,o=e.document,s=!1,(r=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(r,50)}l()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,l())})}(window)},e78e:function(e,t,a){},e96d:function(e,t,a){"use strict";a("652e")},f06c:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return r}));var n=a("d940"),o=a("56cd");function s(e,t){var a=Object(n["a"])(t);return e.$notification[a.type]({message:a.title,description:a.msg}),"success"===a.type}function r(e){var t=Object(n["a"])(e);o["a"][t.type]({message:t.title,description:t.msg})}},f2a2:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("dev",[a("update-namespace",{ref:"update"}),a("sync-namespace",{ref:"sync"}),a("a-result",{directives:[{name:"show",rawName:"v-show",value:!e.nodeStatus,expression:"!nodeStatus"}],attrs:{status:"error",title:e.generateTitle("Namespace.namespaceNodeError"),"sub-title":e.generateTitle("Namespace.namespaceNodeDescription")}},[a("div",{staticClass:"desc"},[a("p",{staticStyle:{"font-size":"16px"}},[a("strong",[e._v(e._s(e.generateTitle("Namespace.namespaceTestCaption")))])]),a("p",[a("a-icon",{style:{color:"red"},attrs:{type:"close-circle"}}),e._v(" "+e._s(e.$t("Namespace.namespaceTestConn"))+" "),a("a",[e._v("tcp://"+e._s(e.$t("Namespace.nodeAddress"))+" ")]),e._v(e._s(e.$t("Namespace.isWrong"))+" ")],1),a("p",[a("a-icon",{style:{color:"red"},attrs:{type:"close-circle"}}),e._v(" "+e._s(e.$t("Namespace.refreshDescription"))+" "),a("a",{attrs:{href:"/list/node"}},[e._v(e._s(e.$t("Namespace.refresh")))]),e._v(e._s(e.$t("Namespace.testConn"))+" ")],1),a("p",[a("a-icon",{style:{color:"red"},attrs:{type:"close-circle"}}),e._v(" "+e._s(e.$t("Namespace.checkRunning"))+" ")],1)])]),e.isNotData&&e.nodeStatus?a("a-empty"):e._e(),e.showLoadingMore?a("div",{style:{textAlign:"center",marginTop:"12px",height:"32px",lineHeight:"32px"},attrs:{slot:"loadMore"},slot:"loadMore"},[e.loadingMore?a("a-spin"):e._e()],1):e._l(e.namespaceList,(function(t){return[a("span",{staticClass:"text-center namespace-attribute-public label label-info no-radius"},[a("span",{staticClass:"ng-binding",staticStyle:{width:"30px"},attrs:{"ng-bind":"namespace.format"}},[e._v(e._s(t.format))])]),a("a-page-header",{staticStyle:{border:"1px solid #42b983","margin-bottom":"20px"},attrs:{title:t.name,"sub-title":e._f("formatDate")(t.releaseTime)}},[a("template",{slot:"tags"},[a("a-tag",{attrs:{color:"cyan",visible:t.status}},[e._v(" "+e._s(e.$t("Namespace.releaseTag"))+" ")]),a("a-tag",{attrs:{color:"orange",visible:!t.status}},[e._v(" "+e._s(e.$t("Namespace.noReleaseTag"))+" ")])],1),a("template",{slot:"extra"},[a("a-button",{key:"4",on:{click:function(a){return e.sync(t.id)}}},[e._v(" "+e._s(e.$t("Button.sync"))+" ")]),a("a-config-provider",{attrs:{"auto-insert-space-in-button":!1}},[a("a-button",{key:"3",attrs:{type:"primary",disabled:t.status},on:{click:function(a){return e.showConfirm(t.id,t.name)}}},[e._v(" "+e._s(e.$t("Button.release"))+" ")])],1),a("a-button",{key:"2",attrs:{type:""},on:{click:function(a){return e.update(t.id)}}},[e._v(" "+e._s(e.$t("Button.update"))+" ")]),a("a-button",{key:"1",attrs:{type:"danger",icon:"delete"},on:{click:function(a){return e.showDeleteConfirm(t.id,t.name)}}},[e._v(" "+e._s(e.$t("Button.delete"))+" ")])],1),a("a-collapse",{attrs:{bordered:!1},scopedSlots:e._u([{key:"expandIcon",fn:function(e){return[a("a-icon",{attrs:{type:"right",rotate:e.isActive?90:0}})]}}],null,!0)},[a("a-collapse-panel",{key:t.id,staticStyle:{background:"#fff","border-radius":"4px","margin-bottom":"-15px",border:"0",overflow:"hidden","margin-left":"-16px","margin-top":"-15px"},attrs:{header:e.$t("Namespace.foldConfig")}},[a("div",{staticClass:"editor-container"},["yaml"==t.format?a("yaml-editor",{attrs:{re:e.read},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}}):e._e(),"properties"==t.format?a("properties-editor",{attrs:{re:e.read},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}}):e._e()],1)])],1)],2)]}))],2)},o=[],s=(a("a9e3"),a("5530")),r=a("2001"),i=a("ad0c"),c=a("404c"),l=(a("0f66"),a("aad4")),d=a("f52a"),u=a("6892"),p=a("2f62"),m=a("e0ae"),f=a("624b"),h=a("c466"),g=a("79fa"),b=a("f06c"),y={name:"Namespace",components:{SyncNamespace:f["a"],UpdateNamespace:m["a"],YamlEditor:r["a"],PropertiesEditor:i["a"],AddNamespace:c["a"]},data:function(){return{ds:!0,value2:"yaml",mode:"text/x-yaml",ModalText:"Content of the modal",customStyle:"",other:"",namespaceList:[],isNotData:!1,read:"nocursor",activeKey:0,nodeStatus:!0,nodeList:[],appInfo:"",iconList:["cloud-server","deployment-unit","coffee","meh","fire","alert","robot"],meunKey:"",loading:!0,loadingMore:!0,showLoadingMore:!0}},watch:{"$route.query.nodeId":function(){this.getAppNamespace(this.$route.query.appId,this.$route.query.nodeId,this.$route.query.status)}},computed:Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(p["b"])(["asId"])),Object(p["b"])(["appNodeId"])),Object(p["b"])(["appNodeId"])),{},{releaseTime:function(){return this.$t("Namespace.lastReleaseTime")}}),created:function(){var e=this;u["a"].$on("refresh-namespace",(function(){e.getAppNamespace(e.$route.query.appId,e.$route.query.nodeId,e.$route.query.status)})),this.getAppNamespace(this.$route.query.appId,this.$route.query.nodeId,this.$route.query.status)},filters:{formatDate:function(e){if(null!=e&&""!=e){var t=new Date(e);return window.i18n.t("Namespace.lastReleaseTime")+Object(h["a"])(t,"yyyy-MM-dd hh:mm:ss")}return""}},methods:{generateTitle:g["a"],addShow:function(){this.$refs.add.showModal()},update:function(e){this.$refs.update.showModal(e,this.$route.query.appId,this.$route.query.nodeId)},sync:function(e){this.$refs.sync.showModal(e,this.$route.query.appId,this.$route.query.nodeId)},change:function(e){this.ds=e},showDeleteConfirm:function(e,t){var a=this.$createElement,n=this;this.$confirm({title:a("div",{style:""},[this.$t("Namespace.areDelete"),a("span",{style:"color: red; font-size: 20px"},[t])]),content:this.$t("Namespace.confirmDelete"),okText:this.$t("Button.determine"),okType:"danger",cancelText:this.$t("Button.cancel"),onOk:function(){Object(l["b"])(e,Number(n.$route.query.nodeId)).then((function(e){Object(b["a"])(n,e.data)&&n.getAppNamespace(n.$route.query.appId,n.$route.query.nodeId,n.$route.query.status)}))},onCancel:function(){console.log("Cancel")}})},getAppNamespace:function(e,t,a){var n=this;this.namespaceList=[],"true"===a?(this.nodeStatus=!0,this.showLoadingMore=!0,Object(l["e"])({appId:e,nodeId:t}).then((function(e){n.namespaceList=e.data.data.list,n.status=e.data.data.node.status,n.status&&(null==e.data.data.list?n.isNotData=!0:n.isNotData=!1)}))):this.nodeStatus=!1,this.showLoadingMore=!1},getTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),o=e.getHours(),s=e.getMinutes(),r=e.getSeconds();return t+a+n+o+s+r},showConfirm:function(e,t){var a=this,n=(this.$createElement,new Date),o=Object(h["a"])(n)+"-RE",s=this;this.$confirm({okText:this.$t("Button.release"),width:"35%",title:this.$t("Namespace.releaseTitle"),content:function(e){return e("div",{style:""},[e("span",{style:"font-size: 16px"},[a.$t("Namespace.List.namespaceName"),":       "]),e("span",{style:"font-size: 16px;color:red"},[t]),e("br"),e("span",{style:"font-size: 16px"},[a.$t("Namespace.releaseName"),":       "]),e("span",{style:"font-size: 16px;color:#F5B400"},[o])])},onOk:function(){Object(d["a"])({id:Number(e),nodeId:Number(s.$route.query.nodeId),releaseName:o}).then((function(e){Object(b["a"])(s,e.data)&&s.getAppNamespace(s.$route.query.appId,s.$route.query.nodeId,s.$route.query.status)}))},onCancel:function(){console.log("Cancel")},class:"test"})},onSubmit:function(){this.$refs.ruleForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;alert("submit!")}))},resetForm:function(){}}},w=y,v=(a("425d"),a("2f76"),a("2877")),_=Object(v["a"])(w,n,o,!1,null,"0c0fde24",null);t["default"]=_.exports},f52a:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a("b5c6");function o(e){return Object(n["a"])({url:"/release/createRelease",method:"post",data:e})}},f5b6:function(e,t,a){e.exports=a.p+"img/flying3.ca5ec163.png"},f849:function(e,t,a){}});