From 561b0e6f719577445e82331b4091661a6cb939a8 Mon Sep 17 00:00:00 2001
From: brotherlu-xcq <1285823170@qq.com>
Date: Mon, 2 Aug 2021 09:42:43 +0800
Subject: [PATCH] [ISSUE #6510] fix the F1 cannot full screen. (#6513)
---
.../pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js | 2 +-
.../ConfigurationManagement/ConfigEditor/NewConfigEditor.js | 2 +-
.../src/pages/ConfigurationManagement/NewConfig/NewConfig.js | 2 +-
console/src/main/resources/static/js/main.js | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/console-ui/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js b/console-ui/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js
index f3b262e66..d73a8bbb3 100644
--- a/console-ui/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js
+++ b/console-ui/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js
@@ -368,7 +368,7 @@ class ConfigDetail extends React.Component {
-
+
diff --git a/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js b/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js
index 416f622d0..d36b68d77 100644
--- a/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js
+++ b/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js
@@ -595,7 +595,7 @@ class ConfigEditor extends React.Component {
}
>
-
+
diff --git a/console-ui/src/pages/ConfigurationManagement/NewConfig/NewConfig.js b/console-ui/src/pages/ConfigurationManagement/NewConfig/NewConfig.js
index c3be3f17e..c716c5ba5 100644
--- a/console-ui/src/pages/ConfigurationManagement/NewConfig/NewConfig.js
+++ b/console-ui/src/pages/ConfigurationManagement/NewConfig/NewConfig.js
@@ -592,7 +592,7 @@ class NewConfig extends React.Component {
}
required
>
-
+
diff --git a/console/src/main/resources/static/js/main.js b/console/src/main/resources/static/js/main.js
index 51f5de999..628f56490 100644
--- a/console/src/main/resources/static/js/main.js
+++ b/console/src/main/resources/static/js/main.js
@@ -286,7 +286,7 @@ var t;e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_
//! moment.js locale configuration
var t;e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var a=e*100+t;if(a<600)return"凌晨";else if(a<900)return"早上";else if(a<1130)return"上午";else if(a<1230)return"中午";else if(a<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(8))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
-var t;e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var a=e*100+t;if(a<600)return"凌晨";else if(a<900)return"早上";else if(a<1130)return"上午";else if(a<1230)return"中午";else if(a<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(8))},function(e,t,n){"use strict";t.__esModule=!0;var v=c(n(2)),o=c(n(4)),i=c(n(5)),a=c(n(6)),r=n(0),_=c(r),s=c(n(3)),l=n(28),b=c(n(12)),u=c(n(44)),w=c(n(23)),M=c(n(118)),d=c(n(7)),k=n(11);function c(e){return e&&e.__esModule?e:{default:e}}var f,n=function(){},a=(f=r.Component,(0,a.default)(S,f),S.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:{}},S.prototype.render=function(){var e=this.props,t=e.prefix,n=(e.pure,e.className),a=e.style,r=e.type,o=e.shape,i=e.size,s=e.title,l=e.children,u=(e.defaultVisible,e.visible,e.iconType),d=e.closeable,c=(e.onClose,e.afterClose),f=e.animation,p=e.rtl,h=e.locale,m=(0,v.default)({},k.obj.pickOthers(Object.keys(S.propTypes),this.props)),g=this.state.visible,y=t+"message",e=(0,b.default)(((e={})[y]=!0,e[t+"message-"+r]=r,e[""+t+o]=o,e[""+t+i]=i,e[t+"title-content"]=!!s,e[t+"only-content"]=!s&&!!l,e[n]=n,e)),l=g?_.default.createElement("div",(0,v.default)({role:"alert",style:a},m,{className:e,dir:p?"rtl":void 0}),d?_.default.createElement("a",{role:"button","aria-label":h.closeAriaLabel,className:y+"-close",onClick:this.onClose},_.default.createElement(w.default,{type:"close"})):null,_.default.createElement(w.default,{className:y+"-symbol "+(!u&&y+"-symbol-icon"),type:u}),s?_.default.createElement("div",{className:y+"-title"},s):null,l?_.default.createElement("div",{className:y+"-content"},l):null):null;return f?_.default.createElement(M.default.Expand,{animationAppear:!1,afterLeave:c},l):l},a=r=S,r.propTypes={prefix:s.default.string,pure:s.default.bool,className:s.default.string,style:s.default.object,type:s.default.oneOf(["success","warning","error","notice","help","loading"]),shape:s.default.oneOf(["inline","addon","toast"]),size:s.default.oneOf(["medium","large"]),title:s.default.node,children:s.default.node,defaultVisible:s.default.bool,visible:s.default.bool,iconType:s.default.string,closeable:s.default.bool,onClose:s.default.func,afterClose:s.default.func,animation:s.default.bool,locale:s.default.object,rtl:s.default.bool},r.defaultProps={prefix:"next-",pure:!1,type:"success",shape:"inline",size:"medium",defaultVisible:!0,closeable:!1,onClose:n,afterClose:n,animation:!0,locale:u.default.Message},a);function S(){var e,t;(0,o.default)(this,S);for(var n=arguments.length,a=Array(n),r=0;ra.clientHeight&&0>6]+c[128|63&l]:l<55296||57344<=l?i+=c[224|l>>12]+c[128|l>>6&63]+c[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),i+=c[240|l>>18]+c[128|l>>12&63]+c[128|l>>6&63]+c[128|63&l])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(d(e)){for(var n=[],a=0;athis.popupNode.offsetWidth&&p(this.popupNode,"width",s.offsetWidth+"px"),"outside"!==e||"hoz"===o&&1===n||(p(this.popupNode,"height",u.offsetHeight+"px"),this.popupNode.firstElementChild&&p(this.popupNode.firstElementChild,"overflow-y","auto"));var d=this.popupProps;d.onOpen&&d.onOpen()}catch(e){return null}},S.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1t?r[t+1]:r[0])}),n[a]||(o=r[0]),i.onSort(a,o)},i.keydownHandler=function(e){e.preventDefault(),e.stopPropagation(),e.keyCode===s.KEYCODE.ENTER&&i.handleClick()},i.onSort=function(e,t){var n={};n[e]=t,i.props.onSort(e,t,n)},(0,o.default)(i,e)}a.displayName="Sort",t.default=a,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(2)),a=c(n(4)),o=c(n(5)),i=c(n(6)),s=c(n(0)),l=c(n(3)),u=c(n(12)),d=c(n(383));function c(e){return e&&e.__esModule?e:{default:e}}var f,i=(f=s.default.Component,(0,i.default)(p,f),p.prototype.render=function(){var e=this.props,t=e.className,n=e.record,a=e.primaryKey,e=this.context.selectedRowKeys,a=(0,u.default)(((a={selected:-1 "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t){var r={}.hasOwnProperty;function n(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}(function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function a(){this.constructor=e}a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype})(n,Error),n.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?" "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var y=m(n(2)),a=m(n(4)),r=m(n(5)),o=m(n(6)),i=n(0),v=m(i),s=n(24),l=m(n(3)),_=m(n(12)),u=n(11),f=m(n(50)),d=m(n(60)),b=m(n(10)),c=m(n(44)),p=m(n(657)),h=m(n(394)),w=n(167);function m(e){return e&&e.__esModule?e:{default:e}}var M=d.default.Popup,g=f.default.Item,k=f.default.Group,n=u.func.noop,S=u.func.bindCtx,E=u.func.makeChain;var x,o=(x=v.default.Component,(0,o.default)(L,x),L.prototype.componentDidMount=function(){var e=this;setTimeout(function(){return e.syncWidth()},0),u.events.on(window,"resize",this.handleResize)},L.prototype.componentDidUpdate=function(e,t){e.label===this.props.label&&t.value===this.state.value||this.syncWidth()},L.prototype.componentWillUnmount=function(){u.events.off(window,"resize",this.handleResize),clearTimeout(this.resizeTimeout)},L.prototype.syncWidth=function(){var e=this,t=this.props,n=t.popupStyle,t=t.popupProps;n&&"width"in n||t&&t.style&&"width"in t.style||(t=u.dom.getStyle(this.selectDOM,"width"))&&this.width!==t&&(this.width=t,this.popupRef&&this.shouldAutoWidth()&&setTimeout(function(){e.popupRef&&e.popupRef.getInstance().overlay&&u.dom.setStyle(e.popupRef.getInstance().overlay.getInstance().getContentNode(),"width",e.width)},0))},L.prototype.handleResize=function(){var e=this;clearTimeout(this.resizeTimeout),this.state.visible&&(this.resizeTimeout=setTimeout(function(){e.syncWidth()},200))},L.prototype.setDataSource=function(e){var t=e.dataSource,e=e.children;return i.Children.count(e)?this.dataStore.updateByDS(e,!0):Array.isArray(t)?this.dataStore.updateByDS(t,!1):[]},L.prototype.setVisible=function(e,t){this.props.disabled&&e||this.state.visible===e||("visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e,t))},L.prototype.setFirstHightLightKeyForMenu=function(){var e;this.props.autoHighlightFirstItem&&this.dataStore.getMenuDS().length&&this.dataStore.getEnableDS().length&&(e=""+this.dataStore.getEnableDS()[0].value,this.setState({highlightKey:e}),this.props.onToggleHighlightItem(e,"autoFirstItem"))},L.prototype.handleChange=function(e){var t;"value"in this.props||this.setState({value:e});for(var n=arguments.length,a=Array(1e.slidesToShow&&(n=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0&&(t=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow,(t=e.rtl?(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow:t)&&(o=e.slideIndex>e.slideCount?(n=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(n=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1)))):e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(n=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth),e.centerMode&&(e.infinite?n+=e.slideWidth*Math.floor(e.slidesToShow/2):n=e.slideWidth*Math.floor(e.slidesToShow/2)),a=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+n,!0===e.variableWidth&&(n=void 0,a=(r=e.slideCount<=e.slidesToShow||!1===e.infinite?i.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(n=e.slideIndex+e.slidesToShow,i.default.findDOMNode(e.trackRef).childNodes[n]))?-1*r.offsetLeft:0,!0===e.centerMode&&(r=!1===e.infinite?i.default.findDOMNode(e.trackRef).children[e.slideIndex]:i.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(a=-1*r.offsetLeft+(e.listWidth-r.offsetWidth)/2)),a)}},function(e,t,n){"use strict";t.__esModule=!0;var p=u(n(2)),h=u(n(13)),o=u(n(4)),i=u(n(5)),a=u(n(6)),m=u(n(0)),r=u(n(3)),g=u(n(12)),s=u(n(7)),y=u(n(23)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}var d,a=(d=m.default.Component,(0,a.default)(c,d),c.prototype.render=function(){var e=this.props,t=e.title,n=e.children,a=e.className,r=e.isExpanded,o=e.disabled,i=e.style,s=e.prefix,l=e.onClick,u=e.id,d=(0,h.default)(e,["title","children","className","isExpanded","disabled","style","prefix","onClick","id"]),c=(0,g.default)(((f={})[s+"collapse-panel"]=!0,f[s+"collapse-panel-hidden"]=!r,f[s+"collapse-panel-expanded"]=r,f[s+"collapse-panel-disabled"]=o,f[a]=a,f)),a=(0,g.default)(((e={})[s+"collapse-panel-icon"]=!0,e[s+"collapse-panel-icon-expanded"]=r,e)),f=u?u+"-heading":void 0,e=u?u+"-region":void 0;return m.default.createElement("div",(0,p.default)({className:c,style:i,id:u},d),m.default.createElement("div",{id:f,className:s+"collapse-panel-title",onClick:l,onKeyDown:this.onKeyDown,tabIndex:"0","aria-disabled":o,"aria-expanded":r,"aria-controls":e,role:"button"},m.default.createElement(y.default,{type:"arrow-right",className:a,"aria-hidden":"true"}),t),m.default.createElement("div",{className:s+"collapse-panel-content",role:"region",id:e},n))},a=n=c,n.propTypes={prefix:r.default.string,style:r.default.object,children:r.default.any,isExpanded:r.default.bool,disabled:r.default.bool,title:r.default.node,className:r.default.string,onClick:r.default.func,id:r.default.string},n.defaultProps={prefix:"next-",isExpanded:!1,onClick:l.func.noop},n.isNextPanel=!0,a);function c(){var e,n;(0,o.default)(this,c);for(var t=arguments.length,a=Array(t),r=0;r\n com.alibaba.nacos\n nacos-client\n ${version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\nimport java.util.concurrent.Executor;\nimport com.alibaba.nacos.api.NacosFactory;\nimport com.alibaba.nacos.api.config.ConfigService;\nimport com.alibaba.nacos.api.config.listener.Listener;\nimport com.alibaba.nacos.api.exception.NacosException;\n\n/**\n * Config service example\n *\n * @author Nacos\n *\n */\npublic class ConfigExample {\n\n\tpublic static void main(String[] args) throws NacosException, InterruptedException {\n\t\tString serverAddr = "localhost";\n\t\tString dataId = "'.concat(e.dataId,'";\n\t\tString group = "').concat(e.group,'";\n\t\tProperties properties = new Properties();\n\t\tproperties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);\n\t\tConfigService configService = NacosFactory.createConfigService(properties);\n\t\tString content = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tconfigService.addListener(dataId, group, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void receiveConfigInfo(String configInfo) {\n\t\t\t\tSystem.out.println("recieve:" + configInfo);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\n\t\tThread.sleep(3000);\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\n\t\tboolean isRemoveOk = configService.removeConfig(dataId, group);\n\t\tSystem.out.println(isRemoveOk);\n\t\tThread.sleep(3000);\n\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tThread.sleep(300000);\n\n\t}\n}\n')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,e=void 0===e?{}:e;return L.a.createElement("div",null,L.a.createElement(_.a,{title:e.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:L.a.createElement("div",null),onClose:this.closeDialog.bind(this)},L.a.createElement("div",{style:{height:500}},L.a.createElement(N.a,{tip:e.loading,style:{width:"100%"},visible:this.state.loading},L.a.createElement(P.a,{shape:"text",style:{height:40,paddingBottom:10}},L.a.createElement(Y,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),L.a.createElement(Y,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),L.a.createElement(Y,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),L.a.createElement(Y,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),L.a.createElement(Y,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),L.a.createElement(Y,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),L.a.createElement(Y,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),L.a.createElement("div",{ref:"codepreview"})))))}}]),n}(L.a.Component),a.displayName="ShowCodeing",a=s))||a,s=(n(65),n(37)),a=n.n(s),I=(n(702),a.a.Row),R=a.a.Col,A=(0,u.a.config)((a=s=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(e){return Object(w.a)(this,n),(e=t.call(this,e)).state={visible:!1,title:"",content:"",isok:!0,dataId:"",group:""},e}return Object(M.a)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"initData",value:function(){var e=this.props.locale;this.setState({title:(void 0===e?{}:e).confManagement})}},{key:"openDialog",value:function(e){this.setState({visible:!0,title:e.title,content:e.content,isok:e.isok,dataId:e.dataId,group:e.group,message:e.message})}},{key:"closeDialog",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=L.a.createElement("div",{style:{textAlign:"right"}},L.a.createElement(d.a,{type:"primary",onClick:this.closeDialog.bind(this)},t.determine));return L.a.createElement("div",null,L.a.createElement(_.a,{visible:this.state.visible,footer:e,style:{width:555},onCancel:this.closeDialog.bind(this),onClose:this.closeDialog.bind(this),title:t.deletetitle},L.a.createElement("div",null,L.a.createElement(I,null,L.a.createElement(R,{span:"4",style:{paddingTop:16}},L.a.createElement(y.a,{type:"".concat(this.state.isok?"success":"delete","-filling"),style:{color:this.state.isok?"green":"red"},size:"xl"})),L.a.createElement(R,{span:"20"},L.a.createElement("div",null,L.a.createElement("h3",null,this.state.isok?t.deletedSuccessfully:t.deleteFailed),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Data ID:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.dataId)),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Group:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.group)),this.state.isok?"":L.a.createElement("p",{style:{color:"red"}},this.state.message)))))))}}]),n}(L.a.Component),s.displayName="DeleteDialog",s=a))||s,a=(n(703),n(411)),H=n.n(a),F=(0,u.a.config)((a=s=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(M.a)(n,[{key:"render",value:function(){var e=this.props,t=e.data,n=void 0===t?{}:t,t=e.height,e=e.locale,a=void 0===e?{}:e;return L.a.createElement("div",null,"notice"===n.modeType?L.a.createElement("div",{"data-spm-click":"gostr=/aliyun;locaid=notice"},L.a.createElement(H.a,{style:{marginBottom:1e?b.a.createElement(L.a,{className:"pagination",total:l.count,pageSize:e,onChange:function(e){return a.onChangePage(e)}}):null,b.a.createElement(C,{ref:this.editInstanceDialog,serviceName:o,clusterName:n,groupName:i,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(b.a.Component),r.displayName="InstanceTable",r.defaultProps={filters:new Map},o=o))||o,D=function(e,t){return e.filter(function(e){var n=e.metadata,a=!0;return t.forEach(function(e,t){if(e!==n[t])return a=!1}),a})},O=o,N=n(47),P=n(31),o=(n(165),n(71)),o=n.n(o),Y=o.a.Group,j=o.a.Closeable,I=v.a.Item;var R=a.a.config(function(e){function t(){o(""),l("")}function n(){u(r?"":"error"),f(s?"":"error")}var a=Object(_.useState)(""),r=(c=Object(P.a)(a,2))[0],o=c[1],i=Object(_.useState)(""),s=(d=Object(P.a)(i,2))[0],l=d[1],a=Object(_.useState)(""),i=(c=Object(P.a)(a,2))[0],u=c[1],d=Object(_.useState)(""),c=(a=Object(P.a)(d,2))[0],f=a[1],d=Object(_.useState)(new Map),p=(a=Object(P.a)(d,2))[0],h=a[1],a=void 0===(d=e.locale)?{}:d,d=function(){var e;n(),r&&s&&(e=new Map(Array.from(p)).set(r,s),h(e),u(""),f(""),t())};return Object(_.useEffect)(function(){e.setFilters(p)},[p]),b.a.createElement(m.a,{contentHeight:"auto",className:"inner-card"},b.a.createElement(v.a,{inline:!0,size:"small"},b.a.createElement(I,{label:a.title},b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"key",value:r,trim:!0,onChange:function(e){return o(e)},onPressEnter:d,state:i})),b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"value",value:s,trim:!0,onChange:function(e){return l(e)},onPressEnter:d,state:c})),b.a.createElement(I,{label:""},b.a.createElement(g.a,{type:"primary",onClick:d,style:{marginRight:10}},a.addFilter),0\n com.alibaba.nacos\n nacos-client\n ${latest.version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\n\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingFactory;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.listener.Event;\nimport com.alibaba.nacos.api.naming.listener.EventListener;\nimport com.alibaba.nacos.api.naming.listener.NamingEvent;\n\n/**\n * @author nkorange\n */\npublic class NamingExample {\n\n public static void main(String[] args) throws NacosException {\n\n Properties properties = new Properties();\n properties.setProperty("serverAddr", System.getProperty("serverAddr"));\n properties.setProperty("namespace", System.getProperty("namespace"));\n\n NamingService naming = NamingFactory.createNamingService(properties);\n\n naming.registerInstance("'.concat(this.record.name,'", "11.11.11.11", 8888, "TEST1");\n\n naming.registerInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.deregisterInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.subscribe("').concat(this.record.name,'", new EventListener() {\n @Override\n public void onEvent(Event event) {\n System.out.println(((NamingEvent)event).getServiceName());\n System.out.println(((NamingEvent)event).getInstances());\n }\n });\n }\n}')}},{key:"getSpringCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example\n* pom.xml\n \n com.alibaba.nacos\n nacos-spring-context\n ${latest.version}\n \n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring\npackage com.alibaba.nacos.example.spring;\n\nimport com.alibaba.nacos.api.annotation.NacosProperties;\nimport com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;\nimport org.springframework.context.annotation.Configuration;\n\n@Configuration\n@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848"))\npublic class NacosConfiguration {\n\n}\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring/controller\npackage com.alibaba.nacos.example.spring.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringBootCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example\n* pom.xml\n \n com.alibaba.boot\n nacos-discovery-spring-boot-starter\n ${latest.version}\n \n*/\n/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/resources\n* application.properties\n nacos.discovery.server-addr=127.0.0.1:8848\n*/\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/java/com/alibaba/nacos/example/spring/boot/controller\n\npackage com.alibaba.nacos.example.spring.boot.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringCloudCode",value:function(e){return"/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/\n* pom.xml\n \n org.springframework.cloud\n spring-cloud-starter-alibaba-nacos-discovery\n ${latest.version}\n \n*/\n\n// nacos-spring-cloud-provider-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/resources\n* application.properties\nserver.port=18080\nspring.application.name=".concat(this.record.name,'\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosProviderApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(NacosProviderApplication.class, args);\n}\n\n @RestController\n class EchoController {\n @RequestMapping(value = "/echo/{string}", method = RequestMethod.GET)\n public String echo(@PathVariable String string) {\n return "Hello Nacos Discovery " + string;\n }\n }\n}\n\n// nacos-spring-cloud-consumer-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/resources\n* application.properties\nspring.application.name=micro-service-oauth2\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.cloud.client.loadbalancer.LoadBalanced;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\nimport org.springframework.web.client.RestTemplate;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosConsumerApplication {\n\n @LoadBalanced\n @Bean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }\n\n public static void main(String[] args) {\n SpringApplication.run(NacosConsumerApplication.class, args);\n }\n\n @RestController\n public class TestController {\n\n private final RestTemplate restTemplate;\n\n @Autowired\n public TestController(RestTemplate restTemplate) {this.restTemplate = restTemplate;}\n\n @RequestMapping(value = "/echo/{str}", method = RequestMethod.GET)\n public String echo(@PathVariable String str) {\n return restTemplate.getForObject("http://service-provider/echo/" + str, String.class);\n }\n }\n}')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}),this.cm.setSize("auto","490px"))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,e=void 0===e?{}:e;return C.a.createElement("div",null,C.a.createElement(l.a,{title:e.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:C.a.createElement("div",null),onClose:this.closeDialog.bind(this)},C.a.createElement("div",{style:{height:500}},C.a.createElement(g.a,{tip:e.loading,style:{width:"100%"},visible:this.state.loading},C.a.createElement(y.a,{shape:"text",style:{height:40,paddingBottom:10}},C.a.createElement(v,{title:"Java",key:0,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),C.a.createElement(v,{title:"Spring",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.springCode)}),C.a.createElement(v,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigbootCode)}),C.a.createElement(v,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloudCode)}),C.a.createElement(v,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),C.a.createElement(v,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),C.a.createElement(v,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),C.a.createElement(v,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),C.a.createElement("div",{ref:"codepreview"})))))}}]),n}(C.a.Component),r.displayName="ShowServiceCodeing",o=o))||o,Y=(n(725),n(27)),j=T.a.Item,I=i.a.Row,R=i.a.Col,A=L.a.Column,a=(0,a.a.config)((a=i=function(e){Object(p.a)(a,e);var t=Object(h.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryServiceList()})},n.showcode=function(){setTimeout(function(){return n.queryServiceList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:e.healthyInstanceCount?"":"row-bg-red"}},n.editServiceDialog=C.a.createRef(),n.showcode=C.a.createRef(),n.state={loading:!1,total:0,pageSize:10,currentPage:1,dataSource:[],search:{serviceName:"",groupName:""},hasIpCount:!("false"===localStorage.getItem("hasIpCount"))},n.field=new u.a(Object(f.a)(n)),n}return Object(c.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryServiceList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.search,o=e.withInstances,o=void 0!==o&&o,e=e.hasIpCount,r=["hasIpCount=".concat(e),"withInstances=".concat(o),"pageNo=".concat(t),"pageSize=".concat(a),"serviceNameParam=".concat(r.serviceName),"groupNameParam=".concat(r.groupName)];this.openLoading(),Object(m.c)({url:"v1/ns/catalog/services?".concat(r.join("&")),success:function(){var e=0i&&m.a.createElement(l.a,{className:"users-pagination",current:s,total:n.totalCount,pageSize:i,onChange:function(e){return t.setState({pageNo:e},function(){return t.getUsers()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.c)(e).then(function(e){return t.setState({pageNo:1},function(){return t.getUsers()}),e})},onCancel:function(){return t.colseCreateUser()}}),m.a.createElement(x.a,{username:r,onOk:function(e){return Object(g.k)(e).then(function(e){return t.getUsers(),e})},onCancel:function(){return t.setState({passwordResetUser:void 0})}}))}}]),n}(m.a.Component),i.displayName="UserManagement",r=r))||r)||r;t.a=r},function(e,t,n){"use strict";n(63);var a=n(46),l=n.n(a),r=(n(34),n(18)),u=n.n(r),d=n(31),o=(n(61),n(20)),c=n.n(o),i=(n(32),n(19)),f=n.n(i),s=n(14),p=n(15),h=n(17),m=n(16),g=(n(25),n(7)),a=n.n(g),r=n(0),y=n.n(r),o=n(43),v=n(45),i=n(77),_=n(48),g=(n(49),n(26)),b=n.n(g),w=n(22),r=(n(62),n(30)),M=n.n(r),g=(n(42),n(9)),k=n.n(g),S=k.a.Item,E=M.a.Option,x={labelCol:{fixedSpan:4},wrapperCol:{span:19}},L=Object(o.b)(function(e){return{namespaces:e.namespace.namespaces}},{getNamespaces:i.b,searchRoles:v.l})(g=(0,a.a.config)((g=r=function(e){Object(h.a)(o,e);var r=Object(m.a)(o);function o(){var t;Object(s.a)(this,o);for(var e=arguments.length,n=new Array(e),a=0;an&&y.a.createElement(l.a,{className:"users-pagination",current:e,total:t.totalCount,pageSize:n,onChange:function(e){return a.setState({pageNo:e},function(){return a.getPermissions()})}}),y.a.createElement(L,{visible:i,onOk:function(e){return Object(v.a)(e).then(function(e){return a.setState({pageNo:1},function(){return a.getPermissions()}),e})},onCancel:function(){return a.colseCreatePermission()}}))}}]),n}(y.a.Component),i.displayName="PermissionsManagement",a=a))||a)||a);t.a=a},function(e,t,n){"use strict";n(63);var a=n(46),l=n.n(a),r=(n(34),n(18)),u=n.n(r),o=(n(61),n(20)),d=n.n(o),i=(n(32),n(19)),c=n.n(i),s=n(14),f=n(15),p=n(17),h=n(16),a=(n(25),n(7)),r=n.n(a),o=n(0),m=n.n(o),i=n(43),g=n(45),y=n(48),a=(n(62),n(30)),v=n.n(a),o=(n(40),n(10)),_=n.n(o),a=(n(49),n(26)),b=n.n(a),w=n(22),o=(n(42),n(9)),M=n.n(o),k=M.a.Item,S={labelCol:{fixedSpan:4},wrapperCol:{span:19}},E=Object(i.b)(function(e){return{users:e.authority.users}},{searchUsers:g.m})(o=(0,r.a.config)((o=a=function(e){Object(p.a)(o,e);var r=Object(h.a)(o);function o(){var t;Object(s.a)(this,o);for(var e=arguments.length,n=new Array(e),a=0;ai&&m.a.createElement(l.a,{className:"users-pagination",current:s,total:t.totalCount,pageSize:i,onChange:function(e){return a.setState({pageNo:e},function(){return a.getRoles()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.b)(e).then(function(e){return a.getRoles(),e})},onCancel:function(){return a.colseCreateRole()}}))}}]),n}(m.a.Component),i.displayName="RolesManagement",r=r))||r)||r);t.a=r},function(e,t,n){"use strict";n(41);function o(e){var t=void 0===(t=localStorage.token)?"{}":t,t=(Object(y.c)(t)&&JSON.parse(t)||{}).globalAdmin;return["naming"===e?void 0:v,{key:"serviceManagementVirtual",children:[{key:"serviceManagement",url:"/serviceManagement"},{key:"subscriberList",url:"/subscriberList"}]},t?_:void 0,{key:"namespace",url:"/namespace"},{key:"clusterManagementVirtual",children:[{key:"clusterManagement",url:"/clusterManagement"}]}].filter(function(e){return e})}var a=n(23),i=n.n(a),r=n(14),s=n(15),l=n(17),u=n(16),d=(n(25),n(7)),c=n.n(d),f=n(21),p=(n(76),n(50)),h=n.n(p),a=n(0),m=n.n(a),d=n(36),p=n(43),g=n(129),a=n(95),y=n(47),v={key:"configurationManagementVirtual",children:[{key:"configurationManagement",url:"/configurationManagement"},{key:"historyRollback",url:"/historyRollback"},{key:"listeningToQuery",url:"/listeningToQuery"}]},_={key:"authorityControl",children:[{key:"userList",url:"/userManagement"},{key:"roleManagement",url:"/rolesManagement"},{key:"privilegeManagement",url:"/permissionsManagement"}]},b=h.a.SubMenu,w=h.a.Item,c=(a=Object(p.b)(function(e){return Object(f.a)(Object(f.a)({},e.locale),e.base)},{getState:a.b}),c=c.a.config,Object(d.g)(c=a(c=c((c=a=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.props.getState()}},{key:"goBack",value:function(){this.props.history.goBack()}},{key:"navTo",value:function(e){var t=this.props.location.search;this.props.history.push([e,t].join(""))}},{key:"isCurrentPath",value:function(e){return e===this.props.location.pathname?"current-path":void 0}},{key:"defaultOpenKeys",value:function(){for(var t=this,e=o(this.props.functionMode),n=0,a=e.length;nthis.state.pageSize&&k.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},k.a.createElement(y.a,{current:this.state.pageNo,total:s,pageSize:this.state.pageSize,onChange:function(e){return t.setState({pageNo:e},function(){return t.querySubscriberList()})}}))))}}]),a}(k.a.Component),r.displayName="SubscriberList",i=i))||i)||i;t.a=i},function(e,t,n){"use strict";n(51);var a=n(33),f=n.n(a),r=(n(63),n(46)),p=n.n(r),o=(n(165),n(71)),h=n.n(o),a=(n(40),n(10)),m=n.n(a),r=(n(32),n(19)),g=n.n(r),o=(n(34),n(18)),i=n.n(o),a=(n(49),n(26)),s=n.n(a),l=n(14),u=n(15),d=n(22),c=n(17),y=n(16),r=(n(25),n(7)),o=n.n(r),a=(n(397),n(109)),v=n.n(a),r=(n(61),n(20)),_=n.n(r),a=(n(65),n(37)),r=n.n(a),a=(n(42),n(9)),b=n.n(a),a=n(0),w=n.n(a),M=n(1),k=n(48),a=n(131),S=n.n(a),E=(n(728),b.a.Item),x=r.a.Row,L=r.a.Col,T=_.a.Column,C=v.a.Panel,o=(0,o.a.config)((o=r=function(e){Object(c.a)(a,e);var t=Object(y.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryClusterStateList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:(e.voteFor,"")}},n.state={loading:!1,total:0,pageSize:10,currentPage:1,keyword:"",dataSource:[]},n.field=new s.a(Object(d.a)(n)),n}return Object(u.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryClusterStateList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.keyword,e=e.withInstances,r=["withInstances=".concat(void 0!==e&&e),"pageNo=".concat(t),"pageSize=".concat(a),"keyword=".concat(r)];Object(M.c)({url:"v1/core/cluster/nodes?".concat(r.join("&")),beforeSend:function(){return n.openLoading()},success:function(){var e=0this.state.pageSize&&w.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},w.a.createElement(p.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return t.setState({currentPage:e},function(){return t.queryClusterStateList()})}}))))}}]),a}(w.a.Component),r.displayName="ClusterNodeList",o=o))||o;t.a=o},function(e,t,z){"use strict";z.r(t),function(e){z(51);var t=z(33),a=z.n(t),n=(z(25),z(7)),r=z.n(n),o=z(14),i=z(15),s=z(17),l=z(16),u=z(21),d=z(0),c=z.n(d),f=z(24),p=z.n(f),h=z(112),m=z(406),g=z(407),y=z(43),v=z(36),_=z(93),b=(z(450),z(423)),w=z(27),M=z(424),k=z(417),S=z(425),E=z(426),x=z(418),L=z(427),T=z(428),C=z(429),D=z(430),O=z(431),N=z(415),P=z(419),Y=z(416),j=z(432),I=z(433),R=z(420),A=z(421),t=z(422),H=z(413),n=z(414),d=z(98);z(731);e.hot,localStorage.getItem(w.f)||localStorage.setItem(w.f,"zh-CN"===navigator.language?"zh-CN":"en-US");var m=Object(h.b)(Object(u.a)(Object(u.a)({},n.a),{},{routing:m.routerReducer})),g=Object(h.d)(m,Object(h.c)(Object(h.a)(g.a),window[w.i]?window[w.i]():function(e){return e})),F=[{path:"/",exact:!0,render:function(){return c.a.createElement(v.a,{to:"/welcome"})}},{path:"/welcome",component:H.a},{path:"/namespace",component:k.a},{path:"/newconfig",component:S.a},{path:"/configsync",component:E.a},{path:"/configdetail",component:x.a},{path:"/configeditor",component:L.a},{path:"/historyDetail",component:T.a},{path:"/configRollback",component:C.a},{path:"/historyRollback",component:D.a},{path:"/listeningToQuery",component:O.a},{path:"/configurationManagement",component:N.a},{path:"/serviceManagement",component:P.a},{path:"/serviceDetail",component:Y.a},{path:"/subscriberList",component:j.a},{path:"/clusterManagement",component:I.a},{path:"/userManagement",component:R.a},{path:"/rolesManagement",component:t.a},{path:"/permissionsManagement",component:A.a}],d=Object(y.b)(function(e){return Object(u.a)({},e.locale)},{changeLanguage:d.a})(d=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(e){return Object(o.a)(this,n),(e=t.call(this,e)).state={shownotice:"none",noticecontent:"",nacosLoading:{}},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=localStorage.getItem(w.f);this.props.changeLanguage(e)}},{key:"router",get:function(){return c.a.createElement(_.a,null,c.a.createElement(v.d,null,c.a.createElement(v.b,{path:"/login",component:M.a}),c.a.createElement(b.a,null,F.map(function(e){return c.a.createElement(v.b,Object.assign({key:e.path},e))}))))}},{key:"render",value:function(){var e=this.props.locale;return c.a.createElement(a.a,Object.assign({className:"nacos-loading",shape:"flower",tip:"loading...",visible:!1,fullScreen:!0},this.state.nacosLoading),c.a.createElement(r.a,{locale:e},this.router))}}]),n}(c.a.Component))||d;p.a.render(c.a.createElement(y.a,{store:g},c.a.createElement(d,null)),document.getElementById("root"))}.call(this,z(435)(e))},function(e,t){e.exports=function(e){var t;return e.webpackPolyfill||((t=Object.create(e)).children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1),t}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";
+var t;e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var a=e*100+t;if(a<600)return"凌晨";else if(a<900)return"早上";else if(a<1130)return"上午";else if(a<1230)return"中午";else if(a<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(8))},function(e,t,n){"use strict";t.__esModule=!0;var v=c(n(2)),o=c(n(4)),i=c(n(5)),a=c(n(6)),r=n(0),_=c(r),s=c(n(3)),l=n(28),b=c(n(12)),u=c(n(44)),w=c(n(23)),M=c(n(118)),d=c(n(7)),k=n(11);function c(e){return e&&e.__esModule?e:{default:e}}var f,n=function(){},a=(f=r.Component,(0,a.default)(S,f),S.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:{}},S.prototype.render=function(){var e=this.props,t=e.prefix,n=(e.pure,e.className),a=e.style,r=e.type,o=e.shape,i=e.size,s=e.title,l=e.children,u=(e.defaultVisible,e.visible,e.iconType),d=e.closeable,c=(e.onClose,e.afterClose),f=e.animation,p=e.rtl,h=e.locale,m=(0,v.default)({},k.obj.pickOthers(Object.keys(S.propTypes),this.props)),g=this.state.visible,y=t+"message",e=(0,b.default)(((e={})[y]=!0,e[t+"message-"+r]=r,e[""+t+o]=o,e[""+t+i]=i,e[t+"title-content"]=!!s,e[t+"only-content"]=!s&&!!l,e[n]=n,e)),l=g?_.default.createElement("div",(0,v.default)({role:"alert",style:a},m,{className:e,dir:p?"rtl":void 0}),d?_.default.createElement("a",{role:"button","aria-label":h.closeAriaLabel,className:y+"-close",onClick:this.onClose},_.default.createElement(w.default,{type:"close"})):null,_.default.createElement(w.default,{className:y+"-symbol "+(!u&&y+"-symbol-icon"),type:u}),s?_.default.createElement("div",{className:y+"-title"},s):null,l?_.default.createElement("div",{className:y+"-content"},l):null):null;return f?_.default.createElement(M.default.Expand,{animationAppear:!1,afterLeave:c},l):l},a=r=S,r.propTypes={prefix:s.default.string,pure:s.default.bool,className:s.default.string,style:s.default.object,type:s.default.oneOf(["success","warning","error","notice","help","loading"]),shape:s.default.oneOf(["inline","addon","toast"]),size:s.default.oneOf(["medium","large"]),title:s.default.node,children:s.default.node,defaultVisible:s.default.bool,visible:s.default.bool,iconType:s.default.string,closeable:s.default.bool,onClose:s.default.func,afterClose:s.default.func,animation:s.default.bool,locale:s.default.object,rtl:s.default.bool},r.defaultProps={prefix:"next-",pure:!1,type:"success",shape:"inline",size:"medium",defaultVisible:!0,closeable:!1,onClose:n,afterClose:n,animation:!0,locale:u.default.Message},a);function S(){var e,t;(0,o.default)(this,S);for(var n=arguments.length,a=Array(n),r=0;ra.clientHeight&&0>6]+c[128|63&l]:l<55296||57344<=l?i+=c[224|l>>12]+c[128|l>>6&63]+c[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),i+=c[240|l>>18]+c[128|l>>12&63]+c[128|l>>6&63]+c[128|63&l])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(d(e)){for(var n=[],a=0;athis.popupNode.offsetWidth&&p(this.popupNode,"width",s.offsetWidth+"px"),"outside"!==e||"hoz"===o&&1===n||(p(this.popupNode,"height",u.offsetHeight+"px"),this.popupNode.firstElementChild&&p(this.popupNode.firstElementChild,"overflow-y","auto"));var d=this.popupProps;d.onOpen&&d.onOpen()}catch(e){return null}},S.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1t?r[t+1]:r[0])}),n[a]||(o=r[0]),i.onSort(a,o)},i.keydownHandler=function(e){e.preventDefault(),e.stopPropagation(),e.keyCode===s.KEYCODE.ENTER&&i.handleClick()},i.onSort=function(e,t){var n={};n[e]=t,i.props.onSort(e,t,n)},(0,o.default)(i,e)}a.displayName="Sort",t.default=a,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(2)),a=c(n(4)),o=c(n(5)),i=c(n(6)),s=c(n(0)),l=c(n(3)),u=c(n(12)),d=c(n(383));function c(e){return e&&e.__esModule?e:{default:e}}var f,i=(f=s.default.Component,(0,i.default)(p,f),p.prototype.render=function(){var e=this.props,t=e.className,n=e.record,a=e.primaryKey,e=this.context.selectedRowKeys,a=(0,u.default)(((a={selected:-1 "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t){var r={}.hasOwnProperty;function n(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}(function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function a(){this.constructor=e}a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype})(n,Error),n.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?" "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var y=m(n(2)),a=m(n(4)),r=m(n(5)),o=m(n(6)),i=n(0),v=m(i),s=n(24),l=m(n(3)),_=m(n(12)),u=n(11),f=m(n(50)),d=m(n(60)),b=m(n(10)),c=m(n(44)),p=m(n(657)),h=m(n(394)),w=n(167);function m(e){return e&&e.__esModule?e:{default:e}}var M=d.default.Popup,g=f.default.Item,k=f.default.Group,n=u.func.noop,S=u.func.bindCtx,E=u.func.makeChain;var x,o=(x=v.default.Component,(0,o.default)(L,x),L.prototype.componentDidMount=function(){var e=this;setTimeout(function(){return e.syncWidth()},0),u.events.on(window,"resize",this.handleResize)},L.prototype.componentDidUpdate=function(e,t){e.label===this.props.label&&t.value===this.state.value||this.syncWidth()},L.prototype.componentWillUnmount=function(){u.events.off(window,"resize",this.handleResize),clearTimeout(this.resizeTimeout)},L.prototype.syncWidth=function(){var e=this,t=this.props,n=t.popupStyle,t=t.popupProps;n&&"width"in n||t&&t.style&&"width"in t.style||(t=u.dom.getStyle(this.selectDOM,"width"))&&this.width!==t&&(this.width=t,this.popupRef&&this.shouldAutoWidth()&&setTimeout(function(){e.popupRef&&e.popupRef.getInstance().overlay&&u.dom.setStyle(e.popupRef.getInstance().overlay.getInstance().getContentNode(),"width",e.width)},0))},L.prototype.handleResize=function(){var e=this;clearTimeout(this.resizeTimeout),this.state.visible&&(this.resizeTimeout=setTimeout(function(){e.syncWidth()},200))},L.prototype.setDataSource=function(e){var t=e.dataSource,e=e.children;return i.Children.count(e)?this.dataStore.updateByDS(e,!0):Array.isArray(t)?this.dataStore.updateByDS(t,!1):[]},L.prototype.setVisible=function(e,t){this.props.disabled&&e||this.state.visible===e||("visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e,t))},L.prototype.setFirstHightLightKeyForMenu=function(){var e;this.props.autoHighlightFirstItem&&this.dataStore.getMenuDS().length&&this.dataStore.getEnableDS().length&&(e=""+this.dataStore.getEnableDS()[0].value,this.setState({highlightKey:e}),this.props.onToggleHighlightItem(e,"autoFirstItem"))},L.prototype.handleChange=function(e){var t;"value"in this.props||this.setState({value:e});for(var n=arguments.length,a=Array(1e.slidesToShow&&(n=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0&&(t=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow,(t=e.rtl?(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow:t)&&(o=e.slideIndex>e.slideCount?(n=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(n=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1)))):e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(n=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth),e.centerMode&&(e.infinite?n+=e.slideWidth*Math.floor(e.slidesToShow/2):n=e.slideWidth*Math.floor(e.slidesToShow/2)),a=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+n,!0===e.variableWidth&&(n=void 0,a=(r=e.slideCount<=e.slidesToShow||!1===e.infinite?i.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(n=e.slideIndex+e.slidesToShow,i.default.findDOMNode(e.trackRef).childNodes[n]))?-1*r.offsetLeft:0,!0===e.centerMode&&(r=!1===e.infinite?i.default.findDOMNode(e.trackRef).children[e.slideIndex]:i.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(a=-1*r.offsetLeft+(e.listWidth-r.offsetWidth)/2)),a)}},function(e,t,n){"use strict";t.__esModule=!0;var p=u(n(2)),h=u(n(13)),o=u(n(4)),i=u(n(5)),a=u(n(6)),m=u(n(0)),r=u(n(3)),g=u(n(12)),s=u(n(7)),y=u(n(23)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}var d,a=(d=m.default.Component,(0,a.default)(c,d),c.prototype.render=function(){var e=this.props,t=e.title,n=e.children,a=e.className,r=e.isExpanded,o=e.disabled,i=e.style,s=e.prefix,l=e.onClick,u=e.id,d=(0,h.default)(e,["title","children","className","isExpanded","disabled","style","prefix","onClick","id"]),c=(0,g.default)(((f={})[s+"collapse-panel"]=!0,f[s+"collapse-panel-hidden"]=!r,f[s+"collapse-panel-expanded"]=r,f[s+"collapse-panel-disabled"]=o,f[a]=a,f)),a=(0,g.default)(((e={})[s+"collapse-panel-icon"]=!0,e[s+"collapse-panel-icon-expanded"]=r,e)),f=u?u+"-heading":void 0,e=u?u+"-region":void 0;return m.default.createElement("div",(0,p.default)({className:c,style:i,id:u},d),m.default.createElement("div",{id:f,className:s+"collapse-panel-title",onClick:l,onKeyDown:this.onKeyDown,tabIndex:"0","aria-disabled":o,"aria-expanded":r,"aria-controls":e,role:"button"},m.default.createElement(y.default,{type:"arrow-right",className:a,"aria-hidden":"true"}),t),m.default.createElement("div",{className:s+"collapse-panel-content",role:"region",id:e},n))},a=n=c,n.propTypes={prefix:r.default.string,style:r.default.object,children:r.default.any,isExpanded:r.default.bool,disabled:r.default.bool,title:r.default.node,className:r.default.string,onClick:r.default.func,id:r.default.string},n.defaultProps={prefix:"next-",isExpanded:!1,onClick:l.func.noop},n.isNextPanel=!0,a);function c(){var e,n;(0,o.default)(this,c);for(var t=arguments.length,a=Array(t),r=0;r\n com.alibaba.nacos\n nacos-client\n ${version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\nimport java.util.concurrent.Executor;\nimport com.alibaba.nacos.api.NacosFactory;\nimport com.alibaba.nacos.api.config.ConfigService;\nimport com.alibaba.nacos.api.config.listener.Listener;\nimport com.alibaba.nacos.api.exception.NacosException;\n\n/**\n * Config service example\n *\n * @author Nacos\n *\n */\npublic class ConfigExample {\n\n\tpublic static void main(String[] args) throws NacosException, InterruptedException {\n\t\tString serverAddr = "localhost";\n\t\tString dataId = "'.concat(e.dataId,'";\n\t\tString group = "').concat(e.group,'";\n\t\tProperties properties = new Properties();\n\t\tproperties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);\n\t\tConfigService configService = NacosFactory.createConfigService(properties);\n\t\tString content = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tconfigService.addListener(dataId, group, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void receiveConfigInfo(String configInfo) {\n\t\t\t\tSystem.out.println("recieve:" + configInfo);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\n\t\tThread.sleep(3000);\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\n\t\tboolean isRemoveOk = configService.removeConfig(dataId, group);\n\t\tSystem.out.println(isRemoveOk);\n\t\tThread.sleep(3000);\n\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tThread.sleep(300000);\n\n\t}\n}\n')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,e=void 0===e?{}:e;return L.a.createElement("div",null,L.a.createElement(_.a,{title:e.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:L.a.createElement("div",null),onClose:this.closeDialog.bind(this)},L.a.createElement("div",{style:{height:500}},L.a.createElement(N.a,{tip:e.loading,style:{width:"100%"},visible:this.state.loading},L.a.createElement(P.a,{shape:"text",style:{height:40,paddingBottom:10}},L.a.createElement(Y,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),L.a.createElement(Y,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),L.a.createElement(Y,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),L.a.createElement(Y,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),L.a.createElement(Y,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),L.a.createElement(Y,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),L.a.createElement(Y,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),L.a.createElement("div",{ref:"codepreview"})))))}}]),n}(L.a.Component),a.displayName="ShowCodeing",a=s))||a,s=(n(65),n(37)),a=n.n(s),I=(n(702),a.a.Row),R=a.a.Col,A=(0,u.a.config)((a=s=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(e){return Object(w.a)(this,n),(e=t.call(this,e)).state={visible:!1,title:"",content:"",isok:!0,dataId:"",group:""},e}return Object(M.a)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"initData",value:function(){var e=this.props.locale;this.setState({title:(void 0===e?{}:e).confManagement})}},{key:"openDialog",value:function(e){this.setState({visible:!0,title:e.title,content:e.content,isok:e.isok,dataId:e.dataId,group:e.group,message:e.message})}},{key:"closeDialog",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=L.a.createElement("div",{style:{textAlign:"right"}},L.a.createElement(d.a,{type:"primary",onClick:this.closeDialog.bind(this)},t.determine));return L.a.createElement("div",null,L.a.createElement(_.a,{visible:this.state.visible,footer:e,style:{width:555},onCancel:this.closeDialog.bind(this),onClose:this.closeDialog.bind(this),title:t.deletetitle},L.a.createElement("div",null,L.a.createElement(I,null,L.a.createElement(R,{span:"4",style:{paddingTop:16}},L.a.createElement(y.a,{type:"".concat(this.state.isok?"success":"delete","-filling"),style:{color:this.state.isok?"green":"red"},size:"xl"})),L.a.createElement(R,{span:"20"},L.a.createElement("div",null,L.a.createElement("h3",null,this.state.isok?t.deletedSuccessfully:t.deleteFailed),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Data ID:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.dataId)),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Group:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.group)),this.state.isok?"":L.a.createElement("p",{style:{color:"red"}},this.state.message)))))))}}]),n}(L.a.Component),s.displayName="DeleteDialog",s=a))||s,a=(n(703),n(411)),H=n.n(a),F=(0,u.a.config)((a=s=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(M.a)(n,[{key:"render",value:function(){var e=this.props,t=e.data,n=void 0===t?{}:t,t=e.height,e=e.locale,a=void 0===e?{}:e;return L.a.createElement("div",null,"notice"===n.modeType?L.a.createElement("div",{"data-spm-click":"gostr=/aliyun;locaid=notice"},L.a.createElement(H.a,{style:{marginBottom:1e?b.a.createElement(L.a,{className:"pagination",total:l.count,pageSize:e,onChange:function(e){return a.onChangePage(e)}}):null,b.a.createElement(C,{ref:this.editInstanceDialog,serviceName:o,clusterName:n,groupName:i,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(b.a.Component),r.displayName="InstanceTable",r.defaultProps={filters:new Map},o=o))||o,D=function(e,t){return e.filter(function(e){var n=e.metadata,a=!0;return t.forEach(function(e,t){if(e!==n[t])return a=!1}),a})},O=o,N=n(47),P=n(31),o=(n(165),n(71)),o=n.n(o),Y=o.a.Group,j=o.a.Closeable,I=v.a.Item;var R=a.a.config(function(e){function t(){o(""),l("")}function n(){u(r?"":"error"),f(s?"":"error")}var a=Object(_.useState)(""),r=(c=Object(P.a)(a,2))[0],o=c[1],i=Object(_.useState)(""),s=(d=Object(P.a)(i,2))[0],l=d[1],a=Object(_.useState)(""),i=(c=Object(P.a)(a,2))[0],u=c[1],d=Object(_.useState)(""),c=(a=Object(P.a)(d,2))[0],f=a[1],d=Object(_.useState)(new Map),p=(a=Object(P.a)(d,2))[0],h=a[1],a=void 0===(d=e.locale)?{}:d,d=function(){var e;n(),r&&s&&(e=new Map(Array.from(p)).set(r,s),h(e),u(""),f(""),t())};return Object(_.useEffect)(function(){e.setFilters(p)},[p]),b.a.createElement(m.a,{contentHeight:"auto",className:"inner-card"},b.a.createElement(v.a,{inline:!0,size:"small"},b.a.createElement(I,{label:a.title},b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"key",value:r,trim:!0,onChange:function(e){return o(e)},onPressEnter:d,state:i})),b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"value",value:s,trim:!0,onChange:function(e){return l(e)},onPressEnter:d,state:c})),b.a.createElement(I,{label:""},b.a.createElement(g.a,{type:"primary",onClick:d,style:{marginRight:10}},a.addFilter),0\n com.alibaba.nacos\n nacos-client\n ${latest.version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\n\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingFactory;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.listener.Event;\nimport com.alibaba.nacos.api.naming.listener.EventListener;\nimport com.alibaba.nacos.api.naming.listener.NamingEvent;\n\n/**\n * @author nkorange\n */\npublic class NamingExample {\n\n public static void main(String[] args) throws NacosException {\n\n Properties properties = new Properties();\n properties.setProperty("serverAddr", System.getProperty("serverAddr"));\n properties.setProperty("namespace", System.getProperty("namespace"));\n\n NamingService naming = NamingFactory.createNamingService(properties);\n\n naming.registerInstance("'.concat(this.record.name,'", "11.11.11.11", 8888, "TEST1");\n\n naming.registerInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.deregisterInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.subscribe("').concat(this.record.name,'", new EventListener() {\n @Override\n public void onEvent(Event event) {\n System.out.println(((NamingEvent)event).getServiceName());\n System.out.println(((NamingEvent)event).getInstances());\n }\n });\n }\n}')}},{key:"getSpringCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example\n* pom.xml\n \n com.alibaba.nacos\n nacos-spring-context\n ${latest.version}\n \n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring\npackage com.alibaba.nacos.example.spring;\n\nimport com.alibaba.nacos.api.annotation.NacosProperties;\nimport com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;\nimport org.springframework.context.annotation.Configuration;\n\n@Configuration\n@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848"))\npublic class NacosConfiguration {\n\n}\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring/controller\npackage com.alibaba.nacos.example.spring.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringBootCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example\n* pom.xml\n \n com.alibaba.boot\n nacos-discovery-spring-boot-starter\n ${latest.version}\n \n*/\n/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/resources\n* application.properties\n nacos.discovery.server-addr=127.0.0.1:8848\n*/\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/java/com/alibaba/nacos/example/spring/boot/controller\n\npackage com.alibaba.nacos.example.spring.boot.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringCloudCode",value:function(e){return"/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/\n* pom.xml\n \n org.springframework.cloud\n spring-cloud-starter-alibaba-nacos-discovery\n ${latest.version}\n \n*/\n\n// nacos-spring-cloud-provider-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/resources\n* application.properties\nserver.port=18080\nspring.application.name=".concat(this.record.name,'\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosProviderApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(NacosProviderApplication.class, args);\n}\n\n @RestController\n class EchoController {\n @RequestMapping(value = "/echo/{string}", method = RequestMethod.GET)\n public String echo(@PathVariable String string) {\n return "Hello Nacos Discovery " + string;\n }\n }\n}\n\n// nacos-spring-cloud-consumer-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/resources\n* application.properties\nspring.application.name=micro-service-oauth2\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.cloud.client.loadbalancer.LoadBalanced;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\nimport org.springframework.web.client.RestTemplate;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosConsumerApplication {\n\n @LoadBalanced\n @Bean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }\n\n public static void main(String[] args) {\n SpringApplication.run(NacosConsumerApplication.class, args);\n }\n\n @RestController\n public class TestController {\n\n private final RestTemplate restTemplate;\n\n @Autowired\n public TestController(RestTemplate restTemplate) {this.restTemplate = restTemplate;}\n\n @RequestMapping(value = "/echo/{str}", method = RequestMethod.GET)\n public String echo(@PathVariable String str) {\n return restTemplate.getForObject("http://service-provider/echo/" + str, String.class);\n }\n }\n}')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}),this.cm.setSize("auto","490px"))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,e=void 0===e?{}:e;return C.a.createElement("div",null,C.a.createElement(l.a,{title:e.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:C.a.createElement("div",null),onClose:this.closeDialog.bind(this)},C.a.createElement("div",{style:{height:500}},C.a.createElement(g.a,{tip:e.loading,style:{width:"100%"},visible:this.state.loading},C.a.createElement(y.a,{shape:"text",style:{height:40,paddingBottom:10}},C.a.createElement(v,{title:"Java",key:0,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),C.a.createElement(v,{title:"Spring",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.springCode)}),C.a.createElement(v,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigbootCode)}),C.a.createElement(v,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloudCode)}),C.a.createElement(v,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),C.a.createElement(v,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),C.a.createElement(v,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),C.a.createElement(v,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),C.a.createElement("div",{ref:"codepreview"})))))}}]),n}(C.a.Component),r.displayName="ShowServiceCodeing",o=o))||o,Y=(n(725),n(27)),j=T.a.Item,I=i.a.Row,R=i.a.Col,A=L.a.Column,a=(0,a.a.config)((a=i=function(e){Object(p.a)(a,e);var t=Object(h.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryServiceList()})},n.showcode=function(){setTimeout(function(){return n.queryServiceList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:e.healthyInstanceCount?"":"row-bg-red"}},n.editServiceDialog=C.a.createRef(),n.showcode=C.a.createRef(),n.state={loading:!1,total:0,pageSize:10,currentPage:1,dataSource:[],search:{serviceName:"",groupName:""},hasIpCount:!("false"===localStorage.getItem("hasIpCount"))},n.field=new u.a(Object(f.a)(n)),n}return Object(c.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryServiceList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.search,o=e.withInstances,o=void 0!==o&&o,e=e.hasIpCount,r=["hasIpCount=".concat(e),"withInstances=".concat(o),"pageNo=".concat(t),"pageSize=".concat(a),"serviceNameParam=".concat(r.serviceName),"groupNameParam=".concat(r.groupName)];this.openLoading(),Object(m.c)({url:"v1/ns/catalog/services?".concat(r.join("&")),success:function(){var e=0i&&m.a.createElement(l.a,{className:"users-pagination",current:s,total:n.totalCount,pageSize:i,onChange:function(e){return t.setState({pageNo:e},function(){return t.getUsers()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.c)(e).then(function(e){return t.setState({pageNo:1},function(){return t.getUsers()}),e})},onCancel:function(){return t.colseCreateUser()}}),m.a.createElement(x.a,{username:r,onOk:function(e){return Object(g.k)(e).then(function(e){return t.getUsers(),e})},onCancel:function(){return t.setState({passwordResetUser:void 0})}}))}}]),n}(m.a.Component),i.displayName="UserManagement",r=r))||r)||r;t.a=r},function(e,t,n){"use strict";n(63);var a=n(46),l=n.n(a),r=(n(34),n(18)),u=n.n(r),d=n(31),o=(n(61),n(20)),c=n.n(o),i=(n(32),n(19)),f=n.n(i),s=n(14),p=n(15),h=n(17),m=n(16),g=(n(25),n(7)),a=n.n(g),r=n(0),y=n.n(r),o=n(43),v=n(45),i=n(77),_=n(48),g=(n(49),n(26)),b=n.n(g),w=n(22),r=(n(62),n(30)),M=n.n(r),g=(n(42),n(9)),k=n.n(g),S=k.a.Item,E=M.a.Option,x={labelCol:{fixedSpan:4},wrapperCol:{span:19}},L=Object(o.b)(function(e){return{namespaces:e.namespace.namespaces}},{getNamespaces:i.b,searchRoles:v.l})(g=(0,a.a.config)((g=r=function(e){Object(h.a)(o,e);var r=Object(m.a)(o);function o(){var t;Object(s.a)(this,o);for(var e=arguments.length,n=new Array(e),a=0;an&&y.a.createElement(l.a,{className:"users-pagination",current:e,total:t.totalCount,pageSize:n,onChange:function(e){return a.setState({pageNo:e},function(){return a.getPermissions()})}}),y.a.createElement(L,{visible:i,onOk:function(e){return Object(v.a)(e).then(function(e){return a.setState({pageNo:1},function(){return a.getPermissions()}),e})},onCancel:function(){return a.colseCreatePermission()}}))}}]),n}(y.a.Component),i.displayName="PermissionsManagement",a=a))||a)||a);t.a=a},function(e,t,n){"use strict";n(63);var a=n(46),l=n.n(a),r=(n(34),n(18)),u=n.n(r),o=(n(61),n(20)),d=n.n(o),i=(n(32),n(19)),c=n.n(i),s=n(14),f=n(15),p=n(17),h=n(16),a=(n(25),n(7)),r=n.n(a),o=n(0),m=n.n(o),i=n(43),g=n(45),y=n(48),a=(n(62),n(30)),v=n.n(a),o=(n(40),n(10)),_=n.n(o),a=(n(49),n(26)),b=n.n(a),w=n(22),o=(n(42),n(9)),M=n.n(o),k=M.a.Item,S={labelCol:{fixedSpan:4},wrapperCol:{span:19}},E=Object(i.b)(function(e){return{users:e.authority.users}},{searchUsers:g.m})(o=(0,r.a.config)((o=a=function(e){Object(p.a)(o,e);var r=Object(h.a)(o);function o(){var t;Object(s.a)(this,o);for(var e=arguments.length,n=new Array(e),a=0;ai&&m.a.createElement(l.a,{className:"users-pagination",current:s,total:t.totalCount,pageSize:i,onChange:function(e){return a.setState({pageNo:e},function(){return a.getRoles()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.b)(e).then(function(e){return a.getRoles(),e})},onCancel:function(){return a.colseCreateRole()}}))}}]),n}(m.a.Component),i.displayName="RolesManagement",r=r))||r)||r);t.a=r},function(e,t,n){"use strict";n(41);function o(e){var t=void 0===(t=localStorage.token)?"{}":t,t=(Object(y.c)(t)&&JSON.parse(t)||{}).globalAdmin;return["naming"===e?void 0:v,{key:"serviceManagementVirtual",children:[{key:"serviceManagement",url:"/serviceManagement"},{key:"subscriberList",url:"/subscriberList"}]},t?_:void 0,{key:"namespace",url:"/namespace"},{key:"clusterManagementVirtual",children:[{key:"clusterManagement",url:"/clusterManagement"}]}].filter(function(e){return e})}var a=n(23),i=n.n(a),r=n(14),s=n(15),l=n(17),u=n(16),d=(n(25),n(7)),c=n.n(d),f=n(21),p=(n(76),n(50)),h=n.n(p),a=n(0),m=n.n(a),d=n(36),p=n(43),g=n(129),a=n(95),y=n(47),v={key:"configurationManagementVirtual",children:[{key:"configurationManagement",url:"/configurationManagement"},{key:"historyRollback",url:"/historyRollback"},{key:"listeningToQuery",url:"/listeningToQuery"}]},_={key:"authorityControl",children:[{key:"userList",url:"/userManagement"},{key:"roleManagement",url:"/rolesManagement"},{key:"privilegeManagement",url:"/permissionsManagement"}]},b=h.a.SubMenu,w=h.a.Item,c=(a=Object(p.b)(function(e){return Object(f.a)(Object(f.a)({},e.locale),e.base)},{getState:a.b}),c=c.a.config,Object(d.g)(c=a(c=c((c=a=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.props.getState()}},{key:"goBack",value:function(){this.props.history.goBack()}},{key:"navTo",value:function(e){var t=this.props.location.search;this.props.history.push([e,t].join(""))}},{key:"isCurrentPath",value:function(e){return e===this.props.location.pathname?"current-path":void 0}},{key:"defaultOpenKeys",value:function(){for(var t=this,e=o(this.props.functionMode),n=0,a=e.length;nthis.state.pageSize&&k.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},k.a.createElement(y.a,{current:this.state.pageNo,total:s,pageSize:this.state.pageSize,onChange:function(e){return t.setState({pageNo:e},function(){return t.querySubscriberList()})}}))))}}]),a}(k.a.Component),r.displayName="SubscriberList",i=i))||i)||i;t.a=i},function(e,t,n){"use strict";n(51);var a=n(33),f=n.n(a),r=(n(63),n(46)),p=n.n(r),o=(n(165),n(71)),h=n.n(o),a=(n(40),n(10)),m=n.n(a),r=(n(32),n(19)),g=n.n(r),o=(n(34),n(18)),i=n.n(o),a=(n(49),n(26)),s=n.n(a),l=n(14),u=n(15),d=n(22),c=n(17),y=n(16),r=(n(25),n(7)),o=n.n(r),a=(n(397),n(109)),v=n.n(a),r=(n(61),n(20)),_=n.n(r),a=(n(65),n(37)),r=n.n(a),a=(n(42),n(9)),b=n.n(a),a=n(0),w=n.n(a),M=n(1),k=n(48),a=n(131),S=n.n(a),E=(n(728),b.a.Item),x=r.a.Row,L=r.a.Col,T=_.a.Column,C=v.a.Panel,o=(0,o.a.config)((o=r=function(e){Object(c.a)(a,e);var t=Object(y.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryClusterStateList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:(e.voteFor,"")}},n.state={loading:!1,total:0,pageSize:10,currentPage:1,keyword:"",dataSource:[]},n.field=new s.a(Object(d.a)(n)),n}return Object(u.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryClusterStateList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.keyword,e=e.withInstances,r=["withInstances=".concat(void 0!==e&&e),"pageNo=".concat(t),"pageSize=".concat(a),"keyword=".concat(r)];Object(M.c)({url:"v1/core/cluster/nodes?".concat(r.join("&")),beforeSend:function(){return n.openLoading()},success:function(){var e=0this.state.pageSize&&w.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},w.a.createElement(p.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return t.setState({currentPage:e},function(){return t.queryClusterStateList()})}}))))}}]),a}(w.a.Component),r.displayName="ClusterNodeList",o=o))||o;t.a=o},function(e,t,z){"use strict";z.r(t),function(e){z(51);var t=z(33),a=z.n(t),n=(z(25),z(7)),r=z.n(n),o=z(14),i=z(15),s=z(17),l=z(16),u=z(21),d=z(0),c=z.n(d),f=z(24),p=z.n(f),h=z(112),m=z(406),g=z(407),y=z(43),v=z(36),_=z(93),b=(z(450),z(423)),w=z(27),M=z(424),k=z(417),S=z(425),E=z(426),x=z(418),L=z(427),T=z(428),C=z(429),D=z(430),O=z(431),N=z(415),P=z(419),Y=z(416),j=z(432),I=z(433),R=z(420),A=z(421),t=z(422),H=z(413),n=z(414),d=z(98);z(731);e.hot,localStorage.getItem(w.f)||localStorage.setItem(w.f,"zh-CN"===navigator.language?"zh-CN":"en-US");var m=Object(h.b)(Object(u.a)(Object(u.a)({},n.a),{},{routing:m.routerReducer})),g=Object(h.d)(m,Object(h.c)(Object(h.a)(g.a),window[w.i]?window[w.i]():function(e){return e})),F=[{path:"/",exact:!0,render:function(){return c.a.createElement(v.a,{to:"/welcome"})}},{path:"/welcome",component:H.a},{path:"/namespace",component:k.a},{path:"/newconfig",component:S.a},{path:"/configsync",component:E.a},{path:"/configdetail",component:x.a},{path:"/configeditor",component:L.a},{path:"/historyDetail",component:T.a},{path:"/configRollback",component:C.a},{path:"/historyRollback",component:D.a},{path:"/listeningToQuery",component:O.a},{path:"/configurationManagement",component:N.a},{path:"/serviceManagement",component:P.a},{path:"/serviceDetail",component:Y.a},{path:"/subscriberList",component:j.a},{path:"/clusterManagement",component:I.a},{path:"/userManagement",component:R.a},{path:"/rolesManagement",component:t.a},{path:"/permissionsManagement",component:A.a}],d=Object(y.b)(function(e){return Object(u.a)({},e.locale)},{changeLanguage:d.a})(d=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(e){return Object(o.a)(this,n),(e=t.call(this,e)).state={shownotice:"none",noticecontent:"",nacosLoading:{}},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=localStorage.getItem(w.f);this.props.changeLanguage(e)}},{key:"router",get:function(){return c.a.createElement(_.a,null,c.a.createElement(v.d,null,c.a.createElement(v.b,{path:"/login",component:M.a}),c.a.createElement(b.a,null,F.map(function(e){return c.a.createElement(v.b,Object.assign({key:e.path},e))}))))}},{key:"render",value:function(){var e=this.props.locale;return c.a.createElement(a.a,Object.assign({className:"nacos-loading",shape:"flower",tip:"loading...",visible:!1,fullScreen:!0},this.state.nacosLoading),c.a.createElement(r.a,{locale:e},this.router))}}]),n}(c.a.Component))||d;p.a.render(c.a.createElement(y.a,{store:g},c.a.createElement(d,null)),document.getElementById("root"))}.call(this,z(435)(e))},function(e,t){e.exports=function(e){var t;return e.webpackPolyfill||((t=Object.create(e)).children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1),t}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";
/** @license React v16.14.0
* react.production.min.js
*