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
9 changed files
with
254 additions
and
315 deletions.
There are no files selected for viewing
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
36 changes: 36 additions & 0 deletions
36
hawtio-web/src/main/webapp/app/fabric/html/containers.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,36 @@ | ||
<div ng-controller="Fabric.ContainersController"> | ||
|
||
<div class="row-fluid"> | ||
<div class="span12 page-padded"> | ||
|
||
<div class="section-header"> | ||
|
||
<div class="selection-controls"> | ||
<i class="icon-circle-blank clickable" title="Clear Selection" ng-click="setActiveContainer(null)"></i> | ||
<i class="icon-circle clickable" title="Select All" ng-click="selectAllContainers()"></i> | ||
</div> | ||
|
||
<div class="section-title"> | ||
Containers | ||
</div> | ||
|
||
<div class="section-controls"> | ||
<i class="icon-plus clickable" title="Create Container" ng-click="createContainer()"></i> | ||
<i class="icon-minus clickable" title="Delete Container" ng-click="deleteSelectedContainers()" ng-show="selectedContainers.length != 0"></i> | ||
<i class="icon-play-circle clickable" title="Start Containers" ng-click="startSelectedContainers()" ng-show="anySelectionAlive(false)"></i> | ||
<i class="icon-off clickable" title="Stop Containers" ng-click="stopSelectedContainers()" ng-show="anySelectionAlive(true)"></i> | ||
|
||
</div> | ||
|
||
<div class="section-filter"> | ||
<input type="text" class="search-query" placeholder="Filter..." ng-model="containerIdFilter"> | ||
<i class="icon-remove clickable" title="Clear Filter" ng-click="containerIdFilter = ''"></i> | ||
</div> | ||
</div> | ||
|
||
<div fabric-container-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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module Fabric { | ||
|
||
export function ContainersController($scope) { | ||
|
||
$scope.containerIdFilter = ''; | ||
$scope.userName = localStorage['fabric.userName']; | ||
$scope.password = localStorage['fabric.password']; | ||
$scope.saveCredentials = false; | ||
|
||
$scope.getFilteredName = (item) => { | ||
return item.versionId + " / " + item.id; | ||
} | ||
|
||
$scope.filterContainer = (container) => { | ||
if (!$scope.getFilteredName(container).has($scope.containerIdFilter)) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
|
||
$scope.$watch('containers', (oldValue, newValue) => { | ||
if (oldValue !== newValue) { | ||
$scope.selectedContainers = $scope.containers.filter((c) => { return c.selected; }); | ||
|
||
if ($scope.selectedContainers.length > 0) { | ||
$scope.activeContainerId = ''; | ||
} | ||
} | ||
}, true); | ||
|
||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.