MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / detail

Function detail

libatomic/src/review/viewer.js:57–61  ·  view source on GitHub ↗
(label, content)

Source from the content-addressed store, hash-verified

55 const shown = value => value === null || value === undefined ? 'unavailable' : String(value);
56 const badge = (text, value = text) => el('span', 'badge ' + String(value).toLowerCase().replace(/[^a-z]/g, ''), text);
57 const detail = (label, content) => {
58 const node = el('details', 'coverage');
59 node.append(el('summary', '', label), content);
60 return node;
61 };
62 const definition = (entries) => {
63 const list = el('dl');
64 for (const [name, value] of entries) list.append(el('dt', '', name), el('dd', '', value));

Callers 12

showCardFunction · 0.85
findingBlockFunction · 0.85
acceptanceBlockFunction · 0.85
metricTableFunction · 0.85
selectionFunction · 0.85
renderAuditOverviewFunction · 0.85
comparisonOverviewFunction · 0.85
cardCoverageFunction · 0.85
renderCriteriaFunction · 0.85
renderRiskOverviewFunction · 0.85
renderSummaryFunction · 0.85

Calls 2

elFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected