frontend/app/scripts/modules/dashboard/views/dashboard.html (127 lines of code) (raw):

<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You 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.. --> <div class="col-sm-8 col-md-8 col-lg-9 pb-50"> <div class="panel panel-default"> <div class="panel-heading fw-600 h-42"> <span class="pull-left">{{ "serviceStatistics" | translate }}</span> <span class="pull-right" ng-click="getAllServices()"><i class="fa fa-refresh"></i></span> </div> <div class="panel-body"> <div class="row m0"> <div data-ng-repeat="info in dashboardInfo track by $index" class="col-md-2 box"> <div class="circle"> <i class="{{info.iconName}} stat-icon-size"></i> </div> <p class="text-center">{{info.title | translate}} : {{info.count}}</p> </div> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading fw-600 h-42"> <span class="pull-left">{{ 'serviceList' | translate}}</span> <span class="pull-right badge badge-primary">{{dashboardInfo[0].count}}</span> </div> <div class="panel-body panel-body-height"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>{{ "serviceName" | translate }}</th> <th>{{ "version" | translate }}</th> <th>{{ "appId" | translate }}</th> </tr> </thead> <tbody> <tr data-ng-repeat="service in services | orderBy : 'serviceName' | limitTo : 3"> <td>{{ service.serviceName }}</td> <td>{{ service.version }}</td> <td>{{ service.appId }}</td> </tr> <tr ng-if="services.length == 0"> <td colspan="3"> <div class="no-data"> <p>{{ "noDataFound" | translate }}</p> </div> </td> </tr> </tbody> </table> </div> </div> <div class="panel-footer h-42"><span class="pull-right"><a ui-sref="sc.allServices">{{ 'viewMoreInfo' | translate}}</a></span></div> </div> </div> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading fw-600 h-42"> <span class="pull-left">{{ 'instanceList' | translate}}</span> <span class="pull-right badge badge-primary">{{dashboardInfo[1].count}}</span> </div> <div class="panel-body panel-body-height"> <div class="table-responsive"> <table class="table dashboardTable"> <thead> <tr> <th class="columnA">{{ "instanceHostName" | translate }}</th> <th class="columnB">{{ "serviceName" | translate }}</th> <th class="columnC">{{ "appId" | translate }}</th> </tr> </thead> <tbody> <tr data-ng-repeat="instance in instances | orderBy : 'hostName' | limitTo : 3"> <td class="columnA">{{ instance.hostName }}</td> <td class="columnB">{{ instance.serviceName }}</td> <td class="columnC">{{ instance.appId }}</td> </tr> <tr ng-if="instances.length == 0"> <td colspan="3"> <div class="no-data"> <p>{{ "noDataFound" | translate }}</p> </div> </td> </tr> </tbody> </table> </div> </div> <div class="panel-footer h-42"><span class="pull-right"><a ui-sref="sc.instances">{{ 'viewMoreInfo' | translate}}</a></span></div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading fw-600">{{ "serviceInstanceStatistics" | translate }}</div> <div class="panel-body"> <div class="row m0"> <div class="col-md-2 box" data-ng-repeat="data in instanceStat"> <div class="c100 p{{data.percent}}"> <span class="pointer">{{data.percent}}%</span> <div class="slice"> <div class="bar"></div> <div class="fill"></div> </div> </div> <br> <p class="ins-stat-title">{{data.title | translate}} : {{data.count}}</p> </div> </div> </div> </div> </div> <div class="col-sm-4 col-md-4 col-lg-3"> <div class="panel panel-default"> <div class="panel-heading fw-600"><span class="text-center block">{{ "userGuide.title" | translate }}</span></div> <div class="panel-body"> <ul class="userGuide-list"> <li><a target="_blank" href="https://servicecomb.apache.org/docs/getting-started/">ServiceComb QuickStart</a></li> <li><a target="_blank" href="http://servicecomb.apache.org/release/">ServiceComb Download links</a></li> <li><a target="_blank" href="http://servicecomb.apache.org/year-archive/">ServiceComb Blogs</a></li> <li><a target="_blank" href="https://servicecomb.apache.org/references/java-chassis/en_US/build-provider/definition/service-definition/">What is Service Definition?</a></li> <li><a target="_blank" href="https://servicecomb.apache.org/references/java-chassis/en_US/build-provider/define-contract/">What is Service Contract?</a></li> <li><a target="_blank" href="https://servicecomb.apache.org/references/java-chassis/en_US/build-provider/springmvc/">Develop Applications using SpringMVC</a></li> <li><a target="_blank" href="https://github.com/apache/servicecomb-pack/blob/master/docs/user_guide.md">Transaction Management</a></li> <li><a target="_blank" href="https://github.com/apache?q=servicecomb">Fork us on Github</a></li> </ul> </div> </div> </div>