mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:39:42 +01:00
Move to GitHub: CI, release workflow and script; cursor and hover states
- ci.yml checks frontend types and build, core tests and that app and CLI compile on every push and pull request - release.yml publishes a GitHub release with notes and checksums for tags; scripts/release.sh bumps the version everywhere, tags and pushes - The Gitea workflow is gone; PKGBUILDs download from GitHub - Every clickable element shows the pointer and has a hover state; disabled controls show not-allowed - Dev-only fake backend (open the dev server with ?mock) for design work - README: docs link, install per platform, development, releasing
This commit is contained in:
@@ -126,13 +126,13 @@
|
||||
<div class="flex h-full flex-col">
|
||||
<div class="flex h-10 shrink-0 items-center gap-2 border-b border-line px-3">
|
||||
{#if connected}
|
||||
<button class="flex h-7 items-center gap-2 rounded border border-line bg-hover px-3 font-bold text-strong" onclick={disconnect}>
|
||||
<button class="flex h-7 items-center gap-2 rounded border border-line bg-hover px-3 font-bold text-strong hover:border-border-strong" onclick={disconnect}>
|
||||
<Icon name="stop" size={11} /> Disconnect
|
||||
</button>
|
||||
<span class="text-[12px] text-ok">connected{wsLogs.handshake[tab.key]?.hs.protocol ? ` · ${wsLogs.handshake[tab.key].hs.protocol}` : ''}</span>
|
||||
<button class="rounded px-2 py-1 text-[12px] text-fg-muted hover:bg-hover hover:text-fg" onclick={() => invoke('ws_ping', { tab: tab.key })}>Ping</button>
|
||||
{:else if connecting}
|
||||
<button class="flex h-7 items-center gap-2 rounded border border-line px-3 text-fg-muted" onclick={disconnect}>Cancel</button>
|
||||
<button class="flex h-7 items-center gap-2 rounded border border-line px-3 text-fg-muted hover:border-border-strong" onclick={disconnect}>Cancel</button>
|
||||
<span class="text-[12px] text-fg-muted">connecting…</span>
|
||||
{:else}
|
||||
<button class="flex h-7 items-center gap-2 rounded bg-accent px-3 font-bold text-accent-fg hover:bg-accent-hover" onclick={connect} title="Connect (Ctrl+Enter)">
|
||||
@@ -166,7 +166,7 @@
|
||||
<span class="flex-1"></span>
|
||||
<button class="rounded px-2 py-0.5 text-[12px] text-fg-muted hover:text-fg" onclick={saveMessage}>Save</button>
|
||||
<button class="rounded px-2 py-0.5 text-[12px] text-fg-muted hover:text-fg" onclick={sendFile}>Send file…</button>
|
||||
<button class="ml-1 rounded bg-accent px-3 py-0.5 text-[12px] font-bold text-accent-fg disabled:opacity-40" disabled={!connected} onclick={() => send()} title="Send (Ctrl+Enter)">Send</button>
|
||||
<button class="ml-1 rounded bg-accent px-3 py-0.5 text-[12px] font-bold text-accent-fg disabled:opacity-40 hover:bg-accent-hover" disabled={!connected} onclick={() => send()} title="Send (Ctrl+Enter)">Send</button>
|
||||
</div>
|
||||
<div class="min-h-0 flex-1">
|
||||
{#if format === 'json'}
|
||||
@@ -184,7 +184,7 @@
|
||||
<span class="mono text-[11px] text-fg-subtle">{m.format}</span>
|
||||
<span class="mono min-w-0 flex-1 truncate text-[11.5px] text-fg-muted">{m.content.replace(/\s+/g, ' ')}</span>
|
||||
<button class="text-[12px] text-fg-muted hover:text-fg" onclick={() => ((message = m.content), (format = m.format))}>Load</button>
|
||||
<button class="text-[12px] text-accent disabled:opacity-40" disabled={!connected} onclick={() => send(m.content, m.format)}>Send</button>
|
||||
<button class="text-[12px] text-accent disabled:opacity-40 hover:underline" disabled={!connected} onclick={() => send(m.content, m.format)}>Send</button>
|
||||
<button class="text-fg-subtle opacity-0 hover:text-delete group-hover:opacity-100" onclick={() => spec.messages!.splice(i, 1)}><Icon name="x" size={12} /></button>
|
||||
</div>
|
||||
{/each}
|
||||
@@ -251,7 +251,7 @@
|
||||
{@const json = expanded.has(e.id) ? asJson(e) : null}
|
||||
<div class="border-b border-line/50 {e.dir === 'sys' ? 'bg-hover/30' : ''}">
|
||||
<button
|
||||
class="flex w-full items-start gap-2 px-2 py-1 text-left"
|
||||
class="flex w-full items-start gap-2 px-2 py-1 text-left hover:bg-hover/40"
|
||||
onclick={() => {
|
||||
const n = new Set(expanded);
|
||||
if (n.has(e.id)) n.delete(e.id);
|
||||
|
||||
Reference in New Issue
Block a user