This is an automated email from the ASF dual-hosted git repository.
shamrick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new ae307785ff remove broken and/or unusued tables (#6988)
ae307785ff is described below
commit ae307785ff45ae51d2e9beecb444d0d340964844
Author: ocket8888 <[email protected]>
AuthorDate: Tue Aug 2 07:21:48 2022 -0600
remove broken and/or unusued tables (#6988)
* Remove broken, unused table
* Remove broken, unused table
* Remove broken, unused table
---
traffic_portal/app/src/app.js | 7 ---
.../form/cacheGroup/FormCacheGroupController.js | 4 --
.../form/cacheGroup/form.cacheGroup.tpl.html | 1 -
.../TableCacheGroupStaticDnsEntriesController.js | 43 ----------------
.../table/cacheGroupStaticDnsEntries/index.js | 21 --------
.../table.cacheGroupStaticDnsEntries.tpl.html | 58 ---------------------
.../TableDeliveryServiceRequestsController.js | 6 +--
.../TableDeliveryServiceUsersController.js | 55 --------------------
.../modules/table/deliveryServiceUsers/index.js | 21 --------
.../table.deliveryServiceUsers.tpl.html | 60 ----------------------
.../table/endpoints/TableEndpointsController.js | 39 --------------
.../src/common/modules/table/endpoints/index.js | 21 --------
.../table/endpoints/table.endpoints.tpl.html | 50 ------------------
.../private/cacheGroups/staticDnsEntries/index.js | 42 ---------------
.../private/deliveryServices/users/index.js | 42 ---------------
.../modules/private/endpoints/endpoints.tpl.html | 22 --------
.../app/src/modules/private/endpoints/index.js | 34 ------------
.../src/modules/private/endpoints/list/index.js | 39 --------------
18 files changed, 3 insertions(+), 562 deletions(-)
diff --git a/traffic_portal/app/src/app.js b/traffic_portal/app/src/app.js
index deabf78960..386f77a3bd 100644
--- a/traffic_portal/app/src/app.js
+++ b/traffic_portal/app/src/app.js
@@ -64,7 +64,6 @@ var trafficPortal = angular.module('trafficPortal', [
require('./modules/private/cacheGroups/new').name,
require('./modules/private/cacheGroups/asns').name,
require('./modules/private/cacheGroups/servers').name,
- require('./modules/private/cacheGroups/staticDnsEntries').name,
require('./modules/private/cacheChecks').name,
require('./modules/private/cacheStats').name,
require('./modules/private/capabilities').name,
@@ -129,7 +128,6 @@ var trafficPortal = angular.module('trafficPortal', [
require('./modules/private/deliveryServices/targets/edit').name,
require('./modules/private/deliveryServices/targets/list').name,
require('./modules/private/deliveryServices/targets/new').name,
- require('./modules/private/deliveryServices/users').name,
require('./modules/private/deliveryServices/urlSigKeys').name,
require('./modules/private/deliveryServices/uriSigningKeys').name,
require('./modules/private/deliveryServices/sslKeys').name,
@@ -140,8 +138,6 @@ var trafficPortal = angular.module('trafficPortal', [
require('./modules/private/divisions/list').name,
require('./modules/private/divisions/new').name,
require('./modules/private/divisions/regions').name,
- require('./modules/private/endpoints').name,
- require('./modules/private/endpoints/list').name,
require('./modules/private/iso').name,
require('./modules/private/jobs').name,
require('./modules/private/jobs/list').name,
@@ -362,7 +358,6 @@ var trafficPortal = angular.module('trafficPortal', [
require('./common/modules/table/cacheGroups').name,
require('./common/modules/table/cacheGroupAsns').name,
require('./common/modules/table/cacheGroupServers').name,
- require('./common/modules/table/cacheGroupStaticDnsEntries').name,
require('./common/modules/table/capabilities').name,
require('./common/modules/table/capabilityEndpoints').name,
require('./common/modules/table/capabilityUsers').name,
@@ -387,10 +382,8 @@ var trafficPortal = angular.module('trafficPortal', [
require('./common/modules/table/deliveryServiceServers').name,
require('./common/modules/table/deliveryServiceStaticDnsEntries').name,
require('./common/modules/table/deliveryServiceTargets').name,
- require('./common/modules/table/deliveryServiceUsers').name,
require('./common/modules/table/divisions').name,
require('./common/modules/table/divisionRegions').name,
- require('./common/modules/table/endpoints').name,
require('./common/modules/table/federationResolvers').name,
require('./common/modules/table/jobs').name,
require('./common/modules/table/notifications').name,
diff --git
a/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
b/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
index 55d8cf1679..6c3cebf1cd 100644
---
a/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
+++
b/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
@@ -35,10 +35,6 @@ var FormCacheGroupController = function(cacheGroup, types,
cacheGroups, $scope,
$location.path($location.path() + '/servers');
};
- $scope.viewStaticDnsEntries = function() {
- $location.path($location.path() + '/static-dns-entries');
- };
-
$scope.hasLocalizationMethod = function(method) {
return $scope.cacheGroup.localizationMethods.includes(method);
};
diff --git
a/traffic_portal/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
b/traffic_portal/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
index 14a23c4c4d..e579c06a82 100644
---
a/traffic_portal/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
+++
b/traffic_portal/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
@@ -42,7 +42,6 @@ under the License.
<ul class="dropdown-menu-right dropdown-menu"
uib-dropdown-menu>
<li role="menuitem"><a ng-click="viewAsns()">View
ASNs</a></li>
<li role="menuitem"><a ng-click="viewServers()">View
Servers</a></li>
- <!--<li role="menuitem"><a
ng-click="viewStaticDnsEntries()">View Static DNS Entries</a></li>-->
</ul>
</div>
</div>
diff --git
a/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.js
b/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.js
deleted file mode 100644
index 889fc5cbd9..0000000000
---
a/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.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 TableCacheGroupsStaticDnsEntriesController = function(cacheGroup,
staticDnsEntries, $scope, $state, locationUtils) {
-
- $scope.cacheGroup = cacheGroup;
-
- $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": []
- });
- });
-
-};
-
-TableCacheGroupsStaticDnsEntriesController.$inject = ['cacheGroup',
'staticDnsEntries', '$scope', '$state', 'locationUtils'];
-module.exports = TableCacheGroupsStaticDnsEntriesController;
diff --git
a/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/index.js
b/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/index.js
deleted file mode 100644
index 6a8a45e305..0000000000
---
a/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/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.cacheGroupStaticDnsEntries', [])
- .controller('TableCacheGroupStaticDnsEntriesController',
require('./TableCacheGroupStaticDnsEntriesController'));
diff --git
a/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html
b/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html
deleted file mode 100644
index 59c96c17f7..0000000000
---
a/traffic_portal/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.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('/cache-groups')">Cache
Groups</a></li>
- <li><a ng-click="navigateToPath('/cache-groups/' +
cacheGroup.id)">{{::cacheGroup.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>Delivery Service</th>
- <th>Cache Group</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="s in ::staticDnsEntries">
- <td data-search="^{{::s.host}}$">{{::s.host}}</td>
- <td data-search="^{{::s.address}}$">{{::s.address}}</td>
- <td data-search="^{{::s.type}}$">{{::s.type}}</td>
- <td data-search="^{{::s.ttl}}$">{{::s.ttl}}</td>
- <td
data-search="^{{::s.deliveryservice}}$">{{::s.deliveryservice}}</td>
- <td data-search="^{{::s.cachegroup}}$">{{::s.cachegroup}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
diff --git
a/traffic_portal/app/src/common/modules/table/deliveryServiceRequests/TableDeliveryServiceRequestsController.js
b/traffic_portal/app/src/common/modules/table/deliveryServiceRequests/TableDeliveryServiceRequestsController.js
index 6b228f2ed5..12a323abba 100644
---
a/traffic_portal/app/src/common/modules/table/deliveryServiceRequests/TableDeliveryServiceRequestsController.js
+++
b/traffic_portal/app/src/common/modules/table/deliveryServiceRequests/TableDeliveryServiceRequestsController.js
@@ -33,7 +33,7 @@ var TableDeliveryServicesRequestsController = function
(tableName, dsRequests, $
return params.value ? dateUtils.getRelativeTime(params.value) :
params.value;
}
- columns = [
+ const columns = [
{
headerName: "Delivery Service",
valueGetter: function(params) {
@@ -277,7 +277,7 @@ var TableDeliveryServicesRequestsController = function
(tableName, dsRequests, $
} catch (e) {
console.error("Failure to load stored page
size:", e);
}
-
+
try {
const page =
parseInt(localStorage.getItem(tableName + "_table_page"));
const totalPages =
$scope.gridOptions.api.paginationGetTotalPages();
@@ -287,7 +287,7 @@ var TableDeliveryServicesRequestsController = function
(tableName, dsRequests, $
} catch (e) {
console.error("Failed to load stored page
number:", e);
}
-
+
$scope.gridOptions.api.addEventListener("paginationChanged", function() {
localStorage.setItem(tableName + "_table_page",
$scope.gridOptions.api.paginationGetCurrentPage());
});
diff --git
a/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/TableDeliveryServiceUsersController.js
b/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/TableDeliveryServiceUsersController.js
deleted file mode 100644
index f16131f197..0000000000
---
a/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/TableDeliveryServiceUsersController.js
+++ /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.
- */
-
-var TableDeliveryServiceUsersController = function(deliveryService, users,
$scope, $state, locationUtils) {
-
- $scope.deliveryService = deliveryService;
-
- $scope.users = users;
-
- $scope.addUser = function() {
- alert('not hooked up yet: addUser to ds');
- };
-
- $scope.removeUser = function() {
- alert('not hooked up yet: removeUser from ds');
- };
-
- $scope.isAdmin = function(user) {
- return user.role == 4;
- };
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- angular.element(document).ready(function () {
- $('#usersTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100,
"All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableDeliveryServiceUsersController.$inject = ['deliveryService', 'users',
'$scope', '$state', 'locationUtils'];
-module.exports = TableDeliveryServiceUsersController;
diff --git
a/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/index.js
b/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/index.js
deleted file mode 100644
index 6cf5b1e238..0000000000
--- a/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/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.deliveryServiceUsers', [])
- .controller('TableDeliveryServiceUsersController',
require('./TableDeliveryServiceUsersController'));
diff --git
a/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/table.deliveryServiceUsers.tpl.html
b/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/table.deliveryServiceUsers.tpl.html
deleted file mode 100644
index 7819283a96..0000000000
---
a/traffic_portal/app/src/common/modules/table/deliveryServiceUsers/table.deliveryServiceUsers.tpl.html
+++ /dev/null
@@ -1,60 +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('/delivery-services')">Delivery
Services</a></li>
- <li><a ng-click="navigateToPath('/delivery-services/' +
deliveryService.id + '?dsType=' +
deliveryService.type)">{{::deliveryService.xmlId}}</a></li>
- <li class="active">Users</li>
- </ol>
- <div class="pull-right">
- <button class="btn btn-default" title="Refresh"
ng-click="refresh()"><i class="fa fa-refresh"></i></button>
- <button class="btn btn-primary" ng-click="addUser()">Add</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>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr ng-click="editUser(u.id)" ng-repeat="u in ::users">
- <td data-search="^{{::u.fullName}}$">{{::u.fullName}}</td>
- <td data-search="^{{::u.username}}$">{{::u.username}}</td>
- <td data-search="^{{::u.email}}$">{{::u.email}}</td>
- <td data-search="^{{::u.rolename}}$">{{::u.rolename}}</td>
- <td><button type="button" class="btn btn-link" title="Remove
from Delivery Service" ng-click="removeUser()" ng-hide="isAdmin(u)"><i
class="fa fa-trash-o"></i></button></td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
-
-
-
diff --git
a/traffic_portal/app/src/common/modules/table/endpoints/TableEndpointsController.js
b/traffic_portal/app/src/common/modules/table/endpoints/TableEndpointsController.js
deleted file mode 100644
index 1a64074f1d..0000000000
---
a/traffic_portal/app/src/common/modules/table/endpoints/TableEndpointsController.js
+++ /dev/null
@@ -1,39 +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 TableEndpointsController = function(endpoints, $scope, $state) {
-
- $scope.endpoints = endpoints;
-
- $scope.refresh = function() {
- $state.reload(); // reloads all the resolves for the view
- };
-
- angular.element(document).ready(function () {
- $('#endpointsTable').dataTable({
- "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100,
"All"]],
- "iDisplayLength": 25,
- "aaSorting": []
- });
- });
-
-};
-
-TableEndpointsController.$inject = ['endpoints', '$scope', '$state'];
-module.exports = TableEndpointsController;
diff --git a/traffic_portal/app/src/common/modules/table/endpoints/index.js
b/traffic_portal/app/src/common/modules/table/endpoints/index.js
deleted file mode 100644
index 169035a613..0000000000
--- a/traffic_portal/app/src/common/modules/table/endpoints/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.endpoints', [])
- .controller('TableEndpointsController',
require('./TableEndpointsController'));
diff --git
a/traffic_portal/app/src/common/modules/table/endpoints/table.endpoints.tpl.html
b/traffic_portal/app/src/common/modules/table/endpoints/table.endpoints.tpl.html
deleted file mode 100644
index a4f2ec07a4..0000000000
---
a/traffic_portal/app/src/common/modules/table/endpoints/table.endpoints.tpl.html
+++ /dev/null
@@ -1,50 +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">API Endpoints</li>
- </ol>
- <div class="pull-right" role="group">
- <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="endpointsTable" class="table responsive-utilities
jambo_table">
- <thead>
- <tr class="headings">
- <th>HTTP Method</th>
- <th>HTTP Route</th>
- <th>Required Capability</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="e in ::endpoints">
- <td data-search="^{{::e.httpMethod}}$">{{::e.httpMethod}}</td>
- <td
data-search="^/api/*/{{::e.httpRoute}}$">/api/*/{{::e.httpRoute}}</td>
- <td data-search="^{{::e.capability}}$">{{::e.capability}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-</div>
-
diff --git
a/traffic_portal/app/src/modules/private/cacheGroups/staticDnsEntries/index.js
b/traffic_portal/app/src/modules/private/cacheGroups/staticDnsEntries/index.js
deleted file mode 100644
index 38fe39b28e..0000000000
---
a/traffic_portal/app/src/modules/private/cacheGroups/staticDnsEntries/index.js
+++ /dev/null
@@ -1,42 +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.private.staticDnsEntries', [])
- .config(function($stateProvider, $urlRouterProvider) {
- $stateProvider
- .state('trafficPortal.private.staticDnsEntries', {
- url: '/{cacheGroupId}/static-dns-entries',
- views: {
- cacheGroupsContent: {
- templateUrl:
'common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html',
- controller:
'TableCacheGroupStaticDnsEntriesController',
- resolve: {
- cacheGroup:
function($stateParams, cacheGroupService) {
- return
cacheGroupService.getCacheGroup($stateParams.cacheGroupId);
- },
- staticDnsEntries:
function($stateParams, staticDnsEntryService) {
- return
staticDnsEntryService.getStaticDnsEntries({ cachegroup:
$stateParams.cacheGroupId });
- }
- }
- }
- }
- })
- ;
- $urlRouterProvider.otherwise('/');
- });
diff --git
a/traffic_portal/app/src/modules/private/deliveryServices/users/index.js
b/traffic_portal/app/src/modules/private/deliveryServices/users/index.js
deleted file mode 100644
index 3170bcf086..0000000000
--- a/traffic_portal/app/src/modules/private/deliveryServices/users/index.js
+++ /dev/null
@@ -1,42 +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.private.deliveryServices.users', [])
- .config(function($stateProvider, $urlRouterProvider) {
- $stateProvider
- .state('trafficPortal.private.deliveryServices.users', {
- url: '/{deliveryServiceId}/users',
- views: {
- deliveryServicesContent: {
- templateUrl:
'common/modules/table/deliveryServiceUsers/table.deliveryServiceUsers.tpl.html',
- controller:
'TableDeliveryServiceUsersController',
- resolve: {
- deliveryService:
function($stateParams, deliveryServiceService) {
- return
deliveryServiceService.getDeliveryService($stateParams.deliveryServiceId);
- },
- users:
function($stateParams, userService) {
- return
userService.getUsers();
- }
- }
- }
- }
- })
- ;
- $urlRouterProvider.otherwise('/');
- });
diff --git
a/traffic_portal/app/src/modules/private/endpoints/endpoints.tpl.html
b/traffic_portal/app/src/modules/private/endpoints/endpoints.tpl.html
deleted file mode 100644
index 080e642beb..0000000000
--- a/traffic_portal/app/src/modules/private/endpoints/endpoints.tpl.html
+++ /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.
--->
-
-<div id="endpointsContainer">
- <div ui-view="endpointsContent"></div>
-</div>
diff --git a/traffic_portal/app/src/modules/private/endpoints/index.js
b/traffic_portal/app/src/modules/private/endpoints/index.js
deleted file mode 100644
index f32e82346b..0000000000
--- a/traffic_portal/app/src/modules/private/endpoints/index.js
+++ /dev/null
@@ -1,34 +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.private.endpoints', [])
- .config(function($stateProvider, $urlRouterProvider) {
- $stateProvider
- .state('trafficPortal.private.endpoints', {
- url: 'endpoints',
- abstract: true,
- views: {
- privateContent: {
- templateUrl:
'modules/private/endpoints/endpoints.tpl.html'
- }
- }
- })
- ;
- $urlRouterProvider.otherwise('/');
- });
diff --git a/traffic_portal/app/src/modules/private/endpoints/list/index.js
b/traffic_portal/app/src/modules/private/endpoints/list/index.js
deleted file mode 100644
index fb4003e369..0000000000
--- a/traffic_portal/app/src/modules/private/endpoints/list/index.js
+++ /dev/null
@@ -1,39 +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.private.endpoints.list', [])
- .config(function($stateProvider, $urlRouterProvider) {
- $stateProvider
- .state('trafficPortal.private.endpoints.list', {
- url: '',
- views: {
- endpointsContent: {
- templateUrl:
'common/modules/table/endpoints/table.endpoints.tpl.html',
- controller:
'TableEndpointsController',
- resolve: {
- endpoints:
function(endpointService) {
- return
endpointService.getEndpoints();
- }
- }
- }
- }
- })
- ;
- $urlRouterProvider.otherwise('/');
- });