import type { Child } from 'hono/jsx' import type { BranchInfo, RepoHeader, TagInfo, TraceBar, TraceModel } from './model.ts' import { PLY_SHA, PLY_WEB_SHA, plyBuildValue } from '../version.ts' import { atIndex } from '../absent.ts' /** Hex digits of each commit shown in the footer. */ const BUILD_SHA_CHARS = 12 import { viewerHref } from './url.ts' import { bannerClass, buttonClass, KUMO_BADGE_DANGER, KUMO_BADGE_INFO, KUMO_BADGE_NEUTRAL, KUMO_BADGE_OUTLINE, KUMO_BADGE_SUCCESS, KUMO_BADGE_WARNING, KUMO_BREADCRUMBS, KUMO_BREADCRUMB_CURRENT, KUMO_BREADCRUMB_LINK, KUMO_BREADCRUMB_SEPARATOR, KUMO_BUTTON_FOCUS, KUMO_BUTTON_SECONDARY, KUMO_BUTTON_SIZE_SM, KUMO_INPUT_SM, KUMO_LAYER_CARD, KUMO_LAYER_CARD_PRIMARY, KUMO_LAYER_CARD_SECONDARY, type BannerTone, type ButtonSize, type ButtonVariant, } from './kumo-classes.ts' import { exactTime, formatBytes, formatDuration, percentClass } from './format.ts' import { repoIdentity } from './identity.ts' import { LAYOUT } from './layout.ts' import { VIEWER_CSS_PATH } from './styles.ts' export function Button(props: { variant: ButtonVariant; size: ButtonSize; type: 'submit' | 'button' | null; children: Child }) { const tone = props.variant === 'primary' ? 'is-primary' : 'is-secondary' const type = props.type === null ? 'submit' : props.type return } export function Banner(props: { tone: BannerTone; children: Child }) { return
} export function Time(props: { iso: string; tz: string; now: number }) { const exact = exactTime(props.iso, props.tz, props.now) return } // ── icons ─────────────────────────────────────────────────────────────────────────────────────────────────────── // One inline sprite per page; every icon is a