[web] Design re-check: the engine chip closes its popover, Show details on every pause, popover grammar, share links off while Caddy serves, renewal copy
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Dialog title={e?.state === "stopped" ? `${name} is not answering` : `Serving with ${name}`} kind="popover" modal={false} escape={!switching} {onclose}>
|
||||
<Dialog title={e?.state === "stopped" ? `${name} is not answering` : `Serving with ${name}`} kind="popover" modal={false} escape={!switching} toggle="[data-engine-chip]" {onclose}>
|
||||
<p class="ia-label">Engine</p>
|
||||
{#if e?.state === "stopped"}
|
||||
<p>Visitors may not reach any host. Switching to {other} is the quickest way back.</p>
|
||||
@@ -80,7 +80,7 @@
|
||||
<p class="ia-text2">
|
||||
{#if e?.since}Since {whenInline(e.since, app.now)}. {/if}
|
||||
{#if running === "pingora"}
|
||||
{#if notReady}Caddy is not ready: its settings have not been built yet.{:else if differs > 0}Caddy is built with the same routes {whenInline(fr?.built_at, app.now)}, but {differs} of {fr?.compared} hosts behave differently on it.{:else}Caddy is ready with the same routes: built {whenInline(fr?.built_at, app.now)}{fr?.compared ? `, and all ${fr.compared} hosts behave the same` : ""}.{/if}
|
||||
{#if notReady}Caddy is not ready: its settings have not been built yet.{:else if differs > 0}Caddy was built {whenInline(fr?.built_at, app.now)} with the same routes, but {differs} of {fr?.compared} {fr?.compared === 1 ? "host" : "hosts"} {differs === 1 ? "behaves" : "behave"} differently on it.{:else}Caddy is ready with the same routes: built {whenInline(fr?.built_at, app.now)}{fr?.compared ? (fr.compared === 1 ? ", and the host behaves the same" : `, and all ${fr.compared} hosts behave the same`) : ""}.{/if}
|
||||
{#if !notReady && !fr?.current} It is rebuilt from the current routes when you switch.{/if}
|
||||
{:else}Pingora is ready with the same routes.{/if}
|
||||
</p>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
}
|
||||
|
||||
const blocked = $derived(changesBlocked());
|
||||
const shareReason = $derived(!app.overview?.site?.share_links_available ? (underCaddy ? "Share links are paused while Caddy serves." : "Share links are not set up on this server.") : null);
|
||||
const shareReason = $derived(!app.overview?.site?.share_links_available ? (underCaddy ? "Share links are off while Caddy serves." : "Share links are not set up on this server.") : null);
|
||||
</script>
|
||||
|
||||
<div class="ia-list" role="table" aria-label="Hosts">
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
{@const r = i.renewal}
|
||||
<Banner tone="notice" label="Domi intermediate certificate">
|
||||
{#snippet title()}
|
||||
<span tabindex="-1">Sign the renewal on the offline computer. Sign it by hand shows the files, the command and the fingerprint to check.</span>
|
||||
<span tabindex="-1">Sign the renewal on the offline computer. The next page has the files, the command and a fingerprint to check.</span>
|
||||
{/snippet}
|
||||
The request stays open for {duration(secondsLeft(r.expires_at))}. {#if problem}{problem}{/if}
|
||||
{#snippet actions()}
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
{#if link?.warning}<p class="ia-hint">{link.warning.message}</p>{/if}
|
||||
{#if problem}<Banner tone="notice" live="status">{#snippet title()}{problem}{/snippet}</Banner>{/if}
|
||||
{#if link}
|
||||
<textarea bind:this={secretBox} class="ia-secret" readonly rows="3" value={link.url} aria-label="Share link" onfocus={(e) => (e.currentTarget as HTMLTextAreaElement).select()}></textarea>
|
||||
<textarea bind:this={secretBox} class="ia-secret" readonly value={link.url} aria-label="Share link" onfocus={(e) => (e.currentTarget as HTMLTextAreaElement).select()}></textarea>
|
||||
{:else if minting}
|
||||
<p class="ia-muted">Making the link…</p>
|
||||
{/if}
|
||||
|
||||
@@ -35,6 +35,13 @@
|
||||
return { bold: own, line2: "", extra: "" };
|
||||
});
|
||||
|
||||
// "Show details" for every pause (§7.6): the server's detail, the restart command, or the
|
||||
// full message when there is nothing more.
|
||||
const pauseDetail = $derived(
|
||||
[o?.paused_detail, pause.extra].filter(Boolean).join("\n") || (o?.paused ? (o.paused.message ?? "") : ""),
|
||||
);
|
||||
|
||||
|
||||
async function retry() {
|
||||
await refresh();
|
||||
}
|
||||
@@ -46,7 +53,7 @@
|
||||
{#if pause.line2}<span class="line2">{pause.line2}</span>{/if}
|
||||
{#if restorable && o.undo?.target}<p class="ia-hint">Goes back to "{o.undo.target.summary}" from {whenInline(o.undo.target.kept_at, app.now)}. It is checked like any change.</p>{/if}
|
||||
{#if problem}<p role="status">{problem}</p>{/if}
|
||||
{#if pause.extra}<Details detail={pause.extra} />{/if}
|
||||
{#if pauseDetail}<Details detail={pauseDetail} />{/if}
|
||||
{#snippet actions()}
|
||||
{#if restorable}<Button variant="primary" onclick={restore} pending={restoring}>Restore the last kept version</Button>{/if}
|
||||
{/snippet}
|
||||
|
||||
Reference in New Issue
Block a user