You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/06/30 22:42:06 UTC
[36/52] [partial] incubator-trafficcontrol git commit: promotes TO
experimental UI to the new Traffic Portal
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/TableStatusesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/TableStatusesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/TableStatusesController.js
deleted file mode 100644
index 51c31cf..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/TableStatusesController.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
-var TableStatusesController = function(statuses, $scope, $state, locationUtils) {
-
- $scope.statuses = statuses;
-
- $scope.editStatus = function(id) {
- locationUtils.navigateToPath('/admin/statuses/' + id);
- };
-
- $scope.createStatus = function() {
- locationUtils.navigateToPath('/admin/statuses/new');
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- angular.element(document).ready(function () {
- $('#statusesTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableStatusesController.$inject = ['statuses', '$scope', '$state', 'locationUtils'];
-module.exports = TableStatusesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/index.js
deleted file mode 100644
index 9c39c7c..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.statuses', [])
- .controller('TableStatusesController', require('./TableStatusesController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
deleted file mode 100644
index 1b35d5a..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li class="active">Statuses</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-primary" title="Create Status" ng-click="createStatus()"><i class="fa fa-plus"></i></button>
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="statusesTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>name</th>
- <th>description</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editStatus(status.id)" ng-repeat="status in ::statuses">
- <td>{{::status.name}}</td>
- <td>{{::status.description}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/TableTenantsController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/TableTenantsController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/TableTenantsController.js
deleted file mode 100644
index 0e1a214..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/TableTenantsController.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
-var TableTenantsController = function(tenants, $scope, $state, locationUtils) {
-
- $scope.tenants = tenants;
-
- $scope.editTenant = function(id) {
- locationUtils.navigateToPath('/admin/tenants/' + id);
- };
-
- $scope.createTenant = function() {
- locationUtils.navigateToPath('/admin/tenants/new');
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- angular.element(document).ready(function () {
- $('#tenantsTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableTenantsController.$inject = ['tenants', '$scope', '$state', 'locationUtils'];
-module.exports = TableTenantsController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/index.js
deleted file mode 100644
index 033e997..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.tenants', [])
- .controller('TableTenantsController', require('./TableTenantsController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
deleted file mode 100644
index c3db617..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li class="active">Tenants</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-primary" ng-click="createTenant()"><i class="fa fa-plus"></i></button>
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="tenantsTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>name</th>
- <th>active</th>
- <th>parent</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editTenant(tenant.id)" ng-repeat="tenant in ::tenants">
- <td>{{::tenant.name}}</td>
- <td>{{::tenant.active}}</td>
- <td>{{::tenant.parentName}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
-
-
-
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/TableTypeCacheGroupsController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/TableTypeCacheGroupsController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/TableTypeCacheGroupsController.js
deleted file mode 100644
index e05b5bc..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/TableTypeCacheGroupsController.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
-var TableTypeCacheGroupsController = function(type, cacheGroups, $scope, $state, locationUtils) {
-
- $scope.type = type;
-
- $scope.cacheGroups = cacheGroups;
-
- $scope.editCacheGroup = function(id) {
- locationUtils.navigateToPath('/configure/cache-groups/' + id);
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- angular.element(document).ready(function () {
- $('#cacheGroupsTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableTypeCacheGroupsController.$inject = ['type', 'cacheGroups', '$scope', '$state', 'locationUtils'];
-module.exports = TableTypeCacheGroupsController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/index.js
deleted file mode 100644
index c1d3a62..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.typeCacheGroups', [])
- .controller('TableTypeCacheGroupsController', require('./TableTypeCacheGroupsController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
deleted file mode 100644
index 54a2663..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
- <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
- <li class="active">Cache Groups</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="cacheGroupsTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>name</th>
- <th>shortName</th>
- <th>type</th>
- <th>latitude</th>
- <th>longitude</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editCacheGroup(cacheGroup.id)" ng-repeat="cacheGroup in ::cacheGroups">
- <td>{{::cacheGroup.name}}</td>
- <td>{{::cacheGroup.shortName}}</td>
- <td>{{::cacheGroup.typeName}}</td>
- <td>{{::cacheGroup.latitude}}</td>
- <td>{{::cacheGroup.longitude}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/TableTypeDeliveryServicesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/TableTypeDeliveryServicesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/TableTypeDeliveryServicesController.js
deleted file mode 100644
index e41053c..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/TableTypeDeliveryServicesController.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
-var TableTypeDeliveryServicesController = function(type, deliveryServices, $scope, $state, locationUtils) {
-
- $scope.type = type;
-
- $scope.deliveryServices = deliveryServices;
-
- $scope.editDeliveryServices = function(ds) {
- locationUtils.navigateToPath('/configure/delivery-services/' + ds.id + '?type=' + ds.type);
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- angular.element(document).ready(function () {
- $('#deliveryServicesTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableTypeDeliveryServicesController.$inject = ['type', 'deliveryServices', '$scope', '$state', 'locationUtils'];
-module.exports = TableTypeDeliveryServicesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/index.js
deleted file mode 100644
index 3b6514e..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.typeDeliveryServices', [])
- .controller('TableTypeDeliveryServicesController', require('./TableTypeDeliveryServicesController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
deleted file mode 100644
index 7473c3b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
- <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
- <li class="active">Delivery Services</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="deliveryServicesTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>xmlId</th>
- <th>orgServerFqdn</th>
- <th>active</th>
- <th>type</th>
- <th>protocol</th>
- <th>cdn</th>
- <th>ipv6RoutingEnabled</th>
- <th>dscp</th>
- <th>signed</th>
- <th>qstringIgnore</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editDeliveryService(deliveryService)" ng-repeat="deliveryService in ::deliveryServices">
- <td>{{::deliveryService.xmlId}}</td>
- <td>{{::deliveryService.orgServerFqdn}}</td>
- <td>{{::deliveryService.active}}</td>
- <td>{{::deliveryService.type}}</td>
- <td>{{::deliveryService.protocol}}</td>
- <td>{{::deliveryService.cdnName}}</td>
- <td>{{::deliveryService.ipv6RoutingEnabled}}</td>
- <td>{{::deliveryService.dscp}}</td>
- <td>{{::deliveryService.signed}}</td>
- <td>{{::deliveryService.qstringIgnore}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/TableTypeServersController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/TableTypeServersController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/TableTypeServersController.js
deleted file mode 100644
index f0e30d4..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/TableTypeServersController.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.
- */
-
-var TableTypeServersController = function(type, servers, $scope, $state, locationUtils, serverUtils) {
-
- $scope.type = type;
-
- $scope.servers = servers;
-
- $scope.editServer = function(id) {
- locationUtils.navigateToPath('/configure/servers/' + id);
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- $scope.isOffline = serverUtils.isOffline;
-
- $scope.offlineReason = serverUtils.offlineReason;
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- angular.element(document).ready(function () {
- $('#serversTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableTypeServersController.$inject = ['type', 'servers', '$scope', '$state', 'locationUtils', 'serverUtils'];
-module.exports = TableTypeServersController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/index.js
deleted file mode 100644
index b282b7e..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.typeServers', [])
- .controller('TableTypeServersController', require('./TableTypeServersController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
deleted file mode 100644
index e311c42..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
- <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
- <li class="active">Servers</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="serversTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>Update?</th>
- <th>hostName</th>
- <th>domainName</th>
- <th>ipAddress</th>
- <th>ip6Address</th>
- <th>status</th>
- <th>type</th>
- <th>profile</th>
- <th>cdn</th>
- <th>cachegroup</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editServer(server.id)" ng-repeat="server in ::servers" ng-class="::{'active': server.updPending}">
- <td class="update-column">
- <i class="fa fa-flag" ng-if="server.updPending"></i>
- <i class="fa fa-ban" ng-if="!server.updPending"></i>
- </td>
- <td>{{::server.hostName}}</td>
- <td>{{::server.domainName}}</td>
- <td>{{::server.ipAddress}}</td>
- <td>{{::server.ip6Address}}</td>
- <td>
- <span ng-if="!isOffline(server.status)">{{::server.status}}</span>
- <span ng-if="isOffline(server.status)" uib-popover="{{::offlineReason(server)}}" popover-title="Offline Reason" popover-trigger="mouseenter" popover-placement="bottom" popover-append-to-body="true">{{::server.status}}</span>
- </td>
- <td>{{::server.type}}</td>
- <td>{{::server.profile}}</td>
- <td>{{::server.cdnName}}</td>
- <td>{{::server.cachegroup}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/TableTypeStaticDnsEntriesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/TableTypeStaticDnsEntriesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/TableTypeStaticDnsEntriesController.js
deleted file mode 100644
index add4ae5..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/TableTypeStaticDnsEntriesController.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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.
- */
-
-var TableTypeStaticDnsEntriesController = function(type, staticDnsEntries, $scope, $state, locationUtils) {
-
- $scope.type = type;
-
- $scope.staticDnsEntries = staticDnsEntries;
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- angular.element(document).ready(function () {
- $('#staticDnsEntriesTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableTypeStaticDnsEntriesController.$inject = ['type', 'staticDnsEntries', '$scope', '$state', 'locationUtils'];
-module.exports = TableTypeStaticDnsEntriesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/index.js
deleted file mode 100644
index f1a366b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.typeStaticDnsEntries', [])
- .controller('TableTypeStaticDnsEntriesController', require('./TableTypeStaticDnsEntriesController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
deleted file mode 100644
index 38c322a..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
- <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
- <li class="active">Static DNS Entries</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="staticDnsEntriesTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>host</th>
- <th>address</th>
- <th>type</th>
- <th>ttl</th>
- <th>deliveryservice</th>
- <th>cachegroup</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="staticDnsEntry in ::staticDnsEntries">
- <td>{{::staticDnsEntry.host}}</td>
- <td>{{::staticDnsEntry.address}}</td>
- <td>{{::staticDnsEntry.type}}</td>
- <td>{{::staticDnsEntry.ttl}}</td>
- <td>{{::staticDnsEntry.deliveryservice}}</td>
- <td>{{::staticDnsEntry.cachegroup}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/types/TableTypesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/types/TableTypesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/types/TableTypesController.js
deleted file mode 100644
index d6f73b9..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/types/TableTypesController.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
-var TableTypesController = function(types, $scope, $state, locationUtils) {
-
- $scope.types = types;
-
- $scope.editType = function(id) {
- locationUtils.navigateToPath('/admin/types/' + id);
- };
-
- $scope.createType = function() {
- locationUtils.navigateToPath('/admin/types/new');
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- angular.element(document).ready(function () {
- $('#typesTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableTypesController.$inject = ['types', '$scope', '$state', 'locationUtils'];
-module.exports = TableTypesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/types/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/types/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/types/index.js
deleted file mode 100644
index 6e69735..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/types/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.types', [])
- .controller('TableTypesController', require('./TableTypesController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
deleted file mode 100644
index 63bc37b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li class="active">Types</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-primary" title="Create Type" ng-click="createType()"><i class="fa fa-plus"></i></button>
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="typesTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>name</th>
- <th>useInTable</th>
- <th>description</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editType(type.id)" ng-repeat="type in ::types">
- <td>{{::type.name}}</td>
- <td>{{::type.useInTable}}</td>
- <td>{{::type.description}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDSUnassignedController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDSUnassignedController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDSUnassignedController.js
deleted file mode 100644
index 5e430f0..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDSUnassignedController.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * 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.
- */
-
-var TableUserDSUnassignedController = function(user, deliveryServices, userDeliveryServices, $scope, $uibModalInstance) {
-
- var selectedDeliveryServiceIds = [];
-
- var addDS = function(dsId) {
- if (_.indexOf(selectedDeliveryServiceIds, dsId) == -1) {
- selectedDeliveryServiceIds.push(dsId);
- }
- };
-
- var removeDS = function(dsId) {
- selectedDeliveryServiceIds = _.without(selectedDeliveryServiceIds, dsId);
- };
-
- var addAll = function() {
- markDSs(true);
- selectedDeliveryServiceIds = _.pluck(deliveryServices, 'id');
- };
-
- var removeAll = function() {
- markDSs(false);
- selectedDeliveryServiceIds = [];
- };
-
- var markDSs = function(selected) {
- $scope.selectedDSs = _.map(deliveryServices, function(ds) {
- ds['selected'] = selected;
- return ds;
- });
- };
-
- $scope.user = user;
-
- $scope.selectedDSs = _.map(deliveryServices, function(ds) {
- var isAssigned = _.find(userDeliveryServices, function(userDS) { return userDS.id == ds.id });
- if (isAssigned) {
- ds['selected'] = true; // so the checkbox will be checked
- selectedDeliveryServiceIds.push(ds.id); // so the ds is added to selected delivery services
- }
- return ds;
- });
-
- $scope.allSelected = function() {
- return deliveryServices.length == selectedDeliveryServiceIds.length;
- };
-
- $scope.selectAll = function($event) {
- var checkbox = $event.target;
- if (checkbox.checked) {
- addAll();
- } else {
- removeAll();
- }
- };
-
- $scope.updateDeliveryServices = function($event, dsId) {
- var checkbox = $event.target;
- if (checkbox.checked) {
- addDS(dsId);
- } else {
- removeDS(dsId);
- }
- };
-
- $scope.submit = function() {
- $uibModalInstance.close(selectedDeliveryServiceIds);
- };
-
- $scope.cancel = function () {
- $uibModalInstance.dismiss('cancel');
- };
-
- angular.element(document).ready(function () {
- $('#userDSUnassignedTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "order": [[ 1, 'asc' ]],
- "columnDefs": [
- { 'orderable': false, 'targets': 0 },
- { "width": "5%", "targets": 0 }
- ]
- });
- });
-
-};
-
-TableUserDSUnassignedController.$inject = ['user', 'deliveryServices', 'userDeliveryServices', '$scope', '$uibModalInstance'];
-module.exports = TableUserDSUnassignedController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDeliveryServicesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDeliveryServicesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDeliveryServicesController.js
deleted file mode 100644
index 69ab8bf..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/TableUserDeliveryServicesController.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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.
- */
-
-var TableUserDeliveryServicesController = function(user, userDeliveryServices, $scope, $state, $uibModal, locationUtils, userService) {
-
- $scope.user = user;
-
- $scope.userDeliveryServices = userDeliveryServices;
-
- $scope.removeDS = function(dsId) {
- userService.deleteUserDeliveryService(user.id, dsId)
- .then(
- function() {
- $scope.refresh();
- }
- );
- };
-
- $scope.selectDSs = function() {
- var modalInstance = $uibModal.open({
- templateUrl: 'common/modules/table/userDeliveryServices/table.userDSUnassigned.tpl.html',
- controller: 'TableUserDSUnassignedController',
- size: 'lg',
- resolve: {
- user: function() {
- return user;
- },
- deliveryServices: function(deliveryServiceService) {
- return deliveryServiceService.getDeliveryServices();
- },
- userDeliveryServices: function() {
- return userDeliveryServices;
- }
- }
- });
- modalInstance.result.then(function(selectedDSIds) {
- console.log(selectedDSIds);
- userService.assignUserDeliveryServices(user.id, selectedDSIds)
- .then(
- function() {
- $scope.refresh();
- }
- );
- }, function () {
- // do nothing
- });
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- angular.element(document).ready(function () {
- $('#deliveryServicesTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableUserDeliveryServicesController.$inject = ['user', 'userDeliveryServices', '$scope', '$state', '$uibModal', 'locationUtils', 'userService'];
-module.exports = TableUserDeliveryServicesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/index.js
deleted file mode 100644
index 4bcbe1e..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.userDeliveryServices', [])
- .controller('TableUserDeliveryServicesController', require('./TableUserDeliveryServicesController'))
- .controller('TableUserDSUnassignedController', require('./TableUserDSUnassignedController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDSUnassigned.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDSUnassigned.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDSUnassigned.tpl.html
deleted file mode 100644
index 58d9621..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDSUnassigned.tpl.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-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="modal-header">
- <button type="button" class="close" ng-click="cancel()"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h3 class="modal-title">Assign Delivery Services to {{::user.username}}</h3>
-</div>
-<div class="modal-body">
- <table id="userDSUnassignedTable" class="table responsive-utilities jambo_table" style="table-layout:fixed; width:100%;">
- <thead>
- <tr class="headings">
- <th style="padding-left: 10px;"><input type="checkbox" ng-click="selectAll($event)" ng-checked="allSelected()"></th>
- <th>xmlId</th>
- <th>displayName</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="ds in ::selectedDSs">
- <td><input type="checkbox" ng-click="updateDeliveryServices($event, ds.id)" ng-checked="ds.selected"></td>
- <td>{{::ds.xmlId}}</td>
- <td>{{::ds.displayName}}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div class="modal-footer">
- <button class="btn btn-link" ng-click="cancel()">cancel</button>
- <button class="btn btn-primary" ng-click="submit()">Submit</button>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
deleted file mode 100644
index c0122cb..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/users')">Users</a></li>
- <li><a ng-click="navigateToPath('/admin/users/' + user.id)">{{::user.username}}</a></li>
- <li class="active">Delivery Services</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-primary" title="Link Delivery Services to User" ng-click="selectDSs()"><i class="fa fa-link"></i></button>
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="deliveryServicesTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>xmlId</th>
- <th>orgServerFqdn</th>
- <th>cdn</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="deliveryService in ::userDeliveryServices">
- <td>{{::deliveryService.xmlId}}</td>
- <td>{{::deliveryService.orgServerFqdn}}</td>
- <td>{{::deliveryService.cdnName}}</td>
- <td><button type="button" class="btn btn-link" title="Unlink Delivery Service from User" ng-click="removeDS(deliveryService.id)"><i class="fa fa-chain-broken"></i></button></td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/users/TableUsersController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/users/TableUsersController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/users/TableUsersController.js
deleted file mode 100644
index 867bddf..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/users/TableUsersController.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
-var TableUsersController = function(users, $scope, $state, locationUtils) {
-
- $scope.users = users;
-
- $scope.editUser = function(id) {
- locationUtils.navigateToPath('/admin/users/' + id);
- };
-
- $scope.createUser = function() {
- locationUtils.navigateToPath('/admin/users/new');
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- angular.element(document).ready(function () {
- $('#usersTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableUsersController.$inject = ['users', '$scope', '$state', 'locationUtils'];
-module.exports = TableUsersController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/users/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/users/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/users/index.js
deleted file mode 100644
index ee8604d..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/users/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.table.users', [])
- .controller('TableUsersController', require('./TableUsersController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
deleted file mode 100644
index 928b4aa..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!--
-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="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li class="active">Users</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-primary" title="Create User" ng-click="createUser()"><i class="fa fa-plus"></i></button>
- <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <table id="usersTable" class="table responsive-utilities jambo_table">
- <thead>
- <tr class="headings">
- <th>Full Name</th>
- <th>Username</th>
- <th>Email</th>
- <th>Role</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editUser(user.id)" ng-repeat="user in ::users">
- <td>{{::user.fullName}}</td>
- <td>{{::user.username}}</td>
- <td>{{::user.email}}</td>
- <td>{{::user.rolename}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
-
-
-
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/WidgetCacheGroupsController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/WidgetCacheGroupsController.js b/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/WidgetCacheGroupsController.js
deleted file mode 100644
index 43cda07..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/WidgetCacheGroupsController.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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.
- */
-
-var WidgetCacheGroupsController = function(cacheGroupHealth, $scope, locationUtils) {
-
- // pagination
- $scope.currentCacheGroupsPage = 1;
- $scope.cacheGroupsPerPage = 10;
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- $scope.onlinePercent = function(location) {
- return (location.online / (location.online + location.offline)) * 100;
- };
-
- var init = function() {
- if (cacheGroupHealth) {
- // only set this if it's passed in
- $scope.cacheGroupHealth = cacheGroupHealth;
- }
- };
- init();
-
-};
-
-WidgetCacheGroupsController.$inject = ['cacheGroupHealth', '$scope', 'locationUtils'];
-module.exports = WidgetCacheGroupsController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/_widget.cacheGroups.scss
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/_widget.cacheGroups.scss b/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/_widget.cacheGroups.scss
deleted file mode 100644
index 99435c4..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/_widget.cacheGroups.scss
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-
-
- Licensed 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.
-
-*/
-
-#cache-groups-outer-container {
-
- #cacheGroupsContainer {
- max-height: 452px;
- margin-bottom: 0;
-
- .list-group-item {
- background-color: transparent;
- }
-
- .cache-group-health {
- height: 45px;
-
- .cache-groups-table {
- margin-top: -10px;
- border-style: none;
-
- td {
- border-top: none !important;
- padding: 12px 8px !important;
- }
-
- }
-
- }
-
- }
-
- .cache-groups-pagination {
- margin: 0 0 10px 0;
- float: left;
- }
-
- .cache-group-search-form {
- float: right;
- width: 250px;
- margin-bottom: 10px;
- }
-
-}
-
-#cacheGroupsLoadingContainer {
- height: 555px;
- background-color: transparent;
-}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/index.js b/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/index.js
deleted file mode 100644
index 3da2fce..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.widget.cacheGroups', [])
- .controller('WidgetCacheGroupsController', require('./WidgetCacheGroupsController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/widget.cacheGroups.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/widget.cacheGroups.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/widget.cacheGroups.tpl.html
deleted file mode 100644
index 38fa790..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/cacheGroups/widget.cacheGroups.tpl.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!--
-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="x_title">
- <h2>Cache Groups <small>{{cacheGroupHealth.totalOnline/(cacheGroupHealth.totalOnline + cacheGroupHealth.totalOffline) | percentFilter}} online</small></h2>
- <ul class="nav navbar-right panel_toolbox">
- <li><a class="collapse-link" ng-click="navigateToPath('/monitor/map')"><i class="fa fa-map-marker"></i></a></li>
- <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
- <li><a class="close-link"><i class="fa fa-close"></i></a></li>
- </ul>
- <div class="clearfix"></div>
-</div>
-<div class="x_content">
- <div id="cache-groups-outer-container">
- <div id="cacheGroupsContainer">
- <div class="alert alert-info" ng-show="(cacheGroupHealth.cachegroups | filter:search:strict).length == 0">
- No matching cache groups
- </div>
- <div class="list-group">
- <a class="cache-group-health list-group-item" ng-repeat="cg in cacheGroupHealth.cachegroups | orderBy:[onlinePercent, 'name'] | filter:search:strict | offsetFilter:(currentCacheGroupsPage-1)*cacheGroupsPerPage | limitTo:cacheGroupsPerPage">
- <div class="row">
- <table class="cache-groups-table table">
- <tbody>
- <tr>
- <td class="col-lg-4 col-md-4 col-sm-4">{{cg.name}}</td>
- <td class="col-lg-4 col-md-4 col-sm-4">{{cg.online/(cg.online + cg.offline) | percentFilter}} Online [ {{cg.online}} Online | {{cg.offline}} Offline ]</td>
- <td class="col-lg-4 col-md-4 col-sm-4">
- <div class="progress">
- <div class="progress-bar bg-green" role="progressbar" ng-style="{'width': onlinePercent(cg) + '%'}">
- <span class="sr-only">{{cg.online}} Servers Online | {{cg.offline}} Servers Offline</span>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </a>
- </div>
- </div>
- <div>
- <div ng-show="(cacheGroupHealth.cachegroups | filter:search:strict).length > 0">
- <uib-pagination class="cache-groups-pagination pagination-md" boundary-links="true" max-size="2" total-items="(cacheGroupHealth.cachegroups | filter:search:strict).length" items-per-page="cacheGroupsPerPage" ng-model="currentCacheGroupsPage" previous-text="‹" next-text="›" first-text="«" last-text="»"></uib-pagination>
- </div>
- <div class="input-group cache-group-search-form">
- <input type="text" class="filter-input form-control" placeholder="Filter cache groups..." ng-model="search.name">
- <span class="filter-input-group-btn input-group-btn">
- <button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
- </span>
- </div>
- </div>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/WidgetCapacityController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/WidgetCapacityController.js b/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/WidgetCapacityController.js
deleted file mode 100644
index e7c57cb..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/WidgetCapacityController.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * 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.
- */
-
-var WidgetCapacityController = function($scope, cdnService) {
-
- var getCapacity = function() {
- cdnService.getCapacity()
- .then(function(response) {
- $scope.availablePercent = response.availablePercent;
- $scope.utilizedPercent = response.utilizedPercent;
- $scope.maintenancePercent = response.maintenancePercent;
- $scope.unavailablePercent = response.unavailablePercent;
-
- var data = [];
-
- data.push({
- label: "Available",
- color: '#1ABB9C',
- data: $scope.availablePercent
- });
- data.push({
- label: "Utilized",
- color: '#3498DB',
- data: $scope.utilizedPercent
- });
- data.push({
- label: "Maintenance",
- color: '#73879C',
- data: $scope.maintenancePercent
- });
- data.push({
- label: "Down",
- color: '#E74C3C',
- data: $scope.unavailablePercent
- });
-
- buildGraph(data);
- });
-
- };
-
- var buildGraph = function(graphData) {
-
- var options = {
- series: {
- pie: {
- show: true,
- innerRadius: 0.5,
- radius: 1,
- label: {
- show: false
- }
- }
- },
- grid: {
- hoverable: true
- },
- tooltip: true,
- tooltipOpts: {
- cssClass: "capacityChartTooltip",
- content: "%s: %p.2%",
- defaultTheme: false
- },
- legend: {
- show: false
- }
- };
-
- $.plot($("#capacityChart"), graphData, options);
- };
-
- $scope.availablePercent = 0;
- $scope.utilizedPercent = 0;
- $scope.maintenancePercent = 0;
- $scope.unavailablePercent = 0;
-
- var init = function() {
- getCapacity();
- };
- init();
-
-};
-
-WidgetCapacityController.$inject = ['$scope', 'cdnService'];
-module.exports = WidgetCapacityController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/_widget.capacity.scss
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/_widget.capacity.scss b/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/_widget.capacity.scss
deleted file mode 100644
index a275546..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/_widget.capacity.scss
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-
-
- Licensed 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.
-
-*/
-
-#capacityChart {
- left: 0px;
- top: 0px;
- width: 200px;
- height: 200px;
-}
-.capacityChartTooltip {
- padding: 3px 5px;
- background-color: #000;
- z-index: 100;
- color: #fff;
- opacity: .80;
- filter: alpha(opacity=85);
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/index.js b/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/index.js
deleted file mode 100644
index 9533f6b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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.
- */
-
-module.exports = angular.module('trafficPortal.widget.capacity', [])
- .controller('WidgetCapacityController', require('./WidgetCapacityController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/widget.capacity.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/widget.capacity.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/widget.capacity.tpl.html
deleted file mode 100644
index 8dd89e2..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/widget/capacity/widget.capacity.tpl.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!--
-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="x_title">
- <h2>Overall Capacity</h2>
- <ul class="nav navbar-right panel_toolbox">
- <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
- <li><a class="close-link"><i class="fa fa-close"></i></a></li>
- </ul>
- <div class="clearfix"></div>
-</div>
-<div class="x_content">
- <table class="" style="width:100%">
- <tr>
- <td>
- <div id="capacityChart"></div>
- </td>
- <td>
- <table class="tile_info">
- <tr>
- <td>
- <p><i class="fa fa-square green"></i>Available</p>
- </td>
- <td>{{availablePercent | number:2}}%</td>
- </tr>
- <tr>
- <td>
- <p><i class="fa fa-square blue"></i>Utilized</p>
- </td>
- <td>{{utilizedPercent | number:2}}%</td>
- </tr>
- <tr>
- <td>
- <p><i class="fa fa-square gray"></i>Maintenance</p>
- </td>
- <td>{{maintenancePercent | number:2}}%</td>
- </tr>
- <tr>
- <td>
- <p><i class="fa fa-square red"></i>Down</p>
- </td>
- <td>{{unavailablePercent | number:2}}%</td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</div>