refactor: modularize browser client

This commit is contained in:
br0tkasten committed 2026-06-13 08:22:11 +02:00
1 parent 9c1a6acbb5
commit f061dd2f38
8 files changed
+1279 -1226

No files matched your search

+2 -4
View File
@@ -1,4 +1,4 @@
import { APP_STYLES, CLIENT_SCRIPT } from "./app-assets.js";
import { APP_STYLES } from "./app-assets.js";
export function htmlPage(): string {
return `<!doctype html>
@@ -154,9 +154,7 @@ ${APP_STYLES}
</div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script type="module">
${CLIENT_SCRIPT}
</script>
<script type="module" src="/client/app.js"></script>
</body>
</html>`;
}