Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const image = getHint(ICON_CLASS_KEY, registry, plugin);
const iconClass = combineClasses(
image,
'jp-PluginList-icon',
'jp-MaterialIcon'
);
const iconTitle = getHint(ICON_LABEL_KEY, registry, plugin);
return (
<li title="{itemTitle}" data-id="{id}" selection="">
{defaultIconRegistry.contains(image) ? (
) : (
<span title="{iconTitle}">
)}
<span>{schema.title || id}</span>
</span></li>
);
});
orderedCategories.forEach(cat => {
const item = categories[cat][0] as ILauncher.IItemOptions;
let iconClass = this._commands.iconClass(item.command, {
...item.args,
cwd: this.cwd
});
let kernel = KERNEL_CATEGORIES.indexOf(cat) > -1;
if (cat in categories) {
section = (
<div>
<div>
{kernel && defaultIconRegistry.contains(iconClass) ? (
) : (
<div>
)}
<h2>{cat}</h2></div></div></div>