Hosts

{#if o}

{countsSentence(o.counts, app.phone)}

{/if}
{#if !app.phone}{/if} {#if blocked}{blocked}{/if}
{#if problem} (problem = null)}>{#snippet title()}{problem}{/snippet}{/if} (app.panel = { kind: "host", resume: id })} onedit={editAgain} /> {#if !o && !app.loadError}
Loading hosts… {#each [0, 1, 2] as i (i)}
{/each}
{:else if app.loadError && !o} {#snippet title()}This page could not load. Ianitor's control service may be restarting.{/snippet} {#snippet actions()}{/snippet} {:else if o && o.hosts.length === 0}

No hosts yet

Add the first one: the name people type, and where Ianitor should send them.

{:else if o} navigate(`/hosts/${encodeURIComponent(h)}/edit`)} onremove={remove} onshare={(h) => (app.panel = { kind: "share", hostname: h })} onhistory={(h) => navigate(`/history?host=${encodeURIComponent(h)}`)} onretry={retry} /> {/if} {#if o?.repo}
{/if} {#if panelOpen} {#key route.edit ?? (app.panel?.kind === "host" ? app.panel.resume : "new")} {/key} {/if} {#if app.panel?.kind === "share"} { app.panel = null; void refresh(); }} /> {/if}