Add venus menu.

Add enabled directory to add menu.

Change-Id: If339293bf804a0556bc2d6479af3114a4084ca07
This commit is contained in:
baiziyu 2021-10-23 16:16:45 +08:00
parent 13525f8d88
commit 47ca1ffcab
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,8 @@
from django.utils.translation import ugettext_lazy as _
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
PANEL_GROUP = 'venus'
# The display name of the PANEL_GROUP. Required.
PANEL_GROUP_NAME = _('Venus')
# The slug of the dashboard the PANEL_GROUP associated with. Required.
PANEL_GROUP_DASHBOARD = 'admin'

View File

@ -0,0 +1,17 @@
# The slug of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'log_search'
# The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'venus'
# Python panel class of the PANEL to be added.
ADD_PANEL = 'venus_dashboard.log_search.panel.LogSearch'
ADD_INSTALLED_APPS = ['venus_dashboard', 'venus_dashboard.log_search']
ADD_ANGULAR_MODULES = ['horizon.dashboard.admin.venus']
# ADD_JS_FILES = ['dashboard/admin/venus.module.js']
AUTO_DISCOVER_STATIC_FILES = True