INNER CODE UNIT · JavaScript

panelNote

rootSunc/CNEquity · frontend/src/main.js:207

const panelNote = (html) => `<p class="panel-note">${html}</p>`;

// storage/stats.py emits exactly two of these; anything else falls through
// unchanged rather than being silently mistranslated.
function statsReason(reason) {
  if (!reason) return tr("原因未知", "Unknown reason");
  if (reason.includes("landed after the stats were built")) return tr("有新的采集批次晚于度量表", "A newer batch landed after the stats snapshot");
  if (reason.includes("no stats yet")) return tr("尚未生成过度量表", "No stats snapshot yet");
  return reason;
}

function dsLink(id) {
  return `<span class="ds-link" data-ds="${esc(id)}">${dsMarkup(id)}</span>`;
}

async function renderOverview() {
  const [h, tiers, datasets, hm] = await Promise.all([
    api("/api/health"),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…