MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / initApp

Function initApp

frontend/src/main.ts:16–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16async function initApp() {
17 try {
18 const { state, updatePanelStatus } = useAppStateStore();
19 setLoadingTitle("Initializing Application...");
20 await updatePanelStatus();
21 setLoadingTitle("Initializing Language...");
22 await initI18n(state.language);
23 setLoadingTitle("Initializing Layout...");
24 await initLayoutConfig();
25 setLoadingTitle("Downloading JavaScript Files...");
26 const module = await import("./mount");
27 setLoadingTitle("Rendering Application...");
28 await module.mountApp();
29 } catch (error: any) {
30 handleLoadingError(error);
31 }
32}
33
34initApp();

Callers 1

main.tsFile · 0.85

Calls 5

setLoadingTitleFunction · 0.90
initI18nFunction · 0.90
initLayoutConfigFunction · 0.90
updatePanelStatusFunction · 0.85
handleLoadingErrorFunction · 0.85

Tested by

no test coverage detected