Dashboard ReOrg - Move tech-debt into app/

This patch relocates the 'tech-debt' directory because
it is application specific, but not a dashboard, nor a part of core
logic of the application.

Co-Authored-By: Tyr Johanson <tyr@hp.com>
Co-Authored-By: Shaoquan Chen <sean.chen2@hp.com>

Change-Id: I141782f62ac1527e82666786b5af2aa790efa7c4
Partial-Bug: #1478717
This commit is contained in:
Shaoquan Chen 2015-07-09 15:20:57 -07:00 committed by Tyr Johanson
parent 66485be81a
commit 511634e9a8
8 changed files with 40 additions and 17 deletions

View File

@ -49,9 +49,6 @@ ADD_JS_FILES = [
LAUNCH_INST + 'configuration/configuration.controller.js',
LAUNCH_INST + 'configuration/configuration-help.controller.js',
LAUNCH_INST + 'configuration/load-edit.directive.js',
'dashboard/tech-debt/tech-debt.module.js',
'dashboard/tech-debt/image-form-ctrl.js',
]
ADD_JS_SPEC_FILES = [

View File

@ -21,7 +21,4 @@ ADD_INSTALLED_APPS = [
]
ADD_JS_FILES = [
'dashboard/tech-debt/tech-debt.module.js',
'dashboard/tech-debt/namespace-ctrl.js',
'dashboard/tech-debt/image-form-ctrl.js',
]

View File

@ -31,8 +31,9 @@
* and modules from `openstack_dashboard` application core components.
*/
var horizonBuiltInModules = [
'horizon.auth',
'horizon.app.core',
'horizon.app.tech-debt',
'horizon.auth',
'hz.dashboard',
'horizon.framework',
'horizon.openstack-service-api'

View File

@ -1,7 +1,7 @@
(function () {
'use strict';
angular
.module('hz.dashboard.tech-debt')
.module('horizon.app.tech-debt')
.controller('ImageFormCtrl', ['$scope', function ($scope) {
$scope.selectImageFormat = function (path) {
if (!path) { return; }

View File

@ -1,7 +1,7 @@
(function () {
'use strict';
angular
.module('hz.dashboard.tech-debt')
.module('horizon.app.tech-debt')
.controller('hzNamespaceResourceTypeFormController', function($scope, $window) {
$scope.resource_types = $window.resource_types;

View File

@ -0,0 +1,35 @@
/**
* (c) Copyright 2015 Hewlett-Packard Development Company, L.P.
*
* 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.
*/
(function () {
'use strict';
/**
* @ngdoc overview
* @name horizon.app.tech-debt
* @description
*
* # horizon.app.tech-debt
*
* A collection of Angular controllers that existed before Angular work was
* started on a large scale. These will go away over time as files are
* refactored to meet style guidelines and are moved into the appropriate
* dashboard code area.
*/
angular
.module('horizon.app.tech-debt',[]);
})();

View File

@ -3,8 +3,7 @@
angular
.module('hz.dashboard', [
'hz.dashboard.launch-instance',
'hz.dashboard.tech-debt'
'hz.dashboard.launch-instance'
])
.config(config);

View File

@ -1,6 +0,0 @@
(function () {
'use strict';
angular.module('hz.dashboard.tech-debt', []);
})();