screenreader-speech-capture 0.2.0 → 0.4.0-fix-bundle-material-web.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +15 -5
- package/dist/ui/adapter-node.js +4 -4
- package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js +37 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js +224 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -0
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +269 -4
- package/dist/ui/server/_app/immutable/assets/_layout.Ck1JiV_4.css +1 -0
- package/dist/ui/server/_app/immutable/assets/_page.CnRjX9ZG.css +1 -0
- package/dist/ui/server/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
- package/dist/ui/server/chunks/bridge-api.js +61 -0
- package/dist/ui/server/chunks/bridge-api.js.map +1 -0
- package/dist/ui/server/chunks/composition.js +2916 -0
- package/dist/ui/server/chunks/composition.js.map +1 -0
- package/dist/ui/server/chunks/exports.js +69 -1
- package/dist/ui/server/chunks/exports.js.map +1 -1
- package/dist/ui/server/chunks/instance.js +20 -26
- package/dist/ui/server/chunks/instance.js.map +1 -1
- package/dist/ui/server/chunks/internal.js +102 -7
- package/dist/ui/server/chunks/internal.js.map +1 -1
- package/dist/ui/server/chunks/navigation.js +15 -0
- package/dist/ui/server/chunks/navigation.js.map +1 -0
- package/dist/ui/server/chunks/server2.js +30 -1
- package/dist/ui/server/chunks/server2.js.map +1 -1
- package/dist/ui/server/chunks/src.js +968 -0
- package/dist/ui/server/chunks/src.js.map +1 -0
- package/dist/ui/server/chunks/state.js +38 -0
- package/dist/ui/server/chunks/state.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +18 -0
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +10 -0
- package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +10 -0
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/fallbacks/error.svelte.js +2 -35
- package/dist/ui/server/entries/fallbacks/error.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.server.ts.js +5 -980
- package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +192 -7
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.server.ts.js +18 -0
- package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -0
- package/dist/ui/server/entries/pages/_page.svelte.js +2634 -2
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +8 -0
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -0
- package/dist/ui/server/entries/pages/setup/_page.svelte.js +8 -0
- package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -0
- package/dist/ui/server/index.js +2 -2
- package/dist/ui/server/manifest-full.js +40 -3
- package/dist/ui/server/manifest.js +40 -3
- package/dist/ui/server/nodes/0.js +3 -3
- package/dist/ui/server/nodes/1.js +1 -1
- package/dist/ui/server/nodes/2.js +5 -3
- package/dist/ui/server/nodes/3.js +8 -0
- package/dist/ui/server/nodes/4.js +8 -0
- package/dist/ui/server/remote-entry.js +3 -3
- package/dist/ui/server/remote-entry.js.map +1 -1
- package/dist/ui/server/server.js +40 -3
- package/package.json +1 -1
- package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js +0 -3
- package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js.br +0 -0
- package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js.gz +0 -0
- package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js +0 -2
- package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js.br +0 -0
- package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js.gz +0 -0
- package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js +0 -1
- package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js.br +0 -0
- package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js.gz +0 -0
- package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js +0 -2
- package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js.br +0 -0
- package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js.gz +0 -0
- package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js +0 -2
- package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js.br +0 -0
- package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js.gz +0 -0
- package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js +0 -1
- package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js.br +0 -0
- package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js.gz +0 -0
- package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js +0 -1
- package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js.br +0 -0
- package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js.gz +0 -0
- package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js +0 -1
- package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js.br +0 -0
- package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js.gz +0 -0
- package/dist/ui/client/_app/version.json +0 -1
- package/dist/ui/client/_app/version.json.br +0 -0
- package/dist/ui/client/_app/version.json.gz +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js.br +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js.gz +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js.br +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js.gz +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js.br +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js.gz +0 -0
- /package/dist/ui/client/{robots.txt → ui/robots.txt} +0 -0
- /package/dist/ui/client/{robots.txt.br → ui/robots.txt.br} +0 -0
- /package/dist/ui/client/{robots.txt.gz → ui/robots.txt.gz} +0 -0
|
@@ -1,14 +1,199 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mt as resolve } from "../../chunks/internal.js";
|
|
2
|
+
import { a as head, f as escape_html, i as ensure_array_like, l as attr, r as derived, s as stringify, t as attr_class, u as clsx } from "../../chunks/server2.js";
|
|
3
|
+
import { t as page } from "../../chunks/state.js";
|
|
4
|
+
import { r as statusStore } from "../../chunks/composition.js";
|
|
2
5
|
// src/lib/assets/favicon.svg
|
|
3
|
-
var favicon_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='
|
|
6
|
+
var favicon_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%3e%3ctitle%3eSpeech%20Capture%3c/title%3e%3crect%20width='44'%20height='44'%20rx='14'%20fill='%23415f91'/%3e%3cpath%20d='M4%2010v4M8%206v12M12%203v18M16%208v8M20%2011v2'%20transform='translate(10%2010)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
7
|
+
// ../../node_modules/.pnpm/@fontsource+material-symbols-outlined@5.3.9/node_modules/@fontsource/material-symbols-outlined/files/material-symbols-outlined-latin-400-normal.woff2?url
|
|
8
|
+
var material_symbols_outlined_latin_400_normal_default = "/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2";
|
|
9
|
+
// src/lib/components/StatusChips/StatusChips.svelte
|
|
10
|
+
function StatusChips($$renderer, $$props) {
|
|
11
|
+
let { chips, announcement } = $$props;
|
|
12
|
+
$$renderer.push(`<ul aria-label="Bridge status" class="svelte-19wvxlf"><!--[-->`);
|
|
13
|
+
const each_array = ensure_array_like(chips);
|
|
14
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
15
|
+
let chip = each_array[$$index];
|
|
16
|
+
$$renderer.push(`<li${attr_class(clsx(chip.tone), "svelte-19wvxlf", { "down": chip.down })}${attr("aria-label", chip.description)}${attr("title", chip.text)}><span${attr_class(`dot ${stringify(chip.dot)}`, "svelte-19wvxlf")} aria-hidden="true"></span> <span aria-hidden="true" class="chip-label svelte-19wvxlf">${escape_html(chip.text)}</span></li>`);
|
|
17
|
+
}
|
|
18
|
+
$$renderer.push(`<!--]--></ul> <span class="sr-only svelte-19wvxlf" role="status">${escape_html(announcement)}</span>`);
|
|
19
|
+
}
|
|
20
|
+
// src/lib/components/StatusRefresh/StatusRefresh.svelte
|
|
21
|
+
function StatusRefresh($$renderer, $$props) {
|
|
22
|
+
let { loading, onRetry } = $$props;
|
|
23
|
+
$$renderer.push(`<md-icon-button title="Refresh status" class="svelte-5q7qd7"><md-icon${attr_class("svelte-5q7qd7", void 0, { "spin": loading })}>refresh</md-icon></md-icon-button>`);
|
|
24
|
+
}
|
|
25
|
+
// src/lib/core/status.ts
|
|
26
|
+
function deriveChips(status, reachable) {
|
|
27
|
+
if (status === null) return [
|
|
28
|
+
neutral("playwright", "Playwright"),
|
|
29
|
+
neutral("mcp", "MCP"),
|
|
30
|
+
neutral("session", "Session")
|
|
31
|
+
];
|
|
32
|
+
const chips = [
|
|
33
|
+
serviceChip("playwright", "Playwright", status.playwright),
|
|
34
|
+
serviceChip("mcp", "MCP", status.mcp),
|
|
35
|
+
sessionChip(status)
|
|
36
|
+
];
|
|
37
|
+
return reachable ? chips : chips.map((chip) => ({
|
|
38
|
+
...chip,
|
|
39
|
+
tone: "neutral",
|
|
40
|
+
down: true
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
function neutral(id, text) {
|
|
44
|
+
return {
|
|
45
|
+
id,
|
|
46
|
+
text,
|
|
47
|
+
tone: "neutral",
|
|
48
|
+
dot: "hollow",
|
|
49
|
+
description: `${text}, state unknown`,
|
|
50
|
+
down: true
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function serviceChip(id, name, service) {
|
|
54
|
+
const base = `${name} ${service.version}`;
|
|
55
|
+
switch (service.state) {
|
|
56
|
+
case "running": return {
|
|
57
|
+
id,
|
|
58
|
+
text: base,
|
|
59
|
+
tone: "ok",
|
|
60
|
+
dot: "filled",
|
|
61
|
+
description: `${base}, running`
|
|
62
|
+
};
|
|
63
|
+
case "crashed":
|
|
64
|
+
case "failed": return {
|
|
65
|
+
id,
|
|
66
|
+
text: `${base} · ${service.state}`,
|
|
67
|
+
tone: "warning",
|
|
68
|
+
dot: "filled",
|
|
69
|
+
description: `${base}, ${service.state}`
|
|
70
|
+
};
|
|
71
|
+
case "starting": return {
|
|
72
|
+
id,
|
|
73
|
+
text: base,
|
|
74
|
+
tone: "neutral",
|
|
75
|
+
dot: "hollow",
|
|
76
|
+
description: `${base}, starting`,
|
|
77
|
+
down: true
|
|
78
|
+
};
|
|
79
|
+
case "stopped": return {
|
|
80
|
+
id,
|
|
81
|
+
text: base,
|
|
82
|
+
tone: "neutral",
|
|
83
|
+
dot: "hollow",
|
|
84
|
+
description: `${base}, stopped`,
|
|
85
|
+
down: true
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function sessionChip({ session }) {
|
|
90
|
+
if (session.current === null) return {
|
|
91
|
+
id: "session",
|
|
92
|
+
text: "No session",
|
|
93
|
+
tone: "neutral",
|
|
94
|
+
dot: "hollow",
|
|
95
|
+
description: "No session is running"
|
|
96
|
+
};
|
|
97
|
+
const text = `Session #${session.current.id}`;
|
|
98
|
+
return {
|
|
99
|
+
id: "session",
|
|
100
|
+
text,
|
|
101
|
+
tone: "ok",
|
|
102
|
+
dot: "filled",
|
|
103
|
+
description: `${text}, live`
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The words a screen reader gets when the state changes. Empty while everything is fine, so the
|
|
108
|
+
* regular refresh never speaks.
|
|
109
|
+
*/
|
|
110
|
+
function announcement(chips, reachable) {
|
|
111
|
+
if (!reachable) return "Bridge unreachable.";
|
|
112
|
+
return chips.filter((chip) => chip.tone === "error" || chip.tone === "warning").map((chip) => `${chip.description}.`).join(" ");
|
|
113
|
+
}
|
|
114
|
+
// src/lib/components/BridgeStatus/BridgeStatus.svelte
|
|
115
|
+
function BridgeStatus($$renderer, $$props) {
|
|
116
|
+
$$renderer.component(($$renderer) => {
|
|
117
|
+
const seed = derived(() => page.data.status);
|
|
118
|
+
const status = derived(() => statusStore.status ?? seed());
|
|
119
|
+
const chips = derived(() => deriveChips(status(), statusStore.reachable));
|
|
120
|
+
StatusChips($$renderer, {
|
|
121
|
+
chips: chips(),
|
|
122
|
+
announcement: announcement(chips(), statusStore.reachable)
|
|
123
|
+
});
|
|
124
|
+
$$renderer.push(`<!----> `);
|
|
125
|
+
StatusRefresh($$renderer, {
|
|
126
|
+
loading: statusStore.loading,
|
|
127
|
+
onRetry: () => void statusStore.retry()
|
|
128
|
+
});
|
|
129
|
+
$$renderer.push(`<!---->`);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
// src/lib/components/AppHeader/AppHeader.svelte
|
|
133
|
+
function AppHeader($$renderer, $$props) {
|
|
134
|
+
let { host } = $$props;
|
|
135
|
+
$$renderer.push(`<header class="svelte-4j9s4f"><div class="logo-slot svelte-4j9s4f"><div class="logo svelte-4j9s4f"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2"></path></svg></div></div> <div class="title svelte-4j9s4f"><span class="name svelte-4j9s4f">Speech Capture</span> <span class="meta svelte-4j9s4f">${escape_html(host)}</span></div> `);
|
|
136
|
+
BridgeStatus($$renderer, {});
|
|
137
|
+
$$renderer.push(`<!----></header>`);
|
|
138
|
+
}
|
|
139
|
+
// src/lib/core/navigation.ts
|
|
140
|
+
var trimSlash = (path) => path.length > 1 ? path.replace(/\/+$/, "") : path;
|
|
141
|
+
/** Whether `href` is the page shown at `currentPath` (a trailing slash doesn't matter). */
|
|
142
|
+
function isCurrent(item, currentPath) {
|
|
143
|
+
const href = trimSlash(item.href);
|
|
144
|
+
const path = trimSlash(currentPath);
|
|
145
|
+
return item.exact ? path === href : path === href || path.startsWith(`${href}/`);
|
|
146
|
+
}
|
|
147
|
+
// src/lib/components/NavRail/NavRail.svelte
|
|
148
|
+
function NavRail($$renderer, $$props) {
|
|
149
|
+
$$renderer.component(($$renderer) => {
|
|
150
|
+
let { items, currentPath } = $$props;
|
|
151
|
+
$$renderer.push(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"><!--[-->`);
|
|
152
|
+
const each_array = ensure_array_like(items);
|
|
153
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
154
|
+
let item = each_array[$$index];
|
|
155
|
+
const current = isCurrent(item, currentPath);
|
|
156
|
+
$$renderer.push(`<li><a${attr("href", item.href)}${attr("aria-current", current ? "page" : void 0)} class="svelte-sxtjmn"><span${attr_class("indicator svelte-sxtjmn", void 0, { "current": current })}><md-icon>${escape_html(item.icon)}</md-icon></span> <span class="label svelte-sxtjmn">${escape_html(item.label)}</span></a></li>`);
|
|
157
|
+
}
|
|
158
|
+
$$renderer.push(`<!--]--></ul></nav>`);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
4
161
|
// src/routes/+layout.svelte
|
|
5
162
|
function _layout($$renderer, $$props) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
163
|
+
$$renderer.component(($$renderer) => {
|
|
164
|
+
let { children } = $$props;
|
|
165
|
+
const navItems = [
|
|
166
|
+
{
|
|
167
|
+
href: resolve("/"),
|
|
168
|
+
label: "Monitor",
|
|
169
|
+
icon: "monitor",
|
|
170
|
+
exact: true
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
href: resolve("/settings"),
|
|
174
|
+
label: "Settings",
|
|
175
|
+
icon: "settings"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
href: resolve("/setup"),
|
|
179
|
+
label: "Setup",
|
|
180
|
+
icon: "build"
|
|
181
|
+
}
|
|
182
|
+
];
|
|
183
|
+
head("12qhfyh", $$renderer, ($$renderer) => {
|
|
184
|
+
$$renderer.push(`<link rel="icon"${attr("href", favicon_default)}/> <link rel="preload" as="font" type="font/woff2"${attr("href", material_symbols_outlined_latin_400_normal_default)} crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`);
|
|
185
|
+
});
|
|
186
|
+
$$renderer.push(`<div class="app svelte-12qhfyh">`);
|
|
187
|
+
AppHeader($$renderer, { host: page.url.host });
|
|
188
|
+
$$renderer.push(`<!----> <div class="body svelte-12qhfyh">`);
|
|
189
|
+
NavRail($$renderer, {
|
|
190
|
+
items: navItems,
|
|
191
|
+
currentPath: page.url.pathname
|
|
192
|
+
});
|
|
193
|
+
$$renderer.push(`<!----> <main class="svelte-12qhfyh">`);
|
|
194
|
+
children($$renderer);
|
|
195
|
+
$$renderer.push(`<!----></main></div></div>`);
|
|
9
196
|
});
|
|
10
|
-
children($$renderer);
|
|
11
|
-
$$renderer.push(`<!---->`);
|
|
12
197
|
}
|
|
13
198
|
export { _layout as default };
|
|
14
199
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_layout.svelte.js","names":["$.attr","favicon"],"sources":["../../../../src/lib/assets/favicon.svg","../../../../src/routes/+layout.svelte"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e\"","<script lang=\"ts\">\n import favicon from '#lib/assets/favicon.svg';\n import type { LayoutProps } from './$types';\n\n let { children }: LayoutProps = $props();\n</script>\n\n<svelte:head>\n <link rel=\"icon\" href={favicon} />\n</svelte:head>\n\n{@render children()}\n"],"mappings":";;AAAA,IAAA,kBAAe;;ACAf,SAAA,QAAA,YAAA,SAAA;CAIE,IAAI,EAAE,aAAuB;;EAIN,WAAA,KAAA,mBAAAA,KAAA,QAAAC,eAAO,EAAA,GAAA;;CAGvB,SAAQ,UAAA;;AANT"}
|
|
1
|
+
{"version":3,"file":"_layout.svelte.js","names":["$.ensure_array_like","$.attr_class","$.clsx","$.attr","$.stringify","$.escape","$.attr_class","$.derived","$.escape","$.ensure_array_like","$.attr","$.attr_class","$.escape","$.attr","favicon","iconFont"],"sources":["../../../../src/lib/assets/favicon.svg","../../../../../../node_modules/.pnpm/@fontsource+material-symbols-outlined@5.3.9/node_modules/@fontsource/material-symbols-outlined/files/material-symbols-outlined-latin-400-normal.woff2?url","../../../../src/lib/components/StatusChips/StatusChips.svelte","../../../../src/lib/components/StatusRefresh/StatusRefresh.svelte","../../../../src/lib/adapters/icon-font.ts","../../../../src/lib/core/status.ts","../../../../src/lib/components/BridgeStatus/BridgeStatus.svelte","../../../../src/lib/components/AppHeader/AppHeader.svelte","../../../../src/lib/core/navigation.ts","../../../../src/lib/components/NavRail/NavRail.svelte","../../../../src/routes/+layout.svelte"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%3e%3ctitle%3eSpeech%20Capture%3c/title%3e%3crect%20width='44'%20height='44'%20rx='14'%20fill='%23415f91'/%3e%3cpath%20d='M4%2010v4M8%206v12M12%203v18M16%208v8M20%2011v2'%20transform='translate(10%2010)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default import.meta.ROLLDOWN_FILE_URL_VRAku6fjghkApIISiBWPzg","<script lang=\"ts\">\n import type { Chip } from '#lib/core/status.js';\n\n type Props = { chips: Chip[]; announcement: string };\n\n let { chips, announcement }: Props = $props();\n</script>\n\n<ul aria-label=\"Bridge status\">\n {#each chips as chip (chip.id)}\n <li class={chip.tone} class:down={chip.down} aria-label={chip.description} title={chip.text}>\n <span class=\"dot {chip.dot}\" aria-hidden=\"true\"></span>\n <span aria-hidden=\"true\" class=\"chip-label\">{chip.text}</span>\n </li>\n {/each}\n</ul>\n<!-- Only changes of a problem state speak; a refresh leaves this text as it is. -->\n<span class=\"sr-only\" role=\"status\">{announcement}</span>\n\n<style>\n ul {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n li {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n height: 32px;\n padding: 0 12px;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-radius: 8px;\n background: var(--md-sys-color-surface-container-lowest, transparent);\n color: var(--md-sys-color-on-surface);\n font-family: var(--app-font-mono);\n font-size: var(--app-mono-size);\n white-space: nowrap;\n }\n\n li.ok {\n --dot: var(--app-success);\n }\n li.warning {\n --dot: var(--app-warning);\n background: var(--app-warning-container);\n color: var(--app-on-warning-container);\n border-color: var(--app-warning);\n }\n li.error {\n --dot: var(--md-sys-color-error);\n background: var(--md-sys-color-error-container);\n color: var(--md-sys-color-on-error-container);\n border-color: var(--md-sys-color-error);\n }\n li.neutral {\n --dot: var(--md-sys-color-outline);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n li.down {\n --dot: var(--md-sys-color-error);\n }\n\n .dot {\n box-sizing: border-box;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: var(--dot);\n border: 2px solid var(--dot);\n }\n .dot.hollow {\n background: transparent;\n }\n\n /* On a narrow screen only the dot stays; the chip's aria-label still says what it is. */\n @media (width < 800px) {\n .chip-label {\n display: none;\n }\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n\n type Props = { loading: boolean; onRetry: () => void };\n\n let { loading, onRetry }: Props = $props();\n</script>\n\n<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n<!-- md-icon-button wraps a real <button> in its shadow DOM, which handles keys and role. -->\n<md-icon-button title=\"Refresh status\" onclick={onRetry}>\n <md-icon class:spin={loading}>refresh</md-icon>\n</md-icon-button>\n\n<style>\n md-icon-button {\n --md-icon-button-icon-color: var(--md-sys-color-on-surface-variant);\n --md-icon-button-hover-icon-color: var(--md-sys-color-on-surface);\n --md-icon-button-focus-icon-color: var(--md-sys-color-on-surface);\n }\n\n .spin {\n animation: spin 0.8s linear infinite;\n }\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .spin {\n animation: none;\n }\n }\n</style>\n","const ICON_FONT = '24px \"Material Symbols Outlined\"';\n\n/**\n * Loads the icon font and then sets `data-icons-ready` on `<html>`, which ends the placeholder\n * shimmer in `global.css`. If loading fails the icons show anyway rather than shimmer forever.\n */\nexport async function markIconFontReady(): Promise<void> {\n try {\n await document.fonts.load(ICON_FONT);\n } catch {\n // fall through: show the icons\n }\n document.documentElement.setAttribute('data-icons-ready', '');\n}\n","import type { ServiceStatusDto, StatusDto } from '@screenreader-speech-capture/shared';\n\n/** Where the status comes from (the HTTP adapter asks the BFF, which asks the bridge). */\nexport interface StatusApi {\n fetch(): Promise<StatusDto>;\n}\n\nexport type ChipId = 'playwright' | 'mcp' | 'session';\nexport type ChipTone = 'ok' | 'error' | 'warning' | 'neutral';\n\nexport type Chip = {\n id: ChipId;\n /** What the chip shows. */\n text: string;\n tone: ChipTone;\n /** A hollow dot means \"nothing there yet\"; a filled one means \"there is state\". */\n dot: 'filled' | 'hollow';\n /** Spoken name of the state, so it is never colour alone. */\n description: string;\n /** Not connected or not ready: the dot is red while the chip itself stays neutral. */\n down?: boolean;\n};\n\nexport function deriveChips(status: StatusDto | null, reachable: boolean): Chip[] {\n if (status === null) {\n return [\n neutral('playwright', 'Playwright'),\n neutral('mcp', 'MCP'),\n neutral('session', 'Session'),\n ];\n }\n const chips = [\n serviceChip('playwright', 'Playwright', status.playwright),\n serviceChip('mcp', 'MCP', status.mcp),\n sessionChip(status),\n ];\n // The last known values stay visible, but they are no longer a statement about now.\n return reachable\n ? chips\n : chips.map((chip) => ({ ...chip, tone: 'neutral' as const, down: true }));\n}\n\nfunction neutral(id: ChipId, text: string): Chip {\n return {\n id,\n text,\n tone: 'neutral',\n dot: 'hollow',\n description: `${text}, state unknown`,\n down: true,\n };\n}\n\nfunction serviceChip(id: ChipId, name: string, service: ServiceStatusDto): Chip {\n const base = `${name} ${service.version}`;\n switch (service.state) {\n case 'running':\n return { id, text: base, tone: 'ok', dot: 'filled', description: `${base}, running` };\n case 'crashed':\n case 'failed':\n return {\n id,\n text: `${base} · ${service.state}`,\n tone: 'warning',\n dot: 'filled',\n description: `${base}, ${service.state}`,\n };\n case 'starting':\n return {\n id,\n text: base,\n tone: 'neutral',\n dot: 'hollow',\n description: `${base}, starting`,\n down: true,\n };\n case 'stopped':\n return {\n id,\n text: base,\n tone: 'neutral',\n dot: 'hollow',\n description: `${base}, stopped`,\n down: true,\n };\n }\n}\n\nfunction sessionChip({ session }: StatusDto): Chip {\n if (session.current === null) {\n return {\n id: 'session',\n text: 'No session',\n tone: 'neutral',\n dot: 'hollow',\n description: 'No session is running',\n };\n }\n const text = `Session #${session.current.id}`;\n return { id: 'session', text, tone: 'ok', dot: 'filled', description: `${text}, live` };\n}\n\n/**\n * The words a screen reader gets when the state changes. Empty while everything is fine, so the\n * regular refresh never speaks.\n */\nexport function announcement(chips: Chip[], reachable: boolean): string {\n if (!reachable) return 'Bridge unreachable.';\n return chips\n .filter((chip) => chip.tone === 'error' || chip.tone === 'warning')\n .map((chip) => `${chip.description}.`)\n .join(' ');\n}\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import { page } from '$app/state';\n import StatusChips from '#lib/components/StatusChips/StatusChips.svelte';\n import StatusRefresh from '#lib/components/StatusRefresh/StatusRefresh.svelte';\n import { statusStore } from '#lib/composition.js';\n import { announcement, deriveChips } from '#lib/core/status.js';\n import type { StatusDto } from '@screenreader-speech-capture/shared';\n\n // The status the server rendered (`+layout.server.ts`); it fills in until the store has its own.\n const seed = $derived(page.data.status as StatusDto | null);\n const status = $derived(statusStore.status ?? seed);\n const chips = $derived(deriveChips(status, statusStore.reachable));\n\n onMount(() => statusStore.init(seed));\n</script>\n\n<StatusChips {chips} announcement={announcement(chips, statusStore.reachable)} />\n<StatusRefresh loading={statusStore.loading} onRetry={() => void statusStore.retry()} />\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import BridgeStatus from '#lib/components/BridgeStatus/BridgeStatus.svelte';\n\n type Props = {\n host: string;\n };\n\n let { host }: Props = $props();\n</script>\n\n<header>\n <div class=\"logo-slot\">\n <div class=\"logo\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"><path d=\"M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2\" /></svg\n >\n </div>\n </div>\n <div class=\"title\">\n <span class=\"name\">Speech Capture</span>\n <span class=\"meta\">{host}</span>\n </div>\n <BridgeStatus />\n</header>\n\n<style>\n header {\n display: flex;\n align-items: center;\n gap: 12px 16px;\n min-height: 68px;\n padding: 10px 16px 10px 0;\n background: var(--md-sys-color-surface-container);\n color: var(--md-sys-color-on-surface);\n }\n\n /* As wide as the navigation rail, so the logo sits centered over it. */\n .logo-slot {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: var(--app-rail-width);\n }\n\n .logo {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 44px;\n height: 44px;\n border-radius: 14px;\n background: var(--md-sys-color-primary);\n color: var(--md-sys-color-on-primary);\n }\n\n .title {\n display: flex;\n flex-direction: column;\n min-width: 0;\n margin-right: auto;\n }\n\n header {\n flex-wrap: wrap;\n }\n\n .name {\n font-family: var(--md-sys-typescale-title-large-font);\n font-size: var(--md-sys-typescale-title-large-size);\n line-height: var(--md-sys-typescale-title-large-line-height);\n font-weight: var(--md-ref-typeface-weight-medium);\n }\n\n .meta {\n font-family: var(--app-font-mono);\n font-size: var(--app-mono-size);\n line-height: var(--app-mono-line-height);\n color: var(--md-sys-color-on-surface-variant);\n }\n\n md-icon-button {\n --md-icon-button-icon-color: var(--md-sys-color-on-surface-variant);\n --md-icon-button-hover-icon-color: var(--md-sys-color-on-surface);\n --md-icon-button-focus-icon-color: var(--md-sys-color-on-surface);\n --md-icon-button-pressed-icon-color: var(--md-sys-color-on-surface);\n }\n</style>\n","export type NavItem = {\n href: string;\n label: string;\n icon: string;\n /** Only the exact path is current (the start page); otherwise its sub-paths count too. */\n exact?: boolean;\n};\n\nconst trimSlash = (path: string): string => (path.length > 1 ? path.replace(/\\/+$/, '') : path);\n\n/** Whether `href` is the page shown at `currentPath` (a trailing slash doesn't matter). */\nexport function isCurrent(item: Pick<NavItem, 'href' | 'exact'>, currentPath: string): boolean {\n const href = trimSlash(item.href);\n const path = trimSlash(currentPath);\n return item.exact ? path === href : path === href || path.startsWith(`${href}/`);\n}\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import { isCurrent, type NavItem } from '#lib/core/navigation.js';\n\n type Props = { items: NavItem[]; currentPath: string };\n\n let { items, currentPath }: Props = $props();\n</script>\n\n<nav aria-label=\"Pages\">\n <ul>\n {#each items as item (item.href)}\n {@const current = isCurrent(item, currentPath)}\n <li>\n <!-- The layout passes hrefs it built with resolve(). -->\n <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->\n <a href={item.href} aria-current={current ? 'page' : undefined}>\n <span class=\"indicator\" class:current><md-icon>{item.icon}</md-icon></span>\n <span class=\"label\">{item.label}</span>\n </a>\n </li>\n {/each}\n </ul>\n</nav>\n\n<style>\n nav {\n flex: none;\n width: var(--app-rail-width);\n padding: var(--app-gutter) 0;\n background: var(--md-sys-color-surface);\n }\n\n ul {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n a {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n min-height: 48px;\n color: var(--md-sys-color-on-surface-variant);\n text-decoration: none;\n }\n\n .indicator {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 56px;\n height: 32px;\n border-radius: 16px;\n }\n\n .indicator.current {\n background: var(--md-sys-color-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n a:hover .indicator:not(.current) {\n background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);\n }\n\n a[aria-current='page'] {\n color: var(--md-sys-color-on-surface);\n }\n\n .label {\n font-family: var(--md-sys-typescale-label-medium-font);\n font-size: var(--md-sys-typescale-label-medium-size);\n line-height: var(--md-sys-typescale-label-medium-line-height);\n font-weight: var(--md-ref-typeface-weight-medium);\n }\n</style>\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import favicon from '#lib/assets/favicon.svg';\n import iconFont from '@fontsource/material-symbols-outlined/files/material-symbols-outlined-latin-400-normal.woff2?url';\n import AppHeader from '#lib/components/AppHeader/AppHeader.svelte';\n import NavRail from '#lib/components/NavRail/NavRail.svelte';\n import { markIconFontReady, themeStore } from '#lib/composition.js';\n import type { NavItem } from '#lib/core/navigation.js';\n import '#lib/styles/fonts.css';\n import '#lib/styles/tokens.css';\n import '#lib/styles/global.css';\n import type { LayoutProps } from './$types';\n\n let { children }: LayoutProps = $props();\n\n const navItems: NavItem[] = [\n { href: resolve('/'), label: 'Monitor', icon: 'monitor', exact: true },\n { href: resolve('/settings'), label: 'Settings', icon: 'settings' },\n { href: resolve('/setup'), label: 'Setup', icon: 'build' },\n ];\n\n onMount(() => {\n themeStore.init();\n void markIconFontReady();\n });\n</script>\n\n<svelte:head>\n <link rel=\"icon\" href={favicon} />\n <link rel=\"preload\" as=\"font\" type=\"font/woff2\" href={iconFont} crossorigin=\"anonymous\" />\n <meta name=\"color-scheme\" content=\"light dark\" />\n</svelte:head>\n\n<div class=\"app\">\n <AppHeader host={page.url.host} />\n\n <div class=\"body\">\n <NavRail items={navItems} currentPath={page.url.pathname} />\n <main>\n {@render children()}\n </main>\n </div>\n</div>\n\n<style>\n /* The window height is fixed, so a page can fill what is left below the header (which grows\n when its chips wrap). */\n .app {\n display: flex;\n flex-direction: column;\n height: 100dvh;\n }\n\n .body {\n display: flex;\n flex: 1;\n align-items: stretch;\n min-height: 0;\n }\n\n main {\n flex: 1;\n min-width: 0;\n min-height: 0;\n padding: 0 16px;\n overflow: auto;\n }\n</style>\n"],"ignoreList":[1],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as bridgeApiFromEnv } from "../../chunks/bridge-api.js";
|
|
2
|
+
// src/routes/+page.server.ts
|
|
3
|
+
var load = async ({ fetch }) => {
|
|
4
|
+
try {
|
|
5
|
+
return {
|
|
6
|
+
sessions: await bridgeApiFromEnv(fetch).sessions(),
|
|
7
|
+
now: Date.now()
|
|
8
|
+
};
|
|
9
|
+
} catch {
|
|
10
|
+
return {
|
|
11
|
+
sessions: null,
|
|
12
|
+
now: Date.now()
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export { load };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=_page.server.ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.server.ts.js","names":[],"sources":["../../../../src/routes/+page.server.ts"],"sourcesContent":["import { bridgeApiFromEnv } from '#lib/server/bridge-api.js';\nimport type { PageServerLoad } from './$types';\n\nexport const load: PageServerLoad = async ({ fetch }) => {\n try {\n // `now` is the end of a live session's duration: the server and the first client render agree.\n return { sessions: await bridgeApiFromEnv(fetch).sessions(), now: Date.now() };\n } catch {\n // The pane starts empty and fills in once the store reaches the bridge.\n return { sessions: null, now: Date.now() };\n }\n};\n"],"mappings":";;AAGA,IAAa,OAAuB,OAAO,EAAE,YAAY;CACvD,IAAI;EAEF,OAAO;GAAE,UAAU,MAAM,iBAAiB,KAAK,CAAC,CAAC,SAAS;GAAG,KAAK,KAAK,IAAI;EAAE;CAC/E,QAAQ;EAEN,OAAO;GAAE,UAAU;GAAM,KAAK,KAAK,IAAI;EAAE;CAC3C;AACF"}
|