@eclipse-docks/core 0.7.83 → 0.7.85
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/dist/api/index.js +1 -1
- package/dist/{api-C8Vh88fr.js → api-DISr4dl4.js} +16 -4
- package/dist/api-DISr4dl4.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/layouts/standard-layout.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/commands/version-info.ts +8 -3
- package/src/layouts/standard-layout.ts +8 -0
- package/dist/api-C8Vh88fr.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import { i as setLogLevel, n as defaultLogger, o as rootContext, s as uiContext,
|
|
|
3
3
|
import { C as toastWarning, S as toastInfo, _ as applyConfigNameRemaps, a as TOPIC_COMMAND_REGISTERED, b as overrideContributionTargets, c as EMPTY_SIGNALPORT, d as activeSelectionSignal, f as activeTasksSignal, g as contributionRegistry, h as TOPIC_CONTRIBUTEIONS_CHANGED, i as CommandStack, l as activeEditorSignal, m as perspectiveSwitchedSignal, n as watchSignal, o as commandRegistry, p as partDirtySignal, r as CommandRegistry, s as registerAll, t as DocksWidget, u as activePartSignal, v as contributionTargetMappingRegistry, x as toastError, y as listContributionNameRemaps } from "./widget-BgBerzhp.js";
|
|
4
4
|
import { n as subscribe, r as unsubscribe, t as publish } from "./events-B_ZxkU_G.js";
|
|
5
5
|
import { a as File, c as TOPIC_WORKSPACE_CHANGED, d as WorkspaceService, f as workspaceService, i as Directory, l as TOPIC_WORKSPACE_CONNECTED, o as FileContentType, p as persistenceService, r as CompositeDirectory, s as StringFile, t as FileSysDirHandleResource } from "./fs-access-D-fDaJ8V.js";
|
|
6
|
-
import { a as DocksStandardLayout, c as createLazyLabel, i as createJsRuntime, l as i18n, n as getFrameworkConfig, o as treeNodeComparator, r as runJavaScriptCode, s as editorRegistry, t as configureFramework } from "./api-
|
|
6
|
+
import { a as DocksStandardLayout, c as createLazyLabel, i as createJsRuntime, l as i18n, n as getFrameworkConfig, o as treeNodeComparator, r as runJavaScriptCode, s as editorRegistry, t as configureFramework } from "./api-DISr4dl4.js";
|
|
7
7
|
export { COMMAND_SAVE, CommandRegistry, CommandStack, CompositeDirectory, Directory, DocksContainer, DocksDialogContent, DocksElement, DocksPart, DocksStandardLayout, DocksWidget, EDITOR_AREA_MAIN, EMPTY_SIGNALPORT, File, FileContentType, FileSysDirHandleResource, HIDE_DOT_RESOURCE, MouseButton, PANEL_BOTTOM, SIDEBAR_AUXILIARY, SIDEBAR_MAIN, SIDEBAR_MAIN_BOTTOM, SYSTEM_LAYOUTS, SYSTEM_VIEWS, StringFile, TOOLBAR_BOTTOM, TOOLBAR_BOTTOM_CENTER, TOOLBAR_BOTTOM_END, TOOLBAR_MAIN, TOOLBAR_MAIN_CENTER, TOOLBAR_MAIN_RIGHT, TOPIC_COMMAND_REGISTERED, TOPIC_CONTRIBUTEIONS_CHANGED, TOPIC_SETTINGS_CHANGED, TOPIC_WORKSPACE_CHANGED, TOPIC_WORKSPACE_CONNECTED, WorkspaceService, activeEditorSignal, activePartSignal, activeSelectionSignal, activeTasksSignal, appLoaderService, appSettings, applyConfigNameRemaps, commandRegistry, configureFramework, confirmDialog, contributionRegistry, contributionTargetMappingRegistry, createJsRuntime, createLazyLabel, createLogger, dialogService, editorRegistry, esmShService, extensionRegistry, filebrowserDialog, getFrameworkConfig, i18n, icon, infoDialog, listContributionNameRemaps, defaultLogger as logger, navigableInfoDialog, overrideContributionTargets, parseIconSpec, partDirtySignal, persistenceService, perspectiveSwitchedSignal, promptDialog, publish, registerAll, rootContext, runJavaScriptCode, setLogLevel, subscribe, taskService, toastError, toastInfo, toastWarning, treeNodeComparator, uiContext, unsubscribe, watchSignal, workspaceService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-layout.d.ts","sourceRoot":"","sources":["../../src/layouts/standard-layout.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAElD,qBACa,mBAAoB,SAAQ,cAAc;IAEnD,iBAAiB,EAAE,OAAO,CAAS;IAGnC,eAAe,EAAE,OAAO,CAAS;IAGjC,eAAe,EAAE,OAAO,CAAQ;IAGhC,cAAc,EAAE,OAAO,CAAQ;IAE/B,gBAAgB;IAIhB,OAAO,CAAC,YAAY;IAapB,MAAM;
|
|
1
|
+
{"version":3,"file":"standard-layout.d.ts","sourceRoot":"","sources":["../../src/layouts/standard-layout.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAElD,qBACa,mBAAoB,SAAQ,cAAc;IAEnD,iBAAiB,EAAE,OAAO,CAAS;IAGnC,eAAe,EAAE,OAAO,CAAS;IAGjC,eAAe,EAAE,OAAO,CAAQ;IAGhC,cAAc,EAAE,OAAO,CAAQ;IAE/B,gBAAgB;IAIhB,OAAO,CAAC,YAAY;IAapB,MAAM;CAgIT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,uBAAuB,EAAE,mBAAmB,CAAC;KAChD;CACJ"}
|
package/package.json
CHANGED
|
@@ -5,6 +5,11 @@ import { marked } from "marked";
|
|
|
5
5
|
import { toastError } from "../core/toast";
|
|
6
6
|
import { appLoaderService, type ReleaseEntry } from "../core/apploader";
|
|
7
7
|
|
|
8
|
+
/** Compare semver strings whether GitHub uses a leading "v" (e.g. v0.7.83) or package.json does not. */
|
|
9
|
+
function semverEqual(a: string, b: string): boolean {
|
|
10
|
+
return a.replace(/^v/i, '') === b.replace(/^v/i, '');
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
registerAll({
|
|
9
14
|
command: {
|
|
10
15
|
"id": "show_version_info",
|
|
@@ -76,7 +81,7 @@ registerAll({
|
|
|
76
81
|
|
|
77
82
|
const appVersion = app.version ?? '0.0.0';
|
|
78
83
|
const isDev = appVersion === '0.0.0';
|
|
79
|
-
const currentIndex = releases.length > 0 ? releases.findIndex(r => r.tag_name
|
|
84
|
+
const currentIndex = releases.length > 0 ? releases.findIndex(r => semverEqual(r.tag_name, appVersion)) : -1;
|
|
80
85
|
const startIndex = currentIndex >= 0 ? currentIndex : 0;
|
|
81
86
|
let currentReleaseIndex = startIndex;
|
|
82
87
|
|
|
@@ -86,7 +91,7 @@ registerAll({
|
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
const release = releases[index];
|
|
89
|
-
const isCurrentVersion = release.tag_name
|
|
94
|
+
const isCurrentVersion = semverEqual(release.tag_name, appVersion);
|
|
90
95
|
|
|
91
96
|
let message = `**Version:** ${release.tag_name}`;
|
|
92
97
|
if (isCurrentVersion) {
|
|
@@ -140,7 +145,7 @@ registerAll({
|
|
|
140
145
|
|
|
141
146
|
const template = html`
|
|
142
147
|
<wa-dialog
|
|
143
|
-
label="About ${app.name ?? ''} - ${
|
|
148
|
+
label="About ${app.name ?? ''} - ${appVersion}"
|
|
144
149
|
open
|
|
145
150
|
light-dismiss
|
|
146
151
|
style="--width: 600px;"
|
|
@@ -88,6 +88,14 @@ export class DocksStandardLayout extends DocksContainer {
|
|
|
88
88
|
position: relative;
|
|
89
89
|
z-index: 100;
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
docks-standard-layout .toolbar-top > :nth-child(1) {
|
|
93
|
+
justify-self: start;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
docks-standard-layout .toolbar-top > :nth-child(2) {
|
|
97
|
+
justify-self: center;
|
|
98
|
+
}
|
|
91
99
|
|
|
92
100
|
docks-standard-layout .toolbar-bottom {
|
|
93
101
|
width: 100%;
|