@difizen/libro-lab 0.2.38 → 0.2.40-next.0
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/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YA8FxB,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -5,7 +5,7 @@ import { LibroSqlCellModule } from '@difizen/libro-sql-cell';
|
|
|
5
5
|
import { TerminalModule } from '@difizen/libro-terminal';
|
|
6
6
|
import { CommonWidgetsModule } from '@difizen/libro-widget';
|
|
7
7
|
import { ManaModule, createSlotPreference, RootSlotId, createViewPreference, HeaderArea } from '@difizen/mana-app';
|
|
8
|
-
import { l10n } from '@difizen/mana-l10n';
|
|
8
|
+
import { l10n, L10nLang } from '@difizen/mana-l10n';
|
|
9
9
|
import { LibroLabHeaderMenuModule } from "./command/module.js";
|
|
10
10
|
import { LabConfigAppContribution } from "./config/config-contribution.js";
|
|
11
11
|
import { CodeEditorViewerModule } from "./editor-viewer/index.js";
|
|
@@ -26,6 +26,7 @@ import { EntryPointView } from "./welcome/entry-point-view.js";
|
|
|
26
26
|
import { WelcomeView } from "./welcome/index.js";
|
|
27
27
|
export var LibroLabModule = ManaModule.create().preload(function () {
|
|
28
28
|
l10n.loadLangBundles(langBundles);
|
|
29
|
+
l10n.changeLang(L10nLang.enUS);
|
|
29
30
|
return Promise.resolve();
|
|
30
31
|
}).register(LibroLabApp, LibroLabLayoutView, GithubLinkView, LabConfigAppContribution, LibroLabSideTabView, LabColorContribution, LangSwitcherView, createViewPreference({
|
|
31
32
|
view: GithubLinkView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-lab",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40-next.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.1.0",
|
|
37
|
-
"@difizen/libro-core": "^0.2.
|
|
38
|
-
"@difizen/libro-jupyter": "^0.2.
|
|
39
|
-
"@difizen/libro-kernel": "^0.2.
|
|
40
|
-
"@difizen/libro-prompt-cell": "^0.2.
|
|
41
|
-
"@difizen/libro-sql-cell": "^0.2.
|
|
42
|
-
"@difizen/libro-terminal": "^0.2.
|
|
43
|
-
"@difizen/libro-toc": "^0.2.
|
|
44
|
-
"@difizen/libro-cofine-editor-core": "^0.2.
|
|
45
|
-
"@difizen/libro-language-client": "^0.2.
|
|
46
|
-
"@difizen/libro-widget": "^0.2.
|
|
47
|
-
"@difizen/libro-l10n": "^0.2.
|
|
37
|
+
"@difizen/libro-core": "^0.2.40",
|
|
38
|
+
"@difizen/libro-jupyter": "^0.2.40",
|
|
39
|
+
"@difizen/libro-kernel": "^0.2.40",
|
|
40
|
+
"@difizen/libro-prompt-cell": "^0.2.40",
|
|
41
|
+
"@difizen/libro-sql-cell": "^0.2.40",
|
|
42
|
+
"@difizen/libro-terminal": "^0.2.40",
|
|
43
|
+
"@difizen/libro-toc": "^0.2.40",
|
|
44
|
+
"@difizen/libro-cofine-editor-core": "^0.2.40",
|
|
45
|
+
"@difizen/libro-language-client": "^0.2.40",
|
|
46
|
+
"@difizen/libro-widget": "^0.2.40",
|
|
47
|
+
"@difizen/libro-l10n": "^0.2.40",
|
|
48
48
|
"@difizen/mana-app": "latest",
|
|
49
49
|
"@difizen/mana-l10n": "latest",
|
|
50
50
|
"@difizen/mana-common": "latest",
|
|
@@ -18,12 +18,15 @@ const CurrentFileFooterComponent = React.forwardRef(function CurrentFileFooterCo
|
|
|
18
18
|
ref: React.ForwardedRef<HTMLDivElement>,
|
|
19
19
|
) {
|
|
20
20
|
const currentFileFooterView = useInject<LibroLabCurrentFileFooterView>(ViewInstance);
|
|
21
|
-
|
|
21
|
+
const label = currentFileFooterView.navigatableView?.title.label;
|
|
22
22
|
return (
|
|
23
23
|
<div className="libro-lab-current-file-footer" ref={ref}>
|
|
24
|
-
<span>{
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
<span>{l10n.t('当前文件:')}</span>
|
|
25
|
+
{
|
|
26
|
+
typeof label === 'function'
|
|
27
|
+
? React.createElement(label) // 如果是 React.FC,调用它
|
|
28
|
+
: label /* 如果是 ReactNode,直接渲染 */
|
|
29
|
+
}
|
|
27
30
|
</div>
|
|
28
31
|
);
|
|
29
32
|
});
|