Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
manager.themes.forEach(theme => {
palette.addItem({ command, args: { isPalette, theme }, category });
});
});
}
return manager;
},
autoStart: true,
provides: IThemeManager
};
/**
* Override Main Menu plugin from apputils-extension
*/
let nPlugins = plugins.map((p: JupyterLabPlugin) => {
switch (p.id) {
case settingPlugin.id:
return settingPlugin;
case themesPlugin.id:
return themesPlugin;
default:
return p;
}
});
nPlugins.push(serverManagerPlugin);
export default nPlugins;
let uiState = app.info.uiState;
if (uiState == 'linux' || uiState == 'mac') {
menu = buildNativeMenu(app);
} else {
menu = buildPhosphorMenu(app);
}
return menu;
}
};
/**
* Override Main Menu plugin from apputils-extension
*/
plugin[0] = nativeMainMenuPlugin;
plugin.push(serverManagerPlugin);
export default plugin;