소스 검색

dashboard: update WebConfig and improve token server list page

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
master
Eric Zhao 5 년 전
부모
커밋
83f6de90b0
2개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장