mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
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:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user