feat: frontend using django-vite + blabla

This commit is contained in:
2026-07-17 18:02:42 +02:00
parent 63a5a69c67
commit c06b184a2d
48 changed files with 13896 additions and 885 deletions
+24
View File
@@ -0,0 +1,24 @@
{% load django_vite static %}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Osiris</title>
<link rel="manifest" href="{% url 'manifest' %}">
<meta name="theme-color" content="#202a35">
<meta name="mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="{% static 'icons/icon-192.png' %}">
<link rel="icon" href="{% static 'icons/icon-192.png' %}">
{% vite_hmr_client %}
{% vite_asset 'src/main.ts' %}
</head>
<body>
<div id="app"></div>
{{ config|json_script:"osiris-config" }}
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => navigator.serviceWorker.register("/sw.js"));
}
</script>
</body>
</html>