feat: wip previews for non-get routes
This commit is contained in:
parent
ee0b9e597a
commit
a23aee5d21
5 changed files with 366 additions and 24 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue