Browse Source

dashboard: update WebConfig and improve token server list page

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
master
Eric Zhao 5 years ago
parent
commit
83f6de90b0
2 changed files with 7 additions and 3 deletions
  1. +2
    -3
      sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/WebConfig.java
  2. +5
    -0
      sentinel-dashboard/src/main/webapp/resources/app/views/cluster_app_server_list.html

+ 2
- 3
sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/WebConfig.java View File

@@ -26,13 +26,13 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
* @author leyou
*/
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
public class WebConfig implements WebMvcConfigurer {

private final Logger logger = LoggerFactory.getLogger(WebConfig.class);

@@ -62,5 +62,4 @@ public class WebConfig extends WebMvcConfigurerAdapter {

return registration;
}

}

+ 5
- 0
sentinel-dashboard/src/main/webapp/resources/app/views/cluster_app_server_list.html View File

@@ -43,6 +43,7 @@
<td style="width: 15%;">Server ID</td>
<td style="width: 10%;">Port</td>
<td style="width: 15%;">命名空间集合</td>
<td style="width: 10%;">运行模式</td>
<td>总连接数</td>
<td>QPS 总览</td>
<td style="width: 20%;">操作</td>
@@ -55,6 +56,10 @@
<td style="word-wrap:break-word;word-break:break-all;">
{{serverVO.state.namespaceSetStr}}
</td>
<td style="word-wrap:break-word;word-break:break-all;">
<span ng-if="serverVO.state.embedded">嵌入模式</span>
<span ng-if="!serverVO.state.embedded">独立模式</span>
</td>
<td style="word-wrap:break-word;word-break:break-all;">
{{serverVO.connectedCount}}
</td>


Loading…
Cancel
Save