MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / wikiStatsText

Function wikiStatsText

deployments/desktop/static/desktop.js:3879–3890  ·  view source on GitHub ↗
(stats, suffix = "")

Source from the content-addressed store, hash-verified

3877 }
3878
3879 function wikiStatsText(stats, suffix = "") {
3880 const byType = stats.nodes_by_type || {};
3881 const typeParts = [
3882 byType.paper ? `${ui().wiki.typePart.paper} ${byType.paper}` : "",
3883 byType.topic ? `${ui().wiki.typePart.topic} ${byType.topic}` : "",
3884 byType.section ? `${ui().wiki.typePart.section} ${byType.section}` : "",
3885 byType.trajectory ? `${ui().wiki.typePart.trajectory} ${byType.trajectory}` : ""
3886 ].filter(Boolean).join(" · ");
3887 const wikiDirText = stats.wiki_dir ? ` · ${ui().wiki.dirPrefix} ${stats.wiki_dir}` : "";
3888 const typeText = typeParts ? ` · ${typeParts}` : "";
3889 return ui().wiki.stats(stats, typeText, wikiDirText, suffix);
3890 }
3891
3892 function wikiDailyGraphParams() {
3893 const scope = $("wikiDailyScope")?.value || "latest";

Callers 1

loadWikiFunction · 0.85

Calls 1

uiFunction · 0.85

Tested by

no test coverage detected