@eclipse-docks/core 0.7.83 → 0.7.84
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/api/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 };
|
|
@@ -2616,6 +2616,14 @@ var DocksStandardLayout = class DocksStandardLayout extends DocksContainer {
|
|
|
2616
2616
|
position: relative;
|
|
2617
2617
|
z-index: 100;
|
|
2618
2618
|
}
|
|
2619
|
+
|
|
2620
|
+
docks-standard-layout .toolbar-top > :nth-child(1) {
|
|
2621
|
+
justify-self: start;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
docks-standard-layout .toolbar-top > :nth-child(2) {
|
|
2625
|
+
justify-self: center;
|
|
2626
|
+
}
|
|
2619
2627
|
|
|
2620
2628
|
docks-standard-layout .toolbar-bottom {
|
|
2621
2629
|
width: 100%;
|
|
@@ -3079,6 +3087,10 @@ registerAll({
|
|
|
3079
3087
|
});
|
|
3080
3088
|
//#endregion
|
|
3081
3089
|
//#region src/commands/version-info.ts
|
|
3090
|
+
/** Compare semver strings whether GitHub uses a leading "v" (e.g. v0.7.83) or package.json does not. */
|
|
3091
|
+
function semverEqual(a, b) {
|
|
3092
|
+
return a.replace(/^v/i, "") === b.replace(/^v/i, "");
|
|
3093
|
+
}
|
|
3082
3094
|
registerAll({
|
|
3083
3095
|
command: {
|
|
3084
3096
|
"id": "show_version_info",
|
|
@@ -3132,13 +3144,13 @@ registerAll({
|
|
|
3132
3144
|
}
|
|
3133
3145
|
else releases = app.releaseHistory;
|
|
3134
3146
|
const appVersion = app.version ?? "0.0.0";
|
|
3135
|
-
const currentIndex = releases.length > 0 ? releases.findIndex((r) => r.tag_name
|
|
3147
|
+
const currentIndex = releases.length > 0 ? releases.findIndex((r) => semverEqual(r.tag_name, appVersion)) : -1;
|
|
3136
3148
|
const startIndex = currentIndex >= 0 ? currentIndex : 0;
|
|
3137
3149
|
let currentReleaseIndex = startIndex;
|
|
3138
3150
|
const buildReleaseContent = (index) => {
|
|
3139
3151
|
if (releases.length === 0) return "";
|
|
3140
3152
|
const release = releases[index];
|
|
3141
|
-
const isCurrentVersion = release.tag_name
|
|
3153
|
+
const isCurrentVersion = semverEqual(release.tag_name, appVersion);
|
|
3142
3154
|
let message = `**Version:** ${release.tag_name}`;
|
|
3143
3155
|
if (isCurrentVersion) message += ` (Current)`;
|
|
3144
3156
|
message += `\n\n`;
|
|
@@ -3175,7 +3187,7 @@ registerAll({
|
|
|
3175
3187
|
const hasNavigation = releases.length > 0;
|
|
3176
3188
|
render(html`
|
|
3177
3189
|
<wa-dialog
|
|
3178
|
-
label="About ${app.name ?? ""} - ${
|
|
3190
|
+
label="About ${app.name ?? ""} - ${appVersion}"
|
|
3179
3191
|
open
|
|
3180
3192
|
light-dismiss
|
|
3181
3193
|
style="--width: 600px;"
|
|
@@ -4383,4 +4395,4 @@ function getFrameworkConfig() {
|
|
|
4383
4395
|
//#endregion
|
|
4384
4396
|
export { DocksStandardLayout as a, createLazyLabel as c, createJsRuntime as i, i18n as l, getFrameworkConfig as n, treeNodeComparator as o, runJavaScriptCode as r, editorRegistry as s, configureFramework as t };
|
|
4385
4397
|
|
|
4386
|
-
//# sourceMappingURL=api-
|
|
4398
|
+
//# sourceMappingURL=api-DISr4dl4.js.map
|