mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-28 06:53:12 +08:00
Include templates in live reload
This commit is contained in:
@@ -25,7 +25,7 @@ function connect() {
|
|||||||
const data = JSON.parse(event.data);
|
const data = JSON.parse(event.data);
|
||||||
console.log("[live-reload] File changed:", data);
|
console.log("[live-reload] File changed:", data);
|
||||||
|
|
||||||
if (data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
|
if (data.file_path.endsWith(".html") || data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
|
||||||
console.log("[live-reload] Asset changed, reloading page");
|
console.log("[live-reload] Asset changed, reloading page");
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
max-height: var(--menu-max-height, 200px);
|
max-height: var(--menu-max-height, 200px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
& .menu-item {
|
& .menu-item {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,5 +61,7 @@
|
|||||||
{% if not request.global_settings.enable_link_prefetch %}<meta name="turbo-prefetch" content="false">{% endif %}
|
{% if not request.global_settings.enable_link_prefetch %}<meta name="turbo-prefetch" content="false">{% endif %}
|
||||||
{% if rss_feed_url %}<link rel="alternate" type="application/rss+xml" href="{{ rss_feed_url }}" />{% endif %}
|
{% if rss_feed_url %}<link rel="alternate" type="application/rss+xml" href="{{ rss_feed_url }}" />{% endif %}
|
||||||
<script src="{% static "bundle.js" %}?v={{ app_version }}"></script>
|
<script src="{% static "bundle.js" %}?v={{ app_version }}"></script>
|
||||||
{% if debug %}<script src="{% static "live-reload.js" %}"></script>{% endif %}
|
{% if debug %}
|
||||||
|
<script src="{% static "live-reload.js" %}"></script>
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -10,4 +10,3 @@ from .manifest import manifest
|
|||||||
from .custom_css import custom_css
|
from .custom_css import custom_css
|
||||||
from .root import root
|
from .root import root
|
||||||
from .opensearch import opensearch
|
from .opensearch import opensearch
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user