workspace_menu_entries.py 782B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # coding=utf-8
  2. class WorkspaceMenuEntry(object):
  3. """
  4. Application class with data needed for frontend
  5. """
  6. def __init__(
  7. self,
  8. label: str,
  9. slug: str,
  10. icon: str,
  11. hexcolor: str,
  12. route: str,
  13. ) -> None:
  14. self.slug = slug
  15. self.label = label
  16. self.route = route
  17. self.hexcolor = hexcolor
  18. self.icon = icon
  19. dashboard_menu_entry = WorkspaceMenuEntry(
  20. slug='dashboard',
  21. label='Dashboard',
  22. route='/#/workspaces/{workspace_id}/dashboard',
  23. hexcolor='#252525',
  24. icon="",
  25. )
  26. all_content_menu_entry = WorkspaceMenuEntry(
  27. slug="contents/all",
  28. label="Tous les contenus",
  29. route="/#/workspaces/{workspace_id}/contents",
  30. hexcolor="#fdfdfd",
  31. icon="",
  32. )