浏览代码

nacos持久化

master
wangjx 3 年前
父节点
当前提交
49f32f052a
共有 2 个文件被更改,包括 28 次插入14 次删除
  1. +1
    -1
      Dockerfile
  2. +27
    -13
      sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html

+ 1
- 1
Dockerfile 查看文件

@@ -13,4 +13,4 @@ RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /et
#EXPOSE 8098
#ENTRYPOINT java $JAVA_OPTS -jar /core.jar --spring.profiles.active=$active

ENTRYPOINT java $JAVA_OPTS -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=$IP:7777 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=telpo -Dsentinel.dashboard.auth.password=telpo#1234 -jar /app.jar --spring.profiles.active=$active
ENTRYPOINT java $JAVA_OPTS -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=$IP:7777 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=sentinel -Dsentinel.dashboard.auth.password=sentinel -jar /app.jar --spring.profiles.active=$active

+ 27
- 13
sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html 查看文件

@@ -15,27 +15,32 @@
&nbsp;&nbsp;首页</a>
</li>

<li ng-class="{active: true}" ng-repeat="entry in apps | filter: { app: searchApp }">{{dropDown}}
<li ng-class="{active: true}" ng-repeat="entry in apps | filter: { app: searchApp }">
{{dropDown}}
<a href="javascript:void(0);" ng-click="click($event)" collapse="{{collpaseall == 1}}" style="font-size: 16px;word-break: break-word;">
&nbsp;{{entry.app}}
<span class="fa arrow"></span>
<span class="arrow">({{entry.healthyCount}}/{{entry.machines.length}})</span>
</a>

<!--<ul class="nav nav-second-level" collapse="{{entry.active}}" style="display: none;">-->
<ul class="nav nav-second-level" ng-show="entry.active">
<li ui-sref-active="active">
<a ui-sref="dashboard.metric({app: entry.app})">
<i class="fa fa-bar-chart"></i>&nbsp;&nbsp;实时监控</a>
<i class="fa fa-bar-chart"></i>
实时监控</a>
</li>

<li ui-sref-active="active" ng-if="!entry.isGateway">
<a ui-sref="dashboard.identity({app: entry.app})">
<i class="glyphicon glyphicon-list-alt"></i>&nbsp;&nbsp;簇点链路</a>
<i class="glyphicon glyphicon-list-alt"></i>&nbsp;&nbsp;
簇点链路</a>
</li>

<li ui-sref-active="active" ng-if="entry.isGateway">
<a ui-sref="dashboard.gatewayIdentity({app: entry.app})">
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;请求链路</a>
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;
请求链路</a>
</li>

<!--<li ui-sref-active="active" ng-if="entry.appType==0">-->
@@ -45,43 +50,52 @@

<li ui-sref-active="active" ng-if="entry.isGateway">
<a ui-sref="dashboard.gatewayApi({app: entry.app})">
<i class="glyphicon glyphicon-tags"></i>&nbsp;&nbsp;&nbsp;API 管理</a>
<i class="glyphicon glyphicon-tags"></i>&nbsp;&nbsp;&nbsp;
API 管理</a>
</li>
<li ui-sref-active="active" ng-if="entry.isGateway">
<a ui-sref="dashboard.gatewayFlow({app: entry.app})">
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;流控规则</a>
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;
流控规则</a>
</li>

<li ui-sref-active="active" ng-if="!entry.isGateway">
<!-- a ui-sref="dashboard.flowV1({app: entry.app})" -->
<a ui-sref="dashboard.flow({app: entry.app})">
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;流控规则</a>
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;
流控规则</a>
</li>

<li ui-sref-active="active">
<a ui-sref="dashboard.degrade({app: entry.app})">
<i class="glyphicon glyphicon-flash"></i>&nbsp;&nbsp;降级规则</a>
<i class="glyphicon glyphicon-flash"></i>&nbsp;&nbsp;
降级规则</a>
</li>
<li ui-sref-active="active" ng-if="!entry.isGateway">
<a ui-sref="dashboard.paramFlow({app: entry.app})">
<i class="glyphicon glyphicon-fire"></i>&nbsp;&nbsp;热点规则</a>
<i class="glyphicon glyphicon-fire"></i>&nbsp;&nbsp;
热点规则</a>
</li>
<li ui-sref-active="active">
<a ui-sref="dashboard.system({app: entry.app})">
<i class="glyphicon glyphicon-lock"></i>&nbsp;&nbsp;系统规则</a>
<i class="glyphicon glyphicon-lock"></i>&nbsp;&nbsp;
系统规则</a>
</li>
<li ui-sref-active="active" ng-if="!entry.isGateway">
<a ui-sref="dashboard.authority({app: entry.app})">
<i class="glyphicon glyphicon-check"></i>&nbsp;&nbsp;授权规则</a>
<i class="glyphicon glyphicon-check"></i>&nbsp;&nbsp;
授权规则</a>
</li>
<li ui-sref-active="active" ng-if="!entry.isGateway">
<a ui-sref="dashboard.clusterAppServerList({app: entry.app})">
<i class="glyphicon glyphicon-cloud"></i>&nbsp;&nbsp;集群流控</a>
<i class="glyphicon glyphicon-cloud"></i>&nbsp;&nbsp;
集群流控</a>
</li>

<li ui-sref-active="active">
<a ui-sref="dashboard.machine({app: entry.app})">
<i class="glyphicon glyphicon-th-list"></i>&nbsp;&nbsp;机器列表</a>
<i class="glyphicon glyphicon-th-list"></i>&nbsp;&nbsp;
机器列表</a>
</li>
</ul>
<!-- /.nav-second-level -->


正在加载...
取消
保存