mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:29:40 +01:00
Design pass: fewer boxes, one emphasis signal, type glyphs in the JSON form
- Welcome screen: the mark as a peephole and actions as plain lines instead of a card grid and key chips - Title bar: search as a small button, documentation (F1) next to it; help entries in the command palette - The vertical cyan rule marks what needs attention (redirect URI, inactive environment, banners) instead of nested framed boxes - JSON form: fixed key column so types and values line up at any depth, type glyphs in the code view's colours, row actions float on hover - Crisper corners; Send carries the mark; Saved instead of a disabled Save button - Open tabs are restored after a restart again
This commit is contained in:
@@ -88,13 +88,13 @@
|
||||
<div class="mono text-[12px] text-fg-subtle">{root}/knock.yaml</div>
|
||||
</div>
|
||||
<button class="rounded px-3 py-1.5 text-fg-muted hover:text-fg" onclick={exportPostman}>Export as Postman</button>
|
||||
<button class="rounded bg-accent px-4 py-1.5 font-bold text-accent-fg disabled:opacity-40 hover:bg-accent-hover" disabled={!dirty} onclick={save}>Save</button>
|
||||
{#if dirty}<button class="rounded bg-accent px-4 py-1.5 font-bold text-accent-fg hover:bg-accent-hover" onclick={save} title="Save (Ctrl+S)">Save</button>{:else}<span class="px-4 py-1.5 text-fg-subtle">Saved</span>{/if}
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<h2 class="k-label mb-2">Auth</h2>
|
||||
<p class="mb-2 text-[12px] text-fg-subtle">Default for every request that inherits.</p>
|
||||
<div class="rounded border border-line"><AuthPanel bind:auth={m.auth!} level="collection" {col} /></div>
|
||||
<div class="-mx-3"><AuthPanel bind:auth={m.auth!} level="collection" {col} /></div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user