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

Function refreshWikiStats

deployments/desktop/static/app.js:1219–1226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1217}
1218
1219async function refreshWikiStats() {
1220 const userId = activeUser();
1221 if (!userId) return;
1222 const data = await api(`/api/wiki/stats?user_id=${encodeURIComponent(userId)}`);
1223 $("wikiNodeStat").textContent = data.nodes || 0;
1224 $("wikiStats").textContent =
1225 `节点:${data.nodes || 0} | 关系:${data.edges || 0} | 引用:${data.citations || 0} | ${data.wiki_dir || ""}`;
1226}
1227
1228async function searchWiki() {
1229 const userId = ensureUser();

Callers 7

updateRoleFunction · 0.85
handleDailyTaskFunction · 0.85
submitFunction · 0.85
readArxivDirectFunction · 0.85
readPdfDirectFunction · 0.85
bindEventsFunction · 0.85
bootFunction · 0.85

Calls 3

activeUserFunction · 0.85
apiFunction · 0.70
$Function · 0.70

Tested by

no test coverage detected