Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
267 additions
and
5 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
hawtio-web/src/main/webapp/app/fabric/html/activeProfileList.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<div> | ||
<div class="active-profile-titles section-header"> | ||
<div class="active-profile-name">Name</div> | ||
<div class="active-profile-filter"> | ||
<div class="section-filter"> | ||
<input type="text" class="search-query" placeholder="Filter..." ng-model="searchFilter"> | ||
<i class="icon-remove clickable" title="Clear Filter" ng-click="containerIdFilter = ''"></i> | ||
</div> | ||
</div> | ||
|
||
<div class="active-profile-count">Count</div> | ||
<div class="active-profile-actions">Actions</div> | ||
</div> | ||
<div class="active-profile-list" ng-repeat="profile in activeProfiles" ng-show="profileMatchesFilter(profile)"> | ||
<div class="expandable" ng-class="isOpen(profile)"> | ||
<div class="active-profile-row"> | ||
<div class="title active-profile-expander"> | ||
<i class="expandable-indicator"></i> | ||
</div> | ||
<div class="title active-profile-name"> | ||
{{profile.versionId}} / {{profile.id}} | ||
</div> | ||
<div class="active-profile-count"> | ||
{{profile.count}} | ||
</div> | ||
|
||
<div class="active-profile-actions"> | ||
<i class="icon-minus clickable" title="Scale Down (not implemented yet)"></i> | ||
<i class="icon-plus clickable" title="Scale Up (not implemented yet)"></i> | ||
<i class="icon-info-sign clickable" title="Profile Details" ng-click="showProfile(profile)"></i> | ||
</div> | ||
|
||
</div> | ||
<div class="expandable-body"> | ||
<ul> | ||
<li class="no-list" ng-repeat="container in containersForProfile(profile.id)" ng-show="containerMatchesFilter(container)"> | ||
|
||
<div class="box" ng-class="getSelectedClass(container)"> | ||
|
||
<div class="box-left"> | ||
|
||
<i ng-show="!container.selected && showSelect" class="icon-circle-blank clickable" title="Not Selected" ng-click="container.selected = true"></i> | ||
<i ng-show="container.selected && showSelect" class="icon-circle clickable" title="Status of the container" ng-click="container.selected = false"></i> | ||
|
||
<i class="clickable" title="{{getStatusTitle(container)}}" ng-class='statusIcon(container)' ng-click="container.selected = !container.selected"></i> | ||
|
||
<div ng-click="container.selected = !container.selected"> | ||
<a ng-click="showContainer(container)">{{container.id}}</a> / {{container.versionId}} | ||
</div> | ||
|
||
<i class="icon-cloud clickable" title="Ensemble member" ng-click="showContainer(container)" ng-show="isEnsembleContainer(container.id)"></i> | ||
</div> | ||
|
||
<div class="box-middle"> | ||
<ul class="inline"> | ||
<li ng-repeat="service in container.services" ng-switch="service.type"> | ||
<i ng-switch-when="icon" class="{{service.src}}" title="{{service.title}}"></i> | ||
<img ng-switch-when="img" ng-src="{{service.src}}" title="{{service.title}}"> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="box-right"> | ||
|
||
<i class="icon-plus clickable" ng-show="container.root && container.alive" title="Create a new child container" ng-click="createChildContainer(container)"></i> | ||
|
||
<i class="icon-signin clickable" ng-show="container.jolokiaUrl && container.alive" title="Open a new window and connect to this container" ng-click="doConnect(container)"></i> | ||
</div> | ||
|
||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
hawtio-web/src/main/webapp/app/fabric/html/activeProfiles.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="controller-section" ng-controller="Fabric.ActiveProfileController"> | ||
<div class="row-fluid"> | ||
<div class="span12 active-profile-main"> | ||
<div class="dashboard-link-row" ng-hide="inDashboard"> | ||
<a class="dashboard-link" ng-hide="inDashboard" ng-href="{{addToDashboardLink()}}" title="Add this view to a dashboard"><i class="icon-share" title="Add to dashboard"></i></a> | ||
</div> | ||
<div fabric-active-profile-list></div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
hawtio-web/src/main/webapp/app/fabric/js/activeProfiles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module Fabric { | ||
|
||
export function ActiveProfileController($scope, jolokia) { | ||
|
||
$scope.addToDashboardLink = () => { | ||
var href = "#/fabric/activeProfiles" | ||
var title = "Active Profiles" | ||
var size = angular.toJson({ | ||
size_y: 1, | ||
size_x: 5 | ||
}); | ||
|
||
return "#/dashboard/add?tab=dashboard" + | ||
"&href=" + encodeURIComponent(href) + | ||
"&size=" + encodeURIComponent(size) + | ||
"&title=" + encodeURIComponent(title); | ||
} | ||
|
||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters