MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / initializeLayout

Function initializeLayout

static/main.ts:619–628  ·  view source on GitHub ↗
(
        config: GoldenLayoutConfig,
        root: JQuery<HTMLElement>,
    )

Source from the content-addressed store, hash-verified

617 let settings: SiteSettings;
618
619 function initializeLayout(
620 config: GoldenLayoutConfig,
621 root: JQuery<HTMLElement>,
622 ): [GoldenLayout, Hub, Themer, SiteSettings] {
623 const layout = new GoldenLayout(toGoldenLayoutConfig(config), root);
624 const hub = new Hub(layout, subLangId, defaultLangId);
625 const [themer, settings] = setupSettings(hub);
626 hub.initLayout();
627 return [layout, hub, themer, settings];
628 }
629
630 try {
631 [layout, hub, themer, settings] = initializeLayout(config, root);

Callers 1

startFunction · 0.85

Calls 3

initLayoutMethod · 0.95
toGoldenLayoutConfigFunction · 0.85
setupSettingsFunction · 0.85

Tested by

no test coverage detected