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:
2026-11-27 21:48:19 +01:00
parent a73490e5d4
commit 14888c3748
22 changed files with 419 additions and 182 deletions
@@ -88,7 +88,7 @@
<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" disabled={!dirty} onclick={save}>Save</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>
</div>
<section>
@@ -163,11 +163,11 @@
</div>
<div class="grid grid-cols-[100px_1fr] items-center gap-2 text-[12px]">
<span class="text-fg-muted">Certificate</span>
<button class="mono truncate rounded border border-line bg-input px-2 py-1 text-left" onclick={async () => (c.cert = (await pick()) ?? c.cert)}>{c.cert ?? 'PEM file…'}</button>
<button class="mono truncate rounded border border-line bg-input px-2 py-1 text-left hover:border-border-strong" onclick={async () => (c.cert = (await pick()) ?? c.cert)}>{c.cert ?? 'PEM file…'}</button>
<span class="text-fg-muted">Private key</span>
<button class="mono truncate rounded border border-line bg-input px-2 py-1 text-left" onclick={async () => (c.key = (await pick()) ?? c.key)}>{c.key ?? 'PEM file…'}</button>
<button class="mono truncate rounded border border-line bg-input px-2 py-1 text-left hover:border-border-strong" onclick={async () => (c.key = (await pick()) ?? c.key)}>{c.key ?? 'PEM file…'}</button>
<span class="text-fg-muted">or PKCS#12</span>
<button class="mono truncate rounded border border-line bg-input px-2 py-1 text-left" onclick={async () => (c.pkcs12 = (await pick([{ name: 'PKCS#12', extensions: ['p12', 'pfx'] }])) ?? c.pkcs12)}>{c.pkcs12 ?? '.p12 / .pfx file…'}</button>
<button class="mono truncate rounded border border-line bg-input px-2 py-1 text-left hover:border-border-strong" onclick={async () => (c.pkcs12 = (await pick([{ name: 'PKCS#12', extensions: ['p12', 'pfx'] }])) ?? c.pkcs12)}>{c.pkcs12 ?? '.p12 / .pfx file…'}</button>
<span class="text-fg-muted">Passphrase</span>
<input class="k-field mono !border-line !bg-input" placeholder={'{{secret.certPassphrase}}'} bind:value={() => c.passphrase ?? '', (v) => (c.passphrase = v || undefined)} />
</div>