Dashboard ReOrg - hz.dashboard --> horizon.dashboard
Rename all uses of 'hz.dashboard' in Angular code to 'horizon.dashboard'. There are two main reasons for this change: 1. This is consistent with the pattern used for the horizon framework (horizon.framework) 2. This aligns with the directory structure. 'horizon' is a directory name and maps to /horizon and indicates that the component is part of the horizon project. The abbreviation 'hz' is now only used for legacy code. Change-Id: Ic22d6b0819ed62b3af2656fcb167b08ac55857c2 Partial-Bug: 1478717
This commit is contained in:
parent
87e386aea8
commit
d0182f2493
@ -18,16 +18,16 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @ngdoc hz.dashboard.identity
|
||||
* @ngdoc horizon.dashboard.identity
|
||||
* @ngModule
|
||||
*
|
||||
* @description
|
||||
* Dashboard module to host various identity panels.
|
||||
*/
|
||||
angular
|
||||
.module('hz.dashboard.identity', [
|
||||
'hz.dashboard.identity.users',
|
||||
'hz.dashboard.identity.projects'
|
||||
.module('horizon.dashboard.identity', [
|
||||
'horizon.dashboard.identity.users',
|
||||
'horizon.dashboard.identity.projects'
|
||||
])
|
||||
.config(config);
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
function config($provide, $windowProvider) {
|
||||
var path = $windowProvider.$get().STATIC_URL + 'dashboard/identity/';
|
||||
$provide.constant('hz.dashboard.identity.basePath', path);
|
||||
$provide.constant('horizon.dashboard.identity.basePath', path);
|
||||
}
|
||||
|
||||
})();
|
||||
|
@ -16,9 +16,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.dashboard.identity', function() {
|
||||
describe('horizon.dashboard.identity', function() {
|
||||
it('should exist', function() {
|
||||
expect(angular.module('hz.dashboard.identity')).toBeDefined();
|
||||
expect(angular.module('horizon.dashboard.identity')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -16,21 +16,21 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @ngdoc hz.dashboard.identity.projects
|
||||
* @ngdoc horizon.dashboard.identity.projects
|
||||
* @ng-module
|
||||
* @description
|
||||
* Provides all of the services and widgets required
|
||||
* to support and display the identity projects.
|
||||
*/
|
||||
angular
|
||||
.module('hz.dashboard.identity.projects', [])
|
||||
.module('horizon.dashboard.identity.projects', [])
|
||||
.config(config);
|
||||
|
||||
config.$inject = ['$provide', '$windowProvider'];
|
||||
|
||||
function config($provide, $windowProvider) {
|
||||
var path = $windowProvider.$get().STATIC_URL + 'dashboard/identity/projects/';
|
||||
$provide.constant('hz.dashboard.identity.projects.basePath', path);
|
||||
$provide.constant('horizon.dashboard.identity.projects.basePath', path);
|
||||
}
|
||||
|
||||
})();
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
describe('Identity projects module', function() {
|
||||
it('should exist', function() {
|
||||
expect(angular.module('hz.dashboard.identity.projects')).toBeDefined();
|
||||
expect(angular.module('horizon.dashboard.identity.projects')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -26,11 +26,11 @@
|
||||
* Serve as the focal point for table actions.
|
||||
*/
|
||||
angular
|
||||
.module('hz.dashboard.identity.users')
|
||||
.module('horizon.dashboard.identity.users')
|
||||
.controller('identityUsersTableController', identityUsersTableController);
|
||||
|
||||
identityUsersTableController.$inject = [
|
||||
'hz.dashboard.identity.basePath',
|
||||
'horizon.dashboard.identity.basePath',
|
||||
'horizon.framework.widgets.toast.service',
|
||||
'horizon.framework.util.i18n.gettext',
|
||||
'horizon.app.core.openstack-service-api.policy',
|
||||
|
@ -49,9 +49,9 @@
|
||||
beforeEach(module('horizon.framework.widgets.toast'));
|
||||
beforeEach(module('horizon.app.core.openstack-service-api'));
|
||||
|
||||
beforeEach(module('hz.dashboard'));
|
||||
beforeEach(module('hz.dashboard.identity'));
|
||||
beforeEach(module('hz.dashboard.identity.users'));
|
||||
beforeEach(module('horizon.dashboard'));
|
||||
beforeEach(module('horizon.dashboard.identity'));
|
||||
beforeEach(module('horizon.dashboard.identity.users'));
|
||||
beforeEach(inject(function($injector) {
|
||||
|
||||
toastService = $injector.get('horizon.framework.widgets.toast.service');
|
||||
|
@ -18,7 +18,7 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @ngdoc hz.dashboard.identity.users
|
||||
* @ngdoc horizon.dashboard.identity.users
|
||||
* @ngModule
|
||||
*
|
||||
* @description
|
||||
@ -26,6 +26,6 @@
|
||||
* to support and display the identity users panel.
|
||||
*/
|
||||
angular
|
||||
.module('hz.dashboard.identity.users', []);
|
||||
.module('horizon.dashboard.identity.users', []);
|
||||
|
||||
})();
|
||||
|
@ -16,9 +16,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.dashboard.identity.users', function() {
|
||||
describe('horizon.dashboard.identity.users', function() {
|
||||
it('should exist', function() {
|
||||
expect(angular.module('hz.dashboard.identity.users')).toBeDefined();
|
||||
expect(angular.module('horizon.dashboard.identity.users')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -19,14 +19,14 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @ngname hz.dashboard.project.images
|
||||
* @ngname horizon.dashboard.project.images
|
||||
*
|
||||
* @description
|
||||
* Provides the services and widgets required
|
||||
* to support and display the project images panel.
|
||||
*/
|
||||
angular
|
||||
.module('hz.dashboard.project.images', [])
|
||||
.module('horizon.dashboard.project.images', [])
|
||||
.config(config);
|
||||
|
||||
config.$inject = [
|
||||
@ -35,12 +35,12 @@
|
||||
];
|
||||
|
||||
/**
|
||||
* @name hz.dashboard.project.images.basePath
|
||||
* @name horizon.dashboard.project.images.basePath
|
||||
* @description Base path for the project dashboard
|
||||
*/
|
||||
function config($provide, $windowProvider) {
|
||||
var path = $windowProvider.$get().STATIC_URL + 'dashboard/project/images/';
|
||||
$provide.constant('hz.dashboard.project.images.basePath', path);
|
||||
$provide.constant('horizon.dashboard.project.images.basePath', path);
|
||||
}
|
||||
|
||||
})();
|
||||
|
@ -16,20 +16,20 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.dashboard.project.images', function() {
|
||||
describe('horizon.dashboard.project.images', function() {
|
||||
it('should exist', function() {
|
||||
expect(angular.module('hz.dashboard.project.images')).toBeDefined();
|
||||
expect(angular.module('horizon.dashboard.project.images')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('hz.dashboard.project.images.basePath constant', function () {
|
||||
describe('horizon.dashboard.project.images.basePath constant', function () {
|
||||
var imagesBasePath, staticUrl;
|
||||
|
||||
beforeEach(module('hz.dashboard'));
|
||||
beforeEach(module('horizon.dashboard'));
|
||||
beforeEach(module('horizon.dashboard.project'));
|
||||
beforeEach(module('hz.dashboard.project.images'));
|
||||
beforeEach(module('horizon.dashboard.project.images'));
|
||||
beforeEach(inject(function ($injector) {
|
||||
imagesBasePath = $injector.get('hz.dashboard.project.images.basePath');
|
||||
imagesBasePath = $injector.get('horizon.dashboard.project.images.basePath');
|
||||
staticUrl = $injector.get('$window').STATIC_URL;
|
||||
}));
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
*/
|
||||
angular
|
||||
.module('horizon.dashboard.project', [
|
||||
'hz.dashboard.project.images',
|
||||
'horizon.dashboard.project.images',
|
||||
'horizon.dashboard.project.workflow'
|
||||
])
|
||||
.config(config);
|
||||
|
@ -25,7 +25,7 @@
|
||||
describe('horizon.dashboard.project.basePath constant', function () {
|
||||
var projectBasePath, staticUrl;
|
||||
|
||||
beforeEach(module('hz.dashboard'));
|
||||
beforeEach(module('horizon.dashboard'));
|
||||
beforeEach(module('horizon.dashboard.project'));
|
||||
beforeEach(inject(function ($injector) {
|
||||
projectBasePath = $injector.get('horizon.dashboard.project.basePath');
|
||||
|
@ -22,7 +22,7 @@
|
||||
beforeEach(module('horizon.app.core'));
|
||||
beforeEach(module('horizon.dashboard.project'));
|
||||
beforeEach(module(function($provide) {
|
||||
// Need to mock hz.framework.workflow from 'horizon'
|
||||
// Need to mock horizon.framework.workflow from 'horizon'
|
||||
var workflow = function(spec, decorators) {
|
||||
angular.forEach(decorators, function(decorator) {
|
||||
decorator(spec);
|
||||
|
@ -20,7 +20,7 @@ ADD_EXCEPTIONS = {}
|
||||
ADD_INSTALLED_APPS = ['openstack_dashboard.dashboards.identity']
|
||||
|
||||
ADD_ANGULAR_MODULES = [
|
||||
'hz.dashboard.identity',
|
||||
'horizon.dashboard.identity',
|
||||
]
|
||||
|
||||
AUTO_DISCOVER_STATIC_FILES = True
|
||||
|
@ -36,7 +36,7 @@
|
||||
'horizon.app.core',
|
||||
'horizon.app.tech-debt',
|
||||
'horizon.auth',
|
||||
'hz.dashboard',
|
||||
'horizon.dashboard',
|
||||
'horizon.framework'
|
||||
];
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('hz.dashboard', []);
|
||||
.module('horizon.dashboard', []);
|
||||
|
||||
})();
|
||||
|
@ -16,9 +16,9 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
describe('hz.dashboard', function () {
|
||||
describe('horizon.dashboard', function () {
|
||||
it('should be defined', function () {
|
||||
expect(angular.module('hz.dashboard')).toBeDefined();
|
||||
expect(angular.module('horizon.dashboard')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user