2024-11-19 05:56:52 +00:00
|
|
|
from frontend.classes import NavSection, NavItem, NavCollapse, DashboardSection
|
2021-10-24 15:35:52 +00:00
|
|
|
|
|
|
|
from django.urls import reverse_lazy
|
2024-11-20 06:41:50 +00:00
|
|
|
from django.templatetags.static import static
|
2021-10-24 15:35:52 +00:00
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
# Sidebar navigation items
|
|
|
|
|
2021-10-24 15:35:52 +00:00
|
|
|
mood_section = NavSection("Mood")
|
|
|
|
|
2024-11-19 05:56:52 +00:00
|
|
|
mood_settings_collapse = NavCollapse("Settings", icon="fas fa-fw fa-cog")
|
|
|
|
|
|
|
|
mood_status_list = NavItem("Status List", reverse_lazy("mood:status_list"))
|
|
|
|
|
|
|
|
mood_settings = [
|
|
|
|
NavItem("Activities", reverse_lazy("mood:activity_list")),
|
|
|
|
NavItem("Moods", reverse_lazy("mood:mood_list")),
|
|
|
|
NavItem(
|
2024-11-18 09:49:04 +00:00
|
|
|
"Notifications", reverse_lazy("mood:notification_list")
|
|
|
|
),
|
2024-11-19 05:56:52 +00:00
|
|
|
NavItem("Statistics", reverse_lazy("mood:statistics")),
|
|
|
|
]
|
|
|
|
|
|
|
|
for setting in mood_settings:
|
|
|
|
mood_settings_collapse.add_item(setting)
|
2021-10-24 15:35:52 +00:00
|
|
|
|
2024-11-19 05:56:52 +00:00
|
|
|
mood_section.add_item(mood_status_list)
|
|
|
|
mood_section.add_item(mood_settings_collapse)
|
2021-10-24 15:35:52 +00:00
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
NAV_SECTIONS = [mood_section]
|
|
|
|
|
|
|
|
# Dashboard sections
|
|
|
|
|
|
|
|
mood_section = DashboardSection("Moods", "mood/dashboard_section.html")
|
|
|
|
|
2024-11-20 06:41:50 +00:00
|
|
|
mood_section.add_script(static("mood/dist/js/d3.v7.min.js"))
|
|
|
|
mood_section.add_script(static("mood/dist/js/cal-heatmap.min.js"))
|
2024-11-28 14:01:13 +00:00
|
|
|
mood_section.add_script(static("mood/dist/js/popper.min.mjs"))
|
|
|
|
mood_section.add_script(static("mood/dist/js/Tooltip.min.js"))
|
2024-11-20 06:41:50 +00:00
|
|
|
|
|
|
|
mood_section.add_script(static("mood/dashboard.js"))
|
|
|
|
|
|
|
|
mood_section.add_style(static("mood/dist/css/cal-heatmap.css"))
|
|
|
|
|
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
DASHBOARD_SECTIONS = [mood_section]
|