2 Commits

29 changed files with 466 additions and 381 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ crates/core config model, schema, compilers (Pingora runtime + Caddy JSON),
crates/edge Pingora data plane. Reads compiled config, serves traffic. Never decides policy.
crates/control API, git routes repo, apply/rollback, share links, PKI flows. Loopback only. Never serves public traffic.
apps/web Svelte 5 (runes, TypeScript strict). A client of the API; no logic.
packages/ui shared dark Domi theme, murex palette.
packages/ui Ianitor's own components on @domi/ui (the shared Domi design system, pinned by tag; docs/domi-ui.md).
tests/diff same requests against Ianitor and Caddy, responses compared.
tests/support shared test fixtures (test CA, upstreams, mock Authelia, clients); test-only.
tests/fuzz cargo-fuzz targets.
+1 -1
View File
@@ -35,7 +35,7 @@ test("Add a host: + Host → fill → Apply = 2 clicks, kept", { annotation: { t
await page.getByLabel("Hostname").pressSequentially("notes.home.test");
await page.getByLabel("Send traffic to").fill("http://192.0.2.60:8080");
await beat(page);
await c.click(page.getByRole("button", { name: "Apply" }));
await c.click(page.getByRole("button", { name: "Apply", exact: true }));
await expect(page.locator("dialog.ia-panel")).toHaveCount(0, { timeout: 10_000 });
await expect(page.getByRole("button", { name: "More for notes.home.test" })).toBeVisible();
await beat(page);
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
<html lang="en">
<html lang="en" data-domi-room="ianitor">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
+1
View File
@@ -14,6 +14,7 @@
"aula:shots": "playwright test --project=aula"
},
"dependencies": {
"@domi/ui": "git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.0",
"@ianitor/ui": "workspace:*"
},
"devDependencies": {
+12 -12
View File
@@ -93,7 +93,7 @@
{#if route.view === "signed-in"}
<SignedIn />
{:else}
<a class="skip domi-btn" href="#main">Skip to content</a>
<a class="skip ia-link" href="#main">Skip to content</a>
<div class="shell">
<nav class="sidebar" aria-label="Main">
<div class="ia-wordmark brand">IANITOR DOMI</div>
@@ -103,7 +103,7 @@
<div class="foot ia-muted">
<p>{viewer?.via === "authelia" ? `Signed in as ${viewer.name} through Authelia` : viewer ? `Using the API token "${viewer.name}"` : "Signed in through Authelia"}</p>
<p>Control on 127.0.0.1 only</p>
{#if app.overview?.site?.auth_logout_url}<a class="domi-btn link" href={app.overview.site.auth_logout_url}>Sign out</a>{/if}
{#if app.overview?.site?.auth_logout_url}<a class="ia-link" href={app.overview.site.auth_logout_url}>Sign out</a>{/if}
</div>
</nav>
<header class="topbar"><span class="ia-wordmark">IANITOR DOMI</span>{#if app.phone}<EngineChip />{/if}</header>
@@ -152,24 +152,24 @@
<style>
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--colonnade); border-right: 1px solid var(--hairline); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.sidebar { background: var(--domi-chrome); border-right: 1px solid var(--domi-line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.brand { padding: 4px 10px 18px; }
.nav { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: var(--fs-nav); text-decoration: none; border: 1px solid transparent; }
.nav:hover { background: var(--surface); color: var(--text); }
.nav[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: var(--inset-lit); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.nav[aria-current="page"] :global(svg) { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--domi-fg-2); font-weight: 600; font-size: var(--fs-nav); text-decoration: none; border: 1px solid transparent; }
.nav:hover { background: var(--domi-panel); color: var(--domi-fg); }
.nav[aria-current="page"] { background: var(--domi-hover); color: var(--domi-fg); box-shadow: var(--inset-lit); border-color: color-mix(in srgb, var(--domi-accent) 30%, transparent); }
.nav[aria-current="page"] :global(svg) { color: var(--domi-accent); }
.foot { margin-top: auto; font-size: 0.82rem; display: flex; flex-direction: column; gap: 4px; padding: 0 10px; }
main { padding: var(--main-pad); display: flex; flex-direction: column; gap: 18px; min-width: 0; outline: none; }
.topbar, .bottombar { display: none; }
@media (max-width: 719.98px) {
.shell { grid-template-columns: minmax(0, 1fr); }
.sidebar { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; background: var(--colonnade); border-bottom: 1px solid var(--hairline); padding: 10px 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; background: var(--domi-chrome); border-bottom: 1px solid var(--domi-line); padding: 10px 16px; }
.topbar .ia-wordmark { font-size: 12px; letter-spacing: 0.26em; }
main { padding: 18px 16px calc(90px + env(safe-area-inset-bottom)); gap: 14px; }
.bottombar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--colonnade); border-top: 1px solid var(--hairline); padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 40; }
.bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--phone-bar-h); border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: var(--fs-tab-phone); text-decoration: none; }
.bottombar a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.bottombar a[aria-current="page"] :global(svg) { color: var(--accent); }
.bottombar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--domi-chrome); border-top: 1px solid var(--domi-line); padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 40; }
.bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--phone-bar-h); border-radius: var(--radius-sm); color: var(--domi-fg-2); font-weight: 600; font-size: var(--fs-tab-phone); text-decoration: none; }
.bottombar a[aria-current="page"] { background: var(--domi-hover); color: var(--domi-fg); }
.bottombar a[aria-current="page"] :global(svg) { color: var(--domi-accent); }
}
</style>
+6 -6
View File
@@ -69,12 +69,12 @@
<style>
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps li.pending { color: var(--muted); }
.steps li.running { color: var(--text); }
.steps li.running :global(svg) { color: var(--accent); }
.steps li.done { color: var(--text-2); }
.steps li.pending { color: var(--domi-muted); }
.steps li.running { color: var(--domi-fg); }
.steps li.running :global(svg) { color: var(--domi-accent); }
.steps li.done { color: var(--domi-fg-2); }
.steps li.done :global(svg) { color: var(--kept); }
.steps li.failed :global(svg) { color: var(--down); }
.steps li.skipped { color: var(--muted); }
.hollow { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); margin: 2px; }
.steps li.skipped { color: var(--domi-muted); }
.hollow { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--domi-muted); margin: 2px; }
</style>
+2 -2
View File
@@ -136,7 +136,7 @@
<Progress label="Health watch" max={total} now={total - watchLeft} text="{watchLeft} seconds left" />
{/if}
</div>
{#if active.state === "queued"}<Button onclick={() => cancel(active.id)}>Cancel</Button>{:else}<button type="button" class="domi-btn link" onclick={() => onshowsteps(active.id)}>Show steps</button>{/if}
{#if active.state === "queued"}<Button onclick={() => cancel(active.id)}>Cancel</Button>{:else}<button type="button" class="ia-link" onclick={() => onshowsteps(active.id)}>Show steps</button>{/if}
{:else if last}
<div class="grow">
{#if last.state === "kept"}
@@ -161,5 +161,5 @@
{/if}
<style>
.warn { color: var(--degraded); }
.warn { color: var(--domi-warning); }
</style>
+1 -1
View File
@@ -117,5 +117,5 @@
</Dialog>
<style>
ul { margin: 6px 0 0; padding-left: 1.1rem; color: var(--text-2); }
ul { margin: 6px 0 0; padding-left: 1.1rem; color: var(--domi-fg-2); }
</style>
+2 -2
View File
@@ -116,7 +116,7 @@
{#if h.certificate.state === "pending"}<span class="ia-sub" style="display:block">Waiting for Let's Encrypt to issue the certificate.</span>{/if}
{#if h.certificate.state === "failed"}
<span class="ia-sub" style="display:block;color:var(--down)">Let's Encrypt could not confirm <strong>{h.hostname}</strong>. The name must point to this server, and port 80 must be open from the internet.
<button type="button" class="domi-btn link" onclick={() => onretry(h.hostname)}>Try again</button></span>
<button type="button" class="ia-link" onclick={() => onretry(h.hostname)}>Try again</button></span>
{/if}
</span>
<span role="cell">
@@ -133,7 +133,7 @@
<style>
.phone, .phone-dot { display: none; }
.problem { color: var(--text-2) !important; }
.problem { color: var(--domi-fg-2) !important; }
@media (max-width: 719.98px) {
.desktop { display: none !important; }
.phone { display: block; padding-left: 22px; }
+71 -58
View File
@@ -5,6 +5,7 @@
// Handoff §6 and §7: the add/edit panel, its validation on blur, Apply, and the progress and
// outcome of the apply it starts. Every decision comes from control; the form only carries it.
import { onDestroy, onMount } from "svelte";
import { Checkbox, Select, TextField } from "@domi/ui";
import { Banner, Button, Details, Dialog, Icon, Segmented } from "@ianitor/ui";
import ApplyProgress from "./ApplyProgress.svelte";
import { ApiError, call, del, get, newKey, sentence } from "../lib/api";
@@ -60,6 +61,24 @@
let idem = newKey();
let lastBody = "";
// Every text field carries its seal (domi-design TextField): `next` moves to the next field, and the last text
// field of the form applies it, as the Apply button does. The last one depends on what is shown.
const lastField = $derived.by(() => {
const keys = ["hostname", ...host.upstreams.map((_, i) => `upstreams[${i}]`)];
if (more) {
if (host.hc) keys.push("health_check.path");
for (const [list, rules, secrets] of [["request_headers", host.req, true], ["response_headers", host.resp, false]] as const) {
rules.forEach((r, i) => {
keys.push(`${list}[${i}].name`);
if (r.action === "set" && !(secrets && r.kind === "secret")) keys.push(`${list}[${i}].value`);
});
}
}
return keys.at(-1);
});
const seal = (key: string) =>
key === lastField ? { action: "save" as const, actionLabel: "Apply this host" } : { action: "next" as const, actionLabel: undefined };
// ---- the apply
let apply = $state<ApplyView | null>(null);
let restoring = $state(false);
@@ -392,43 +411,36 @@
{#if topError.body.detail}<Details detail={topError.body.detail} reference={topError.requestId} />{/if}
{/if}
<div class="domi-field">
<label class="domi-field-label" for={fieldId("hostname")}>Hostname</label>
<input id={fieldId("hostname")} class="domi-input" bind:value={host.hostname} readonly={!!hostname}
autocapitalize="none" spellcheck="false" inputmode="url" autocomplete="off"
aria-invalid={errAt("hostname") && touched["hostname"] ? "true" : undefined}
aria-describedby="{fieldId('hostname')}-e {fieldId('hostname')}-h" onblur={() => blur("hostname")} />
{#if errAt("hostname") && touched["hostname"]}
<p class="domi-error" id="{fieldId('hostname')}-e"><Icon name="ring" />{errAt("hostname").message}
{#if errAt("hostname").params?.suggestion}
<button type="button" class="domi-btn link" onclick={() => { host.hostname = errAt("hostname").params.suggestion; blur("hostname"); }}>Use {errAt("hostname").params.suggestion}</button>
{/if}
</p>
<div class="ia-field" onfocusout={() => blur("hostname")}>
<TextField id={fieldId("hostname")} label="Hostname" bind:value={host.hostname} readonly={!!hostname}
spellcheck={false} inputmode="url" autocomplete="off" {...seal("hostname")}
error={errAt("hostname") && touched["hostname"] ? errAt("hostname").message : undefined}
hint={hostname ? "To use another address, add a new host and remove this one." : undefined} />
{#if errAt("hostname") && touched["hostname"] && errAt("hostname").params?.suggestion}
<div><button type="button" class="ia-link" onclick={() => { host.hostname = errAt("hostname").params.suggestion; blur("hostname"); }}>Use {errAt("hostname").params.suggestion}</button></div>
{/if}
{#if hostname}<p class="ia-hint" id="{fieldId('hostname')}-h">To use another address, add a new host and remove this one.</p>{/if}
</div>
{#each host.upstreams as _, i (i)}
{@const f = `upstreams[${i}]`}
{@const err = errAt(f) ?? (i === 0 ? errAt("upstreams") : undefined)}
<div class="domi-field">
{#if i === 0}<label class="domi-field-label" for={fieldId(f)}>Send traffic to</label>{/if}
{@const shown = err && (touched[f] || touched["upstreams"])}
<div class="ia-field" onfocusout={() => blur(f)}>
<div class="row">
<input id={fieldId(f)} class="domi-input" bind:value={host.upstreams[i]} autocapitalize="none" spellcheck="false" inputmode="url" autocomplete="off"
aria-label={i === 0 ? undefined : `Also send traffic to, address ${i + 1}`}
aria-invalid={err && (touched[f] || touched["upstreams"]) ? "true" : undefined}
aria-describedby="{fieldId(f)}-e" onblur={() => blur(f)} />
<div class="grow">
<TextField id={fieldId(f)} label={i === 0 ? "Send traffic to" : `Also send traffic to, address ${i + 1}`} hideLabel={i > 0}
bind:value={host.upstreams[i]} spellcheck={false} inputmode="url" autocomplete="off" {...seal(f)}
error={shown ? err.message : undefined}
hint={i === 0 && host.upstreams.length === 1 ? "Add another address later for a second server." : undefined} />
</div>
{#if i > 0}<button type="button" class="ia-icon-btn" aria-label="Remove this address" onclick={() => host.upstreams.splice(i, 1)}><Icon name="trash" /></button>{/if}
</div>
{#if err && (touched[f] || touched["upstreams"])}
<p class="domi-error" id="{fieldId(f)}-e"><Icon name="ring" />{err.message}
{#if err.params?.suggestion}<button type="button" class="domi-btn link" onclick={() => { host.upstreams[i] = err.params.suggestion; blur(f); }}>Use {err.params.suggestion}</button>{/if}
</p>
{#if shown && err.params?.suggestion}
<div><button type="button" class="ia-link" onclick={() => { host.upstreams[i] = err.params.suggestion; blur(f); }}>Use {err.params.suggestion}</button></div>
{/if}
{#if i === 0 && host.upstreams.length === 1}<p class="ia-hint">Add another address later for a second server.</p>{/if}
</div>
{/each}
<div><button type="button" class="domi-btn link" onclick={() => host.upstreams.push("")}>Add another address</button></div>
<div><button type="button" class="ia-link" onclick={() => host.upstreams.push("")}>Add another address</button></div>
<Segmented legend="Certificate" name="tls" bind:value={host.tls}
options={[{ value: "domi", label: "Domi certificate" }, { value: "letsencrypt", label: "Let's Encrypt" }]} />
@@ -437,77 +449,77 @@
<Segmented legend="Who can open it" name="auth" bind:value={host.auth} disabled={signinOk ? [] : ["forward-auth"]}
options={[{ value: "forward-auth", label: "Sign in first" }, { value: "none", label: "Anyone" }]} />
{#if !signinOk}<p class="ia-hint">Sign-in is not set up on this server yet, so choose Anyone for now. To set it up, add the Authelia address to ianitor.toml in the routes repository.</p>{/if}
{#if errAt("auth")}<p class="domi-error"><Icon name="ring" />{errAt("auth").message}</p>{/if}
{#if errAt("auth")}<p class="ia-error"><Icon name="ring" />{errAt("auth").message}</p>{/if}
<div>
<button type="button" class="domi-btn link" aria-expanded={more} aria-controls="more-options" onclick={() => (more = !more)}>
<button type="button" class="ia-link" aria-expanded={more} aria-controls="more-options" onclick={() => (more = !more)}>
More options: headers, websockets, health check, share links, visit log
</button>
</div>
{#if more}
<div id="more-options" class="more">
<div class="domi-field">
<span class="domi-field-label">Health check</span>
<label class="ia-check"><input type="checkbox" bind:checked={host.hc} /> Check that it answers</label>
<div class="ia-field">
<span class="ia-field-label">Health check</span>
<Checkbox bind:checked={host.hc} label="Check that it answers" />
<p class="ia-hint">Ianitor asks this address regularly and shows the result on the main screen.</p>
</div>
{#if host.hc}
<div class="domi-field">
<label class="domi-field-label" for={fieldId("health_check.path")}>Health check address</label>
<input id={fieldId("health_check.path")} class="domi-input" bind:value={host.hcPath} aria-invalid={errAt("health_check.path") ? "true" : undefined} onblur={() => blur("health_check.path")} />
{#if errAt("health_check.path")}<p class="domi-error"><Icon name="ring" />{errAt("health_check.path").message}</p>{/if}
<p class="ia-hint">Use an address that answers without signing in, like /health.</p>
<div class="ia-field" onfocusout={() => blur("health_check.path")}>
<TextField id={fieldId("health_check.path")} label="Health check address" bind:value={host.hcPath} spellcheck={false}
autocomplete="off" {...seal("health_check.path")} error={errAt("health_check.path")?.message}
hint="Use an address that answers without signing in, like /health." />
</div>
<div class="domi-field">
<label class="domi-field-label" for={fieldId("health_check.interval_secs")}>Checks every</label>
<div class="row"><input id={fieldId("health_check.interval_secs")} class="domi-input narrow" type="number" min="1" max="3600" bind:value={host.hcEvery} onblur={() => blur("health_check.interval_secs")} /> <span class="ia-text2">seconds</span></div>
{#if errAt("health_check.interval_secs")}<p class="domi-error"><Icon name="ring" />{errAt("health_check.interval_secs").message}</p>{/if}
<div class="ia-field">
<label class="ia-field-label" for={fieldId("health_check.interval_secs")}>Checks every</label>
<div class="row"><input id={fieldId("health_check.interval_secs")} class="ia-input narrow" type="number" min="1" max="3600" bind:value={host.hcEvery} onblur={() => blur("health_check.interval_secs")} /> <span class="ia-text2">seconds</span></div>
{#if errAt("health_check.interval_secs")}<p class="ia-error"><Icon name="ring" />{errAt("health_check.interval_secs").message}</p>{/if}
</div>
{/if}
<div class="domi-field">
<span class="domi-field-label">Websockets</span>
<label class="ia-check"><input type="checkbox" bind:checked={host.websockets} /> Allow websockets</label>
<div class="ia-field">
<span class="ia-field-label">Websockets</span>
<Checkbox bind:checked={host.websockets} label="Allow websockets" />
<p class="ia-hint">Live updates for apps like Home Assistant. Leave on unless you know the app does not need them.</p>
</div>
<div class="domi-field">
<span class="domi-field-label">Share links</span>
<label class="ia-check"><input type="checkbox" bind:checked={host.share_links} /> Allow share links</label>
<div class="ia-field">
<span class="ia-field-label">Share links</span>
<Checkbox bind:checked={host.share_links} label="Allow share links" />
<p class="ia-hint">Lets you make links that open this host without signing in, until they expire.</p>
{#if shareWarning}<p class="ia-hint">Anyone can already open {name}, so a share link changes nothing.</p>{/if}
</div>
<div class="domi-field">
<span class="domi-field-label">Device certificates</span>
<label class="ia-check"><input type="checkbox" bind:checked={host.device_certs} /> Only devices with a Domi device certificate</label>
<div class="ia-field">
<span class="ia-field-label">Device certificates</span>
<Checkbox bind:checked={host.device_certs} label="Only devices with a Domi device certificate" />
<p class="ia-hint">Phones, computers and apps need a certificate from Certificates before they can open it.</p>
</div>
<Segmented legend="Visit log" name="access_log" bind:value={host.access_log} options={[{ value: "off", label: "Off" }, { value: "truncated", label: "On" }]} />
<p class="ia-hint">On keeps a log on this server, with visitor addresses shortened.</p>
{#each [{ list: "request_headers", rules: host.req, title: "Header rules sent to your service", secrets: true }, { list: "response_headers", rules: host.resp, title: "Header rules sent back to visitors", secrets: false }] as group (group.list)}
<div class="domi-field">
<span class="domi-field-label">{group.title}</span>
<div class="ia-field">
<span class="ia-field-label">{group.title}</span>
{#each group.rules as r, i (i)}
{@const p = `${group.list}[${i}]`}
<div class="rule ia-card">
<Segmented legend="Rule {i + 1}" name="{p}-action" bind:value={r.action} options={[{ value: "set", label: "Set" }, { value: "remove", label: "Remove" }]} />
<label class="domi-field-label" for={fieldId(p + ".name")}>Header name</label>
<input id={fieldId(p + ".name")} class="domi-input" bind:value={r.name} onblur={() => blur(p + ".name")} />
<div onfocusout={() => blur(p + ".name")}>
<TextField id={fieldId(p + ".name")} label="Header name" bind:value={r.name} spellcheck={false} autocomplete="off" {...seal(p + ".name")} />
</div>
{#if r.action === "set"}
{#if group.secrets}
<Segmented legend="Value" name="{p}-kind" bind:value={r.kind} disabled={(site?.secrets.length ?? 0) === 0 ? ["secret"] : []} options={[{ value: "value", label: "Fixed value" }, { value: "secret", label: "Secret" }]} />
{/if}
{#if r.kind === "secret" && group.secrets}
<select class="domi-input" bind:value={r.secret} aria-label="Secret">
{#each site?.secrets ?? [] as s (s)}<option value={s}>{s}</option>{/each}
</select>
<Select label="Secret" bind:value={r.secret} options={(site?.secrets ?? []).map((s) => ({ value: s, label: s }))} />
{:else}
<input class="domi-input" bind:value={r.value} aria-label="Value" onblur={() => blur(p + ".value")} />
<div onfocusout={() => blur(p + ".value")}>
<TextField label="Value" hideLabel bind:value={r.value} spellcheck={false} autocomplete="off" {...seal(p + ".value")} />
</div>
{/if}
{/if}
{#each Object.entries(errors).filter(([k]) => k.startsWith(p)) as [, e] (e.code + e.field)}<p class="domi-error"><Icon name="ring" />{e.message}</p>{/each}
{#each Object.entries(errors).filter(([k]) => k.startsWith(p)) as [, e] (e.code + e.field)}<p class="ia-error"><Icon name="ring" />{e.message}</p>{/each}
<button type="button" class="ia-icon-btn" aria-label="Remove this rule" onclick={() => group.rules.splice(i, 1)}><Icon name="trash" /></button>
</div>
{/each}
<div><button type="button" class="domi-btn link" onclick={() => group.rules.push({ action: "set", name: "", kind: "value", value: "", secret: site?.secrets[0] ?? "" })}>Add a rule</button></div>
<div><button type="button" class="ia-link" onclick={() => group.rules.push({ action: "set", name: "", kind: "value", value: "", secret: site?.secrets[0] ?? "" })}>Add a rule</button></div>
{#if group.secrets && (site?.secrets.length ?? 0) === 0}<p class="ia-hint">No secrets are listed in ianitor.toml.</p>{/if}
</div>
{/each}
@@ -531,6 +543,7 @@
<style>
form { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.more { display: flex; flex-direction: column; gap: 16px; }
.rule { display: flex; flex-direction: column; gap: 8px; }
.narrow { max-width: 8rem; }
+21 -16
View File
@@ -7,6 +7,7 @@
// Links off: "Turn on share links" applies the change, then Copy link (4 clicks: open
// question Q1 is not decided, so this is the fallback path the design allows).
import { onDestroy, onMount } from "svelte";
import { DomiError, TextField } from "@domi/ui";
import { Banner, Button, Dialog, Icon, Segmented } from "@ianitor/ui";
import ApplyProgress from "./ApplyProgress.svelte";
import { ApiError, call, del, newKey, patch, sentence } from "../lib/api";
@@ -64,6 +65,12 @@
}
}
// The seals of the two fields (domi-design TextField): a new link with this prefix or password, or the reason not.
async function remint(field: "path_prefix" | "password") {
await mint();
if (fieldErr?.field === field) throw new DomiError(fieldErr.message);
}
async function copy() {
if (!link) return;
try {
@@ -111,7 +118,7 @@
{:else}
<p><strong>Share links are off for {hostname}.</strong></p>
<p class="ia-text2">Turning them on is a change to the host, checked like any other.</p>
{#if problem}<p class="domi-error" role="alert"><Icon name="ring" />{problem}</p>{/if}
{#if problem}<p class="ia-error" role="alert"><Icon name="ring" />{problem}</p>{/if}
<div><Button variant="outline" onclick={turnOn} disabled={!!app.overview?.paused}>Turn on share links</Button></div>
{/if}
{:else}
@@ -130,34 +137,32 @@
<p class="ia-status" data-s="kept" role="status"><Icon name="check" /><span>Copied</span></p>
<p class="ia-hint">Expires on {longDate(link?.expires_at)}. To stop it sooner: Settings, Share links, Stop this link.</p>
{:else}
<Button variant="primary" full icon="copy" onclick={copy} disabled={!link || minting} data-autofocus>Copy link</Button>
<Button variant="primary" full icon="copy" onclick={copy} pending={minting || (!link && !problem && !fieldErr)} disabled={!link && !minting && !!(problem || fieldErr)} data-autofocus>Copy link</Button>
{/if}
{#if refused}<p class="ia-hint" role="alert">Your browser did not allow copying. Press Ctrl+C to copy the selected link.</p>{/if}
{#if copiedBefore && !copied}<p class="ia-hint">The link you copied before is stopped. Copy this one.</p>{/if}
<Segmented legend="Expires after" name="expiry" bind:value={days} onchange={() => mint()}
options={[{ value: "1", label: "1 day" }, { value: "7", label: "7 days" }, { value: "30", label: "30 days" }]} />
<div class="domi-field">
<label class="domi-field-label" for="share-prefix">Only addresses starting with</label>
<input id="share-prefix" class="domi-input" bind:value={prefix} onblur={() => mint()} onkeydown={(e) => { if (e.key === "Enter") { e.preventDefault(); void mint(); } }}
aria-invalid={fieldErr?.field === "path_prefix" ? "true" : undefined} />
{#if fieldErr?.field === "path_prefix"}<p class="domi-error"><Icon name="ring" />{fieldErr.message}</p>{/if}
<p class="ia-hint">/ shares the whole site. Try /share/summer-2026 for one album.</p>
<div class="ia-field" onfocusout={(e) => { if (!e.currentTarget.contains(e.relatedTarget as Node | null)) void mint(); }}>
<TextField id="share-prefix" label="Only addresses starting with" bind:value={prefix} spellcheck={false} autocomplete="off"
action="save" actionLabel="Make the link for these addresses" onsend={() => remint("path_prefix")}
error={fieldErr?.field === "path_prefix" ? fieldErr.message : undefined}
hint="/ shares the whole site. Try /share/summer-2026 for one album." />
</div>
{#if usingPassword}
<p class="ia-hint">This link asks for the password.</p>
<div><button type="button" class="domi-btn link" onclick={() => { usingPassword = false; password = ""; void mint(); }}>Remove the password</button></div>
<div><button type="button" class="ia-link" onclick={() => { usingPassword = false; password = ""; void mint(); }}>Remove the password</button></div>
{:else if showPassword}
<div class="domi-field">
<label class="domi-field-label" for="share-password">Password</label>
<input id="share-password" class="domi-input" type="password" autocomplete="new-password" bind:value={password}
aria-invalid={fieldErr?.field === "password" ? "true" : undefined} />
{#if fieldErr?.field === "password"}<p class="domi-error"><Icon name="ring" />{fieldErr.message}</p>{/if}
<p class="ia-hint">At least 8 characters. Send it to them separately.</p>
<div class="ia-field">
<TextField id="share-password" label="Password" type="password" autocomplete="new-password" bind:value={password}
action="save" actionLabel="Ask for this password on the link" onsend={() => { usingPassword = true; return remint("password"); }}
error={fieldErr?.field === "password" ? fieldErr.message : undefined}
hint="At least 8 characters. Send it to them separately." />
<div><Button onclick={() => { usingPassword = true; void mint(); }}>Use this password</Button></div>
</div>
{:else}
<div><button type="button" class="domi-btn link" onclick={() => (showPassword = true)}>Add a password</button></div>
<div><button type="button" class="ia-link" onclick={() => (showPassword = true)}>Add a password</button></div>
{/if}
{/if}
</Dialog>
+14
View File
@@ -0,0 +1,14 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Types only: tsconfig.json "paths" points "@domi/ui" here for svelte-check; Vite, Vitest and the build use the
// package itself. @domi/ui 1.0's index.ts imports Strike.svelte, which has no <script lang="ts">, and a strict
// svelte-check outside the package refuses that import (implicit any). These are the same exports Ianitor uses,
// taken from the components directly. Remove this file and the "paths" entry when @domi/ui fixes Strike.svelte.
export { default as Button } from "../node_modules/@domi/ui/src/components/Button.svelte";
export { default as TextField } from "../node_modules/@domi/ui/src/components/TextField.svelte";
export { default as Checkbox } from "../node_modules/@domi/ui/src/components/Checkbox.svelte";
export { default as Select } from "../node_modules/@domi/ui/src/components/Select.svelte";
export { default as Segmented } from "../node_modules/@domi/ui/src/components/Segmented.svelte";
export { DomiError } from "../node_modules/@domi/ui/src/lib/keys";
+3
View File
@@ -2,6 +2,9 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// The styles, once: @domi/ui (the Domi faces, the roles with Ianitor's values from data-domi-room="ianitor" on
// <html>, the controls), then Ianitor's own tokens and components on top.
import "@domi/ui/domi.css";
import "@ianitor/ui/tokens.css";
import "@ianitor/ui/components.css";
import { mount } from "svelte";
+6 -8
View File
@@ -6,6 +6,7 @@
// the install (the accepted 4th click). Until Custos can approve, approval is the server
// command control names (docs/pki.md).
import { onDestroy, onMount } from "svelte";
import { TextField } from "@domi/ui";
import { Banner, Button, Dialog, Icon, Segmented, Status } from "@ianitor/ui";
import HostMenu from "../components/HostMenu.svelte";
import IntermediateBanner from "../components/IntermediateBanner.svelte";
@@ -184,12 +185,9 @@
<Dialog title="New device certificate" kind="panel" onclose={closeForm}>
{#if !request}
<form id="device-form" onsubmit={issue} class="form">
<div class="domi-field">
<label class="domi-field-label" for="device-name">Device name</label>
<input id="device-name" class="domi-input" bind:value={name} autocomplete="off" aria-invalid={nameErr ? "true" : undefined} aria-describedby="device-name-h" />
{#if nameErr}<p class="domi-error"><Icon name="ring" />{nameErr}</p>{/if}
<p class="ia-hint" id="device-name-h">Shown in this list and inside the certificate.</p>
</div>
<TextField id="device-name" label="Device name" bind:value={name} autocomplete="off" action="send"
actionLabel="Request the certificate" clearOnSend={false} error={nameErr ?? undefined}
hint="Shown in this list and inside the certificate." />
<Segmented legend="What is it" name="kind" bind:value={kind} options={[{ value: "phone", label: "Phone or tablet" }, { value: "computer", label: "Computer" }, { value: "app", label: "Domi app" }]} />
<p class="ia-hint">{#if capped}Valid until {until}, when the Domi intermediate certificate ends (renew it to issue for a full year).{:else}Valid for {lifetime} days, until {until}.{/if} It lets this device into hosts that ask for a Domi device certificate.</p>
</form>
@@ -245,8 +243,8 @@
<style>
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.devices { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.devices li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 56px; padding: 6px 10px 6px 16px; border-top: 1px solid var(--hairline); }
.devices { list-style: none; margin: 0; padding: 0; border: 1px solid var(--domi-line); border-radius: var(--radius-lg); }
.devices li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 56px; padding: 6px 10px 6px 16px; border-top: 1px solid var(--domi-line); }
.devices li:first-child { border-top: 0; }
.dname { font-weight: 600; flex: 1 1 140px; }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-basis: 100%; }
+5 -5
View File
@@ -98,7 +98,7 @@
</script>
<h1 class="ia-display">{host ? `History of ${host}` : "History"}</h1>
{#if host}<div><button type="button" class="domi-btn link" onclick={() => navigate("/history")}>Show all changes</button></div>{/if}
{#if host}<div><button type="button" class="ia-link" onclick={() => navigate("/history")}>Show all changes</button></div>{/if}
{#if problem}<Banner tone="notice" live="status">{#snippet title()}{problem}{/snippet}</Banner>{/if}
<div class="cols">
@@ -168,11 +168,11 @@
.cols { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.list { flex: 1 1 360px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--text); text-align: left; cursor: pointer; }
.entry:hover { background: var(--surface); }
.entry[aria-current="true"] { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--domi-fg); text-align: left; cursor: pointer; }
.entry:hover { background: var(--domi-panel); }
.entry[aria-current="true"] { background: var(--domi-hover); border-color: color-mix(in srgb, var(--domi-accent) 55%, transparent); }
.sum { font-weight: 600; }
.detail { flex: 2 1 360px; background: var(--colonnade); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.detail { flex: 2 1 360px; background: var(--domi-chrome); border: 1px solid var(--domi-line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.detail ul { margin: 0; padding-left: 1.1rem; }
.buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
</style>
+1 -1
View File
@@ -112,7 +112,7 @@
Routes live in the {o.repo.name} repository, one file per host.
{#if o.repo.last_push_at}Last pushed to Gitea {atTime(o.repo.last_push_at, app.now)}.{/if}
{#if o.repo.unpushed}{o.repo.unpushed} changes not yet pushed.{/if}
<button type="button" class="domi-btn link" onclick={() => navigate("/history")}>See history</button>
<button type="button" class="ia-link" onclick={() => navigate("/history")}>See history</button>
</p>
{/if}
+10 -11
View File
@@ -4,6 +4,7 @@
<script lang="ts">
// Handoff §13.6: signing the intermediate by hand on the offline computer (the temporary step
// until Custos can sign, docs/pki.md). The root key never comes to this server.
import { TextField } from "@domi/ui";
import { Banner, Button, Icon } from "@ianitor/ui";
import { ApiError, post, put, sentence } from "../lib/api";
import { app, navigate, refresh } from "../lib/app.svelte";
@@ -120,24 +121,22 @@
<p class="ia-label">Step 3</p>
<h2 class="ia-h3">Upload the signed certificate</h2>
{#if paste}
<div class="domi-field">
<label class="domi-field-label" for="cert-paste">Signed certificate</label>
<textarea id="cert-paste" class="domi-input" rows="8" bind:value={pem} aria-invalid={err ? "true" : undefined}></textarea>
</div>
<TextField id="cert-paste" label="Signed certificate" multiline rows={8} enterSends="never" spellcheck={false} bind:value={pem}
action="send" actionLabel="Use the pasted certificate" clearOnSend={false} onsend={() => { void use(); }} />
{:else}
<div class="domi-field">
<label class="domi-field-label" for="cert-file">Signed certificate (.crt)</label>
<input id="cert-file" class="domi-input" type="file" accept=".crt,.pem" onchange={file} aria-invalid={err ? "true" : undefined} />
<div><button type="button" class="domi-btn link" onclick={() => (paste = true)}>Paste it instead</button></div>
<div class="ia-field">
<label class="ia-field-label" for="cert-file">Signed certificate (.crt)</label>
<input id="cert-file" class="ia-input" type="file" accept=".crt,.pem" onchange={file} aria-invalid={err ? "true" : undefined} />
<div><button type="button" class="ia-link" onclick={() => (paste = true)}>Paste it instead</button></div>
</div>
{/if}
{#if err}<p class="domi-error" role="alert"><Icon name="ring" />{err}</p>{/if}
{#if err}<p class="ia-error" role="alert"><Icon name="ring" />{err}</p>{/if}
<div><Button variant="primary" onclick={use} {pending} disabled={!pem.includes("BEGIN CERTIFICATE")}>Use this certificate</Button></div>
</section>
{/if}
<style>
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.step { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fp { word-break: break-all; color: var(--accent-strong); }
.step { border: 1px solid var(--domi-line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fp { word-break: break-all; color: var(--domi-accent-strong); }
</style>
+28 -23
View File
@@ -5,6 +5,7 @@
// Handoff §8.3: Settings with General, API (⚙ → API → New token = 3 clicks, Copy token the
// accepted 4th), Share links and About.
import { onMount } from "svelte";
import { DomiError, TextField } from "@domi/ui";
import { Banner, Button, Dialog, Segmented } from "@ianitor/ui";
import { ApiError, call, del, get, newKey, patch, post, sentence } from "../lib/api";
import { app, navigate, toast } from "../lib/app.svelte";
@@ -92,23 +93,30 @@
}
}
// Renames the new token now (its field's seal) or when the dialog closes. False when the name was refused.
async function rename(): Promise<boolean> {
if (!made || !tokenName.trim() || tokenName.trim() === made.name) return true;
nameErr = null;
try {
await patch(`/tokens/${encodeURIComponent(made.id)}`, { name: tokenName.trim() });
made.name = tokenName.trim();
toast("Renamed.");
} catch (e) {
if (e instanceof ApiError && e.code === "token.name") {
nameErr = e.body.message;
return false;
}
}
return true;
}
async function closeToken(force = false) {
if (!made) return;
if (!tokenCopied && !force) {
askClose = true;
return;
}
if (tokenName.trim() && tokenName !== made.name) {
try {
await patch(`/tokens/${encodeURIComponent(made.id)}`, { name: tokenName.trim() });
toast("Renamed.");
} catch (e) {
if (e instanceof ApiError && e.code === "token.name") {
nameErr = e.body.message;
return;
}
}
}
if (!(await rename())) return;
// The token leaves memory with the dialog.
made = null;
tokenName = "";
@@ -169,7 +177,7 @@
<p>{settings?.watch_seconds ?? app.overview?.site?.watch_seconds ?? 60} seconds</p>
<p class="ia-label">Signed in</p>
<p>{viewer ? (viewer.via === "authelia" ? `${viewer.name} through Authelia` : `API token "${viewer.name}"`) : "Through Authelia"}</p>
{#if app.overview?.site?.auth_logout_url}<p><a class="domi-btn link" href={app.overview.site.auth_logout_url}>Sign out</a></p>{/if}
{#if app.overview?.site?.auth_logout_url}<p><a class="ia-link" href={app.overview.site.auth_logout_url}>Sign out</a></p>{/if}
{:else if tab === "api"}
<div class="row">
<h2 class="ia-h3">API tokens</h2>
@@ -236,7 +244,7 @@
<p>Ianitor Domi 0.1.0</p>
<p>MPL-2.0</p>
<p>Built, tested and signed by Fabrica Domi</p>
<p><a class="domi-btn link" href="https://gitea.marek-novak.cz/mnovak/Ianitor" rel="noreferrer">Source on Gitea</a></p>
<p><a class="ia-link" href="https://gitea.marek-novak.cz/mnovak/Ianitor" rel="noreferrer">Source on Gitea</a></p>
{/if}
</div>
@@ -246,12 +254,9 @@
<p class="ia-text2">Ianitor cannot show it again; if it is lost, make a new one and revoke this one.</p>
<input class="ia-secret" readonly value={made.token} aria-label="New API token" onfocus={(e) => (e.currentTarget as HTMLInputElement).select()} />
<div class="grid">
<div class="domi-field">
<label class="domi-field-label" for="token-name">Name</label>
<input id="token-name" class="domi-input" bind:value={tokenName} aria-invalid={nameErr ? "true" : undefined} />
{#if nameErr}<p class="domi-error">{nameErr}</p>{/if}
<p class="ia-hint">Rename it now or later, so you know what uses it.</p>
</div>
<TextField id="token-name" label="Name" bind:value={tokenName} autocomplete="off" action="save" actionLabel="Rename the token"
onsend={async () => { if (!(await rename())) throw new DomiError(nameErr ?? "That name was not accepted."); }}
error={nameErr ?? undefined} hint="Rename it now or later, so you know what uses it." />
<Button variant={tokenCopied ? "quiet" : "primary"} icon="copy" onclick={copyToken} data-autofocus>{tokenCopied ? "Copy again" : "Copy token"}</Button>
</div>
{#if tokenCopied}<p role="status">Copied. Paste it into Custos now. Ianitor cannot show it again.</p>{/if}
@@ -266,15 +271,15 @@
<style>
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tabs [role="tab"] { min-height: 44px; padding: 0 1rem; border-radius: var(--radius-sm); border: 0; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.tabs [role="tab"] { min-height: 44px; padding: 0 1rem; border-radius: var(--radius-sm); border: 0; background: none; color: var(--domi-fg-2); font-weight: 600; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--domi-hover); color: var(--domi-fg); }
.panel { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.rows li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--domi-line); }
.grow { flex: 1 1 200px; min-width: 0; }
.tname { font-weight: 600; }
.struck { text-decoration: line-through; color: var(--muted); }
.struck { text-decoration: line-through; color: var(--domi-muted); }
.grid { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 719.98px) { .grid { grid-template-columns: 1fr; } }
</style>
+2 -1
View File
@@ -13,7 +13,8 @@
"isolatedModules": true,
"skipLibCheck": true,
"types": ["vite/client"],
"lib": ["ES2022", "DOM", "DOM.Iterable"]
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"paths": { "@domi/ui": ["./src/domi-ui-types.ts"] }
},
"include": ["src/**/*.ts", "src/**/*.svelte", "tests/**/*.ts", "../../packages/ui/src/**/*.ts", "../../packages/ui/src/**/*.svelte"]
}
+16
View File
@@ -170,6 +170,22 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit
## 10. Handover
(Rewritten at the end of every session: what changed, what was not verified, which build is deployed, the next step.)
**2026-11-22: the web UI on @domi/ui, the shared Domi design system (docs/domi-ui.md). Open as a PR, not merged.**
- **Changed:** `@domi/ui` v1.0.0 pinned by tag in apps/web and packages/ui; its fonts, roles (`data-domi-room="ianitor"`,
the same hex) and controls replace Ianitor's copies. Buttons are its Button through Ianitor's adapter (desktop sizes
kept); every text field is its TextField with a seal; checkboxes, the secret picker and segmented controls are its
components. Ianitor's 22 role names are renamed to `--domi-*`; its own tokens and components stay in packages/ui.
Disabled buttons are natively disabled now (their reasons are visible text). A types-only shim covers
@domi/ui's Strike.svelte until it is fixed upstream.
- **Tests:** vitest 21; svelte-check clean; Playwright web 6/6 (the Apply lookup is exact now), aula 5/5; 13 screens
compared before and after (in the PR). No Rust change.
- **Deployed:** nothing.
- **Blocker (Mark):** domi-design is private, and the Nix build fetches pnpm dependencies without credentials, so
`nix build .#ianitor` would fail. Either Gitea serves domi-design to anonymous readers (as domi-pki), or Ianitor
vendors the tagged files. Then update `fetchPnpmDeps`'s hash in deploy/nixos/web.nix and merge.
- **Not verified:** the Nix build; Fabrica's runners installing @domi/ui; a phone (the 48 px touch sizes).
**2026-11-22: Phase 4, hardening and release.**
- **Changed:**
- Edge: a 60 s header deadline (slowloris), lookups on its own bounded resolver threads with one lookup per name, pipelining on both listeners, a proxy socket (`/run/ianitor-proxy/edge.sock`, sticky 3770) on which edge trusts Caddy's X-Forwarded-For, and `unix:` upstreams with a strict charset.
+86
View File
@@ -0,0 +1,86 @@
# Ianitor on @domi/ui
The web UI's controls and roles come from **@domi/ui**, the shared Domi design system (Gitea `mnovak/domi-design`,
its `docs/INTEGRATE.md` and `docs/MIGRATION.md`). It is pinned by tag in `apps/web` and `packages/ui`:
```json
"@domi/ui": "git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.0"
```
The lockfile holds the tag's commit (a8d69a9). Upgrade by changing the tag after reading its CHANGELOG.md.
## What comes from where
| Part | From | Notes |
| :-- | :-- | :-- |
| Fonts (Cinzel, Cormorant Garamond, Manrope; latin and latin-ext) | @domi/ui `domi.css` | bundled from npm, nothing fetched at run time. The `@fontsource` packages are gone |
| Roles: ground, text, accent, leaf, ok, warning, danger | @domi/ui, `data-domi-room="ianitor"` on `<html>` | the same hex as before (domi-design PALETTE.md). Ianitor's old names are renamed to `--domi-*` (MIGRATION.md, ianitor table); no legacy alias file |
| Buttons | @domi/ui `Button`, through Ianitor's `Button.svelte` | see the mapping below |
| Text fields | @domi/ui `TextField`, every one with its seal | see the actions below |
| Checkboxes, the secret picker, segmented controls | @domi/ui `Checkbox`, `Select`, `Segmented` | Ianitor's `Segmented.svelte` keeps the visible name above the choices |
| Banners, dialogs, status, chips, lists, menus, toasts, the number and file inputs | Ianitor (`packages/ui`, `ia-*`) | Ianitor's own tokens (status names, washes, type sizes, spacing, radii) stay in `packages/ui/src/tokens.css` |
`packages/ui` is now Ianitor's own components on top of @domi/ui. Its old `.domi-btn`, `.domi-field` and
`.domi-input` rules are gone (they had the same class names as @domi/ui's); the link-style button is `.ia-link`.
## Buttons
| Ianitor | @domi/ui | Desktop height |
| :-- | :-- | :-- |
| default (`quiet`), `outline` | `plate`, size `lg` | 44 px, as before |
| `primary` | `primary` (the leaf), size `xl` | 50 px, as before |
| `danger` | `danger`, size `lg` | 44 px |
| `small` | size `md` | 34 px (was 36) |
| `full` | `block` | |
| `pending` | `status="loading"` (the interpuncts) | |
| `label` | the accessible name, through `aria-labelledby` | "+ Host" is still "Add a host" |
On a touch screen every button is at least 48 px (@domi/ui). An `onclick` that returns a Promise shows loading,
then a check or a refusal, by itself.
**A change in behaviour:** a disabled button is now natively disabled, so it is skipped by Tab. Before, it was
`aria-disabled` and stayed focusable so its reason could be read. Every disabled button with a reason (Apply,
Restore this version, + Host while changes are blocked) shows that reason as visible text beside it, which is
@domi/ui's rule ("say elsewhere why"). Copy link is *working*, not disabled, while the link is being made, so the
share dialog still opens with the focus on it.
## Text fields and their seals
| Field | Seal | Enter |
| :-- | :-- | :-- |
| Host form: every text field but the last | `next` | goes to the next field |
| Host form: the last text field shown | `save`, "Apply this host" | applies the form, as Apply does |
| Share link: only addresses starting with | `save`, "Make the link for these addresses" | makes a new link (as leaving the field did) |
| Share link: password | `save`, "Ask for this password on the link" | as Use this password |
| Device name | `send`, "Request the certificate" | as Issue |
| New token's name | `save`, "Rename the token" | renames it now (before, only when the dialog closed) |
| Signed certificate (pasted) | `send`, "Use the pasted certificate" | a new line (`enterSends="never"`); Ctrl+Enter or the seal uses it |
The host form still checks a field when the focus leaves it, now when it leaves the field and its seal.
## Type checking: a shim until @domi/ui fixes Strike.svelte
@domi/ui 1.0's `index.ts` imports `Strike.svelte`, which has no `<script lang="ts">`. Outside the package, a strict
svelte-check refuses that import (implicit any). `apps/web/tsconfig.json` maps `@domi/ui` to
`apps/web/src/domi-ui-types.ts`, which re-exports the components Ianitor uses straight from their files. This is
for types only: Vite, Vitest and the build use the package. Remove both when @domi/ui adds the script tag
(reported to the domi-design session).
## Risks
- **The Nix build cannot fetch @domi/ui.** `deploy/nixos/web.nix` fetches the pnpm dependencies in a sandbox
without credentials. domi-pki is readable without a login, but domi-design is not (checked 2026-11-22: an
anonymous `git ls-remote` is refused). Until Gitea serves domi-design to anonymous readers, or Ianitor vendors
the tagged files, `nix build .#ianitor` fails, and `fetchPnpmDeps`'s hash in `web.nix` cannot be updated.
**This change must not be merged before that is decided** (Mark).
- Fabrica's runners need a Gitea login for `pnpm install` (the Windows runner on Mark's PC has Git Credential
Manager; INTEGRATE.md §1 has the CI way: a short-lived credential from Custos).
- A visual change Mark has not seen beyond the asked-for controls: the field labels are @domi/ui's (13 px, 600),
and Ianitor's group labels (Certificate, Visit log, What is it) follow them so a form reads as one; the
segmented controls are as wide as their choices, not the panel.
## Atrium Domi
Ianitor runs on the home server; Atrium Domi lists programs on Mark's PC (Atrium `docs/APP_CONTRACT.md`), so
Ianitor has no room there and no `domi-app.toml`. If it ever gets one: `free = true` (Mark's pricing: Ianitor is
free).
+3
View File
@@ -119,6 +119,9 @@ That is a remote API with its own authentication (control's API tokens, docs/api
So Ianitor stops before Part A. If a Domi app ever needs to ask Ianitor for something, the answer is a scoped API
token and a documented call, written in its own design doc.
For the same reason Ianitor has no room in Atrium Domi, which lists programs on Mark's PC. Mark's pricing, should it
ever get one: Ianitor is free (`free = true`; docs/domi-ui.md).
## 5. Showcase: the e2e suite, screenshots and videos
`apps/web/playwright.config.ts`, `apps/web/e2e/`:
+4
View File
@@ -39,6 +39,10 @@ Conventions in this file:
## 1. Design tokens (packages/ui)
> Since 2026-11-22 the roles, fonts and controls come from @domi/ui (docs/domi-ui.md): the colours below are its
> `--domi-*` roles with Ianitor's values, and the buttons and fields are its components. The rest of this section
> still describes what Ianitor keeps.
### 1.1 The block to paste
`packages/ui/src/tokens.css`. Apply the class `ia` to `<body>` (the artifact puts the tokens on `.ia`;
+6 -5
View File
@@ -3,18 +3,19 @@
"version": "0.2.0",
"private": true,
"license": "MPL-2.0",
"description": "The shared dark Domi theme (murex palette) and its Svelte components.",
"description": "Ianitor's own components on top of @domi/ui (the shared Domi design system): banners, dialogs, status, and adapters for Button and Segmented.",
"type": "module",
"svelte": "./src/index.ts",
"exports": {
".": { "svelte": "./src/index.ts", "default": "./src/index.ts" },
".": {
"svelte": "./src/index.ts",
"default": "./src/index.ts"
},
"./tokens.css": "./src/tokens.css",
"./components.css": "./src/components.css"
},
"dependencies": {
"@fontsource/cinzel": "^5.1.0",
"@fontsource/cormorant-garamond": "^5.1.0",
"@fontsource/manrope": "^5.1.0"
"@domi/ui": "git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.0"
},
"peerDependencies": {
"svelte": "^5.20.0"
+26 -24
View File
@@ -3,11 +3,17 @@
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
<script lang="ts">
import type { Snippet } from "svelte";
import { Button as DomiButton } from "@domi/ui";
import Icon from "./Icon.svelte";
import type { IconName } from "./icons";
// Handoff §2.1: disabled is aria-disabled (it stays focusable and its reason is read through
// aria-describedby); pending keeps the label, adds a spinner and ignores clicks.
// Ianitor's buttons are @domi/ui's Button (struck plate, leaf, states, 48 px on touch). This maps Ianitor's props
// onto it, so the sizes on a desktop stay as they were: an ordinary button 44 px (lg), the primary 50 px (xl),
// a small one 34 px (md). quiet and outline were both bordered buttons here; they are the plate now.
// pending the button shows its work (status loading); a second press does nothing
// disabled not pressable; say elsewhere why (describedby points at that text)
// label the accessible name when it says more than the words ("+ Host" is "Add a host")
// icon one of Ianitor's icons, before the words
let {
variant = "quiet",
icon,
@@ -22,7 +28,7 @@
children,
...rest
}: {
variant?: "primary" | "quiet" | "outline" | "danger" | "link";
variant?: "primary" | "quiet" | "outline" | "danger";
icon?: IconName;
disabled?: boolean;
pending?: boolean;
@@ -31,32 +37,28 @@
small?: boolean;
full?: boolean;
type?: "button" | "submit";
onclick?: (e: MouseEvent) => void;
onclick?: (e: MouseEvent) => unknown;
children?: Snippet;
[key: string]: unknown;
} = $props();
function click(e: MouseEvent) {
if (disabled || pending) {
e.preventDefault();
return;
}
onclick?.(e);
}
const uid = $props.id();
const nameId = `ia-btn-name-${uid}`;
const domiVariant = $derived(variant === "primary" ? "primary" : variant === "danger" ? "danger" : "plate");
const size = $derived(small ? "md" : variant === "primary" ? "xl" : "lg");
</script>
<button
{type}
class="domi-btn {variant === 'quiet' ? '' : variant}"
class:small
class:full
aria-disabled={disabled || pending ? "true" : undefined}
aria-busy={pending ? "true" : undefined}
aria-describedby={describedby}
aria-label={label}
onclick={click}
<DomiButton
{...rest}
variant={domiVariant}
{size}
{type}
block={full}
{disabled}
status={pending ? "loading" : undefined}
aria-describedby={describedby}
aria-labelledby={label ? nameId : undefined}
{onclick}
>
{#if pending}<span class="spin" aria-hidden="true"></span>{:else if icon}<Icon name={icon} />{/if}
{@render children?.()}
</button>
{#if icon}<Icon name={icon} />{/if}{@render children?.()}{#if label}<span id={nameId} hidden>{label}</span>{/if}
</DomiButton>
+19 -22
View File
@@ -2,10 +2,14 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
<script lang="ts" generics="T extends string">
// Handoff §2.10: a radio group in a fieldset; arrows move and select (native radios).
import { Segmented as DomiSegmented } from "@domi/ui";
// Handoff §2.10: a few choices of one thing, with its name shown above them. The control is @domi/ui's Segmented
// (a radio group with one Tab stop; arrows, Home and End move the choice); Ianitor keeps the visible name.
// `name` is kept for the call sites; @domi/ui's group needs none.
let {
legend,
name,
name: _name,
options,
value = $bindable(),
disabled = [],
@@ -20,26 +24,19 @@
describedby?: string;
onchange?: (v: T) => void;
} = $props();
const uid = $props.id();
const choices = $derived(options.map((o) => ({ value: o.value, label: o.label, disabled: disabled.includes(o.value) })));
</script>
<fieldset class="domi-field" aria-describedby={describedby}>
<legend class="domi-field-label">{legend}</legend>
<div class="ia-seg">
{#each options as o (o.value)}
<label>
<input
type="radio"
{name}
value={o.value}
checked={value === o.value}
disabled={disabled.includes(o.value)}
onchange={() => {
value = o.value;
onchange?.(o.value);
}}
/>
{o.label}
</label>
{/each}
<div class="ia-field" role="group" aria-labelledby="ia-seg-{uid}" aria-describedby={describedby}>
<span class="ia-field-label" id="ia-seg-{uid}">{legend}</span>
<div>
<DomiSegmented
label={legend}
options={choices}
bind:value={() => value, (v) => (value = v as T)}
onchange={(v) => onchange?.(v as T)}
/>
</div>
</fieldset>
</div>
+59 -103
View File
@@ -2,23 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/* The shared Domi components as drawn (docs/ui-handoff.md §2). Class names follow the
artifact: domi-* from the Domi system, ia-* for Ianitor. */
/* ── Fonts (self-hosted, OFL; §1.3) ─────────────────────────────────────── */
@import "@fontsource/cinzel/latin-500.css";
@import "@fontsource/cormorant-garamond/latin-500.css";
@import "@fontsource/cormorant-garamond/latin-600.css";
@import "@fontsource/manrope/latin-400.css";
@import "@fontsource/manrope/latin-600.css";
@import "@fontsource/manrope/latin-700.css";
/* latin-ext: Czech names and places (č, ř, ů) in host names, device names and messages. */
@import "@fontsource/cinzel/latin-ext-500.css";
@import "@fontsource/cormorant-garamond/latin-ext-500.css";
@import "@fontsource/cormorant-garamond/latin-ext-600.css";
@import "@fontsource/manrope/latin-ext-400.css";
@import "@fontsource/manrope/latin-ext-600.css";
@import "@fontsource/manrope/latin-ext-700.css";
/* Ianitor's own components as drawn (docs/ui-handoff.md §2), on top of @domi/ui. The controls (buttons, fields,
segmented controls, checkboxes, selects) and the fonts are @domi/ui's (domi-*); everything here is ia-*. */
html, body { margin: 0; }
@@ -33,89 +18,65 @@ html, body { margin: 0; }
.ia .ia-display { font-family: var(--font-book); font-weight: 500; font-size: var(--fs-display); line-height: var(--lh-display); }
.ia .ia-h2 { font-family: var(--font-book); font-weight: 500; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.ia .ia-h3 { font-family: var(--font-book); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ia .ia-label { font-weight: 700; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.ia .ia-muted { color: var(--muted); }
.ia .ia-text2 { color: var(--text-2); }
.ia .ia-hint { color: var(--muted); font-size: var(--fs-hint); line-height: var(--lh-hint); }
.ia .ia-sub { color: var(--muted); font-size: var(--fs-sub); }
.ia .ia-label { font-weight: 700; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--domi-muted); }
.ia .ia-muted { color: var(--domi-muted); }
.ia .ia-text2 { color: var(--domi-fg-2); }
.ia .ia-hint { color: var(--domi-muted); font-size: var(--fs-hint); line-height: var(--lh-hint); }
.ia .ia-sub { color: var(--domi-muted); font-size: var(--fs-sub); }
.ia .ia-wordmark { font-family: var(--font-inscription); font-weight: 500; font-size: var(--fs-wordmark); letter-spacing: var(--tracking-wordmark); color: var(--gilt); }
.ia .ia-code { font-family: var(--font-inscription); font-weight: 500; font-size: var(--fs-code); letter-spacing: 0.16em; color: var(--accent-strong); }
.ia b, .ia strong { font-weight: 700; color: var(--text); }
.ia .ia-code { font-family: var(--font-inscription); font-weight: 500; font-size: var(--fs-code); letter-spacing: 0.16em; color: var(--domi-accent-strong); }
.ia b, .ia strong { font-weight: 700; color: var(--domi-fg); }
/* ── Buttons (§2.1) ─────────────────────────────────────────────────────── */
.ia .domi-btn {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
min-height: var(--target); padding: 0 1.1rem; border-radius: var(--radius-sm);
border: 1px solid var(--control-edge); background: transparent; color: var(--text-2);
font-weight: 600; font-size: var(--fs-button); cursor: pointer; text-decoration: none;
transition: border-color var(--dur-color) var(--ease), background var(--dur-color) var(--ease),
color var(--dur-color) var(--ease), box-shadow var(--dur-lift) var(--ease), transform var(--dur-lift) var(--ease);
/* A button that reads as a link: an action inside a sentence or under a field ("Use wiki.home.test", "Add a rule"). */
.ia .ia-link {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; padding: 0.6rem 0; min-height: var(--target);
background: none; color: var(--domi-accent); font: inherit; font-weight: 600; font-size: var(--fs-button);
text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.ia .domi-btn:hover:not([aria-disabled="true"]) { border-color: var(--accent); background: var(--hover-wash); color: var(--text); }
.ia .domi-btn.primary {
min-height: 50px; padding: 0 1.6rem; border-radius: var(--radius); border-color: var(--primary-edge);
background: linear-gradient(180deg, var(--primary-high) 0%, var(--primary-mid) 55%, var(--primary-low) 100%);
color: var(--on-primary); font-weight: 700; box-shadow: var(--leaf-bevel);
}
.ia .domi-btn.primary:hover:not([aria-disabled="true"]) { transform: translateY(-1px); color: var(--on-primary);
background: linear-gradient(180deg, var(--primary-high) 0%, var(--primary-mid) 55%, var(--primary-low) 100%); }
.ia .domi-btn.primary:focus-visible { outline: var(--focus-ring-primary); }
.ia .domi-btn.outline { border-color: var(--edge-outline); color: var(--accent); }
.ia .domi-btn.danger { border-color: var(--edge-down); color: var(--danger); }
.ia .domi-btn.danger:hover:not([aria-disabled="true"]) { background: var(--danger-hover); border-color: var(--danger); color: var(--danger); }
.ia .domi-btn.link {
border: 0; padding: 0.6rem 0; min-height: var(--target); background: none; color: var(--accent);
text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600;
}
.ia .domi-btn.small { min-height: 36px; padding: 0 0.8rem; }
.ia .domi-btn.full { width: 100%; }
.ia .domi-btn[aria-disabled="true"] { color: var(--disabled); border-color: var(--hairline); cursor: not-allowed; box-shadow: none; background: transparent; }
.ia .domi-btn.primary[aria-disabled="true"] { background: var(--surface-2); color: var(--disabled); }
.ia .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ia-spin 0.8s linear infinite; }
@keyframes ia-spin { to { transform: rotate(360deg); } }
.ia .ia-icon-btn {
display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer;
border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--domi-fg-2); cursor: pointer;
}
.ia .ia-icon-btn:hover { border-color: var(--control-edge); color: var(--text); }
.ia .ia-icon-btn:hover { border-color: var(--domi-edge); color: var(--domi-fg); }
.ia svg.ia-icon { width: 18px; height: 18px; flex: none; }
/* ── Status (§2.2) ──────────────────────────────────────────────────────── */
.ia .ia-status { display: inline-flex; align-items: center; gap: 8px; }
.ia .ia-status .word { font-weight: 700; font-size: var(--fs-state); font-variant-caps: all-small-caps; letter-spacing: var(--tracking-state); }
.ia .ia-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.ia [data-s="healthy"] .ia-dot { background: var(--healthy); }
.ia [data-s="healthy"] .word, .ia [data-s="kept"] .word, .ia [data-s="kept"] svg { color: var(--healthy); }
.ia [data-s="degraded"] .ia-dot { border: 2px solid var(--degraded); background: linear-gradient(90deg, var(--degraded) 50%, transparent 50%); }
.ia [data-s="degraded"] .word, .ia [data-s="reverted"] .word, .ia [data-s="reverted"] svg { color: var(--degraded); }
.ia [data-s="healthy"] .ia-dot { background: var(--domi-ok); }
.ia [data-s="healthy"] .word, .ia [data-s="kept"] .word, .ia [data-s="kept"] svg { color: var(--domi-ok); }
.ia [data-s="degraded"] .ia-dot { border: 2px solid var(--domi-warning); background: linear-gradient(90deg, var(--domi-warning) 50%, transparent 50%); }
.ia [data-s="degraded"] .word, .ia [data-s="reverted"] .word, .ia [data-s="reverted"] svg { color: var(--domi-warning); }
.ia [data-s="down"] .ia-dot { border: 3px solid var(--down); }
.ia [data-s="down"] .word { color: var(--down); }
.ia [data-s="unknown"] .ia-dot { border: 2px dashed var(--unknown); }
.ia [data-s="unknown"] .word { color: var(--muted); }
.ia [data-s="unknown"] .word { color: var(--domi-muted); }
.ia [data-s="running"] .word, .ia [data-s="running"] svg { color: var(--running); }
/* ── Chips (§2.3) ───────────────────────────────────────────────────────── */
.ia .ia-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ia .ia-chip { border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); color: var(--text-2); font-size: var(--fs-chip); padding: 1px 10px; white-space: nowrap; }
.ia .ia-chip { border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); color: var(--domi-fg-2); font-size: var(--fs-chip); padding: 1px 10px; white-space: nowrap; }
/* ── Engine chip (§2.4) ─────────────────────────────────────────────────── */
.ia .ia-engine {
display: inline-flex; align-items: center; gap: 8px; min-height: var(--target); padding: 0 16px 0 14px;
border: 1px solid var(--control-edge); border-radius: var(--radius-pill); background: var(--surface);
color: var(--text); font-weight: 600; font-size: 0.92rem; cursor: pointer;
border: 1px solid var(--domi-edge); border-radius: var(--radius-pill); background: var(--domi-panel);
color: var(--domi-fg); font-weight: 600; font-size: 0.92rem; cursor: pointer;
}
.ia .ia-engine small { color: var(--muted); font-weight: 400; font-size: 0.86rem; }
.ia .ia-engine small { color: var(--domi-muted); font-weight: 400; font-size: 0.86rem; }
/* ── Lists and rows (§2.5) ──────────────────────────────────────────────── */
.ia .ia-list { border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.ia .ia-list { border: 1px solid var(--domi-line); border-radius: var(--radius-lg); }
/* No overflow clipping on the list: a row's menu must reach past it. The end rows carry the corners. */
.ia .ia-list > :first-child { border-top-left-radius: calc(var(--radius-lg) - 1px); border-top-right-radius: calc(var(--radius-lg) - 1px); }
.ia .ia-list > :last-child { border-bottom-left-radius: calc(var(--radius-lg) - 1px); border-bottom-right-radius: calc(var(--radius-lg) - 1px); }
.ia .ia-row { display: grid; grid-template-columns: 128px minmax(0, 1.4fr) minmax(0, 1.6fr) 44px; gap: 16px; padding: 12px 10px 12px 18px; align-items: start; border-top: 1px solid var(--hairline); }
.ia .ia-row { display: grid; grid-template-columns: 128px minmax(0, 1.4fr) minmax(0, 1.6fr) 44px; gap: 16px; padding: 12px 10px 12px 18px; align-items: start; border-top: 1px solid var(--domi-line); }
.ia .ia-row:first-child { border-top: 0; }
.ia .ia-row.head { background: var(--colonnade); padding-top: 10px; padding-bottom: 10px; align-items: center; }
.ia .ia-row.head { background: var(--domi-chrome); padding-top: 10px; padding-bottom: 10px; align-items: center; }
.ia .ia-host { font-weight: 600; font-size: var(--fs-host); overflow-wrap: anywhere; }
.ia .ia-row .problem { color: var(--text-2); }
.ia .ia-row .problem { color: var(--domi-fg-2); }
@media (max-width: 719.98px) {
.ia .ia-row { grid-template-columns: minmax(0, 1fr) 44px; padding: 12px 6px 12px 14px; gap: 8px; }
.ia .ia-row.head { display: none; }
@@ -126,36 +87,36 @@ html, body { margin: 0; }
.ia .ia-menu-wrap { position: relative; }
.ia .ia-menu {
position: absolute; right: 0; top: 46px; z-index: 20; min-width: 250px; margin: 0; padding: 6px; list-style: none;
background: var(--colonnade); border: 1px solid var(--hairline-strong); border-radius: var(--radius); box-shadow: var(--shadow-dialog);
background: var(--domi-chrome); border: 1px solid var(--hairline-strong); border-radius: var(--radius); box-shadow: var(--shadow-dialog);
}
.ia .ia-menu [role="menuitem"] {
display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-sm);
background: none; color: var(--text-2); font-weight: 600; font-size: 0.92rem; text-align: left; cursor: pointer;
background: none; color: var(--domi-fg-2); font-weight: 600; font-size: 0.92rem; text-align: left; cursor: pointer;
}
.ia .ia-menu [role="menuitem"]:hover, .ia .ia-menu [role="menuitem"]:focus { background: var(--surface-2); color: var(--text); outline: none; }
.ia .ia-menu [role="menuitem"]:hover, .ia .ia-menu [role="menuitem"]:focus { background: var(--domi-hover); color: var(--domi-fg); outline: none; }
.ia .ia-menu [role="menuitem"]:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.ia .ia-menu [role="menuitem"].danger { color: var(--danger); }
.ia .ia-menu [role="menuitem"][aria-disabled="true"] { color: var(--disabled); cursor: not-allowed; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.ia .ia-menu .reason { flex-basis: 100%; padding-left: 28px; font-weight: 400; font-size: var(--fs-sub); color: var(--muted); }
.ia .ia-menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 4px 0; }
.ia .ia-menu [role="menuitem"].danger { color: var(--domi-danger); }
.ia .ia-menu [role="menuitem"][aria-disabled="true"] { color: var(--domi-disabled); cursor: not-allowed; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.ia .ia-menu .reason { flex-basis: 100%; padding-left: 28px; font-weight: 400; font-size: var(--fs-sub); color: var(--domi-muted); }
.ia .ia-menu hr { border: 0; border-top: 1px solid var(--domi-line); margin: 4px 0; }
/* ── Bar, banners (§2.7, §2.8) ──────────────────────────────────────────── */
.ia .ia-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px 10px 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.ia .ia-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px 10px 18px; background: var(--domi-panel); border: 1px solid var(--domi-line); border-radius: var(--radius-lg); }
.ia .ia-bar .grow { flex: 1 1 260px; min-width: 0; }
.ia .ia-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 18px; border-radius: var(--radius-lg); border: 1px solid var(--edge-degraded); background: var(--wash-degraded); }
.ia .ia-banner.kept { border-color: var(--edge-kept); background: var(--wash-kept); }
.ia .ia-banner.down { border-color: var(--edge-down); background: var(--wash-down); }
.ia .ia-banner .ia-banner-icon { width: 22px; height: 22px; color: var(--degraded); }
.ia .ia-banner .ia-banner-icon { width: 22px; height: 22px; color: var(--domi-warning); }
.ia .ia-banner.kept .ia-banner-icon { color: var(--kept); }
.ia .ia-banner.down .ia-banner-icon { color: var(--down); }
.ia .ia-banner .body { flex: 1 1 280px; min-width: 0; }
.ia .ia-banner .line2 { color: var(--text-2); font-size: 0.9rem; }
.ia .ia-banner .line2 { color: var(--domi-fg-2); font-size: 0.9rem; }
.ia .ia-banner .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
@media (max-width: 719.98px) { .ia .ia-banner { padding: 12px 14px; } }
/* ── Dialogs, panel, popover, sheets (§2.9) ─────────────────────────────── */
.ia dialog.ia-dialog {
background: var(--colonnade); color: var(--text); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
background: var(--domi-chrome); color: var(--domi-fg); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
box-shadow: var(--shadow-dialog); padding: 22px 24px; width: min(var(--dialog-w), calc(100vw - 32px)); max-height: 90dvh;
}
.ia dialog.ia-dialog::backdrop { background: var(--scrim); }
@@ -172,38 +133,33 @@ html, body { margin: 0; }
}
/* ── Fields (§2.10) ─────────────────────────────────────────────────────── */
.ia .domi-field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.ia .domi-field-label, .ia legend.domi-field-label { color: var(--text-2); font-size: var(--fs-field-label); padding: 0; }
.ia .domi-input, .ia select.domi-input, .ia textarea.domi-input {
min-height: var(--target); background: var(--surface); color: var(--text); border: 1px solid var(--control-edge);
/* Text fields, checkboxes, selects and segmented controls are @domi/ui's. Here: a group of controls with its label,
an error under a field, and the inputs @domi/ui 1.0 leaves to the app (a number, a file). */
.ia .ia-field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
/* The same words as @domi/ui's field label (.domi-field__label), so a form's labels read as one. */
.ia .ia-field-label { color: var(--domi-fg-2); font: 600 13px/18px var(--domi-font-hand); padding: 0; }
.ia .ia-input {
min-height: var(--target); background: var(--domi-panel); color: var(--domi-fg); border: 1px solid var(--domi-edge);
border-radius: var(--radius-sm); box-shadow: var(--carved); padding: 0.55rem 0.8rem; font: inherit; width: 100%;
}
.ia .domi-input:hover { border-color: var(--muted); }
.ia .domi-input:focus, .ia .domi-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--carved), var(--focus-halo); }
.ia .domi-input[aria-invalid="true"] { border-color: var(--danger); }
.ia .domi-error { color: var(--danger); font-size: var(--fs-hint); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ia .ia-input:hover { border-color: var(--domi-muted); }
.ia .ia-input:focus, .ia .ia-input:focus-visible { outline: none; border-color: var(--domi-accent); box-shadow: var(--carved), var(--focus-halo); }
.ia .ia-input[aria-invalid="true"] { border-color: var(--domi-danger); }
.ia .ia-error { color: var(--domi-danger); font-size: var(--fs-hint); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ia fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ia .ia-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--control-edge); border-radius: var(--radius-sm); background: var(--surface); }
.ia .ia-seg label { display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.9rem; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.ia .ia-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ia .ia-seg label:has(input:checked) { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.ia .ia-seg label:has(input:focus-visible) { outline: var(--focus-ring); outline-offset: 2px; }
.ia .ia-seg label:has(input:disabled) { color: var(--disabled); cursor: not-allowed; }
.ia .ia-check { display: flex; align-items: center; gap: 10px; min-height: var(--target); }
.ia .ia-check input { width: 20px; height: 20px; accent-color: var(--accent); }
/* ── Toasts, progress, secret, details (§2.11–2.14) ─────────────────────── */
.ia .ia-toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); }
.ia .ia-toast { display: flex; gap: 10px; align-items: center; background: var(--colonnade); border: 1px solid var(--hairline-strong); border-radius: var(--radius); box-shadow: var(--shadow-dialog); padding: 12px 16px; }
.ia .ia-toast { display: flex; gap: 10px; align-items: center; background: var(--domi-chrome); border: 1px solid var(--hairline-strong); border-radius: var(--radius); box-shadow: var(--shadow-dialog); padding: 12px 16px; }
@media (max-width: 719.98px) { .ia .ia-toasts { right: 16px; left: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); } }
.ia .ia-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ia .ia-progress > span { display: block; height: 100%; background: var(--accent); transition: width var(--dur-tick) linear; }
.ia .ia-secret { display: block; width: 100%; background: var(--surface); border: 1px solid var(--control-edge); border-radius: var(--radius-sm); box-shadow: var(--carved); padding: 12px 14px; font: inherit; font-weight: 600; letter-spacing: 0.02em; word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); resize: none; }
.ia .ia-details pre { background: var(--surface); border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-sub); white-space: pre-wrap; padding: 10px 12px; margin: 6px 0; }
.ia .ia-frame { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.ia .ia-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 14px; }
.ia .ia-progress { height: 6px; border-radius: 3px; background: var(--domi-hover); overflow: hidden; }
.ia .ia-progress > span { display: block; height: 100%; background: var(--domi-accent); transition: width var(--dur-tick) linear; }
.ia .ia-secret { display: block; width: 100%; background: var(--domi-panel); border: 1px solid var(--domi-edge); border-radius: var(--radius-sm); box-shadow: var(--carved); padding: 12px 14px; font: inherit; font-weight: 600; letter-spacing: 0.02em; word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--domi-fg); resize: none; }
.ia .ia-details pre { background: var(--domi-panel); border-radius: var(--radius-sm); color: var(--domi-muted); font-size: var(--fs-sub); white-space: pre-wrap; padding: 10px 12px; margin: 6px 0; }
.ia .ia-frame { border: 1px solid var(--domi-line); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.ia .ia-card { background: var(--domi-panel); border: 1px solid var(--domi-line); border-radius: var(--radius); padding: 12px 14px; }
.ia .ia-ornament { max-width: 360px; margin: 8px auto; border: 0; border-top: 1px dotted var(--bronze); opacity: 0.6; }
.ia .ia-placeholder { background: var(--surface-2); border-radius: 6px; height: 14px; }
.ia .ia-placeholder { background: var(--domi-hover); border-radius: 6px; height: 14px; }
.ia .ia-qr { background: #fff; padding: 16px; border-radius: var(--radius); width: max-content; }
.ia .ia-qr svg { width: 240px; height: 240px; display: block; }
.ia .ia-cmd { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.86rem; }
+30 -60
View File
@@ -2,68 +2,40 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/* Design tokens of the dark Domi theme, murex palette (docs/ui-handoff.md §1.1, verbatim). */
/* Ianitor's own tokens, on top of @domi/ui (docs/ui-handoff.md §1.1). The roles (ground, text, the murex
accent and leaf, ok, warning, danger) come from @domi/ui: data-domi-room="ianitor" on <html> gives them Ianitor's
values, the same hex as before (domi-design docs/PALETTE.md). What is here is Ianitor's alone: status names,
washes, type sizes, spacing, radii and layout. */
.ia {
/* ── Ground and structure: violet-tinted iron black ───────────────────── */
--ground: #0c0b0f; /* page ground; every ratio is measured on it */
--colonnade: #121016; /* sidebar, phone bars, menus, dialogs, side panel */
--surface: #18151d; /* fields, the last-change bar, cards */
--surface-2: #221d28; /* hover, the current place, a chosen option */
--hairline: #2c2633; /* dividers only, never a control edge */
/* ── Structure and metal Ianitor adds to the roles ───────────────────── */
--hairline-strong: #3c3445; /* chip and frame edges (facts, not controls) */
--control-edge: #7d7189; /* edge of every field, button, segmented control, engine chip */
/* ── Text ──────────────────────────────────────────────────────────────── */
--text: #f1edf3; /* body text, hostnames */
--text-2: #cfc6d4; /* secondary text, field labels */
--muted: #a99eb1; /* hints, section labels, times */
--disabled: #7a7183; /* disabled controls only, never content */
/* ── The lead: murex (Tyrian purple) ───────────────────────────────────── */
--accent: #e0a3dc; /* links, focus ring, the current place, running state */
--accent-strong: #f2c9ee; /* focus ring on the primary button; match codes */
--primary-high: #8d3b89; /* primary fill, top */
--primary-mid: #76306f; /* primary fill, 55 % */
--primary-low: #5c2257; /* primary fill, foot */
--primary-edge: #c77cc1; /* primary button edge */
--on-primary: #ffffff; /* label on the primary fill */
/* ── Metal ─────────────────────────────────────────────────────────────── */
--bronze: #b6adbe; /* ornaments: the interpunct rule (iron, not bronze) */
--gilt: #f6f0f7; /* the wordmark only */
/* ── Second light: quiet iron (Domi's .domi-pill and .domi-status use these) */
--second: #cfc6d4;
--second-strong: #f1edf3;
--second-edge: #7d7189;
/* ── Second light: quiet iron ───────────────────────────────────────────── */
--second-strong: var(--domi-fg);
--second-edge: var(--domi-edge);
/* ── Status: blue / amber / vermilion, stepped in lightness (L* 84 / 68 / 58) */
--healthy: #a6d6fa; /* host answers; a change was kept. Filled dot. */
--kept: #a6d6fa;
--degraded: #d99a35; /* partly failing; a change was reverted or not applied. Half dot. */
--reverted: #d99a35;
--down: #e2683a; /* not reachable; needs attention; paused; danger actions. Hollow ring. */
--danger: #e2683a;
--on-danger: #170804; /* text on a filled danger button (none is planned) */
--unknown: #a99eb1; /* no health check set; waiting for first check. Dashed ring. */
--running: #e0a3dc; /* queued, applying, watching, switching, waiting for Custos (= accent) */
--kept: var(--domi-ok); /* host answers; a change was kept. Filled dot. */
--reverted: var(--domi-warning); /* partly failing; a change was reverted or not applied. Half dot. */
--down: var(--domi-danger); /* not reachable; needs attention; paused; danger actions. Hollow ring. */
--unknown: var(--domi-muted); /* no health check set; waiting for first check. Dashed ring. */
--running: var(--domi-accent); /* queued, applying, watching, switching, waiting for Custos */
/* Status washes (banner backgrounds) and edges. color-mix() is what the artifact uses;
the resolved hex is in the comment, for tools that need a literal. */
--wash-degraded: color-mix(in srgb, var(--degraded) 10%, var(--ground)); /* #201913 */
--wash-kept: color-mix(in srgb, var(--kept) 10%, var(--ground)); /* #1b1f26 */
--wash-down: color-mix(in srgb, var(--down) 10%, var(--ground)); /* #211413 */
--edge-degraded: color-mix(in srgb, var(--degraded) 65%, var(--ground)); /* #916828 */
--edge-kept: color-mix(in srgb, var(--kept) 65%, var(--ground)); /* #708fa8 */
--edge-down: color-mix(in srgb, var(--down) 80%, var(--ground)); /* #b75531 */
--edge-outline: color-mix(in srgb, var(--accent) 60%, var(--ground)); /* #8b668a, outline button */
--hover-wash: color-mix(in srgb, var(--accent) 8%, transparent); /* quiet button hover */
--danger-hover: color-mix(in srgb, var(--danger) 7%, transparent);
/* Status washes (banner backgrounds) and edges. */
--wash-degraded: color-mix(in srgb, var(--domi-warning) 10%, var(--domi-bg)); /* #201913 */
--wash-kept: color-mix(in srgb, var(--kept) 10%, var(--domi-bg)); /* #1b1f26 */
--wash-down: color-mix(in srgb, var(--down) 10%, var(--domi-bg)); /* #211413 */
--edge-degraded: color-mix(in srgb, var(--domi-warning) 65%, var(--domi-bg)); /* #916828 */
--edge-kept: color-mix(in srgb, var(--kept) 65%, var(--domi-bg)); /* #708fa8 */
--edge-down: color-mix(in srgb, var(--down) 80%, var(--domi-bg)); /* #b75531 */
--hover-wash: color-mix(in srgb, var(--domi-accent) 8%, transparent); /* menu and nav hover */
/* ── Type ──────────────────────────────────────────────────────────────── */
--font-inscription: Cinzel, "Trajan Pro", "Cormorant Garamond", Georgia, "Times New Roman", serif;
--font-book: "Cormorant Garamond", Cormorant, "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
--font-hand: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
/* ── Type: the three Domi faces come from @domi/ui (bundled, nothing fetched) */
--font-inscription: var(--domi-font-inscription);
--font-book: var(--domi-font-book);
--font-hand: var(--domi-font-hand);
--fs-display: 2.6rem; --lh-display: 1.1; /* book 500: a view title ("Hosts") */
--fs-h2: 1.9rem; --lh-h2: 1.15; /* book 500: panel title; phone view title uses 2.1rem */
@@ -110,8 +82,8 @@
--scrim: rgba(12,11,15,0.82); /* behind modals */
/* ── Focus ─────────────────────────────────────────────────────────────── */
--focus-ring: 2px solid var(--accent); /* outline, offset 3px, on every :focus-visible */
--focus-ring-primary: 2px solid var(--accent-strong);
--focus-ring: 2px solid var(--domi-accent); /* outline, offset 3px, on every :focus-visible */
--focus-ring-primary: 2px solid var(--domi-accent-strong);
--focus-offset: 3px;
--focus-halo: 0 0 0 4px rgba(224,163,220,0.16); /* fields: border goes accent, plus this halo */
@@ -134,8 +106,8 @@
--bp-phone: 720px; /* below: phone layout (header + bottom bar) */
color-scheme: dark;
background: var(--ground);
color: var(--text);
background: var(--domi-bg);
color: var(--domi-fg);
font-family: var(--font-hand);
font-size: var(--fs-body);
line-height: var(--lh-body);
@@ -145,6 +117,4 @@
.ia :focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.ia h1, .ia h2, .ia h3, .ia p { margin: 0; }
.ia button { font: inherit; }
@media (prefers-reduced-motion: reduce) {
.ia *, .ia *::before, .ia *::after { animation: none !important; transition: none !important; }
}
/* Reduced motion: @domi/ui base.css (every duration 0; every state still shown). */
+29 -18
View File
@@ -10,6 +10,9 @@ importers:
apps/web:
dependencies:
'@domi/ui':
specifier: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.0
version: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#a8d69a97f4b32925096f3b773162d2ff4d31e6f7(svelte@5.57.3)
'@ianitor/ui':
specifier: workspace:*
version: link:../../packages/ui
@@ -53,15 +56,9 @@ importers:
packages/ui:
dependencies:
'@fontsource/cinzel':
specifier: ^5.1.0
version: 5.3.0
'@fontsource/cormorant-garamond':
specifier: ^5.1.0
version: 5.3.0
'@fontsource/manrope':
specifier: ^5.1.0
version: 5.3.0
'@domi/ui':
specifier: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.0
version: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#a8d69a97f4b32925096f3b773162d2ff4d31e6f7(svelte@5.57.3)
svelte:
specifier: ^5.20.0
version: 5.57.3
@@ -111,6 +108,13 @@ packages:
resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
engines: {node: '>=18'}
'@domi/ui@git+https://gitea.marek-novak.cz/mnovak/domi-design.git#a8d69a97f4b32925096f3b773162d2ff4d31e6f7':
resolution: {commit: a8d69a97f4b32925096f3b773162d2ff4d31e6f7, repo: https://gitea.marek-novak.cz/mnovak/domi-design.git, type: git}
version: 1.0.0
engines: {node: '>=22'}
peerDependencies:
svelte: ^5.20.0
'@esbuild/aix-ppc64@0.25.12':
resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
engines: {node: '>=18'}
@@ -267,14 +271,14 @@ packages:
cpu: [x64]
os: [win32]
'@fontsource/cinzel@5.3.0':
resolution: {integrity: sha512-KEOYTsrRppW0uRIPWBDPrQgunCS6f8u4nzZxYRBfo9SCknKojLYjK7B0ZoVmJhyVLefz271ZQRF9EOpHZlfhRw==}
'@fontsource-variable/cinzel@5.3.0':
resolution: {integrity: sha512-eFcU0TwaAP5QESF2pV8VoOPJJXJ6sSGm/6mXMwqTdMBPAJMaLhfa6oISHuOtFeddsoHP9RYm4Io0j1j3mNEz2Q==}
'@fontsource/cormorant-garamond@5.3.0':
resolution: {integrity: sha512-weuGsCirGVWBWqpt6YUp0yLThTe4G8YO45noq8wxeJCRvEpq5lFrxNMFSTxcyOyV5k5otzJ8guDzYegdYlcLMQ==}
'@fontsource-variable/cormorant-garamond@5.3.0':
resolution: {integrity: sha512-rgZJ/5w3hi60swAPnrOXpZf5wEH6NTrvm4H8D9Y4b1QIFUqlX14eM3QTMU/eAznjfh0eXpO1QUqsFhiy58aoMg==}
'@fontsource/manrope@5.3.0':
resolution: {integrity: sha512-obJ1Dv3+uCA6HlHgW8u4BGYxJR9In2HW7gjJhlflEvkrj1X1iSEwu0fToL+JYGC/FEKFfIz1sBuPduvcL2gIAA==}
'@fontsource-variable/manrope@5.3.0':
resolution: {integrity: sha512-6D5dgokHsWDDMtmXHznKa0hK229NN+1a4BLPmUCLqcO1Pw5EEhWY5RFt0AcXnVRAljFFPfRtLkJePQj6LSsV6g==}
'@jridgewell/gen-mapping@0.3.13':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
@@ -1048,6 +1052,13 @@ snapshots:
'@csstools/css-tokenizer@3.0.4': {}
'@domi/ui@git+https://gitea.marek-novak.cz/mnovak/domi-design.git#a8d69a97f4b32925096f3b773162d2ff4d31e6f7(svelte@5.57.3)':
dependencies:
'@fontsource-variable/cinzel': 5.3.0
'@fontsource-variable/cormorant-garamond': 5.3.0
'@fontsource-variable/manrope': 5.3.0
svelte: 5.57.3
'@esbuild/aix-ppc64@0.25.12':
optional: true
@@ -1126,11 +1137,11 @@ snapshots:
'@esbuild/win32-x64@0.25.12':
optional: true
'@fontsource/cinzel@5.3.0': {}
'@fontsource-variable/cinzel@5.3.0': {}
'@fontsource/cormorant-garamond@5.3.0': {}
'@fontsource-variable/cormorant-garamond@5.3.0': {}
'@fontsource/manrope@5.3.0': {}
'@fontsource-variable/manrope@5.3.0': {}
'@jridgewell/gen-mapping@0.3.13':
dependencies: