Skip to content

Commit

Permalink
post-rebase cleanup and bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Dec 25, 2019
1 parent 6b997b3 commit 6d38176
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
12 changes: 7 additions & 5 deletions packages/application-extension/src/index.tsx
Expand Up @@ -26,15 +26,17 @@ import {

import { PathExt, URLExt } from '@jupyterlab/coreutils';

import { IStateDB } from '@jupyterlab/statedb';

import { ISettingRegistry } from '@jupyterlab/settingregistry';

import {
IPropertyInspectorProvider,
SideBarPropertyInspectorProvider
} from '@jupyterlab/property-inspector';

import { ISettingRegistry } from '@jupyterlab/settingregistry';

import { IStateDB } from '@jupyterlab/statedb';

import { buildIcon } from "@jupyterlab/ui-components";

import { each, iter, toArray } from '@lumino/algorithm';

import { PromiseDelegate } from '@lumino/coreutils';
Expand Down Expand Up @@ -799,7 +801,7 @@ const propertyInspector: JupyterFrontEndPlugin<IPropertyInspectorProvider> = {
provides: IPropertyInspectorProvider,
activate: (app: JupyterFrontEnd, labshell: ILabShell) => {
const widget = new SideBarPropertyInspectorProvider(labshell);
widget.title.iconClass = 'jp-BuildIcon jp-SideBar-tabIcon';
widget.title.iconRenderer = buildIcon;
widget.title.caption = 'Property Inspector';
widget.id = 'jp-property-inspector';
labshell.add(widget, 'left');
Expand Down
2 changes: 1 addition & 1 deletion packages/docregistry/src/mimedocument.ts
Expand Up @@ -289,7 +289,7 @@ export class MimeDocumentFactory extends ABCWidgetFactory<MimeDocument> {

content.title.iconClass = ft?.iconClass ?? '';
content.title.iconLabel = ft?.iconLabel ?? '';
content.title.iconRenderer = ft?.iconRenderer;
content.title.iconRenderer = ft?.iconRenderer!;

const widget = new MimeDocument({ content, context });

Expand Down
2 changes: 1 addition & 1 deletion packages/htmlviewer-extension/src/index.tsx
Expand Up @@ -97,7 +97,7 @@ function activateHTMLViewer(

widget.title.iconClass = ft.iconClass ?? '';
widget.title.iconLabel = ft.iconLabel ?? '';
widget.title.iconRenderer = ft.iconRenderer;
widget.title.iconRenderer = ft.iconRenderer!;
});

// Add a command to trust the active HTML document,
Expand Down
2 changes: 1 addition & 1 deletion packages/imageviewer-extension/src/index.ts
Expand Up @@ -107,7 +107,7 @@ function activate(
if (types.length > 0) {
widget.title.iconClass = types[0].iconClass ?? '';
widget.title.iconLabel = types[0].iconLabel ?? '';
widget.title.iconRenderer = types[0].iconRenderer;
widget.title.iconRenderer = types[0].iconRenderer!;
}
});

Expand Down
2 changes: 1 addition & 1 deletion packages/markdownviewer/src/widget.ts
Expand Up @@ -311,7 +311,7 @@ export class MarkdownViewerFactory extends ABCWidgetFactory<MarkdownDocument> {
const content = new MarkdownViewer({ context, renderer });
content.title.iconClass = this._fileType?.iconClass ?? '';
content.title.iconLabel = this._fileType?.iconLabel ?? '';
content.title.iconRenderer = this._fileType?.iconRenderer;
content.title.iconRenderer = this._fileType?.iconRenderer!;
const widget = new MarkdownDocument({ content, context });

return widget;
Expand Down
9 changes: 6 additions & 3 deletions packages/notebook-extension/src/index.ts
Expand Up @@ -576,9 +576,12 @@ function activateNotebookHandler(
factory.widgetCreated.connect((sender, widget) => {
// If the notebook panel does not have an ID, assign it one.
widget.id = widget.id || `notebook-${++id}`;
widget.title.iconClass = ft.iconClass;
widget.title.iconLabel = ft.iconLabel;
widget.title.iconRenderer = ft.iconRenderer;

// Set up the title icon
widget.title.iconClass = ft?.iconClass ?? '';
widget.title.iconLabel = ft?.iconLabel ?? '';
widget.title.iconRenderer = ft?.iconRenderer!;

// Notify the widget tracker if restore data needs to update.
widget.context.pathChanged.connect(() => {
void tracker.save(widget);
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/package.json
Expand Up @@ -51,7 +51,7 @@
"@storybook/addon-actions": "^5.2.5",
"@storybook/react": "^5.2.5",
"@types/react": "~16.9.16",
"@types/react-dom": "^16.9.4",
"@types/react-dom": "~16.9.4",
"@types/webpack-env": "^1.14.1",
"awesome-typescript-loader": "^5.2.1",
"babel-loader": "^8.0.6",
Expand Down

0 comments on commit 6d38176

Please sign in to comment.