MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / PageReady

Function PageReady

ts/menu_ts.ts:1094–1113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1092}
1093
1094function PageReady() {
1095
1096 var server: Server = new Server("getServerConfig")
1097 server.request(new Object())
1098
1099 // Render the menu immediately so UI is usable even before data arrives
1100 try { createLayout() } catch (e) { console.log("early createLayout error", e) }
1101
1102 // Call updateLog immediately to get initial data and create menu
1103 setTimeout(() => {
1104 updateLog()
1105 }, 500); // Small delay to ensure WebSocket is ready
1106
1107 setInterval(function () {
1108 updateLog()
1109 }, 10000);
1110
1111
1112 return
1113}
1114
1115function createLayout() {
1116 console.log("createLayout: Function called");

Callers

nothing calls this directly

Calls 3

requestMethod · 0.95
createLayoutFunction · 0.70
updateLogFunction · 0.70

Tested by

no test coverage detected