Features: 1) Update topmenu_links configuration to add "GraphQL Docs," "Swagger," and "Redoc" with platform-specific URLs; 2) Change default Jazzmin themes to flatly and darkly;
Fixes: 1) Standardize `new_window` settings across `topmenu_links`; Extra: 1) Reformat and improve readability of `topmenu_links` definitions; 2) Minor code style adjustments.
This commit is contained in:
parent
bf6b9f4424
commit
da68858fa5
1 changed files with 33 additions and 12 deletions
|
|
@ -17,25 +17,46 @@ JAZZMIN_SETTINGS = {
|
||||||
"search_model": None,
|
"search_model": None,
|
||||||
"user_avatar": "avatar",
|
"user_avatar": "avatar",
|
||||||
"topmenu_links": [
|
"topmenu_links": [
|
||||||
{"name": _("Home"), "url": "admin:index"},
|
|
||||||
{"name": _("Storefront"), "url": f"https://{STOREFRONT_DOMAIN}", "new_window": True}, # type: ignore [index]
|
|
||||||
{
|
{
|
||||||
"name": "GraphQL Docs",
|
"name": _("Home"),
|
||||||
"url": f"https://api.{BASE_DOMAIN}/graphql", # type: ignore [index]
|
"url": "admin:index",
|
||||||
"new_window": True,
|
"new_window": False,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "REST Docs",
|
"name": _("Storefront"),
|
||||||
"url": f"https://api.{BASE_DOMAIN}/docs/swagger", # type: ignore [index]
|
"url": f"https://{STOREFRONT_DOMAIN}",
|
||||||
"new_window": True,
|
"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"),
|
"name": _("Taskboard"),
|
||||||
"url": "https://plane.wiseless.xyz/spaces/issues/dd33cb0ab9b04ef08a10f7eefae6d90c/?board=kanban",
|
"url": "https://plane.wiseless.xyz/spaces/issues/dd33cb0ab9b04ef08a10f7eefae6d90c/?board=kanban",
|
||||||
"new_window": True,
|
"new_window": True,
|
||||||
},
|
},
|
||||||
{"name": "GitLab", "url": "https://gitlab.com/wiseless/evibes", "new_window": True},
|
{
|
||||||
{"name": _("Support"), "url": "https://t.me/fureunoir", "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": [],
|
"usermenu_links": [],
|
||||||
"show_sidebar": True,
|
"show_sidebar": True,
|
||||||
|
|
@ -58,6 +79,6 @@ JAZZMIN_SETTINGS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
JAZZMIN_UI_TWEAKS = {
|
JAZZMIN_UI_TWEAKS = {
|
||||||
"theme": "cyborg",
|
"theme": "flatly",
|
||||||
"dark_mode_theme": "cyborg",
|
"dark_mode_theme": "darkly",
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue