(label: string, value: string, accent: string)
| 46 | * inline. When `token` is given the page is a live CONTROL panel (toggles/buttons call the local |
| 47 | * API); without it the same page renders read-only. */ |
| 48 | export function buildDashboardHtml(d: DashboardData, opts: { token?: string } = {}): string { |
| 49 | const live = !!opts.token; |
| 50 | const card = (label: string, value: string, accent: string) => |
| 51 | `<div class="card"><div class="v" style="color:${accent}">${value}</div><div class="l">${label}</div></div>`; |
| 52 |
no outgoing calls
no test coverage detected