@jupyterlab/statusbar 3.3.0-alpha.9 → 4.0.0-alpha.4
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/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/progressBar.d.ts +8 -1
- package/lib/components/progressBar.js +18 -6
- package/lib/components/progressBar.js.map +1 -1
- package/lib/components/progressCircle.d.ts +14 -0
- package/lib/components/progressCircle.js +20 -0
- package/lib/components/progressCircle.js.map +1 -0
- package/lib/defaults/kernelStatus.d.ts +0 -1
- package/lib/defaults/kernelStatus.js +4 -17
- package/lib/defaults/kernelStatus.js.map +1 -1
- package/lib/defaults/runningSessions.d.ts +1 -2
- package/package.json +14 -14
- package/style/base.css +73 -0
- package/style/index.css +2 -0
- package/style/index.js +2 -0
- package/lib/style/progressBar.d.ts +0 -2
- package/lib/style/progressBar.js +0 -17
- package/lib/style/progressBar.js.map +0 -1
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* A namespace for ProgressBar statics.
|
|
4
3
|
*/
|
|
@@ -11,6 +10,14 @@ export declare namespace ProgressBar {
|
|
|
11
10
|
* The current progress percentage, from 0 to 100
|
|
12
11
|
*/
|
|
13
12
|
percentage: number;
|
|
13
|
+
/**
|
|
14
|
+
* Width of progress bar in pixel.
|
|
15
|
+
*/
|
|
16
|
+
width?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Text to show inside progress bar.
|
|
19
|
+
*/
|
|
20
|
+
content?: string;
|
|
14
21
|
}
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
10
|
+
t[p[i]] = s[p[i]];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
3
14
|
import * as React from 'react';
|
|
4
|
-
import { fillerItem, progressBarItem } from '../style/progressBar';
|
|
5
15
|
/**
|
|
6
16
|
* A functional tsx component for a progress bar.
|
|
7
17
|
*/
|
|
8
18
|
export function ProgressBar(props) {
|
|
9
|
-
|
|
10
|
-
|
|
19
|
+
const { width } = props, rest = __rest(props, ["width"]);
|
|
20
|
+
return (React.createElement("div", { className: 'jp-Statusbar-ProgressBar-progress-bar' },
|
|
21
|
+
React.createElement(Filler, Object.assign({}, rest, { contentWidth: width }))));
|
|
11
22
|
}
|
|
12
23
|
/**
|
|
13
24
|
* A functional tsx component for a partially filled div.
|
|
14
25
|
*/
|
|
15
26
|
function Filler(props) {
|
|
16
|
-
return (React.createElement("div", {
|
|
17
|
-
width: `${props.percentage}
|
|
18
|
-
} }
|
|
27
|
+
return (React.createElement("div", { style: {
|
|
28
|
+
width: `${props.percentage}%`
|
|
29
|
+
} },
|
|
30
|
+
React.createElement("p", null, props.content)));
|
|
19
31
|
}
|
|
20
32
|
//# sourceMappingURL=progressBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressBar.js","sourceRoot":"","sources":["../../src/components/progressBar.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D
|
|
1
|
+
{"version":3,"file":"progressBar.js","sourceRoot":"","sources":["../../src/components/progressBar.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;;;;;;;;;;;;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAyB;IACnD,MAAM,EAAE,KAAK,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAA1B,SAAkB,CAAQ,CAAC;IACjC,OAAO,CACL,6BAAK,SAAS,EAAE,uCAAuC;QACrD,oBAAC,MAAM,oBAAK,IAAI,IAAE,YAAY,EAAE,KAAK,IAAI,CACrC,CACP,CAAC;AACJ,CAAC;AA2BD;;GAEG;AACH,SAAS,MAAM,CAAC,KAAoB;IAClC,OAAO,CACL,6BACE,KAAK,EAAE;YACL,KAAK,EAAE,GAAG,KAAK,CAAC,UAAU,GAAG;SAC9B;QAED,+BAAI,KAAK,CAAC,OAAO,CAAK,CAClB,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare namespace ProgressCircle {
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ProgressBar.
|
|
4
|
+
*/
|
|
5
|
+
interface IProps {
|
|
6
|
+
/**
|
|
7
|
+
* The current progress percentage, from 0 to 100
|
|
8
|
+
*/
|
|
9
|
+
progress: number;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare function ProgressCircle(props: ProgressCircle.IProps): JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export function ProgressCircle(props) {
|
|
3
|
+
const radius = 104;
|
|
4
|
+
const d = (progress) => {
|
|
5
|
+
const angle = Math.max(progress * 3.6, 0.1);
|
|
6
|
+
const rad = (angle * Math.PI) / 180, x = Math.sin(rad) * radius, y = Math.cos(rad) * -radius, mid = angle < 180 ? 1 : 0, shape = `M 0 0 v -${radius} A ${radius} ${radius} 1 ` +
|
|
7
|
+
mid +
|
|
8
|
+
' 0 ' +
|
|
9
|
+
x.toFixed(4) +
|
|
10
|
+
' ' +
|
|
11
|
+
y.toFixed(4) +
|
|
12
|
+
' z';
|
|
13
|
+
return shape;
|
|
14
|
+
};
|
|
15
|
+
return (React.createElement("div", { className: 'jp-Statusbar-ProgressCircle' },
|
|
16
|
+
React.createElement("svg", { viewBox: "0 0 250 250" },
|
|
17
|
+
React.createElement("circle", { cx: "125", cy: "125", r: `${radius}`, stroke: "var(--jp-inverse-layout-color3)", strokeWidth: "20", fill: "none" }),
|
|
18
|
+
React.createElement("path", { transform: "translate(125,125) scale(.9)", d: d(props.progress), fill: 'var(--jp-inverse-layout-color3)' }))));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=progressCircle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressCircle.js","sourceRoot":"","sources":["../../src/components/progressCircle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,MAAM,UAAU,cAAc,CAAC,KAA4B;IACzD,MAAM,MAAM,GAAG,GAAG,CAAC;IACnB,MAAM,CAAC,GAAG,CAAC,QAAgB,EAAU,EAAE;QACrC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;QAC5C,MAAM,GAAG,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,EACjC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,EAC1B,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAC3B,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACzB,KAAK,GACH,YAAY,MAAM,MAAM,MAAM,IAAI,MAAM,KAAK;YAC7C,GAAG;YACH,KAAK;YACL,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACZ,GAAG;YACH,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACZ,IAAI,CAAC;QACT,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IACF,OAAO,CACL,6BAAK,SAAS,EAAE,6BAA6B;QAC3C,6BAAK,OAAO,EAAC,aAAa;YACxB,gCACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,CAAC,EAAE,GAAG,MAAM,EAAE,EACd,MAAM,EAAC,iCAAiC,EACxC,WAAW,EAAC,IAAI,EAChB,IAAI,EAAC,MAAM,GACX;YACF,8BACE,SAAS,EAAC,8BAA8B,EACxC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EACpB,IAAI,EAAE,iCAAiC,GACvC,CACE,CACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
import { translateKernelStatuses } from '@jupyterlab/apputils';
|
|
3
4
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
5
|
import { VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
|
|
5
6
|
import { JSONExt } from '@lumino/coreutils';
|
|
@@ -77,22 +78,7 @@ export class KernelStatus extends VDomRenderer {
|
|
|
77
78
|
translator = translator || nullTranslator;
|
|
78
79
|
this._trans = translator.load('jupyterlab');
|
|
79
80
|
this._kernelName = this._trans.__('No Kernel!');
|
|
80
|
-
|
|
81
|
-
this._statusNames = {
|
|
82
|
-
unknown: this._trans.__('Unknown'),
|
|
83
|
-
starting: this._trans.__('Starting'),
|
|
84
|
-
idle: this._trans.__('Idle'),
|
|
85
|
-
busy: this._trans.__('Busy'),
|
|
86
|
-
terminating: this._trans.__('Terminating'),
|
|
87
|
-
restarting: this._trans.__('Restarting'),
|
|
88
|
-
autorestarting: this._trans.__('Autorestarting'),
|
|
89
|
-
dead: this._trans.__('Dead'),
|
|
90
|
-
connected: this._trans.__('Connected'),
|
|
91
|
-
connecting: this._trans.__('Connecting'),
|
|
92
|
-
disconnected: this._trans.__('Disconnected'),
|
|
93
|
-
initializing: this._trans.__('Initializing'),
|
|
94
|
-
'': ''
|
|
95
|
-
};
|
|
81
|
+
this._statusNames = translateKernelStatuses(translator);
|
|
96
82
|
}
|
|
97
83
|
/**
|
|
98
84
|
* The name of the kernel.
|
|
@@ -135,7 +121,8 @@ export class KernelStatus extends VDomRenderer {
|
|
|
135
121
|
const oldState = this._getAllState();
|
|
136
122
|
this._sessionContext = sessionContext;
|
|
137
123
|
this._kernelStatus = sessionContext === null || sessionContext === void 0 ? void 0 : sessionContext.kernelDisplayStatus;
|
|
138
|
-
this._kernelName =
|
|
124
|
+
this._kernelName =
|
|
125
|
+
(_c = sessionContext === null || sessionContext === void 0 ? void 0 : sessionContext.kernelDisplayName) !== null && _c !== void 0 ? _c : this._trans.__('No Kernel');
|
|
139
126
|
sessionContext === null || sessionContext === void 0 ? void 0 : sessionContext.statusChanged.connect(this._onKernelStatusChanged, this);
|
|
140
127
|
sessionContext === null || sessionContext === void 0 ? void 0 : sessionContext.connectionStatusChanged.connect(this._onKernelStatusChanged, this);
|
|
141
128
|
sessionContext === null || sessionContext === void 0 ? void 0 : sessionContext.kernelChanged.connect(this._onKernelChanged, this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernelStatus.js","sourceRoot":"","sources":["../../src/defaults/kernelStatus.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;
|
|
1
|
+
{"version":3,"file":"kernelStatus.js","sourceRoot":"","sources":["../../src/defaults/kernelStatus.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAmB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAEL,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAa,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAE/C;;GAEG;AACH,SAAS,qBAAqB,CAC5B,KAAmC;IAEnC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,cAAc,CAAC;IACtD,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,UAAU,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC;KACnC;IACD,OAAO,CACL,oBAAC,QAAQ,IACP,OAAO,EAAE,KAAK,CAAC,WAAW,EAC1B,MAAM,EAAE,GAAG,KAAK,CAAC,UAAU,GAAG,UAAU,EAAE,EAC1C,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,EAAE,KAAK,CAAC,YAAY,CAAC,GAC3D,CACH,CAAC;AACJ,CAAC;AAsCD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,YAAgC;IAChE;;OAEG;IACH,YAAY,I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KAYF;IA7GY,kBAAK,QA6GjB,CAAA;AAYH,CAAC,EA7HgB,YAAY,KAAZ,YAAY,QA6H5B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ServiceManager } from '@jupyterlab/services';
|
|
3
2
|
import { ITranslator } from '@jupyterlab/translation';
|
|
4
3
|
import { VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
|
|
@@ -59,7 +58,7 @@ export declare namespace RunningSessions {
|
|
|
59
58
|
/**
|
|
60
59
|
* The application service manager.
|
|
61
60
|
*/
|
|
62
|
-
serviceManager: ServiceManager;
|
|
61
|
+
serviceManager: ServiceManager.IManager;
|
|
63
62
|
/**
|
|
64
63
|
* A click handler for the item. By default this is used
|
|
65
64
|
* to activate the running sessions side panel.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/statusbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.4",
|
|
4
4
|
"description": "JupyterLab statusbar package.",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -36,28 +36,28 @@
|
|
|
36
36
|
"watch": "tsc -b --watch"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jupyterlab/apputils": "^
|
|
40
|
-
"@jupyterlab/codeeditor": "^
|
|
41
|
-
"@jupyterlab/services": "^
|
|
42
|
-
"@jupyterlab/translation": "^
|
|
43
|
-
"@jupyterlab/ui-components": "^
|
|
44
|
-
"@lumino/algorithm": "^1.
|
|
45
|
-
"@lumino/coreutils": "^1.
|
|
46
|
-
"@lumino/disposable": "^1.
|
|
47
|
-
"@lumino/messaging": "^1.
|
|
48
|
-
"@lumino/signaling": "^1.
|
|
49
|
-
"@lumino/widgets": "^1.
|
|
39
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.4",
|
|
40
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.4",
|
|
41
|
+
"@jupyterlab/services": "^7.0.0-alpha.4",
|
|
42
|
+
"@jupyterlab/translation": "^4.0.0-alpha.4",
|
|
43
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.19",
|
|
44
|
+
"@lumino/algorithm": "^1.9.1",
|
|
45
|
+
"@lumino/coreutils": "^1.11.1",
|
|
46
|
+
"@lumino/disposable": "^1.10.1",
|
|
47
|
+
"@lumino/messaging": "^1.10.1",
|
|
48
|
+
"@lumino/signaling": "^1.10.1",
|
|
49
|
+
"@lumino/widgets": "^1.30.0",
|
|
50
50
|
"csstype": "~3.0.3",
|
|
51
51
|
"react": "^17.0.1",
|
|
52
52
|
"typestyle": "^2.0.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@jupyterlab/testutils": "^
|
|
55
|
+
"@jupyterlab/testutils": "^4.0.0-alpha.4",
|
|
56
56
|
"@types/jest": "^26.0.10",
|
|
57
57
|
"jest": "^26.4.2",
|
|
58
58
|
"rimraf": "~3.0.0",
|
|
59
59
|
"ts-jest": "^26.3.0",
|
|
60
|
-
"typescript": "~4.
|
|
60
|
+
"typescript": "~4.5.2"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
package/style/base.css
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/*-----------------------------------------------------------------------------
|
|
7
|
+
| Variables
|
|
8
|
+
|----------------------------------------------------------------------------*/
|
|
9
|
+
|
|
10
|
+
/*-----------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
/*-----------------------------------------------------------------------------
|
|
13
|
+
| Styles
|
|
14
|
+
|----------------------------------------------------------------------------*/
|
|
15
|
+
|
|
16
|
+
.jp-Statusbar-ProgressCircle svg {
|
|
17
|
+
display: block;
|
|
18
|
+
margin: 0 auto;
|
|
19
|
+
width: 16px;
|
|
20
|
+
height: 24px;
|
|
21
|
+
align-self: normal;
|
|
22
|
+
}
|
|
23
|
+
.jp-Statusbar-ProgressCircle path {
|
|
24
|
+
fill: var(--jp-inverse-layout-color3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.jp-Statusbar-ProgressBar-progress-bar {
|
|
28
|
+
height: 10px;
|
|
29
|
+
width: 100px;
|
|
30
|
+
border: solid 0.25px var(--jp-brand-color2);
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
align-self: center;
|
|
34
|
+
}
|
|
35
|
+
.jp-Statusbar-ProgressBar-progress-bar > div {
|
|
36
|
+
background-color: var(--jp-brand-color2);
|
|
37
|
+
background-image: linear-gradient(
|
|
38
|
+
-45deg,
|
|
39
|
+
rgba(255, 255, 255, 0.2) 25%,
|
|
40
|
+
transparent 25%,
|
|
41
|
+
transparent 50%,
|
|
42
|
+
rgba(255, 255, 255, 0.2) 50%,
|
|
43
|
+
rgba(255, 255, 255, 0.2) 75%,
|
|
44
|
+
transparent 75%,
|
|
45
|
+
transparent
|
|
46
|
+
);
|
|
47
|
+
background-size: 40px 40px;
|
|
48
|
+
float: left;
|
|
49
|
+
width: 0%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
line-height: 14px;
|
|
53
|
+
color: #ffffff;
|
|
54
|
+
text-align: center;
|
|
55
|
+
animation: jp-Statusbar-ExecutionTime-progress-bar 2s linear infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.jp-Statusbar-ProgressBar-progress-bar p {
|
|
59
|
+
color: var(--jp-ui-font-color1);
|
|
60
|
+
font-family: var(--jp-ui-font-family);
|
|
61
|
+
font-size: var(--jp-ui-font-size1);
|
|
62
|
+
line-height: 10px;
|
|
63
|
+
width: 100px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes jp-Statusbar-ExecutionTime-progress-bar {
|
|
67
|
+
0% {
|
|
68
|
+
background-position: 0 0;
|
|
69
|
+
}
|
|
70
|
+
100% {
|
|
71
|
+
background-position: 40px 40px;
|
|
72
|
+
}
|
|
73
|
+
}
|
package/style/index.css
CHANGED
package/style/index.js
CHANGED
package/lib/style/progressBar.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { style } from 'typestyle/lib';
|
|
4
|
-
export const progressBarItem = style({
|
|
5
|
-
background: 'black',
|
|
6
|
-
height: '10px',
|
|
7
|
-
width: '100px',
|
|
8
|
-
border: '1px solid black',
|
|
9
|
-
borderRadius: '3px',
|
|
10
|
-
marginLeft: '4px',
|
|
11
|
-
overflow: 'hidden'
|
|
12
|
-
});
|
|
13
|
-
export const fillerItem = style({
|
|
14
|
-
background: 'var(--jp-brand-color2)',
|
|
15
|
-
height: '10px'
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=progressBar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progressBar.js","sourceRoot":"","sources":["../../src/style/progressBar.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;IACnC,UAAU,EAAE,OAAO;IACnB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,iBAAiB;IACzB,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,QAAQ;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;IAC9B,UAAU,EAAE,wBAAwB;IACpC,MAAM,EAAE,MAAM;CACf,CAAC,CAAC"}
|