Improve menu app

This commit is contained in:
Erik Kalkoken
2024-02-17 07:56:38 +00:00
committed by Ariel Rin
parent 2a762df9b3
commit 62c936f1c0
50 changed files with 2185 additions and 424 deletions

View File

@@ -0,0 +1,18 @@
"""Global constants for the menu app."""
from django.db import models
from django.utils.translation import gettext_lazy as _
DEFAULT_FOLDER_ICON_CLASSES = "fa-solid fa-folder" # TODO: Make this a setting?
"""Default icon class for folders."""
DEFAULT_MENU_ITEM_ORDER = 9999
"""Default order for any menu item."""
class MenuItemType(models.TextChoices):
"""The type of a menu item."""
APP = "app", _("app")
FOLDER = "folder", _("folder")
LINK = "link", _("link")