Dashboard ReOrg - Create app/core directory
This patch creates the app/core directory. This will be the home for code that is application specific, but needed by multiple dashboards, such as the API files. Co-Authored-By: Shaoquan Chen <sean.chen2@hp.com> Change-Id: I93386a3b3bafe65f51eee72ff93283f1688de016 Partially-Bug: #1458697
This commit is contained in:
parent
e7b4850cec
commit
ae9f5ce4b0
|
@ -309,6 +309,11 @@ fd.populate_horizon_config(
|
|||
os.path.join(ROOT_PATH, 'static/'),
|
||||
sub_path='openstack-service-api/'
|
||||
)
|
||||
fd.populate_horizon_config(
|
||||
HORIZON_CONFIG,
|
||||
os.path.join(ROOT_PATH, 'static/'),
|
||||
sub_path='app/core/'
|
||||
)
|
||||
|
||||
# Load the pluggable dashboard settings
|
||||
import openstack_dashboard.enabled
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
var horizonBuiltInModules = [
|
||||
'horizon.auth',
|
||||
'horizon.app.core',
|
||||
'hz.dashboard',
|
||||
'horizon.framework',
|
||||
'horizon.openstack-service-api'
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* (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.core
|
||||
* @description
|
||||
*
|
||||
* # horizon.app.core
|
||||
*
|
||||
* This module hosts modules of core functionality and services that supports
|
||||
* components added to Horizon via its plugin mechanism.
|
||||
*/
|
||||
angular
|
||||
.module('horizon.app.core', []);
|
||||
|
||||
})();
|
|
@ -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('horizon.app.core', function () {
|
||||
it('should be defined', function () {
|
||||
expect(angular.module('horizon.app.core')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
Loading…
Reference in New Issue