blob: e1a1fce81f9e0bb2545ac8bb8c231dc0cfa5481a [file]
<!--
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.
-->
<style>
@media (min-width: 768px) {
.overview-grid {
padding-left: 300px;
}
}
@media (max-width: 768px) {
.overview-grid {
padding-left: 0;
}
}
span.fancytree-icon {
margin-left: 0;
}
.treeContainer {
width: 300px;
padding-right: 10px;
}
.gridDetails .aChart {
margin-left: -1em;
margin-right: 2em;
width: 400px;
}
@media (max-width: 768px) {
.gridDetails .aChart {
margin-right: 1em;
width: 380px;
}
}
.page-menu {
top: 0;
}
.overview-grid {
position: absolute;
top: 0;
left: 0;
width: calc(100% - 40px);
margin-left: 20px;
}
@media (min-width: 768px) {
.navbar-collapse.page-menu {
padding-right: 0;
min-height: calc(100vh - 71px) !important;
}
}
div.chartContainer {
clear: both;
width: 100%;
}
.line-chart-pf .c3-zoom-rect {
opacity: 0 !important;
}
.trend-header-compact-pf {
width: 11em;
}
</style>
<div id="overview-controller" ng-controller="QDR.OverviewController">
<div class="page-menu navbar-collapse collapse">
<div class="treeContainer ng-scope">
<div id="overtree"></div>
<div ng-init="overviewLoaded()"></div>
</div>
</div>
<div class="overview-grid">
<div class="gridDetails" ng-include="template.url"></div>
</div>
</div>
<script type="text/ng-template" id="overviewCharts.html">
<div ng-controller="QDR.OverviewChartsController" class="clearfix chartContainer">
<pf-card head-title="Router network statistics (for the past minute)" show-top-border="false" style="width: 50%">
<div class="trend-card-inline-pf">
<div ng-repeat="chart in overviewCharts" class="row trend-row">
<div class="col-sm-1 trend-flat-col">
<div class="trend-compact-details">
<span>
<span class="trend-title-compact-big-pf">{{chart.chart.lastValue | truncate | pretty}}</span>
</span>
<span class="trend-header-compact-pf">{{chart.chart.userTitle}}</span>
</div>
</div>
<div class="col-sm-11 trend-flat-col">
<div id="{{chart.chart.id()}}" class="line-chart-pf d3Chart"></div>
</div>
</div>
</div>
</pf-card>
</div>
<div ng-controller="QDR.TopAddressesController">
<h1>Most active addresses</h1>
<div ng-if="anyAddresses()" id="topAddresses" class="grid" ui-grid="topAddressesGrid" ui-grid-selection ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
<div ng-if="!anyAddresses()">There are no addresses to which messages are being delivered.</div>
</div>
</script>
<!-- the following scripts are content that gets loaded into the above div that has the temple.url -->
<script type="text/ng-template" id="routers.html">
<div class="row-fluid">
<h3>Routers</h3>
<div class="overview">
<div class="grid" ui-grid="allRouters" ui-grid-selection ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="router.html">
<div class="row-fluid">
<h3>Router {{router.title}} attributes</h3>
<div class="grid noHighlight" ui-grid="routerGrid" ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</script>
<script type="text/ng-template" id="addresses.html">
<div class="row-fluid">
<h3>Addresses</h3>
<div class="overview">
<div class="grid" ui-grid="addressesGrid" ui-grid-selection ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="address.html">
<div class="row-fluid">
<ul class="nav nav-tabs">
<li ng-repeat="mode in gridModes" ng-click="selectMode(mode,'Address')" ng-class="{active : isModeSelected(mode,'Address')}" title="{{mode.title}}" ng-bind-html="mode.content"> </li>
</ul>
<div ng-if="isModeVisible('Address','attributes')" class="selectedItems">
<h3>Address {{address.title}}</h3>
<div class="grid noHighlight" ui-grid="addressGrid" ui-grid-resize-columns ui-grid-save-state></div>
</div>
<div ng-if="isModeVisible('Address','links')" class="selectedItems">
<h3>Links for address {{address.title}}</h3>
<div class="grid" ui-grid="linksGrid" ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="links.html">
<div class="row-fluid">
<h3>Links <button type='button' ng-click="filterToggle()" class='btn btn-secondary btn-filter'>Filter</button></h3>
<div id="linkFilter">
<div class="filter-title">
<h6>Filter links</h6>
<button ng-click="filterToggle()" type="button" class="btn btn-primary filter-close">x</button>
</div>
<div class="formLine"><label for="hideConsoles">Hide console links</label><input name="hideConsoles" id="hideConsoles" type="checkbox" ng-model="filter.hideConsoles"/></div>
<div class="formLine"><label for="endpointOnly">Endpoints only</label><input name="linkTypes" id="endpointOnly" type="radio" ng-model="filter.endpointsOnly" value="true"/>
<label for="allLinks">All link types</label><input name="linkTypes" id="allLinks" type="radio" ng-model="filter.endpointsOnly" value="false"/></div>
</div>
<div class="grid" ui-grid="linksGrid" ui-grid-selection ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</script>
<script type="text/ng-template" id="link.html">
<div class="row-fluid">
<h3>Link {{link.title}}</h3>
<div class="grid noHighlight" ui-grid="linkGrid" ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</script>
<script type="text/ng-template" id="connections.html">
<div class="row-fluid">
<h3>Connections</h3>
<div class="overview">
<div class="grid" ui-grid="allConnectionGrid" ui-grid-selection ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="connection.html">
<div class="row-fluid">
<ul class="nav nav-tabs">
<li ng-repeat="mode in gridModes" ng-click="selectMode(mode,'Connection')" ng-class="{active : isModeSelected(mode,'Connection')}" title="{{mode.title}}" ng-bind-html="mode.content"> </li>
</ul>
<div ng-if="isModeVisible('Connection','attributes')" class="selectedItems">
<h3>Connection {{connection.title}}</h3>
<div class="grid noHighlight" ui-grid="connectionGrid" ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
<div ng-if="isModeVisible('Connection','links')" class="selectedItems">
<h3>Links for connection {{connection.title}}</h3>
<div class="grid" ui-grid="linksGrid" ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="titleHeaderCellTemplate.html">
<div title="{{col.displayName}}" class="ngHeaderSortColumn {{col.headerClass}}" ng-style="{'cursor': col.cursor}" ng-class="{ 'ngSorted': !noSortVisible }">
<div ng-click="col.sort($event)" ng-class="'colt' + col.index" class="ngHeaderText">{{col.displayName}}</div>
<div class="ngSortButtonDown" ng-show="col.showSortButtonDown()"></div>
<div class="ngSortButtonUp" ng-show="col.showSortButtonUp()"></div>
<div class="ngSortPriority">{{col.sortPriority}}</div>
</div>
</script>
<script type="text/ng-template" id="titleCellTemplate.html">
<div title="{{row.entity[col.field]}}" class="ngCellText">{{row.entity[col.field]}}</div>
</script>
<script type="text/ng-template" id="logs.html">
<div class="row-fluid">
<h3>Recent log events</h3>
<div class="overview">
<div class="grid" ui-grid="allLogGrid" ui-grid-selection ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="logModule.html">
<div class="row-fluid">
<h3>{{logModule.module}} events</h3>
<div class="overview-cell">
<div class="grid" ui-grid="logModuleGrid" ui-grid-auto-resize ui-grid-resize-columns ui-grid-save-state></div>
</div>
</div>
</script>
<script type="text/ng-template" id="log.html">
<div class="row-fluid">
<h3>{{log.title}}</h3>
<div ng-if="logFields.length > 0">
<table class="log-entry" ng-repeat="entry in logFields track by $index">
<tr>
<td>Router</td><td>{{entry.nodeId}}</td>
</tr>
<tr>
<td align="left" colspan="2">{{entry.time}}</td>
</tr>
<tr>
<td>Source</td><td>{{entry.source}}:{{entry.line}}</td>
</tr>
<tr>
<td valign="middle">Message</td><td valign="middle"><pre>{{entry.message}}</pre></td>
</tr>
</table>
</div>
<div ng-if="logFields.length == 0">No log entries for {{log.title}}</div>
</div>
</script>
<script type="text/ng-template" id="linkRowTemplate.html">
<div ng-class="{'linkDirIn': row.entity.linkDir == 'in', 'linkDirOut': row.entity.linkDir == 'out' }">
<div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name"
class="ui-grid-cell" ng-class="{ 'ui-grid-row-header-cell': col.isRowHeader }" ui-grid-cell>
</div>
</div>
</script>
<script type="text/ng-template" id="linkAggTemplate.html">
<div ng-click='row.toggleExpand(); saveGroupState()' ng-style='rowStyle(row)' class='ngAggregate ng-scope' style='top: 0px; height: 48px; left: 0px;'>
<span class='ngAggregateText ng-binding'>
{{row.label CUSTOM_FILTERS}} ({{row.totalChildren()}} {{AggItemsLabel}})
</span>
<div ng-class="{true: 'ngAggArrowCollapsed', false: 'ngAggArrowExpanded'}[row.collapsed]"></div>
</div>
</script>
<script type="text/ng-template" id="viewLogs.html">
<div class="modal-header">
<h3 class="modal-title">Logs for {{nodeName}} {{module}}:{{level | humanify}}</h3>
</div>
<div class="modal-body">
<div ng-if="loading == false">
<div class="log-details" ng-if="logFields.length > 0">
<table class="log-entry" ng-repeat="entry in logFields track by $index">
<tr>
<td>Router</td><td>{{entry.nodeId}}</td>
</tr>
<tr>
<td align="left" colspan="2">{{entry.time}}</td>
</tr>
<tr>
<td>Source</td><td>{{entry.source}}:{{entry.line}}</td>
</tr>
<tr>
<td valign="middle">Message</td><td valign="middle"><pre>{{entry.message}}</pre></td>
</tr>
</table>
</div>
<div ng-if="logFields.length == 0">No log entries</div>
</div>
<div ng-if="loading == true">
Loading...
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" ng-click="ok()">Close</button>
</div>
</script>