Enable auto discovery

This patch enables auto discovery of static resources so that we no longer
have to manually type them in. This mechanism enables faster development
and is less error prone.

Change-Id: I3c6fbf8f73e6e23ca4c20ef325aee9a4fb486a4a
This commit is contained in:
Thai Tran 2016-02-17 12:27:57 -08:00
parent 4f72ca919b
commit f4734ad209
3 changed files with 19 additions and 32 deletions

View File

@ -14,9 +14,5 @@
import pbr.version
# Register the REST API URLs so they can be called from the JavaScript files
import zaqar_ui.api.rest # noqa
__version__ = pbr.version.VersionInfo(
'neutron_lbaas_dashboard').version_string()

View File

@ -0,0 +1,16 @@
# Copyright 2016 IBM Corp.
#
# 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.
# Register the REST API URLs so they can be called from the JavaScript files
import zaqar_ui.api.rest # noqa

View File

@ -17,33 +17,8 @@ PANEL_GROUP = 'messaging'
PANEL_DASHBOARD = 'project'
ADD_PANEL = ('zaqar_ui.content.queues.panel.Queues')
# ADD_INSTALLED_APPS enables using html templates from within the plugin
ADD_INSTALLED_APPS = ['zaqar_ui']
ADD_ANGULAR_MODULES = ['horizon.dashboard.project.queues']
ADD_SCSS_FILES = ['dashboard/project/queues/queues.scss']
ADD_ANGULAR_MODULES = [
'horizon.dashboard.project.queues'
]
ADD_JS_FILES = [
'app/core/openstack-service-api/zaqar.service.js',
'dashboard/project/queues/queues.module.js',
'dashboard/project/queues/actions/create.action.service.js',
'dashboard/project/queues/actions/create.workflow.service.js',
'dashboard/project/queues/steps/queue-details/queue-details.controller.js',
'dashboard/project/queues/steps/queue-metadata/'
'queue-metadata.controller.js',
'dashboard/project/queues/table/batch-actions.service.js',
'dashboard/project/queues/table/table.controller.js',
]
ADD_JS_SPEC_FILES = [
'dashboard/project/queues/queues.module.spec.js',
'dashboard/project/queues/table/table.controller.spec.js',
]
ADD_SCSS_FILES = [
'dashboard/project/queues/queues.scss'
]
# AUTO_DISCOVER_STATIC_FILES = True
AUTO_DISCOVER_STATIC_FILES = True