docs: add docs

This commit is contained in:
js0ny 2025-12-06 10:34:27 +00:00
parent 439162ce22
commit 9db0a7013a
7 changed files with 232 additions and 30 deletions

View file

@ -117,12 +117,6 @@
</div>
</div>
<div
class="font-mono text-xs text-slate-500 dark:text-slate-400 p-2.5 bg-slate-500/10 rounded-lg border-l-4 border-sky-500/50"
>
> {status}
</div>
<div
class="space-y-3 overflow-y-auto pr-1 custom-scrollbar flex-1 flex flex-col"
>
@ -213,29 +207,5 @@
{/if}
</div>
<div class="flex-1 flex flex-col min-h-0">
<h2
class="mb-2 text-sm font-semibold tracking-wider uppercase text-slate-500 dark:text-slate-400"
>
Dispatch Payload (JSON)
</h2>
<textarea
class="flex-1 min-h-[200px] text-xs w-full bg-white/50 dark:bg-black/30 border border-slate-300 dark:border-slate-700 text-slate-800 dark:text-slate-100 p-2.5 rounded-lg font-mono transition-all focus:outline-none focus:border-sky-500 focus:bg-white dark:focus:bg-black/50 focus:ring-2 focus:ring-sky-500/20 resize-none"
bind:value={dispatchBody}
spellcheck="false"
></textarea>
</div>
<div
class="flex gap-2 mt-auto pt-4 border-t border-slate-200 dark:border-slate-800"
>
<button
class="flex-1 p-2.5 rounded-lg font-semibold text-sm transition-all disabled:opacity-50 disabled:cursor-not-allowed text-white bg-sky-500 shadow-[0_4px_12px_theme(colors.sky.500/30)] hover:bg-sky-600 disabled:hover:bg-sky-500"
on:click={() => dispatch("request")}
disabled={loading}
>
{loading ? "CALCULATING..." : "REQUEST PATH"}
</button>
</div>
</div>
</aside>