@jupyterlab/debugger 3.3.0-alpha.7 → 4.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/handler.js +7 -3
- package/lib/handler.js.map +1 -1
- package/lib/handlers/editor.js.map +1 -1
- package/lib/handlers/file.js.map +1 -1
- package/lib/handlers/notebook.js.map +1 -1
- package/lib/panels/breakpoints/body.d.ts +0 -1
- package/lib/panels/breakpoints/body.js.map +1 -1
- package/lib/panels/breakpoints/index.d.ts +2 -1
- package/lib/panels/breakpoints/index.js +7 -10
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/breakpoints/model.js.map +1 -1
- package/lib/panels/callstack/body.d.ts +0 -1
- package/lib/panels/callstack/body.js.map +1 -1
- package/lib/panels/callstack/index.d.ts +2 -1
- package/lib/panels/callstack/index.js +24 -20
- package/lib/panels/callstack/index.js.map +1 -1
- package/lib/panels/sources/body.js.map +1 -1
- package/lib/panels/sources/index.d.ts +2 -2
- package/lib/panels/sources/index.js +14 -9
- package/lib/panels/sources/index.js.map +1 -1
- package/lib/panels/sources/sourcepath.d.ts +10 -0
- package/lib/panels/sources/sourcepath.js +17 -0
- package/lib/panels/sources/sourcepath.js.map +1 -0
- package/lib/panels/variables/grid.d.ts +5 -0
- package/lib/panels/variables/grid.js +15 -8
- package/lib/panels/variables/grid.js.map +1 -1
- package/lib/panels/variables/index.d.ts +2 -2
- package/lib/panels/variables/index.js +15 -12
- package/lib/panels/variables/index.js.map +1 -1
- package/lib/panels/variables/scope.d.ts +0 -1
- package/lib/panels/variables/tree.d.ts +0 -1
- package/lib/panels/variables/tree.js +1 -1
- package/lib/panels/variables/tree.js.map +1 -1
- package/lib/service.d.ts +6 -0
- package/lib/service.js +3 -1
- package/lib/service.js.map +1 -1
- package/lib/session.js.map +1 -1
- package/lib/sidebar.d.ts +3 -40
- package/lib/sidebar.js +13 -60
- package/lib/sidebar.js.map +1 -1
- package/lib/sources.js.map +1 -1
- package/lib/tokens.d.ts +2 -14
- package/lib/tokens.js.map +1 -1
- package/package.json +26 -26
- package/style/breakpoints.css +2 -0
- package/style/callstack.css +2 -0
- package/style/icons.css +4 -4
- package/style/sidebar.css +5 -52
- package/style/sources.css +6 -1
- package/style/variables.css +2 -4
- package/lib/panels/breakpoints/header.d.ts +0 -16
- package/lib/panels/breakpoints/header.js +0 -30
- package/lib/panels/breakpoints/header.js.map +0 -1
- package/lib/panels/callstack/header.d.ts +0 -16
- package/lib/panels/callstack/header.js +0 -30
- package/lib/panels/callstack/header.js.map +0 -1
- package/lib/panels/sources/header.d.ts +0 -19
- package/lib/panels/sources/header.js +0 -48
- package/lib/panels/sources/header.js.map +0 -1
- package/lib/panels/variables/header.d.ts +0 -16
- package/lib/panels/variables/header.js +0 -30
- package/lib/panels/variables/header.js.map +0 -1
package/lib/tokens.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { KernelMessage, Session } from '@jupyterlab/services';
|
|
|
3
3
|
import { ReadonlyJSONObject, Token } from '@lumino/coreutils';
|
|
4
4
|
import { IObservableDisposable } from '@lumino/disposable';
|
|
5
5
|
import { ISignal, Signal } from '@lumino/signaling';
|
|
6
|
-
import {
|
|
6
|
+
import { Panel } from '@lumino/widgets';
|
|
7
7
|
import { DebugProtocol } from 'vscode-debugprotocol';
|
|
8
8
|
import { DebuggerHandler } from './handler';
|
|
9
9
|
/**
|
|
@@ -539,23 +539,11 @@ export declare namespace IDebugger {
|
|
|
539
539
|
/**
|
|
540
540
|
* Debugger sidebar interface.
|
|
541
541
|
*/
|
|
542
|
-
interface ISidebar extends
|
|
542
|
+
interface ISidebar extends Panel {
|
|
543
543
|
/**
|
|
544
544
|
* Debugger variables explorer.
|
|
545
545
|
*/
|
|
546
546
|
variables: IVariablesPanel;
|
|
547
|
-
/**
|
|
548
|
-
* Add item at the end of the sidebar.
|
|
549
|
-
*/
|
|
550
|
-
addItem(widget: Widget): void;
|
|
551
|
-
/**
|
|
552
|
-
* Insert item at a specified index.
|
|
553
|
-
*/
|
|
554
|
-
insertItem(index: number, widget: Widget): void;
|
|
555
|
-
/**
|
|
556
|
-
* Return all items that were added to sidebar.
|
|
557
|
-
*/
|
|
558
|
-
readonly items: readonly Widget[];
|
|
559
547
|
}
|
|
560
548
|
/**
|
|
561
549
|
* A utility to find text editors used by the debugger.
|
package/lib/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAsB,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAsB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAs3B9D;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,KAAK,CAAY,gCAAgC,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,KAAK,CACtC,sCAAsC,CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/debugger",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.2",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -48,29 +48,29 @@
|
|
|
48
48
|
"watch": "tsc -b --watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@jupyterlab/application": "^
|
|
52
|
-
"@jupyterlab/apputils": "^
|
|
53
|
-
"@jupyterlab/cells": "^
|
|
54
|
-
"@jupyterlab/codeeditor": "^
|
|
55
|
-
"@jupyterlab/codemirror": "^
|
|
56
|
-
"@jupyterlab/console": "^
|
|
57
|
-
"@jupyterlab/coreutils": "^
|
|
58
|
-
"@jupyterlab/docregistry": "^
|
|
59
|
-
"@jupyterlab/fileeditor": "^
|
|
60
|
-
"@jupyterlab/notebook": "^
|
|
61
|
-
"@jupyterlab/observables": "^
|
|
62
|
-
"@jupyterlab/rendermime": "^
|
|
63
|
-
"@jupyterlab/services": "^
|
|
64
|
-
"@jupyterlab/translation": "^
|
|
65
|
-
"@jupyterlab/ui-components": "^
|
|
66
|
-
"@lumino/algorithm": "^1.
|
|
67
|
-
"@lumino/commands": "^1.
|
|
68
|
-
"@lumino/coreutils": "^1.
|
|
69
|
-
"@lumino/datagrid": "^0.
|
|
70
|
-
"@lumino/disposable": "^1.
|
|
71
|
-
"@lumino/messaging": "^1.
|
|
72
|
-
"@lumino/signaling": "^1.
|
|
73
|
-
"@lumino/widgets": "^1.
|
|
51
|
+
"@jupyterlab/application": "^4.0.0-alpha.2",
|
|
52
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.2",
|
|
53
|
+
"@jupyterlab/cells": "^4.0.0-alpha.2",
|
|
54
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.2",
|
|
55
|
+
"@jupyterlab/codemirror": "^4.0.0-alpha.2",
|
|
56
|
+
"@jupyterlab/console": "^4.0.0-alpha.2",
|
|
57
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.2",
|
|
58
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.2",
|
|
59
|
+
"@jupyterlab/fileeditor": "^4.0.0-alpha.2",
|
|
60
|
+
"@jupyterlab/notebook": "^4.0.0-alpha.2",
|
|
61
|
+
"@jupyterlab/observables": "^5.0.0-alpha.2",
|
|
62
|
+
"@jupyterlab/rendermime": "^4.0.0-alpha.2",
|
|
63
|
+
"@jupyterlab/services": "^7.0.0-alpha.2",
|
|
64
|
+
"@jupyterlab/translation": "^4.0.0-alpha.2",
|
|
65
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.17",
|
|
66
|
+
"@lumino/algorithm": "^1.9.1",
|
|
67
|
+
"@lumino/commands": "^1.19.0",
|
|
68
|
+
"@lumino/coreutils": "^1.11.1",
|
|
69
|
+
"@lumino/datagrid": "^0.34.0",
|
|
70
|
+
"@lumino/disposable": "^1.10.1",
|
|
71
|
+
"@lumino/messaging": "^1.10.1",
|
|
72
|
+
"@lumino/signaling": "^1.10.1",
|
|
73
|
+
"@lumino/widgets": "^1.30.0",
|
|
74
74
|
"codemirror": "~5.61.0",
|
|
75
75
|
"react": "^17.0.1",
|
|
76
76
|
"vscode-debugprotocol": "^1.37.0"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "^7.10.2",
|
|
80
80
|
"@babel/preset-env": "^7.10.2",
|
|
81
|
-
"@jupyterlab/testutils": "^
|
|
81
|
+
"@jupyterlab/testutils": "^4.0.0-alpha.2",
|
|
82
82
|
"@types/codemirror": "^0.0.109",
|
|
83
83
|
"@types/jest": "^26.0.10",
|
|
84
84
|
"@types/react-dom": "^17.0.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"text-encoding": "^0.7.0",
|
|
94
94
|
"ts-jest": "^26.3.0",
|
|
95
95
|
"typedoc": "~0.21.2",
|
|
96
|
-
"typescript": "~4.
|
|
96
|
+
"typescript": "~4.5.2"
|
|
97
97
|
},
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
package/style/breakpoints.css
CHANGED
package/style/callstack.css
CHANGED
package/style/icons.css
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
button.jp-Button.
|
|
7
|
-
button.jp-Button.
|
|
6
|
+
button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TreeView,
|
|
7
|
+
button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TableView {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
-webkit-transition: 0.4s;
|
|
@@ -12,12 +12,12 @@ button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TableView {
|
|
|
12
12
|
width: 35px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
button.jp-Button.
|
|
15
|
+
button.jp-Button.jp-mod-minimal.jp-TreeView:hover {
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
background-color: var(--jp-layout-color1);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
button.jp-Button.
|
|
20
|
+
button.jp-Button.jp-mod-minimal.jp-TableView:hover {
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
background-color: var(--jp-layout-color1);
|
|
23
23
|
}
|
package/style/sidebar.css
CHANGED
|
@@ -3,57 +3,10 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
.jp-
|
|
7
|
-
--jp-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.jp-DebuggerSidebar {
|
|
11
|
-
color: var(--jp-ui-font-color1);
|
|
12
|
-
background: var(--jp-layout-color1);
|
|
13
|
-
font-size: var(--jp-ui-font-size1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.jp-DebuggerSidebar .p-SplitPanel-child {
|
|
17
|
-
z-index: auto;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.jp-DebuggerSidebar .jp-DebuggerSidebar-body {
|
|
21
|
-
height: calc(100% - var(--jp-debugger-header-height));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.jp-DebuggerSidebar .jp-stack-panel-header {
|
|
25
|
-
border-bottom: solid var(--jp-border-width) var(--jp-border-color1);
|
|
26
|
-
box-shadow: var(--jp-toolbar-box-shadow);
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
align-items: center;
|
|
30
|
-
min-height: 24px;
|
|
31
|
-
height: var(--jp-debugger-header-height);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.jp-DebuggerSidebar > .jp-stack-panel-header {
|
|
35
|
-
background-color: var(--jp-layout-color1);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.jp-DebuggerSidebar .jp-stack-panel-header h2 {
|
|
39
|
-
text-transform: uppercase;
|
|
6
|
+
.jp-SidePanel-header > h2 {
|
|
7
|
+
/* Set font-size to override default h2 sizing but keeping default --jp-ui-font-size0 */
|
|
8
|
+
font-size: 100%;
|
|
40
9
|
font-weight: 600;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
padding-left: 8px;
|
|
44
|
-
padding-right: 4px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.jp-DebuggerSidebar-body .jp-stack-panel-header {
|
|
48
|
-
border-top: solid var(--jp-border-width) var(--jp-border-color1);
|
|
49
|
-
background-color: var(--jp-layout-color2);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.jp-DebuggerSidebar-body .jp-DebuggerVariables .jp-stack-panel-header {
|
|
53
|
-
border-top: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.jp-DebuggerSidebar-body .jp-Toolbar {
|
|
57
|
-
background: var(--jp-layout-color2);
|
|
58
|
-
box-shadow: none;
|
|
10
|
+
margin: 0px auto 0px 0px;
|
|
11
|
+
padding: 4px 10px;
|
|
59
12
|
}
|
package/style/sources.css
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
+
.jp-DebuggerSources {
|
|
7
|
+
min-height: 50px;
|
|
8
|
+
margin-top: 3px;
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {
|
|
7
12
|
background: var(--jp-layout-color2);
|
|
8
13
|
height: 100%;
|
|
@@ -13,7 +18,7 @@
|
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
.jp-DebuggerSources-body {
|
|
16
|
-
height:
|
|
21
|
+
height: 100%;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
.jp-DebuggerSources-header > div > span {
|
package/style/variables.css
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
.jp-DebuggerVariables {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
+
min-height: 50px;
|
|
10
|
+
padding-top: 3px;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
.jp-DebuggerVariables-body {
|
|
@@ -68,10 +70,6 @@
|
|
|
68
70
|
margin-left: 12px;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
.jp-DebuggerVariables .jp-stack-panel-header .jp-Toolbar {
|
|
72
|
-
margin-left: auto;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
73
|
.jp-DebuggerVariables-grid {
|
|
76
74
|
flex: 1 1 auto;
|
|
77
75
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
/**
|
|
5
|
-
* The header for a Breakpoints Panel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class BreakpointsHeader extends Widget {
|
|
8
|
-
/**
|
|
9
|
-
* Instantiate a new BreakpointsHeader.
|
|
10
|
-
*/
|
|
11
|
-
constructor(translator?: ITranslator);
|
|
12
|
-
/**
|
|
13
|
-
* The toolbar for the breakpoints header.
|
|
14
|
-
*/
|
|
15
|
-
readonly toolbar: Toolbar<Widget>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* The header for a Breakpoints Panel.
|
|
8
|
-
*/
|
|
9
|
-
export class BreakpointsHeader extends Widget {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new BreakpointsHeader.
|
|
12
|
-
*/
|
|
13
|
-
constructor(translator) {
|
|
14
|
-
super({ node: document.createElement('div') });
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the breakpoints header.
|
|
17
|
-
*/
|
|
18
|
-
this.toolbar = new Toolbar();
|
|
19
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
20
|
-
translator = translator || nullTranslator;
|
|
21
|
-
const trans = translator.load('jupyterlab');
|
|
22
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
23
|
-
title.node.textContent = trans.__('Breakpoints');
|
|
24
|
-
const layout = new PanelLayout();
|
|
25
|
-
layout.addWidget(title);
|
|
26
|
-
layout.addWidget(this.toolbar);
|
|
27
|
-
this.layout = layout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/breakpoints/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM;IAC3C;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;QAEjD,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
/**
|
|
5
|
-
* The header for a Callstack Panel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CallstackHeader extends Widget {
|
|
8
|
-
/**
|
|
9
|
-
* Instantiate a new CallstackHeader.
|
|
10
|
-
*/
|
|
11
|
-
constructor(translator?: ITranslator);
|
|
12
|
-
/**
|
|
13
|
-
* The toolbar for the callstack header.
|
|
14
|
-
*/
|
|
15
|
-
readonly toolbar: Toolbar<Widget>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* The header for a Callstack Panel.
|
|
8
|
-
*/
|
|
9
|
-
export class CallstackHeader extends Widget {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new CallstackHeader.
|
|
12
|
-
*/
|
|
13
|
-
constructor(translator) {
|
|
14
|
-
super({ node: document.createElement('div') });
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the callstack header.
|
|
17
|
-
*/
|
|
18
|
-
this.toolbar = new Toolbar();
|
|
19
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
20
|
-
translator = translator || nullTranslator;
|
|
21
|
-
const trans = translator.load('jupyterlab');
|
|
22
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
23
|
-
title.node.textContent = trans.__('Callstack');
|
|
24
|
-
const layout = new PanelLayout();
|
|
25
|
-
layout.addWidget(title);
|
|
26
|
-
layout.addWidget(this.toolbar);
|
|
27
|
-
this.layout = layout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/callstack/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
import { IDebugger } from '../../tokens';
|
|
5
|
-
/**
|
|
6
|
-
* The header for a Source Panel.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SourcesHeader extends Widget {
|
|
9
|
-
/**
|
|
10
|
-
* Instantiate a new SourcesHeader.
|
|
11
|
-
*
|
|
12
|
-
* @param model The model for the Sources.
|
|
13
|
-
*/
|
|
14
|
-
constructor(model: IDebugger.Model.ISources, translator?: ITranslator);
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the sources header.
|
|
17
|
-
*/
|
|
18
|
-
readonly toolbar: Toolbar<Widget>;
|
|
19
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { ReactWidget, Toolbar, UseSignal } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
/**
|
|
8
|
-
* The header for a Source Panel.
|
|
9
|
-
*/
|
|
10
|
-
export class SourcesHeader extends Widget {
|
|
11
|
-
/**
|
|
12
|
-
* Instantiate a new SourcesHeader.
|
|
13
|
-
*
|
|
14
|
-
* @param model The model for the Sources.
|
|
15
|
-
*/
|
|
16
|
-
constructor(model, translator) {
|
|
17
|
-
super({ node: document.createElement('div') });
|
|
18
|
-
/**
|
|
19
|
-
* The toolbar for the sources header.
|
|
20
|
-
*/
|
|
21
|
-
this.toolbar = new Toolbar();
|
|
22
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
23
|
-
translator = translator || nullTranslator;
|
|
24
|
-
const trans = translator.load('jupyterlab');
|
|
25
|
-
const layout = new PanelLayout();
|
|
26
|
-
this.layout = layout;
|
|
27
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
28
|
-
title.node.textContent = trans.__('Source');
|
|
29
|
-
const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model }));
|
|
30
|
-
layout.addWidget(title);
|
|
31
|
-
layout.addWidget(this.toolbar);
|
|
32
|
-
layout.addWidget(sourcePath);
|
|
33
|
-
this.addClass('jp-DebuggerSources-header');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A React component to display the path to a source.
|
|
38
|
-
*
|
|
39
|
-
* @param {object} props The component props.
|
|
40
|
-
* @param props.model The model for the sources.
|
|
41
|
-
*/
|
|
42
|
-
const SourcePathComponent = ({ model }) => {
|
|
43
|
-
return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
|
|
44
|
-
var _a, _b;
|
|
45
|
-
return (React.createElement("span", { onClick: () => model === null || model === void 0 ? void 0 : model.open() }, (_b = (_a = model === null || model === void 0 ? void 0 : model.currentSource) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : ''));
|
|
46
|
-
}));
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/sources/header.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,MAAM;IACvC;;;;OAIG;IACH,YAAY,KAA+B,EAAE,UAAwB;QACnE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAuBjD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAzB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CACnC,oBAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,GAAI,CACtC,CAAC;QAEF,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CAMF;AAED;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,EAC3B,KAAK,EAGN,EAAe,EAAE;IAChB,OAAO,CACL,oBAAC,SAAS,IAAC,MAAM,EAAE,KAAK,CAAC,oBAAoB,EAAE,aAAa,EAAE,KAAK,IAChE,CAAC,KAAK,EAAe,EAAE;;QAAC,OAAA,CACvB,8BAAM,OAAO,EAAE,GAAS,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,gBACrC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,0CAAE,IAAI,mCAAI,EAAE,CAC5B,CACR,CAAA;KAAA,CACS,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
/**
|
|
5
|
-
* The header for a Variables Panel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class VariablesHeader extends Widget {
|
|
8
|
-
/**
|
|
9
|
-
* Instantiate a new VariablesHeader.
|
|
10
|
-
*/
|
|
11
|
-
constructor(translator?: ITranslator);
|
|
12
|
-
/**
|
|
13
|
-
* The toolbar for the callstack header.
|
|
14
|
-
*/
|
|
15
|
-
readonly toolbar: Toolbar<Widget>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* The header for a Variables Panel.
|
|
8
|
-
*/
|
|
9
|
-
export class VariablesHeader extends Widget {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new VariablesHeader.
|
|
12
|
-
*/
|
|
13
|
-
constructor(translator) {
|
|
14
|
-
super({ node: document.createElement('div') });
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the callstack header.
|
|
17
|
-
*/
|
|
18
|
-
this.toolbar = new Toolbar();
|
|
19
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
20
|
-
translator = translator || nullTranslator;
|
|
21
|
-
const trans = translator.load('jupyterlab');
|
|
22
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
23
|
-
title.node.textContent = trans.__('Variables');
|
|
24
|
-
const layout = new PanelLayout();
|
|
25
|
-
layout.addWidget(title);
|
|
26
|
-
layout.addWidget(this.toolbar);
|
|
27
|
-
this.layout = layout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/variables/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
|