Fixes: 1) Standardize `new_window` settings across `topmenu_links`; Extra: 1) Reformat and improve readability of `topmenu_links` definitions; 2) Minor code style adjustments.
84 lines
2.6 KiB
Python
84 lines
2.6 KiB
Python
from django.utils.translation import gettext_lazy as _
|
|
|
|
from evibes.settings.base import EVIBES_VERSION, BASE_DOMAIN, STOREFRONT_DOMAIN
|
|
from evibes.settings.constance import CONSTANCE_CONFIG
|
|
|
|
JAZZMIN_SETTINGS = {
|
|
"site_title": f"{CONSTANCE_CONFIG.get('PROJECT_NAME')[0]} Admin", # type: ignore [index]
|
|
"site_header": str(CONSTANCE_CONFIG.get("PROJECT_NAME")[0]), # type: ignore [index]
|
|
"site_brand": str(CONSTANCE_CONFIG.get("PROJECT_NAME")[0]), # type: ignore [index]
|
|
"site_logo": "logo.png",
|
|
"login_logo": "logo.png",
|
|
"login_logo_dark": "logo.png",
|
|
"site_logo_classes": "",
|
|
"site_icon": "favicon.ico",
|
|
"welcome_sign": "Whoa! Only admins allowed here!",
|
|
"copyright": f"eVibes {EVIBES_VERSION} by Wiseless",
|
|
"search_model": None,
|
|
"user_avatar": "avatar",
|
|
"topmenu_links": [
|
|
{
|
|
"name": _("Home"),
|
|
"url": "admin:index",
|
|
"new_window": False,
|
|
},
|
|
{
|
|
"name": _("Storefront"),
|
|
"url": f"https://{STOREFRONT_DOMAIN}",
|
|
"new_window": False,
|
|
},
|
|
{
|
|
"name": "GraphQL Docs",
|
|
"url": "graphql-platform",
|
|
"new_window": False,
|
|
},
|
|
{
|
|
"name": "Swagger",
|
|
"url": "swagger-ui-platform",
|
|
"new_window": False,
|
|
},
|
|
{
|
|
"name": "Redoc",
|
|
"url": "redoc-ui-platform",
|
|
"new_window": False,
|
|
},
|
|
{
|
|
"name": _("Taskboard"),
|
|
"url": "https://plane.wiseless.xyz/spaces/issues/dd33cb0ab9b04ef08a10f7eefae6d90c/?board=kanban",
|
|
"new_window": True,
|
|
},
|
|
{
|
|
"name": "GitLab",
|
|
"url": "https://gitlab.com/wiseless/evibes",
|
|
"new_window": True,
|
|
},
|
|
{
|
|
"name": _("Support"),
|
|
"url": "https://t.me/fureunoir",
|
|
"new_window": True,
|
|
},
|
|
],
|
|
"usermenu_links": [],
|
|
"show_sidebar": True,
|
|
"navigation_expanded": True,
|
|
"hide_apps": ["django_celery_results", ""],
|
|
"hide_models": [],
|
|
"order_with_respect_to": ["vibes_auth", "core", "payments", "blog"],
|
|
"icons": {
|
|
"vibes_auth": "fas fa-users-cog",
|
|
"vibes_auth.user": "fas fa-user",
|
|
"vibes_auth.Group": "fas fa-users",
|
|
},
|
|
"default_icon_parents": "fas fa-chevron-circle-right",
|
|
"default_icon_children": "fas fa-circle",
|
|
"related_modal_active": False,
|
|
"use_google_fonts_cdn": True,
|
|
"show_ui_builder": True,
|
|
"changeform_format": "horizontal_tabs",
|
|
"language_chooser": True,
|
|
}
|
|
|
|
JAZZMIN_UI_TWEAKS = {
|
|
"theme": "flatly",
|
|
"dark_mode_theme": "darkly",
|
|
}
|