Skip to content

Commit d3695dd

Browse files
authored
Merge pull request #134 from lsst-sqre/tickets/DM-19974
Update for JL 1.0-alpha
2 parents 2726bca + 4dc1c03 commit d3695dd

File tree

4 files changed

+9
-714
lines changed

4 files changed

+9
-714
lines changed

jupyterlab-server-proxy/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-server-proxy",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Launcher icons for proxied applications",
55
"keywords": [
66
"jupyter",
@@ -30,12 +30,12 @@
3030
"watch": "tsc -w"
3131
},
3232
"dependencies": {
33-
"@jupyterlab/application": "^0.19.1",
34-
"@jupyterlab/launcher": "^0.19.1"
33+
"@jupyterlab/application": "^1.0.0",
34+
"@jupyterlab/launcher": "^1.0.0"
3535
},
3636
"devDependencies": {
3737
"rimraf": "^2.6.1",
38-
"typescript": "~3.1.1"
38+
"typescript": "~3.5.1"
3939
},
4040
"jupyterlab": {
4141
"extension": true

jupyterlab-server-proxy/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { JupyterLab, JupyterLabPlugin } from '@jupyterlab/application';
1+
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application';
22
import { ILauncher } from '@jupyterlab/launcher';
33
import { PageConfig } from '@jupyterlab/coreutils';
44

55
import '../style/index.css';
66

77

8-
function addLauncherEntries(serverData: any, launcher: ILauncher, app: JupyterLab) {
8+
function addLauncherEntries(serverData: any, launcher: ILauncher, app: JupyterFrontEnd) {
99
for (let server_process of serverData.server_processes) {
1010

1111
if (!server_process.launcher_entry.enabled) {
@@ -34,11 +34,11 @@ function addLauncherEntries(serverData: any, launcher: ILauncher, app: JupyterLa
3434
/**
3535
* Initialization data for the jupyterlab-server-proxy extension.
3636
*/
37-
const extension: JupyterLabPlugin<void> = {
37+
const extension: JupyterFrontEndPlugin<void> = {
3838
id: 'jupyterlab-server-proxy',
3939
autoStart: true,
4040
requires: [ILauncher],
41-
activate: (app: JupyterLab, launcher: ILauncher) => {
41+
activate: (app: JupyterFrontEnd, launcher: ILauncher) => {
4242
// FIXME: What the callback hell is this
4343
fetch(PageConfig.getBaseUrl() + 'server-proxy/servers-info').then(
4444
response => {

0 commit comments

Comments
 (0)