refactor(navigation): remove legacy navigation.js and integrate logic into navigation_sidebar.js
Some checks failed
CI / lint (push) Successful in 17s
Deploy - Coolify / deploy (push) Failing after 5s
CI / test (push) Successful in 1m21s
CI / build (push) Successful in 2m25s

This commit is contained in:
2025-11-15 13:53:50 +01:00
parent ea101d1695
commit eb2687829f
5 changed files with 269 additions and 59 deletions

View File

@@ -44,7 +44,6 @@
<script src="/static/js/imports.js" defer></script>
<script src="/static/js/notifications.js" defer></script>
<script src="/static/js/navigation_sidebar.js" defer></script>
<script src="/static/js/navigation.js" defer></script>
<script src="/static/js/theme.js"></script>
</body>
</html>

View File

@@ -1,5 +1,4 @@
{% extends "base.html" %} {% block title %}Dashboard · CalMiner{% endblock %} {%
block head_extra %}
{% extends "base.html" %} {% block title %}Dashboard · CalMiner{% endblock %} {% block head_extra %}
<link rel="stylesheet" href="/static/css/dashboard.css" />
{% endblock %} {% block content %}
<section class="page-header dashboard-header">
@@ -165,12 +164,12 @@ block head_extra %}
</header>
<ul class="links-list">
<li>
<a href="https://github.com/" target="_blank">CalMiner Repository</a>
<a href="https://git.allucanget.biz/allucanget/calminer" target="_blank">CalMiner Repository</a>
</li>
<li>
<a href="https://example.com/docs" target="_blank">Documentation</a>
<a href="https://git.allucanget.biz/allucanget/calminer-docs" target="_blank">Documentation</a>
</li>
<li><a href="mailto:support@example.com">Contact Support</a></li>
<li><a href="mailto:calminer@allucanget.biz">Contact Support</a></li>
</ul>
</div>
</aside>

View File

@@ -1,4 +1,5 @@
{% set sidebar_nav = get_sidebar_navigation(request) %}
{% set nav_roles = sidebar_nav.roles if sidebar_nav and sidebar_nav.roles else [] %}
{% set nav_groups = sidebar_nav.groups if sidebar_nav else [] %}
{% set current_path = request.url.path if request else '' %}
@@ -6,6 +7,7 @@
class="sidebar-nav"
aria-label="Primary navigation"
data-navigation-source="{{ 'server' if sidebar_nav else 'fallback' }}"
data-navigation-roles="{{ nav_roles | join(',') }}"
>
<div class="sidebar-nav-controls">
<button id="nav-prev" class="nav-chevron nav-chevron-prev" aria-label="Previous page"></button>