A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: fix broken docker frontend from esbuild migration (#13603)
shamooncb03a0b33e7c
diff --git a/src/documents/templates/index.html b/src/documents/templates/index.htmlindex 2bb3758ac..0de50243b 100644--- a/src/documents/templates/index.html+++ b/src/documents/templates/index.html@@ -70,8 +70,7 @@]</script></pngx-root>- <script src="{% static runtime_js %}" defer></script>- <script src="{% static polyfills_js %}" defer></script>- <script src="{% static main_js %}" defer></script>+ <script src="{% static polyfills_js %}" type="module"></script>+ <script src="{% static main_js %}" type="module"></script></body></html>diff --git a/src/documents/tests/test_views.py b/src/documents/tests/test_views.pyindex c385e9b57..adcca313a 100644--- a/src/documents/tests/test_views.py+++ b/src/documents/tests/test_views.py@@ -78,10 +78,6 @@ class TestViews(DirectoriesMixin, TestCase):response.context_data["styles_css"],f"frontend/{language_actual}/styles.css",)- self.assertEqual(- response.context_data["runtime_js"],- f"frontend/{language_actual}/runtime.js",- )self.assertEqual(response.context_data["polyfills_js"],f"frontend/{language_actual}/polyfills.js",diff --git a/src/documents/views.py b/src/documents/views.pyindex a0e0d65dc..1db286445 100644--- a/src/documents/views.py+++ b/src/documents/views.py@@ -348,7 +348,6 @@ class IndexView(TemplateView):context["username"] = self.request.user.usernamecontext["full_name"] = self.request.user.get_full_name()context["styles_css"] = f"frontend/{self.get_frontend_language()}/styles.css"- context["runtime_js"] = f"frontend/{self.get_frontend_language()}/runtime.js"context["polyfills_js"] = (f"frontend/{self.get_frontend_language()}/polyfills.js")