Fixes: 1) Import missing Celery beat admin classes and forms. Extra: 1) Update package metadata with latest wheel and sdist URLs; 2) Align import statements with new structure.
114 lines
3.7 KiB
Python
114 lines
3.7 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, SUPPORT_CONTACT, TASKBOARD_URL
|
|
|
|
UNFOLD = {
|
|
"SITE_TITLE": f"{PROJECT_NAME} Dashboard",
|
|
"SITE_HEADER": PROJECT_NAME,
|
|
"SITE_LOGO": "favicon.png",
|
|
"SITE_ICON": "favicon.ico",
|
|
"SHOW_LANGUAGES": True,
|
|
"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,
|
|
"navigation": [
|
|
{
|
|
"title": _("Menu"),
|
|
"separator": True,
|
|
"collapsible": True,
|
|
"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,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
# "TABS": [
|
|
# {
|
|
# "models": [
|
|
# "core.product",
|
|
# ],
|
|
# "items": [
|
|
# {
|
|
# "title": _("Your custom title"),
|
|
# "link": reverse_lazy("admin:core_product_changelist"),
|
|
# },
|
|
# ],
|
|
# },
|
|
# ],
|
|
}
|