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

Function boot

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

Source from the content-addressed store, hash-verified

1447}
1448
1449async function boot() {
1450 bindEvents();
1451 const health = await api("/api/health");
1452 $("healthText").textContent = DEMO_MODE
1453 ? "GitHub Pages 预览模式"
1454 : health.database_exists ? "运行环境就绪" : "请先运行 paperflow init";
1455 await loadUsers();
1456 await loadRoles();
1457 await Promise.allSettled([
1458 refreshDashboard(),
1459 refreshWikiStats(),
1460 refreshSettings(),
1461 loadSourceOptions(),
1462 loadLatestPush(),
1463 refreshProfile(),
1464 refreshMustRead(),
1465 ]);
1466 await refreshDailyTaskStatus({ silent: true });
1467 if (!["queued", "running"].includes(state.dailyTaskStatus)) {
1468 setStatus("就绪");
1469 }
1470}
1471
1472boot().catch((error) => {
1473 setStatus(localizeError(error.message || String(error)));

Callers 1

app.jsFile · 0.85

Calls 14

loadRolesFunction · 0.85
refreshDashboardFunction · 0.85
refreshWikiStatsFunction · 0.85
refreshSettingsFunction · 0.85
refreshProfileFunction · 0.85
refreshMustReadFunction · 0.85
refreshDailyTaskStatusFunction · 0.85
bindEventsFunction · 0.70
apiFunction · 0.70
$Function · 0.70
loadUsersFunction · 0.70
loadSourceOptionsFunction · 0.70

Tested by

no test coverage detected