@jupyterlab/running 4.0.0-alpha.17 → 4.0.0-alpha.19
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/index.d.ts +64 -4
- package/lib/index.js +54 -19
- package/lib/index.js.map +1 -1
- package/package.json +8 -8
- package/style/base.css +10 -0
package/lib/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare class RunningSessions extends SidePanel {
|
|
|
68
68
|
* @param managers Managers
|
|
69
69
|
* @param manager New manager
|
|
70
70
|
*/
|
|
71
|
-
protected addSection(
|
|
71
|
+
protected addSection(_: unknown, manager: IRunningSessions.IManager): void;
|
|
72
72
|
protected managers: IRunningSessionManagers;
|
|
73
73
|
protected translator: ITranslator;
|
|
74
74
|
}
|
|
@@ -80,25 +80,85 @@ export declare namespace IRunningSessions {
|
|
|
80
80
|
* A manager of running items grouped under a single section.
|
|
81
81
|
*/
|
|
82
82
|
interface IManager {
|
|
83
|
+
/**
|
|
84
|
+
* Name that is shown to the user in plural.
|
|
85
|
+
*/
|
|
83
86
|
name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Called when the shutdown all button is pressed.
|
|
89
|
+
*/
|
|
84
90
|
shutdownAll(): void;
|
|
91
|
+
/**
|
|
92
|
+
* List the running models.
|
|
93
|
+
*/
|
|
85
94
|
running(): IRunningItem[];
|
|
95
|
+
/**
|
|
96
|
+
* Force a refresh of the running models.
|
|
97
|
+
*/
|
|
86
98
|
refreshRunning(): void;
|
|
99
|
+
/**
|
|
100
|
+
* A signal that should be emitted when the item list has changed.
|
|
101
|
+
*/
|
|
87
102
|
runningChanged: ISignal<any, any>;
|
|
103
|
+
/**
|
|
104
|
+
* A string used to describe the shutdown action.
|
|
105
|
+
*/
|
|
88
106
|
shutdownLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* A string used to describe the shutdown all action.
|
|
109
|
+
*/
|
|
89
110
|
shutdownAllLabel?: string;
|
|
111
|
+
/**
|
|
112
|
+
* A string used as the body text in the shutdown all confirmation dialog.
|
|
113
|
+
*/
|
|
90
114
|
shutdownAllConfirmationText?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The icon to show for shutting down an individual item in this section.
|
|
117
|
+
*/
|
|
91
118
|
shutdownItemIcon?: LabIcon;
|
|
92
119
|
}
|
|
93
120
|
/**
|
|
94
121
|
* A running item.
|
|
95
122
|
*/
|
|
96
123
|
interface IRunningItem {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
124
|
+
/**
|
|
125
|
+
* Optional child nodes that belong to a top-level running item.
|
|
126
|
+
*/
|
|
127
|
+
children?: IRunningItem[];
|
|
128
|
+
/**
|
|
129
|
+
* Optional CSS class name to add to the running item.
|
|
130
|
+
*/
|
|
131
|
+
className?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Optional context hint to add to the `data-context` attribute of an item.
|
|
134
|
+
*/
|
|
135
|
+
context?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Called when the running item is clicked.
|
|
138
|
+
*/
|
|
139
|
+
open?: () => void;
|
|
140
|
+
/**
|
|
141
|
+
* Called when the shutdown button is pressed on a particular item.
|
|
142
|
+
*/
|
|
143
|
+
shutdown?: () => void;
|
|
144
|
+
/**
|
|
145
|
+
* The `LabIcon` to use as the icon for the running item or the string
|
|
146
|
+
* `src` URL.
|
|
147
|
+
*/
|
|
148
|
+
icon: () => LabIcon | string;
|
|
149
|
+
/**
|
|
150
|
+
* Called to determine the label for each item.
|
|
151
|
+
*/
|
|
100
152
|
label: () => string;
|
|
153
|
+
/**
|
|
154
|
+
* Called to determine the `title` attribute for each item, which is
|
|
155
|
+
* revealed on hover.
|
|
156
|
+
*/
|
|
101
157
|
labelTitle?: () => string;
|
|
158
|
+
/**
|
|
159
|
+
* Called to determine the `detail` attribute, which is shown optionally in
|
|
160
|
+
* a column after the label.
|
|
161
|
+
*/
|
|
102
162
|
detail?: () => string;
|
|
103
163
|
}
|
|
104
164
|
}
|
package/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { Dialog, showDialog } from '@jupyterlab/apputils';
|
|
8
8
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
9
|
-
import { closeIcon, PanelWithToolbar, ReactWidget, refreshIcon, SidePanel, ToolbarButton, ToolbarButtonComponent, UseSignal } from '@jupyterlab/ui-components';
|
|
9
|
+
import { caretDownIcon, caretRightIcon, closeIcon, PanelWithToolbar, ReactWidget, refreshIcon, SidePanel, ToolbarButton, ToolbarButtonComponent, UseSignal } from '@jupyterlab/ui-components';
|
|
10
10
|
import { Token } from '@lumino/coreutils';
|
|
11
11
|
import { DisposableDelegate } from '@lumino/disposable';
|
|
12
12
|
import { Signal } from '@lumino/signaling';
|
|
@@ -86,22 +86,48 @@ export class RunningSessionManagers {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
function Item(props) {
|
|
89
|
-
var _a;
|
|
89
|
+
var _a, _b;
|
|
90
90
|
const { runningItem } = props;
|
|
91
|
-
const
|
|
91
|
+
const classList = [ITEM_CLASS];
|
|
92
92
|
const detail = (_a = runningItem.detail) === null || _a === void 0 ? void 0 : _a.call(runningItem);
|
|
93
|
+
const icon = runningItem.icon();
|
|
94
|
+
const title = runningItem.labelTitle ? runningItem.labelTitle() : '';
|
|
93
95
|
const translator = props.translator || nullTranslator;
|
|
94
96
|
const trans = translator.load('jupyterlab');
|
|
95
|
-
|
|
97
|
+
// Handle shutdown requests.
|
|
98
|
+
let stopPropagation = false;
|
|
96
99
|
const shutdownItemIcon = props.shutdownItemIcon || closeIcon;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
const shutdownLabel = props.shutdownLabel || trans.__('Shut Down');
|
|
101
|
+
const shutdown = () => {
|
|
102
|
+
var _a;
|
|
103
|
+
stopPropagation = true;
|
|
104
|
+
(_a = runningItem.shutdown) === null || _a === void 0 ? void 0 : _a.call(runningItem);
|
|
105
|
+
};
|
|
106
|
+
// Manage collapsed state. Use the shutdown flag in lieu of `stopPropagation`.
|
|
107
|
+
const [collapsed, collapse] = React.useState(false);
|
|
108
|
+
const collapsible = !!((_b = runningItem.children) === null || _b === void 0 ? void 0 : _b.length);
|
|
109
|
+
const onClick = collapsible
|
|
110
|
+
? () => !stopPropagation && collapse(!collapsed)
|
|
111
|
+
: undefined;
|
|
112
|
+
if (runningItem.className) {
|
|
113
|
+
classList.push(runningItem.className);
|
|
114
|
+
}
|
|
115
|
+
if (props.child) {
|
|
116
|
+
classList.push('jp-mod-running-child');
|
|
117
|
+
}
|
|
118
|
+
return (React.createElement(React.Fragment, null,
|
|
119
|
+
React.createElement("li", null,
|
|
120
|
+
React.createElement("div", { className: classList.join(' '), onClick: onClick, "data-context": runningItem.context || '' },
|
|
121
|
+
collapsible &&
|
|
122
|
+
(collapsed ? (React.createElement(caretRightIcon.react, { tag: "span", stylesheet: "runningItem" })) : (React.createElement(caretDownIcon.react, { tag: "span", stylesheet: "runningItem" }))),
|
|
123
|
+
typeof icon === 'string' ? (icon ? (React.createElement("img", { src: icon })) : undefined) : (React.createElement(icon.react, { tag: "span", stylesheet: "runningItem" })),
|
|
124
|
+
React.createElement("span", { className: ITEM_LABEL_CLASS, title: title, onClick: runningItem.open && (() => runningItem.open()) }, runningItem.label()),
|
|
125
|
+
detail && React.createElement("span", { className: ITEM_DETAIL_CLASS }, detail),
|
|
126
|
+
runningItem.shutdown && (React.createElement(ToolbarButtonComponent, { className: SHUTDOWN_BUTTON_CLASS, icon: shutdownItemIcon, onClick: shutdown, tooltip: shutdownLabel }))),
|
|
127
|
+
collapsible && !collapsed && (React.createElement(List, { child: true, runningItems: runningItem.children, shutdownItemIcon: shutdownItemIcon, translator: translator })))));
|
|
102
128
|
}
|
|
103
129
|
function List(props) {
|
|
104
|
-
return (React.createElement("ul", { className: LIST_CLASS }, props.runningItems.map((item, i) => (React.createElement(Item, { key: i, runningItem: item, shutdownLabel: props.shutdownLabel, shutdownItemIcon: props.shutdownItemIcon, translator: props.translator })))));
|
|
130
|
+
return (React.createElement("ul", { className: LIST_CLASS }, props.runningItems.map((item, i) => (React.createElement(Item, { child: props.child, key: i, runningItem: item, shutdownLabel: props.shutdownLabel, shutdownItemIcon: props.shutdownItemIcon, translator: props.translator })))));
|
|
105
131
|
}
|
|
106
132
|
/**
|
|
107
133
|
* The Section component contains the shared look and feel for an interactive
|
|
@@ -135,7 +161,9 @@ class Section extends PanelWithToolbar {
|
|
|
135
161
|
}
|
|
136
162
|
});
|
|
137
163
|
}
|
|
138
|
-
|
|
164
|
+
let runningItems = options.manager.running();
|
|
165
|
+
let cached = true;
|
|
166
|
+
const enabled = runningItems.length > 0;
|
|
139
167
|
this._button = new ToolbarButton({
|
|
140
168
|
label: shutdownAllLabel,
|
|
141
169
|
className: `${SHUTDOWN_ALL_BUTTON_CLASS} jp-mod-styled ${!enabled && 'jp-mod-disabled'}`,
|
|
@@ -145,8 +173,16 @@ class Section extends PanelWithToolbar {
|
|
|
145
173
|
this._manager.runningChanged.connect(this._updateButton, this);
|
|
146
174
|
this.toolbar.addItem('shutdown-all', this._button);
|
|
147
175
|
this.addWidget(ReactWidget.create(React.createElement(UseSignal, { signal: options.manager.runningChanged }, () => {
|
|
176
|
+
// Cache the running items for the intial load and request from
|
|
177
|
+
// the service every subsequent load.
|
|
178
|
+
if (cached) {
|
|
179
|
+
cached = false;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
runningItems = options.manager.running();
|
|
183
|
+
}
|
|
148
184
|
return (React.createElement("div", { className: CONTAINER_CLASS },
|
|
149
|
-
React.createElement(List, { runningItems:
|
|
185
|
+
React.createElement(List, { runningItems: runningItems, shutdownLabel: options.manager.shutdownLabel, shutdownAllLabel: shutdownAllLabel, shutdownItemIcon: options.manager.shutdownItemIcon, translator: options.translator })));
|
|
150
186
|
})));
|
|
151
187
|
}
|
|
152
188
|
/**
|
|
@@ -161,14 +197,13 @@ class Section extends PanelWithToolbar {
|
|
|
161
197
|
}
|
|
162
198
|
_updateButton() {
|
|
163
199
|
var _a, _b;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
200
|
+
const button = this._button;
|
|
201
|
+
button.enabled = this._manager.running().length > 0;
|
|
202
|
+
if (button.enabled) {
|
|
203
|
+
(_a = button.node.querySelector('button')) === null || _a === void 0 ? void 0 : _a.classList.remove('jp-mod-disabled');
|
|
168
204
|
}
|
|
169
205
|
else {
|
|
170
|
-
(_b =
|
|
171
|
-
.querySelector('button')) === null || _b === void 0 ? void 0 : _b.classList.add('jp-mod-disabled');
|
|
206
|
+
(_b = button.node.querySelector('button')) === null || _b === void 0 ? void 0 : _b.classList.add('jp-mod-disabled');
|
|
172
207
|
}
|
|
173
208
|
}
|
|
174
209
|
}
|
|
@@ -209,7 +244,7 @@ export class RunningSessions extends SidePanel {
|
|
|
209
244
|
* @param managers Managers
|
|
210
245
|
* @param manager New manager
|
|
211
246
|
*/
|
|
212
|
-
addSection(
|
|
247
|
+
addSection(_, manager) {
|
|
213
248
|
this.addWidget(new Section({ manager, translator: this.translator }));
|
|
214
249
|
}
|
|
215
250
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,SAAS,EAET,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,SAAS,EACV,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAe,MAAM,oBAAoB,CAAC;AAC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,CACZ,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;SAChE,CAAC,CACH,CAAC;QAEF,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;QAExE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,OAAO;SACR;QACD,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACtD,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACO,UAAU,CAAC,CAAU,EAAE,OAAkC;QACjE,IAAI,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACxE,CAAC;CAIF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/running",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.19",
|
|
4
4
|
"description": "JupyterLab - Running Sessions Panel",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"watch": "tsc -b --watch"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
40
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
41
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
42
|
-
"@lumino/coreutils": "^2.0.0-
|
|
43
|
-
"@lumino/disposable": "^2.0.0-
|
|
44
|
-
"@lumino/signaling": "^2.0.0-
|
|
45
|
-
"react": "^
|
|
39
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.19",
|
|
40
|
+
"@jupyterlab/translation": "^4.0.0-alpha.19",
|
|
41
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.34",
|
|
42
|
+
"@lumino/coreutils": "^2.0.0-beta.0",
|
|
43
|
+
"@lumino/disposable": "^2.0.0-beta.1",
|
|
44
|
+
"@lumino/signaling": "^2.0.0-beta.1",
|
|
45
|
+
"react": "^18.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"rimraf": "~3.0.0",
|
package/style/base.css
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.jp-RunningSessions-sectionList {
|
|
47
|
+
display: block;
|
|
47
48
|
margin: 0;
|
|
48
49
|
padding: 0;
|
|
49
50
|
list-style-type: none;
|
|
@@ -62,6 +63,15 @@
|
|
|
62
63
|
background-color: var(--jp-layout-color2);
|
|
63
64
|
}
|
|
64
65
|
|
|
66
|
+
.jp-RunningSessions-item.jp-mod-running-child {
|
|
67
|
+
padding-left: 40px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.jp-RunningSessions-item img {
|
|
71
|
+
height: 16px;
|
|
72
|
+
margin-top: 4px;
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
.jp-RunningSessions-itemLabel {
|
|
66
76
|
font-size: var(--jp-ui-font-size1);
|
|
67
77
|
flex: 1 1 55%;
|