Parcourir la source

dashboard: update WebConfig and improve token server list page

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
master
Eric Zhao il y a 5 ans
Parent
révision
83f6de90b0
2 fichiers modifiés avec 7 ajouts et 3 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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>


Chargement…
Annuler
Enregistrer