Dashboard ReOrg - Create 'project' module
Starting re-organization of the Launch Instance angular code to move it into the correct place for plugins, namely openstack_dashboard/dashboards/project/ This patch creates a static directory for the angular files in the 'project' dashboard and will be the future home for launch instance. This patch attempts to divide https://review.openstack.org/#/c/191592 into smaller, more easily reviewable pieces. Co-Authored-By: Shaoquan Chen <sean.chen2@hp.com> Change-Id: I3804a55a339a876d14cf3739dc9f0278db03acf5 Partially-Implements: blueprint angularize-instances-table
This commit is contained in:
parent
653f85444f
commit
f82e407547
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* (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 hz.dashboard.project
|
||||
* @ngModule
|
||||
* @description
|
||||
* Dashboard module to host project panels.
|
||||
*/
|
||||
angular
|
||||
.module('hz.dashboard.project', []);
|
||||
|
||||
})();
|
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* (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';
|
||||
|
||||
describe('hz.dashboard.project', function () {
|
||||
it('should be defined', function () {
|
||||
expect(angular.module('hz.dashboard.project')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
@ -0,0 +1 @@
|
||||
|
@ -23,6 +23,8 @@ ADD_INSTALLED_APPS = ['openstack_dashboard.dashboards.project']
|
||||
|
||||
ADD_ANGULAR_MODULES = ['hz.dashboard']
|
||||
|
||||
AUTO_DISCOVER_STATIC_FILES = True
|
||||
|
||||
LAUNCH_INST = 'dashboard/launch-instance/'
|
||||
|
||||
ADD_JS_FILES = [
|
||||
@ -70,3 +72,7 @@ ADD_JS_SPEC_FILES = [
|
||||
LAUNCH_INST + 'keypair/keypair.spec.js',
|
||||
LAUNCH_INST + 'configuration/configuration.spec.js',
|
||||
]
|
||||
|
||||
ADD_SCSS_FILES = [
|
||||
'dashboard/project/project.scss'
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user