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:
parent
66485be81a
commit
511634e9a8
@ -49,9 +49,6 @@ ADD_JS_FILES = [
|
|||||||
LAUNCH_INST + 'configuration/configuration.controller.js',
|
LAUNCH_INST + 'configuration/configuration.controller.js',
|
||||||
LAUNCH_INST + 'configuration/configuration-help.controller.js',
|
LAUNCH_INST + 'configuration/configuration-help.controller.js',
|
||||||
LAUNCH_INST + 'configuration/load-edit.directive.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 = [
|
ADD_JS_SPEC_FILES = [
|
||||||
|
@ -21,7 +21,4 @@ ADD_INSTALLED_APPS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
ADD_JS_FILES = [
|
ADD_JS_FILES = [
|
||||||
'dashboard/tech-debt/tech-debt.module.js',
|
|
||||||
'dashboard/tech-debt/namespace-ctrl.js',
|
|
||||||
'dashboard/tech-debt/image-form-ctrl.js',
|
|
||||||
]
|
]
|
||||||
|
@ -31,8 +31,9 @@
|
|||||||
* and modules from `openstack_dashboard` application core components.
|
* and modules from `openstack_dashboard` application core components.
|
||||||
*/
|
*/
|
||||||
var horizonBuiltInModules = [
|
var horizonBuiltInModules = [
|
||||||
'horizon.auth',
|
|
||||||
'horizon.app.core',
|
'horizon.app.core',
|
||||||
|
'horizon.app.tech-debt',
|
||||||
|
'horizon.auth',
|
||||||
'hz.dashboard',
|
'hz.dashboard',
|
||||||
'horizon.framework',
|
'horizon.framework',
|
||||||
'horizon.openstack-service-api'
|
'horizon.openstack-service-api'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
angular
|
angular
|
||||||
.module('hz.dashboard.tech-debt')
|
.module('horizon.app.tech-debt')
|
||||||
.controller('ImageFormCtrl', ['$scope', function ($scope) {
|
.controller('ImageFormCtrl', ['$scope', function ($scope) {
|
||||||
$scope.selectImageFormat = function (path) {
|
$scope.selectImageFormat = function (path) {
|
||||||
if (!path) { return; }
|
if (!path) { return; }
|
@ -1,7 +1,7 @@
|
|||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
angular
|
angular
|
||||||
.module('hz.dashboard.tech-debt')
|
.module('horizon.app.tech-debt')
|
||||||
.controller('hzNamespaceResourceTypeFormController', function($scope, $window) {
|
.controller('hzNamespaceResourceTypeFormController', function($scope, $window) {
|
||||||
$scope.resource_types = $window.resource_types;
|
$scope.resource_types = $window.resource_types;
|
||||||
|
|
35
openstack_dashboard/static/app/tech-debt/tech-debt.module.js
Normal file
35
openstack_dashboard/static/app/tech-debt/tech-debt.module.js
Normal 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',[]);
|
||||||
|
|
||||||
|
})();
|
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
angular
|
angular
|
||||||
.module('hz.dashboard', [
|
.module('hz.dashboard', [
|
||||||
'hz.dashboard.launch-instance',
|
'hz.dashboard.launch-instance'
|
||||||
'hz.dashboard.tech-debt'
|
|
||||||
])
|
])
|
||||||
.config(config);
|
.config(config);
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
angular.module('hz.dashboard.tech-debt', []);
|
|
||||||
|
|
||||||
})();
|
|
Loading…
Reference in New Issue
Block a user