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:16 UTC
[46/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/api/HttpService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/HttpService.js b/traffic_ops/experimental/ui/app/src/common/api/HttpService.js
deleted file mode 100644
index a74b7ff..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/HttpService.js
+++ /dev/null
@@ -1,89 +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 HttpService = function($http, $q) {
-
- this.get = function(resource) {
- var deferred = $q.defer();
-
- $http.get(resource)
- .then(
- function(result) {
- deferred.resolve(result);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- };
-
- this.post = function(resource, payload) {
- var deferred = $q.defer();
-
- $http.post(resource, payload)
- .then(
- function(result) {
- deferred.resolve(result);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- };
-
- this.put = function(resource, payload) {
- var deferred = $q.defer();
-
- $http.put(resource, payload)
- .then(
- function(result) {
- deferred.resolve(result.response);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- };
-
- this.delete = function(resource) {
- var deferred = $q.defer();
-
- $http.delete(resource)
- .then(
- function(result) {
- deferred.resolve(result.response);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- };
-
-};
-
-HttpService.$inject = ['$http', '$q'];
-module.exports = HttpService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/JobService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/JobService.js b/traffic_ops/experimental/ui/app/src/common/api/JobService.js
deleted file mode 100644
index ab05d30..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/JobService.js
+++ /dev/null
@@ -1,33 +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 JobService = function(Restangular) {
-
- this.getJobs = function(queryParams) {
- return Restangular.all('jobs').getList(queryParams);
- };
-
- this.createJob = function(job) {
- return Restangular.service('user/current/jobs').post(job);
- };
-
-};
-
-JobService.$inject = ['Restangular'];
-module.exports = JobService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/ParameterService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/ParameterService.js b/traffic_ops/experimental/ui/app/src/common/api/ParameterService.js
deleted file mode 100644
index 21223f2..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/ParameterService.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 ParameterService = function(Restangular, locationUtils, messageModel) {
-
- this.getParameters = function(queryParams) {
- return Restangular.all('parameters').getList(queryParams);
- };
-
- this.getParameter = function(id) {
- return Restangular.one("parameters", id).get();
- };
-
- this.createParameter = function(parameter) {
- return Restangular.service('parameters').post(parameter)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Parameter created' } ], true);
- locationUtils.navigateToPath('/admin/parameters');
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateParameter = function(parameter) {
- return parameter.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Parameter updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteParameter = function(id) {
- return Restangular.one("parameters", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Parameter deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
- this.getProfileParameters = function(profileId) {
- return Restangular.one('profiles', profileId).getList('parameters');
- };
-
- this.getProfileUnassignedParams = function(profileId) {
- return Restangular.one('profiles', profileId).getList('unassigned_parameters');
- };
-
- this.getCacheGroupUnassignedParams = function(cgId) {
- return Restangular.one('cachegroups', cgId).getList('unassigned_parameters');
- };
-
-};
-
-ParameterService.$inject = ['Restangular', 'locationUtils', 'messageModel'];
-module.exports = ParameterService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/PhysLocationService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/PhysLocationService.js b/traffic_ops/experimental/ui/app/src/common/api/PhysLocationService.js
deleted file mode 100644
index 9ddf07a..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/PhysLocationService.js
+++ /dev/null
@@ -1,71 +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 PhysLocationService = function(Restangular, locationUtils, messageModel) {
-
- this.getPhysLocations = function(queryParams) {
- return Restangular.all('phys_locations').getList(queryParams);
- };
-
- this.getPhysLocation = function(id) {
- return Restangular.one("phys_locations", id).get();
- };
-
- this.createPhysLocation = function(physLocation) {
- return Restangular.service('phys_locations').post(physLocation)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Physical location created' } ], true);
- locationUtils.navigateToPath('/admin/phys-locations');
-
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updatePhysLocation = function(physLocation) {
- return physLocation.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Physical location updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deletePhysLocation = function(id) {
- return Restangular.one("phys_locations", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Physical location deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
-};
-
-PhysLocationService.$inject = ['Restangular', 'locationUtils', 'messageModel'];
-module.exports = PhysLocationService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/ProfileParameterService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/ProfileParameterService.js b/traffic_ops/experimental/ui/app/src/common/api/ProfileParameterService.js
deleted file mode 100644
index a81678d..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/ProfileParameterService.js
+++ /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.
- */
-
-var ProfileParameterService = function(Restangular, httpService, messageModel, ENV) {
-
- this.unlinkProfileParameter = function(profileId, paramId) {
- return httpService.delete(ENV.api['root'] + 'profileparameters/' + profileId + '/' + paramId)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Profile and parameter were unlinked.' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
- this.linkProfileParameters = function(profileParamMappings) {
- return Restangular.service('profileparameters').post(profileParamMappings)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Parameters linked to profile' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
-};
-
-ProfileParameterService.$inject = ['Restangular', 'httpService', 'messageModel', 'ENV'];
-module.exports = ProfileParameterService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/ProfileService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/ProfileService.js b/traffic_ops/experimental/ui/app/src/common/api/ProfileService.js
deleted file mode 100644
index d7c9df9..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/ProfileService.js
+++ /dev/null
@@ -1,79 +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 ProfileService = function(Restangular, locationUtils, messageModel) {
-
- this.getProfiles = function(queryParams) {
- return Restangular.all('profiles').getList(queryParams);
- };
-
- this.getProfile = function(id) {
- return Restangular.one("profiles", id).get();
- };
-
- this.createProfile = function(profile) {
- return Restangular.service('profiles').post(profile)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Profile created' } ], true);
- locationUtils.navigateToPath('/admin/profiles');
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateProfile = function(profile) {
- return profile.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Profile updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteProfile = function(id) {
- return Restangular.one("profiles", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Profile deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
- this.getParameterProfiles = function(paramId) {
- return Restangular.one('parameters', paramId).getList('profiles');
- };
-
- this.getParamUnassignedProfiles = function(paramId) {
- return Restangular.one('parameters', paramId).getList('unassigned_profiles');
- };
-
-
-};
-
-ProfileService.$inject = ['Restangular', 'locationUtils', 'messageModel'];
-module.exports = ProfileService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/RegexService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/RegexService.js b/traffic_ops/experimental/ui/app/src/common/api/RegexService.js
deleted file mode 100644
index fcd3a64..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/RegexService.js
+++ /dev/null
@@ -1,29 +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 RegexService = function(Restangular, locationUtils, messageModel) {
-
- this.getRegexes = function(dsId) {
- return Restangular.all('deliveryservices_regexes').getList({ dsId: dsId });
- };
-
-};
-
-RegexService.$inject = ['Restangular', 'locationUtils', 'messageModel'];
-module.exports = RegexService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/RegionService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/RegionService.js b/traffic_ops/experimental/ui/app/src/common/api/RegionService.js
deleted file mode 100644
index d8d87e9..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/RegionService.js
+++ /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.
- */
-
-var RegionService = function(Restangular, messageModel) {
-
- this.getRegions = function(queryParams) {
- return Restangular.all('regions').getList(queryParams);
- };
-
- this.getRegion = function(id) {
- return Restangular.one("regions", id).get();
- };
-
- this.createRegion = function(region) {
- return Restangular.service('regions').post(region)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Region created' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateRegion = function(region) {
- return region.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Region updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteRegion = function(id) {
- return Restangular.one("regions", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Region deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
-};
-
-RegionService.$inject = ['Restangular', 'messageModel'];
-module.exports = RegionService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/RoleService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/RoleService.js b/traffic_ops/experimental/ui/app/src/common/api/RoleService.js
deleted file mode 100644
index bcd9b3b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/RoleService.js
+++ /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.
- */
-
-var RoleService = function(Restangular, messageModel) {
-
- this.getRoles = function(queryParams) {
- return Restangular.all('roles').getList(queryParams);
- };
-
- this.getRole = function(id) {
- return Restangular.one("roles", id).get();
- };
-
- this.updateRole = function(role) {
- return role.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Role updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteRole = function(id) {
- return Restangular.one("roles", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Role deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
-};
-
-RoleService.$inject = ['Restangular', 'messageModel'];
-module.exports = RoleService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/ServerService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/ServerService.js b/traffic_ops/experimental/ui/app/src/common/api/ServerService.js
deleted file mode 100644
index 3aaffed..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/ServerService.js
+++ /dev/null
@@ -1,138 +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 ServerService = function($http, $q, Restangular, locationUtils, messageModel, ENV) {
-
- this.getServers = function(queryParams) {
- return Restangular.all('servers').getList(queryParams);
- };
-
- this.getServer = function(id) {
- return Restangular.one("servers", id).get();
- };
-
- this.createServer = function(server) {
- return Restangular.service('servers').post(server)
- .then(
- function(response) {
- messageModel.setMessages([ { level: 'success', text: 'Server created' } ], true);
- locationUtils.navigateToPath('/configure/servers/' + response.id);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateServer = function(server) {
- return server.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Server updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteServer = function(id) {
- return Restangular.one("servers", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Server deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
- this.getDeliveryServiceServers = function(dsId) {
- return Restangular.one('deliveryservices', dsId).getList('servers');
- };
-
- this.getUnassignedDeliveryServiceServers = function(dsId) {
- return Restangular.one('deliveryservices', dsId).getList('servers/unassigned');
- };
-
- this.getEligibleDeliveryServiceServers = function(dsId) {
- return Restangular.one('deliveryservices', dsId).getList('servers/eligible');
- };
-
- this.queueServerUpdates = function(id) {
- return Restangular.one("servers", id).customPOST( { action: "queue"}, "queue_update" )
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Queued server updates' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.clearServerUpdates = function(id) {
- return Restangular.one("servers", id).customPOST( { action: "dequeue"}, "queue_update" )
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Cleared server updates' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.getStatusCount = function() {
- var request = $q.defer();
-
- $http.get(ENV.api['root'] + "servers/status")
- .then(
- function(result) {
- request.resolve(result.data.response);
- },
- function() {
- request.reject();
- }
- );
-
- return request.promise;
- };
-
- this.updateStatus = function(id, payload) {
- var request = $q.defer();
-
- $http.put(ENV.api['root'] + "servers/" + id + "/status", payload)
- .then(
- function(result) {
- request.resolve(result);
- },
- function(fault) {
- request.reject(fault);
- }
- );
-
- return request.promise;
- };
-
-};
-
-ServerService.$inject = ['$http', '$q', 'Restangular', 'locationUtils', 'messageModel', 'ENV'];
-module.exports = ServerService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/StaticDnsEntryService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/StaticDnsEntryService.js b/traffic_ops/experimental/ui/app/src/common/api/StaticDnsEntryService.js
deleted file mode 100644
index aa56365..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/StaticDnsEntryService.js
+++ /dev/null
@@ -1,29 +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 StaticDnsEntryService = function(Restangular) {
-
- this.getStaticDnsEntries = function(queryParams) {
- return Restangular.all('staticdnsentries').getList(queryParams);
- };
-
-};
-
-StaticDnsEntryService.$inject = ['Restangular'];
-module.exports = StaticDnsEntryService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/StatusService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/StatusService.js b/traffic_ops/experimental/ui/app/src/common/api/StatusService.js
deleted file mode 100644
index dd656d8..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/StatusService.js
+++ /dev/null
@@ -1,70 +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 StatusService = function(Restangular, locationUtils, messageModel) {
-
- this.getStatuses = function(queryParams) {
- return Restangular.all('statuses').getList(queryParams);
- };
-
- this.getStatus = function(id) {
- return Restangular.one("statuses", id).get();
- };
-
- this.createStatus = function(status) {
- return Restangular.service('statuses').post(status)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Status created' } ], true);
- locationUtils.navigateToPath('/admin/statuses');
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateStatus = function(status) {
- return status.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Status updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteStatus = function(id) {
- return Restangular.one("statuses", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Status deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
-};
-
-StatusService.$inject = ['Restangular', 'locationUtils', 'messageModel'];
-module.exports = StatusService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/TenantService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/TenantService.js b/traffic_ops/experimental/ui/app/src/common/api/TenantService.js
deleted file mode 100644
index b350033..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/TenantService.js
+++ /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.
- */
-
-var TenantService = function(Restangular, messageModel) {
-
- this.getTenants = function(queryParams) {
- return Restangular.all('tenants').getList(queryParams);
- };
-
- this.getTenant = function(id) {
- return Restangular.one("tenants", id).get();
- };
-
- this.createTenant = function(tenant) {
- return Restangular.service('tenants').post(tenant)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Tenant created' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateTenant = function(tenant) {
- return tenant.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Tenant updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteTenant = function(id) {
- return Restangular.one("tenants", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Tenant deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
-};
-
-TenantService.$inject = ['Restangular', 'messageModel'];
-module.exports = TenantService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/TrafficPortalService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/TrafficPortalService.js b/traffic_ops/experimental/ui/app/src/common/api/TrafficPortalService.js
deleted file mode 100644
index 857fcbf..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/TrafficPortalService.js
+++ /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.
- */
-
-var TrafficPortalService = function($http, $q) {
-
- this.getReleaseVersionInfo = function() {
- var deferred = $q.defer();
- $http.get('traffic_portal_release.json')
- .then(
- function(result) {
- deferred.resolve(result);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- };
-
- this.dumpDB = function() {
- // todo: need to fix this so it is not hard-coded
- window.location = 'http://localhost:3000/api/1.2/dbdump';
- };
-
- this.getProperties = function() {
- var deferred = $q.defer();
- $http.get('traffic_portal_properties.json')
- .then(
- function(result) {
- deferred.resolve(result.data.properties);
- }
- );
-
- return deferred.promise;
- };
-
-};
-
-TrafficPortalService.$inject = ['$http', '$q'];
-module.exports = TrafficPortalService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/TypeService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/TypeService.js b/traffic_ops/experimental/ui/app/src/common/api/TypeService.js
deleted file mode 100644
index 2ec57fd..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/TypeService.js
+++ /dev/null
@@ -1,70 +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 TypeService = function(Restangular, locationUtils, messageModel) {
-
- this.getTypes = function(queryParams) {
- return Restangular.all('types').getList(queryParams);
- };
-
- this.getType = function(id) {
- return Restangular.one("types", id).get();
- };
-
- this.createType = function(type) {
- return Restangular.service('types').post(type)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Type created' } ], true);
- locationUtils.navigateToPath('/admin/types');
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateType = function(type) {
- return type.put()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Type updated' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.deleteType = function(id) {
- return Restangular.one("types", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Type deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
-};
-
-TypeService.$inject = ['Restangular', 'locationUtils', 'messageModel'];
-module.exports = TypeService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/UserService.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/UserService.js b/traffic_ops/experimental/ui/app/src/common/api/UserService.js
deleted file mode 100644
index 3b187a1..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/UserService.js
+++ /dev/null
@@ -1,144 +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 UserService = function(Restangular, $http, $location, $q, authService, httpService, locationUtils, userModel, messageModel, ENV) {
-
- var service = this;
-
- this.getCurrentUser = function() {
- var token = $location.search().token,
- deferred = $q.defer();
-
- if (angular.isDefined(token)) {
- $location.search('token', null); // remove the token query param
- authService.tokenLogin(token)
- .then(
- function(response) {
- service.getCurrentUser();
- }
- );
- } else {
- $http.get(ENV.api['root'] + "user/current")
- .then(
- function(result) {
- userModel.setUser(result.data.response);
- deferred.resolve(result.data.response);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- }
- };
-
- this.getUsers = function(queryParams) {
- return Restangular.all('users').getList(queryParams);
- };
-
- this.getUser = function(id) {
- return Restangular.one("users", id).get();
- };
-
- this.createUser = function(user) {
- return Restangular.service('users').post(user)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'User created' } ], true);
- locationUtils.navigateToPath('/admin/users');
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
- this.updateUser = function(user) {
- return $http.put(ENV.api['root'] + "users/" + user.id, user)
- .then(
- function() {
- if (userModel.user.id == user.id) {
- // if you are updating the currently logged in user...
- userModel.setUser(user);
- }
- messageModel.setMessages([ { level: 'success', text: 'User updated' } ], false);
- },
- function() {
- messageModel.setMessages([ { level: 'error', text: 'User updated failed' } ], false);
- }
- );
- };
-
- this.deleteUser = function(id) {
- return Restangular.one("users", id).remove()
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'User deleted' } ], true);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
- this.getUnassignedUserDeliveryServices = function(userId) {
- var deferred = $q.defer();
-
- $http.get(ENV.api['root'] + "user/" + userId + "/deliveryservices/available")
- .then(
- function(result) {
- deferred.resolve(result.data.response);
- },
- function(fault) {
- deferred.reject(fault);
- }
- );
-
- return deferred.promise;
- };
-
- this.deleteUserDeliveryService = function(userId, dsId) {
- return httpService.delete(ENV.api['root'] + 'deliveryservice_user/' + dsId + '/' + userId)
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'User and delivery service were unlinked.' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, true);
- }
- );
- };
-
- this.assignUserDeliveryServices = function(userId, deliveryServices) {
- return Restangular.service('deliveryservice_user').post( { userId: userId, deliveryServices: deliveryServices, replace: true } )
- .then(
- function() {
- messageModel.setMessages([ { level: 'success', text: 'Delivery services linked to user' } ], false);
- },
- function(fault) {
- messageModel.setMessages(fault.data.alerts, false);
- }
- );
- };
-
-};
-
-UserService.$inject = ['Restangular', '$http', '$location', '$q', 'authService', 'httpService', 'locationUtils', 'userModel', 'messageModel', 'ENV'];
-module.exports = UserService;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/api/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/api/index.js b/traffic_ops/experimental/ui/app/src/common/api/index.js
deleted file mode 100644
index 1cfa851..0000000
--- a/traffic_ops/experimental/ui/app/src/common/api/index.js
+++ /dev/null
@@ -1,46 +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.api', [])
- .service('authService', require('./AuthService'))
- .service('asnService', require('./ASNService'))
- .service('cacheGroupService', require('./CacheGroupService'))
- .service('cacheGroupParameterService', require('./CacheGroupParameterService'))
- .service('cacheStatsService', require('./CacheStatsService'))
- .service('cdnService', require('./CDNService'))
- .service('changeLogService', require('./ChangeLogService'))
- .service('deliveryServiceService', require('./DeliveryServiceService'))
- .service('deliveryServiceRegexService', require('./DeliveryServiceRegexService'))
- .service('divisionService', require('./DivisionService'))
- .service('httpService', require('./HttpService'))
- .service('jobService', require('./JobService'))
- .service('physLocationService', require('./PhysLocationService'))
- .service('parameterService', require('./ParameterService'))
- .service('profileService', require('./ProfileService'))
- .service('profileParameterService', require('./ProfileParameterService'))
- .service('roleService', require('./RoleService'))
- .service('regionService', require('./RegionService'))
- .service('serverService', require('./ServerService'))
- .service('staticDnsEntryService', require('./StaticDnsEntryService'))
- .service('statusService', require('./StatusService'))
- .service('tenantService', require('./TenantService'))
- .service('typeService', require('./TypeService'))
- .service('trafficPortalService', require('./TrafficPortalService'))
- .service('userService', require('./UserService'))
-;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/directives/match/MatchDirective.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/directives/match/MatchDirective.js b/traffic_ops/experimental/ui/app/src/common/directives/match/MatchDirective.js
deleted file mode 100644
index e174d30..0000000
--- a/traffic_ops/experimental/ui/app/src/common/directives/match/MatchDirective.js
+++ /dev/null
@@ -1,33 +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 MatchDirective = function() {
- return {
- require: 'ngModel',
- link: function (scope, elem, attrs, ctrl) {
- scope.$watch('[' + attrs.ngModel + ', ' + attrs.match + ']', function(value) {
- var a = value[0] || '';
- var b = value[1] || '';
- ctrl.$setValidity('match', a === b);
- }, true);
- }
- }
-};
-
-module.exports = MatchDirective;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/directives/match/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/directives/match/index.js b/traffic_ops/experimental/ui/app/src/common/directives/match/index.js
deleted file mode 100644
index a272219..0000000
--- a/traffic_ops/experimental/ui/app/src/common/directives/match/index.js
+++ /dev/null
@@ -1,23 +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.
- */
-
-//application directives
-module.exports = angular.module('trafficPortal.directives.match',[])
- .directive('match', require('./MatchDirective'))
-;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/filters/OffsetFilter.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/filters/OffsetFilter.js b/traffic_ops/experimental/ui/app/src/common/filters/OffsetFilter.js
deleted file mode 100644
index 8f9a5a8..0000000
--- a/traffic_ops/experimental/ui/app/src/common/filters/OffsetFilter.js
+++ /dev/null
@@ -1,30 +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 OffsetFilter = function() {
- return function(input, start) {
- if($.isArray(input)) {
- start = parseInt(start, 10);
- return input.slice(start);
- }
- };
-};
-
-OffsetFilter.$inject = ['$log'];
-module.exports = OffsetFilter;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/filters/PercentFilter.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/filters/PercentFilter.js b/traffic_ops/experimental/ui/app/src/common/filters/PercentFilter.js
deleted file mode 100644
index fba2de1..0000000
--- a/traffic_ops/experimental/ui/app/src/common/filters/PercentFilter.js
+++ /dev/null
@@ -1,35 +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 PercentFilter = function() {
- return function(input) {
- input = parseFloat(input);
- input *= 100;
- if(input % 1 === 0) {
- input = input.toFixed(0);
- }
- else {
- input = input.toFixed(2);
- }
- return input + '%';
- };
-};
-
-PercentFilter.$inject = [];
-module.exports = PercentFilter;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/filters/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/filters/index.js b/traffic_ops/experimental/ui/app/src/common/filters/index.js
deleted file mode 100644
index 5604d10..0000000
--- a/traffic_ops/experimental/ui/app/src/common/filters/index.js
+++ /dev/null
@@ -1,23 +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.filters', [])
- .filter('offsetFilter', require('./OffsetFilter'))
- .filter('percentFilter', require('./PercentFilter'))
-;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/models/ChangeLogModel.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/models/ChangeLogModel.js b/traffic_ops/experimental/ui/app/src/common/models/ChangeLogModel.js
deleted file mode 100644
index 48c7b81..0000000
--- a/traffic_ops/experimental/ui/app/src/common/models/ChangeLogModel.js
+++ /dev/null
@@ -1,73 +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 ChangeLogModel = function($rootScope, $interval, changeLogService, userModel) {
-
- var newLogCount = 0,
- pollingIntervalInSecs = 30,
- changeLogInterval;
-
- this.newLogCount = function() {
- return newLogCount;
- };
-
- var createChangeLogInterval = function() {
- killChangeLogInterval();
- changeLogInterval = $interval(function() { getNewLogCount() }, (pollingIntervalInSecs*1000)); // every X minutes
- };
-
- var killChangeLogInterval = function() {
- if (angular.isDefined(changeLogInterval)) {
- $interval.cancel(changeLogInterval);
- changeLogInterval = undefined;
- }
- };
-
- var getNewLogCount = function() {
- changeLogService.getNewLogCount()
- .then(function(result) {
- newLogCount = result.data.response.newLogcount;
- });
- };
-
- $rootScope.$on('authService::login', function() {
- getNewLogCount();
- createChangeLogInterval();
- });
-
- $rootScope.$on('authService::logout', function() {
- killChangeLogInterval();
- });
-
- $rootScope.$on('changeLogService::getChangeLogs', function() {
- newLogCount = 0;
- });
-
- var init = function () {
- if (userModel.loaded) {
- getNewLogCount();
- createChangeLogInterval();
- }
- };
- init();
-
-};
-
-ChangeLogModel.$inject = ['$rootScope', '$interval', 'changeLogService', 'userModel'];
-module.exports = ChangeLogModel;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/models/MessageModel.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/models/MessageModel.js b/traffic_ops/experimental/ui/app/src/common/models/MessageModel.js
deleted file mode 100644
index 279602b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/models/MessageModel.js
+++ /dev/null
@@ -1,68 +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 MessageModel = function($rootScope) {
-
- var model = this;
- var queue = [];
-
- var messages = {};
- messages.loaded = false;
- messages.content = [];
-
- this.messages = messages;
-
- this.setMessages = function(messagesArray, delay) {
- // delay should be true if a redirect follows...
- if (!angular.isArray(messagesArray)) return;
- var messages = {};
- messages.loaded = true;
- messages.content = messagesArray;
- if (delay) {
- queue[0] = messages; // queue up messages to display after a location change
- } else {
- model.messages = messages; // show the messages asap
- queue = []; // clear the queue as messages will be shown immediately
- }
- };
-
- this.resetMessages = function() {
- messages = {};
- messages.loaded = false;
- messages.content = [];
-
- this.messages = messages;
- };
-
- this.removeMessage = function(message) {
- model.messages.content = _.without(model.messages.content, message);
- };
-
- $rootScope.$on("$locationChangeStart", function() {
- model.resetMessages();
- });
-
- $rootScope.$on("$locationChangeSuccess", function() {
- model.messages = queue.shift() || {};
- });
-
-};
-
-MessageModel.$inject = ['$rootScope'];
-module.exports = MessageModel;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/models/PropertiesModel.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/models/PropertiesModel.js b/traffic_ops/experimental/ui/app/src/common/models/PropertiesModel.js
deleted file mode 100644
index 5720a18..0000000
--- a/traffic_ops/experimental/ui/app/src/common/models/PropertiesModel.js
+++ /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.
-
-*/
-
-var PropertiesModel = function() {
-
- this.properties = {};
- this.loaded = false;
-
- this.setProperties = function(properties) {
- this.properties = properties;
- this.loaded = true;
- };
-
-};
-
-PropertiesModel.$inject = [];
-module.exports = PropertiesModel;
\ 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/models/UserModel.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/models/UserModel.js b/traffic_ops/experimental/ui/app/src/common/models/UserModel.js
deleted file mode 100644
index bf1c624..0000000
--- a/traffic_ops/experimental/ui/app/src/common/models/UserModel.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.
- */
-
-var UserModel = function($rootScope) {
-
- this.loaded = false;
-
- this.user = {};
-
- this.setUser = function(userData) {
- this.loaded = true;
- this.user = userData;
- $rootScope.$broadcast('userModel::userUpdated', this.user);
- };
-
- this.resetUser = function() {
- this.loaded = false;
- this.userId = 0;
- this.user = {};
- $rootScope.$broadcast('userModel::userUpdated', this.user);
- };
-
-};
-
-UserModel.$inject = ['$rootScope'];
-module.exports = UserModel;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/models/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/models/index.js b/traffic_ops/experimental/ui/app/src/common/models/index.js
deleted file mode 100644
index 7c35171..0000000
--- a/traffic_ops/experimental/ui/app/src/common/models/index.js
+++ /dev/null
@@ -1,24 +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.models', [])
- .service('changeLogModel', require('./ChangeLogModel'))
- .service('messageModel', require('./MessageModel'))
- .service('propertiesModel', require('./PropertiesModel'))
- .service('userModel', require('./UserModel'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/DialogConfirmController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/DialogConfirmController.js b/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/DialogConfirmController.js
deleted file mode 100644
index c936647..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/DialogConfirmController.js
+++ /dev/null
@@ -1,35 +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 DialogConfirmController = function(params, $scope, $uibModalInstance) {
-
- $scope.params = params;
-
- $scope.yes = function() {
- $uibModalInstance.close();
- };
-
- $scope.no = function () {
- $uibModalInstance.dismiss('no');
- };
-
-};
-
-DialogConfirmController.$inject = ['params', '$scope', '$uibModalInstance'];
-module.exports = DialogConfirmController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/_dialog.confirm.scss
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/_dialog.confirm.scss b/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/_dialog.confirm.scss
deleted file mode 100644
index d57b9c6..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/_dialog.confirm.scss
+++ /dev/null
@@ -1,16 +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.
-
-*/
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/dialog.confirm.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/dialog.confirm.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/dialog.confirm.tpl.html
deleted file mode 100644
index 235cbb3..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/dialog.confirm.tpl.html
+++ /dev/null
@@ -1,30 +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="no()"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">{{::params.title}}</h4>
-</div>
-<div class="modal-body">
- <p>{{::params.message}}</p>
-</div>
-<div class="modal-footer">
- <button class="btn action-btn" ng-click="no()">No</button>
- <button class="btn btn-link" ng-click="yes()">Yes</button>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/index.js b/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/index.js
deleted file mode 100644
index d500733..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/confirm/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.dialog.confirm', [])
- .controller('DialogConfirmController', require('./DialogConfirmController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/DialogDeleteController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/DialogDeleteController.js b/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/DialogDeleteController.js
deleted file mode 100644
index f3633cd..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/DialogDeleteController.js
+++ /dev/null
@@ -1,35 +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 DialogDeleteController = function(params, $scope, $uibModalInstance) {
-
- $scope.params = params;
-
- $scope.delete = function() {
- $uibModalInstance.close();
- };
-
- $scope.cancel = function () {
- $uibModalInstance.dismiss('cancel');
- };
-
-};
-
-DialogDeleteController.$inject = ['params', '$scope', '$uibModalInstance'];
-module.exports = DialogDeleteController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/dialog.delete.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/dialog.delete.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/dialog.delete.tpl.html
deleted file mode 100644
index 852d724..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/dialog.delete.tpl.html
+++ /dev/null
@@ -1,32 +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">Cancel</span></button>
- <h4 class="modal-title">{{::params.title}}</h4>
-</div>
-<div class="modal-body">
- <form name="deleteForm" novalidate>
- <p>This action CANNOT be undone. This will permanently delete '{{::params.key}}'. Please type in '{{::params.key}}' to confirm deletion.</p>
- <input type="text" class="form-control" ng-model="confirmKey" match="params.key" required>
- </form>
-</div>
-<div class="modal-footer">
- <button type="button" class="btn btn-danger" ng-disabled="deleteForm.$pristine || deleteForm.$invalid" ng-click="delete()">Delete Permanently</button>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/index.js b/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/index.js
deleted file mode 100644
index 4a35c29..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/delete/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.dialog.delete', [])
- .controller('DialogDeleteController', require('./DialogDeleteController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/DialogResetController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/DialogResetController.js b/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/DialogResetController.js
deleted file mode 100644
index 2b0c6c7..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/DialogResetController.js
+++ /dev/null
@@ -1,45 +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 DialogResetController = function($scope, $uibModalInstance) {
-
- $scope.userData = {
- email: ""
- };
-
- $scope.reset = function (email) {
- $uibModalInstance.close(email);
- };
-
- $scope.cancel = function () {
- $uibModalInstance.dismiss('cancel');
- };
-
- $scope.hasError = function(input) {
- return !input.$focused && input.$dirty && input.$invalid;
- };
-
- $scope.hasPropertyError = function(input, property) {
- return !input.$focused && input.$dirty && input.$error[property];
- };
-
-};
-
-DialogResetController.$inject = ['$scope', '$uibModalInstance'];
-module.exports = DialogResetController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/_dialog.reset.scss
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/_dialog.reset.scss b/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/_dialog.reset.scss
deleted file mode 100644
index d57b9c6..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/_dialog.reset.scss
+++ /dev/null
@@ -1,16 +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.
-
-*/
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/dialog.reset.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/dialog.reset.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/dialog.reset.tpl.html
deleted file mode 100644
index dd541f7..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/dialog.reset.tpl.html
+++ /dev/null
@@ -1,40 +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>
- <h5 class="modal-title">Reset User Password</h5>
-</div>
-<div class="modal-body">
- <form name="resetPasswordForm" class="form-horizontal" role="form" novalidate>
- <div class="form-group" ng-class="{'has-error': hasError(resetPasswordForm.email), 'has-feedback': hasError(resetPasswordForm.email)}">
- <label for="email" class="col-sm-2 control-label">Email:</label>
- <div class="col-sm-10">
- <input id="email" name="email" type="email" class="form-control" placeholder="Enter your email" ng-model="userData.email" required>
- <small class="input-error" ng-show="hasPropertyError(resetPasswordForm.email, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(resetPasswordForm.email, 'email')">Invalid email</small>
- <span ng-show="hasError(resetPasswordForm.email)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- </form>
-</div>
-<div class="modal-footer">
- <button class="btn btn-default" ng-click="cancel()">Cancel</button>
- <button class="btn btn-primary" ng-disabled="resetPasswordForm.$pristine || resetPasswordForm.$invalid" ng-click="reset(userData.email)">Reset</button>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/index.js b/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/index.js
deleted file mode 100644
index d86c394..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/dialog/reset/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.dialog.reset', [])
- .controller('DialogResetController', require('./DialogResetController'));