From d9f7ead4676d1a836152c952ddfae052346b6b71 Mon Sep 17 00:00:00 2001
From: Maximilian Wagner
Date: Wed, 24 Dec 2025 01:57:11 +0100
Subject: [PATCH] added css/js stuff
---
frontend/jscss/custom-view.css | 18 ++++++++++++++++++
frontend/jscss/htmx-ext-sse.js | 1 +
frontend/templates/body.html | 27 +++++++++++++++++++++++++++
frontend/templates/head.html | 3 ++-
frontend/templates/main.html | 1 +
frontend/templates/sse-pdf.html | 1 +
6 files changed, 50 insertions(+), 1 deletion(-)
create mode 100644 frontend/jscss/custom-view.css
create mode 100644 frontend/jscss/htmx-ext-sse.js
create mode 100644 frontend/templates/body.html
create mode 100644 frontend/templates/main.html
create mode 100644 frontend/templates/sse-pdf.html
diff --git a/frontend/jscss/custom-view.css b/frontend/jscss/custom-view.css
new file mode 100644
index 0000000..e08e099
--- /dev/null
+++ b/frontend/jscss/custom-view.css
@@ -0,0 +1,18 @@
+.output {
+ height: 80vh;
+}
+.left-sidebar {
+ padding: 15px;
+}
+.pdf-frame {
+ width: 100%;
+ height: 100%;
+ border: none;
+}
+.command-out {
+ height: 20vh;
+ padding: 20px;
+ background-color: #eaeaea;
+ overflow-y: auto;
+}
+
diff --git a/frontend/jscss/htmx-ext-sse.js b/frontend/jscss/htmx-ext-sse.js
new file mode 100644
index 0000000..4528733
--- /dev/null
+++ b/frontend/jscss/htmx-ext-sse.js
@@ -0,0 +1 @@
+(function(){var g;htmx.defineExtension("sse",{init:function(e){g=e;if(htmx.createEventSource==undefined){htmx.createEventSource=t}},getSelectors:function(){return["[sse-connect]","[data-sse-connect]","[sse-swap]","[data-sse-swap]"]},onEvent:function(e,t){var r=t.target||t.detail.elt;switch(e){case"htmx:beforeCleanupElement":var n=g.getInternalData(r);var s=n.sseEventSource;if(s){g.triggerEvent(r,"htmx:sseClose",{source:s,type:"nodeReplaced"});n.sseEventSource.close()}return;case"htmx:afterProcessNode":i(r)}}});function t(e){return new EventSource(e,{withCredentials:true})}function a(n){if(g.getAttributeValue(n,"sse-swap")){var s=g.getClosestMatch(n,v);if(s==null){return null}var e=g.getInternalData(s);var a=e.sseEventSource;var t=g.getAttributeValue(n,"sse-swap");var r=t.split(",");for(var i=0;i0){const t=r.querySelectorAll("[sse-swap], [data-sse-swap], [hx-trigger], [data-hx-trigger]");for(let e=0;e
+
+
+
+ compile start
+ compile file-x
+ compile file-y
+ example output
+ warning but who cares
+ finished compilation
+ output file created
+
+
+
+
+{{ end }}
diff --git a/frontend/templates/head.html b/frontend/templates/head.html
index 07bb173..0e5358e 100644
--- a/frontend/templates/head.html
+++ b/frontend/templates/head.html
@@ -2,10 +2,11 @@