fix(jbot): add type=module to script tag + add JBOT to nav menu

- jbot/index.html: <script type="module"> required for Vite ES module output
  (jbot.js uses import statements for the shared client chunk)
- base.html: add JBOT menu item with robot icon after Invest in dropdown

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-17 14:13:37 +10:00
co-authored by Copilot
parent a47ea316c7
commit e9dea75423
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -9,6 +9,6 @@
</head>
<body>
<div id="jbot-root"></div>
<script src="{% static 'dist/jbot.js' %}"></script>
<script type="module" src="{% static 'dist/jbot.js' %}"></script>
</body>
</html>
+10
View File
@@ -181,6 +181,16 @@
</div>
</a>
<a href="/jbot/" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
<div class="flex items-center">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
</svg>
{% trans "JBOT" %}
</div>
</a>
<a href="{% url 'file-list' %}" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
<div class="flex items-center">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">