@jupyter-notebook/help-extension 7.0.0-alpha.1 → 7.0.0-alpha.10
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.js +10 -6
- package/package.json +10 -9
- package/schema/plugin.json +28 -0
- package/style/base.css +17 -1
package/lib/index.js
CHANGED
|
@@ -80,13 +80,18 @@ const plugin = {
|
|
|
80
80
|
React.createElement("span", { className: "jp-AboutNotebook-header" },
|
|
81
81
|
React.createElement(jupyterIcon.react, { width: "196px", height: "auto" }))));
|
|
82
82
|
const notebookURL = 'https://github.com/jupyter/notebook';
|
|
83
|
-
const
|
|
83
|
+
const contributorURL = 'https://github.com/jupyter/notebook/pulse';
|
|
84
|
+
const aboutJupyter = trans.__('JUPYTER NOTEBOOK ON GITHUB');
|
|
85
|
+
const contributorList = trans.__('CONTRIBUTOR LIST');
|
|
84
86
|
const externalLinks = (React.createElement("span", null,
|
|
85
|
-
React.createElement("a", { href: notebookURL, target: "_blank", rel: "noopener noreferrer", className: "jp-Button-flat jp-AboutNotebook-about-externalLinks" },
|
|
87
|
+
React.createElement("a", { href: notebookURL, target: "_blank", rel: "noopener noreferrer", className: "jp-Button-flat jp-AboutNotebook-about-externalLinks" }, aboutJupyter),
|
|
88
|
+
React.createElement("a", { href: contributorURL, target: "_blank", rel: "noopener noreferrer", className: "jp-Button-flat jp-AboutNotebook-about-externalLinks" }, contributorList)));
|
|
86
89
|
const version = trans.__('Version: %1', app.version);
|
|
90
|
+
const copyright = trans.__('© 2021-2023 Jupyter Notebook Contributors');
|
|
87
91
|
const body = (React.createElement(React.Fragment, null,
|
|
88
|
-
React.createElement("span", { className: "jp-AboutNotebook-
|
|
89
|
-
React.createElement("div", null, externalLinks)
|
|
92
|
+
React.createElement("span", { className: "jp-AboutNotebook-version" }, version),
|
|
93
|
+
React.createElement("div", null, externalLinks),
|
|
94
|
+
React.createElement("span", { className: "jp-AboutNotebook-about-copyright" }, copyright)));
|
|
90
95
|
const dialog = new Dialog({
|
|
91
96
|
title,
|
|
92
97
|
body,
|
|
@@ -106,8 +111,7 @@ const plugin = {
|
|
|
106
111
|
command: CommandIDs.open
|
|
107
112
|
}));
|
|
108
113
|
if (menu) {
|
|
109
|
-
menu.helpMenu.addGroup(
|
|
110
|
-
menu.helpMenu.addGroup(resourcesGroup);
|
|
114
|
+
menu.helpMenu.addGroup(resourcesGroup, 30);
|
|
111
115
|
}
|
|
112
116
|
}
|
|
113
117
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/help-extension",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.10",
|
|
4
4
|
"description": "Jupyter Notebook - Help Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -39,21 +39,22 @@
|
|
|
39
39
|
"watch": "tsc -b --watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@jupyter-notebook/ui-components": "^7.0.0-alpha.
|
|
43
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
44
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
45
|
-
"@jupyterlab/mainmenu": "^4.0.0-alpha.
|
|
46
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
42
|
+
"@jupyter-notebook/ui-components": "^7.0.0-alpha.10",
|
|
43
|
+
"@jupyterlab/application": "^4.0.0-alpha.17",
|
|
44
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.17",
|
|
45
|
+
"@jupyterlab/mainmenu": "^4.0.0-alpha.17",
|
|
46
|
+
"@jupyterlab/translation": "^4.0.0-alpha.17"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"rimraf": "
|
|
50
|
-
"typescript": "~4.
|
|
49
|
+
"rimraf": "^3.0.2",
|
|
50
|
+
"typescript": "~4.9.3"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"jupyterlab": {
|
|
56
|
-
"extension": true
|
|
56
|
+
"extension": true,
|
|
57
|
+
"schemaDir": "schema"
|
|
57
58
|
},
|
|
58
59
|
"styleModule": "style/index.js"
|
|
59
60
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Jupyter Notebook Help Menu Entries",
|
|
3
|
+
"description": "Jupyter Notebook Help Menu Entries",
|
|
4
|
+
"jupyter.lab.menus": {
|
|
5
|
+
"main": [
|
|
6
|
+
{
|
|
7
|
+
"id": "jp-mainmenu-help",
|
|
8
|
+
"items": [
|
|
9
|
+
{
|
|
10
|
+
"command": "help:about",
|
|
11
|
+
"rank": 0
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "separator",
|
|
15
|
+
"rank": 1
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"command": "help:shortcuts",
|
|
19
|
+
"rank": 20
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"properties": {},
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"type": "object"
|
|
28
|
+
}
|
package/style/base.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.jp-AboutNotebook .jp-Dialog-header {
|
|
2
2
|
justify-content: center;
|
|
3
|
+
padding: 0;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.jp-AboutNotebook-header {
|
|
@@ -13,12 +14,23 @@
|
|
|
13
14
|
margin-left: 16px;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
.jp-AboutNotebook-version {
|
|
18
|
+
color: var(--jp-ui-font-color1);
|
|
19
|
+
font-size: var(--jp-ui-font-size1);
|
|
20
|
+
padding: var(--jp-flat-button-padding);
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
letter-spacing: 0.4px;
|
|
23
|
+
line-height: 1.12;
|
|
24
|
+
min-width: 360px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
16
28
|
.jp-AboutNotebook-body {
|
|
17
29
|
display: flex;
|
|
18
30
|
font-size: var(--jp-ui-font-size2);
|
|
19
31
|
padding: var(--jp-flat-button-padding);
|
|
20
32
|
color: var(--jp-ui-font-color1);
|
|
21
|
-
text-align:
|
|
33
|
+
text-align: center;
|
|
22
34
|
flex-direction: column;
|
|
23
35
|
min-width: 360px;
|
|
24
36
|
overflow: hidden;
|
|
@@ -37,6 +49,10 @@
|
|
|
37
49
|
color: var(--jp-warn-color0);
|
|
38
50
|
}
|
|
39
51
|
|
|
52
|
+
.jp-AboutNotebook-about-copyright {
|
|
53
|
+
padding-top: 25px;
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
.jp-AboutNotebook-shortcuts {
|
|
41
57
|
padding: 10px;
|
|
42
58
|
}
|