feat: wip previews for non-get routes

This commit is contained in:
Your Name 2025-01-21 01:08:54 -05:00
parent ee0b9e597a
commit a23aee5d21
5 changed files with 366 additions and 24 deletions

View file

@ -20,7 +20,7 @@
<div id="editor" class="w-full flex-grow"><%= it.route.handler %></div>
<div class="flex">
<button id="save-btn" type="submit">Save</button>
<button id="save-btn" type="submit" _="on click toggle .hidden on #logs">Logs</button>
<button id="logs-btn" type="submit" _="on click toggle .hidden on #logs">Logs</button>
</div>
<pre id="logs" class="max-h-[50vh] overflow-scroll flex hidden" hx-get="/workshop/<%= it.structure.id %>/route/<%= it.route.id %>/logs" hx-trigger="load">
</pre>