MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / card

Function card

src/cli/dashboard.ts:48–49  ·  view source on GitHub ↗
(label: string, value: string, accent: string)

Source from the content-addressed store, hash-verified

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. */
48export 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

Callers 1

buildDashboardHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected