diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..c607b546c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[{package.json,.travis.yml}] +indent_size = 2 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bee36e01..ca639f871 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,89 @@ +## 0.6.0(Dec, 2018) + +[#388] Cluster name should be provided in the Instance +[#377] Clean up messy code in Naming module +[#369] Support instance list persisted on disk +[#366] findbugs-maven-plugin version +[#362] The metadata will lost when online or offline instance through web ui +[#352] Refactoring internationalization Nacos console +[#278] Nacos docker img +[#243] optimize the efficiency of integration testing, it’s taking too long now + +## 0.5.0(Nov, 2018) + +[#148] Naming write performace. +[#175] Support deregistering instance automatically. +[#176] Naming client query instance method should bypass local cache at client start. +[#177] Console supports registering new empty service and delete empty service. +[#181] NPE when adding a instance if no leader in the raft cluster. +[#193] Configure host domain name cause nacos server cluster is unavailable. +[#209] Disable service and cluster level customization in client registerInstance method. +[#214] Please support Java 11. +[#222] print more nacos server start status info in start.log. +[#231] Refactoring: Parsing the Nacos home directory and the cluster.conf file. +[#246] "mvn -B clean apache-rat:check findbugs:findbugs" did not work as expected. +[#251] Console Editor Optimization. +[#254] DataId and group are required in historical version and listener query. +[#256] Whether the service discovery data needs to add a newline link symbol. +[#257] Listening query switching query dimension data is not refreshed. +[#258] Remove the Balloon of DataId/Group. +[#259] Listening query paging size problem. +[#272] "#it is ip" is also parsed into an instance IP. +[#275] nacos coredns plugin to support DNS. +[#281] We should lint the console code. +[#302] Maven build project supports java 11. +[#316] In stand alone mode, Nacos still checks the cluster.conf. + +## 0.4.0(Nov 7, 2018) + +[#216] Fix tenant dir problem +[#197] Service update ignored some properties +[#190] Client beat lose weight info and metadata info +[#188] Console delete data cannot be updated in time +[#179] Listening query fail when namespace is not blank +[#157] Lack information in readme.md to describe the related project repositories for Nacos echosystem +[#144] There have a error and something are not clear +[#106] Snapshot file create error +[#92] Eliminate warnings, refactor code, show start.log detail + + +## 0.3.0(Oct 26, 2018) + +[#171] UI debug errors +[#156] Web UI 404 problem +[#155] use local resource +[#145] nacos-example not found :org.apache.logging.log4j.core.Logger +[#142] UI console show Group +[#149] Fix naming client beat process failed bug. +[#150] Fix naming service registration hangs bug. + +## 0.3.0-RC1(Oct 19, 2018) + +[#33] Support console for config management. +[#51] Support console for naming service. +[#121] Fix get instance method hanging bug. +[#138] Add a flag to indicate if instance is offline. +[#130] Fix health check disabled if machine has one CPU core bug. +[#139] Fix still get instance with zero weight bug. +[#128] Fix console layout bug. + + + +## 0.2.1-release(Sept 28, 2018) + +* FIx deregister last instance failed error. +* Fix url pattern error. +* Fully integrate with and seamlessly support Spring framework, Spring Boot and Spring Cloud +* Separate nacos-api from nacos client implementation +* Support high available cluster mode +* Fix cluster node health check abnormality +* Fix stand-alone mode gets the change history list exception +* Fix Pulling does not exist configuration print io exception +* Optimized log framework +* Service Discovery: Client support getting server status. +* Service Discovery: Client support get all service names of server. +* Service Discovery: Client support get all subscribed services. + ## 0.2.0 (Sept 17, 2018) #### FEATURES: diff --git a/README.md b/README.md index 3e0abaff9..a91e959a9 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ It is super easy to get started with your first project. You can download the package from the [latest stable release](https://github.com/alibaba/nacos/releases). -Take release nacos-server-0.5.0.zip for example. +Take release nacos-server-0.6.0.zip for example. ``` -unzip nacos-server-0.5.0.zip +unzip nacos-server-0.6.0.zip cd nacos/bin ``` diff --git a/api/pom.xml b/api/pom.xml index fef8a3c4e..eb5a663dc 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -12,55 +12,55 @@ limitations under the License. --> - - com.alibaba.nacos - nacos-all - 0.5.0 - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + com.alibaba.nacos + nacos-all + 0.6.0 + - 4.0.0 + 4.0.0 - nacos-api - jar + nacos-api + jar - nacos-api ${project.version} - http://maven.apache.org - - - - org.apache.maven.plugins - maven-compiler-plugin - - 7 - 7 - - - - + nacos-api ${project.version} + http://maven.apache.org + + + + org.apache.maven.plugins + maven-compiler-plugin + + 7 + 7 + + + + - - UTF-8 - + + UTF-8 + - - - com.alibaba - fastjson - - - org.apache.commons - commons-lang3 - - - junit - junit - test - - - org.springframework - spring-test - test - - + + + com.alibaba + fastjson + + + org.apache.commons + commons-lang3 + + + junit + junit + test + + + org.springframework + spring-test + test + + diff --git a/client/pom.xml b/client/pom.xml index a32b70d60..53b1959cd 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -16,7 +16,7 @@ com.alibaba.nacos nacos-all - 0.5.0 + 0.6.0 ../pom.xml diff --git a/client/src/main/java/com/alibaba/nacos/client/logger/json/parser/ParseException.java b/client/src/main/java/com/alibaba/nacos/client/logger/json/parser/ParseException.java index d094a645c..10430345d 100644 --- a/client/src/main/java/com/alibaba/nacos/client/logger/json/parser/ParseException.java +++ b/client/src/main/java/com/alibaba/nacos/client/logger/json/parser/ParseException.java @@ -66,8 +66,8 @@ public class ParseException extends Exception { } /** - * @return One of the following base on the value of errorType: ERROR_UNEXPECTED_CHAR java.lang.Character - * ERROR_UNEXPECTED_TOKEN com.alibaba.nacos.client.logger.jsonparser.Yytoken ERROR_UNEXPECTED_EXCEPTION + * @return One of the following base on the value of errorType: ERROR_UNEXPECTED_CHAR java.lang.Character + * ERROR_UNEXPECTED_TOKEN com.alibaba.nacos.client.logger.jsonparser.Yytoken ERROR_UNEXPECTED_EXCEPTION * java.lang.Exception * @see com.alibaba.nacos.client.logger.json.parser.Yytoken */ diff --git a/common/pom.xml b/common/pom.xml index 037644879..7cdf938d9 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -18,7 +18,7 @@ com.alibaba.nacos nacos-all - 0.5.0 + 0.6.0 ../pom.xml 4.0.0 diff --git a/config/pom.xml b/config/pom.xml index 52afa2881..0dadee126 100644 --- a/config/pom.xml +++ b/config/pom.xml @@ -12,175 +12,175 @@ limitations under the License. --> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - - com.alibaba.nacos - nacos-all - 0.5.0 - + + com.alibaba.nacos + nacos-all + 0.6.0 + - 4.0.0 + 4.0.0 - nacos-config - jar + nacos-config + jar - nacos-config ${project.version} - http://maven.apache.org + nacos-config ${project.version} + http://maven.apache.org - - UTF-8 - + + UTF-8 + - - - junit - junit - test - - - org.springframework.boot - spring-boot-starter-web - - - ${project.groupId} - nacos-core - - - com.google.guava - guava - - - - - - - org.springframework.boot - spring-boot-starter-jdbc - - - commons-io - commons-io - - - commons-lang - commons-lang - 2.6 - - - mysql - mysql-connector-java - - - commons-dbcp - commons-dbcp - - - org.apache.derby - derby - - - ch.qos.logback - logback-classic - + + + junit + junit + test + + + org.springframework.boot + spring-boot-starter-web + + + ${project.groupId} + nacos-core + + + com.google.guava + guava + + + + + + + org.springframework.boot + spring-boot-starter-jdbc + + + commons-io + commons-io + + + commons-lang + commons-lang + 2.6 + + + mysql + mysql-connector-java + + + commons-dbcp + commons-dbcp + + + org.apache.derby + derby + + + ch.qos.logback + logback-classic + - - - org.aspectj - aspectjrt - - - cglib - cglib-nodep - - - org.apache.httpcomponents - httpasyncclient - - - - - org.springframework.boot - spring-boot-starter-tomcat - - - org.codehaus.jackson - jackson-mapper-lgpl - - - net.jcip - jcip-annotations - true - - - com.github.spotbugs - spotbugs-annotations - - - org.mockito - mockito-core - test - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - true - -Dnacos.standalone=true - - - - org.apache.maven.plugins - maven-assembly-plugin - - - - com.alibaba.nacos.config.server.Config - - - - jar-with-dependencies - - - - - - - - - springboot - - - com.alibaba.nacos - nacos-core - - - - - - org.springframework.boot - spring-boot-maven-plugin - - com.alibaba.nacos.config.server.Config - - - - nacos-config - - - + + + org.aspectj + aspectjrt + + + cglib + cglib-nodep + + + org.apache.httpcomponents + httpasyncclient + + + + + org.springframework.boot + spring-boot-starter-tomcat + + + org.codehaus.jackson + jackson-mapper-lgpl + + + net.jcip + jcip-annotations + true + + + com.github.spotbugs + spotbugs-annotations + + + org.mockito + mockito-core + test + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + true + -Dnacos.standalone=true + + + + org.apache.maven.plugins + maven-assembly-plugin + + + + com.alibaba.nacos.config.server.Config + + + + jar-with-dependencies + + + + + + + + + springboot + + + com.alibaba.nacos + nacos-core + + + + + + org.springframework.boot + spring-boot-maven-plugin + + com.alibaba.nacos.config.server.Config + + + + nacos-config + + + diff --git a/config/src/main/java/com/alibaba/nacos/config/server/utils/RunningConfigUtils.java b/config/src/main/java/com/alibaba/nacos/config/server/utils/RunningConfigUtils.java index f16a1289c..4dcb10d52 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/utils/RunningConfigUtils.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/utils/RunningConfigUtils.java @@ -24,6 +24,7 @@ import javax.servlet.ServletContext; /** * Running config + * * @author nkorange */ @Component @@ -32,18 +33,18 @@ public class RunningConfigUtils implements ApplicationListener + + - ${user.home}/nacos/logs/config-dump.log + ${LOG_HOME}/config-dump.log true - ${user.home}/nacos/logs/config-dump.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-dump.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -13,15 +15,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-pull.log + ${LOG_HOME}/config-pull.log true - ${user.home}/nacos/logs/config-pull.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-pull.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -29,15 +31,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-fatal.log + ${LOG_HOME}/config-fatal.log true - ${user.home}/nacos/logs/config-fatal.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-fatal.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -45,15 +47,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-memory.log + ${LOG_HOME}/config-memory.log true - ${user.home}/nacos/logs/config-memory.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-memory.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -61,15 +63,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-pull-check.log + ${LOG_HOME}/config-pull-check.log true - ${user.home}/nacos/logs/config-pull-check.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-pull-check.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -77,16 +79,16 @@ %msg%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-acl.log + ${LOG_HOME}/config-acl.log true - ${user.home}/nacos/logs/config-acl.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-acl.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -94,16 +96,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-client-request.log + ${LOG_HOME}/config-client-request.log true - ${user.home}/nacos/logs/config-client-request.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-client-request.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -111,16 +113,16 @@ %date|%msg%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-sdk-request.log + ${LOG_HOME}/config-sdk-request.log true - ${user.home}/nacos/logs/config-sdk-request.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-sdk-request.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -128,16 +130,16 @@ %date|%msg%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-trace.log + ${LOG_HOME}/config-trace.log true - ${user.home}/nacos/logs/config-trace.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-trace.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -145,16 +147,16 @@ %date|%msg%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-notify.log + ${LOG_HOME}/config-notify.log true - ${user.home}/nacos/logs/config-notify.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-notify.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -162,16 +164,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-app.log + ${LOG_HOME}/config-app.log true - ${user.home}/nacos/logs/config-app.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-app.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -179,16 +181,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/nacos/logs/config-server.log + ${LOG_HOME}/config-server.log true - ${user.home}/nacos/logs/config-server.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-server.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -196,7 +198,7 @@ %date %level %msg%n%n - GBK + UTF-8 diff --git a/config/src/test/java/com/alibaba/nacos/config/server/controller/HealthControllerUnitTest.java b/config/src/test/java/com/alibaba/nacos/config/server/controller/HealthControllerUnitTest.java index a31fb5310..c8cf6930b 100644 --- a/config/src/test/java/com/alibaba/nacos/config/server/controller/HealthControllerUnitTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/controller/HealthControllerUnitTest.java @@ -41,27 +41,27 @@ import com.alibaba.nacos.config.server.service.DataSourceService; @ContextConfiguration(classes = MockServletContext.class) @WebAppConfiguration public class HealthControllerUnitTest { - - @InjectMocks - HealthController healthController; + @InjectMocks + HealthController healthController; - @Mock - DataSourceService dataSourceService; + @Mock + DataSourceService dataSourceService; + + private MockMvc mockmvc; - private MockMvc mockmvc; @Before public void setUp() throws Exception { - mockmvc = MockMvcBuilders.standaloneSetup(healthController).build(); + mockmvc = MockMvcBuilders.standaloneSetup(healthController).build(); } @Test - public void testGetHealth() throws Exception{ + public void testGetHealth() throws Exception { + + Mockito.when(dataSourceService.getHealth()).thenReturn("UP"); + MockHttpServletRequestBuilder builder = MockMvcRequestBuilders.get(Constants.HEALTH_CONTROLLER_PATH); + String actualValue = mockmvc.perform(builder).andReturn().getResponse().getContentAsString(); + Assert.assertEquals("UP", actualValue); - Mockito.when(dataSourceService.getHealth()).thenReturn("UP"); - MockHttpServletRequestBuilder builder = MockMvcRequestBuilders.get(Constants.HEALTH_CONTROLLER_PATH); - String actualValue = mockmvc.perform(builder).andReturn().getResponse().getContentAsString(); - Assert.assertEquals("UP", actualValue); - } } diff --git a/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java b/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java index fa1420be5..6853998ab 100644 --- a/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java @@ -15,30 +15,28 @@ */ package com.alibaba.nacos.config.server.service; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; -import com.alibaba.nacos.config.server.service.AggrWhitelist; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration public class AggrWhitelistTest { AggrWhitelist service; - + @Before public void before() throws Exception { service = new AggrWhitelist(); } - + @Test public void testIsAggrDataId() { List list = new ArrayList(); @@ -46,12 +44,12 @@ public class AggrWhitelistTest { list.add("NS_NACOS_SUBSCRIPTION_TOPIC_*"); list.add("com.taobao.tae.AppListOnGrid-*"); service.compile(list); - + assertEquals(false, service.isAggrDataId("com.abc")); assertEquals(false, service.isAggrDataId("com.taobao.jiuren")); assertEquals(false, service.isAggrDataId("com.taobao.jiurenABC")); assertEquals(true, service.isAggrDataId("com.taobao.jiuren.abc")); assertEquals(true, service.isAggrDataId("NS_NACOS_SUBSCRIPTION_TOPIC_abc")); assertEquals(true, service.isAggrDataId("com.taobao.tae.AppListOnGrid-abc")); - } + } } diff --git a/config/src/test/java/com/alibaba/nacos/config/server/service/ClientTrackServiceTest.java b/config/src/test/java/com/alibaba/nacos/config/server/service/ClientTrackServiceTest.java index e792df201..c5ec39dac 100644 --- a/config/src/test/java/com/alibaba/nacos/config/server/service/ClientTrackServiceTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/service/ClientTrackServiceTest.java @@ -15,19 +15,14 @@ */ package com.alibaba.nacos.config.server.service; +import com.alibaba.nacos.config.server.utils.GroupKey2; import org.junit.Assert; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; -import com.alibaba.nacos.config.server.service.ClientTrackService; -import com.alibaba.nacos.config.server.service.ConfigService; -import com.alibaba.nacos.config.server.utils.GroupKey2; - - @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration public class ClientTrackServiceTest { @@ -44,7 +39,7 @@ public class ClientTrackServiceTest { String group = "online"; String groupKey = GroupKey2.getKey(dataId, group); String md5 = "xxxxxxxxxxxxx"; - + ConfigService.updateMd5(groupKey, md5, System.currentTimeMillis()); ClientTrackService.trackClientMd5(clientIp, groupKey, md5); @@ -53,7 +48,7 @@ public class ClientTrackServiceTest { Assert.assertEquals(true, ClientTrackService.isClientUptodate(clientIp).get(groupKey)); Assert.assertEquals(1, ClientTrackService.subscribeClientCount()); Assert.assertEquals(1, ClientTrackService.subscriberCount()); - + //服务端数据更新 ConfigService.updateMd5(groupKey, md5 + "111", System.currentTimeMillis()); Assert.assertEquals(false, ClientTrackService.isClientUptodate(clientIp).get(groupKey)); diff --git a/config/src/test/java/com/alibaba/nacos/config/server/service/DiskServiceUnitTest.java b/config/src/test/java/com/alibaba/nacos/config/server/service/DiskServiceUnitTest.java index 93382ec8f..6863ed5e9 100755 --- a/config/src/test/java/com/alibaba/nacos/config/server/service/DiskServiceUnitTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/service/DiskServiceUnitTest.java @@ -17,50 +17,46 @@ package com.alibaba.nacos.config.server.service; import org.junit.After; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; -import com.alibaba.nacos.config.server.service.DiskUtil; - import javax.servlet.ServletContext; - -import static org.junit.Assert.assertEquals; - import java.io.File; import java.io.IOException; +import static org.junit.Assert.assertEquals; + @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration public class DiskServiceUnitTest { - private DiskUtil diskService; + private DiskUtil diskService; - private ServletContext servletContext; + private ServletContext servletContext; - private File tempFile; + private File tempFile; - private String path; + private String path; - @Before - public void setUp() throws IOException { - this.tempFile = File.createTempFile("diskServiceTest", "tmp"); - this.path = tempFile.getParent(); - this.diskService = new DiskUtil(); - } + @Before + public void setUp() throws IOException { + this.tempFile = File.createTempFile("diskServiceTest", "tmp"); + this.path = tempFile.getParent(); + this.diskService = new DiskUtil(); + } - @Test - public void testCreateConfig() throws IOException { - diskService.saveToDisk("testDataId", "testGroup", "testTenant", "testContent"); - String content = diskService.getConfig("testDataId", "testGroup", "testTenant"); - assertEquals(content, "testContent"); + @Test + public void testCreateConfig() throws IOException { + diskService.saveToDisk("testDataId", "testGroup", "testTenant", "testContent"); + String content = diskService.getConfig("testDataId", "testGroup", "testTenant"); + assertEquals(content, "testContent"); - } + } - @After - public void tearDown() throws IOException { - tempFile.delete(); - } + @After + public void tearDown() throws IOException { + tempFile.delete(); + } } diff --git a/config/src/test/java/com/alibaba/nacos/config/server/utils/GroupKeyTest.java b/config/src/test/java/com/alibaba/nacos/config/server/utils/GroupKeyTest.java index 412d1074a..56077cc2e 100644 --- a/config/src/test/java/com/alibaba/nacos/config/server/utils/GroupKeyTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/utils/GroupKeyTest.java @@ -50,7 +50,7 @@ public class GroupKeyTest { } catch (IllegalArgumentException e) { System.out.println(e.toString()); } - + key = "11111%2b+222"; try { GroupKey2.parseKey(key); @@ -58,7 +58,6 @@ public class GroupKeyTest { } catch (IllegalArgumentException e) { System.out.println(e.toString()); } - key = "11111%25+222"; String[] pair = GroupKey2.parseKey(key); diff --git a/config/src/test/java/com/alibaba/nacos/config/server/utils/SimpleReadWriteLockTest.java b/config/src/test/java/com/alibaba/nacos/config/server/utils/SimpleReadWriteLockTest.java index 9c15a2c72..591c2ba1d 100644 --- a/config/src/test/java/com/alibaba/nacos/config/server/utils/SimpleReadWriteLockTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/utils/SimpleReadWriteLockTest.java @@ -24,7 +24,6 @@ import org.springframework.test.context.web.WebAppConfiguration; import com.alibaba.nacos.config.server.utils.SimpleReadWriteLock; - @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration public class SimpleReadWriteLockTest { @@ -34,44 +33,44 @@ public class SimpleReadWriteLockTest { SimpleReadWriteLock lock = new SimpleReadWriteLock(); assertEquals(true, lock.tryReadLock()); assertEquals(true, lock.tryReadLock()); - + lock.releaseReadLock(); lock.releaseReadLock(); - + assertEquals(true, lock.tryWriteLock()); } - + @Test public void test_加写锁() { SimpleReadWriteLock lock = new SimpleReadWriteLock(); assertEquals(true, lock.tryWriteLock()); lock.releaseWriteLock(); } - + @Test public void test_双重写锁() { SimpleReadWriteLock lock = new SimpleReadWriteLock(); - + assertEquals(true, lock.tryWriteLock()); assertEquals(false, lock.tryWriteLock()); } - + @Test public void test_先读锁后写锁() { SimpleReadWriteLock lock = new SimpleReadWriteLock(); - + assertEquals(true, lock.tryReadLock()); assertEquals(false, lock.tryWriteLock()); } - + @Test public void test_双重读锁_释放一个_加写锁失败() { SimpleReadWriteLock lock = new SimpleReadWriteLock(); assertEquals(true, lock.tryReadLock()); assertEquals(true, lock.tryReadLock()); - + lock.releaseReadLock(); - + assertEquals(false, lock.tryWriteLock()); } } diff --git a/config/src/test/java/com/alibaba/nacos/config/server/utils/event/EventDispatcherTest.java b/config/src/test/java/com/alibaba/nacos/config/server/utils/event/EventDispatcherTest.java index c451e33fc..660f002e7 100755 --- a/config/src/test/java/com/alibaba/nacos/config/server/utils/event/EventDispatcherTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/utils/event/EventDispatcherTest.java @@ -32,7 +32,6 @@ import java.util.concurrent.CountDownLatch; import static org.junit.Assert.assertEquals; - @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration public class EventDispatcherTest { @@ -46,10 +45,10 @@ public class EventDispatcherTest { @Test public void testAddListener() throws Exception { final AbstractEventListener listener = new MockListener(); - + int vusers = 1000; final CountDownLatch latch = new CountDownLatch(vusers); - + for (int i = 0; i < vusers; ++i) { new Thread(new Runnable() { public void run() { @@ -58,33 +57,32 @@ public class EventDispatcherTest { } }).start(); } - + latch.await(); assertEquals(1, EventDispatcher.LISTENER_HUB.size()); } - + @Test public void testFireEvent() { EventDispatcher.fireEvent(new MockEvent()); assertEquals(0, MockListener.count); - + EventDispatcher.addEventListener(new MockListener()); - + EventDispatcher.fireEvent(new MockEvent()); assertEquals(1, MockListener.count); - + EventDispatcher.fireEvent(new MockEvent()); assertEquals(2, MockListener.count); } } - -class MockEvent implements Event { +class MockEvent implements Event { } class MockListener extends AbstractEventListener { static int count = 0; - + @Override public List> interest() { List> types = new ArrayList>(); diff --git a/console/pom.xml b/console/pom.xml index ee482ec26..67bf8ce13 100644 --- a/console/pom.xml +++ b/console/pom.xml @@ -12,37 +12,37 @@ limitations under the License. --> - 4.0.0 - - com.alibaba.nacos - nacos-all - 0.5.0 - - nacos-console - - jar - nacos-console ${project.version} - http://maven.apache.org - - UTF-8 - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + com.alibaba.nacos + nacos-all + 0.6.0 + + nacos-console + + jar + nacos-console ${project.version} + http://maven.apache.org + + UTF-8 + + - - ${project.groupId} - nacos-config - - - org.apache.tomcat.embed - tomcat-embed-jasper - 7.0.59 - - - ${project.groupId} - nacos-naming - + + ${project.groupId} + nacos-config + + + org.apache.tomcat.embed + tomcat-embed-jasper + 7.0.59 + + + ${project.groupId} + nacos-naming + @@ -59,42 +59,30 @@ org.slf4j jul-to-slf4j - - - org.mockito - mockito-core - test - - - - nacos-server - - - org.springframework.boot - spring-boot-maven-plugin - - com.alibaba.nacos.Nacos - - - - - repackage - - - - - - - - - - - - - - - - - - + + + org.mockito + mockito-core + test + + + + nacos-server + + + org.springframework.boot + spring-boot-maven-plugin + + com.alibaba.nacos.Nacos + + + + + repackage + + + + + + diff --git a/console/src/main/resources/diamond-server-logback.xml b/console/src/main/resources/diamond-server-logback.xml index 19ef3e7bb..3e356b30c 100755 --- a/console/src/main/resources/diamond-server-logback.xml +++ b/console/src/main/resources/diamond-server-logback.xml @@ -1,205 +1,208 @@ + + + - ${user.home}/diamond/logs/dump.log + ${LOG_HOME}/dump.log true - ${user.home}/diamond/logs/dump.log.%d{yyyy-MM-dd}.%i - 2GB + ${LOG_HOME}/dump.log.%d{yyyy-MM-dd}.%i + 2GB 15 7GB true %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/diamond/logs/pull.log + ${LOG_HOME}/pull.log true - ${user.home}/diamond/logs/pull.log.%d{yyyy-MM-dd}.%i - 20MB + ${LOG_HOME}/pull.log.%d{yyyy-MM-dd}.%i + 20MB 15 128MB true %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/diamond/logs/fatal.log + ${LOG_HOME}/fatal.log true - ${user.home}/diamond/logs/fatal.log.%d{yyyy-MM-dd}.%i - 20MB + ${LOG_HOME}/fatal.log.%d{yyyy-MM-dd}.%i + 20MB 15 128MB true %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/diamond/logs/memory.log + ${LOG_HOME}/memory.log true - ${user.home}/diamond/logs/memory.log.%d{yyyy-MM-dd}.%i - 20MB + ${LOG_HOME}/memory.log.%d{yyyy-MM-dd}.%i + 20MB 15 128MB true %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/diamond/logs/pull-check.log + ${LOG_HOME}/pull-check.log true - ${user.home}/diamond/logs/pull-check.log.%d{yyyy-MM-dd}.%i - 1GB + ${LOG_HOME}/pull-check.log.%d{yyyy-MM-dd}.%i + 1GB 15 3GB true %msg%n - GBK + UTF-8 - ${user.home}/diamond/logs/acl.log + ${LOG_HOME}/acl.log true - ${user.home}/diamond/logs/acl.log.%d{yyyy-MM-dd}.%i - 50MB + ${LOG_HOME}/acl.log.%d{yyyy-MM-dd}.%i + 50MB 15 512MB true %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/diamond/logs/client-request.log + ${LOG_HOME}/client-request.log true - ${user.home}/diamond/logs/client-request.log.%d{yyyy-MM-dd}.%i - 2GB + ${LOG_HOME}/client-request.log.%d{yyyy-MM-dd}.%i + 2GB 15 7GB true %date|%msg%n - GBK + UTF-8 - ${user.home}/diamond/logs/sdk-request.log + ${LOG_HOME}/sdk-request.log true - ${user.home}/diamond/logs/sdk-request.log.%d{yyyy-MM-dd}.%i - 1GB + ${LOG_HOME}/sdk-request.log.%d{yyyy-MM-dd}.%i + 1GB 15 3GB true %date|%msg%n - GBK + UTF-8 - ${user.home}/diamond/logs/trace.log + ${LOG_HOME}/trace.log true - ${user.home}/diamond/logs/trace.log.%d{yyyy-MM-dd}.%i - 2GB + ${LOG_HOME}/trace.log.%d{yyyy-MM-dd}.%i + 2GB 15 7GB true %date|%msg%n - GBK + UTF-8 - ${user.home}/diamond/logs/notify.log + ${LOG_HOME}/notify.log true - ${user.home}/diamond/logs/notify.log.%d{yyyy-MM-dd}.%i - 1GB + ${LOG_HOME}/notify.log.%d{yyyy-MM-dd}.%i + 1GB 15 3GB true %date %level %msg%n%n - GBK + UTF-8 - ${user.home}/diamond/logs/app.log + ${LOG_HOME}/app.log true - ${user.home}/diamond/logs/app.log.%d{yyyy-MM-dd}.%i - 20MB + ${LOG_HOME}/app.log.%d{yyyy-MM-dd}.%i + 20MB 15 128MB true %date %level %msg%n%n - GBK + UTF-8 - + - ${user.home}/diamond/logs/diamondServer.log + ${LOG_HOME}/diamondServer.log true - ${user.home}/diamond/logs/diamondServer.log.%d{yyyy-MM-dd}.%i - 50MB + ${LOG_HOME}/diamondServer.log.%d{yyyy-MM-dd}.%i + 50MB 15 512MB true %date %level %msg%n%n - GBK + UTF-8 @@ -253,7 +256,7 @@ - + diff --git a/console/src/main/resources/static/console-fe/src/i18ndoc.js b/console/src/main/resources/static/console-fe/src/i18ndoc.js index 8c20956c4..44516d164 100644 --- a/console/src/main/resources/static/console-fe/src/i18ndoc.js +++ b/console/src/main/resources/static/console-fe/src/i18ndoc.js @@ -545,7 +545,7 @@ module.exports = { 'com.alibaba.nacos.page.serviceDetail.edit_service': '编辑服务', 'com.alibaba.nacos.page.serviceDetail.back': '返回', 'com.alibaba.nacos.page.serviceDetail.service_name': '服务名', - 'com.alibaba.nacos.page.serviceDetail.protect_threshold': '保护阀值', + 'com.alibaba.nacos.page.serviceDetail.protect_threshold': '保护阈值', 'com.alibaba.nacos.page.serviceDetail.health_check_pattern': '健康检查模式', 'com.alibaba.nacos.page.serviceDetail.health_check_pattern.service': '服务端', 'com.alibaba.nacos.page.serviceDetail.health_check_pattern.client': '客户端', diff --git a/console/src/main/resources/static/console-fe/src/lib.js b/console/src/main/resources/static/console-fe/src/lib.js index 75e2bce3f..c20d9ca88 100644 --- a/console/src/main/resources/static/console-fe/src/lib.js +++ b/console/src/main/resources/static/console-fe/src/lib.js @@ -95,7 +95,7 @@ request.middleWare((_config = {}) => { * 配置 monaco */ window.require.config({ - paths: { vs: 'js/vs' }, + paths: { vs: process.env.NODE_ENV === 'production' ? 'console-fe/public/js/vs' : 'js/vs' }, }); window.require.config({ 'vs/nls': { diff --git a/console/src/main/resources/static/console-fe/src/locales/zh-CN.js b/console/src/main/resources/static/console-fe/src/locales/zh-CN.js index bca7b585a..221ca8523 100644 --- a/console/src/main/resources/static/console-fe/src/locales/zh-CN.js +++ b/console/src/main/resources/static/console-fe/src/locales/zh-CN.js @@ -95,7 +95,7 @@ const I18N_CONF = { cluster: '集群', metadata: '元数据', healthCheckPattern: '健康检查模式', - protectThreshold: '保护阀值', + protectThreshold: '保护阈值', serviceName: '服务名', editService: '编辑服务', }, @@ -104,7 +104,7 @@ const I18N_CONF = { updateService: '更新服务', serviceName: '服务名', metadata: '元数据', - protectThreshold: '保护阀值', + protectThreshold: '保护阈值', healthCheckPattern: '健康检查模式', healthCheckPatternService: '服务端', healthCheckPatternClient: '客户端', diff --git a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js index 571491320..818b2e72c 100644 --- a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js +++ b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js @@ -62,7 +62,9 @@ class ServiceList extends React.Component { } openEditServiceDialog() { - this.editServiceDialog.current.show(this.state.service); + try { + this.editServiceDialog.current.getInstance().show(this.state.service); + } catch (error) {} } queryServiceList() { diff --git a/console/src/main/resources/static/js/main.js b/console/src/main/resources/static/js/main.js index 348defb9e..9f15a7bd9 100644 --- a/console/src/main/resources/static/js/main.js +++ b/console/src/main/resources/static/js/main.js @@ -47,12 +47,12 @@ * * Date: 2016-08-08 */ -function(n){var e,p,b,r,o,h,d,m,M,l,u,w,k,i,S,g,s,c,y,T="sizzle"+1*new Date,_=n.document,C=0,a=0,f=ie(),v=ie(),x=ie(),L=function(e,t){return e===t&&(u=!0),0},E={}.hasOwnProperty,t=[],D=t.pop,O=t.push,N=t.push,Y=t.slice,j=function(e,t){for(var n=0,a=e.length;n+~]|"+I+")"+I+"*"),K=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),U=new RegExp(H),B=new RegExp("^"+A+"$"),q={ID:new RegExp("^#("+A+")"),CLASS:new RegExp("^\\.("+A+")"),TAG:new RegExp("^("+A+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ee=function(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){w()},oe=_e(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{N.apply(t=Y.call(_.childNodes),_.childNodes),t[_.childNodes.length].nodeType}catch(e){N={apply:t.length?function(e,t){O.apply(e,Y.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function re(e,t,n,a){var o,r,i,s,l,u,c,d=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!a&&((t?t.ownerDocument||t:_)!==k&&w(t),t=t||k,S)){if(11!==f&&(l=Q.exec(e)))if(o=l[1]){if(9===f){if(!(i=t.getElementById(o)))return n;if(i.id===o)return n.push(i),n}else if(d&&(i=d.getElementById(o))&&y(t,i)&&i.id===o)return n.push(i),n}else{if(l[2])return N.apply(n,t.getElementsByTagName(e)),n;if((o=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return N.apply(n,t.getElementsByClassName(o)),n}if(p.qsa&&!x[e+" "]&&(!g||!g.test(e))){if(1!==f)d=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,ne):t.setAttribute("id",s=T),r=(u=h(e)).length;r--;)u[r]="#"+s+" "+ye(u[r]);c=u.join(","),d=X.test(e)&&me(t.parentNode)||t}if(c)try{return N.apply(n,d.querySelectorAll(c)),n}catch(e){}finally{s===T&&t.removeAttribute("id")}}}return m(e.replace(F,"$1"),t,n,a)}function ie(){var a=[];return function e(t,n){return a.push(t+" ")>b.cacheLength&&delete e[a.shift()],e[t+" "]=n}}function se(e){return e[T]=!0,e}function le(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),a=n.length;a--;)b.attrHandle[n[a]]=t}function ce(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&oe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(i){return se(function(r){return r=+r,se(function(e,t){for(var n,a=i([],e.length,r),o=a.length;o--;)e[n=a[o]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},w=re.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:_;return a!==k&&9===a.nodeType&&a.documentElement&&(i=(k=a).documentElement,S=!o(k),_!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ae,!1):n.attachEvent&&n.attachEvent("onunload",ae)),p.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=le(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=$.test(k.getElementsByClassName),p.getById=le(function(e){return i.appendChild(e).id=T,!k.getElementsByName||!k.getElementsByName(T).length}),p.getById?(b.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(Z,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n,a,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),a=0;r=o[a++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),b.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,a=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[o++];)1===n.nodeType&&a.push(n);return a},b.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],g=[],(p.qsa=$.test(k.querySelectorAll))&&(le(function(e){i.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=$.test(c=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&le(function(e){p.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",H)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=$.test(i.compareDocumentPosition),y=t||$.test(i.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===_&&y(_,e)?-1:t===k||t.ownerDocument===_&&y(_,t)?1:l?j(l,e)-j(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,o=e.parentNode,r=t.parentNode,i=[e],s=[t];if(!o||!r)return e===k?-1:t===k?1:o?-1:r?1:l?j(l,e)-j(l,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[a]===s[a];)a++;return a?ce(i[a],s[a]):i[a]===_?-1:s[a]===_?1:0}),k},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&w(e),t=t.replace(K,"='$1']"),p.matchesSelector&&S&&!x[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var n=c.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=f[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&f(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,a,o){return function(e){var t=re.attr(e,n);return null==t?"!="===a:!a||(t+="","="===a?t===o:"!="===a?t!==o:"^="===a?o&&0===t.indexOf(o):"*="===a?o&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,n,a){return _(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==a}):n.nodeType?T.grep(e,function(e){return e===n!==a}):"string"!=typeof n?T.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var a,o;if(!e)return this;if(n=n||D,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(a="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),L.test(a[1])&&T.isPlainObject(t))for(a in t)_(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(o=S.getElementById(a[2]))&&(this[0]=o,this.length=1),this}).prototype=T.fn,D=T(S);var N=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,de={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function fe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?T.merge([e],n):n}function pe(e,t){for(var n=0,a=e.length;nx",y.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var _e=S.documentElement,ve=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Se(){try{return S.activeElement}catch(e){}}function Te(e,t,n,a,o,r){var i,s;if("object"==typeof t){for(s in"string"!=typeof n&&(a=a||n,n=void 0),t)Te(e,s,n,a,t[s],r);return e}if(null==a&&null==o?(o=n,a=n=void 0):null==o&&("string"==typeof n?(o=a,a=void 0):(o=a,a=n,n=void 0)),!1===o)o=ke;else if(!o)return e;return 1===r&&(i=o,(o=function(e){return T().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=T.guid++)),e.each(function(){T.event.add(this,t,o,a,n)})}T.event={global:{},add:function(t,e,n,a,o){var r,i,s,l,u,c,d,f,p,h,m,g=J.get(t);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&T.find.matchesSelector(_e,o),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events={}),(i=g.handle)||(i=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(P)||[""]).length;u--;)p=m=(s=Me.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:a,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},r),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,a,h,i)||t.addEventListener&&t.addEventListener(p,i)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),T.event.global[p]=!0)},remove:function(e,t,n,a,o){var r,i,s,l,u,c,d,f,p,h,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(P)||[""]).length;u--;)if(p=m=(s=Me.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(a?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=r=f.length;r--;)c=f[r],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||a&&a!==c.selector&&("**"!==a||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));i&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],n,a,!0);T.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,a,o,r,i,s=T.event.fix(e),l=new Array(arguments.length),u=(J.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(l[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,xe=/\s*$/g;function De(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ye(e,t){var n,a,o,r,i,s,l,u;if(1===t.nodeType){if(J.hasData(e)&&(r=J.access(e),i=J.set(t,r),u=r.events))for(o in delete i.handle,i.events={},u)for(n=0,a=u[o].length;n")},clone:function(e,t,n){var a,o,r,i,s,l,u,c=e.cloneNode(!0),d=T.contains(e.ownerDocument,e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(i=fe(c),a=0,o=(r=fe(e)).length;a").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){a.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(a[0])},abort:function(){o&&o()}}});var Wt,Vt=[],Kt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||T.expando+"_"+bt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var a,o,r,i=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(i||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i?e[i]=e[i].replace(Kt,"$1"+a):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return r||T.error(a+" was not called"),r[0]},e.dataTypes[0]="json",o=k[a],k[a]=function(){r=arguments},n.always(function(){void 0===o?T(k).removeProp(a):k[a]=o,e[a]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(a)),r&&_(o)&&o(r[0]),r=o=void 0}),"script"}),y.createHTMLDocument=((Wt=S.implementation.createHTMLDocument("").body).innerHTML="
",2===Wt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((a=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(a)):t=S),r=!n&&[],(o=L.exec(e))?[t.createElement(o[1])]:(o=ye([e],t,r),r&&r.length&&T(r).remove(),T.merge([],o.childNodes)));var a,o,r},T.fn.load=function(e,t,n){var a,o,r,i=this,s=e.indexOf(" ");return-1").append(T.parseHTML(e)).find(a):e)}).always(n&&function(e,t){i.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var a,o,r,i,s,l,u=T.css(e,"position"),c=T(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),r=T.css(e,"top"),l=T.css(e,"left"),o=("absolute"===u||"fixed"===u)&&-1<(r+l).indexOf("auto")?(i=(a=c.position()).top,a.left):(i=parseFloat(r)||0,parseFloat(l)||0),_(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+i),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):c.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,a=this[0];return a?a.getClientRects().length?(e=a.getBoundingClientRect(),n=a.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,a=this[0],o={top:0,left:0};if("fixed"===T.css(a,"position"))t=a.getBoundingClientRect();else{for(t=this.offset(),n=a.ownerDocument,e=a.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==a&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(a,"marginTop",!0),left:t.left-o.left-T.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||_e})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;T.fn[t]=function(e){return W(this,function(e,t,n){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===n)return a?a[o]:e[t];a?a.scrollTo(r?a.pageXOffset:n,r?n:a.pageYOffset):e[t]=n},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=He(e,n),Ie.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(i,s){T.each({padding:"inner"+i,content:s,"":"outer"+i},function(a,r){T.fn[r]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),o=a||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var a;return v(e)?0===r.indexOf("outer")?e["inner"+i]:e.document.documentElement["client"+i]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+i],a["scroll"+i],e.body["offset"+i],a["offset"+i],a["client"+i])):void 0===n?T.css(e,t,o):T.style(e,t,n,o)},s,n?e:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0, or explicitly pass "'+h+'" as a prop to "'+o+'".'),n.initSelector(),n.initSubscription(),n}w(e,a);var t=e.prototype;return t.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[_]=t||this.context[_],e},t.componentDidMount=function(){f&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},t.componentWillReceiveProps=function(e){this.selector.run(e)},t.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},t.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=P,this.store=null,this.selector.run=P,this.selector.shouldComponentUpdate=!1},t.getWrappedInstance=function(){return D()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},t.setWrappedInstance=function(e){this.wrappedInstance=e},t.initSelector=function(){var n,a,o,e=i(this.store.dispatch,r);this.selector=(n=e,a=this.store,o={run:function(e){try{var t=n(a.getState(),e);(t!==o.props||o.error)&&(o.shouldComponentUpdate=!0,o.props=t,o.error=null)}catch(e){o.shouldComponentUpdate=!0,o.error=e}}}),this.selector.run(this.props)},t.initSubscription=function(){if(f){var e=(this.propsMode?this.props:this.context)[_];this.subscription=new N(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},t.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(j)):this.notifyNestedSubs()},t.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},t.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},t.addExtraProps=function(e){if(!(g||c||this.propsMode&&this.subscription))return e;var t=x({},e);return g&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[_]=this.subscription),t},t.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(k.createElement)(n,this.addExtraProps(e.props))},e}(k.Component);return t.WrappedComponent=n,t.displayName=o,t.childContextTypes=M,t.contextTypes=b,t.propTypes=b,E()(t,n)}}var c=Object.prototype.hasOwnProperty;function d(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function v(e,t){if(d(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;othis.menuNode.clientHeight)){var e=this.menuNode.clientHeight+this.menuNode.scrollTop,t=this.itemNode.offsetTop+this.itemNode.offsetHeight;e or withRouter() outside a ");var l=t.route,u=(a||l.location).pathname;return Object(f.a)(u,{path:o,strict:r,exact:i,sensitive:s},l.match)},i.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},i.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},i.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,a=t.component,o=t.render,r=this.context.router,i=r.history,s=r.route,l=r.staticContext,u={match:e,location:this.props.location||s.location,history:i,staticContext:l};return a?e?d.a.createElement(a,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!h(n)?d.a.Children.only(n):null},i}(d.a.Component);m.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},m.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},m.childContextTypes={router:l.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var a=n(96),y=n.n(a),_={},v=0;t.a=function(e){var t=1document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[u]=o(e),n=new l,l[u]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(58).f,o=n(52),r=n(62)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&a(e,r,{configurable:!0,value:t})}},function(e,t,n){t.f=n(62)},function(e,t,n){var a=n(47),o=n(51),r=n(84),i=n(111),s=n(58).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:a.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(t,e){if(!t)return null;if("string"==typeof t)return document.getElementById(t);"function"==typeof t&&(t=t(e));if(!t)return null;try{return(0,a.findDOMNode)(t)}catch(e){return t}};var a=n(18);e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,h=f(n(5)),r=f(n(3)),i=f(n(6)),s=f(n(7)),l=n(0),m=f(l),u=f(n(2)),g=f(n(10)),c=f(n(17)),d=n(9),y=f(n(79));function f(e){return e&&e.__esModule?e:{default:e}}var _=d.func.bindCtx,v=d.obj.pickOthers,p=(o=a=function(n){function p(e){(0,r.default)(this,p);var t=(0,i.default)(this,n.call(this,e));return _(t,["handleKeyDown","handleClick"]),t}return(0,s.default)(p,n),p.prototype.getSelected=function(){var e=this.props,t=e._key,n=e.root,a=e.selected,o=n.props.selectMode,r=n.state.selectedKeys;return a||!!o&&-1=d,k=(0,O.default)(((t={})[o+"upload-inner"]=!0,t[o+"hidden"]=w,t)),S=this.props.children;if("card"===i){var T,C=(0,O.default)(((T={})[o+"upload-card"]=!0,T[o+"disabled"]=c,T));S=D.default.createElement("div",{className:C},D.default.createElement(Y.default,{type:"add",size:"large"}),D.default.createElement("div",{tabIndex:"0",role:"button",className:o+"upload-text"},S))}var x=N.obj.pickAttrsWith(this.props,"data-");return D.default.createElement("div",(0,L.default)({className:M,style:l},x),D.default.createElement(j.default,(0,L.default)({},b,{beforeUpload:p,dragable:r,disabled:c,className:k,onSelect:this.onSelect,onDrop:this.onDrop,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError,ref:this.saveUploaderRef}),S),a||_?D.default.createElement(P.default,{useDataURL:u,uploader:this,listType:a,value:this.state.value,closable:f,onRemove:m,onCancel:g,onPreview:y,extraRender:v}):null)},o}(c.default),a.displayName="Upload",a.propTypes=(0,L.default)({},d.default.propTypes,P.default.propTypes,{prefix:u.default.string.isRequired,action:u.default.string,value:u.default.array,defaultValue:u.default.array,shape:u.default.oneOf(["card"]),listType:u.default.oneOf(["text","image","card"]),list:u.default.any,data:u.default.oneOfType([u.default.object,u.default.func]),formatter:u.default.func,limit:u.default.number,timeout:u.default.number,dragable:u.default.bool,closable:u.default.bool,useDataURL:u.default.bool,disabled:u.default.bool,onSelect:u.default.func,onProgress:u.default.func,onChange:u.default.func,onSuccess:u.default.func,onRemove:u.default.func,onError:u.default.func,beforeUpload:u.default.func,onDrop:u.default.func,className:u.default.string,style:u.default.object,children:u.default.node,autoUpload:u.default.bool,afterSelect:u.default.func}),a.defaultProps=(0,L.default)({},d.default.defaultProps,{prefix:"next-",limit:1/0,autoUpload:!0,closable:!0,onSelect:h,onProgress:h,onChange:h,onSuccess:h,onRemove:h,onError:h,onDrop:h,beforeUpload:h,afterSelect:h}),r=function(){var c=this;this.onSelect=function(e){var t=c.props,n=t.autoUpload,a=t.afterSelect,o=t.onSelect,r=t.limit,i=e.map(function(e){var t=(0,f.fileToObject)(e);return t.state="selected",t}),s=c.state.value.length+i.length;if(ro;)i(a,n=t[o++])&&(~l(r,n)||r.push(n));return r}},function(e,t,n){var a=n(136);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(102);e.exports=function(e){return Object(a(e))}},function(e,t,n){"use strict";var v=n(84),b=n(74),M=n(139),w=n(57),k=n(108),S=n(357),T=n(110),C=n(360),x=n(62)("iterator"),L=!([].keys&&"next"in[].keys()),E="values",D=function(){return this};e.exports=function(e,t,n,a,o,r,i){S(n,t,a);var s,l,u,c=function(e){if(!L&&e in h)return h[e];switch(e){case"keys":case E:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",f=o==E,p=!1,h=e.prototype,m=h[x]||h["@@iterator"]||o&&h[o],g=m||c(o),y=o?f?c("entries"):g:void 0,_="Array"==t&&h.entries||m;if(_&&(u=C(_.call(new e)))!==Object.prototype&&u.next&&(T(u,d,!0),v||"function"==typeof u[x]||w(u,x,D)),f&&m&&m.name!==E&&(p=!0,g=function(){return m.call(this)}),v&&!i||!L&&!p&&h[x]||w(h,x,g),k[t]=g,k[d]=D,o)if(s={values:f?g:c(E),keys:r?g:c("keys"),entries:y},i)for(l in s)l in h||M(h,l,s[l]);else b(b.P+b.F*(L||p),t,s);return s}},function(e,t,n){e.exports=n(57)},function(e,t,n){var a=n(134),o=n(106).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,o)}},function(e,t,n){var a=n(86),o=n(82),r=n(61),i=n(101),s=n(52),l=n(132),u=Object.getOwnPropertyDescriptor;t.f=n(60)?u:function(e,t){if(e=r(e),t=i(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!a.f.call(e,t),e[t])}},function(e,t,n){"use strict"; +function(n){var e,p,b,r,o,h,d,m,M,l,u,w,k,i,S,g,s,c,y,T="sizzle"+1*new Date,_=n.document,C=0,a=0,f=ie(),v=ie(),x=ie(),L=function(e,t){return e===t&&(u=!0),0},E={}.hasOwnProperty,t=[],D=t.pop,O=t.push,N=t.push,Y=t.slice,j=function(e,t){for(var n=0,a=e.length;n+~]|"+I+")"+I+"*"),K=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),U=new RegExp(H),B=new RegExp("^"+A+"$"),q={ID:new RegExp("^#("+A+")"),CLASS:new RegExp("^\\.("+A+")"),TAG:new RegExp("^("+A+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ee=function(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){w()},oe=_e(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{N.apply(t=Y.call(_.childNodes),_.childNodes),t[_.childNodes.length].nodeType}catch(e){N={apply:t.length?function(e,t){O.apply(e,Y.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function re(e,t,n,a){var o,r,i,s,l,u,c,d=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!a&&((t?t.ownerDocument||t:_)!==k&&w(t),t=t||k,S)){if(11!==f&&(l=Q.exec(e)))if(o=l[1]){if(9===f){if(!(i=t.getElementById(o)))return n;if(i.id===o)return n.push(i),n}else if(d&&(i=d.getElementById(o))&&y(t,i)&&i.id===o)return n.push(i),n}else{if(l[2])return N.apply(n,t.getElementsByTagName(e)),n;if((o=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return N.apply(n,t.getElementsByClassName(o)),n}if(p.qsa&&!x[e+" "]&&(!g||!g.test(e))){if(1!==f)d=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,ne):t.setAttribute("id",s=T),r=(u=h(e)).length;r--;)u[r]="#"+s+" "+ye(u[r]);c=u.join(","),d=X.test(e)&&me(t.parentNode)||t}if(c)try{return N.apply(n,d.querySelectorAll(c)),n}catch(e){}finally{s===T&&t.removeAttribute("id")}}}return m(e.replace(F,"$1"),t,n,a)}function ie(){var a=[];return function e(t,n){return a.push(t+" ")>b.cacheLength&&delete e[a.shift()],e[t+" "]=n}}function se(e){return e[T]=!0,e}function le(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),a=n.length;a--;)b.attrHandle[n[a]]=t}function ce(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&oe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(i){return se(function(r){return r=+r,se(function(e,t){for(var n,a=i([],e.length,r),o=a.length;o--;)e[n=a[o]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},w=re.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:_;return a!==k&&9===a.nodeType&&a.documentElement&&(i=(k=a).documentElement,S=!o(k),_!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ae,!1):n.attachEvent&&n.attachEvent("onunload",ae)),p.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=le(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=$.test(k.getElementsByClassName),p.getById=le(function(e){return i.appendChild(e).id=T,!k.getElementsByName||!k.getElementsByName(T).length}),p.getById?(b.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(Z,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n,a,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),a=0;r=o[a++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),b.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,a=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[o++];)1===n.nodeType&&a.push(n);return a},b.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],g=[],(p.qsa=$.test(k.querySelectorAll))&&(le(function(e){i.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=$.test(c=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&le(function(e){p.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",H)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=$.test(i.compareDocumentPosition),y=t||$.test(i.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===_&&y(_,e)?-1:t===k||t.ownerDocument===_&&y(_,t)?1:l?j(l,e)-j(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,o=e.parentNode,r=t.parentNode,i=[e],s=[t];if(!o||!r)return e===k?-1:t===k?1:o?-1:r?1:l?j(l,e)-j(l,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[a]===s[a];)a++;return a?ce(i[a],s[a]):i[a]===_?-1:s[a]===_?1:0}),k},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&w(e),t=t.replace(K,"='$1']"),p.matchesSelector&&S&&!x[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var n=c.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=f[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&f(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,a,o){return function(e){var t=re.attr(e,n);return null==t?"!="===a:!a||(t+="","="===a?t===o:"!="===a?t!==o:"^="===a?o&&0===t.indexOf(o):"*="===a?o&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,n,a){return _(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==a}):n.nodeType?T.grep(e,function(e){return e===n!==a}):"string"!=typeof n?T.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var a,o;if(!e)return this;if(n=n||D,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(a="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),L.test(a[1])&&T.isPlainObject(t))for(a in t)_(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(o=S.getElementById(a[2]))&&(this[0]=o,this.length=1),this}).prototype=T.fn,D=T(S);var N=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,de={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function fe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?T.merge([e],n):n}function pe(e,t){for(var n=0,a=e.length;nx",y.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var _e=S.documentElement,ve=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Se(){try{return S.activeElement}catch(e){}}function Te(e,t,n,a,o,r){var i,s;if("object"==typeof t){for(s in"string"!=typeof n&&(a=a||n,n=void 0),t)Te(e,s,n,a,t[s],r);return e}if(null==a&&null==o?(o=n,a=n=void 0):null==o&&("string"==typeof n?(o=a,a=void 0):(o=a,a=n,n=void 0)),!1===o)o=ke;else if(!o)return e;return 1===r&&(i=o,(o=function(e){return T().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=T.guid++)),e.each(function(){T.event.add(this,t,o,a,n)})}T.event={global:{},add:function(t,e,n,a,o){var r,i,s,l,u,c,d,f,p,h,m,g=J.get(t);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&T.find.matchesSelector(_e,o),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events={}),(i=g.handle)||(i=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(P)||[""]).length;u--;)p=m=(s=Me.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:a,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},r),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,a,h,i)||t.addEventListener&&t.addEventListener(p,i)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),T.event.global[p]=!0)},remove:function(e,t,n,a,o){var r,i,s,l,u,c,d,f,p,h,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(P)||[""]).length;u--;)if(p=m=(s=Me.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(a?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=r=f.length;r--;)c=f[r],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||a&&a!==c.selector&&("**"!==a||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));i&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],n,a,!0);T.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,a,o,r,i,s=T.event.fix(e),l=new Array(arguments.length),u=(J.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(l[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,xe=/\s*$/g;function De(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ye(e,t){var n,a,o,r,i,s,l,u;if(1===t.nodeType){if(J.hasData(e)&&(r=J.access(e),i=J.set(t,r),u=r.events))for(o in delete i.handle,i.events={},u)for(n=0,a=u[o].length;n")},clone:function(e,t,n){var a,o,r,i,s,l,u,c=e.cloneNode(!0),d=T.contains(e.ownerDocument,e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(i=fe(c),a=0,o=(r=fe(e)).length;a").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){a.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(a[0])},abort:function(){o&&o()}}});var Wt,Vt=[],Kt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||T.expando+"_"+bt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var a,o,r,i=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(i||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i?e[i]=e[i].replace(Kt,"$1"+a):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return r||T.error(a+" was not called"),r[0]},e.dataTypes[0]="json",o=k[a],k[a]=function(){r=arguments},n.always(function(){void 0===o?T(k).removeProp(a):k[a]=o,e[a]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(a)),r&&_(o)&&o(r[0]),r=o=void 0}),"script"}),y.createHTMLDocument=((Wt=S.implementation.createHTMLDocument("").body).innerHTML="
",2===Wt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((a=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(a)):t=S),r=!n&&[],(o=L.exec(e))?[t.createElement(o[1])]:(o=ye([e],t,r),r&&r.length&&T(r).remove(),T.merge([],o.childNodes)));var a,o,r},T.fn.load=function(e,t,n){var a,o,r,i=this,s=e.indexOf(" ");return-1").append(T.parseHTML(e)).find(a):e)}).always(n&&function(e,t){i.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var a,o,r,i,s,l,u=T.css(e,"position"),c=T(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),r=T.css(e,"top"),l=T.css(e,"left"),o=("absolute"===u||"fixed"===u)&&-1<(r+l).indexOf("auto")?(i=(a=c.position()).top,a.left):(i=parseFloat(r)||0,parseFloat(l)||0),_(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+i),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):c.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,a=this[0];return a?a.getClientRects().length?(e=a.getBoundingClientRect(),n=a.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,a=this[0],o={top:0,left:0};if("fixed"===T.css(a,"position"))t=a.getBoundingClientRect();else{for(t=this.offset(),n=a.ownerDocument,e=a.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==a&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(a,"marginTop",!0),left:t.left-o.left-T.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||_e})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;T.fn[t]=function(e){return W(this,function(e,t,n){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===n)return a?a[o]:e[t];a?a.scrollTo(r?a.pageXOffset:n,r?n:a.pageYOffset):e[t]=n},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=He(e,n),Ie.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(i,s){T.each({padding:"inner"+i,content:s,"":"outer"+i},function(a,r){T.fn[r]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),o=a||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var a;return v(e)?0===r.indexOf("outer")?e["inner"+i]:e.document.documentElement["client"+i]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+i],a["scroll"+i],e.body["offset"+i],a["offset"+i],a["client"+i])):void 0===n?T.css(e,t,o):T.style(e,t,n,o)},s,n?e:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0, or explicitly pass "'+h+'" as a prop to "'+o+'".'),n.initSelector(),n.initSubscription(),n}w(e,a);var t=e.prototype;return t.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[_]=t||this.context[_],e},t.componentDidMount=function(){f&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},t.componentWillReceiveProps=function(e){this.selector.run(e)},t.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},t.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=P,this.store=null,this.selector.run=P,this.selector.shouldComponentUpdate=!1},t.getWrappedInstance=function(){return D()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},t.setWrappedInstance=function(e){this.wrappedInstance=e},t.initSelector=function(){var n,a,o,e=i(this.store.dispatch,r);this.selector=(n=e,a=this.store,o={run:function(e){try{var t=n(a.getState(),e);(t!==o.props||o.error)&&(o.shouldComponentUpdate=!0,o.props=t,o.error=null)}catch(e){o.shouldComponentUpdate=!0,o.error=e}}}),this.selector.run(this.props)},t.initSubscription=function(){if(f){var e=(this.propsMode?this.props:this.context)[_];this.subscription=new N(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},t.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(j)):this.notifyNestedSubs()},t.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},t.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},t.addExtraProps=function(e){if(!(g||c||this.propsMode&&this.subscription))return e;var t=x({},e);return g&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[_]=this.subscription),t},t.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(k.createElement)(n,this.addExtraProps(e.props))},e}(k.Component);return t.WrappedComponent=n,t.displayName=o,t.childContextTypes=M,t.contextTypes=b,t.propTypes=b,E()(t,n)}}var c=Object.prototype.hasOwnProperty;function d(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function v(e,t){if(d(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;othis.menuNode.clientHeight)){var e=this.menuNode.clientHeight+this.menuNode.scrollTop,t=this.itemNode.offsetTop+this.itemNode.offsetHeight;e or withRouter() outside a ");var l=t.route,u=(a||l.location).pathname;return Object(f.a)(u,{path:o,strict:r,exact:i,sensitive:s},l.match)},i.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},i.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},i.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,a=t.component,o=t.render,r=this.context.router,i=r.history,s=r.route,l=r.staticContext,u={match:e,location:this.props.location||s.location,history:i,staticContext:l};return a?e?d.a.createElement(a,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!h(n)?d.a.Children.only(n):null},i}(d.a.Component);m.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},m.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},m.childContextTypes={router:l.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var a=n(96),y=n.n(a),_={},v=0;t.a=function(e){var t=1document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[u]=o(e),n=new l,l[u]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(58).f,o=n(52),r=n(62)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&a(e,r,{configurable:!0,value:t})}},function(e,t,n){t.f=n(62)},function(e,t,n){var a=n(47),o=n(51),r=n(84),i=n(111),s=n(58).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:a.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(t,e){if(!t)return null;if("string"==typeof t)return document.getElementById(t);"function"==typeof t&&(t=t(e));if(!t)return null;try{return(0,a.findDOMNode)(t)}catch(e){return t}};var a=n(18);e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,h=f(n(5)),r=f(n(3)),i=f(n(6)),s=f(n(7)),l=n(0),m=f(l),u=f(n(2)),g=f(n(10)),c=f(n(17)),d=n(9),y=f(n(79));function f(e){return e&&e.__esModule?e:{default:e}}var _=d.func.bindCtx,v=d.obj.pickOthers,p=(o=a=function(n){function p(e){(0,r.default)(this,p);var t=(0,i.default)(this,n.call(this,e));return _(t,["handleKeyDown","handleClick"]),t}return(0,s.default)(p,n),p.prototype.getSelected=function(){var e=this.props,t=e._key,n=e.root,a=e.selected,o=n.props.selectMode,r=n.state.selectedKeys;return a||!!o&&-1=d,k=(0,O.default)(((t={})[o+"upload-inner"]=!0,t[o+"hidden"]=w,t)),S=this.props.children;if("card"===i){var T,C=(0,O.default)(((T={})[o+"upload-card"]=!0,T[o+"disabled"]=c,T));S=D.default.createElement("div",{className:C},D.default.createElement(Y.default,{type:"add",size:"large"}),D.default.createElement("div",{tabIndex:"0",role:"button",className:o+"upload-text"},S))}var x=N.obj.pickAttrsWith(this.props,"data-");return D.default.createElement("div",(0,L.default)({className:M,style:l},x),D.default.createElement(j.default,(0,L.default)({},b,{beforeUpload:p,dragable:r,disabled:c,className:k,onSelect:this.onSelect,onDrop:this.onDrop,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError,ref:this.saveUploaderRef}),S),a||_?D.default.createElement(P.default,{useDataURL:u,uploader:this,listType:a,value:this.state.value,closable:f,onRemove:m,onCancel:g,onPreview:y,extraRender:v}):null)},o}(c.default),a.displayName="Upload",a.propTypes=(0,L.default)({},d.default.propTypes,P.default.propTypes,{prefix:u.default.string.isRequired,action:u.default.string,value:u.default.array,defaultValue:u.default.array,shape:u.default.oneOf(["card"]),listType:u.default.oneOf(["text","image","card"]),list:u.default.any,data:u.default.oneOfType([u.default.object,u.default.func]),formatter:u.default.func,limit:u.default.number,timeout:u.default.number,dragable:u.default.bool,closable:u.default.bool,useDataURL:u.default.bool,disabled:u.default.bool,onSelect:u.default.func,onProgress:u.default.func,onChange:u.default.func,onSuccess:u.default.func,onRemove:u.default.func,onError:u.default.func,beforeUpload:u.default.func,onDrop:u.default.func,className:u.default.string,style:u.default.object,children:u.default.node,autoUpload:u.default.bool,afterSelect:u.default.func}),a.defaultProps=(0,L.default)({},d.default.defaultProps,{prefix:"next-",limit:1/0,autoUpload:!0,closable:!0,onSelect:h,onProgress:h,onChange:h,onSuccess:h,onRemove:h,onError:h,onDrop:h,beforeUpload:h,afterSelect:h}),r=function(){var c=this;this.onSelect=function(e){var t=c.props,n=t.autoUpload,a=t.afterSelect,o=t.onSelect,r=t.limit,i=e.map(function(e){var t=(0,f.fileToObject)(e);return t.state="selected",t}),s=c.state.value.length+i.length;if(ro;)i(a,n=t[o++])&&(~l(r,n)||r.push(n));return r}},function(e,t,n){var a=n(136);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(102);e.exports=function(e){return Object(a(e))}},function(e,t,n){"use strict";var v=n(84),b=n(74),M=n(139),w=n(57),k=n(108),S=n(357),T=n(110),C=n(360),x=n(62)("iterator"),L=!([].keys&&"next"in[].keys()),E="values",D=function(){return this};e.exports=function(e,t,n,a,o,r,i){S(n,t,a);var s,l,u,c=function(e){if(!L&&e in h)return h[e];switch(e){case"keys":case E:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",f=o==E,p=!1,h=e.prototype,m=h[x]||h["@@iterator"]||o&&h[o],g=m||c(o),y=o?f?c("entries"):g:void 0,_="Array"==t&&h.entries||m;if(_&&(u=C(_.call(new e)))!==Object.prototype&&u.next&&(T(u,d,!0),v||"function"==typeof u[x]||w(u,x,D)),f&&m&&m.name!==E&&(p=!0,g=function(){return m.call(this)}),v&&!i||!L&&!p&&h[x]||w(h,x,g),k[t]=g,k[d]=D,o)if(s={values:f?g:c(E),keys:r?g:c("keys"),entries:y},i)for(l in s)l in h||M(h,l,s[l]);else b(b.P+b.F*(L||p),t,s);return s}},function(e,t,n){e.exports=n(57)},function(e,t,n){var a=n(134),o=n(106).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,o)}},function(e,t,n){var a=n(86),o=n(82),r=n(61),i=n(101),s=n(52),l=n(132),u=Object.getOwnPropertyDescriptor;t.f=n(60)?u:function(e,t){if(e=r(e),t=i(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!a.f.call(e,t),e[t])}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),r=1;re.clientHeight&&0a.length&&a.every(function(e,t){return e===n[t]})},y.prototype.handleOpen=function(t,e,n,a){var o=this,r=void 0,i=this.props,s=i.mode,l=i.openMode,u=this.state.openKeys,c=u.indexOf(t);e&&-1===c?"inline"===s?"single"===l?(r=u.filter(function(e){return!o.isSibling(o.k2n[t].pos,o.k2n[e].pos)})).push(t):r=u.concat(t):(r=u.filter(function(e){return o.isAncestor(o.k2n[t].pos,o.k2n[e].pos)})).push(t):!e&&-1this.popupNode.offsetWidth&&y(this.popupNode,"width",p.offsetWidth+"px")}"outside"!==u||"hoz"===l&&1===n||y(this.popupNode,"height",f.offsetHeight+"px");var h=this.popupProps;h.onOpen&&h.onOpen()},E.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1e.slidesToShow&&(t=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0){var r=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow;if(e.rtl)r=(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow;r&&(o=e.slideIndex>e.slideCount?(t=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(t=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1))}}else e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(t=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth);if(e.centerMode&&(e.infinite?t+=e.slideWidth*Math.floor(e.slidesToShow/2):t=e.slideWidth*Math.floor(e.slidesToShow/2)),n=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+t,!0===e.variableWidth){var i=void 0;n=(a=e.slideCount<=e.slidesToShow||!1===e.infinite?s.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(i=e.slideIndex+e.slidesToShow,s.default.findDOMNode(e.trackRef).childNodes[i]))?-1*a.offsetLeft:0,!0===e.centerMode&&(a=!1===e.infinite?s.default.findDOMNode(e.trackRef).children[e.slideIndex]:s.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(n=-1*a.offsetLeft+(e.listWidth-a.offsetWidth)/2)}return n}},function(e,t,n){"use strict";n(567)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var a=n(275);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return a.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return a.routerReducer}});var o=n(276);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return o.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return o.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return o.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return o.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return o.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return o.routerActions}});var r=s(n(403)),i=s(n(404));function s(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=r.default,t.routerMiddleware=i.default},function(e,t,n){"use strict";function a(o){return function(e){var n=e.dispatch,a=e.getState;return function(t){return function(e){return"function"==typeof e?e(n,a,o):t(e)}}}}var o=a();o.withExtraArgument=a,t.a=o},function(e,t,n){"use strict";var a=n(126),d={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},f={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={};p[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,a){if("string"==typeof n)return t;if(v){var o=_(n);o&&o!==v&&e(t,o,a)}var r=m(n);g&&(r=r.concat(g(n)));for(var i=p[t.$$typeof]||d,s=p[n.$$typeof]||d,l=0;l\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 = "'+e.dataId+'";\n\t\tString group = "'+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\t\t\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\t\t\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=I.a.createElement("div",null);return I.a.createElement("div",null,I.a.createElement(L.a,{title:F.a.get("com.alibaba.nacos.component.ShowCodeing.Sample_code"),style:{width:"80%"},visible:this.state.dialogvisible,footer:e,onClose:this.closeDialog.bind(this),language:F.a.currentLanguageCode},I.a.createElement("div",{style:{height:500}},I.a.createElement(i.a,{tip:F.a.get("com.alibaba.nacos.component.ShowCodeing.loading"),style:{width:"100%"},visible:this.state.loading},I.a.createElement(B.a,{shape:"text",style:{height:40,paddingBottom:10}},I.a.createElement(G,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),I.a.createElement(G,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),I.a.createElement(G,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),I.a.createElement(G,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),I.a.createElement(G,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),I.a.createElement(G,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),I.a.createElement(G,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),I.a.createElement("div",{ref:"codepreview"})))))}}]),n}(),$=n(100),Q=(n(537),function(){function a(e,t){for(var n=0;nl?T.a.createElement(A.a,{className:"pagination",total:s.count,pageSize:l,onChange:function(e){return a.onChangePage(e)}}):null,T.a.createElement(B,{ref:this.editInstanceDialog,serviceName:r,clusterName:n,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(),K.displayName="InstanceTable",K.propTypes={clusterName:F.a.string,serviceName:F.a.string},V=U))||V,X=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=(n(568),function(){function a(e,t){for(var n=0;nthis.state.pageSize&&E.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},E.a.createElement(y.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return a.setState({currentPage:e},function(){return a.queryServiceList()})}}))),E.a.createElement(N.a,{ref:this.editServiceDialog,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},queryServiceList:function(){return a.setState({currentPage:1},function(){return a.queryServiceList()})}}))}}]),n}(),o.displayName="ServiceList",a=r))||a;t.a=R},function(e,t,n){"use strict";n(20);var a,o,r,i=n(14),s=n.n(i),l=(n(25),n(8)),u=n.n(l),c=(n(26),n(13)),d=n.n(c),f=(n(36),n(21)),p=n.n(f),h=(n(28),n(12)),m=n.n(h),g=n(0),y=n.n(g),_=n(2),v=n.n(_),b=n(1),M=(n(517),function(){function a(e,t){for(var n=0;n=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var l=n(103),u=n(102);e.exports=function(s){return function(e,t){var n,a,o=String(u(e)),r=l(t),i=o.length;return r<0||i<=r?s?"":void 0:(n=o.charCodeAt(r))<55296||56319=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(366),__esModule:!0}},function(e,t,n){n(367),n(372),n(373),n(374),e.exports=n(51).Symbol},function(e,t,n){"use strict";var a=n(47),i=n(52),o=n(60),r=n(74),s=n(139),l=n(368).KEY,u=n(76),c=n(105),d=n(110),f=n(85),p=n(62),h=n(111),m=n(112),g=n(369),y=n(370),_=n(75),v=n(59),b=n(61),M=n(101),w=n(82),k=n(109),S=n(371),T=n(141),C=n(58),x=n(83),L=T.f,E=C.f,D=S.f,O=a.Symbol,N=a.JSON,Y=N&&N.stringify,j="prototype",P=p("_hidden"),I=p("toPrimitive"),A={}.propertyIsEnumerable,R=c("symbol-registry"),H=c("symbols"),z=c("op-symbols"),F=Object[j],W="function"==typeof O,V=a.QObject,K=!V||!V[j]||!V[j].findChild,U=o&&u(function(){return 7!=k(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var a=L(F,t);a&&delete F[t],E(e,t,n),a&&e!==F&&E(F,t,a)}:E,B=function(e){var t=H[e]=k(O[j]);return t._k=e,t},q=W&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},G=function(e,t,n){return e===F&&G(z,t,n),_(e),t=M(t,!0),_(n),i(H,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=k(n,{enumerable:w(0,!1)})):(i(e,P)||E(e,P,w(1,{})),e[P][t]=!0),U(e,t,n)):E(e,t,n)},J=function(e,t){_(e);for(var n,a=g(t=b(t)),o=0,r=a.length;oo;)i(H,t=n[o++])||t==P||t==l||a.push(t);return a},Z=function(e){for(var t,n=e===F,a=D(n?z:b(e)),o=[],r=0;a.length>r;)!i(H,t=a[r++])||n&&!i(F,t)||o.push(H[t]);return o};W||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=f(0te;)p(ee[te++]);for(var ne=x(p.store),ae=0;ne.length>ae;)m(ne[ae++]);r(r.S+r.F*!W,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=O(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),r(r.S+r.F*!W,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),N&&r(r.S+r.F*(!W||u(function(){var e=O();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))})),"JSON",{stringify:function(e){for(var t,n,a=[e],o=1;arguments.length>o;)a.push(arguments[o++]);if(n=t=a[1],(v(t)||void 0!==e)&&!q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),a[1]=t,Y.apply(N,a)}}),O[j][I]||n(57)(O[j],I,O[j].valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},function(e,t,n){var a=n(85)("meta"),o=n(59),r=n(52),i=n(58).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(76)(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,a,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,a)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[a].i},getWeak:function(e,t){if(!r(e,a)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[a].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!r(e,a)&&c(e),e}}},function(e,t,n){var s=n(83),l=n(107),u=n(86);e.exports=function(e){var t=s(e),n=l.f;if(n)for(var a,o=n(e),r=u.f,i=0;o.length>i;)r.call(e,a=o[i++])&&t.push(a);return t}},function(e,t,n){var a=n(136);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,n){var a=n(61),o=n(140).f,r={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(a(e))}},function(e,t){},function(e,t,n){n(112)("asyncIterator")},function(e,t,n){n(112)("observable")},function(e,t,n){e.exports={default:n(376),__esModule:!0}},function(e,t,n){n(377),e.exports=n(51).Object.setPrototypeOf},function(e,t,n){var a=n(74);a(a.S,"Object",{setPrototypeOf:n(378).set})},function(e,t,o){var n=o(59),a=o(75),r=function(e,t){if(a(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,a){try{(a=o(131)(Function.call,o(141).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:a(e,t),e}}({},!1):void 0),check:r}},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){n(381);var a=n(51).Object;e.exports=function(e,t){return a.create(e,t)}},function(e,t,n){var a=n(74);a(a.S,"Object",{create:n(109)})},function(e,t,n){"use strict"; +*/var l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),r=1;re.clientHeight&&0a.length&&a.every(function(e,t){return e===n[t]})},y.prototype.handleOpen=function(t,e,n,a){var o=this,r=void 0,i=this.props,s=i.mode,l=i.openMode,u=this.state.openKeys,c=u.indexOf(t);e&&-1===c?"inline"===s?"single"===l?(r=u.filter(function(e){return!o.isSibling(o.k2n[t].pos,o.k2n[e].pos)})).push(t):r=u.concat(t):(r=u.filter(function(e){return o.isAncestor(o.k2n[t].pos,o.k2n[e].pos)})).push(t):!e&&-1this.popupNode.offsetWidth&&y(this.popupNode,"width",p.offsetWidth+"px")}"outside"!==u||"hoz"===l&&1===n||y(this.popupNode,"height",f.offsetHeight+"px");var h=this.popupProps;h.onOpen&&h.onOpen()},E.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1e.slidesToShow&&(t=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0){var r=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow;if(e.rtl)r=(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow;r&&(o=e.slideIndex>e.slideCount?(t=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(t=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1))}}else e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(t=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth);if(e.centerMode&&(e.infinite?t+=e.slideWidth*Math.floor(e.slidesToShow/2):t=e.slideWidth*Math.floor(e.slidesToShow/2)),n=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+t,!0===e.variableWidth){var i=void 0;n=(a=e.slideCount<=e.slidesToShow||!1===e.infinite?s.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(i=e.slideIndex+e.slidesToShow,s.default.findDOMNode(e.trackRef).childNodes[i]))?-1*a.offsetLeft:0,!0===e.centerMode&&(a=!1===e.infinite?s.default.findDOMNode(e.trackRef).children[e.slideIndex]:s.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(n=-1*a.offsetLeft+(e.listWidth-a.offsetWidth)/2)}return n}},function(e,t,n){"use strict";n(567)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var a=n(275);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return a.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return a.routerReducer}});var o=n(276);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return o.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return o.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return o.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return o.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return o.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return o.routerActions}});var r=s(n(403)),i=s(n(404));function s(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=r.default,t.routerMiddleware=i.default},function(e,t,n){"use strict";function a(o){return function(e){var n=e.dispatch,a=e.getState;return function(t){return function(e){return"function"==typeof e?e(n,a,o):t(e)}}}}var o=a();o.withExtraArgument=a,t.a=o},function(e,t,n){"use strict";var a=n(126),d={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},f={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={};p[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,a){if("string"==typeof n)return t;if(v){var o=_(n);o&&o!==v&&e(t,o,a)}var r=m(n);g&&(r=r.concat(g(n)));for(var i=p[t.$$typeof]||d,s=p[n.$$typeof]||d,l=0;l\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 = "'+e.dataId+'";\n\t\tString group = "'+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\t\t\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\t\t\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=I.a.createElement("div",null);return I.a.createElement("div",null,I.a.createElement(L.a,{title:F.a.get("com.alibaba.nacos.component.ShowCodeing.Sample_code"),style:{width:"80%"},visible:this.state.dialogvisible,footer:e,onClose:this.closeDialog.bind(this),language:F.a.currentLanguageCode},I.a.createElement("div",{style:{height:500}},I.a.createElement(i.a,{tip:F.a.get("com.alibaba.nacos.component.ShowCodeing.loading"),style:{width:"100%"},visible:this.state.loading},I.a.createElement(B.a,{shape:"text",style:{height:40,paddingBottom:10}},I.a.createElement(G,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),I.a.createElement(G,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),I.a.createElement(G,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),I.a.createElement(G,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),I.a.createElement(G,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),I.a.createElement(G,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),I.a.createElement(G,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),I.a.createElement("div",{ref:"codepreview"})))))}}]),n}(),$=n(100),Q=(n(537),function(){function a(e,t){for(var n=0;nl?T.a.createElement(A.a,{className:"pagination",total:s.count,pageSize:l,onChange:function(e){return a.onChangePage(e)}}):null,T.a.createElement(B,{ref:this.editInstanceDialog,serviceName:r,clusterName:n,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(),K.displayName="InstanceTable",K.propTypes={clusterName:F.a.string,serviceName:F.a.string},V=U))||V,X=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=(n(568),function(){function a(e,t){for(var n=0;nthis.state.pageSize&&E.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},E.a.createElement(y.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return a.setState({currentPage:e},function(){return a.queryServiceList()})}}))),E.a.createElement(N.a,{ref:this.editServiceDialog,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},queryServiceList:function(){return a.setState({currentPage:1},function(){return a.queryServiceList()})}}))}}]),n}(),o.displayName="ServiceList",a=r))||a;t.a=R},function(e,t,n){"use strict";n(20);var a,o,r,i=n(14),s=n.n(i),l=(n(25),n(8)),u=n.n(l),c=(n(26),n(13)),d=n.n(c),f=(n(36),n(21)),p=n.n(f),h=(n(28),n(12)),m=n.n(h),g=n(0),y=n.n(g),_=n(2),v=n.n(_),b=n(1),M=(n(517),function(){function a(e,t){for(var n=0;n=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var l=n(103),u=n(102);e.exports=function(s){return function(e,t){var n,a,o=String(u(e)),r=l(t),i=o.length;return r<0||i<=r?s?"":void 0:(n=o.charCodeAt(r))<55296||56319=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(366),__esModule:!0}},function(e,t,n){n(367),n(372),n(373),n(374),e.exports=n(51).Symbol},function(e,t,n){"use strict";var a=n(47),i=n(52),o=n(60),r=n(74),s=n(139),l=n(368).KEY,u=n(76),c=n(105),d=n(110),f=n(85),p=n(62),h=n(111),m=n(112),g=n(369),y=n(370),_=n(75),v=n(59),b=n(61),M=n(101),w=n(82),k=n(109),S=n(371),T=n(141),C=n(58),x=n(83),L=T.f,E=C.f,D=S.f,O=a.Symbol,N=a.JSON,Y=N&&N.stringify,j="prototype",P=p("_hidden"),I=p("toPrimitive"),A={}.propertyIsEnumerable,R=c("symbol-registry"),H=c("symbols"),z=c("op-symbols"),F=Object[j],W="function"==typeof O,V=a.QObject,K=!V||!V[j]||!V[j].findChild,U=o&&u(function(){return 7!=k(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var a=L(F,t);a&&delete F[t],E(e,t,n),a&&e!==F&&E(F,t,a)}:E,B=function(e){var t=H[e]=k(O[j]);return t._k=e,t},q=W&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},G=function(e,t,n){return e===F&&G(z,t,n),_(e),t=M(t,!0),_(n),i(H,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=k(n,{enumerable:w(0,!1)})):(i(e,P)||E(e,P,w(1,{})),e[P][t]=!0),U(e,t,n)):E(e,t,n)},J=function(e,t){_(e);for(var n,a=g(t=b(t)),o=0,r=a.length;oo;)i(H,t=n[o++])||t==P||t==l||a.push(t);return a},Z=function(e){for(var t,n=e===F,a=D(n?z:b(e)),o=[],r=0;a.length>r;)!i(H,t=a[r++])||n&&!i(F,t)||o.push(H[t]);return o};W||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=f(0te;)p(ee[te++]);for(var ne=x(p.store),ae=0;ne.length>ae;)m(ne[ae++]);r(r.S+r.F*!W,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=O(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),r(r.S+r.F*!W,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),N&&r(r.S+r.F*(!W||u(function(){var e=O();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))})),"JSON",{stringify:function(e){for(var t,n,a=[e],o=1;arguments.length>o;)a.push(arguments[o++]);if(n=t=a[1],(v(t)||void 0!==e)&&!q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),a[1]=t,Y.apply(N,a)}}),O[j][I]||n(57)(O[j],I,O[j].valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},function(e,t,n){var a=n(85)("meta"),o=n(59),r=n(52),i=n(58).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(76)(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,a,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,a)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[a].i},getWeak:function(e,t){if(!r(e,a)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[a].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!r(e,a)&&c(e),e}}},function(e,t,n){var s=n(83),l=n(107),u=n(86);e.exports=function(e){var t=s(e),n=l.f;if(n)for(var a,o=n(e),r=u.f,i=0;o.length>i;)r.call(e,a=o[i++])&&t.push(a);return t}},function(e,t,n){var a=n(136);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,n){var a=n(61),o=n(140).f,r={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(a(e))}},function(e,t){},function(e,t,n){n(112)("asyncIterator")},function(e,t,n){n(112)("observable")},function(e,t,n){e.exports={default:n(376),__esModule:!0}},function(e,t,n){n(377),e.exports=n(51).Object.setPrototypeOf},function(e,t,n){var a=n(74);a(a.S,"Object",{setPrototypeOf:n(378).set})},function(e,t,o){var n=o(59),a=o(75),r=function(e,t){if(a(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,a){try{(a=o(131)(Function.call,o(141).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:a(e,t),e}}({},!1):void 0),check:r}},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){n(381);var a=n(51).Object;e.exports=function(e,t){return a.create(e,t)}},function(e,t,n){var a=n(74);a(a.S,"Object",{create:n(109)})},function(e,t,n){"use strict"; /** @license React v16.6.1 * react.production.min.js * diff --git a/core/pom.xml b/core/pom.xml index 999116da0..1c506063a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -18,7 +18,7 @@ com.alibaba.nacos nacos-all - 0.5.0 + 0.6.0 ../pom.xml diff --git a/core/src/main/resources/META-INF/logback/nacos.xml b/core/src/main/resources/META-INF/logback/nacos.xml index 4d69b0083..7abc31663 100644 --- a/core/src/main/resources/META-INF/logback/nacos.xml +++ b/core/src/main/resources/META-INF/logback/nacos.xml @@ -1,6 +1,9 @@ + + + @@ -8,16 +11,16 @@ ${CONSOLE_LOG_PATTERN} - utf8 + UTF-8 - ${user.home}/nacos/logs/nacos.log + ${LOG_HOME}/nacos.log true - ${user.home}/nacos/logs/nacos.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/nacos.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -25,7 +28,7 @@ %date %level %msg%n%n - GBK + UTF-8 diff --git a/distribution/conf/nacos-logback.xml b/distribution/conf/nacos-logback.xml index b99fb59f3..1ab7e4892 100644 --- a/distribution/conf/nacos-logback.xml +++ b/distribution/conf/nacos-logback.xml @@ -1,19 +1,22 @@ + + + %date %level %msg%n%n - utf8 + UTF-8 - ${nacos.home}/logs/naming-server.log + ${LOG_HOME}/naming-server.log true - ${nacos.home}/logs/naming-server.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-server.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -34,10 +37,10 @@ - ${nacos.home}/logs/naming-raft.log + ${LOG_HOME}/naming-raft.log true - ${nacos.home}/logs/naming-raft.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-raft.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -58,10 +61,10 @@ - ${nacos.home}/logs/naming-event.log + ${LOG_HOME}/naming-event.log true - ${nacos.home}/logs/naming-event.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-event.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -82,10 +85,10 @@ - ${nacos.home}/logs/naming-push.log + ${LOG_HOME}/naming-push.log true - ${nacos.home}/logs/naming-push.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-push.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -98,10 +101,10 @@ - ${nacos.home}/logs/naming-rt.log + ${LOG_HOME}/naming-rt.log true - ${nacos.home}/logs/naming-rt.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-rt.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -115,10 +118,10 @@ - ${nacos.home}/logs/naming-performance.log + ${LOG_HOME}/naming-performance.log true - ${nacos.home}/logs/naming-performance.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-performance.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -132,10 +135,10 @@ - ${nacos.home}/logs/naming-router.log + ${LOG_HOME}/naming-router.log true - ${nacos.home}/logs/naming-router.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-router.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -149,10 +152,10 @@ - ${nacos.home}/logs/naming-cache.log + ${LOG_HOME}/naming-cache.log true - ${nacos.home}/logs/naming-cache.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-cache.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -166,10 +169,10 @@ - ${nacos.home}/logs/naming-device.log + ${LOG_HOME}/naming-device.log true - ${nacos.home}/logs/naming-device.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-device.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -183,10 +186,10 @@ - ${nacos.home}/logs/naming-tag.log + ${LOG_HOME}/naming-tag.log true - ${nacos.home}/logs/naming-tag.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-tag.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -200,10 +203,10 @@ - ${nacos.home}/logs/naming-tenant.log + ${LOG_HOME}/naming-tenant.log true - ${nacos.home}/logs/naming-tenant.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-tenant.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -217,10 +220,10 @@ - ${nacos.home}/logs/naming-debug.log + ${LOG_HOME}/naming-debug.log true - ${nacos.home}/logs/naming-debug.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-debug.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -236,10 +239,10 @@ - ${nacos.home}/logs/config-dump.log + ${LOG_HOME}/config-dump.log true - ${nacos.home}/logs/config-dump.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-dump.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -247,15 +250,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-pull.log + ${LOG_HOME}/config-pull.log true - ${nacos.home}/logs/config-pull.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-pull.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -263,15 +266,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-fatal.log + ${LOG_HOME}/config-fatal.log true - ${nacos.home}/logs/config-fatal.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-fatal.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -279,15 +282,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-memory.log + ${LOG_HOME}/config-memory.log true - ${nacos.home}/logs/config-memory.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-memory.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -295,15 +298,15 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-pull-check.log + ${LOG_HOME}/config-pull-check.log true - ${nacos.home}/logs/config-pull-check.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-pull-check.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -311,16 +314,16 @@ %msg%n - GBK + UTF-8 - ${nacos.home}/logs/config-acl.log + ${LOG_HOME}/config-acl.log true - ${nacos.home}/logs/config-acl.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-acl.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -328,16 +331,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-client-request.log + ${LOG_HOME}/config-client-request.log true - ${nacos.home}/logs/config-client-request.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-client-request.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -345,16 +348,16 @@ %date|%msg%n - GBK + UTF-8 - ${nacos.home}/logs/config-sdk-request.log + ${LOG_HOME}/config-sdk-request.log true - ${nacos.home}/logs/config-sdk-request.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-sdk-request.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -362,16 +365,16 @@ %date|%msg%n - GBK + UTF-8 - ${nacos.home}/logs/config-trace.log + ${LOG_HOME}/config-trace.log true - ${nacos.home}/logs/config-trace.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-trace.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -379,16 +382,16 @@ %date|%msg%n - GBK + UTF-8 - ${nacos.home}/logs/config-notify.log + ${LOG_HOME}/config-notify.log true - ${nacos.home}/logs/config-notify.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-notify.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -396,16 +399,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-app.log + ${LOG_HOME}/config-app.log true - ${nacos.home}/logs/config-app.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-app.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -413,16 +416,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/config-server.log + ${LOG_HOME}/config-server.log true - ${nacos.home}/logs/config-server.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/config-server.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -430,16 +433,16 @@ %date %level %msg%n%n - GBK + UTF-8 - ${nacos.home}/logs/nacos.log + ${LOG_HOME}/nacos.log true - ${nacos.home}/logs/nacos.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/nacos.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB diff --git a/distribution/pom.xml b/distribution/pom.xml index f0367ec35..633e4ae2c 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -12,188 +12,188 @@ limitations under the License. --> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - - com.alibaba.nacos - nacos-all - 0.5.0 - ../pom.xml - + + com.alibaba.nacos + nacos-all + 0.6.0 + ../pom.xml + - 4.0.0 + 4.0.0 - nacos-distribution - nacos-distribution ${project.version} - pom + nacos-distribution + nacos-distribution ${project.version} + pom - - - com.alibaba.nacos - nacos-console - - - - - release-config - - - com.alibaba.nacos - nacos-config - - - - - - maven-assembly-plugin - - - release-config - - single - - package - - - release-config.xml - - false - - - - - - acm - - - - release-naming - - - com.alibaba.nacos - nacos-naming - - - - - - maven-assembly-plugin - - - release-naming - - single - - package - - - release-naming.xml - - false - - - - - - ans - - - - release-client - - - com.alibaba.nacos - nacos-client - - - - - - maven-assembly-plugin - - - release-client - - single - - package - - - release-client.xml - - false - - - - - - nacos-client - - - - release-core - - - com.alibaba.nacos - nacos-core - - - - - - maven-assembly-plugin - - - release-core - - single - - package - - - release-core.xml - - false - - - - - - nacos-core - - - - release-nacos - - - com.alibaba.nacos - nacos-console - - - - - - maven-assembly-plugin - 3.0.0 - - - release-nacos.xml - - - - - make-assembly - install - - single - - - - - - nacos - - - - \ No newline at end of file + + + com.alibaba.nacos + nacos-console + + + + + release-config + + + com.alibaba.nacos + nacos-config + + + + + + maven-assembly-plugin + + + release-config + + single + + package + + + release-config.xml + + false + + + + + + acm + + + + release-naming + + + com.alibaba.nacos + nacos-naming + + + + + + maven-assembly-plugin + + + release-naming + + single + + package + + + release-naming.xml + + false + + + + + + ans + + + + release-client + + + com.alibaba.nacos + nacos-client + + + + + + maven-assembly-plugin + + + release-client + + single + + package + + + release-client.xml + + false + + + + + + nacos-client + + + + release-core + + + com.alibaba.nacos + nacos-core + + + + + + maven-assembly-plugin + + + release-core + + single + + package + + + release-core.xml + + false + + + + + + nacos-core + + + + release-nacos + + + com.alibaba.nacos + nacos-console + + + + + + maven-assembly-plugin + 3.0.0 + + + release-nacos.xml + + + + + make-assembly + install + + single + + + + + + nacos + + + + diff --git a/distribution/release-client.xml b/distribution/release-client.xml index 003b44387..7e9cc6e30 100644 --- a/distribution/release-client.xml +++ b/distribution/release-client.xml @@ -14,62 +14,62 @@ limitations under the License. --> - client - false - - dir - tar.gz - zip - - - - ../ - - README.md - - + client + false + + dir + tar.gz + zip + + + + ../ + + README.md + + - - - conf/** - benchmark/* - - + + + conf/** + benchmark/* + + - - - bin/* - - 0755 - - + + + bin/* + + 0755 + + - - - LICENSE-BIN - LICENSE - - - NOTICE-BIN - NOTICE - - + + + LICENSE-BIN + LICENSE + + + NOTICE-BIN + NOTICE + + - - - true - - com.alibaba.nacos:nacos-client - - - lib/ - false - - - lib/ - - - - - + + + true + + com.alibaba.nacos:nacos-client + + + lib/ + false + + + lib/ + + + + + diff --git a/distribution/release-config.xml b/distribution/release-config.xml index 12b67b4c8..a8933febb 100644 --- a/distribution/release-config.xml +++ b/distribution/release-config.xml @@ -14,62 +14,62 @@ limitations under the License. --> - cfg - false - - dir - tar.gz - zip - - - - ../ - - README.md - - + cfg + false + + dir + tar.gz + zip + + + + ../ + + README.md + + - - - conf/** - benchmark/* - - + + + conf/** + benchmark/* + + - - - bin/* - - 0755 - - + + + bin/* + + 0755 + + - - - LICENSE-BIN - LICENSE - - - NOTICE-BIN - NOTICE - - + + + LICENSE-BIN + LICENSE + + + NOTICE-BIN + NOTICE + + - - - true - - com.alibaba.nacos:nacos-config - - - lib/ - false - - - lib/ - - - - - + + + true + + com.alibaba.nacos:nacos-config + + + lib/ + false + + + lib/ + + + + + diff --git a/distribution/release-core.xml b/distribution/release-core.xml index c63e59c9b..03c3cd239 100644 --- a/distribution/release-core.xml +++ b/distribution/release-core.xml @@ -14,61 +14,61 @@ limitations under the License. --> - core - false - - dir - tar.gz - zip - - - - ../ - - README.md - - + core + false + + dir + tar.gz + zip + + + + ../ + + README.md + + - - - conf/** - - + + + conf/** + + - - - bin/* - - 0755 - - + + + bin/* + + 0755 + + - - - LICENSE-BIN - LICENSE - - - NOTICE-BIN - NOTICE - - + + + LICENSE-BIN + LICENSE + + + NOTICE-BIN + NOTICE + + - - - true - - com.alibaba.nacos:nacos-core - - - lib/ - false - - - lib/ - - - - - + + + true + + com.alibaba.nacos:nacos-core + + + lib/ + false + + + lib/ + + + + + diff --git a/distribution/release-nacos.xml b/distribution/release-nacos.xml index ae2026898..0b358b23d 100644 --- a/distribution/release-nacos.xml +++ b/distribution/release-nacos.xml @@ -14,50 +14,50 @@ limitations under the License. --> - server-${project.version} - true - - dir - tar.gz - zip - - + server-${project.version} + true + + dir + tar.gz + zip + + - - - conf/** - - + + + conf/** + + - - - bin/* - - 0755 - - - - - LICENSE-BIN - LICENSE - - - NOTICE-BIN - NOTICE - - - - ../console/target/nacos-server.jar - /target/ - - + + + bin/* + + 0755 + + + + + LICENSE-BIN + LICENSE + + + NOTICE-BIN + NOTICE + + + + ../console/target/nacos-server.jar + /target/ + + - - - true - - com.alibaba.nacos:nacos-console - - - + + + true + + com.alibaba.nacos:nacos-console + + + diff --git a/distribution/release-naming.xml b/distribution/release-naming.xml index d513d5e66..5cfc20421 100644 --- a/distribution/release-naming.xml +++ b/distribution/release-naming.xml @@ -14,62 +14,62 @@ limitations under the License. --> - naming - false - - dir - tar.gz - zip - - - - ../ - - README.md - - + naming + false + + dir + tar.gz + zip + + + + ../ + + README.md + + - - - conf/** - benchmark/* - - + + + conf/** + benchmark/* + + - - - bin/* - - 0755 - - + + + bin/* + + 0755 + + - - - LICENSE-BIN - LICENSE - - - NOTICE-BIN - NOTICE - - + + + LICENSE-BIN + LICENSE + + + NOTICE-BIN + NOTICE + + - - - true - - com.alibaba.nacos:nacos-naming - - - lib/ - false - - - lib/ - - - - - + + + true + + com.alibaba.nacos:nacos-naming + + + lib/ + false + + + lib/ + + + + + diff --git a/example/pom.xml b/example/pom.xml index b740aa3e6..c03356812 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -12,50 +12,50 @@ limitations under the License. --> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - - com.alibaba.nacos - nacos-all - 0.5.0 - ../pom.xml - + + com.alibaba.nacos + nacos-all + 0.6.0 + ../pom.xml + - 4.0.0 + 4.0.0 - nacos-example - jar + nacos-example + jar - nacos-example ${project.version} - http://maven.apache.org + nacos-example ${project.version} + http://maven.apache.org - - UTF-8 - + + UTF-8 + - - - junit - junit - test - - - ${project.groupId} - nacos-common - - - ${project.groupId} - nacos-core - - - com.alibaba.nacos - nacos-client - - - - ch.qos.logback - logback-classic - - + + + junit + junit + test + + + ${project.groupId} + nacos-common + + + ${project.groupId} + nacos-core + + + com.alibaba.nacos + nacos-client + + + + ch.qos.logback + logback-classic + + diff --git a/naming/pom.xml b/naming/pom.xml index 4cc55ce7c..1d3137507 100644 --- a/naming/pom.xml +++ b/naming/pom.xml @@ -18,7 +18,7 @@ com.alibaba.nacos nacos-all - 0.5.0 + 0.6.0 ../pom.xml diff --git a/naming/src/main/resources/META-INF/logback/nacos-included.xml b/naming/src/main/resources/META-INF/logback/nacos-included.xml index a97dd7759..9f0bfca22 100644 --- a/naming/src/main/resources/META-INF/logback/nacos-included.xml +++ b/naming/src/main/resources/META-INF/logback/nacos-included.xml @@ -1,12 +1,15 @@ + + + - ${user.home}/nacos/logs/naming-server.log + ${LOG_HOME}/naming-server.log true - ${user.home}/nacos/logs/naming-server.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-server.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -19,10 +22,10 @@ - ${user.home}/nacos/logs/naming-raft.log + ${LOG_HOME}/naming-raft.log true - ${user.home}/nacos/logs/naming-raft.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-raft.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -35,10 +38,10 @@ - ${user.home}/nacos/logs/naming-event.log + ${LOG_HOME}/naming-event.log true - ${user.home}/nacos/logs/naming-event.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-event.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -51,10 +54,10 @@ - ${user.home}/nacos/logs/naming-push.log + ${LOG_HOME}/naming-push.log true - ${user.home}/nacos/logs/naming-push.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-push.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB @@ -67,10 +70,10 @@ - ${user.home}/nacos/logs/naming-rt.log + ${LOG_HOME}/naming-rt.log true - ${user.home}/nacos/logs/naming-rt.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-rt.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -84,10 +87,10 @@ - ${user.home}/nacos/logs/naming-performance.log + ${LOG_HOME}/naming-performance.log true - ${user.home}/nacos/logs/naming-performance.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-performance.log.%d{yyyy-MM-dd}.%i 50MB 15 512MB @@ -101,10 +104,10 @@ - ${user.home}/nacos/logs/naming-router.log + ${LOG_HOME}/naming-router.log true - ${user.home}/nacos/logs/naming-router.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-router.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -118,10 +121,10 @@ - ${user.home}/nacos/logs/naming-cache.log + ${LOG_HOME}/naming-cache.log true - ${user.home}/nacos/logs/naming-cache.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-cache.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -135,10 +138,10 @@ - ${user.home}/nacos/logs/naming-device.log + ${LOG_HOME}/naming-device.log true - ${user.home}/nacos/logs/naming-device.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-device.log.%d{yyyy-MM-dd}.%i 2GB 15 7GB @@ -152,10 +155,10 @@ - ${user.home}/nacos/logs/naming-tag.log + ${LOG_HOME}/naming-tag.log true - ${user.home}/nacos/logs/naming-tag.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-tag.log.%d{yyyy-MM-dd}.%i 1GB 15 3GB @@ -169,10 +172,10 @@ - ${user.home}/nacos/logs/naming-debug.log + ${LOG_HOME}/naming-debug.log true - ${user.home}/nacos/logs/naming-debug.log.%d{yyyy-MM-dd}.%i + ${LOG_HOME}/naming-debug.log.%d{yyyy-MM-dd}.%i 20MB 15 128MB diff --git a/pom.xml b/pom.xml index 0dfcc67c6..ffd378efb 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 2018 com.alibaba.nacos nacos-all - 0.5.0 + 0.6.0 pom Alibaba NACOS ${project.version} @@ -226,6 +226,7 @@ + .editorconfig .travis.yml CONTRIBUTING.md CODE_OF_CONDUCT.md diff --git a/test/pom.xml b/test/pom.xml index dd7107d72..6913199b4 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -17,7 +17,7 @@ com.alibaba.nacos nacos-all - 0.5.0 + 0.6.0 ../pom.xml 4.0.0