renderLogEntry function presentation exported ✓ 100.0%

Last updated: 2026-03-04T23:21:38.426Z

Metrics

LOC: 8 Complexity: 1 Params: 2 Coverage: 100.0% (1/1 lines, 1x executed)

Signature

renderLogEntry(entry: LogEntry, prefix = ""): : string

Summary

Renders a single log entry row.

Source Code

export function renderLogEntry(entry: LogEntry, prefix = ""): string {
  return `
    <div class="${prefix}log-entry ${prefix}log-${entry.type}">
      <span class="${prefix}log-time">${entry.time}</span>
      <span class="${prefix}log-text">${escapeHtml(entry.text)}</span>
    </div>
  `;
}

Dependencies (Outgoing)

graph LR renderLogEntry["renderLogEntry"] escapeHtml["escapeHtml"] renderLogEntry -->|calls| escapeHtml style renderLogEntry fill:#dbeafe,stroke:#2563eb,stroke-width:2px click renderLogEntry "3a328b10c51eb46b.html" click escapeHtml "67836c1424e9ebff.html"
TargetType
escapeHtml calls

No incoming dependencies.