commit
ce4b567081
@ -1,6 +1,8 @@
|
||||
/// <reference path="../../includes.d.ts" />
|
||||
/// <reference path="configPlugin.d.ts" />
|
||||
/// <reference path="configsHelper.d.ts" />
|
||||
/// <reference path="configsUtils.d.ts" />
|
||||
/// <reference path="configsDataService.d.ts" />
|
||||
declare module Configs {
|
||||
var GfsController: ng.IModule;
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// <reference path="../../includes.d.ts" />
|
||||
/// <reference path="kubernetesHelpers.d.ts" />
|
||||
/// <reference path="kubernetesPlugin.d.ts" />
|
||||
/// <reference path="kubernetesModel.d.ts" />
|
||||
declare module Kubernetes {
|
||||
var ReplicationControllers: ng.IModule;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,8 +1,45 @@
|
||||
<div>
|
||||
<div ng-controller="Configs.GfsController">
|
||||
<div class="row">
|
||||
<div hawtio-breadcrumbs></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div hawtio-tabs></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-content sj_content">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<button class="btn pull-right sj_btn_blue" ng-click="create()">
|
||||
<span class="glyphicon glyphicon-plus"></span> 添加
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" ng-repeat="volume in volumes">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th class="no-fade table-header">
|
||||
<span class="">{{volume.name}}</span>
|
||||
</th>
|
||||
<th class="no-fade table-header">
|
||||
<span class="">云路径:{{volume.path}}</span>
|
||||
</th>
|
||||
<th class="no-fade table-header">
|
||||
<span class="">状态</span>
|
||||
</th>
|
||||
<th class="no-fade table-header">
|
||||
<span class="">已用{{volume.usedSize}}/共{{allSize}}</span>
|
||||
</th>
|
||||
<th class="no-fade table-header">
|
||||
<button class="btn sj_btn" ng-click="editRow(volume)">
|
||||
<span class="glyphicon glyphicon-pencil"></span> 编辑
|
||||
</button>
|
||||
</th>
|
||||
</tr>
|
||||
<tr ng-repeat="row in volume.brick track by $index" class="row.class">
|
||||
<td ng-repeat="col in row" class="col.class">
|
||||
<span class="col.class">{{col.title}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -0,0 +1,16 @@
|
||||
/// <reference path="../../includes.ts"/>
|
||||
/// <reference path="configPlugin.ts"/>
|
||||
/// <reference path="configsHelper.ts"/>
|
||||
/// <reference path="configsUtils.ts"/>
|
||||
/// <reference path="configsDataService.ts"/>
|
||||
module Configs{
|
||||
|
||||
export var GfsController = controller('GfsController', ["$scope", "$templateCache", "$location", "$routeParams", "$http", "$timeout", 'ConfigsModel',
|
||||
($scope, $templateCache:ng.ITemplateCacheService, $location, $routeParams, $http, $timeout, ConfigsModel) =>{
|
||||
$scope.model = ConfigsModel;
|
||||
$scope.volumes = ConfigsModel.cluster;
|
||||
|
||||
|
||||
shareInit($scope, $location, $routeParams);
|
||||
}]);
|
||||
}
|
Loading…
Reference in new issue