mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 05:39:00 +08:00
⬆️ Upgrading dependencies, spring cloud alibaba 2.1.0
This commit is contained in:
1 parent
d737142a7b
commit
e2a1c94551
75 files changed
+1159
-9007
No files matched your search
+2
-2
@@ -35,12 +35,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--upms api、model 模块-->
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<properties>
|
||||
<pigx.version>3.2</pigx.version>
|
||||
<mybatis-plus.version>3.1.0</mybatis-plus.version>
|
||||
<druid.version>1.1.16</druid.version>
|
||||
<druid.version>1.1.18</druid.version>
|
||||
<mysql.connector.version>8.0.16</mysql.connector.version>
|
||||
<swagger.core.version>1.5.22</swagger.core.version>
|
||||
<mp.weixin.version>3.3.0</mp.weixin.version>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<artifactId>spring-boot-starter-data-redis-reactive</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-alibaba-nacos-discovery</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
+1
-1
@@ -17,6 +17,7 @@
|
||||
|
||||
package com.pig4cloud.pigx.common.gateway.configuration;
|
||||
|
||||
import com.alibaba.cloud.nacos.ribbon.NacosServer;
|
||||
import com.pig4cloud.pigx.common.gateway.filter.GrayLoadBalancerClientFilter;
|
||||
import com.pig4cloud.pigx.common.gateway.rule.AbstractDiscoveryEnabledRule;
|
||||
import com.pig4cloud.pigx.common.gateway.rule.MetadataAwareRule;
|
||||
@@ -28,7 +29,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cloud.alibaba.nacos.ribbon.NacosServer;
|
||||
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
|
||||
import org.springframework.cloud.gateway.config.LoadBalancerProperties;
|
||||
import org.springframework.cloud.gateway.filter.LoadBalancerClientFilter;
|
||||
|
||||
+1
-1
@@ -17,9 +17,9 @@
|
||||
|
||||
package com.pig4cloud.pigx.common.gateway.predicate;
|
||||
|
||||
import com.alibaba.cloud.nacos.ribbon.NacosServer;
|
||||
import com.netflix.loadbalancer.AbstractServerPredicate;
|
||||
import com.netflix.loadbalancer.PredicateKey;
|
||||
import org.springframework.cloud.alibaba.nacos.ribbon.NacosServer;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
|
||||
+1
-1
@@ -18,11 +18,11 @@
|
||||
package com.pig4cloud.pigx.common.gateway.predicate;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.cloud.nacos.ribbon.NacosServer;
|
||||
import com.pig4cloud.pigx.common.core.constant.CommonConstants;
|
||||
import com.pig4cloud.pigx.common.core.util.SpringContextHolder;
|
||||
import com.pig4cloud.pigx.common.gateway.support.PigxRibbonRuleProperties;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.cloud.alibaba.nacos.ribbon.NacosServer;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@@ -49,12 +49,12 @@
|
||||
</dependency>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--验证码-->
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
<dependency>
|
||||
<groupId>com.alibaba.nacos</groupId>
|
||||
<artifactId>nacos-config</artifactId>
|
||||
<version>1.1.0</version>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.nacos</groupId>
|
||||
<artifactId>nacos-naming</artifactId>
|
||||
<version>1.1.0</version>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<!-- log -->
|
||||
<dependency>
|
||||
|
||||
+47
-47
@@ -44,64 +44,64 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
|
||||
@EnableGlobalMethodSecurity(prePostEnabled = true)
|
||||
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
|
||||
public static final String AUTHORIZATION_HEADER = "Authorization";
|
||||
public static final String AUTHORIZATION_HEADER = "Authorization";
|
||||
|
||||
public static final String AUTHORIZATION_TOKEN = "access_token";
|
||||
public static final String AUTHORIZATION_TOKEN = "access_token";
|
||||
|
||||
public static final String SECURITY_IGNORE_URLS_SPILT_CHAR = ",";
|
||||
public static final String SECURITY_IGNORE_URLS_SPILT_CHAR = ",";
|
||||
|
||||
@Autowired
|
||||
private CustomUserDetailsServiceImpl userDetailsService;
|
||||
@Autowired
|
||||
private CustomUserDetailsServiceImpl userDetailsService;
|
||||
|
||||
@Autowired
|
||||
private JwtAuthenticationEntryPoint unauthorizedHandler;
|
||||
@Autowired
|
||||
private JwtAuthenticationEntryPoint unauthorizedHandler;
|
||||
|
||||
@Autowired
|
||||
private JwtTokenUtils tokenProvider;
|
||||
@Autowired
|
||||
private JwtTokenUtils tokenProvider;
|
||||
|
||||
@Autowired
|
||||
private Environment env;
|
||||
@Autowired
|
||||
private Environment env;
|
||||
|
||||
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
|
||||
@Override
|
||||
public AuthenticationManager authenticationManagerBean() throws Exception {
|
||||
return super.authenticationManagerBean();
|
||||
}
|
||||
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
|
||||
@Override
|
||||
public AuthenticationManager authenticationManagerBean() throws Exception {
|
||||
return super.authenticationManagerBean();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||
auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());
|
||||
}
|
||||
@Override
|
||||
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||
auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configure(WebSecurity web) {
|
||||
String ignoreUrls = env.getProperty("nacos.security.ignore.urls", "/**");
|
||||
for (String ignoreUrl : ignoreUrls.trim().split(SECURITY_IGNORE_URLS_SPILT_CHAR)) {
|
||||
web.ignoring().antMatchers(ignoreUrl.trim());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void configure(WebSecurity web) {
|
||||
String ignoreURLs = env.getProperty("nacos.security.ignore.urls", "/**");
|
||||
for (String ignoreURL : ignoreURLs.trim().split(SECURITY_IGNORE_URLS_SPILT_CHAR)) {
|
||||
web.ignoring().antMatchers(ignoreURL.trim());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http
|
||||
.authorizeRequests()
|
||||
.anyRequest().authenticated().and()
|
||||
// custom token authorize exception handler
|
||||
.exceptionHandling()
|
||||
.authenticationEntryPoint(unauthorizedHandler).and()
|
||||
// since we use jwt, session is not necessary
|
||||
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
|
||||
// since we use jwt, csrf is not necessary
|
||||
.csrf().disable();
|
||||
http.addFilterBefore(new JwtAuthenticationTokenFilter(tokenProvider), UsernamePasswordAuthenticationFilter.class);
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http
|
||||
.authorizeRequests()
|
||||
.anyRequest().authenticated().and()
|
||||
// custom token authorize exception handler
|
||||
.exceptionHandling()
|
||||
.authenticationEntryPoint(unauthorizedHandler).and()
|
||||
// since we use jwt, session is not necessary
|
||||
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
|
||||
// since we use jwt, csrf is not necessary
|
||||
.csrf().disable();
|
||||
http.addFilterBefore(new JwtAuthenticationTokenFilter(tokenProvider), UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
// disable cache
|
||||
http.headers().cacheControl();
|
||||
}
|
||||
// disable cache
|
||||
http.headers().cacheControl();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public PasswordEncoder passwordEncoder() {
|
||||
return new BCryptPasswordEncoder();
|
||||
}
|
||||
@Bean
|
||||
public PasswordEncoder passwordEncoder() {
|
||||
return new BCryptPasswordEncoder();
|
||||
}
|
||||
|
||||
}
|
||||
+73
-41
@@ -15,19 +15,20 @@
|
||||
*/
|
||||
package com.alibaba.nacos.console.controller;
|
||||
|
||||
import com.alibaba.nacos.config.server.model.RestResult;
|
||||
import com.alibaba.nacos.console.config.WebSecurityConfig;
|
||||
import com.alibaba.nacos.config.server.model.RestResult;
|
||||
import com.alibaba.nacos.console.security.CustomUserDetailsServiceImpl;
|
||||
import com.alibaba.nacos.console.utils.JwtTokenUtils;
|
||||
|
||||
import com.alibaba.nacos.console.utils.PasswordEncoderUtil;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.authentication.AuthenticationManager;
|
||||
import org.springframework.security.authentication.BadCredentialsException;
|
||||
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.security.core.userdetails.UserDetails;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -41,44 +42,75 @@ import javax.servlet.http.HttpServletResponse;
|
||||
@RequestMapping("/v1/auth")
|
||||
public class AuthController {
|
||||
|
||||
@Autowired
|
||||
private JwtTokenUtils jwtTokenUtils;
|
||||
@Autowired
|
||||
private AuthenticationManager authenticationManager;
|
||||
@Autowired
|
||||
private JwtTokenUtils jwtTokenUtils;
|
||||
@Autowired
|
||||
private AuthenticationManager authenticationManager;
|
||||
@Autowired
|
||||
private CustomUserDetailsServiceImpl userDetailsService;
|
||||
|
||||
/**
|
||||
* Whether the Nacos is in broken states or not, and cannot recover except by being restarted
|
||||
*
|
||||
* @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that
|
||||
* Nacos is in broken states.
|
||||
*/
|
||||
/**
|
||||
* Whether the Nacos is in broken states or not, and cannot recover except by being restarted
|
||||
*
|
||||
* @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that
|
||||
* Nacos is in broken states.
|
||||
*/
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "login", method = RequestMethod.POST)
|
||||
public RestResult<String> login(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
String username = request.getParameter("username");
|
||||
String password = request.getParameter("password");
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "login", method = RequestMethod.POST)
|
||||
public RestResult<String> login(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
String username = request.getParameter("username");
|
||||
String password = request.getParameter("password");
|
||||
|
||||
// 通过用户名和密码创建一个 Authentication 认证对象,实现类为 UsernamePasswordAuthenticationToken
|
||||
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
|
||||
RestResult<String> rr = new RestResult<String>();
|
||||
// 通过用户名和密码创建一个 Authentication 认证对象,实现类为 UsernamePasswordAuthenticationToken
|
||||
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
|
||||
RestResult<String> rr = new RestResult<String>();
|
||||
|
||||
try {
|
||||
//通过 AuthenticationManager(默认实现为ProviderManager)的authenticate方法验证 Authentication 对象
|
||||
Authentication authentication = authenticationManager.authenticate(authenticationToken);
|
||||
//将 Authentication 绑定到 SecurityContext
|
||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||
//生成Token
|
||||
String token = jwtTokenUtils.createToken(authentication);
|
||||
//将Token写入到Http头部
|
||||
response.addHeader(WebSecurityConfig.AUTHORIZATION_HEADER, "Bearer " + token);
|
||||
rr.setCode(200);
|
||||
rr.setData("Bearer " + token);
|
||||
return rr;
|
||||
} catch (BadCredentialsException authentication) {
|
||||
rr.setCode(401);
|
||||
rr.setMessage("Login failed");
|
||||
return rr;
|
||||
}
|
||||
}
|
||||
try {
|
||||
//通过 AuthenticationManager(默认实现为ProviderManager)的authenticate方法验证 Authentication 对象
|
||||
Authentication authentication = authenticationManager.authenticate(authenticationToken);
|
||||
//将 Authentication 绑定到 SecurityContext
|
||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||
//生成Token
|
||||
String token = jwtTokenUtils.createToken(authentication);
|
||||
//将Token写入到Http头部
|
||||
response.addHeader(WebSecurityConfig.AUTHORIZATION_HEADER, "Bearer " + token);
|
||||
rr.setCode(200);
|
||||
rr.setData("Bearer " + token);
|
||||
return rr;
|
||||
} catch (BadCredentialsException authentication) {
|
||||
rr.setCode(401);
|
||||
rr.setMessage("Login failed");
|
||||
return rr;
|
||||
}
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "password", method = RequestMethod.PUT)
|
||||
public RestResult<String> updatePassword(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam(value = "oldPassword", required = true) String oldPassword,
|
||||
@RequestParam(value = "newPassword", required = true) String newPassword) throws Exception {
|
||||
|
||||
RestResult<String> rr = new RestResult<String>();
|
||||
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
|
||||
String username = ((UserDetails) principal).getUsername();
|
||||
UserDetails userDetails = userDetailsService.loadUserByUsername(username);
|
||||
String password = userDetails.getPassword();
|
||||
|
||||
// TODO: throw out more fine grained exceptions
|
||||
try {
|
||||
if (PasswordEncoderUtil.matches(oldPassword, password)) {
|
||||
userDetailsService.updateUserPassword(username, PasswordEncoderUtil.encode(newPassword));
|
||||
rr.setCode(200);
|
||||
rr.setMessage("Update password success");
|
||||
} else {
|
||||
rr.setCode(401);
|
||||
rr.setMessage("Old password is invalid");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
rr.setCode(500);
|
||||
rr.setMessage("Update userpassword failed");
|
||||
}
|
||||
return rr;
|
||||
}
|
||||
}
|
||||
+60
-60
@@ -35,74 +35,74 @@ import javax.servlet.http.HttpServletRequest;
|
||||
@RequestMapping("/v1/console/health")
|
||||
public class HealthController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(HealthController.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(HealthController.class);
|
||||
|
||||
private final PersistService persistService;
|
||||
private final OperatorController apiCommands;
|
||||
private final PersistService persistService;
|
||||
private final OperatorController apiCommands;
|
||||
|
||||
@Autowired
|
||||
public HealthController(PersistService persistService, OperatorController apiCommands) {
|
||||
this.persistService = persistService;
|
||||
this.apiCommands = apiCommands;
|
||||
}
|
||||
@Autowired
|
||||
public HealthController(PersistService persistService, OperatorController apiCommands) {
|
||||
this.persistService = persistService;
|
||||
this.apiCommands = apiCommands;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the Nacos is in broken states or not, and cannot recover except by being restarted
|
||||
*
|
||||
* @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that
|
||||
* Nacos is in broken states.
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "liveness", method = RequestMethod.GET)
|
||||
public ResponseEntity liveness() {
|
||||
return ResponseEntity.ok().body("OK");
|
||||
}
|
||||
/**
|
||||
* Whether the Nacos is in broken states or not, and cannot recover except by being restarted
|
||||
*
|
||||
* @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that
|
||||
* Nacos is in broken states.
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "liveness", method = RequestMethod.GET)
|
||||
public ResponseEntity liveness() {
|
||||
return ResponseEntity.ok().body("OK");
|
||||
}
|
||||
|
||||
/**
|
||||
* Ready to receive the request or not
|
||||
*
|
||||
* @return HTTP code equal to 200 indicates that Nacos is ready. HTTP code equal to 500 indicates that Nacos is not
|
||||
* ready.
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "readiness", method = RequestMethod.GET)
|
||||
public ResponseEntity readiness(HttpServletRequest request) {
|
||||
boolean isConfigReadiness = isConfigReadiness();
|
||||
boolean isNamingReadiness = isNamingReadiness(request);
|
||||
/**
|
||||
* Ready to receive the request or not
|
||||
*
|
||||
* @return HTTP code equal to 200 indicates that Nacos is ready. HTTP code equal to 500 indicates that Nacos is not
|
||||
* ready.
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "readiness", method = RequestMethod.GET)
|
||||
public ResponseEntity readiness(HttpServletRequest request) {
|
||||
boolean isConfigReadiness = isConfigReadiness();
|
||||
boolean isNamingReadiness = isNamingReadiness(request);
|
||||
|
||||
if (isConfigReadiness && isNamingReadiness) {
|
||||
return ResponseEntity.ok().body("OK");
|
||||
}
|
||||
if (isConfigReadiness && isNamingReadiness) {
|
||||
return ResponseEntity.ok().body("OK");
|
||||
}
|
||||
|
||||
if (!isConfigReadiness && !isNamingReadiness) {
|
||||
return ResponseEntity.status(500).body("Config and Naming are not in readiness");
|
||||
}
|
||||
if (!isConfigReadiness && !isNamingReadiness) {
|
||||
return ResponseEntity.status(500).body("Config and Naming are not in readiness");
|
||||
}
|
||||
|
||||
if (!isConfigReadiness) {
|
||||
return ResponseEntity.status(500).body("Config is not in readiness");
|
||||
}
|
||||
if (!isConfigReadiness) {
|
||||
return ResponseEntity.status(500).body("Config is not in readiness");
|
||||
}
|
||||
|
||||
return ResponseEntity.status(500).body("Naming is not in readiness");
|
||||
}
|
||||
return ResponseEntity.status(500).body("Naming is not in readiness");
|
||||
}
|
||||
|
||||
private boolean isConfigReadiness() {
|
||||
// check db
|
||||
try {
|
||||
persistService.configInfoCount("");
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
logger.error("Config health check fail.", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private boolean isConfigReadiness() {
|
||||
// check db
|
||||
try {
|
||||
persistService.configInfoCount("");
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
logger.error("Config health check fail.", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean isNamingReadiness(HttpServletRequest request) {
|
||||
try {
|
||||
apiCommands.metrics(request);
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
logger.error("Naming health check fail.", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private boolean isNamingReadiness(HttpServletRequest request) {
|
||||
try {
|
||||
apiCommands.metrics(request);
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
logger.error("Naming health check fail.", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+113
-113
@@ -44,123 +44,123 @@ import java.util.UUID;
|
||||
@RequestMapping("/v1/console/namespaces")
|
||||
public class NamespaceController {
|
||||
|
||||
@Autowired
|
||||
private transient PersistService persistService;
|
||||
@Autowired
|
||||
private transient PersistService persistService;
|
||||
|
||||
/**
|
||||
* Get namespace list
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @return namespace list
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
public RestResult<List<Namespace>> getNamespaces(HttpServletRequest request, HttpServletResponse response) {
|
||||
RestResult<List<Namespace>> rr = new RestResult<List<Namespace>>();
|
||||
rr.setCode(200);
|
||||
// TODO 获取用kp
|
||||
List<TenantInfo> tenantInfos = persistService.findTenantByKp("1");
|
||||
Namespace namespace0 = new Namespace("", "public", 200, persistService.configInfoCount(""), 0);
|
||||
List<Namespace> namespaces = new ArrayList<Namespace>();
|
||||
namespaces.add(namespace0);
|
||||
for (TenantInfo tenantInfo : tenantInfos) {
|
||||
int configCount = persistService.configInfoCount(tenantInfo.getTenantId());
|
||||
Namespace namespaceTmp = new Namespace(tenantInfo.getTenantId(), tenantInfo.getTenantName(), 200,
|
||||
configCount, 2);
|
||||
namespaces.add(namespaceTmp);
|
||||
}
|
||||
rr.setData(namespaces);
|
||||
return rr;
|
||||
}
|
||||
/**
|
||||
* Get namespace list
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @return namespace list
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
public RestResult<List<Namespace>> getNamespaces(HttpServletRequest request, HttpServletResponse response) {
|
||||
RestResult<List<Namespace>> rr = new RestResult<List<Namespace>>();
|
||||
rr.setCode(200);
|
||||
// TODO 获取用kp
|
||||
List<TenantInfo> tenantInfos = persistService.findTenantByKp("1");
|
||||
Namespace namespace0 = new Namespace("", "public", 200, persistService.configInfoCount(""), 0);
|
||||
List<Namespace> namespaces = new ArrayList<Namespace>();
|
||||
namespaces.add(namespace0);
|
||||
for (TenantInfo tenantInfo : tenantInfos) {
|
||||
int configCount = persistService.configInfoCount(tenantInfo.getTenantId());
|
||||
Namespace namespaceTmp = new Namespace(tenantInfo.getTenantId(), tenantInfo.getTenantName(), 200,
|
||||
configCount, 2);
|
||||
namespaces.add(namespaceTmp);
|
||||
}
|
||||
rr.setData(namespaces);
|
||||
return rr;
|
||||
}
|
||||
|
||||
/**
|
||||
* get namespace all info by namespace id
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespaceId namespaceId
|
||||
* @return namespace all info
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(params = "show=all", method = RequestMethod.GET)
|
||||
public NamespaceAllInfo getNamespace(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespaceId") String namespaceId) {
|
||||
// TODO 获取用kp
|
||||
if (StringUtils.isBlank(namespaceId)) {
|
||||
NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, "Public", 200, persistService.configInfoCount(""), 0,
|
||||
"Public Namespace");
|
||||
return namespaceTmp;
|
||||
} else {
|
||||
TenantInfo tenantInfo = persistService.findTenantByKp("1", namespaceId);
|
||||
int configCount = persistService.configInfoCount(namespaceId);
|
||||
NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, tenantInfo.getTenantName(), 200,
|
||||
configCount, 2, tenantInfo.getTenantDesc());
|
||||
return namespaceTmp;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* get namespace all info by namespace id
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespaceId namespaceId
|
||||
* @return namespace all info
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(params = "show=all", method = RequestMethod.GET)
|
||||
public NamespaceAllInfo getNamespace(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespaceId") String namespaceId) {
|
||||
// TODO 获取用kp
|
||||
if (StringUtils.isBlank(namespaceId)) {
|
||||
NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, "Public", 200, persistService.configInfoCount(""), 0,
|
||||
"Public Namespace");
|
||||
return namespaceTmp;
|
||||
} else {
|
||||
TenantInfo tenantInfo = persistService.findTenantByKp("1", namespaceId);
|
||||
int configCount = persistService.configInfoCount(namespaceId);
|
||||
NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, tenantInfo.getTenantName(), 200,
|
||||
configCount, 2, tenantInfo.getTenantDesc());
|
||||
return namespaceTmp;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* create namespace
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespaceName namespace Name
|
||||
* @param namespaceDesc namespace Desc
|
||||
* @return whether create ok
|
||||
* @throws NacosException
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public Boolean createNamespace(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespaceName") String namespaceName,
|
||||
@RequestParam(value = "namespaceDesc", required = false) String namespaceDesc)
|
||||
throws NacosException {
|
||||
// TODO 获取用kp
|
||||
String namespaceId = UUID.randomUUID().toString();
|
||||
persistService.insertTenantInfoAtomic("1", namespaceId, namespaceName, namespaceDesc, "nacos",
|
||||
System.currentTimeMillis());
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* create namespace
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespaceName namespace Name
|
||||
* @param namespaceDesc namespace Desc
|
||||
* @return whether create ok
|
||||
* @throws NacosException
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public Boolean createNamespace(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespaceName") String namespaceName,
|
||||
@RequestParam(value = "namespaceDesc", required = false) String namespaceDesc)
|
||||
throws NacosException {
|
||||
// TODO 获取用kp
|
||||
String namespaceId = UUID.randomUUID().toString();
|
||||
persistService.insertTenantInfoAtomic("1", namespaceId, namespaceName, namespaceDesc, "nacos",
|
||||
System.currentTimeMillis());
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* edit namespace
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespace namespace
|
||||
* @param namespaceShowName namespace ShowName
|
||||
* @param namespaceDesc namespace Desc
|
||||
* @return whether edit ok
|
||||
* @throws NacosException NacosException
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.PUT)
|
||||
@ResponseBody
|
||||
public Boolean editNamespace(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespace") String namespace,
|
||||
@RequestParam("namespaceShowName") String namespaceShowName,
|
||||
@RequestParam(value = "namespaceDesc", required = false) String namespaceDesc)
|
||||
throws NacosException {
|
||||
// TODO 获取用kp
|
||||
persistService.updateTenantNameAtomic("1", namespace, namespaceShowName, namespaceDesc);
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* edit namespace
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespace namespace
|
||||
* @param namespaceShowName namespace ShowName
|
||||
* @param namespaceDesc namespace Desc
|
||||
* @return whether edit ok
|
||||
* @throws NacosException NacosException
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.PUT)
|
||||
@ResponseBody
|
||||
public Boolean editNamespace(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespace") String namespace,
|
||||
@RequestParam("namespaceShowName") String namespaceShowName,
|
||||
@RequestParam(value = "namespaceDesc", required = false) String namespaceDesc)
|
||||
throws NacosException {
|
||||
// TODO 获取用kp
|
||||
persistService.updateTenantNameAtomic("1", namespace, namespaceShowName, namespaceDesc);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* del namespace by id
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespaceId namespace Id
|
||||
* @return whether del ok
|
||||
* @throws NacosException NacosException
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.DELETE)
|
||||
@ResponseBody
|
||||
public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespaceId") String namespaceId) throws NacosException {
|
||||
persistService.removeTenantInfoAtomic("1", namespaceId);
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* del namespace by id
|
||||
*
|
||||
* @param request request
|
||||
* @param response response
|
||||
* @param namespaceId namespace Id
|
||||
* @return whether del ok
|
||||
* @throws NacosException NacosException
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.DELETE)
|
||||
@ResponseBody
|
||||
public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam("namespaceId") String namespaceId) throws NacosException {
|
||||
persistService.removeTenantInfoAtomic("1", namespaceId);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
+13
-13
@@ -25,7 +25,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -37,24 +36,25 @@ import java.util.Map;
|
||||
@RequestMapping("/v1/console/server")
|
||||
public class ServerStateController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ServerStateController.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(ServerStateController.class);
|
||||
|
||||
|
||||
public static String VERSION;
|
||||
public static String VERSION ;
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "state", method = RequestMethod.GET)
|
||||
public ResponseEntity serverState() {
|
||||
Map<String, String> serverState = new HashMap<String, String>(3);
|
||||
serverState.put("standalone_mode", SystemUtils.STANDALONE_MODE ?
|
||||
SystemUtils.STANDALONE_MODE_ALONE : SystemUtils.STANDALONE_MODE_CLUSTER);
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "state", method = RequestMethod.GET)
|
||||
public ResponseEntity serverState() {
|
||||
Map<String,String> serverState = new HashMap<String, String>(3);
|
||||
serverState.put("standalone_mode",SystemUtils.STANDALONE_MODE ?
|
||||
SystemUtils.STANDALONE_MODE_ALONE : SystemUtils.STANDALONE_MODE_CLUSTER);
|
||||
|
||||
serverState.put("function_mode", SystemUtils.FUNCTION_MODE);
|
||||
serverState.put("version", VersionUtils.VERSION);
|
||||
serverState.put("function_mode", SystemUtils.FUNCTION_MODE);
|
||||
serverState.put("version", VersionUtils.VERSION);
|
||||
|
||||
return ResponseEntity.ok().body(serverState);
|
||||
}
|
||||
|
||||
return ResponseEntity.ok().body(serverState);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+36
-36
@@ -35,46 +35,46 @@ import java.io.IOException;
|
||||
*/
|
||||
public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
|
||||
|
||||
private static final String TOKEN_PREFIX = "Bearer ";
|
||||
private static final String TOKEN_PREFIX = "Bearer ";
|
||||
|
||||
private JwtTokenUtils tokenProvider;
|
||||
private JwtTokenUtils tokenProvider;
|
||||
|
||||
public JwtAuthenticationTokenFilter(JwtTokenUtils tokenProvider) {
|
||||
this.tokenProvider = tokenProvider;
|
||||
}
|
||||
public JwtAuthenticationTokenFilter(JwtTokenUtils tokenProvider) {
|
||||
this.tokenProvider = tokenProvider;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
|
||||
String jwt = resolveToken(request);
|
||||
@Override
|
||||
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
|
||||
String jwt = resolveToken(request);
|
||||
|
||||
if (jwt != null && !"".equals(jwt.trim()) && SecurityContextHolder.getContext().getAuthentication() == null) {
|
||||
if (this.tokenProvider.validateToken(jwt)) {
|
||||
/**
|
||||
* get auth info
|
||||
*/
|
||||
Authentication authentication = this.tokenProvider.getAuthentication(jwt);
|
||||
/**
|
||||
* save user info to securityContext
|
||||
*/
|
||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||
}
|
||||
}
|
||||
if (jwt != null && !"".equals(jwt.trim()) && SecurityContextHolder.getContext().getAuthentication() == null) {
|
||||
if (this.tokenProvider.validateToken(jwt)) {
|
||||
/**
|
||||
* get auth info
|
||||
*/
|
||||
Authentication authentication = this.tokenProvider.getAuthentication(jwt);
|
||||
/**
|
||||
* save user info to securityContext
|
||||
*/
|
||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||
}
|
||||
}
|
||||
|
||||
chain.doFilter(request, response);
|
||||
}
|
||||
chain.doFilter(request, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get token from header
|
||||
*/
|
||||
private String resolveToken(HttpServletRequest request) {
|
||||
String bearerToken = request.getHeader(WebSecurityConfig.AUTHORIZATION_HEADER);
|
||||
if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(TOKEN_PREFIX)) {
|
||||
return bearerToken.substring(7);
|
||||
}
|
||||
String jwt = request.getParameter(WebSecurityConfig.AUTHORIZATION_TOKEN);
|
||||
if (StringUtils.hasText(jwt)) {
|
||||
return jwt;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Get token from header
|
||||
*/
|
||||
private String resolveToken(HttpServletRequest request) {
|
||||
String bearerToken = request.getHeader(WebSecurityConfig.AUTHORIZATION_HEADER);
|
||||
if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(TOKEN_PREFIX)) {
|
||||
return bearerToken.substring(7, bearerToken.length());
|
||||
}
|
||||
String jwt = request.getParameter(WebSecurityConfig.AUTHORIZATION_TOKEN);
|
||||
if (StringUtils.hasText(jwt)) {
|
||||
return jwt;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -22,72 +22,72 @@ package com.alibaba.nacos.console.model;
|
||||
*/
|
||||
public class Namespace {
|
||||
|
||||
private String namespace;
|
||||
private String namespace;
|
||||
|
||||
private String namespaceShowName;
|
||||
private String namespaceShowName;
|
||||
|
||||
private int quota;
|
||||
private int quota;
|
||||
|
||||
private int configCount;
|
||||
/**
|
||||
* 0 : Global configuration, 1 : Default private namespace ,2 : Custom namespace
|
||||
*/
|
||||
private int type;
|
||||
private int configCount;
|
||||
/**
|
||||
* 0 : Global configuration, 1 : Default private namespace ,2 : Custom namespace
|
||||
*/
|
||||
private int type;
|
||||
|
||||
public Namespace() {
|
||||
}
|
||||
public String getNamespaceShowName() {
|
||||
return namespaceShowName;
|
||||
}
|
||||
|
||||
public Namespace(String namespace, String namespaceShowName) {
|
||||
this.namespace = namespace;
|
||||
this.namespaceShowName = namespaceShowName;
|
||||
}
|
||||
public void setNamespaceShowName(String namespaceShowName) {
|
||||
this.namespaceShowName = namespaceShowName;
|
||||
}
|
||||
|
||||
public Namespace(String namespace, String namespaceShowName, int quota, int configCount, int type) {
|
||||
this.namespace = namespace;
|
||||
this.namespaceShowName = namespaceShowName;
|
||||
this.quota = quota;
|
||||
this.configCount = configCount;
|
||||
this.type = type;
|
||||
}
|
||||
public String getNamespace() {
|
||||
return namespace;
|
||||
}
|
||||
|
||||
public String getNamespaceShowName() {
|
||||
return namespaceShowName;
|
||||
}
|
||||
public void setNamespace(String namespace) {
|
||||
this.namespace = namespace;
|
||||
}
|
||||
|
||||
public void setNamespaceShowName(String namespaceShowName) {
|
||||
this.namespaceShowName = namespaceShowName;
|
||||
}
|
||||
public Namespace() {
|
||||
}
|
||||
|
||||
public String getNamespace() {
|
||||
return namespace;
|
||||
}
|
||||
public Namespace(String namespace, String namespaceShowName) {
|
||||
this.namespace = namespace;
|
||||
this.namespaceShowName = namespaceShowName;
|
||||
}
|
||||
|
||||
public void setNamespace(String namespace) {
|
||||
this.namespace = namespace;
|
||||
}
|
||||
public Namespace(String namespace, String namespaceShowName, int quota, int configCount, int type) {
|
||||
this.namespace = namespace;
|
||||
this.namespaceShowName = namespaceShowName;
|
||||
this.quota = quota;
|
||||
this.configCount = configCount;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getQuota() {
|
||||
return quota;
|
||||
}
|
||||
public int getQuota() {
|
||||
return quota;
|
||||
}
|
||||
|
||||
public void setQuota(int quota) {
|
||||
this.quota = quota;
|
||||
}
|
||||
public void setQuota(int quota) {
|
||||
this.quota = quota;
|
||||
}
|
||||
|
||||
public int getConfigCount() {
|
||||
return configCount;
|
||||
}
|
||||
public int getConfigCount() {
|
||||
return configCount;
|
||||
}
|
||||
|
||||
public void setConfigCount(int configCount) {
|
||||
this.configCount = configCount;
|
||||
}
|
||||
public void setConfigCount(int configCount) {
|
||||
this.configCount = configCount;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,23 +22,23 @@ package com.alibaba.nacos.console.model;
|
||||
*/
|
||||
public class NamespaceAllInfo extends Namespace {
|
||||
|
||||
private String namespaceDesc;
|
||||
private String namespaceDesc;
|
||||
|
||||
public NamespaceAllInfo() {
|
||||
}
|
||||
public String getNamespaceDesc() {
|
||||
return namespaceDesc;
|
||||
}
|
||||
|
||||
public NamespaceAllInfo(String namespace, String namespaceShowName, int quota, int configCount, int type,
|
||||
String namespaceDesc) {
|
||||
super(namespace, namespaceShowName, quota, configCount, type);
|
||||
this.namespaceDesc = namespaceDesc;
|
||||
}
|
||||
public void setNamespaceDesc(String namespaceDesc) {
|
||||
this.namespaceDesc = namespaceDesc;
|
||||
}
|
||||
|
||||
public String getNamespaceDesc() {
|
||||
return namespaceDesc;
|
||||
}
|
||||
public NamespaceAllInfo() {
|
||||
}
|
||||
|
||||
public void setNamespaceDesc(String namespaceDesc) {
|
||||
this.namespaceDesc = namespaceDesc;
|
||||
}
|
||||
public NamespaceAllInfo(String namespace, String namespaceShowName, int quota, int configCount, int type,
|
||||
String namespaceDesc) {
|
||||
super(namespace, namespaceShowName, quota, configCount, type);
|
||||
this.namespaceDesc = namespaceDesc;
|
||||
}
|
||||
|
||||
}
|
||||
+16
-16
@@ -31,25 +31,25 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class CustomAuthenticationProvider implements AuthenticationProvider {
|
||||
|
||||
@Autowired
|
||||
private CustomUserDetailsServiceImpl userDetailsService;
|
||||
@Autowired
|
||||
private CustomUserDetailsServiceImpl userDetailsService;
|
||||
|
||||
@Override
|
||||
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
|
||||
@Override
|
||||
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
|
||||
|
||||
String username = (String) authentication.getPrincipal();
|
||||
String password = (String) authentication.getCredentials();
|
||||
UserDetails userDetails = userDetailsService.loadUserByUsername(username);
|
||||
String username = (String) authentication.getPrincipal();
|
||||
String password = (String) authentication.getCredentials();
|
||||
UserDetails userDetails = userDetailsService.loadUserByUsername(username);
|
||||
|
||||
if (!password.equals(userDetails.getPassword())) {
|
||||
return new UsernamePasswordAuthenticationToken(username, null, null);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if (!password.equals(userDetails.getPassword())) {
|
||||
return new UsernamePasswordAuthenticationToken(username, null, null);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supports(Class<?> aClass) {
|
||||
return aClass.equals(UsernamePasswordAuthenticationToken.class);
|
||||
}
|
||||
@Override
|
||||
public boolean supports(Class<?> aClass) {
|
||||
return aClass.equals(UsernamePasswordAuthenticationToken.class);
|
||||
}
|
||||
|
||||
}
|
||||
+33
-33
@@ -29,45 +29,45 @@ import java.util.Collection;
|
||||
*/
|
||||
public class CustomUserDetails implements UserDetails {
|
||||
|
||||
private User user;
|
||||
private User user;
|
||||
|
||||
public CustomUserDetails(User user) {
|
||||
this.user = user;
|
||||
}
|
||||
public CustomUserDetails(User user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<? extends GrantedAuthority> getAuthorities() {
|
||||
// TODO: get authorities
|
||||
return AuthorityUtils.commaSeparatedStringToAuthorityList("");
|
||||
}
|
||||
@Override
|
||||
public Collection<? extends GrantedAuthority> getAuthorities() {
|
||||
// TODO: get authorities
|
||||
return AuthorityUtils.commaSeparatedStringToAuthorityList("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPassword() {
|
||||
return user.getPassword();
|
||||
}
|
||||
@Override
|
||||
public String getPassword() {
|
||||
return user.getPassword();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUsername() {
|
||||
return user.getUsername();
|
||||
}
|
||||
@Override
|
||||
public String getUsername() {
|
||||
return user.getUsername();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAccountNonExpired() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isAccountNonExpired() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAccountNonLocked() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isAccountNonLocked() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCredentialsNonExpired() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isCredentialsNonExpired() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+14
-10
@@ -32,15 +32,19 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class CustomUserDetailsServiceImpl implements UserDetailsService {
|
||||
|
||||
@Autowired
|
||||
private transient PersistService persistService;
|
||||
@Autowired
|
||||
private transient PersistService persistService;
|
||||
|
||||
@Override
|
||||
public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException {
|
||||
User user = persistService.findUserByUsername(userName);
|
||||
if (user == null) {
|
||||
throw new UsernameNotFoundException(userName);
|
||||
}
|
||||
return new CustomUserDetails(user);
|
||||
}
|
||||
@Override
|
||||
public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException {
|
||||
User user = persistService.findUserByUsername(userName);
|
||||
if (user == null) {
|
||||
throw new UsernameNotFoundException(userName);
|
||||
}
|
||||
return new CustomUserDetails(user);
|
||||
}
|
||||
|
||||
public void updateUserPassword(String username, String password) throws Exception {
|
||||
persistService.updateUserPassword(username, password);
|
||||
}
|
||||
}
|
||||
+8
-8
@@ -34,13 +34,13 @@ import java.io.IOException;
|
||||
@Component
|
||||
public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(JwtAuthenticationEntryPoint.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(JwtAuthenticationEntryPoint.class);
|
||||
|
||||
@Override
|
||||
public void commence(HttpServletRequest httpServletRequest,
|
||||
HttpServletResponse httpServletResponse,
|
||||
AuthenticationException e) throws IOException, ServletException {
|
||||
logger.error("Responding with unauthorized error. Message - {}", e.getMessage());
|
||||
httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
|
||||
}
|
||||
@Override
|
||||
public void commence(HttpServletRequest httpServletRequest,
|
||||
HttpServletResponse httpServletResponse,
|
||||
AuthenticationException e) throws IOException, ServletException {
|
||||
logger.error("Responding with unauthorized error. Message - {}", e.getMessage());
|
||||
httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
|
||||
}
|
||||
}
|
||||
@@ -38,100 +38,102 @@ import java.util.List;
|
||||
@Component
|
||||
public class JwtTokenUtils {
|
||||
|
||||
private static final String AUTHORITIES_KEY = "auth";
|
||||
private final Logger log = LoggerFactory.getLogger(JwtTokenUtils.class);
|
||||
/**
|
||||
* secret key
|
||||
*/
|
||||
private String secretKey;
|
||||
private final Logger log = LoggerFactory.getLogger(JwtTokenUtils.class);
|
||||
|
||||
/**
|
||||
* Token validity time(ms)
|
||||
*/
|
||||
private long tokenValidityInMilliseconds;
|
||||
private static final String AUTHORITIES_KEY = "auth";
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
this.secretKey = "SecretKey012345678901234567890123456789012345678901234567890123456789";
|
||||
this.tokenValidityInMilliseconds = 1000 * 60 * 30L;
|
||||
}
|
||||
/**
|
||||
* secret key
|
||||
*/
|
||||
private String secretKey;
|
||||
|
||||
/**
|
||||
* Create token
|
||||
*
|
||||
* @param authentication auth info
|
||||
* @return token
|
||||
*/
|
||||
public String createToken(Authentication authentication) {
|
||||
/**
|
||||
* Current time
|
||||
*/
|
||||
long now = (new Date()).getTime();
|
||||
/**
|
||||
* Validity date
|
||||
*/
|
||||
Date validity;
|
||||
validity = new Date(now + this.tokenValidityInMilliseconds);
|
||||
/**
|
||||
* Token validity time(ms)
|
||||
*/
|
||||
private long tokenValidityInMilliseconds;
|
||||
|
||||
/**
|
||||
* create token
|
||||
*/
|
||||
return Jwts.builder()
|
||||
.setSubject(authentication.getName())
|
||||
.claim(AUTHORITIES_KEY, "")
|
||||
.setExpiration(validity)
|
||||
.signWith(SignatureAlgorithm.HS256, secretKey)
|
||||
.compact();
|
||||
}
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
this.secretKey = "SecretKey012345678901234567890123456789012345678901234567890123456789";
|
||||
this.tokenValidityInMilliseconds = 1000 * 60 * 30L;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get auth Info
|
||||
*
|
||||
* @param token token
|
||||
* @return auth info
|
||||
*/
|
||||
public Authentication getAuthentication(String token) {
|
||||
/**
|
||||
* parse the payload of token
|
||||
*/
|
||||
Claims claims = Jwts.parser()
|
||||
.setSigningKey(secretKey)
|
||||
.parseClaimsJws(token)
|
||||
.getBody();
|
||||
/**
|
||||
* Create token
|
||||
*
|
||||
* @param authentication auth info
|
||||
* @return token
|
||||
*/
|
||||
public String createToken(Authentication authentication) {
|
||||
/**
|
||||
* Current time
|
||||
*/
|
||||
long now = (new Date()).getTime();
|
||||
/**
|
||||
* Validity date
|
||||
*/
|
||||
Date validity;
|
||||
validity = new Date(now + this.tokenValidityInMilliseconds);
|
||||
|
||||
List<GrantedAuthority> authorities = AuthorityUtils.commaSeparatedStringToAuthorityList((String) claims.get(AUTHORITIES_KEY));
|
||||
/**
|
||||
* create token
|
||||
*/
|
||||
return Jwts.builder()
|
||||
.setSubject(authentication.getName())
|
||||
.claim(AUTHORITIES_KEY, "")
|
||||
.setExpiration(validity)
|
||||
.signWith(SignatureAlgorithm.HS256, secretKey)
|
||||
.compact();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get auth Info
|
||||
*
|
||||
* @param token token
|
||||
* @return auth info
|
||||
*/
|
||||
public Authentication getAuthentication(String token) {
|
||||
/**
|
||||
* parse the payload of token
|
||||
*/
|
||||
Claims claims = Jwts.parser()
|
||||
.setSigningKey(secretKey)
|
||||
.parseClaimsJws(token)
|
||||
.getBody();
|
||||
|
||||
List<GrantedAuthority> authorities = AuthorityUtils.commaSeparatedStringToAuthorityList((String) claims.get(AUTHORITIES_KEY));
|
||||
|
||||
|
||||
User principal = new User(claims.getSubject(), "", authorities);
|
||||
return new UsernamePasswordAuthenticationToken(principal, "", authorities);
|
||||
}
|
||||
User principal = new User(claims.getSubject(), "", authorities);
|
||||
return new UsernamePasswordAuthenticationToken(principal, "", authorities);
|
||||
}
|
||||
|
||||
/**
|
||||
* validate token
|
||||
*
|
||||
* @param token token
|
||||
* @return whether valid
|
||||
*/
|
||||
public boolean validateToken(String token) {
|
||||
try {
|
||||
Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token);
|
||||
return true;
|
||||
} catch (SignatureException e) {
|
||||
log.info("Invalid JWT signature.");
|
||||
log.trace("Invalid JWT signature trace: {}", e);
|
||||
} catch (MalformedJwtException e) {
|
||||
log.info("Invalid JWT token.");
|
||||
log.trace("Invalid JWT token trace: {}", e);
|
||||
} catch (ExpiredJwtException e) {
|
||||
log.info("Expired JWT token.");
|
||||
log.trace("Expired JWT token trace: {}", e);
|
||||
} catch (UnsupportedJwtException e) {
|
||||
log.info("Unsupported JWT token.");
|
||||
log.trace("Unsupported JWT token trace: {}", e);
|
||||
} catch (IllegalArgumentException e) {
|
||||
log.info("JWT token compact of handler are invalid.");
|
||||
log.trace("JWT token compact of handler are invalid trace: {}", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* validate token
|
||||
*
|
||||
* @param token token
|
||||
* @return whether valid
|
||||
*/
|
||||
public boolean validateToken(String token) {
|
||||
try {
|
||||
Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token);
|
||||
return true;
|
||||
} catch (SignatureException e) {
|
||||
log.info("Invalid JWT signature.");
|
||||
log.trace("Invalid JWT signature trace: {}", e);
|
||||
} catch (MalformedJwtException e) {
|
||||
log.info("Invalid JWT token.");
|
||||
log.trace("Invalid JWT token trace: {}", e);
|
||||
} catch (ExpiredJwtException e) {
|
||||
log.info("Expired JWT token.");
|
||||
log.trace("Expired JWT token trace: {}", e);
|
||||
} catch (UnsupportedJwtException e) {
|
||||
log.info("Unsupported JWT token.");
|
||||
log.trace("Unsupported JWT token trace: {}", e);
|
||||
} catch (IllegalArgumentException e) {
|
||||
log.info("JWT token compact of handler are invalid.");
|
||||
log.trace("JWT token compact of handler are invalid trace: {}", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+11
-3
@@ -24,7 +24,15 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
*/
|
||||
public class PasswordEncoderUtil {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new BCryptPasswordEncoder().encode("nacos"));
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new BCryptPasswordEncoder().encode("nacos"));
|
||||
}
|
||||
|
||||
public static Boolean matches(String raw, String encoded) {
|
||||
return new BCryptPasswordEncoder().matches(raw, encoded);
|
||||
}
|
||||
|
||||
public static String encode(String raw) {
|
||||
return new BCryptPasswordEncoder().encode(raw);
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@
|
||||
"url": "git+https://github.com/alibaba/nacos.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alifd/next-theme-loader": "^1.3.1",
|
||||
"@babel/cli": "^7.2.3",
|
||||
"@babel/core": "^7.2.2",
|
||||
"@babel/plugin-proposal-decorators": "^7.2.3",
|
||||
@@ -33,7 +34,7 @@
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-loader": "^8.0.4",
|
||||
"babel-plugin-import": "^1.11.0",
|
||||
"babel-plugin-import": "^1.12.0",
|
||||
"babel-preset-react-app": "^6.1.0",
|
||||
"clean-webpack-plugin": "^0.1.19",
|
||||
"copy-webpack-plugin": "^4.6.0",
|
||||
@@ -63,7 +64,7 @@
|
||||
"webpack-dev-server": "^3.1.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@alifd/next": "^1.11.10",
|
||||
"@alifd/next": "^1.15.12",
|
||||
"axios": "^0.18.0",
|
||||
"jquery": "^3.3.1",
|
||||
"moment": "^2.23.0",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<!--
|
||||
2013-9-30: Created.
|
||||
-->
|
||||
<svg>
|
||||
<metadata>
|
||||
Created by iconfont
|
||||
</metadata>
|
||||
<defs>
|
||||
|
||||
<font id="iconfont" horiz-adv-x="1024" >
|
||||
<font-face
|
||||
font-family="iconfont"
|
||||
font-weight="500"
|
||||
font-stretch="normal"
|
||||
units-per-em="1024"
|
||||
ascent="896"
|
||||
descent="-128"
|
||||
/>
|
||||
<missing-glyph />
|
||||
|
||||
<glyph glyph-name="x" unicode="x" horiz-adv-x="1001"
|
||||
d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5
|
||||
t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5
|
||||
t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" />
|
||||
|
||||
|
||||
|
||||
<glyph glyph-name="upload" unicode="" d="M546.443364 882.023649A47.689428 47.689428 0 0 1 512.720297 896c-12.637659 0-24.775805-5.027091-33.719072-13.976351L215.553499 618.5519449999999c-18.630806-18.630806-18.630806-48.817327 0-67.45013 18.630806-18.629807 48.818326-18.629807 67.449131 0l182.022244 182.052214v-584.293401c0-26.331286 21.364137-47.695422 47.695423-47.695422 26.333284 0 47.695422 21.36114 47.695422 47.695422V733.159024l182.058209-182.057209c18.629807-18.629807 48.812332-18.629807 67.444136 0 18.630806 18.631805 18.630806 48.818326 0 67.45013L546.443364 882.023649zM931.211614 268.88741500000003v-263.925261c0-24.33024-19.656804-43.987044-43.988043-43.987044H136.278915c-24.33024 0-43.987044 19.656804-43.987044 43.987044V268.88741500000003c0 24.332238-19.656804 43.988043-43.987044 43.988043-24.33024 0-43.988043-19.655805-43.988043-43.988043v-307.912305c0-48.522615 39.451473-87.976086 87.975087-87.976086h838.920742c48.524613 0 87.976086 39.452472 87.976086 87.976086V268.88741500000003c0 24.332238-19.658802 43.988043-43.988043 43.988043-24.331239 0-43.989042-19.655805-43.989042-43.988043z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="loading" unicode="" d="M814.161762 173.760115c0-2.759851 2.510165-5.268993 5.265923-5.268993s5.2649 2.509142 5.2649 5.268993c0 2.755758-2.506072 5.270016-5.2649 5.270016C816.673974 179.031155 814.161762 176.516897 814.161762 173.760115M697.949203 53.731654c0-2.749618 1.129728-5.474677 3.067866-7.413839 1.937115-1.940185 4.66115-3.069912 7.400536-3.069912 2.746548 0 5.468537 1.129728 7.404629 3.069912s3.067866 4.666267 3.067866 7.413839c0 2.743478-1.130751 5.469561-3.067866 7.405652-1.937115 1.940185-4.66115 3.070936-7.404629 3.070936-2.742455 0-5.464444-1.129728-7.400536-3.070936C699.077907 59.201215 697.949203 56.475133 697.949203 53.731654M541.301803-8.05238c0-4.121869 1.692545-8.222249 4.606915-11.137642 2.912324-2.916417 7.007587-4.613055 11.126386-4.613055 4.114706 0 8.209969 1.696638 11.124339 4.613055 2.91437 2.915394 4.608962 7.013727 4.608962 11.137642 0 4.119823-1.694592 8.219179-4.608962 11.135596-2.91437 2.91744-7.009633 4.614078-11.124339 4.614078-4.118799 0-8.214062-1.696638-11.126386-4.614078C542.994348 0.166799 541.301803-3.931535 541.301803-8.05238M372.673558 0.225127c0-5.48491 2.259456-10.937075 6.133685-14.819491 3.87423-3.878323 9.324347-6.135732 14.808234-6.135732 5.480817 0 10.931958 2.257409 14.806188 6.135732 3.879346 3.882416 6.134708 9.33458 6.134708 14.819491 0 5.492073-2.255362 10.942191-6.134708 14.826654-3.87423 3.877299-9.324347 6.134708-14.806188 6.134708-5.482864 0-10.934005-2.257409-14.808234-6.134708C374.933014 11.167318 372.673558 5.7172 372.673558 0.225127M223.080817 77.065036c0-6.870464 2.824319-13.694879 7.674781-18.550458 4.850462-4.853532 11.669761-7.681944 18.533062-7.681944 6.856138 0 13.675437 2.828413 18.525898 7.681944 4.850462 4.855578 7.674781 11.679994 7.674781 18.550458 0 6.865348-2.824319 13.690786-7.674781 18.544318-4.850462 4.854555-11.669761 7.682968-18.525898 7.682968-6.863301 0-13.6826-2.828413-18.533062-7.682968C225.904113 90.755822 223.080817 83.930383 223.080817 77.065036M119.476388 207.691858c0-8.248855 3.390207-16.441428 9.214854-22.274262 5.826694-5.830787 14.018244-9.22918 22.252772-9.22918 8.240668 0 16.427102 3.39737 22.252772 9.22918 5.824647 5.830787 9.218947 14.025407 9.218947 22.274262 0 8.242715-3.393277 16.437335-9.218947 22.269145-5.825671 5.830787-14.012104 9.22918-22.252772 9.22918-8.234529 0-16.426078-3.396346-22.252772-9.22918C122.865571 224.129192 119.476388 215.934572 119.476388 207.691858M80.602087 368.079434c0-9.613943 3.955071-19.16444 10.742647-25.96225 6.787576-6.792693 16.329888-10.74674 25.933597-10.74674s19.144997 3.954047 25.933597 10.74674c6.787576 6.799856 10.742647 16.350354 10.742647 25.96225 0 9.609849-3.955071 19.160347-10.742647 25.958156-6.7886 6.79474-16.329888 10.748787-25.933597 10.748787s-19.146021-3.954047-25.933597-10.748787C84.55818 387.238758 80.602087 377.68826 80.602087 368.079434M112.591598 527.425287c0-10.990287 4.518911-21.916105 12.287836-29.686053 7.762785-7.770972 18.672231-12.293976 29.653308-12.293976s21.891546 4.523004 29.654331 12.293976c7.767902 7.769948 12.286813 18.695767 12.286813 29.686053 0 10.986193-4.518911 21.910989-12.286813 29.680937-7.762785 7.771995-18.673254 12.294999-29.654331 12.294999s-21.890522-4.523004-29.653308-12.294999C117.110509 549.337299 112.591598 538.41148 112.591598 527.425287M208.560131 655.90624c0-12.367654 5.089915-24.65856 13.827909-33.405764 8.739017-8.746181 21.021737-13.839165 33.378135-13.839165 12.357421 0 24.635024 5.095031 33.373018 13.839165 8.740041 8.747204 13.827909 21.03811 13.827909 33.405764 0 12.370724-5.087868 24.6647-13.827909 33.409857-8.737994 8.747204-21.015597 13.839165-33.373018 13.839165-12.356398 0-24.639117-5.092985-33.378135-13.839165C213.650046 680.569916 208.560131 668.276964 208.560131 655.90624M349.477299 729.503298c0-13.733765 5.648639-27.385666 15.348539-37.093752 9.703993-9.714226 23.338498-15.364912 37.059983-15.364912s27.357013 5.649662 37.05896 15.364912c9.705017 9.708087 15.354679 23.359987 15.354679 37.093752 0 13.734788-5.649662 27.379526-15.354679 37.094776-9.700923 9.708087-23.337475 15.363889-37.05896 15.363889s-27.354967-5.654779-37.059983-15.363889C355.125938 756.8818 349.477299 743.237063 349.477299 729.503298M507.749706 734.073374c0-15.112156 6.21248-30.131191 16.890658-40.817556 10.675109-10.686365 25.680841-16.911124 40.778671-16.911124 15.103969 0 30.109701 6.224759 40.783787 16.911124 10.675109 10.685342 16.890658 25.7054 16.890658 40.817556 0 15.113179-6.213503 30.132214-16.890658 40.822673-10.677156 10.686365-25.680841 16.906008-40.783787 16.906008-15.097829 0-30.103562-6.219643-40.778671-16.906008C513.962186 764.207635 507.749706 749.186553 507.749706 734.073374M652.653668 668.817268c0-16.477243 6.77939-32.852157 18.417428-44.500428 11.642131-11.655434 28.002718-18.435848 44.465635-18.435848 16.460871 0 32.821457 6.780413 44.459496 18.435848 11.642131 11.648271 18.417428 28.024208 18.417428 44.500428 0 16.478267-6.775297 32.85318-18.417428 44.507591-11.638038 11.649294-27.998625 Line truncated
|
||||
|
||||
|
||||
<glyph glyph-name="minus-font" unicode="" d="M970.74 330.304H54.264C24.842 330.304 1 354.13 1 383.549c0 29.419 23.842 53.248 53.264 53.248H970.74c29.42 0 53.26-23.829 53.26-53.248s-23.84-53.245-53.26-53.245z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="email" unicode="" d="M1024.512 584.249v197.659c0 26.512-21.51 48.023-48.023 48.023h-928.442c-26.512 0-48.023-21.51-48.023-48.023v-197.66c-0.023-0.874-0.025-1.748 0-2.62v-595.537c0-26.512 21.51-48.023 48.023-48.023h928.442c26.512 0 48.023 21.51 48.023 48.023v595.537c0.025 0.872 0.023 1.746 0 2.621zM928.466 733.885v-123.066l-416.198-237.793-416.198 237.793v123.066h832.396zM96.070 34.115v466.063l392.374-224.199c7.378-4.19 15.601-6.315 23.824-6.315 8.223 0 16.446 2.126 23.824 6.315l392.374 224.199v-466.063h-832.396z" horiz-adv-x="1025" />
|
||||
|
||||
|
||||
<glyph glyph-name="atm" unicode="" d="M512.202-128c-282.422 0-512.199 214.896-512.199 479.061 0 145.306 68.714 279.796 186.479 369.893-27.917 24.134-58.241 43.080-90.598 56.585-17.944 7.441-29.605 25.009-29.574 44.392 0.032 19.445 11.755 36.889 29.667 44.33 122.672 50.645 263.352 35.701 373.551-37.953 14.099 1.125 28.574 1.813 42.673 1.813 282.423 0 512.199-214.896 512.199-479.061s-229.776-479.060-512.198-479.060zM241.409 800.299c19.789-16.381 38.577-34.701 56.272-54.897 9.41-10.755 13.536-25.135 11.286-39.203-2.251-14.131-10.66-26.448-22.946-33.763-118.953-70.465-189.98-190.636-189.98-321.375 0-211.208 186.698-383.024 416.162-383.024s416.162 171.817 416.162 383.024-186.698 383.024-416.162 383.024c-16.788 0-34.201-1.188-50.364-3.002-11.974-1.188-24.072 1.876-33.794 9.004-55.084 40.579-119.235 62.399-186.635 60.211zM384.139 384.22c0-53.040 28.665-96.037 64.025-96.037s64.025 42.997 64.025 96.037c0 53.040-28.665 96.037-64.025 96.037-35.36 0-64.025-42.997-64.025-96.037zM640.239 384.22c-0-0-0-0-0-0 0-53.040 28.665-96.037 64.025-96.037 35.36 0 64.025 42.997 64.025 96.037 0 0 0 0 0 0 0 53.040-28.665 96.037-64.025 96.037-35.36 0-64.025-42.997-64.025-96.037z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="calendar" unicode="" d="M975.99 763.408h-84.562v84.593c0 26.499-21.499 48-47.999 48s-48-21.499-48-48v-84.593h-235.434v84.593c0 26.499-21.499 48-48 48s-47.999-21.499-47.999-48v-84.593h-235.402v84.593c0 26.499-21.499 48-48 48s-48-21.499-48-48v-84.593h-84.593c-26.499 0-48-21.499-48-48v-795.396c0-26.499 21.499-48 48-48h927.988c26.499 0 47.999 21.499 47.999 48v795.397c0.001 26.499-21.499 47.999-47.999 47.999zM927.991-31.988h-831.989v699.397h831.989v-699.397zM478.872 468.568h66.281c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.281c-26.499 0-48-21.499-48-48s21.5-48 48-48zM478.872 269.695h66.281c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.281c-26.499 0-48-21.499-48-48s21.5-48 48-48zM478.872 70.855h66.281c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.281c-26.499 0-48-21.499-48-48s21.5-48 48-48zM213.719 468.568h66.281c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.281c-26.499 0-48-21.499-48-48s21.5-48 48-48zM213.719 269.695h66.281c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.281c-26.499 0-48-21.499-48-48s21.5-48 48-48zM213.719 70.855h66.281c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.281c-26.499 0-48-21.499-48-48s21.5-48 48-48zM743.993 468.568h66.312c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.312c-26.499 0-47.999-21.499-47.999-48s21.499-48 47.999-48zM743.993 269.695h66.312c26.499 0 48 21.499 48 48s-21.499 48-48 48h-66.312c-26.499 0-47.999-21.499-47.999-48s21.499-48 47.999-48z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="account" unicode="" d="M680.049 469.398c48.199 45.082 78.797 108.735 78.797 179.789 0 136.062-110.719 246.813-246.844 246.813s-246.875-110.75-246.875-246.813c0-71.055 30.614-134.707 78.82-179.793-199.898-69.765-343.945-259.699-343.945-483.081v-66.312c0-26.5 21.5-48 48-48s48 21.5 48 48v66.312c0 229.375 186.625 416 416 416s416-186.625 416-416v-66.312c0-26.5 21.5-48 48-48s47.999 21.5 47.999 48v66.312c-0.001 223.386-144.052 413.32-343.955 483.085zM361.128 649.187c0 83.188 67.688 150.813 150.875 150.813s150.844-67.625 150.844-150.813-67.656-150.875-150.844-150.875-150.875 67.688-150.875 150.875z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="success" unicode="" d="M512.00307-128c-282.311999 0-512 229.686977-512 512S229.690047 896 512.00307 896 1024.00307 666.311999 1024.00307 384 794.31507-128 512.00307-128z m0 928.000064c-229.374854 0-416.000064-186.62521-416.000064-416.000064s186.62521-416.000064 416.000064-416.000064 416.000064 186.62521 416.000064 416.000064S741.377924 800.000064 512.00307 800.000064zM463.99645 160.006972a47.919635 47.919635 0 0 0-33.937531 14.062948L302.058663 302.069152c-18.749916 18.749916-18.749916 49.125147 0 67.875063s49.125147 18.749916 67.875063 0l85.687585-85.687585 191.875022 301.500935c14.187798 22.37464 43.81291 28.937417 66.249975 14.749619 22.37464-14.250222 28.999842-43.875335 14.74962-66.249974L504.495736 182.256762a47.87563 47.87563 0 0 0-35.250497-21.937667c-1.748914-0.187274-3.498852-0.312123-5.248789-0.312123z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="warning" unicode="" d="M1007.756059 120.994577L605.837042 764.028349c-20.264738 32.46126-55.290831 51.850577-93.568784 51.850577s-73.304046-19.389316-93.568784-51.850577L16.779433 120.994577c-21.265074-34.024733-22.391348-76.931672-2.939575-112.019198 19.389316-35.08855 56.416081-56.854304 96.508359-56.854305h803.839058c40.092278 0 77.119043 21.765754 96.508359 56.854305 19.451773 35.087526 18.326523 77.994465-2.939575 112.019198z m-81.058953-65.423201c-1.501016-2.752204-5.191099-7.380165-12.508807-7.380165H110.348217c-7.317708 0-11.007791 4.627962-12.508807 7.380165-1.501016 2.752204-3.502712 8.255587 0.375766 14.510503l401.920041 643.033772c3.627626 5.816693 9.19449 6.692114 12.134065 6.692115s8.506439-0.875422 12.134065-6.692115l401.920041-643.033772c3.87643-6.253892 1.874734-11.758299 0.373718-14.510503zM512.268258 271.918345c26.519654 0 48.03558 21.515926 48.03558 48.03558V501.773433c0 26.519654-21.515926 48.03558-48.03558 48.03558s-48.03558-21.515926-48.03558-48.03558v-181.820532c0-26.519654 21.515926-48.034556 48.03558-48.034556zM512.268258 159.825428m-64.047099 0a64.047099 64.047099 0 1 1 128.094198 0 64.047099 64.047099 0 1 1-128.094198 0Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="prompt" unicode="" d="M512.00307 896c-282.313023 0-512-229.686977-512-512s229.686977-512 512-512S1024.00307 101.688001 1024.00307 384 794.31507 896 512.00307 896z m0-928.000064c-229.374854 0-416.000064 186.62521-416.000064 416.000064S282.628216 800.000064 512.00307 800.000064s416.000064-186.62521 416.000064-416.000064-186.62521-416.000064-416.000064-416.000064zM512.00307 501.679718c-26.499785 0-48.00048-21.499671-48.00048-48.00048v-309.687777c0-26.499785 21.499671-48.00048 48.00048-48.000479 26.499785 0 48.00048 21.499671 48.00048 47.999456v309.687777c-0.001023 26.501832-21.500695 48.001503-48.00048 48.001503zM512.00307 613.690047m-63.999616 0a63.999616 63.999616 0 1 1 127.999232 0 63.999616 63.999616 0 1 1-127.999232 0Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="error" unicode="" d="M512.00307-128c-282.311999 0-512 229.686977-512 512S229.690047 896 512.00307 896 1024.00307 666.311999 1024.00307 384 794.31507-128 512.00307-128z m0 928.000064c-229.374854 0-416.000064-186.62521-416.000064-416.000064s186.62521-416.000064 416.000064-416.000064 416.000064 186.62521 416.000064 416.000064S741.377924 800.000064 512.00307 800.000064zM579.878133 384l126.062021 126.062021c18.749916 18.749916 18.749916 49.125147 0 67.875063-18.749916 18.749916-49.125147 18.749916-67.875063 0L512.00307 451.875063 385.940026 577.937084c-18.749916 18.749916-49.125147 18.749916-67.875063 0-18.749916-18.749916-18.749916-49.125147 0-67.875063l126.062021-126.062021-126.062021-126.062021c-18.749916-18.749916-18.749916-49.125147 0-67.875063 9.374958-9.374958 21.624521-14.062948 33.937531-14.062948s24.562574 4.687991 33.937532 14.062948l126.062021 126.062021L638.065091 190.062916c9.374958-9.374958 21.624521-14.062948 33.937531-14.062948s24.562574 4.687991 33.937532 14.062948c18.749916 18.749916 18.749916 49.125147 0 67.875063L579.878133 384z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="favorites-filling" unicode="" d="M798.746-126.805c-0.007-0-0.014-0-0.022-0-8.102 0-15.734 2.012-22.424 5.563l-264.3 137.997-264.559-138.123c-15.875-8.312-35.437-7-50.187 3.562s-22.25 28.562-19.437 46.437l49.937 317.308-213.371 209.185c-13 12.75-17.687 31.75-12 49.062 5.823 17.635 21.129 30.568 39.729 32.851l293.141 43.46 133.185 288.808c15.625 33.999 71.499 33.999 87.124 0l133.185-288.808 294.308-43.624c18.693-2.862 33.662-16.179 38.889-33.697 5.36-16.302 0.673-35.302-12.327-48.052l-213.371-209.184 49.937-317.308c2.812-17.875-4.687-35.874-19.437-46.437-7.779-5.624-17.507-8.996-28.024-9z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="arrow-right" unicode="" d="M224.064 846.129c20.656 17.708 51.778 15.332 69.489-5.323l513.385-423.824c15.848-18.479 15.848-45.688 0-64.167L293.554-71.01300000000003c-17.711-20.666-48.833-23.037-69.489-5.324-20.604 17.709-23.035 48.789-5.326 69.486l485.887 391.746L218.738 776.64c-7.992 9.298-11.871 20.688-11.871 32.046 0 13.894 5.84 27.685 17.197 37.443z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="arrow-left" unicode="" d="M827.824 808.686c0-11.358-3.879-22.748-11.871-32.045L330.067 384.896 815.953-6.850000000000023c17.709-20.696 15.278-51.776-5.326-69.486-20.656-17.712-51.778-15.341-69.489 5.324L227.753 352.81399999999996c-15.848 18.479-15.848 45.688 0 64.167L741.138 840.806c17.711 20.656 48.833 23.031 69.489 5.323 11.357-9.758 17.197-23.549 17.197-37.443z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="arrow-up" unicode="" d="M936.638 78.91499999999996c-11.358 0-22.748 3.879-32.046 11.871L512.848 576.673 121.101 90.78599999999994c-20.696-17.709-51.776-15.278-69.486 5.326-17.712 20.656-15.341 51.778 5.324 69.489l423.828 513.385c18.479 15.848 45.688 15.848 64.167 0l423.824-513.385c20.655-17.711 23.031-48.833 5.323-69.489-9.758-11.357-23.549-17.197-37.443-17.197z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="arrow-down" unicode="" d="M974.081 673.675c17.708-20.656 15.332-51.778-5.323-69.489L544.934 90.80100000000004c-18.479-15.848-45.688-15.848-64.167 0L56.939 604.1859999999999c-20.665 17.711-23.036 48.833-5.324 69.489 17.71 20.604 48.79 23.035 69.486 5.326l391.747-485.887 391.744 485.887c9.298 7.992 20.688 11.871 32.046 11.871 13.894 0 27.685-5.84 37.443-17.197z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="add" unicode="" d="M970.74 330.304H54.264C24.842 330.304 1 354.13 1 383.549c0 29.419 23.842 53.248 53.264 53.248H970.74c29.42 0 53.26-23.829 53.26-53.248s-23.84-53.245-53.26-53.245zM565.497 841.7909999999999v-916.476c0-29.422-23.825-53.264-53.243-53.264-29.42 0-53.249 23.842-53.249 53.264V841.7909999999999c0 29.42 23.829 53.26 53.249 53.26 29.418 0 53.243-23.84 53.243-53.26z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="arrow-double-left" unicode="" d="M1024 808.686c0-11.357-3.88-22.748-11.871-32.046L526.241 384.895l485.888-391.746c17.709-20.697 15.277-51.777-5.326-69.486-20.656-17.713-51.778-15.342-69.489 5.324L423.929 352.81399999999996c-15.848 18.479-15.848 45.688 0 64.167L937.313 840.806c17.711 20.655 48.833 23.031 69.489 5.323C1018.159 836.371 1024 822.58 1024 808.686zM611.957 808.688c0-11.357-3.879-22.748-11.871-32.046L114.199 384.896l485.887-391.745c17.709-20.697 15.278-51.777-5.325-69.486-20.656-17.713-51.778-15.342-69.489 5.324L11.887 352.81600000000003c-15.849 18.479-15.849 45.688 0 64.167L525.272 840.808c17.711 20.655 48.833 23.031 69.489 5.323 11.356-9.758 17.196-23.549 17.196-37.443z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="arrow-double-right" unicode="" d="M17.2 846.129c20.656 17.708 51.778 15.332 69.489-5.323l513.385-423.824c15.848-18.479 15.848-45.688 0-64.167L86.69-71.01300000000003c-17.711-20.666-48.833-23.037-69.489-5.324-20.604 17.709-23.035 48.789-5.326 69.486l485.887 391.746L11.874 776.64C3.883 785.938 0.004 797.328 0.004 808.686 0.003 822.58 5.843 836.371 17.2 846.129zM429.376 846.131c20.656 17.708 51.778 15.332 69.489-5.323l513.385-423.824c15.849-18.479 15.849-45.688 0-64.167L498.865-71.01099999999997c-17.711-20.666-48.833-23.037-69.489-5.324-20.604 17.709-23.034 48.789-5.325 69.486l485.887 391.745-485.888 391.746c-7.992 9.298-11.871 20.688-11.871 32.046 0 13.894 5.84 27.685 17.197 37.443z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="close" unicode="" d="M579.87 383.992l430.070 430.070c18.75 18.75 18.75 49.125 0 67.875s-49.125 18.75-67.875 0l-430.070-430.070-430.055 430.070c-18.75 18.75-49.125 18.75-67.875 0s-18.75-49.125 0-67.875l430.055-430.070-430.055-430.054c-18.75-18.75-18.75-49.125 0-67.875 9.375-9.375 21.656-14.063 33.938-14.063s24.563 4.688 33.938 14.063l430.055 430.055 430.040-430.055c9.375-9.375 21.656-14.063 33.938-14.063s24.563 4.688 33.938 14.063c18.75 18.75 18.75 49.125 0 67.875l-430.040 430.054z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="search" unicode="" d="M1011.652-54.011999999999944L725.986 232.029c56.988 70.097 91.285 159.354 91.285 256.541C817.271 713.249 634.524 896 409.841 896 185.165 896 2.409 713.249 2.409 488.57c0-224.681 182.755-407.431 407.431-407.431 97.186 0 186.444 34.298 256.541 91.289l285.67-286.045c8.233-8.228 18.989-12.346 29.799-12.346 10.813 0 21.57 4.118 29.802 12.346 16.464 16.464 16.464 43.141 0 59.605zM86.705 488.57c0 178.199 144.941 323.134 323.135 323.134 178.199 0 323.134-144.936 323.134-323.134S588.038 165.43499999999995 409.84 165.43499999999995c-178.193 0-323.135 144.936-323.135 323.135z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="ascending" unicode="" d="M750.794525 542.875168c-20.81262-16.437641-51.03119-12.812804-67.37468 8.062243L558.857281 709.31268v-789.312762c0-26.499581-21.500336-47.999918-47.999918-47.999918s-47.999918 21.500336-47.999918 47.999918V848.000031c0 20.468762 12.968359 38.656395 32.312419 45.37493a47.762492 47.762492 0 0 0 15.687499 2.624988c14.437943 0 28.468578-6.531255 37.718972-18.344211L758.85779 610.248824c16.405916-20.810573 12.780056-50.998441-8.063265-67.373656z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="descending" unicode="" d="M269.62971 225.123808c20.81262 16.437641 51.03119 12.812804 67.37468-8.062242l124.562564-158.375269V848.000082c0 26.499581 21.500336 47.999918 47.999918 47.999918s47.999918-21.500336 47.999918-47.999918v-928.000113c0-20.468762-12.968359-38.656395-32.31242-45.37493a47.762492 47.762492 0 0 0-15.687498-2.624988c-14.437943 0-28.468578 6.531255-37.718972 18.344211L261.566445 157.749129c-16.405916 20.81262-12.781079 51.000488 8.063265 67.374679z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="clock" unicode="" d="M512.00307 896c-282.311999 0-512-229.686977-512-512s229.686977-512 512-512S1024.00307 101.688001 1024.00307 384 794.31507 896 512.00307 896z m0-928.000064c-229.374854 0-416.000064 186.62521-416.000064 416.000064S282.628216 800.000064 512.00307 800.000064s416.000064-186.62521 416.000064-416.000064-186.62521-416.000064-416.000064-416.000064zM513.565734 384l98.656566 98.624842c18.749916 18.749916 18.749916 49.125147 0 67.875063s-49.125147 18.749916-67.875063 0L411.75314 417.937531a48.017877 48.017877 0 0 1-14.062949-33.937531 48.019923 48.019923 0 0 1 14.062949-33.937531l198.874772-198.874773c9.374958-9.374958 21.656245-14.062948 33.937532-14.062949s24.562574 4.687991 33.937531 14.062949c18.749916 18.749916 18.749916 49.125147 0 67.875062L513.565734 384z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="cry" unicode="" d="M512.00307 896c-282.311999 0-512-229.686977-512-512s229.686977-512 512-512S1024.00307 101.688001 1024.00307 384 794.31507 896 512.00307 896z m0-928.000064c-229.374854 0-416.000064 186.62521-416.000064 416.000064S282.628216 800.000064 512.00307 800.000064s416.000064-186.62521 416.000064-416.000064-186.62521-416.000064-416.000064-416.000064zM710.674195 516.55828m-63.999616 0a63.999616 63.999616 0 1 1 127.999232 0 63.999616 63.999616 0 1 1-127.999232 0ZM312.963537 516.55828m-63.999616 0a63.999616 63.999616 0 1 1 127.999232 0 63.999616 63.999616 0 1 1-127.999232 0ZM512.00307 328.500373c-86.687403 0-165.468363-44.187458-210.719087-118.187302-13.84395-22.593638-6.718327-52.156326 15.906011-65.968552 22.593638-13.781526 52.156326-6.750051 65.968552 15.906011 27.687901 45.249701 75.84393 72.249907 128.843501 72.249907s101.187324-27.062631 128.875224-72.40648c9.062834-14.812044 24.843996-22.969209 40.999707-22.96921 8.531713 0 17.187252 2.281059 24.999546 7.031475 22.625362 13.812226 29.749962 43.374914 15.937735 66.000275-45.280401 74.093993-124.093085 118.343875-210.811189 118.343876z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="delete-filling" unicode="" d="M512.00307 896c-282.769439 0-512-229.230561-512-512s229.230561-512 512-512S1024.00307 101.230561 1024.00307 384 794.772509 896 512.00307 896z m237.262876-658.769615c24.999546-24.999546 24.999546-65.499855 0-90.500425-12.500285-12.500285-28.874993-18.749916-45.2497-18.749915s-32.750439 6.249631-45.249701 18.749915L512.016374 293.480132l-146.750172-146.749149c-12.500285-12.500285-28.874993-18.749916-45.2497-18.749915s-32.750439 6.249631-45.249701 18.749915c-24.999546 24.999546-24.999546 65.499855 0 90.500425l146.750171 146.750172-146.751194 146.749148c-24.999546 24.999546-24.999546 65.499855 0 90.500424s65.499855 24.999546 90.500424 0l146.750172-146.750171 146.750171 146.750171c24.999546 24.999546 65.499855 24.999546 90.500425 0s24.999546-65.499855 0-90.500424L602.515775 383.980556l146.750171-146.750171z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="download" unicode="" d="M478.996 114.37900000000002a47.736 47.736 0 0 1 33.756-13.99c12.65 0 24.8 5.032 33.752 13.99l263.705 263.729c18.649 18.649 18.649 48.865 0 67.516-18.649 18.648-48.866 18.648-67.515 0l-182.2-182.23V848.258C560.494 874.615 539.11 896 512.752 896c-26.36 0-47.743-21.382-47.743-47.742v-584.869L282.774 445.624c-18.648 18.648-48.86 18.648-67.51 0-18.649-18.65-18.649-48.866 0-67.516l263.732-263.729zM931.621 269.275v-264.183c0-24.354-19.676-44.03-44.031-44.03H135.912c-24.354 0-44.03 19.676-44.03 44.03V269.275c0 24.356-19.676 44.031-44.03 44.031-24.354 0-44.031-19.675-44.031-44.031v-308.213c0-48.57 39.49-88.062 88.061-88.062h839.74c48.572 0 88.062 39.491 88.062 88.062V269.275c0 24.356-19.678 44.031-44.031 44.031-24.355 0-44.032-19.675-44.032-44.031z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="filter" unicode="" d="M644.560784-127.988743c-26.499467 0-47.999904 21.499413-47.999904 47.999904V405.224134a48.044931 48.044931 0 0 0 15.15571 34.999355l226.966224 212.84102c16.093092 15.093286 25.312389 36.343004 25.312389 58.374555V800.000192H160.003774v-88.592852c0-22.030528 9.187574-43.280246 25.249965-58.342831l227.841182-213.810126a48.043908 48.043908 0 0 0 15.15571-34.999355v-484.243867c0-26.499467-21.499413-47.999904-47.999904-47.999904-26.499467 0-47.999904 21.499413-47.999904 47.999904V383.474002L119.567398 583.064776C84.2549 616.189366 64.006012 662.970469 64.006012 711.40734V847.999073c0 26.499467 21.499413 47.999904 47.999904 47.999904h799.990214c26.499467 0 47.998881-21.499413 47.998881-47.999904v-136.561032c0-48.468595-20.280612-95.248674-55.655533-128.404988l-211.779813-198.589945v-464.431947c0-26.500491-21.499413-47.999904-47.998881-47.999904z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="help" unicode="" d="M512.00307 896c-282.311999 0-512-229.686977-512-512s229.686977-512 512-512S1024.00307 101.688001 1024.00307 384 794.31507 896 512.00307 896z m0-928.000064c-229.374854 0-416.000064 186.62521-416.000064 416.000064S282.628216 800.000064 512.00307 800.000064s416.000064-186.62521 416.000064-416.000064-186.62521-416.000064-416.000064-416.000064zM512.00307 687.999968c-97.062179 0-175.999712-78.969257-175.999712-175.999712 0-26.499785 21.499671-48.00048 48.00048-48.00048s48.00048 21.499671 48.000479 48.00048c0 44.125033 35.874743 79.999776 79.999776 79.999776s79.999776-35.874743 79.999777-79.999776c0-30.031384-16.561982-57.281289-43.280766-71.093515-53.031294-27.499603-84.718467-76.59405-84.718467-131.343558 0-26.499785 21.499671-47.999456 48.00048-47.999456s48.00048 21.499671 48.000479 47.999456c0 18.18707 12.311987 35.43777 32.875289 46.093969 58.687379 30.375232 95.124967 90.281427 95.124967 156.344127-0.00307 97.030455-78.940603 175.998689-176.002782 175.998689zM511.99079 159.988551m-63.999616 0a63.999616 63.999616 0 1 1 127.999232 0 63.999616 63.999616 0 1 1-127.999232 0Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="picture" unicode="" d="M976.508103 829.949158H48.027389c-26.51351 0-48.025341-21.510807-48.025341-48.025341v-795.849681c0-2.063129 0.922521-3.822164 1.176444-5.815669 0.421841-3.368583 0.860064-6.58563 1.977123-9.790391 1.015694-2.91193 2.450158-5.432736 3.974722-8.059002 1.544019-2.67746 3.056298-5.221815 5.119427-7.585966 2.180876-2.497256 4.701681-4.4324 7.351497-6.433072 1.649479-1.250164 2.755275-2.970291 4.600316-4.025917 0.7116-0.410578 1.531732-0.230374 2.254596-0.597949 6.523173-3.345033 13.612555-5.667205 21.441182-5.690754 0.034812 0 0.062457-0.027645 0.09727-0.027645 0.004096 0 0.008191 0.004096 0.011262 0.004095 0.008191 0 0.011263-0.004096 0.019454-0.004095h928.480714c26.51351 0 48.024317 21.510807 48.024318 48.025341V781.92484c0.003072 26.51351-21.508759 48.024317-48.02227 48.024318z m-48.024317-96.049659v-536.227174L606.12885 423.301838c-11.099941 7.753884-24.981778 10.693458-38.050651 7.504056a47.937287 47.937287 0 0 1-31.203929-23.011823l-22.574624-39.52095-173.46358 121.375462c-11.130657 7.753884-24.919321 10.631001-38.05065 7.504056-13.16307-2.938551-24.481098-11.318028-31.203929-23.011823L96.05273 166.94655V733.899499h832.431056zM130.789064 34.100501l198.07164 346.67938 173.464604-121.375462c11.0682-7.691427 24.856864-10.56752 38.05065-7.504056a47.937287 47.937287 0 0 1 31.203929 23.011823l22.574624 39.520949 334.329275-233.988513v-46.344121H130.789064zM777.366503 582.947062m-66.3191 0a66.3191 66.3191 0 1 1 132.6382 0 66.3191 66.3191 0 1 1-132.6382 0Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="refresh" unicode="" d="M974.914297 431.375028c-26.470236 0-47.946957-21.475698-47.946957-47.946957 0-229.119089-186.417113-415.536202-415.536202-415.536202S95.895958 154.310004 95.895958 383.429093 282.313071 798.965296 511.43216 798.965296c95.49525 0 185.960184-32.171125 259.370496-91.082352L639.277422 576.357711h319.643311V896.001022L838.937321 776.017609C747.164975 852.858472 632.558408 894.858187 511.43216 894.858187c-281.997207 0-511.429093-229.430864-511.429093-511.429094s229.430864-511.429093 511.429093-511.429093S1022.861253 101.430864 1022.861253 383.429093c0 26.470236-21.47672 47.945934-47.946956 47.945935z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="select" unicode="" d="M384.21604-64.21604a102.513446 102.513446 0 0 0-71.722143 29.264691L30.72987 241.245812C-9.664454 280.828195-10.320764 345.734334 29.292335 386.129681c39.675556 40.394324 104.520262 41.082375 144.883869 1.438559l199.723167-195.783256 467.291024 600.856864c34.704593 44.64652 99.111076 52.776169 143.789335 17.946662 44.64652-34.704593 52.713712-99.111076 17.977379-143.757595l-537.8572-691.526005c-17.946662-23.07428-44.865631-37.330859-74.005408-39.331531-2.313981-0.126962-4.596221-0.189419-6.878461-0.189419z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="semi-select" unicode="" d="M922.077335 281.57563200000004H102.459181c-56.590142 0-102.456109 45.83525-102.456109 102.424368s45.865967 102.425392 102.456109 102.425392h819.618154c56.590142 0 102.456109-45.83525 102.456109-102.425392s-45.865967-102.424368-102.456109-102.424368z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="smile" unicode="" d="M512.00307 896c-282.311999 0-512-229.686977-512-512s229.686977-512 512-512S1024.00307 101.688001 1024.00307 384 794.31507 896 512.00307 896z m0-928.000064c-229.374854 0-416.000064 186.62521-416.000064 416.000064S282.628216 800.000064 512.00307 800.000064s416.000064-186.62521 416.000064-416.000064-186.62521-416.000064-416.000064-416.000064zM710.674195 516.55828m-63.999616 0a63.999616 63.999616 0 1 1 127.999232 0 63.999616 63.999616 0 1 1-127.999232 0ZM312.963537 516.55828m-63.999616 0a63.999616 63.999616 0 1 1 127.999232 0 63.999616 63.999616 0 1 1-127.999232 0ZM706.877547 321.468899c-22.625362 13.749802-52.187026 6.687627-66.000276-15.937736-27.687901-45.343849-75.874631-72.40648-128.875224-72.40648s-101.156623 27.030907-128.843501 72.281631c-13.812226 22.625362-43.344213 29.719261-65.968552 15.906011s-29.749962-43.374914-15.906011-65.968552c45.249701-74.031568 124.031684-118.219026 210.719087-118.219026 86.719127 0 165.530788 44.249883 210.812212 118.343876 13.812226 22.625362 6.687627 52.18805-15.937735 66.000276z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="sorting" unicode="" d="M121.218406 225.120501c20.811762 16.436964 51.029087 12.812276 67.371902-8.06191L313.148762 58.689849V847.971104c0 26.498489 21.49945 47.997939 47.99794 47.99794s47.997939-21.49945 47.997939-47.99794v-927.961867c0-20.467919-12.967825-38.654802-32.311087-45.37306a47.760523 47.760523 0 0 0-15.686852-2.624879c-14.437348 0-28.467405 6.530986-37.717418 18.343455L113.156496 157.748599c-16.40524 20.811762-12.780553 50.998386 8.06191 67.371902zM647.166446 893.344165c19.249115 6.718258 40.810989 0.406268 53.40427-15.718576L910.843504 610.198996c16.40524-20.811762 12.780553-50.998386-8.06191-67.371903-20.811762-16.436964-51.029087-12.812276-67.371902 8.06191L710.851238 709.257745v-789.249531c0-26.498489-21.49945-47.997939-47.99794-47.99794s-47.997939 21.49945-47.997939 47.99794V847.971104c0 20.467919 12.967825 38.653778 32.311087 45.373061z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="ashbin" unicode="" d="M832 608c-26.5 0-48-21.5-48-48v-592h-64v592c0 26.5-21.5 48-48 48s-48-21.5-48-48v-592h-64v592c0 26.5-21.5 48-48 48s-48-21.5-48-48v-592h-64v592c0 26.5-21.5 48-48 48s-48-21.5-48-48v-592h-64v592c0 26.5-21.5 48-48 48s-48-21.5-48-48v-640c0-26.5 21.5-48 48-48h640c26.5 0 48 21.5 48 48v640c0 26.5-21.5 48-48 48zM928 752h-240v96c0 26.5-21.5 48-48 48h-256c-26.5 0-48-21.5-48-48v-96h-240c-26.5 0-48-21.5-48-48s21.5-48 48-48h832c26.5 0 48 21.5 48 48s-21.5 48-48 48zM432 800h160v-48h-160v48z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="success-filling" unicode="" d="M512 896C229.23 896 0 666.77 0 384s229.23-512 512-512 512 229.23 512 512S794.77 896 512 896z m278.043-359.34l-298.625-384a64.114 64.114 0 0 0-46.188-24.562c-1.438-0.062-2.875-0.125-4.312-0.125-16.688 0-32.812 6.562-44.812 18.312l-156.5 153.438c-25.25 24.75-25.625 65.25-0.875 90.5 24.688 25.188 65.312 25.688 90.5 0.875L434.48 287.91l254.562 327.375c21.75 27.812 61.875 33 89.812 11.188 27.876-21.688 32.939-61.875 11.189-89.813z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="edit" unicode="" d="M975.969501 699.416143h-58.064186l87.313272 87.309272-0.012 0.011999C1016.796225 798.319053 1023.968001 814.322552 1023.968001 832.002c0 35.346895-28.651105 63.998-63.998 63.998-17.722446 0-33.736946-7.218774-45.326584-18.854411L736.906972 699.416143H47.9985c-26.499172 0-47.9985-21.499328-47.9985-47.9985v-731.415143c0-26.499172 21.499328-47.9985 47.9985-47.9985h927.971001c26.499172 0 47.9985 21.499328 47.9985 47.9985V651.417643c0 26.499172-21.499328 47.9985-47.9985 47.9985z m-47.9985-731.415143H95.997V603.419143h544.904972L337.583451 300.115621l90.497171-90.497172 393.819694 393.799694H927.971001v-635.417143zM191.994 64.025999l191.994 95.997-95.997 95.997z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="set" unicode="" d="M976 528h-76.562l-11.688 28.156 54.125 54.125c18.75 18.75 18.75 49.125 0 67.875l-135.75 135.75c-18.75 18.75-49.125 18.75-67.875 0l-54.125-54.125L656 771.438V848c0 26.5-21.5 48-48 48H416c-26.5 0-48-21.5-48-48v-76.562l-28.188-11.656-54.125 54.125c-18.75 18.75-49.125 18.75-67.875 0l-135.75-135.75c-18.75-18.75-18.75-49.125 0-67.875l54.125-54.156L124.562 528H48c-26.5 0-48-21.5-48-48v-192c0-26.5 21.5-48 48-48h76.562l11.625-28.125-54.125-54.125c-18.75-18.75-18.75-49.125 0-67.875l135.75-135.812c9-9 21.188-14.062 33.938-14.062s24.938 5.062 33.938 14.062l54.125 54.125L368-3.438V-80c0-26.5 21.5-48 48-48h192c26.5 0 48 21.5 48 48v76.562l28.125 11.625 54.125-54.125c18-18 49.875-18 67.875 0l135.75 135.812c18.75 18.75 18.75 49.125 0 67.875l-54.125 54.125L899.438 240H976c26.5 0 48 21.5 48 48V480c0 26.5-21.5 48-48 48z m-48-192h-60.625c-19.375 0-36.875-11.688-44.312-29.625L786.812 219c-7.438-17.938-3.375-38.562 10.375-52.312l42.875-42.875-67.875-67.938-42.875 42.875c-13.75 13.75-34.375 17.75-52.312 10.438L589.625 73C571.688 65.562 560 48.062 560 28.625V-32h-96v60.625c0 19.438-11.688 36.938-29.625 44.375l-87.438 36.188C329 116.5 308.375 112.5 294.625 98.75l-42.875-42.875-67.875 67.938 42.875 42.875c13.75 13.75 17.812 34.375 10.438 52.312L201 306.375C193.562 324.312 176.062 336 156.625 336H96v96h60.625c19.438 0 36.938 11.688 44.375 29.625l36.188 87.406c7.375 17.938 3.312 38.594-10.438 52.312l-42.875 42.875 67.875 67.875 42.875-42.875c13.75-13.719 34.375-17.844 52.312-10.406l87.438 36.219C452.312 702.469 464 719.969 464 739.375V800h96v-60.625c0-19.406 11.688-36.906 29.625-44.344L677 658.812c17.938-7.438 38.562-3.312 52.312 10.406l42.875 42.875 67.875-67.875-42.875-42.875c-13.75-13.719-17.812-34.375-10.375-52.312l36.25-87.406C830.5 443.688 847.938 432 867.375 432H928v-96zM512 560c-97.062 0-176-78.938-176-176s78.938-176 176-176 176 78.938 176 176-78.938 176-176 176z m0-256c-44.125 0-80 35.875-80 80s35.875 80 80 80 80-35.875 80-80-35.875-80-80-80z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="ellipsis" unicode="" d="M896 384m-128 0a128 128 0 1 1 256 0 128 128 0 1 1-256 0ZM127.999 384m-128 0a128 128 0 1 1 256 0 128 128 0 1 1-256 0ZM512 384m-128 0a128 128 0 1 1 256 0 128 128 0 1 1-256 0Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="attachment" unicode="" d="M956.762 709.347c-86.609 86.734-237.831 86.734-324.566 0l-412.799-412.8c-34.931-34.931-40.18-75.799-40.18-97.045 0-21.246 5.249-62.114 43.992-100.857 34.931-34.931 75.799-40.18 97.045-40.18 21.246 0 62.051 5.249 96.982 40.18l323.253 323.253c18.747 18.747 18.747 49.116 0 67.863s-49.116 18.747-67.863 0L349.374 166.509c-9.998-9.998-21.371-12.06-29.12-12.06-7.811 0-19.184 2.062-33.056 15.997-9.936 9.873-11.998 21.246-11.998 29.057s2.062 19.184 12.06 29.182l412.799 412.799c50.553 50.491 138.412 50.491 188.84 0 25.245-25.245 39.118-58.739 39.118-94.42 0-35.618-13.872-69.175-39.118-94.42L476.1 39.844c-85.984-85.922-225.834-85.922-315.567 3.812-85.922 85.922-85.922 225.771 0 311.693l451.23 451.23c18.747 18.747 18.747 49.116 0 67.863s-49.116 18.747-67.863 0L92.67 423.212C32.931 363.473 0 284.05 0 199.503s32.931-163.97 96.545-227.521c61.676-61.676 142.661-92.483 223.709-92.483 80.985 0 162.033 30.807 223.709 92.483l412.799 412.799C1000.129 428.148 1024 485.763 1024 547.064s-23.871 118.978-67.238 162.283z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="switch" unicode="" d="M867.053 272.98400000000004H153.007c-45.901 0-66.28-56.091-35.712-86.659L321.279-17.659999999999968c20.378-20.377 51.047-20.377 71.424 0 20.379 20.379 20.379 51.047 0 71.426L280.522 170.99099999999999h586.531c30.566 0 51.047 20.378 51.047 51.046s-20.481 50.947-51.047 50.947zM153.007 476.968h714.046c45.9 0 66.279 56.091 35.712 86.657L698.781 767.71c-20.378 20.379-51.046 20.379-71.425 0-20.379-20.378-20.379-51.046 0-71.424L744.682 578.96H153.007c-30.567 0-51.046-20.378-51.046-51.047 0.1-30.568 25.522-50.945 51.046-50.945z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
|
||||
|
||||
</font>
|
||||
</defs></svg>
|
||||
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
Binary file not shown.
@@ -619,6 +619,10 @@ const request = (function(_global) {
|
||||
// 跳转至login页
|
||||
// TODO: 用 react-router 重写,改造成本比较高,这里先hack
|
||||
const url = window.location.href;
|
||||
// TODO: 后端返回细致的错误码,如果原始密码不对 不应该直接跳到登陆页
|
||||
if (url.includes('password')) {
|
||||
return;
|
||||
}
|
||||
const base_url = url.split('#')[0];
|
||||
window.location = `${base_url}#/login`;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ import { LANGUAGE_KEY, REDUX_DEVTOOLS } from './constants';
|
||||
|
||||
import Login from './pages/Login';
|
||||
import Namespace from './pages/NameSpace';
|
||||
import Password from './pages/Password';
|
||||
import Newconfig from './pages/ConfigurationManagement/NewConfig';
|
||||
import Configsync from './pages/ConfigurationManagement/ConfigSync';
|
||||
import Configdetail from './pages/ConfigurationManagement/ConfigDetail';
|
||||
@@ -74,6 +75,7 @@ const MENU = [
|
||||
{ path: '/', exact: true, render: () => <Redirect to="/welcome" /> },
|
||||
{ path: '/welcome', component: Welcome },
|
||||
{ path: '/namespace', component: Namespace },
|
||||
{ path: '/password', component: Password },
|
||||
{ path: '/newconfig', component: Newconfig },
|
||||
{ path: '/configsync', component: Configsync },
|
||||
{ path: '/configdetail', component: Configdetail },
|
||||
|
||||
@@ -49,6 +49,10 @@ class Header extends React.Component {
|
||||
this.props.history.push('/login');
|
||||
};
|
||||
|
||||
changePassword = () => {
|
||||
this.props.history.push('/password');
|
||||
};
|
||||
|
||||
getUsername = () => {
|
||||
const token = window.localStorage.getItem('token');
|
||||
if (token) {
|
||||
@@ -94,6 +98,7 @@ class Header extends React.Component {
|
||||
<Dropdown trigger={<div className="logout">{this.getUsername()}</div>}>
|
||||
<Menu>
|
||||
<Menu.Item onClick={this.logout}>{locale.logout}</Menu.Item>
|
||||
<Menu.Item onClick={this.changePassword}>{locale.changePassword}</Menu.Item>
|
||||
</Menu>
|
||||
</Dropdown>
|
||||
)}
|
||||
|
||||
@@ -341,9 +341,6 @@ class MainLayout extends React.Component {
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.setState({
|
||||
noChild: !!nowNavObj.dontUseChild,
|
||||
});
|
||||
const { parentServiceName } = nowNavObj;
|
||||
|
||||
const parentNav = this.oneLevelNavArr[parentServiceName];
|
||||
@@ -391,7 +388,11 @@ class MainLayout extends React.Component {
|
||||
refreshNav() {
|
||||
const { navList } = this.state;
|
||||
const { location, history, functionMode } = this.props;
|
||||
const [configUrl, serviceUrl, clusterUrl] = ['/configurationManagement', '/serviceManagement', '/clusterManagement'];
|
||||
const [configUrl, serviceUrl, clusterUrl] = [
|
||||
'/configurationManagement',
|
||||
'/serviceManagement',
|
||||
'/clusterManagement',
|
||||
];
|
||||
this.setState(
|
||||
{
|
||||
navList: navList.map(item => {
|
||||
|
||||
@@ -19,6 +19,7 @@ const I18N_CONF = {
|
||||
community: 'COMMUNITY',
|
||||
languageSwitchButton: '中',
|
||||
logout: 'logout',
|
||||
changePassword: 'modify password',
|
||||
passwordRequired: 'password should not be empty',
|
||||
usernameRequired: 'username should not be empty',
|
||||
},
|
||||
@@ -50,6 +51,19 @@ const I18N_CONF = {
|
||||
clusterManagementVirtual: 'ClusterManagement',
|
||||
clusterManagement: 'Cluster Node List',
|
||||
},
|
||||
Password: {
|
||||
passwordNotConsistent: 'The passwords are not consistent',
|
||||
passwordRequired: 'password should not be empty',
|
||||
pleaseInputOldPassword: 'Please input original password',
|
||||
pleaseInputNewPassword: 'Please input new password',
|
||||
pleaseInputNewPasswordAgain: 'Please input new password again',
|
||||
oldPassword: 'Original password',
|
||||
newPassword: 'New password',
|
||||
checkPassword: 'Check password',
|
||||
changePassword: 'modify password',
|
||||
invalidPassword: 'Invalid original password',
|
||||
modifyPasswordFailed: 'Modify password failed',
|
||||
},
|
||||
NameSpace: {
|
||||
namespace: 'Namespaces',
|
||||
prompt: 'Notice',
|
||||
@@ -78,6 +92,7 @@ const I18N_CONF = {
|
||||
serviceList: 'Service List',
|
||||
serviceName: 'Service Name',
|
||||
serviceNamePlaceholder: 'Enter Service Name',
|
||||
hiddenEmptyService: 'Hidden Empty Service',
|
||||
query: 'Search',
|
||||
pubNoData: 'No results found.',
|
||||
columnServiceName: 'Service Name',
|
||||
@@ -291,12 +306,17 @@ const I18N_CONF = {
|
||||
target: 'Target:',
|
||||
selectNamespace: 'Select Namespace',
|
||||
selectedEntry: '| Selected Entry',
|
||||
cloneSelectedAlertTitle: 'Clone config',
|
||||
cloneSelectedAlertContent: 'please select the configuration to clone',
|
||||
delSelectedAlertTitle: 'Delete config',
|
||||
delSelectedAlertContent: 'please select the configuration to delete',
|
||||
delSuccessMsg: 'delete successful',
|
||||
},
|
||||
NewConfig: {
|
||||
newListingMain: 'Create Configuration',
|
||||
newListing: 'Create Configuration',
|
||||
publishFailed: 'Publish failed. Make sure parameters are entered correctly.',
|
||||
doNotEnte: 'Illegal characters not allowed',
|
||||
doNotEnter: 'Illegal characters not allowed',
|
||||
newConfig: 'Data ID cannot be empty.',
|
||||
dataIdIsNotEmpty: 'Data ID cannot exceed 255 characters in length',
|
||||
groupPlaceholder: 'Enter your group name',
|
||||
|
||||
@@ -19,6 +19,7 @@ const I18N_CONF = {
|
||||
community: '社区',
|
||||
languageSwitchButton: 'En',
|
||||
logout: '登出',
|
||||
changePassword: '修改密码',
|
||||
},
|
||||
Login: {
|
||||
login: '登录',
|
||||
@@ -50,6 +51,19 @@ const I18N_CONF = {
|
||||
clusterManagementVirtual: '集群管理',
|
||||
clusterManagement: '节点列表',
|
||||
},
|
||||
Password: {
|
||||
passwordNotConsistent: '两次输入密码不一致',
|
||||
passwordRequired: '密码不能为空',
|
||||
pleaseInputOldPassword: '请输入原始密码',
|
||||
pleaseInputNewPassword: '请输入新密码',
|
||||
pleaseInputNewPasswordAgain: '请再次输入新密码',
|
||||
oldPassword: '原始密码',
|
||||
newPassword: '新密码',
|
||||
checkPassword: '再次输入',
|
||||
changePassword: '修改密码',
|
||||
invalidPassword: '原始密码错误',
|
||||
modifyPasswordFailed: '修改密码失败',
|
||||
},
|
||||
NameSpace: {
|
||||
namespace: '命名空间',
|
||||
prompt: '提示',
|
||||
@@ -78,6 +92,7 @@ const I18N_CONF = {
|
||||
serviceList: '服务列表',
|
||||
serviceName: '服务名称',
|
||||
serviceNamePlaceholder: '请输入服务名称',
|
||||
hiddenEmptyService: '隐藏空服务',
|
||||
query: '查询',
|
||||
pubNoData: '没有数据',
|
||||
columnServiceName: '服务名',
|
||||
@@ -289,12 +304,17 @@ const I18N_CONF = {
|
||||
target: '目标空间:',
|
||||
selectNamespace: '请选择命名空间',
|
||||
selectedEntry: '| 选中的条目',
|
||||
cloneSelectedAlertTitle: '配置克隆',
|
||||
cloneSelectedAlertContent: '请选择要克隆的配置',
|
||||
delSelectedAlertTitle: '配置删除',
|
||||
delSelectedAlertContent: '请选择要删除的配置',
|
||||
delSuccessMsg: '删除成功',
|
||||
},
|
||||
NewConfig: {
|
||||
newListingMain: '新建配置',
|
||||
newListing: '新建配置',
|
||||
publishFailed: '发布失败。请检查参数是否正确。',
|
||||
doNotEnte: 'Illegal characters not allowed',
|
||||
doNotEnter: '不允许非法字符',
|
||||
newConfig: 'Data ID 不能为空',
|
||||
dataIdIsNotEmpty: 'Data ID 长度不能超过255字符',
|
||||
groupPlaceholder: '请输入Group名称',
|
||||
|
||||
@@ -242,6 +242,22 @@ module.exports = {
|
||||
useRouter: false,
|
||||
id: 'namespace',
|
||||
},
|
||||
{
|
||||
enable: true,
|
||||
isExtend: false,
|
||||
name: '修改密码',
|
||||
title: '修改密码',
|
||||
isVirtual: false,
|
||||
projectName: 'nacos',
|
||||
serviceName: 'password',
|
||||
link: 'password',
|
||||
hasFusion: true,
|
||||
template: '',
|
||||
dontUseChild: true,
|
||||
registerName: 'com.alibaba.nacos.page.password',
|
||||
useRouter: false,
|
||||
id: 'password',
|
||||
},
|
||||
{
|
||||
enable: false,
|
||||
isExtend: true,
|
||||
|
||||
+3
-1
@@ -124,7 +124,7 @@ class ConfigEditor extends React.Component {
|
||||
this.monacoEditor = null;
|
||||
const options = {
|
||||
value,
|
||||
language: this.state.configType,
|
||||
language,
|
||||
codeLens: true,
|
||||
selectOnLineNumbers: true,
|
||||
roundedSelection: false,
|
||||
@@ -262,12 +262,14 @@ class ConfigEditor extends React.Component {
|
||||
stopBeta() {
|
||||
const { locale } = this.props;
|
||||
const { dataId, group } = this.state.form;
|
||||
const tenant = getParams('namespace');
|
||||
return request
|
||||
.delete('v1/cs/configs', {
|
||||
params: {
|
||||
beta: true,
|
||||
dataId,
|
||||
group,
|
||||
tenant,
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
|
||||
+58
-3
@@ -697,6 +697,52 @@ class ConfigurationManagement extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
multipleSelectionDeletion() {
|
||||
const { locale = {} } = this.props;
|
||||
const self = this;
|
||||
if (configsTableSelected.size === 0) {
|
||||
Dialog.alert({
|
||||
title: locale.delSelectedAlertTitle,
|
||||
content: locale.delSelectedAlertContent,
|
||||
});
|
||||
} else {
|
||||
let toShowDatas = [];
|
||||
configsTableSelected.forEach((value, key, map) => {
|
||||
let item = {};
|
||||
item.dataId = value.dataId;
|
||||
item.group = value.group;
|
||||
toShowDatas.push(item);
|
||||
});
|
||||
Dialog.confirm({
|
||||
title: locale.removeConfiguration,
|
||||
content: (
|
||||
<div style={{ marginTop: '-20px' }}>
|
||||
<h3>{locale.sureDelete}</h3>
|
||||
<Table dataSource={toShowDatas}>
|
||||
<Table.Column title="Data Id" dataIndex="dataId" />
|
||||
<Table.Column title="Group" dataIndex="group" />
|
||||
</Table>
|
||||
</div>
|
||||
),
|
||||
onOk: () => {
|
||||
let idsStr = '';
|
||||
configsTableSelected.forEach((value, key, map) => {
|
||||
idsStr = `${idsStr + key},`;
|
||||
});
|
||||
const url = `v1/cs/configs?delType=ids&ids=${idsStr}`;
|
||||
request({
|
||||
url,
|
||||
type: 'delete',
|
||||
success(res) {
|
||||
Message.success(locale.delSuccessMsg);
|
||||
self.getData();
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
cloneSelectedDataConfirm() {
|
||||
const { locale = {} } = this.props;
|
||||
const self = this;
|
||||
@@ -704,8 +750,8 @@ class ConfigurationManagement extends React.Component {
|
||||
self.field.setValue('cloneTargetSpace', undefined);
|
||||
if (configsTableSelected.size === 0) {
|
||||
Dialog.alert({
|
||||
title: locale.exportSelectedAlertTitle,
|
||||
content: locale.exportSelectedAlertContent,
|
||||
title: locale.cloneSelectedAlertTitle,
|
||||
content: locale.cloneSelectedAlertContent,
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -1258,7 +1304,16 @@ class ConfigurationManagement extends React.Component {
|
||||
<div style={{ float: 'left' }}>
|
||||
<Button
|
||||
type={'primary'}
|
||||
style={{ marginLeft: 60, marginRight: 10 }}
|
||||
warning
|
||||
style={{ marginRight: 10 }}
|
||||
onClick={this.multipleSelectionDeletion.bind(this)}
|
||||
data-spm-click={'gostr=/aliyun;locaid=configsDelete'}
|
||||
>
|
||||
{locale.deleteAction}
|
||||
</Button>
|
||||
<Button
|
||||
type={'primary'}
|
||||
style={{ marginRight: 10 }}
|
||||
onClick={this.exportSelectedData.bind(this)}
|
||||
data-spm-click={'gostr=/aliyun;locaid=configsExport'}
|
||||
>
|
||||
|
||||
+2
-2
@@ -365,10 +365,10 @@ class NewConfig extends React.Component {
|
||||
|
||||
validateChart(rule, value, callback) {
|
||||
const { locale = {} } = this.props;
|
||||
const chartReg = /[@#\$%\^&\*]+/g;
|
||||
const chartReg = /[@#\$%\^&\*\s]+/g;
|
||||
|
||||
if (chartReg.test(value)) {
|
||||
callback(locale.doNotEnte);
|
||||
callback(locale.doNotEnter);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Copyright 1999-2018 Alibaba Group Holding Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import RegionGroup from 'components/RegionGroup';
|
||||
import { ConfigProvider, Input, Field, Form, Message } from '@alifd/next';
|
||||
import { getParams, setParams, request } from '../../globalLib';
|
||||
|
||||
import './index.scss';
|
||||
|
||||
const FormItem = Form.Item;
|
||||
|
||||
@ConfigProvider.config
|
||||
class Password extends React.Component {
|
||||
static displayName = 'Password';
|
||||
|
||||
static propTypes = {
|
||||
locale: PropTypes.object,
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.field = new Field(this);
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
componentDidMount() {}
|
||||
|
||||
validatePassword(rule, value, callback) {
|
||||
const { locale = {} } = this.props;
|
||||
if (this.field.getValue('newPassword') !== this.field.getValue('confirmNewPassword')) {
|
||||
callback(locale.passwordNotConsistent);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
handleSubmit = () => {
|
||||
const { locale = {} } = this.props;
|
||||
this.field.validate((errors, values) => {
|
||||
if (errors) {
|
||||
return;
|
||||
}
|
||||
request({
|
||||
type: 'post',
|
||||
url: 'v1/auth/login',
|
||||
data: values,
|
||||
success: ({ code, data }) => {
|
||||
if (code === 200) {
|
||||
// TODO: 封装一个方法存储、读取token
|
||||
localStorage.setItem('token', data);
|
||||
// TODO: 使用react router
|
||||
this.props.history.push('/');
|
||||
}
|
||||
if (code === 401) {
|
||||
Message.error({
|
||||
content: locale.invalidUsernameOrPassword,
|
||||
});
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
Message.error({
|
||||
content: locale.invalidUsernameOrPassword,
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
changePassword() {
|
||||
const { locale = {} } = this.props;
|
||||
this.field.validate((errors, values) => {
|
||||
if (errors) {
|
||||
return;
|
||||
}
|
||||
request({
|
||||
type: 'put',
|
||||
url: 'v1/auth/password',
|
||||
data: values,
|
||||
success: ({ code, data }) => {
|
||||
if (code === 200) {
|
||||
window.localStorage.clear();
|
||||
this.props.history.push('/login');
|
||||
}
|
||||
if (code === 401) {
|
||||
Message.error({
|
||||
content: locale.invalidPassword,
|
||||
});
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
Message.error({
|
||||
content: locale.invalidPassword,
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
const { locale = {} } = this.props;
|
||||
const formItemLayout = {
|
||||
labelCol: { fixedSpan: 6 },
|
||||
wrapperCol: { span: 18 },
|
||||
};
|
||||
return (
|
||||
<div style={{ padding: 10 }}>
|
||||
<RegionGroup left={locale.changePassword} />
|
||||
<Form style={{ width: '300px' }} field={this.field}>
|
||||
<FormItem label={locale.oldPassword} required {...formItemLayout}>
|
||||
<Input
|
||||
htmlType="password"
|
||||
placeholder={locale.pleaseInputOldPassword}
|
||||
{...this.field.init('oldPassword', {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: locale.passwordRequired,
|
||||
},
|
||||
],
|
||||
})}
|
||||
disabled={this.state.type === 0}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem label={locale.newPassword} required {...formItemLayout}>
|
||||
<Input
|
||||
htmlType="password"
|
||||
placeholder={locale.pleaseInputNewPassword}
|
||||
{...this.field.init('newPassword', {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: locale.passwordRequired,
|
||||
},
|
||||
],
|
||||
})}
|
||||
disabled={this.state.type === 0}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem label={locale.checkPassword} required {...formItemLayout}>
|
||||
<Input
|
||||
htmlType="password"
|
||||
placeholder={locale.pleaseInputNewPasswordAgain}
|
||||
{...this.field.init('confirmNewPassword', {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: locale.passwordRequired,
|
||||
},
|
||||
{ validator: this.validatePassword.bind(this) },
|
||||
],
|
||||
})}
|
||||
disabled={this.state.type === 0}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem label=" " {...formItemLayout}>
|
||||
<Form.Submit type="primary" onClick={this.changePassword.bind(this)}>
|
||||
{locale.changePassword}
|
||||
</Form.Submit>
|
||||
</FormItem>
|
||||
</Form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Password;
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 1999-2018 Alibaba Group Holding Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import Password from './Password';
|
||||
|
||||
export default Password;
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 1999-2018 Alibaba Group Holding Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
+29
-19
@@ -25,6 +25,7 @@ import {
|
||||
Dialog,
|
||||
Message,
|
||||
ConfigProvider,
|
||||
Switch,
|
||||
} from '@alifd/next';
|
||||
import { request } from '../../../globalLib';
|
||||
import RegionGroup from '../../../components/RegionGroup';
|
||||
@@ -57,6 +58,7 @@ class ServiceList extends React.Component {
|
||||
currentPage: 1,
|
||||
keyword: '',
|
||||
dataSource: [],
|
||||
hasIpCount: !(localStorage.getItem('hasIpCount') === 'false'),
|
||||
};
|
||||
this.field = new Field(this);
|
||||
}
|
||||
@@ -71,15 +73,14 @@ class ServiceList extends React.Component {
|
||||
|
||||
openEditServiceDialog() {
|
||||
try {
|
||||
this.editServiceDialog.current.getInstance()
|
||||
.show(this.state.service);
|
||||
} catch (error) {
|
||||
}
|
||||
this.editServiceDialog.current.getInstance().show(this.state.service);
|
||||
} catch (error) {}
|
||||
}
|
||||
|
||||
queryServiceList() {
|
||||
const { currentPage, pageSize, keyword, withInstances = false } = this.state;
|
||||
const { currentPage, pageSize, keyword, withInstances = false, hasIpCount } = this.state;
|
||||
const parameter = [
|
||||
`hasIpCount=${hasIpCount}`,
|
||||
`withInstances=${withInstances}`,
|
||||
`pageNo=${currentPage}`,
|
||||
`pageSize=${pageSize}`,
|
||||
@@ -119,8 +120,7 @@ class ServiceList extends React.Component {
|
||||
*
|
||||
*/
|
||||
showSampleCode(record) {
|
||||
this.showcode.current.getInstance()
|
||||
.openDialog(record);
|
||||
this.showcode.current.getInstance().openDialog(record);
|
||||
}
|
||||
|
||||
deleteService(service) {
|
||||
@@ -157,7 +157,6 @@ class ServiceList extends React.Component {
|
||||
|
||||
rowColor = row => ({ className: !row.healthyInstanceCount ? 'row-bg-red' : '' });
|
||||
|
||||
|
||||
render() {
|
||||
const { locale = {} } = this.props;
|
||||
const {
|
||||
@@ -165,6 +164,7 @@ class ServiceList extends React.Component {
|
||||
serviceList,
|
||||
serviceName,
|
||||
serviceNamePlaceholder,
|
||||
hiddenEmptyService,
|
||||
query,
|
||||
create,
|
||||
operation,
|
||||
@@ -172,7 +172,7 @@ class ServiceList extends React.Component {
|
||||
sampleCode,
|
||||
deleteAction,
|
||||
} = locale;
|
||||
const { keyword, nowNamespaceName, nowNamespaceId } = this.state;
|
||||
const { keyword, nowNamespaceName, nowNamespaceId, hasIpCount } = this.state;
|
||||
const { init, getValue } = this.field;
|
||||
this.init = init;
|
||||
this.getValue = getValue;
|
||||
@@ -221,6 +221,17 @@ class ServiceList extends React.Component {
|
||||
}
|
||||
/>
|
||||
</FormItem>
|
||||
<Form.Item label={`${hiddenEmptyService}:`}>
|
||||
<Switch
|
||||
checked={hasIpCount}
|
||||
onChange={hasIpCount =>
|
||||
this.setState({ hasIpCount, currentPage: 1 }, () => {
|
||||
localStorage.setItem('hasIpCount', hasIpCount);
|
||||
this.queryServiceList();
|
||||
})
|
||||
}
|
||||
/>
|
||||
</Form.Item>
|
||||
<FormItem label="">
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -266,8 +277,9 @@ class ServiceList extends React.Component {
|
||||
<a
|
||||
onClick={() =>
|
||||
this.props.history.push(
|
||||
`/serviceDetail?name=${record.name}&groupName=${record.groupName}`,
|
||||
)}
|
||||
`/serviceDetail?name=${record.name}&groupName=${record.groupName}`
|
||||
)
|
||||
}
|
||||
style={{ marginRight: 5 }}
|
||||
>
|
||||
{detail}
|
||||
@@ -277,10 +289,7 @@ class ServiceList extends React.Component {
|
||||
{sampleCode}
|
||||
</a>
|
||||
<span style={{ marginRight: 5 }}>|</span>
|
||||
<a
|
||||
onClick={() => this.deleteService(record)}
|
||||
style={{ marginRight: 5 }}
|
||||
>
|
||||
<a onClick={() => this.deleteService(record)} style={{ marginRight: 5 }}>
|
||||
{deleteAction}
|
||||
</a>
|
||||
</div>
|
||||
@@ -290,10 +299,11 @@ class ServiceList extends React.Component {
|
||||
</Col>
|
||||
</Row>
|
||||
{this.state.total > this.state.pageSize && (
|
||||
<div style={{
|
||||
marginTop: 10,
|
||||
textAlign: 'right',
|
||||
}}
|
||||
<div
|
||||
style={{
|
||||
marginTop: 10,
|
||||
textAlign: 'right',
|
||||
}}
|
||||
>
|
||||
<Pagination
|
||||
current={this.state.currentPage}
|
||||
|
||||
+4
@@ -26,4 +26,8 @@
|
||||
color: #000;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.next-switch-off {
|
||||
background-color: #f2f3f7;
|
||||
border-color: #c4c6cf;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1 +1 @@
|
||||
@charset "UTF-8";.next-icon[dir=rtl]:before{transform:rotateY(180deg)}@font-face{font-family:NextIcon;src:url(//at.alicdn.com/t/font_515771_emcns5054x3whfr.eot);src:url(//at.alicdn.com/t/font_515771_emcns5054x3whfr.eot#iefix) format("embedded-opentype"),url(//at.alicdn.com/t/font_515771_emcns5054x3whfr.woff) format("woff"),url(//at.alicdn.com/t/font_515771_emcns5054x3whfr.ttf) format("truetype"),url(//at.alicdn.com/t/font_515771_emcns5054x3whfr.svg#NextIcon) format("svg")}.next-icon{display:inline-block;font-family:NextIcon;font-style:normal;font-weight:400;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.next-icon:before{display:inline-block;vertical-align:middle;text-align:center}.next-icon-smile:before{content:""}.next-icon-cry:before{content:""}.next-icon-success:before{content:""}.next-icon-warning:before{content:""}.next-icon-prompt:before{content:""}.next-icon-error:before{content:""}.next-icon-help:before{content:""}.next-icon-clock:before{content:""}.next-icon-success-filling:before{content:""}.next-icon-delete-filling:before{content:""}.next-icon-favorites-filling:before{content:""}.next-icon-add:before{content:""}.next-icon-minus:before{content:""}.next-icon-arrow-up:before{content:""}.next-icon-arrow-down:before{content:""}.next-icon-arrow-left:before{content:""}.next-icon-arrow-right:before{content:""}.next-icon-arrow-double-left:before{content:""}.next-icon-arrow-double-right:before{content:""}.next-icon-switch:before{content:""}.next-icon-sorting:before{content:""}.next-icon-descending:before{content:""}.next-icon-ascending:before{content:""}.next-icon-select:before{content:""}.next-icon-semi-select:before{content:""}.next-icon-search:before{content:""}.next-icon-close:before{content:""}.next-icon-ellipsis:before{content:""}.next-icon-picture:before{content:""}.next-icon-calendar:before{content:""}.next-icon-ashbin:before{content:""}.next-icon-upload:before{content:""}.next-icon-download:before{content:""}.next-icon-set:before{content:""}.next-icon-edit:before{content:""}.next-icon-refresh:before{content:""}.next-icon-filter:before{content:""}.next-icon-attachment:before{content:""}.next-icon-account:before{content:""}.next-icon-email:before{content:""}.next-icon-atm:before{content:""}.next-icon-loading:before{content:"";animation:loadingCircle 1s linear infinite}.next-icon.next-xxs:before{width:8px;font-size:8px;line-height:inherit}@media (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.next-icon.next-xxs{transform:scale(.5);margin-left:-4px;margin-right:-4px}.next-icon.next-xxs:before{width:16px;font-size:16px}}.next-icon.next-xs:before{width:12px;font-size:12px;line-height:inherit}.next-icon.next-small:before{width:16px;font-size:16px;line-height:inherit}.next-icon.next-medium:before{width:20px;font-size:20px;line-height:inherit}.next-icon.next-large:before{width:24px;font-size:24px;line-height:inherit}.next-icon.next-xl:before{width:32px;font-size:32px;line-height:inherit}.next-icon.next-xxl:before{width:48px;font-size:48px;line-height:inherit}.next-icon.next-xxxl:before{width:64px;font-size:64px;line-height:inherit}.next-icon.next-inherit:before{width:inherit;font-size:inherit;line-height:inherit}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-moz-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-ms-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-o-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transforLine truncated
|
||||
@charset "UTF-8";.next-icon[dir=rtl]:before{transform:rotateY(180deg)}@font-face{font-family:NextIcon;src:url(/console-fe/public/icons/icon-font.eot);src:url(/console-fe/public/icons/icon-font.eot?#iefix) format("embedded-opentype"),url(/console-fe/public/icons/icon-font.woff) format("woff"),url(/console-fe/public/icons/icon-font.ttf) format("truetype"),url(/console-fe/public/icons/icon-font.svg#NextIcon) format("svg")}.next-icon{display:inline-block;font-family:NextIcon;font-style:normal;font-weight:400;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.next-icon:before{display:inline-block;vertical-align:middle;text-align:center}.next-icon-smile:before{content:""}.next-icon-cry:before{content:""}.next-icon-success:before{content:""}.next-icon-warning:before{content:""}.next-icon-prompt:before{content:""}.next-icon-error:before{content:""}.next-icon-help:before{content:""}.next-icon-clock:before{content:""}.next-icon-success-filling:before{content:""}.next-icon-delete-filling:before{content:""}.next-icon-favorites-filling:before{content:""}.next-icon-add:before{content:""}.next-icon-minus:before{content:""}.next-icon-arrow-up:before{content:""}.next-icon-arrow-down:before{content:""}.next-icon-arrow-left:before{content:""}.next-icon-arrow-right:before{content:""}.next-icon-arrow-double-left:before{content:""}.next-icon-arrow-double-right:before{content:""}.next-icon-switch:before{content:""}.next-icon-sorting:before{content:""}.next-icon-descending:before{content:""}.next-icon-ascending:before{content:""}.next-icon-select:before{content:""}.next-icon-semi-select:before{content:""}.next-icon-search:before{content:""}.next-icon-close:before{content:""}.next-icon-ellipsis:before{content:""}.next-icon-picture:before{content:""}.next-icon-calendar:before{content:""}.next-icon-ashbin:before{content:""}.next-icon-upload:before{content:""}.next-icon-download:before{content:""}.next-icon-set:before{content:""}.next-icon-edit:before{content:""}.next-icon-refresh:before{content:""}.next-icon-filter:before{content:""}.next-icon-attachment:before{content:""}.next-icon-account:before{content:""}.next-icon-email:before{content:""}.next-icon-atm:before{content:""}.next-icon-loading:before{content:"";animation:loadingCircle 1s linear infinite}.next-icon.next-xxs:before{width:8px;font-size:8px;line-height:inherit}@media (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.next-icon.next-xxs{transform:scale(.5);margin-left:-4px;margin-right:-4px}.next-icon.next-xxs:before{width:16px;font-size:16px}}.next-icon.next-xs:before{width:12px;font-size:12px;line-height:inherit}.next-icon.next-small:before{width:16px;font-size:16px;line-height:inherit}.next-icon.next-medium:before{width:20px;font-size:20px;line-height:inherit}.next-icon.next-large:before{width:24px;font-size:24px;line-height:inherit}.next-icon.next-xl:before{width:32px;font-size:32px;line-height:inherit}.next-icon.next-xxl:before{width:48px;font-size:48px;line-height:inherit}.next-icon.next-xxxl:before{width:64px;font-size:64px;line-height:inherit}.next-icon.next-inherit:before{width:inherit;font-size:inherit;line-height:inherit}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-moz-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-ms-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-o-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);-ms-transform:translateY(-100px);-o-transform:translateY(-100px);transform:translateY(-100px)}to{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@keyframes faLine truncated
|
||||
@@ -1,4 +1,4 @@
|
||||
!function(n){var a={};function o(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)o.d(n,a,function(e){return t[e]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=386)}([function(e,t,n){"use strict";e.exports=n(428)},function(e,t,n){e.exports=n(429)()},function(e,t,n){"use strict";n.d(t,"a",function(){return T}),n.d(t,"b",function(){return R}),n.d(t,"d",function(){return H}),n.d(t,"c",function(){return F});function i(s){var l="";return(document.cookie&&document.cookie.split(";")||[]).forEach(function(e){var t=e.split("=")||[],n=Object(f.a)(t,2),a=n[0],o=void 0===a?"":a,r=n[1],i=void 0===r?"":r;-1!==o.trim().indexOf(s)&&(l=i)}),l.trim()}var s,l,a,o,r,u,c=n(72),d=n(85),p=n(56),f=n(66),h=n(86),m=n.n(h),g=n(3),y=n.n(g),_=n(45),v=n.n(_),b=n(97),M=n.n(b),w=window,k=(s={},l={},{once:function(e,t){this.listen.call(this,e,t,!0)},listen:function(e,t,n){var a=2<arguments.length&&void 0!==n&&n;e&&t&&(s[e]||(s[e]=[]),s[e].push({callback:t,once:a}))},listenAllTask:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=Array.prototype.slice.call(t),o=a[0];if(o&&(this.listen.apply(this,Object(p.a)(a)),l[o]&&0<l[o].length)){var r=l[o].pop();this.trigger.apply(r.self,r.argsList)}},trigger:function(){for(var n=this,e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var o=Array.prototype.slice.call(t),r=o.shift();if(!s[r])return l[r]||(l[r]=[]),void l[r].push({argsList:Array.prototype.slice.call(t),self:n});var i=[];s[r].forEach(function(e,t){"[object Function]"===Object.prototype.toString.call(e.callback)&&(e.callback.apply(n,o),e.once||i.push(e))}),s[r]=i},remove:function(e,n){if(e&&s[e])if(n){var a=[];s[e].forEach(function(e,t){e.callback!==n&&a.push(e)}),s[e]=a.length?a:null}else s[e]=null}}),S=(a=0,o={visible:!1,shape:"flower",tip:"loading..."},{changeLoadingAttr:function(e){"[object Object]"===Object.prototype.toString.call(e)&&(o=Object.assign({},a,e))},openLoading:function(){a++,k.trigger("nacosLoadingEvent",Object.assign(o,{visible:!0,spinning:!0}))},closeLoading:function(){--a<=0&&(a=0,k.trigger("nacosLoadingEvent",Object.assign(o,{visible:!1,spinning:!1})))},closeAllLoading:function(){a=0,k.trigger("nacosLoadingEvent",Object.assign(o,{visible:!1,spinning:!1}))},getURISource:function(e){return e}}),T=(r=i("aliyun_lang")||"zh",u=i("aliyun_country")||"cn",r=r.toLowerCase(),u=u.toLowerCase(),x.prototype.currentLocal=r,x.prototype.currentSite=u,x.prototype.currentLanguageCode=i("docsite_language")||"".concat(r,"-").concat(u),x.prototype.get=function(e){return this.nowData[e]},x.prototype.changeLanguage=function(e){this.nowData=M.a[e]||{}},x.prototype.intlNumberFormat=function(t){if("object"!==("undefined"==typeof Intl?"undefined":Object(d.a)(Intl))||"function"!=typeof Intl.NumberFormat)return t;try{return new Intl.NumberFormat(this.currentLanguageCode).format(t||0)}catch(e){return t}},x.prototype.intlTimeFormat=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Date.now(),e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};try{var n="[object Date]"===Object.prototype.toString.call(t)?t:new Date(t),a=Object.assign({},{hour12:!1,year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e);return n.toLocaleDateString(this.currentLanguageCode,a)}catch(e){return"function"==typeof y.a?y()(t).format():"--"}},x.prototype.getIntlTimeFormat=function(e){var t=e||r,n={zh:"YYYY年M月D日 HH:mm:ss",en:"MMM D, YYYY, h:mm:ss A",default:"YYYY-MM-DD HH:mm:ss"};return n[t]?n[t]:n.default},x.prototype.setMomentLocale=function(e){return"[object Function]"===Object.prototype.toString.call(y.a)&&(y.a.locale(e||this.currentLanguageCode),!0)},new x({currentLocal:"".concat(r),locals:M.a[x.prototype.currentLanguageCode]||M.a["en-us"]||M.a["zh-cn"]||{}}));function x(e){var t=e.locals;this.nowData=t,this.setMomentLocale(this.currentLanguageCode)}var C,E,L,D,N,O,Y,j,P,I,A,R=(C=w,function(e){var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)"),"i"),n=[];if(1===(n=""!==C.location.hash?C.location.hash.split("?"):C.location.href.split("?")).length&&(n=C.parent.location.hash.split("?")),1<n.length){var a=n[1].match(t);if(null!=a)return decodeURIComponent(a[2])}return null}),H=(L=(E=w).location.href.split("#")[0],funcLine truncated
|
||||
!function(n){var a={};function o(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)o.d(n,a,function(e){return t[e]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=388)}([function(e,t,n){"use strict";e.exports=n(430)},function(e,t,n){"use strict";n.d(t,"a",function(){return T}),n.d(t,"b",function(){return R}),n.d(t,"d",function(){return H}),n.d(t,"c",function(){return F});function i(s){var l="";return(document.cookie&&document.cookie.split(";")||[]).forEach(function(e){var t=e.split("=")||[],n=Object(f.a)(t,2),a=n[0],o=void 0===a?"":a,r=n[1],i=void 0===r?"":r;-1!==o.trim().indexOf(s)&&(l=i)}),l.trim()}var s,l,a,o,r,u,c=n(72),d=n(86),p=n(56),f=n(66),h=n(87),m=n.n(h),g=n(3),y=n.n(g),_=n(46),v=n.n(_),b=n(98),M=n.n(b),w=window,k=(s={},l={},{once:function(e,t){this.listen.call(this,e,t,!0)},listen:function(e,t,n){var a=2<arguments.length&&void 0!==n&&n;e&&t&&(s[e]||(s[e]=[]),s[e].push({callback:t,once:a}))},listenAllTask:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=Array.prototype.slice.call(t),o=a[0];if(o&&(this.listen.apply(this,Object(p.a)(a)),l[o]&&0<l[o].length)){var r=l[o].pop();this.trigger.apply(r.self,r.argsList)}},trigger:function(){for(var n=this,e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var o=Array.prototype.slice.call(t),r=o.shift();if(!s[r])return l[r]||(l[r]=[]),void l[r].push({argsList:Array.prototype.slice.call(t),self:n});var i=[];s[r].forEach(function(e,t){"[object Function]"===Object.prototype.toString.call(e.callback)&&(e.callback.apply(n,o),e.once||i.push(e))}),s[r]=i},remove:function(e,n){if(e&&s[e])if(n){var a=[];s[e].forEach(function(e,t){e.callback!==n&&a.push(e)}),s[e]=a.length?a:null}else s[e]=null}}),S=(a=0,o={visible:!1,shape:"flower",tip:"loading..."},{changeLoadingAttr:function(e){"[object Object]"===Object.prototype.toString.call(e)&&(o=Object.assign({},a,e))},openLoading:function(){a++,k.trigger("nacosLoadingEvent",Object.assign(o,{visible:!0,spinning:!0}))},closeLoading:function(){--a<=0&&(a=0,k.trigger("nacosLoadingEvent",Object.assign(o,{visible:!1,spinning:!1})))},closeAllLoading:function(){a=0,k.trigger("nacosLoadingEvent",Object.assign(o,{visible:!1,spinning:!1}))},getURISource:function(e){return e}}),T=(r=i("aliyun_lang")||"zh",u=i("aliyun_country")||"cn",r=r.toLowerCase(),u=u.toLowerCase(),C.prototype.currentLocal=r,C.prototype.currentSite=u,C.prototype.currentLanguageCode=i("docsite_language")||"".concat(r,"-").concat(u),C.prototype.get=function(e){return this.nowData[e]},C.prototype.changeLanguage=function(e){this.nowData=M.a[e]||{}},C.prototype.intlNumberFormat=function(t){if("object"!==("undefined"==typeof Intl?"undefined":Object(d.a)(Intl))||"function"!=typeof Intl.NumberFormat)return t;try{return new Intl.NumberFormat(this.currentLanguageCode).format(t||0)}catch(e){return t}},C.prototype.intlTimeFormat=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Date.now(),e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};try{var n="[object Date]"===Object.prototype.toString.call(t)?t:new Date(t),a=Object.assign({},{hour12:!1,year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e);return n.toLocaleDateString(this.currentLanguageCode,a)}catch(e){return"function"==typeof y.a?y()(t).format():"--"}},C.prototype.getIntlTimeFormat=function(e){var t=e||r,n={zh:"YYYY年M月D日 HH:mm:ss",en:"MMM D, YYYY, h:mm:ss A",default:"YYYY-MM-DD HH:mm:ss"};return n[t]?n[t]:n.default},C.prototype.setMomentLocale=function(e){return"[object Function]"===Object.prototype.toString.call(y.a)&&(y.a.locale(e||this.currentLanguageCode),!0)},new C({currentLocal:"".concat(r),locals:M.a[C.prototype.currentLanguageCode]||M.a["en-us"]||M.a["zh-cn"]||{}}));function C(e){var t=e.locals;this.nowData=t,this.setMomentLocale(this.currentLanguageCode)}var x,E,L,D,N,O,Y,P,j,I,A,R=(x=w,function(e){var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)"),"i"),n=[];if(1===(n=""!==x.location.hash?x.location.hash.split("?"):x.location.href.split("?")).length&&(n=x.parent.location.hash.split("?")),1<n.length){var a=n[1].match(t);if(null!=a)return decodeURIComponent(a[2])}return null}),H=(L=(E=w).location.href.split("#")[0],function(e,t){if(e){var n={};"string"==tLine truncated
|
||||
/*!
|
||||
Copyright (c) 2017 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
@@ -9,7 +9,7 @@
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
||||
!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"==a||"number"==a)e.push(n);else if(Array.isArray(n)&&n.length){var o=s.apply(null,n);o&&e.push(o)}else if("object"==a)for(var r in n)i.call(n,r)&&n[r]&&e.push(r)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a)}()},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return a})},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var a=n(85),o=n(20);function r(e,t){return!t||"object"!==Object(a.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return a})},function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";t.__esModule=!0;var c=r(n(5)),d=r(n(13)),a=r(n(8)),p=r(n(498)),o=r(n(499));function r(e){return e&&e.__esModule?e:{default:e}}p.default.Group=o.default,t.default=a.default.config(p.default,{transform:function(e,t){if("shape"in e){t("shape","text | warning | ghost","Button");var n=e,a=n.shape,o=n.type,r=(0,d.default)(n,["shape","type"]),i=o;("light"===o||"dark"===o||"secondary"===o&&"warning"===a)&&(i="normal");var s=void 0;"ghost"===a&&(s={primary:"dark",secondary:"dark",normal:"light",dark:"dark",light:"light"}[o||p.default.defaultProps.type]);var l="text"===a,u="warning"===a;e=(0,c.default)({type:i,ghost:s,text:l,warning:u},r)}return e}}),e.exports=t.default},function(e,t,n){"use strict";function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return a})},function(e,t,n){"use strict";t.__esModule=!0;var C=m(n(5)),E=m(n(13)),a=m(n(8)),o=m(n(525)),r=m(n(530)),i=m(n(533)),s=m(n(534)),l=m(n(535)),u=m(n(536)),c=m(n(538)),d=m(n(541)),p=m(n(544)),f=m(n(334)),h=m(n(335));function m(e){return e&&e.__esModule?e:{default:e}}var g=[i.default,c.default,s.default,l.default,r.default,u.default,d.default,p.default].reduce(function(e,t){return e=t(e)},o.default);g.Base=o.default,g.fixed=i.default,g.lock=c.default,g.selection=s.default,g.expanded=l.default,g.tree=r.default,g.virtual=u.default,g.list=d.default,g.sticky=p.default,g.GroupHeader=f.default,g.GroupFooter=h.default,t.default=a.default.config(g,{componentName:"Table",transform:function(e,t){if("expandedRowKeys"in e){t("expandedRowKeys","openRowKeys","Table");var n=e,a=n.expandedRowKeys,o=(0,E.default)(n,["expandedRowKeys"]);e=(0,C.default)({openRowKeys:a},o)}if("onExpandedChange"in e){t("onExpandedChange","onRowOpen","Table");var r=e,i=r.onExpandedChange,s=(0,E.default)(r,["onExpandedChange"]);e=(0,C.default)({onRowOpen:i},s)}if("isLoading"in e){t("isLoading","loading","Table");var l=e,u=l.isLoading,c=(0,E.default)(l,["isLoading"]);e=(0,C.default)({loading:u},c)}if("indentSize"in e){t("indentSize","indent","Table");var d=e,p=d.indentSize,f=(0,E.default)(d,["indentSize"]);e=(0,C.default)({indent:p},f)}if("optimization"in e){t("optimization","pure","Table");var h=e,m=h.optimization,g=(0,E.default)(h,["optimization"]);e=(0,C.default)({pure:m},g)}if("getRowClassName"in e){t("getRowClassName","getRowProps","Table");var y=e,_=y.getRowClassName,v=y.getRowProps,b=(0,E.default)(y,["getRowClassName","getRowProps"]);if(_){e=(0,C.default)({getRowProps:function(){return(0,C.default)({className:_.apply(void 0,arguments)},v?v.apply(void 0,arguments):{})}},b)}else e=(0,C.default)({getRowProps:v},b)}if("getRowProps"in e){t("getRowProps","rowProps","Table in 1.15.0");var M=e,w=M.getRowProps,k=(0,E.default)(M,["getRowProps"]);e=(0,C.default)({rowProps:w},k)}if("getCellProps"in e){t("getCellProps","cellProps","Table in 1.15.0");var S=e,T=S.getCellProps,x=(0,E.default)(S,["getCellProps"]);e=(0,C.default)({cellProps:T},x)}return e}}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var l=c(n(5)),u=c(n(13)),a=c(n(8)),o=n(11),r=c(n(336)),i=c(n(337)),s=n(549);function c(e){return e&&e.__esMoLine truncated
|
||||
!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"==a||"number"==a)e.push(n);else if(Array.isArray(n)&&n.length){var o=s.apply(null,n);o&&e.push(o)}else if("object"==a)for(var r in n)i.call(n,r)&&n[r]&&e.push(r)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a)}()},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return a})},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var a=n(86),o=n(22);function r(e,t){return!t||"object"!==Object(a.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return a})},function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";t.__esModule=!0;var c=r(n(5)),d=r(n(13)),a=r(n(9)),p=r(n(500)),o=r(n(501));function r(e){return e&&e.__esModule?e:{default:e}}p.default.Group=o.default,t.default=a.default.config(p.default,{transform:function(e,t){if("shape"in e){t("shape","text | warning | ghost","Button");var n=e,a=n.shape,o=n.type,r=(0,d.default)(n,["shape","type"]),i=o;("light"===o||"dark"===o||"secondary"===o&&"warning"===a)&&(i="normal");var s=void 0;"ghost"===a&&(s={primary:"dark",secondary:"dark",normal:"light",dark:"dark",light:"light"}[o||p.default.defaultProps.type]);var l="text"===a,u="warning"===a;e=(0,c.default)({type:i,ghost:s,text:l,warning:u},r)}return e}}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var x=m(n(5)),E=m(n(13)),a=m(n(9)),o=m(n(527)),r=m(n(532)),i=m(n(535)),s=m(n(536)),l=m(n(537)),u=m(n(538)),c=m(n(540)),d=m(n(543)),p=m(n(546)),f=m(n(336)),h=m(n(337));function m(e){return e&&e.__esModule?e:{default:e}}var g=[i.default,c.default,s.default,l.default,r.default,u.default,d.default,p.default].reduce(function(e,t){return e=t(e)},o.default);g.Base=o.default,g.fixed=i.default,g.lock=c.default,g.selection=s.default,g.expanded=l.default,g.tree=r.default,g.virtual=u.default,g.list=d.default,g.sticky=p.default,g.GroupHeader=f.default,g.GroupFooter=h.default,t.default=a.default.config(g,{componentName:"Table",transform:function(e,t){if("expandedRowKeys"in e){t("expandedRowKeys","openRowKeys","Table");var n=e,a=n.expandedRowKeys,o=(0,E.default)(n,["expandedRowKeys"]);e=(0,x.default)({openRowKeys:a},o)}if("onExpandedChange"in e){t("onExpandedChange","onRowOpen","Table");var r=e,i=r.onExpandedChange,s=(0,E.default)(r,["onExpandedChange"]);e=(0,x.default)({onRowOpen:i},s)}if("isLoading"in e){t("isLoading","loading","Table");var l=e,u=l.isLoading,c=(0,E.default)(l,["isLoading"]);e=(0,x.default)({loading:u},c)}if("indentSize"in e){t("indentSize","indent","Table");var d=e,p=d.indentSize,f=(0,E.default)(d,["indentSize"]);e=(0,x.default)({indent:p},f)}if("optimization"in e){t("optimization","pure","Table");var h=e,m=h.optimization,g=(0,E.default)(h,["optimization"]);e=(0,x.default)({pure:m},g)}if("getRowClassName"in e){t("getRowClassName","getRowProps","Table");var y=e,_=y.getRowClassName,v=y.getRowProps,b=(0,E.default)(y,["getRowClassName","getRowProps"]);if(_){e=(0,x.default)({getRowProps:function(){return(0,x.default)({className:_.apply(void 0,arguments)},v?v.apply(void 0,arguments):{})}},b)}else e=(0,x.default)({getRowProps:v},b)}if("getRowProps"in e){t("getRowProps","rowProps","Table in 1.15.0");var M=e,w=M.getRowProps,k=(0,E.default)(M,["getRowProps"]);e=(0,x.default)({rowProps:w},k)}if("getCellProps"in e){t("getCellProps","cellProps","Table in 1.15.0");var S=e,T=S.getCellProps,C=(0,E.default)(S,["getCellProps"]);e=(0,x.default)({cellProps:T},C)}return e}}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var l=c(n(5)),u=c(n(13)),a=c(n(9)),o=n(11),r=c(n(338)),i=c(n(339)),s=n(551);function c(e){return e&&e.__esModule?e:{default:e}}function d(i,s){if("closable"in i){s("closable","closeable","Dialog");var e=i,t=e.closable,n=(0,u.default)(e,["closable"]);i=(0,l.default)({closeable:t},n)}return["taLine truncated
|
||||
/*!
|
||||
* jQuery JavaScript Library v3.4.1
|
||||
* https://jquery.com/
|
||||
@@ -47,12 +47,12 @@
|
||||
*
|
||||
* Date: 2019-04-08
|
||||
*/
|
||||
function(n){function d(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(65536+a):String.fromCharCode(a>>10|55296,1023&a|56320)}function o(){w()}var e,f,b,r,i,h,p,m,M,l,u,w,k,s,S,g,c,y,_,T="sizzle"+1*new Date,v=n.document,x=0,a=0,C=le(),E=le(),L=le(),D=le(),N=function(e,t){return e===t&&(u=!0),0},O={}.hasOwnProperty,t=[],Y=t.pop,j=t.push,P=t.push,I=t.slice,A=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",z="\\["+H+"*("+F+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+H+"*\\]",W=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",B=new RegExp(H+"+","g"),V=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),U=new RegExp("^"+H+"*,"+H+"*"),K=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),q=new RegExp(H+"|>"),G=new RegExp(W),J=new RegExp("^"+F+"$"),$={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ae=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=I.call(v.childNodes),v.childNodes),t[v.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){j.apply(e,I.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function se(t,e,n,a){var o,r,i,s,l,u,c,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!a&&((e?e.ownerDocument||e:v)!==k&&w(e),e=e||k,S)){if(11!==p&&(l=te.exec(t)))if(o=l[1]){if(9===p){if(!(i=e.getElementById(o)))return n;if(i.id===o)return n.push(i),n}else if(d&&(i=d.getElementById(o))&&_(e,i)&&i.id===o)return n.push(i),n}else{if(l[2])return P.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(o)),n}if(f.qsa&&!D[t+" "]&&(!g||!g.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,d=e,1===p&&q.test(t)){for((s=e.getAttribute("id"))?s=s.replace(oe,re):e.setAttribute("id",s=T),r=(u=h(t)).length;r--;)u[r]="#"+s+" "+ve(u[r]);c=u.join(","),d=ne.test(t)&&ye(e.parentNode)||e}try{return P.apply(n,d.querySelectorAll(c)),n}catch(e){D(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return m(t.replace(V,"$1"),e,n,a)}function le(){var a=[];return function e(t,n){return a.push(t+" ")>b.cacheLength&&delete e[a.shift()],e[t+" "]=n}}function ue(e){return e[T]=!0,e}function ce(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=n.length;a--;)b.attrHandle[n[a]]=t}function pe(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 fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function me(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&&ie(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ge(i){return ue(function(r){return r=+r,ue(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 ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},w=se.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:v;return a!==k&&9===a.nodeType&&a.documentElement&&(s=(k=a).documentElement,S=!i(k),v!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",o,!1):n.attachEvent&&n.attachEvent("onunload",o)),f.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ce(function(e){return e.appendChild(k.createComment("")),!e.getElLine truncated
|
||||
function(n){function d(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(65536+a):String.fromCharCode(a>>10|55296,1023&a|56320)}function o(){w()}var e,f,b,r,i,h,p,m,M,l,u,w,k,s,S,g,c,y,_,T="sizzle"+1*new Date,v=n.document,C=0,a=0,x=le(),E=le(),L=le(),D=le(),N=function(e,t){return e===t&&(u=!0),0},O={}.hasOwnProperty,t=[],Y=t.pop,P=t.push,j=t.push,I=t.slice,A=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",z="\\["+H+"*("+F+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+H+"*\\]",W=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",B=new RegExp(H+"+","g"),V=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),U=new RegExp("^"+H+"*,"+H+"*"),K=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),q=new RegExp(H+"|>"),G=new RegExp(W),J=new RegExp("^"+F+"$"),$={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ae=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{j.apply(t=I.call(v.childNodes),v.childNodes),t[v.childNodes.length].nodeType}catch(e){j={apply:t.length?function(e,t){P.apply(e,I.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function se(t,e,n,a){var o,r,i,s,l,u,c,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!a&&((e?e.ownerDocument||e:v)!==k&&w(e),e=e||k,S)){if(11!==p&&(l=te.exec(t)))if(o=l[1]){if(9===p){if(!(i=e.getElementById(o)))return n;if(i.id===o)return n.push(i),n}else if(d&&(i=d.getElementById(o))&&_(e,i)&&i.id===o)return n.push(i),n}else{if(l[2])return j.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(o)),n}if(f.qsa&&!D[t+" "]&&(!g||!g.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,d=e,1===p&&q.test(t)){for((s=e.getAttribute("id"))?s=s.replace(oe,re):e.setAttribute("id",s=T),r=(u=h(t)).length;r--;)u[r]="#"+s+" "+ve(u[r]);c=u.join(","),d=ne.test(t)&&ye(e.parentNode)||e}try{return j.apply(n,d.querySelectorAll(c)),n}catch(e){D(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return m(t.replace(V,"$1"),e,n,a)}function le(){var a=[];return function e(t,n){return a.push(t+" ")>b.cacheLength&&delete e[a.shift()],e[t+" "]=n}}function ue(e){return e[T]=!0,e}function ce(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=n.length;a--;)b.attrHandle[n[a]]=t}function pe(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 fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function me(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&&ie(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ge(i){return ue(function(r){return r=+r,ue(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 ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},w=se.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:v;return a!==k&&9===a.nodeType&&a.documentElement&&(s=(k=a).documentElement,S=!i(k),v!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",o,!1):n.attachEvent&&n.attachEvent("onunload",o)),f.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ce(function(e){return e.appendChild(k.createComment("")),!e.getElLine truncated
|
||||
/*
|
||||
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;r<arguments.length;r++){for(var i in n=Object(arguments[r]))u.call(n,i)&&(o[i]=n[i]);if(l){a=l(n);for(var s=0;s<a.length;s++)c.call(n,a[s])&&(o[a[s]]=n[a[s]])}}return o}},function(e,t,n){"use strict";t.__esModule=!0;var b=a(n(5));t.default=function(e,t,n){var a=e.prefix,o=e.locale,r=e.pure,i=e.rtl,s=e.errorBoundary,l=t.nextPrefix,u=t.nextLocale,c=t.nextPure,d=t.nextWarning,p=t.nextRtl,f=t.nextErrorBoundary,h=a||l,m=void 0;u&&(m=u[n])&&(m.momentLocale=u.momentLocale);var g=void 0;o?g=w.obj.deepMerge({},M.default[n],m,o):m&&(g=w.obj.deepMerge({},M.default[n],m));var y="boolean"==typeof r?r:c,_="boolean"==typeof i?i:p,v=(0,b.default)({},k(f),k(s));"open"in v||(v.open=!1);return{prefix:h,locale:g,pure:y,rtl:_,warning:d,errorBoundary:v}};var M=a(n(35)),w=n(11);function a(e){return e&&e.__esModule?e:{default:e}}var k=function(e){return null==e?{}:"boolean"==typeof e?{open:e}:(0,b.default)({open:!0},e)};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.matches=t.hasDOM=void 0;var a,o=n(46),r=(a=o)&&a.__esModule?a:{default:a};t.hasClass=u,t.addClass=c,t.removeClass=d,t.toggleClass=function(e,t){if(!l||!e)return!1;{if(e.classList)return e.classList.toggle(t);var n=u(e,t);return n?d(e,t,!0):c(e,t,!0),!n}},t.getStyle=function(e,t){if(!l||!e)return null;var n=function(e){return e&&1===e.nodeType?window.getComputedStyle(e,null):{}}(e);return 1!==arguments.length?(t=h[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,function(e,t,n){if(t=t.toLowerCase(),"auto"===n){if("height"===t)return e.offsetHeight||0;if("width"===t)return e.offsetWidth||0}t in f||(f[t]=p.test(t));return f[t]?parseFloat(n)||0:n}(e,t,n.getPropertyValue((0,i.hyphenate)(t))||e.style[(0,i.camelcase)(t)])):n},t.setStyle=m,t.scrollbar=function(){var e=document.createElement("div");m(e,{position:"absolute",width:"100px",height:"100px",overflow:"scroll",top:"-9999px"}),document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}},t.getOffset=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}};var i=n(166),s=n(79);var l=t.hasDOM="undefined"!=typeof window&&!!window.document&&!!document.createElement;function u(e,t){return!(!l||!e)&&(e.classList?e.classList.contains(t):-1<e.className.indexOf(t))}function c(e,t,n){l&&e&&(e.classList?e.classList.add(t):!0!==n&&u(e,t)||(e.className+=" "+t))}function d(e,t,n){l&&e&&(e.classList?e.classList.remove(t):!0!==n&&!u(e,t)||(e.className=e.className.replace(t,"").replace(/\s+/g," ").trim()))}t.matches=function(){var n=null;if(l){var e=document.body||document.head;n=e.matches?"matches":e.webkitMatchesSelector?"webkitMatchesSelector":e.msMatchesSelector?"msMatchesSelector":e.mozMatchesSelector?"mozMatchesSelector":null}return function(e,t){return!(!l||!e)&&(!!n&&e[n](t))}}();var p=/margin|padding|width|height|max|min|offset|size/i,f={left:1,top:1,right:1,bottom:1};var h={cssFloat:1,styleFloat:1,float:1};function m(n,e,t){if(!l||!n)return!1;"object"===(void 0===e?"undefined":(0,r.default)(e))&&2===arguments.length?(0,s.each)(e,function(e,t){return m(n,t,e)}):(e=h[e]?"cssFloat"in n.style?"cssFloat":"styleFloat":e,"number"==typeof t&&p.test(e)&&(t+="px"),n.style[(0,i.camelcase)(e)]=t)}},function(e,t,n){"use strict";t.__esModule=!0,t.camelcase=function(e){return/-/.test(e)?e.toLowerCase().replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}):e||""},t.hyphenate=function(e){var t=(0,o.typeOf)(e);return"String"===t?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}):((0,a.warning)("[ hyphenate(str: string): string ] Expected arguments[0] to be a string but get a "+t+".It will return an empty string without any processing."),"")},t.template=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=(0,o.typeOf)(e);return"String"===t?e.replace(/\{[a-z]*\}/g,function(e){var t=e.substring(1,e.length-1);return n[t]||""}):((0,a.warning)("[ template(tpl: string, object: object): string ] Expected arguments[0] to be a string but get a "+t+".It will return an empty string without any processing."),"")};var a=n(167),o=n(79)},function(e,t,n){"use strict";t.__esModule=!0,t.deprecated=function(e,t,n){if(!(Line truncated
|
||||
*/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;r<arguments.length;r++){for(var i in n=Object(arguments[r]))u.call(n,i)&&(o[i]=n[i]);if(l){a=l(n);for(var s=0;s<a.length;s++)c.call(n,a[s])&&(o[a[s]]=n[a[s]])}}return o}},function(e,t,n){"use strict";t.__esModule=!0;var b=a(n(5));t.default=function(e,t,n){var a=e.prefix,o=e.locale,r=e.pure,i=e.rtl,s=e.errorBoundary,l=t.nextPrefix,u=t.nextLocale,c=t.nextPure,d=t.nextWarning,p=t.nextRtl,f=t.nextErrorBoundary,h=a||l,m=void 0;u&&(m=u[n])&&(m.momentLocale=u.momentLocale);var g=void 0;o?g=w.obj.deepMerge({},M.default[n],m,o):m&&(g=w.obj.deepMerge({},M.default[n],m));var y="boolean"==typeof r?r:c,_="boolean"==typeof i?i:p,v=(0,b.default)({},k(f),k(s));"open"in v||(v.open=!1);return{prefix:h,locale:g,pure:y,rtl:_,warning:d,errorBoundary:v}};var M=a(n(35)),w=n(11);function a(e){return e&&e.__esModule?e:{default:e}}var k=function(e){return null==e?{}:"boolean"==typeof e?{open:e}:(0,b.default)({open:!0},e)};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.matches=t.hasDOM=void 0;var a,o=n(47),r=(a=o)&&a.__esModule?a:{default:a};t.hasClass=u,t.addClass=c,t.removeClass=d,t.toggleClass=function(e,t){if(!l||!e)return!1;{if(e.classList)return e.classList.toggle(t);var n=u(e,t);return n?d(e,t,!0):c(e,t,!0),!n}},t.getStyle=function(e,t){if(!l||!e)return null;var n=function(e){return e&&1===e.nodeType?window.getComputedStyle(e,null):{}}(e);return 1!==arguments.length?(t=h[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,function(e,t,n){if(t=t.toLowerCase(),"auto"===n){if("height"===t)return e.offsetHeight||0;if("width"===t)return e.offsetWidth||0}t in f||(f[t]=p.test(t));return f[t]?parseFloat(n)||0:n}(e,t,n.getPropertyValue((0,i.hyphenate)(t))||e.style[(0,i.camelcase)(t)])):n},t.setStyle=m,t.scrollbar=function(){var e=document.createElement("div");m(e,{position:"absolute",width:"100px",height:"100px",overflow:"scroll",top:"-9999px"}),document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}},t.getOffset=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}};var i=n(167),s=n(79);var l=t.hasDOM="undefined"!=typeof window&&!!window.document&&!!document.createElement;function u(e,t){return!(!l||!e)&&(e.classList?e.classList.contains(t):-1<e.className.indexOf(t))}function c(e,t,n){l&&e&&(e.classList?e.classList.add(t):!0!==n&&u(e,t)||(e.className+=" "+t))}function d(e,t,n){l&&e&&(e.classList?e.classList.remove(t):!0!==n&&!u(e,t)||(e.className=e.className.replace(t,"").replace(/\s+/g," ").trim()))}t.matches=function(){var n=null;if(l){var e=document.body||document.head;n=e.matches?"matches":e.webkitMatchesSelector?"webkitMatchesSelector":e.msMatchesSelector?"msMatchesSelector":e.mozMatchesSelector?"mozMatchesSelector":null}return function(e,t){return!(!l||!e)&&(!!n&&e[n](t))}}();var p=/margin|padding|width|height|max|min|offset|size/i,f={left:1,top:1,right:1,bottom:1};var h={cssFloat:1,styleFloat:1,float:1};function m(n,e,t){if(!l||!n)return!1;"object"===(void 0===e?"undefined":(0,r.default)(e))&&2===arguments.length?(0,s.each)(e,function(e,t){return m(n,t,e)}):(e=h[e]?"cssFloat"in n.style?"cssFloat":"styleFloat":e,"number"==typeof t&&p.test(e)&&(t+="px"),n.style[(0,i.camelcase)(e)]=t)}},function(e,t,n){"use strict";t.__esModule=!0,t.camelcase=function(e){return/-/.test(e)?e.toLowerCase().replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}):e||""},t.hyphenate=function(e){var t=(0,o.typeOf)(e);return"String"===t?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}):((0,a.warning)("[ hyphenate(str: string): string ] Expected arguments[0] to be a string but get a "+t+".It will return an empty string without any processing."),"")},t.template=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=(0,o.typeOf)(e);return"String"===t?e.replace(/\{[a-z]*\}/g,function(e){var t=e.substring(1,e.length-1);return n[t]||""}):((0,a.warning)("[ template(tpl: string, object: object): string ] Expected arguments[0] to be a string but get a "+t+".It will return an empty string without any processing."),"")};var a=n(168),o=n(79)},function(e,t,n){"use strict";t.__esModule=!0,t.deprecated=function(e,t,n){if(!(Line truncated
|
||||
/** @license React v16.8.6
|
||||
* react.production.min.js
|
||||
*
|
||||
@@ -60,7 +60,7 @@ object-assign
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var c=n(163),a="function"==typeof Symbol&&Symbol.for,d=a?Symbol.for("react.element"):60103,u=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,l=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a<t;a++)n+="&args[]="+encodeURIComponent(arguments[a+1]);!function(e,t,n,a,o,r,i,s){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,o,r,i,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function M(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}M.prototype.isReactComponent={},M.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&_("85"),this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=M.prototype;var S=k.prototype=new w;S.constructor=k,c(S,M.prototype),S.isPureReactComponent=!0;var T={current:null},x={current:null},C=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function L(e,t,n){var a=void 0,o={},r=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)C.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:d,type:e,key:r,ref:i,props:o,_owner:x.current}}function D(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var N=/\/+/g,O=[];function Y(e,t,n,a){if(O.length){var o=O.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=a,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:a,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,O.length<10&&O.push(e)}function P(e,t,n){return null==e?0:function e(t,n,a,o){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var i=!1;if(null===t)i=!0;else switch(r){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case d:case u:i=!0}}if(i)return a(o,t,""===n?"."+I(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var l=n+I(r=t[s],s);i+=e(r,l,a,o)}else if("function"==typeof(l=null===t||"object"!=typeof t?null:"function"==typeof(l=y&&t[y]||t["@@iterator"])?l:null))for(t=l.call(t),s=0;!(r=t.next()).done;)i+=e(r=r.value,l=n+I(r,s++),a,o);else"object"===r&&_("31","[object Object]"==(a=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":a,"");return i}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var a=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?H(e,a,n,function(e){return e}):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),a.push(e))}function H(e,t,n,a,o){var r="";null!=n&&(r=(""+n).replace(N,"$&/")+"/"),P(e,R,t=Y(t,r,a,o)),j(t)}function F(){var e=T.current;return null===e&&_("321"),e}var z={Children:{map:function(e,t,n){if(null==e)return e;var a=[];return H(e,a,null,t,n),a},forEach:function(e,t,n){if(null==e)return e;P(e,A,t=Y(null,null,t,n)),j(t)},count:function(e){return P(e,function(){return null},null)},toArray:function(e){var t=[];return H(e,t,null,function(e){return e}),t},only:function(e){return D(e)||_("143"),e}},createRef:function(){return{current:null}},Component:M,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){returnLine truncated
|
||||
*/var c=n(164),a="function"==typeof Symbol&&Symbol.for,d=a?Symbol.for("react.element"):60103,u=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,l=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a<t;a++)n+="&args[]="+encodeURIComponent(arguments[a+1]);!function(e,t,n,a,o,r,i,s){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,o,r,i,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function M(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}M.prototype.isReactComponent={},M.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&_("85"),this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=M.prototype;var S=k.prototype=new w;S.constructor=k,c(S,M.prototype),S.isPureReactComponent=!0;var T={current:null},C={current:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function L(e,t,n){var a=void 0,o={},r=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)x.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:d,type:e,key:r,ref:i,props:o,_owner:C.current}}function D(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var N=/\/+/g,O=[];function Y(e,t,n,a){if(O.length){var o=O.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=a,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:a,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,O.length<10&&O.push(e)}function j(e,t,n){return null==e?0:function e(t,n,a,o){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var i=!1;if(null===t)i=!0;else switch(r){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case d:case u:i=!0}}if(i)return a(o,t,""===n?"."+I(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var l=n+I(r=t[s],s);i+=e(r,l,a,o)}else if("function"==typeof(l=null===t||"object"!=typeof t?null:"function"==typeof(l=y&&t[y]||t["@@iterator"])?l:null))for(t=l.call(t),s=0;!(r=t.next()).done;)i+=e(r=r.value,l=n+I(r,s++),a,o);else"object"===r&&_("31","[object Object]"==(a=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":a,"");return i}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var a=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?H(e,a,n,function(e){return e}):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),a.push(e))}function H(e,t,n,a,o){var r="";null!=n&&(r=(""+n).replace(N,"$&/")+"/"),j(e,R,t=Y(t,r,a,o)),P(t)}function F(){var e=T.current;return null===e&&_("321"),e}var z={Children:{map:function(e,t,n){if(null==e)return e;var a=[];return H(e,a,null,t,n),a},forEach:function(e,t,n){if(null==e)return e;j(e,A,t=Y(null,null,t,n)),P(t)},count:function(e){return j(e,function(){return null},null)},toArray:function(e){var t=[];return H(e,t,null,function(e){return e}),t},only:function(e){return D(e)||_("143"),e}},createRef:function(){return{current:null}},Component:M,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){returnLine truncated
|
||||
/** @license React v16.8.6
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
@@ -68,7 +68,7 @@ object-assign
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var a=n(0),_=n(163),s=n(442);function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a<t;a++)n+="&args[]="+encodeURIComponent(arguments[a+1]);!function(e,t,n,a,o,r,i,s){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,o,r,i,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}a||v("227");var c=!1,d=null,p=!1,f=null,u={onError:function(e){c=!0,d=e}};function h(e,t,n,a,o,r,i,s,l){c=!1,d=null,function(e,t,n,a,o,r,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(u,arguments)}var m=null,g={};function o(){if(m)for(var e in g){var t=g[e],n=m.indexOf(e);if(-1<n||v("96",e),!b[n])for(var a in t.extractEvents||v("97",e),n=(b[n]=t).eventTypes){var o=void 0,r=n[a],i=t,s=a;M.hasOwnProperty(s)&&v("99",s);var l=(M[s]=r).phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&y(l[o],i,s);o=!0}else o=!!r.registrationName&&(y(r.registrationName,i,s),!0);o||v("98",a,e)}}}function y(e,t,n){w[e]&&v("100",e),w[e]=t,l[e]=t.eventTypes[n].dependencies}var b=[],M={},w={},l={},r=null,i=null,k=null;function S(e,t,n){var a=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,a,o,r,i,s,l){if(h.apply(this,arguments),c){if(c){var u=d;c=!1,d=null}else v("198"),u=void 0;p||(p=!0,f=u)}}(a,t,void 0,e),e.currentTarget=null}function T(e,t){return null==t&&v("30"),null==e?t:Array.isArray(e)?(Array.isArray(t)?e.push.apply(e,t):e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function x(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var C=null;function E(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var a=0;a<t.length&&!e.isPropagationStopped();a++)S(e,t[a],n[a]);else t&&S(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var L={injectEventPluginOrder:function(e){m&&v("101"),m=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var a=e[t];g.hasOwnProperty(t)&&g[t]===a||(g[t]&&v("102",t),g[t]=a,n=!0)}n&&o()}};function D(e,t){var n=e.stateNode;if(!n)return null;var a=r(n);if(!a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&v("231",t,typeof n),n)}function N(e){if(null!==e&&(C=T(C,e)),e=C,C=null,e&&(x(e,E),C&&v("95"),p))throw e=f,p=!1,f=null,e}var O=Math.random().toString(36).slice(2),Y="__reactInternalInstance$"+O,j="__reactEventHandlers$"+O;function P(e){if(e[Y])return e[Y];for(;!e[Y];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[Y]).tag||6===e.tag?e:null}function I(e){return!(e=e[Y])||5!==e.tag&&6!==e.tag?null:e}function A(e){if(5===e.tag||6===e.tag)return e.stateNode;v("33")}function R(e){return e[j]||null}function H(e){for(;(e=e.return)&&5!==e.tag;);return e||null}function F(e,t,n){(t=D(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function z(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=H(t);for(t=n.length;0<t--;)F(n[t],"captured",e);for(t=0;t<n.length;t++)F(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=D(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function B(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function V(e){x(e,z)}var U=!("undefined"==typeof window||!window.document||!window.document.createElement);function K(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},G={},J={};function $(e){if(G[e])return G[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in J)return G[e]=n[t];return e}U&&(J=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var Q=$("animationend"),X=$("animationiteration"),Z=$("animationstart"),ee=$("transitionend"),Line truncated
|
||||
*/var a=n(0),_=n(164),s=n(444);function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a<t;a++)n+="&args[]="+encodeURIComponent(arguments[a+1]);!function(e,t,n,a,o,r,i,s){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,o,r,i,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}a||v("227");var c=!1,d=null,p=!1,f=null,u={onError:function(e){c=!0,d=e}};function h(e,t,n,a,o,r,i,s,l){c=!1,d=null,function(e,t,n,a,o,r,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(u,arguments)}var m=null,g={};function o(){if(m)for(var e in g){var t=g[e],n=m.indexOf(e);if(-1<n||v("96",e),!b[n])for(var a in t.extractEvents||v("97",e),n=(b[n]=t).eventTypes){var o=void 0,r=n[a],i=t,s=a;M.hasOwnProperty(s)&&v("99",s);var l=(M[s]=r).phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&y(l[o],i,s);o=!0}else o=!!r.registrationName&&(y(r.registrationName,i,s),!0);o||v("98",a,e)}}}function y(e,t,n){w[e]&&v("100",e),w[e]=t,l[e]=t.eventTypes[n].dependencies}var b=[],M={},w={},l={},r=null,i=null,k=null;function S(e,t,n){var a=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,a,o,r,i,s,l){if(h.apply(this,arguments),c){if(c){var u=d;c=!1,d=null}else v("198"),u=void 0;p||(p=!0,f=u)}}(a,t,void 0,e),e.currentTarget=null}function T(e,t){return null==t&&v("30"),null==e?t:Array.isArray(e)?(Array.isArray(t)?e.push.apply(e,t):e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function C(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var x=null;function E(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var a=0;a<t.length&&!e.isPropagationStopped();a++)S(e,t[a],n[a]);else t&&S(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var L={injectEventPluginOrder:function(e){m&&v("101"),m=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var a=e[t];g.hasOwnProperty(t)&&g[t]===a||(g[t]&&v("102",t),g[t]=a,n=!0)}n&&o()}};function D(e,t){var n=e.stateNode;if(!n)return null;var a=r(n);if(!a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&v("231",t,typeof n),n)}function N(e){if(null!==e&&(x=T(x,e)),e=x,x=null,e&&(C(e,E),x&&v("95"),p))throw e=f,p=!1,f=null,e}var O=Math.random().toString(36).slice(2),Y="__reactInternalInstance$"+O,P="__reactEventHandlers$"+O;function j(e){if(e[Y])return e[Y];for(;!e[Y];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[Y]).tag||6===e.tag?e:null}function I(e){return!(e=e[Y])||5!==e.tag&&6!==e.tag?null:e}function A(e){if(5===e.tag||6===e.tag)return e.stateNode;v("33")}function R(e){return e[P]||null}function H(e){for(;(e=e.return)&&5!==e.tag;);return e||null}function F(e,t,n){(t=D(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function z(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=H(t);for(t=n.length;0<t--;)F(n[t],"captured",e);for(t=0;t<n.length;t++)F(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=D(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function B(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function V(e){C(e,z)}var U=!("undefined"==typeof window||!window.document||!window.document.createElement);function K(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},G={},J={};function $(e){if(G[e])return G[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in J)return G[e]=n[t];return e}U&&(J=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var Q=$("animationend"),X=$("animationiteration"),Z=$("animationstart"),ee=$("transitionend"),Line truncated
|
||||
/** @license React v0.13.6
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
@@ -77,7 +77,7 @@ object-assign
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
Object.defineProperty(H,"__esModule",{value:!0});var i=null,a=!1,s=3,o=-1,l=-1,r=!1,u=!1;function c(){if(!r){var e=i.expirationTime;u?w():u=!0,M(t,e)}}function d(){var e=i,t=i.next;if(i===t)i=null;else{var n=i.previous;i=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var a=s,o=l;s=e,l=t;try{var r=n()}finally{s=a,l=o}if("function"==typeof r)if(r={callback:r,priorityLevel:e,expirationTime:t,next:null,previous:null},null===i)i=r.next=r.previous=r;else{n=null,e=i;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==i);null===n?n=i:n===i&&(i=r,c()),(t=n.previous).next=n.previous=r,r.next=n,r.previous=t}}function p(){if(-1===o&&null!==i&&1===i.priorityLevel){r=!0;try{for(;d(),null!==i&&1===i.priorityLevel;);}finally{r=!1,null!==i?c():u=!1}}}function t(e){r=!0;var t=a;a=e;try{if(e)for(;null!==i;){var n=H.unstable_now();if(!(i.expirationTime<=n))break;for(;d(),null!==i&&i.expirationTime<=n;);}else if(null!==i)for(;d(),null!==i&&!k(););}finally{r=!1,a=t,null!==i?c():u=!1,p()}}var n,f,h=Date,m="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function v(t){n=y(function(e){g(f),t(e)}),f=m(function(){_(n),t(H.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var b=performance;H.unstable_now=function(){return b.now()}}else H.unstable_now=function(){return h.now()};var M,w,k,S=null;if("undefined"!=typeof window?S=window:void 0!==e&&(S=e),S&&S._schedMock){var T=S._schedMock;M=T[0],w=T[1],k=T[2],H.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var x=null,C=function(e){if(null!==x)try{x(e)}finally{x=null}};M=function(e){null!==x?setTimeout(M,0,e):(x=e,setTimeout(C,0,!1))},w=function(){x=null},k=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var E=null,L=!1,D=-1,N=!1,O=!1,Y=0,j=33,P=33;k=function(){return Y<=H.unstable_now()};var I=new MessageChannel,A=I.port2;I.port1.onmessage=function(){L=!1;var e=E,t=D;E=null,D=-1;var n=H.unstable_now(),a=!1;if(Y-n<=0){if(!(-1!==t&&t<=n))return N||(N=!0,v(R)),E=e,void(D=t);a=!0}if(null!==e){O=!0;try{e(a)}finally{O=!1}}};var R=function(e){if(null!==E){v(R);var t=e-Y+P;t<P&&j<P?(t<8&&(t=8),P=t<j?j:t):j=t,Y=e+P,L||(L=!0,A.postMessage(void 0))}else N=!1};M=function(e,t){E=e,D=t,O||t<0?A.postMessage(void 0):N||(N=!0,v(R))},w=function(){E=null,L=!1,D=-1}}H.unstable_ImmediatePriority=1,H.unstable_UserBlockingPriority=2,H.unstable_NormalPriority=3,H.unstable_IdlePriority=5,H.unstable_LowPriority=4,H.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=s,a=o;s=e,o=H.unstable_now();try{return t()}finally{s=n,o=a,p()}},H.unstable_next=function(e){switch(s){case 1:case 2:case 3:var t=3;break;default:t=s}var n=s,a=o;s=t,o=H.unstable_now();try{return e()}finally{s=n,o=a,p()}},H.unstable_scheduleCallback=function(e,t){var n=-1!==o?o:H.unstable_now();if("object"==typeof t&&null!==t&&"number"==typeof t.timeout)t=n+t.timeout;else switch(s){case 1:t=n+-1;break;case 2:t=n+250;break;case 5:t=n+1073741823;break;case 4:t=n+1e4;break;default:t=n+5e3}if(e={callback:e,priorityLevel:s,expirationTime:t,next:null,previous:null},null===i)i=e.next=e.previous=e,c();else{n=null;var a=i;do{if(a.expirationTime>t){n=a;break}a=a.next}while(a!==i);null===n?n=i:n===i&&(i=e,c()),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}return e},H.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)i=null;else{e===i&&(i=t);var n=e.previous;(n.next=t).previous=n}e.next=e.previous=null}},H.unstable_wrapCallback=function(n){var a=s;return function(){var e=s,t=o;s=a,o=H.unstable_now();try{return n.apply(this,arguments)}finally{s=e,o=t,p()}}},H.unstable_getCurrentPriorityLevel=function(){return s},H.unstable_shouldYield=function(){return!a&&(null!==i&&i.expirationTime<l||k())},H.unstable_continueExecution=function(){null!==i&&c()},H.unstable_pauseExecution=function(){},H.unstable_getFirstCallbackNode=function(){return i}}).call(this,t(134))},function(e,t,n){"use strict";t.__esModule=!0;t.default={allOverlays:[],addOverlay:function(e){this.removeOverlay(e),this.allOverlays.unshift(e)},isCurrentOverlay:function(e){return e&&this.allOverlays[0]===e},removeOverlay:function(e){var t=this.allOverlays.indexOf(e);-1<t&&this.allOverlays.splice(t,1)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,r,i=n(4),s=(a=i)&&a.__esModule?a:{default:a},g=n(11);functLine truncated
|
||||
Object.defineProperty(H,"__esModule",{value:!0});var i=null,a=!1,s=3,o=-1,l=-1,r=!1,u=!1;function c(){if(!r){var e=i.expirationTime;u?w():u=!0,M(t,e)}}function d(){var e=i,t=i.next;if(i===t)i=null;else{var n=i.previous;i=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var a=s,o=l;s=e,l=t;try{var r=n()}finally{s=a,l=o}if("function"==typeof r)if(r={callback:r,priorityLevel:e,expirationTime:t,next:null,previous:null},null===i)i=r.next=r.previous=r;else{n=null,e=i;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==i);null===n?n=i:n===i&&(i=r,c()),(t=n.previous).next=n.previous=r,r.next=n,r.previous=t}}function p(){if(-1===o&&null!==i&&1===i.priorityLevel){r=!0;try{for(;d(),null!==i&&1===i.priorityLevel;);}finally{r=!1,null!==i?c():u=!1}}}function t(e){r=!0;var t=a;a=e;try{if(e)for(;null!==i;){var n=H.unstable_now();if(!(i.expirationTime<=n))break;for(;d(),null!==i&&i.expirationTime<=n;);}else if(null!==i)for(;d(),null!==i&&!k(););}finally{r=!1,a=t,null!==i?c():u=!1,p()}}var n,f,h=Date,m="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function v(t){n=y(function(e){g(f),t(e)}),f=m(function(){_(n),t(H.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var b=performance;H.unstable_now=function(){return b.now()}}else H.unstable_now=function(){return h.now()};var M,w,k,S=null;if("undefined"!=typeof window?S=window:void 0!==e&&(S=e),S&&S._schedMock){var T=S._schedMock;M=T[0],w=T[1],k=T[2],H.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var C=null,x=function(e){if(null!==C)try{C(e)}finally{C=null}};M=function(e){null!==C?setTimeout(M,0,e):(C=e,setTimeout(x,0,!1))},w=function(){C=null},k=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var E=null,L=!1,D=-1,N=!1,O=!1,Y=0,P=33,j=33;k=function(){return Y<=H.unstable_now()};var I=new MessageChannel,A=I.port2;I.port1.onmessage=function(){L=!1;var e=E,t=D;E=null,D=-1;var n=H.unstable_now(),a=!1;if(Y-n<=0){if(!(-1!==t&&t<=n))return N||(N=!0,v(R)),E=e,void(D=t);a=!0}if(null!==e){O=!0;try{e(a)}finally{O=!1}}};var R=function(e){if(null!==E){v(R);var t=e-Y+j;t<j&&P<j?(t<8&&(t=8),j=t<P?P:t):P=t,Y=e+j,L||(L=!0,A.postMessage(void 0))}else N=!1};M=function(e,t){E=e,D=t,O||t<0?A.postMessage(void 0):N||(N=!0,v(R))},w=function(){E=null,L=!1,D=-1}}H.unstable_ImmediatePriority=1,H.unstable_UserBlockingPriority=2,H.unstable_NormalPriority=3,H.unstable_IdlePriority=5,H.unstable_LowPriority=4,H.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=s,a=o;s=e,o=H.unstable_now();try{return t()}finally{s=n,o=a,p()}},H.unstable_next=function(e){switch(s){case 1:case 2:case 3:var t=3;break;default:t=s}var n=s,a=o;s=t,o=H.unstable_now();try{return e()}finally{s=n,o=a,p()}},H.unstable_scheduleCallback=function(e,t){var n=-1!==o?o:H.unstable_now();if("object"==typeof t&&null!==t&&"number"==typeof t.timeout)t=n+t.timeout;else switch(s){case 1:t=n+-1;break;case 2:t=n+250;break;case 5:t=n+1073741823;break;case 4:t=n+1e4;break;default:t=n+5e3}if(e={callback:e,priorityLevel:s,expirationTime:t,next:null,previous:null},null===i)i=e.next=e.previous=e,c();else{n=null;var a=i;do{if(a.expirationTime>t){n=a;break}a=a.next}while(a!==i);null===n?n=i:n===i&&(i=e,c()),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}return e},H.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)i=null;else{e===i&&(i=t);var n=e.previous;(n.next=t).previous=n}e.next=e.previous=null}},H.unstable_wrapCallback=function(n){var a=s;return function(){var e=s,t=o;s=a,o=H.unstable_now();try{return n.apply(this,arguments)}finally{s=e,o=t,p()}}},H.unstable_getCurrentPriorityLevel=function(){return s},H.unstable_shouldYield=function(){return!a&&(null!==i&&i.expirationTime<l||k())},H.unstable_continueExecution=function(){null!==i&&c()},H.unstable_pauseExecution=function(){},H.unstable_getFirstCallbackNode=function(){return i}}).call(this,t(134))},function(e,t,n){"use strict";t.__esModule=!0;t.default={allOverlays:[],addOverlay:function(e){this.removeOverlay(e),this.allOverlays.unshift(e)},isCurrentOverlay:function(e){return e&&this.allOverlays[0]===e},removeOverlay:function(e){var t=this.allOverlays.indexOf(e);-1<t&&this.allOverlays.splice(t,1)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,r,i,s=n(4),l=(a=s)&&a.__esModule?a:{default:a},y=n(11);funLine truncated
|
||||
/** @license React v16.8.6
|
||||
* react-is.production.min.js
|
||||
*
|
||||
@@ -85,11 +85,11 @@ Object.defineProperty(H,"__esModule",{value:!0});var i=null,a=!1,s=3,o=-1,l=-1,r
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,i=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,p=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case i:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case u:return e;default:return t}}case g:case m:case r:return t}}}function _(e){return y(e)===p}t.typeOf=y,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===l||e===s||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f)},t.isAsyncMode=function(e){return _(e)||y(e)===d},t.isConcurrentMode=_,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===r},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===h}},function(e,t,n){"use strict";var l=n(2),a=void 0,u=!1;window.edasprefix="acm";var o;window.globalConfig={isParentEdas:function(){return window.parent&&-1!==window.parent.location.host.indexOf("edas")}},l.c.middleWare(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,a=localStorage.getItem("namespace")?localStorage.getItem("namespace"):"";e.data=-1===n.indexOf("namespaceId=")?Object.assign({},e.data,{namespaceId:a}):e.data;var o=window.nownamespace||Object(l.b)("namespace")||"";o="global"===o?"":o;var r=n.split("?");1<r.length&&-1!==r[1].indexOf("dataId")&&(n+="&tenant=".concat(o),e.url=n);var i=e.success,s=e.error;return e.success=function(e){"ConsoleNeedLogin"===e.code&&-1!==window.location.host.indexOf("acm")&&window.location.reload(),403!==e.code||u?"function"==typeof i&&i(e):(u=!0,window.Dialog.alert({language:l.a.currentLanguageCode||"zh-cn",style:{width:400},content:e.message,onOk:function(){u=!1},onCancel:function(){u=!1},onClose:function(){u=!1}}))},e.error=function(e){403!==e.status||u?"function"==typeof s&&s(e):(u=!0,window.Dialog.alert({language:l.a.currentLanguageCode||"zh-cn",style:{width:400},content:l.a.get("com.alibaba.nacos.pubshow"),onOk:function(){u=!1},onCancel:function(){u=!1},onClose:function(){u=!1}}))},e}),window.require.config({paths:{vs:"console-fe/public/js/vs"}}),window.require.config({"vs/nls":{availableLanguages:{"*":"zh-cn"}}}),window.require(["vs/editor/editor.main"],function(){window.monaco.languages.register({id:"properties"}),window.monaco.languages.setMonarchTokensProvider("properties",{tokenizer:{root:[[/^\#.*/,"comment"],[/.*\=/,"key"],[/^=.*/,"value"]]}}),window.monaco.editor.defineTheme("properties",{base:"vs",inherit:!1,rules:[{token:"key",foreground:"009968"},{token:"value",foreground:"009968"},{token:"comment",foreground:"666666"}]}),window.monaco.languages.registerCompletionItemProvider("properties",{provideCompletionItems:function(){return[{label:"simpleText",kind:window.monaco.languages.CompletionItemKind.Text},{label:"testing",kind:window.monaco.languages.CompletionItemKind.Keyword,insertText:{value:"testing(${1:condition})"}},{label:"ifelse",kind:window.monaco.languages.CompletionItemKind.Snippet,insertText:{value:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n")},documentation:"If-Else Statement"}]}})}),window.importEditor=function(e){window.require(["vs/editor/editor.main"],function(){e&&e()})},window._getLink=(window,o={},function(e){return o[e]||""}),window.addEventListener("resize",function(){try{a.timmer&&clearTimeout(a.timmer),a.timmer=setTimeout(function(){var e=document.body.clientHeight;e=800<e?e:800,window.parent.adjustHeight&&window.parent.adjustHeight(e)},500)}catch(e){}}),window.isIntel=function(){return-1!==window.location.host.indexOf("alibabacloud.com")}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,r=h(n(5)),i=h(n(4)),s=h(n(6)),l=h(n(7)),u=n(0),c=h(u),d=h(n(1)),p=h(n(53)),f=n(11);function h(e){return e&&e.__esModule?e:{default:e}}var m,g=f.func.noop,y=f.func.makeChain,_=f.func.bLine truncated
|
||||
*/Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,i=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,p=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case i:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case u:return e;default:return t}}case g:case m:case r:return t}}}function _(e){return y(e)===p}t.typeOf=y,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===l||e===s||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f)},t.isAsyncMode=function(e){return _(e)||y(e)===d},t.isConcurrentMode=_,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===r},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===h}},function(e,t,n){"use strict";var l=n(1),a=void 0,u=!1;window.edasprefix="acm";var o;window.globalConfig={isParentEdas:function(){return window.parent&&-1!==window.parent.location.host.indexOf("edas")}},l.c.middleWare(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,a=localStorage.getItem("namespace")?localStorage.getItem("namespace"):"";e.data=-1===n.indexOf("namespaceId=")?Object.assign({},e.data,{namespaceId:a}):e.data;var o=window.nownamespace||Object(l.b)("namespace")||"";o="global"===o?"":o;var r=n.split("?");1<r.length&&-1!==r[1].indexOf("dataId")&&(n+="&tenant=".concat(o),e.url=n);var i=e.success,s=e.error;return e.success=function(e){"ConsoleNeedLogin"===e.code&&-1!==window.location.host.indexOf("acm")&&window.location.reload(),403!==e.code||u?"function"==typeof i&&i(e):(u=!0,window.Dialog.alert({language:l.a.currentLanguageCode||"zh-cn",style:{width:400},content:e.message,onOk:function(){u=!1},onCancel:function(){u=!1},onClose:function(){u=!1}}))},e.error=function(e){403!==e.status||u?"function"==typeof s&&s(e):(u=!0,window.Dialog.alert({language:l.a.currentLanguageCode||"zh-cn",style:{width:400},content:l.a.get("com.alibaba.nacos.pubshow"),onOk:function(){u=!1},onCancel:function(){u=!1},onClose:function(){u=!1}}))},e}),window.require.config({paths:{vs:"console-fe/public/js/vs"}}),window.require.config({"vs/nls":{availableLanguages:{"*":"zh-cn"}}}),window.require(["vs/editor/editor.main"],function(){window.monaco.languages.register({id:"properties"}),window.monaco.languages.setMonarchTokensProvider("properties",{tokenizer:{root:[[/^\#.*/,"comment"],[/.*\=/,"key"],[/^=.*/,"value"]]}}),window.monaco.editor.defineTheme("properties",{base:"vs",inherit:!1,rules:[{token:"key",foreground:"009968"},{token:"value",foreground:"009968"},{token:"comment",foreground:"666666"}]}),window.monaco.languages.registerCompletionItemProvider("properties",{provideCompletionItems:function(){return[{label:"simpleText",kind:window.monaco.languages.CompletionItemKind.Text},{label:"testing",kind:window.monaco.languages.CompletionItemKind.Keyword,insertText:{value:"testing(${1:condition})"}},{label:"ifelse",kind:window.monaco.languages.CompletionItemKind.Snippet,insertText:{value:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n")},documentation:"If-Else Statement"}]}})}),window.importEditor=function(e){window.require(["vs/editor/editor.main"],function(){e&&e()})},window._getLink=(window,o={},function(e){return o[e]||""}),window.addEventListener("resize",function(){try{a.timmer&&clearTimeout(a.timmer),a.timmer=setTimeout(function(){var e=document.body.clientHeight;e=800<e?e:800,window.parent.adjustHeight&&window.parent.adjustHeight(e)},500)}catch(e){}}),window.isIntel=function(){return-1!==window.location.host.indexOf("alibabacloud.com")}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,r=h(n(5)),i=h(n(4)),s=h(n(6)),l=h(n(7)),u=n(0),c=h(u),d=h(n(2)),p=h(n(53)),f=n(11);function h(e){return e&&e.__esModule?e:{default:e}}var m,g=f.func.noop,y=f.func.makeChain,_=f.func.bLine truncated
|
||||
/*!
|
||||
* Determine if an object is a Buffer
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var o=n(139),r=n(47),a=n(488),i=n(489);function s(e){this.defaults=e,this.interceptors={request:new a,response:new a}}s.prototype.request=function(e,t){"string"==typeof e&&(e=r.merge({url:arguments[0]},t)),(e=r.merge(o,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var n=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){n.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){n.push(e.fulfilled,e.rejected)});n.length;)a=a.then(n.shift(),n.shift());return a},r.forEach(["delete","get","head","options"],function(n){s.prototype[n]=function(e,t){return this.request(r.merge(t||{},{method:n,url:e}))}}),r.forEach(["post","put","patch"],function(a){s.prototype[a]=function(e,t,n){return this.request(r.merge(n||{},{method:a,url:e,data:t}))}}),e.exports=s},function(e,t){var n,a,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{a="function"==typeof clearTimeout?clearTimeout:i}catch(e){a=i}}();var l,u=[],c=!1,d=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(t){if(a===clearTimeout)return clearTimeout(t);if((a===i||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(t);try{a(t)}catch(e){try{return a.call(null,t)}catch(e){return a.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var o=n(47);e.exports=function(n,a){o.forEach(n,function(e,t){t!==a&&t.toUpperCase()===a.toUpperCase()&&(n[a]=e,delete n[t])})}},function(e,t,n){"use strict";var o=n(319);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(o("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,o){return e.config=t,n&&(e.code=n),e.request=a,e.response=o,e}},function(e,t,n){"use strict";var r=n(47);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))}))}),a=o.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(47),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e&&r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&0<=i.indexOf(t))return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o}},function(e,t,n){"use strict";var a,o,r,i=n(47);function s(e){var t=e;return o&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}e.exports=i.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),a=s(window.location.href),function(e){var t=i.isString(e)?s(e):e;return t.protocol===a.protocol&&t.host===a.host}):function(){return!0}},function(e,t,n){"use strict";var s=n(47);e.exports=s.isStandardBLine truncated
|
||||
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var o=n(139),r=n(48),a=n(490),i=n(491);function s(e){this.defaults=e,this.interceptors={request:new a,response:new a}}s.prototype.request=function(e,t){"string"==typeof e&&(e=r.merge({url:arguments[0]},t)),(e=r.merge(o,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var n=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){n.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){n.push(e.fulfilled,e.rejected)});n.length;)a=a.then(n.shift(),n.shift());return a},r.forEach(["delete","get","head","options"],function(n){s.prototype[n]=function(e,t){return this.request(r.merge(t||{},{method:n,url:e}))}}),r.forEach(["post","put","patch"],function(a){s.prototype[a]=function(e,t,n){return this.request(r.merge(n||{},{method:a,url:e,data:t}))}}),e.exports=s},function(e,t){var n,a,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{a="function"==typeof clearTimeout?clearTimeout:i}catch(e){a=i}}();var l,u=[],c=!1,d=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(t){if(a===clearTimeout)return clearTimeout(t);if((a===i||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(t);try{a(t)}catch(e){try{return a.call(null,t)}catch(e){return a.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var o=n(48);e.exports=function(n,a){o.forEach(n,function(e,t){t!==a&&t.toUpperCase()===a.toUpperCase()&&(n[a]=e,delete n[t])})}},function(e,t,n){"use strict";var o=n(321);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(o("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,o){return e.config=t,n&&(e.code=n),e.request=a,e.response=o,e}},function(e,t,n){"use strict";var r=n(48);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))}))}),a=o.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(48),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e&&r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&0<=i.indexOf(t))return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o}},function(e,t,n){"use strict";var a,o,r,i=n(48);function s(e){var t=e;return o&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}e.exports=i.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),a=s(window.location.href),function(e){var t=i.isString(e)?s(e):e;return t.protocol===a.protocol&&t.host===a.host}):function(){return!0}},function(e,t,n){"use strict";var s=n(48);e.exports=s.isStandardBLine truncated
|
||||
@@ -59,12 +59,12 @@
|
||||
</dependency>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--spring security 、oauth、jwt依赖-->
|
||||
|
||||
@@ -34,12 +34,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--common code -->
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--动态数据源 数据操作-->
|
||||
|
||||
@@ -34,12 +34,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--跑批任务-->
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--日志处理-->
|
||||
|
||||
@@ -71,12 +71,12 @@
|
||||
</dependency>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--web 模块-->
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--数据操作-->
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<dependencies>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--mybatis-->
|
||||
|
||||
@@ -26,12 +26,12 @@
|
||||
</dependency>
|
||||
<!--注册中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<!--配置中心客户端-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
<!--LCN-->
|
||||
|
||||
@@ -45,16 +45,16 @@
|
||||
<properties>
|
||||
<spring-boot.version>2.1.6.RELEASE</spring-boot.version>
|
||||
<spring-cloud.version>Greenwich.SR2</spring-cloud.version>
|
||||
<spring-cloud-alibaba.version>0.9.0.RELEASE</spring-cloud-alibaba.version>
|
||||
<spring-cloud-alibaba.version>2.1.0.RELEASE</spring-cloud-alibaba.version>
|
||||
<spring-platform.version>Cairo-SR8</spring-platform.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<spring-boot-admin.version>2.1.6</spring-boot-admin.version>
|
||||
<hutool.version>4.5.16</hutool.version>
|
||||
<hutool.version>4.6.1</hutool.version>
|
||||
<kaptcha.version>0.0.9</kaptcha.version>
|
||||
<swagger.fox.version>2.9.2</swagger.fox.version>
|
||||
<swagger-bootstrap-ui.version>1.9.4</swagger-bootstrap-ui.version>
|
||||
<swagger-bootstrap-ui.version>1.9.5</swagger-bootstrap-ui.version>
|
||||
<curator.version>2.10.0</curator.version>
|
||||
<velocity.version>1.7</velocity.version>
|
||||
<lcn.version>4.1.0</lcn.version>
|
||||
@@ -64,8 +64,6 @@
|
||||
<elastic-job-lite.version>2.1.5</elastic-job-lite.version>
|
||||
<security.oauth.version>2.3.6.RELEASE</security.oauth.version>
|
||||
<activiti.version>5.22.0</activiti.version>
|
||||
<zipkin.version>2.12.2</zipkin.version>
|
||||
<zipkin-storage-mysql.version>2.8.4</zipkin-storage-mysql.version>
|
||||
<docker.url>http://192.168.0.13:4243</docker.url>
|
||||
<docker.plugin.version>0.4.12</docker.plugin.version>
|
||||
<registry.url>192.168.0.13:5000</registry.url>
|
||||
@@ -155,7 +153,7 @@
|
||||
</dependency>
|
||||
<!--spring cloud alibaba-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
||||
<version>${spring-cloud-alibaba.version}</version>
|
||||
<type>pom</type>
|
||||
|
||||
Reference in new issue
Block a user