diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.js b/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.js new file mode 100644 index 0000000000..c2c03d47d2 --- /dev/null +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.js @@ -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', []); + +})(); diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.spec.js b/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.spec.js new file mode 100644 index 0000000000..77008c7529 --- /dev/null +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.spec.js @@ -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(); + }); + }); + +})(); diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/project.scss b/openstack_dashboard/dashboards/project/static/dashboard/project/project.scss new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/project.scss @@ -0,0 +1 @@ + diff --git a/openstack_dashboard/enabled/_10_project.py b/openstack_dashboard/enabled/_10_project.py index fb2e7d10e0..f5e909784b 100644 --- a/openstack_dashboard/enabled/_10_project.py +++ b/openstack_dashboard/enabled/_10_project.py @@ -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' +]