Fixes: 1) Remove commented-out TABS config; 2) Set collapsible to False for menu; Extra: 1) Add SITE_SYMBOL and SHOW_VIEW_ON_SITE; 2) Update SITE_URL to use STOREFRONT_DOMAIN; 3) Minor config cleanup.
105 lines
3.5 KiB
Python
105 lines
3.5 KiB
Python
from django.templatetags.static import static
|
|
from django.urls import reverse_lazy
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from evibes.settings.base import PROJECT_NAME, STOREFRONT_DOMAIN, SUPPORT_CONTACT, TASKBOARD_URL
|
|
|
|
UNFOLD = {
|
|
"SITE_URL": STOREFRONT_DOMAIN,
|
|
"SITE_TITLE": f"{PROJECT_NAME} Dashboard",
|
|
"SITE_HEADER": PROJECT_NAME,
|
|
"SITE_LOGO": "favicon.png",
|
|
"SITE_ICON": "favicon.ico",
|
|
"SITE_SYMBOL": "money",
|
|
"SHOW_LANGUAGES": True,
|
|
"SHOW_VIEW_ON_SITE": False,
|
|
"LOGIN": {
|
|
"image": lambda request: static("favicon.png"),
|
|
},
|
|
"COMMAND": {
|
|
"search_models": True,
|
|
"show_history": True,
|
|
},
|
|
"EXTENSIONS": {
|
|
"modeltranslation": {
|
|
"flags": {
|
|
"ar-ar": "🇸🇦",
|
|
"cs-cz": "🇨🇿",
|
|
"da-dk": "🇩🇰",
|
|
"de-de": "🇩🇪",
|
|
"en-gb": "🇬🇧",
|
|
"en-us": "🇺🇸",
|
|
"es-es": "🇪🇸",
|
|
"fa-ir": "🇮🇷",
|
|
"fr-fr": "🇫🇷",
|
|
"he-il": "🇮🇱",
|
|
"hi-in": "🇮🇳",
|
|
"hr-hr": "🇭🇷",
|
|
"id-id": "🇮🇩",
|
|
"it-it": "🇮🇹",
|
|
"ja-jp": "🇯🇵",
|
|
"kk-kz": "🇰🇿",
|
|
"ko-kr": "🇰🇷",
|
|
"nl-nl": "🇳🇱",
|
|
"no-no": "🇳🇴",
|
|
"pl-pl": "🇵🇱",
|
|
"pt-br": "🇧🇷",
|
|
"ro-ro": "🇷🇴",
|
|
"ru-ru": "🇷🇺",
|
|
"sv-se": "🇸🇪",
|
|
"th-th": "🇹🇭",
|
|
"tr-tr": "🇹🇷",
|
|
"vi-vn": "🇻🇳",
|
|
"zh-hans": "🇨🇳",
|
|
},
|
|
},
|
|
},
|
|
"SIDEBAR": {
|
|
"show_search": True,
|
|
"show_all_applications": True,
|
|
"navigation": [
|
|
{
|
|
"title": _("Menu"),
|
|
"separator": True,
|
|
"collapsible": False,
|
|
"items": [
|
|
{
|
|
"title": _("Dashboard"),
|
|
"icon": "dashboard",
|
|
"link": reverse_lazy("admin:index"),
|
|
},
|
|
{
|
|
"title": _("Health"),
|
|
"icon": "health_metrics",
|
|
"link": reverse_lazy("health_check:health_check_home"),
|
|
},
|
|
{
|
|
"title": _("Swagger"),
|
|
"icon": "integration_instructions",
|
|
"link": reverse_lazy("swagger-ui-platform"),
|
|
},
|
|
{
|
|
"title": _("Redoc"),
|
|
"icon": "integration_instructions",
|
|
"link": reverse_lazy("redoc-ui-platform"),
|
|
},
|
|
{
|
|
"title": _("GraphQL"),
|
|
"icon": "graph_5",
|
|
"link": reverse_lazy("graphql-platform"),
|
|
},
|
|
{
|
|
"title": _("Taskboard"),
|
|
"icon": "view_kanban",
|
|
"link": TASKBOARD_URL,
|
|
},
|
|
{
|
|
"title": _("Support"),
|
|
"icon": "contact_support",
|
|
"link": SUPPORT_CONTACT,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
}
|