@theia/timeline 1.67.0-next.56 → 1.67.0-next.86
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/browser/timeline-context-key-service.d.ts +8 -0
- package/lib/browser/timeline-context-key-service.d.ts.map +1 -0
- package/lib/browser/timeline-context-key-service.js +44 -0
- package/lib/browser/timeline-context-key-service.js.map +1 -0
- package/lib/browser/timeline-contribution.d.ts +18 -0
- package/lib/browser/timeline-contribution.d.ts.map +1 -0
- package/lib/browser/timeline-contribution.js +121 -0
- package/lib/browser/timeline-contribution.js.map +1 -0
- package/lib/browser/timeline-empty-widget.d.ts +9 -0
- package/lib/browser/timeline-empty-widget.d.ts.map +1 -0
- package/lib/browser/timeline-empty-widget.js +42 -0
- package/lib/browser/timeline-empty-widget.js.map +1 -0
- package/lib/browser/timeline-frontend-module.d.ts +6 -0
- package/lib/browser/timeline-frontend-module.d.ts.map +1 -0
- package/lib/browser/timeline-frontend-module.js +69 -0
- package/lib/browser/timeline-frontend-module.js.map +1 -0
- package/lib/browser/timeline-service.d.ts +26 -0
- package/lib/browser/timeline-service.d.ts.map +1 -0
- package/lib/browser/timeline-service.js +106 -0
- package/lib/browser/timeline-service.js.map +1 -0
- package/lib/browser/timeline-tree-model.d.ts +11 -0
- package/lib/browser/timeline-tree-model.d.ts.map +1 -0
- package/lib/browser/timeline-tree-model.js +72 -0
- package/lib/browser/timeline-tree-model.js.map +1 -0
- package/lib/browser/timeline-tree-widget.d.ts +41 -0
- package/lib/browser/timeline-tree-widget.d.ts.map +1 -0
- package/lib/browser/timeline-tree-widget.js +146 -0
- package/lib/browser/timeline-tree-widget.js.map +1 -0
- package/lib/browser/timeline-widget.d.ts +30 -0
- package/lib/browser/timeline-widget.d.ts.map +1 -0
- package/lib/browser/timeline-widget.js +187 -0
- package/lib/browser/timeline-widget.js.map +1 -0
- package/lib/common/timeline-model.d.ts +65 -0
- package/lib/common/timeline-model.d.ts.map +1 -0
- package/lib/common/timeline-model.js +18 -0
- package/lib/common/timeline-model.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +26 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContextKeyService, ContextKey } from '@theia/core/lib/browser/context-key-service';
|
|
2
|
+
export declare class TimelineContextKeyService {
|
|
3
|
+
protected readonly contextKeyService: ContextKeyService;
|
|
4
|
+
protected _timelineItem: ContextKey<string | undefined>;
|
|
5
|
+
get timelineItem(): ContextKey<string | undefined>;
|
|
6
|
+
protected init(): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=timeline-context-key-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-context-key-service.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-context-key-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAE5F,qBACa,yBAAyB;IAGlC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAExD,SAAS,CAAC,aAAa,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxD,IAAI,YAAY,IAAI,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAEjD;IAGD,SAAS,CAAC,IAAI,IAAI,IAAI;CAIzB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TimelineContextKeyService = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
|
|
22
|
+
let TimelineContextKeyService = class TimelineContextKeyService {
|
|
23
|
+
get timelineItem() {
|
|
24
|
+
return this._timelineItem;
|
|
25
|
+
}
|
|
26
|
+
init() {
|
|
27
|
+
this._timelineItem = this.contextKeyService.createKey('timelineItem', undefined);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.TimelineContextKeyService = TimelineContextKeyService;
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, inversify_1.inject)(context_key_service_1.ContextKeyService),
|
|
33
|
+
tslib_1.__metadata("design:type", Object)
|
|
34
|
+
], TimelineContextKeyService.prototype, "contextKeyService", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, inversify_1.postConstruct)(),
|
|
37
|
+
tslib_1.__metadata("design:type", Function),
|
|
38
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
39
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
40
|
+
], TimelineContextKeyService.prototype, "init", null);
|
|
41
|
+
exports.TimelineContextKeyService = TimelineContextKeyService = tslib_1.__decorate([
|
|
42
|
+
(0, inversify_1.injectable)()
|
|
43
|
+
], TimelineContextKeyService);
|
|
44
|
+
//# sourceMappingURL=timeline-context-key-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-context-key-service.js","sourceRoot":"","sources":["../../src/browser/timeline-context-key-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAiF;AACjF,qFAA4F;AAGrF,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAMlC,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAGS,IAAI;QACV,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAqB,cAAc,EAAE,SAAS,CAAC,CAAC;IACzG,CAAC;CAEJ,CAAA;AAfY,8DAAyB;AAGf;IADlB,IAAA,kBAAM,EAAC,uCAAiB,CAAC;;oEAC8B;AAQ9C;IADT,IAAA,yBAAa,GAAE;;;;qDAGf;oCAbQ,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAerC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WidgetManager, ApplicationShell } from '@theia/core/lib/browser';
|
|
2
|
+
import { TimelineService } from './timeline-service';
|
|
3
|
+
import { CommandContribution, CommandRegistry } from '@theia/core/lib/common';
|
|
4
|
+
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
5
|
+
export declare class TimelineContribution implements CommandContribution, TabBarToolbarContribution {
|
|
6
|
+
protected readonly widgetManager: WidgetManager;
|
|
7
|
+
protected readonly timelineService: TimelineService;
|
|
8
|
+
protected readonly commandRegistry: CommandRegistry;
|
|
9
|
+
protected readonly tabBarToolbar: TabBarToolbarRegistry;
|
|
10
|
+
protected readonly shell: ApplicationShell;
|
|
11
|
+
/** @deprecated @since 1.28.0. Import from timeline-tree-model instead */
|
|
12
|
+
static readonly LOAD_MORE_COMMAND: import("@theia/core/lib/common").Command;
|
|
13
|
+
private readonly toolbarItem;
|
|
14
|
+
registerToolbarItems(registry: TabBarToolbarRegistry): void;
|
|
15
|
+
registerCommands(commands: CommandRegistry): void;
|
|
16
|
+
private checkWidget;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=timeline-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEH,aAAa,EAEb,gBAAgB,EAGnB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAO,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAIjH,qBACa,oBAAqB,YAAW,mBAAmB,EAAE,yBAAyB;IAGvF,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAEpD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAEpD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAExD,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IAE3C,yEAAyE;IACzE,gBAAuB,iBAAiB,2CAAqB;IAC7D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAK1B;IACF,oBAAoB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;IAG3D,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IA+CjD,OAAO,CAAC,WAAW;CAMtB"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TimelineContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
+
const browser_2 = require("@theia/navigator/lib/browser");
|
|
23
|
+
const timeline_widget_1 = require("./timeline-widget");
|
|
24
|
+
const timeline_service_1 = require("./timeline-service");
|
|
25
|
+
const common_1 = require("@theia/core/lib/common");
|
|
26
|
+
const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
|
|
27
|
+
const algorithm_1 = require("@theia/core/shared/@lumino/algorithm");
|
|
28
|
+
const timeline_tree_model_1 = require("./timeline-tree-model");
|
|
29
|
+
let TimelineContribution = class TimelineContribution {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.toolbarItem = {
|
|
32
|
+
id: 'timeline-refresh-toolbar-item',
|
|
33
|
+
command: 'timeline-refresh',
|
|
34
|
+
tooltip: common_1.nls.localizeByDefault('Refresh'),
|
|
35
|
+
icon: (0, browser_1.codicon)('refresh')
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
registerToolbarItems(registry) {
|
|
39
|
+
registry.registerItem(this.toolbarItem);
|
|
40
|
+
}
|
|
41
|
+
registerCommands(commands) {
|
|
42
|
+
const attachTimeline = async (explorer) => {
|
|
43
|
+
const timeline = await this.widgetManager.getOrCreateWidget(timeline_widget_1.TimelineWidget.ID);
|
|
44
|
+
if (explorer instanceof browser_1.ViewContainer && explorer.getTrackableWidgets().indexOf(timeline) === -1) {
|
|
45
|
+
explorer.addWidget(timeline, { initiallyCollapsed: true });
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
this.widgetManager.onWillCreateWidget(async (event) => {
|
|
49
|
+
if (event.widget.id === browser_2.EXPLORER_VIEW_CONTAINER_ID && this.timelineService.getSources().length > 0) {
|
|
50
|
+
event.waitUntil(attachTimeline(event.widget));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
this.timelineService.onDidChangeProviders(async (event) => {
|
|
54
|
+
const explorer = await this.widgetManager.getWidget(browser_2.EXPLORER_VIEW_CONTAINER_ID);
|
|
55
|
+
if (explorer && event.added && event.added.length > 0) {
|
|
56
|
+
attachTimeline(explorer);
|
|
57
|
+
}
|
|
58
|
+
else if (event.removed && this.timelineService.getSources().length === 0) {
|
|
59
|
+
const timeline = await this.widgetManager.getWidget(timeline_widget_1.TimelineWidget.ID);
|
|
60
|
+
if (timeline) {
|
|
61
|
+
timeline.close();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
commands.registerCommand(timeline_tree_model_1.LOAD_MORE_COMMAND, {
|
|
66
|
+
execute: async () => {
|
|
67
|
+
const widget = (0, algorithm_1.toArray)(this.shell.mainPanel.widgets()).find(w => browser_1.Navigatable.is(w) && w.isVisible && !w.isHidden);
|
|
68
|
+
if (browser_1.Navigatable.is(widget)) {
|
|
69
|
+
const uri = widget.getResourceUri();
|
|
70
|
+
const timeline = await this.widgetManager.getWidget(timeline_widget_1.TimelineWidget.ID);
|
|
71
|
+
if (uri && timeline) {
|
|
72
|
+
timeline.loadTimeline(uri, false);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
commands.registerCommand({ id: this.toolbarItem.command }, {
|
|
78
|
+
execute: widget => this.checkWidget(widget, async () => {
|
|
79
|
+
const timeline = await this.widgetManager.getWidget(timeline_widget_1.TimelineWidget.ID);
|
|
80
|
+
if (timeline) {
|
|
81
|
+
timeline.update();
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
84
|
+
isEnabled: widget => this.checkWidget(widget, () => true),
|
|
85
|
+
isVisible: widget => this.checkWidget(widget, () => true)
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
checkWidget(widget, cb) {
|
|
89
|
+
if (widget instanceof timeline_widget_1.TimelineWidget && widget.id === timeline_widget_1.TimelineWidget.ID) {
|
|
90
|
+
return cb();
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
exports.TimelineContribution = TimelineContribution;
|
|
96
|
+
/** @deprecated @since 1.28.0. Import from timeline-tree-model instead */
|
|
97
|
+
TimelineContribution.LOAD_MORE_COMMAND = timeline_tree_model_1.LOAD_MORE_COMMAND;
|
|
98
|
+
tslib_1.__decorate([
|
|
99
|
+
(0, inversify_1.inject)(browser_1.WidgetManager),
|
|
100
|
+
tslib_1.__metadata("design:type", browser_1.WidgetManager)
|
|
101
|
+
], TimelineContribution.prototype, "widgetManager", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, inversify_1.inject)(timeline_service_1.TimelineService),
|
|
104
|
+
tslib_1.__metadata("design:type", timeline_service_1.TimelineService)
|
|
105
|
+
], TimelineContribution.prototype, "timelineService", void 0);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, inversify_1.inject)(common_1.CommandRegistry),
|
|
108
|
+
tslib_1.__metadata("design:type", common_1.CommandRegistry)
|
|
109
|
+
], TimelineContribution.prototype, "commandRegistry", void 0);
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
(0, inversify_1.inject)(tab_bar_toolbar_1.TabBarToolbarRegistry),
|
|
112
|
+
tslib_1.__metadata("design:type", tab_bar_toolbar_1.TabBarToolbarRegistry)
|
|
113
|
+
], TimelineContribution.prototype, "tabBarToolbar", void 0);
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
(0, inversify_1.inject)(browser_1.ApplicationShell),
|
|
116
|
+
tslib_1.__metadata("design:type", browser_1.ApplicationShell)
|
|
117
|
+
], TimelineContribution.prototype, "shell", void 0);
|
|
118
|
+
exports.TimelineContribution = TimelineContribution = tslib_1.__decorate([
|
|
119
|
+
(0, inversify_1.injectable)()
|
|
120
|
+
], TimelineContribution);
|
|
121
|
+
//# sourceMappingURL=timeline-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-contribution.js","sourceRoot":"","sources":["../../src/browser/timeline-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAClE,qDAOiC;AACjC,0DAA0E;AAC1E,uDAAmD;AACnD,yDAAqD;AACrD,mDAAmF;AACnF,mFAAiH;AACjH,oEAA+D;AAC/D,+DAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAA1B;QAec,gBAAW,GAAG;YAC3B,EAAE,EAAE,+BAA+B;YACnC,OAAO,EAAE,kBAAkB;YAC3B,OAAO,EAAE,YAAG,CAAC,iBAAiB,CAAC,SAAS,CAAC;YACzC,IAAI,EAAE,IAAA,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ared/react';
|
|
4
|
+
export declare class TimelineEmptyWidget extends ReactWidget {
|
|
5
|
+
static ID: string;
|
|
6
|
+
constructor();
|
|
7
|
+
protected render(): React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=timeline-empty-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-empty-widget.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-empty-widget.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAGlD,qBACa,mBAAoB,SAAQ,WAAW;IAEhD,MAAM,CAAC,EAAE,SAA2B;;IAQpC,SAAS,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS;CAOtC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var TimelineEmptyWidget_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.TimelineEmptyWidget = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const alert_message_1 = require("@theia/core/lib/browser/widgets/alert-message");
|
|
24
|
+
const React = require("@theia/core/shared/react");
|
|
25
|
+
const core_1 = require("@theia/core");
|
|
26
|
+
let TimelineEmptyWidget = TimelineEmptyWidget_1 = class TimelineEmptyWidget extends browser_1.ReactWidget {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.addClass('theia-timeline-empty');
|
|
30
|
+
this.id = TimelineEmptyWidget_1.ID;
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return React.createElement(alert_message_1.AlertMessage, { type: 'WARNING', header: core_1.nls.localizeByDefault('The active editor cannot provide timeline information.') });
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.TimelineEmptyWidget = TimelineEmptyWidget;
|
|
37
|
+
TimelineEmptyWidget.ID = 'timeline-empty-widget';
|
|
38
|
+
exports.TimelineEmptyWidget = TimelineEmptyWidget = TimelineEmptyWidget_1 = tslib_1.__decorate([
|
|
39
|
+
(0, inversify_1.injectable)(),
|
|
40
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
41
|
+
], TimelineEmptyWidget);
|
|
42
|
+
//# sourceMappingURL=timeline-empty-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-empty-widget.js","sourceRoot":"","sources":["../../src/browser/timeline-empty-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,4DAA0D;AAC1D,qDAAsD;AACtD,iFAA6E;AAC7E,kDAAkD;AAClD,sCAAkC;AAG3B,IAAM,mBAAmB,2BAAzB,MAAM,mBAAoB,SAAQ,qBAAW;IAIhD;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;QACtC,IAAI,CAAC,EAAE,GAAG,qBAAmB,CAAC,EAAE,CAAC;IACrC,CAAC;IAES,MAAM;QACZ,OAAO,oBAAC,4BAAY,IAChB,IAAI,EAAC,SAAS,EACd,MAAM,EAAE,UAAG,CAAC,iBAAiB,CAAC,wDAAwD,CAAC,GACzF,CAAC;IACP,CAAC;;AAfQ,kDAAmB;AAErB,sBAAE,GAAG,uBAAuB,AAA1B,CAA2B;8BAF3B,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;;GACA,mBAAmB,CAiB/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Container, ContainerModule, interfaces } from '@theia/core/shared/inversify';
|
|
2
|
+
import '../../src/browser/style/index.css';
|
|
3
|
+
declare const _default: ContainerModule;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function createTimelineTreeContainer(parent: interfaces.Container): Container;
|
|
6
|
+
//# sourceMappingURL=timeline-frontend-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAWtF,OAAO,mCAAmC,CAAC;;AAI3C,wBA0BG;AAEH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAWnF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.createTimelineTreeContainer = void 0;
|
|
19
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
+
const widget_manager_1 = require("@theia/core/lib/browser/widget-manager");
|
|
21
|
+
const timeline_service_1 = require("./timeline-service");
|
|
22
|
+
const timeline_widget_1 = require("./timeline-widget");
|
|
23
|
+
const timeline_tree_widget_1 = require("./timeline-tree-widget");
|
|
24
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
25
|
+
const timeline_tree_model_1 = require("./timeline-tree-model");
|
|
26
|
+
const timeline_empty_widget_1 = require("./timeline-empty-widget");
|
|
27
|
+
const timeline_context_key_service_1 = require("./timeline-context-key-service");
|
|
28
|
+
const timeline_contribution_1 = require("./timeline-contribution");
|
|
29
|
+
require("../../src/browser/style/index.css");
|
|
30
|
+
const common_1 = require("@theia/core/lib/common");
|
|
31
|
+
const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
|
|
32
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
33
|
+
bind(timeline_contribution_1.TimelineContribution).toSelf().inSingletonScope();
|
|
34
|
+
bind(common_1.CommandContribution).toService(timeline_contribution_1.TimelineContribution);
|
|
35
|
+
bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(timeline_contribution_1.TimelineContribution);
|
|
36
|
+
bind(timeline_context_key_service_1.TimelineContextKeyService).toSelf().inSingletonScope();
|
|
37
|
+
bind(timeline_service_1.TimelineService).toSelf().inSingletonScope();
|
|
38
|
+
bind(timeline_widget_1.TimelineWidget).toSelf();
|
|
39
|
+
bind(widget_manager_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
40
|
+
id: timeline_widget_1.TimelineWidget.ID,
|
|
41
|
+
createWidget: () => container.get(timeline_widget_1.TimelineWidget)
|
|
42
|
+
})).inSingletonScope();
|
|
43
|
+
bind(timeline_tree_widget_1.TimelineTreeWidget).toDynamicValue(ctx => {
|
|
44
|
+
const child = createTimelineTreeContainer(ctx.container);
|
|
45
|
+
return child.get(timeline_tree_widget_1.TimelineTreeWidget);
|
|
46
|
+
});
|
|
47
|
+
bind(widget_manager_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
48
|
+
id: timeline_tree_widget_1.TimelineTreeWidget.ID,
|
|
49
|
+
createWidget: () => container.get(timeline_tree_widget_1.TimelineTreeWidget)
|
|
50
|
+
})).inSingletonScope();
|
|
51
|
+
bind(timeline_empty_widget_1.TimelineEmptyWidget).toSelf();
|
|
52
|
+
bind(widget_manager_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
53
|
+
id: timeline_empty_widget_1.TimelineEmptyWidget.ID,
|
|
54
|
+
createWidget: () => container.get(timeline_empty_widget_1.TimelineEmptyWidget)
|
|
55
|
+
})).inSingletonScope();
|
|
56
|
+
});
|
|
57
|
+
function createTimelineTreeContainer(parent) {
|
|
58
|
+
const child = (0, browser_1.createTreeContainer)(parent, {
|
|
59
|
+
props: {
|
|
60
|
+
virtualized: true,
|
|
61
|
+
search: true
|
|
62
|
+
},
|
|
63
|
+
widget: timeline_tree_widget_1.TimelineTreeWidget,
|
|
64
|
+
model: timeline_tree_model_1.TimelineTreeModel
|
|
65
|
+
});
|
|
66
|
+
return child;
|
|
67
|
+
}
|
|
68
|
+
exports.createTimelineTreeContainer = createTimelineTreeContainer;
|
|
69
|
+
//# sourceMappingURL=timeline-frontend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-frontend-module.js","sourceRoot":"","sources":["../../src/browser/timeline-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,4DAAsF;AACtF,2EAAuE;AACvE,yDAAqD;AACrD,uDAAmD;AACnD,iEAA4D;AAC5D,qDAA+D;AAC/D,+DAA0D;AAC1D,mEAA8D;AAC9D,iFAA2E;AAC3E,mEAA+D;AAE/D,6CAA2C;AAC3C,mDAA6D;AAC7D,mFAA0F;AAE1F,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,4CAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,4BAAmB,CAAC,CAAC,SAAS,CAAC,4CAAoB,CAAC,CAAC;IAC1D,IAAI,CAAC,2CAAyB,CAAC,CAAC,SAAS,CAAC,4CAAoB,CAAC,CAAC;IAEhE,IAAI,CAAC,wDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,kCAAe,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAElD,IAAI,CAAC,gCAAc,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,IAAI,CAAC,8BAAa,CAAC,CAAC,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QACnD,EAAE,EAAE,gCAAc,CAAC,EAAE;QACrB,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GA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
|
2
|
+
import { URI } from '@theia/core/shared/vscode-uri';
|
|
3
|
+
import { InternalTimelineOptions, Timeline, TimelineChangeEvent, TimelineItem, TimelineOptions, TimelineProvider, TimelineProvidersChangeEvent, TimelineSource } from '../common/timeline-model';
|
|
4
|
+
export declare class TimelineService {
|
|
5
|
+
private readonly providers;
|
|
6
|
+
private readonly onDidChangeProvidersEmitter;
|
|
7
|
+
readonly onDidChangeProviders: Event<TimelineProvidersChangeEvent>;
|
|
8
|
+
private readonly onDidChangeTimelineEmitter;
|
|
9
|
+
readonly onDidChangeTimeline: Event<TimelineChangeEvent>;
|
|
10
|
+
registerTimelineProvider(provider: TimelineProvider): Disposable;
|
|
11
|
+
unregisterTimelineProvider(id: string): void;
|
|
12
|
+
getSources(): TimelineSource[];
|
|
13
|
+
getSchemas(): string[];
|
|
14
|
+
getTimeline(id: string, uri: URI, options: TimelineOptions, internalOptions?: InternalTimelineOptions): Promise<Timeline | undefined>;
|
|
15
|
+
}
|
|
16
|
+
export declare class TimelineAggregate {
|
|
17
|
+
readonly items: TimelineItem[];
|
|
18
|
+
readonly source: string;
|
|
19
|
+
readonly uri: string;
|
|
20
|
+
private _cursor?;
|
|
21
|
+
get cursor(): string | undefined;
|
|
22
|
+
set cursor(cursor: string | undefined);
|
|
23
|
+
constructor(timeline: Timeline);
|
|
24
|
+
add(items: TimelineItem[]): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=timeline-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-service.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,UAAU,EAAW,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,OAAO,EACH,uBAAuB,EACvB,QAAQ,EACR,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAClD,gBAAgB,EAChB,4BAA4B,EAC5B,cAAc,EACjB,MAAM,0BAA0B,CAAC;AAElC,qBACa,eAAe;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuC;IAEjE,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAA+C;IAC3F,QAAQ,CAAC,oBAAoB,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAA0C;IAE5G,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAsC;IACjF,QAAQ,CAAC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAyC;IAEjG,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,UAAU;IAYhE,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAS5C,UAAU,IAAI,cAAc,EAAE;IAI9B,UAAU,IAAI,MAAM,EAAE;IAatB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;CAqBxI;AAED,qBAAa,iBAAiB;IAC1B,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAE/B;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAEpC;gBAEW,QAAQ,EAAE,QAAQ;IAM9B,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI;CAInC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TimelineAggregate = exports.TimelineService = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const common_1 = require("@theia/core/lib/common");
|
|
22
|
+
let TimelineService = class TimelineService {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.providers = new Map();
|
|
25
|
+
this.onDidChangeProvidersEmitter = new common_1.Emitter();
|
|
26
|
+
this.onDidChangeProviders = this.onDidChangeProvidersEmitter.event;
|
|
27
|
+
this.onDidChangeTimelineEmitter = new common_1.Emitter();
|
|
28
|
+
this.onDidChangeTimeline = this.onDidChangeTimelineEmitter.event;
|
|
29
|
+
}
|
|
30
|
+
registerTimelineProvider(provider) {
|
|
31
|
+
const id = provider.id;
|
|
32
|
+
this.providers.set(id, provider);
|
|
33
|
+
if (provider.onDidChange) {
|
|
34
|
+
provider.onDidChange(e => this.onDidChangeTimelineEmitter.fire(e));
|
|
35
|
+
}
|
|
36
|
+
this.onDidChangeProvidersEmitter.fire({ added: [id] });
|
|
37
|
+
return common_1.Disposable.create(() => this.unregisterTimelineProvider(id));
|
|
38
|
+
}
|
|
39
|
+
unregisterTimelineProvider(id) {
|
|
40
|
+
const provider = this.providers.get(id);
|
|
41
|
+
if (provider) {
|
|
42
|
+
provider.dispose();
|
|
43
|
+
this.providers.delete(id);
|
|
44
|
+
this.onDidChangeProvidersEmitter.fire({ removed: [id] });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getSources() {
|
|
48
|
+
return [...this.providers.values()].map(p => ({ id: p.id, label: p.label }));
|
|
49
|
+
}
|
|
50
|
+
getSchemas() {
|
|
51
|
+
const result = [];
|
|
52
|
+
Array.from(this.providers.values()).forEach(provider => {
|
|
53
|
+
const scheme = provider.scheme;
|
|
54
|
+
if (typeof scheme === 'string') {
|
|
55
|
+
result.push(scheme);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
scheme.forEach(s => result.push(s));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
getTimeline(id, uri, options, internalOptions) {
|
|
64
|
+
const provider = this.providers.get(id);
|
|
65
|
+
if (!provider) {
|
|
66
|
+
return Promise.resolve(undefined);
|
|
67
|
+
}
|
|
68
|
+
if (typeof provider.scheme === 'string') {
|
|
69
|
+
if (provider.scheme !== '*' && provider.scheme !== uri.scheme) {
|
|
70
|
+
return Promise.resolve(undefined);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return provider.provideTimeline(uri, options, internalOptions)
|
|
74
|
+
.then(result => {
|
|
75
|
+
if (!result) {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
result.items = result.items.map(item => ({ ...item, source: provider.id }));
|
|
79
|
+
return result;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
exports.TimelineService = TimelineService;
|
|
84
|
+
exports.TimelineService = TimelineService = tslib_1.__decorate([
|
|
85
|
+
(0, inversify_1.injectable)()
|
|
86
|
+
], TimelineService);
|
|
87
|
+
class TimelineAggregate {
|
|
88
|
+
get cursor() {
|
|
89
|
+
return this._cursor;
|
|
90
|
+
}
|
|
91
|
+
set cursor(cursor) {
|
|
92
|
+
this._cursor = cursor;
|
|
93
|
+
}
|
|
94
|
+
constructor(timeline) {
|
|
95
|
+
var _a;
|
|
96
|
+
this.source = timeline.source;
|
|
97
|
+
this.items = timeline.items;
|
|
98
|
+
this._cursor = (_a = timeline.paging) === null || _a === void 0 ? void 0 : _a.cursor;
|
|
99
|
+
}
|
|
100
|
+
add(items) {
|
|
101
|
+
this.items.push(...items);
|
|
102
|
+
this.items.sort((a, b) => b.timestamp - a.timestamp);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.TimelineAggregate = TimelineAggregate;
|
|
106
|
+
//# sourceMappingURL=timeline-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-service.js","sourceRoot":"","sources":["../../src/browser/timeline-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAA0D;AAC1D,mDAAoE;AAY7D,IAAM,eAAe,GAArB,MAAM,eAAe;IAArB;QACc,cAAS,GAAG,IAAI,GAAG,EAA4B,CAAC;QAEhD,gCAA2B,GAAG,IAAI,gBAAO,EAAgC,CAAC;QAClF,yBAAoB,GAAwC,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;QAE3F,+BAA0B,GAAG,IAAI,gBAAO,EAAuB,CAAC;QACxE,wBAAmB,GAA+B,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC;IA6DrG,CAAC;IA3DG,wBAAwB,CAAC,QAA0B;QAC/C,MAAM,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QAEvB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QACjC,IAAI,QAAQ,CAAC,W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;IAM1B,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,IAAI,MAAM,CAAC,MAA0B;QACjC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,YAAY,QAAkB;;QAC1B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAA,QAAQ,CAAC,MAAM,0CAAE,MAAM,CAAC;IAC3C,CAAC;IAED,GAAG,CAAC,KAAqB;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;CACJ;AAxBD,8CAwBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectableTreeNode, TreeModelImpl } from '@theia/core/lib/browser/tree';
|
|
2
|
+
import { TimelineItem } from '../common/timeline-model';
|
|
3
|
+
import { Command } from '@theia/core';
|
|
4
|
+
export declare const LOAD_MORE_COMMAND: Command;
|
|
5
|
+
export interface TimelineNode extends SelectableTreeNode {
|
|
6
|
+
timelineItem: TimelineItem;
|
|
7
|
+
}
|
|
8
|
+
export declare class TimelineTreeModel extends TreeModelImpl {
|
|
9
|
+
updateTree(items: TimelineItem[], hasMoreItems: boolean): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=timeline-tree-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-tree-model.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-tree-model.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEH,kBAAkB,EAClB,aAAa,EAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAO,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,iBAAiB,EAAE,OAE/B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACpD,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED,qBACa,iBAAkB,SAAQ,aAAa;IAEhD,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI;CA0CjE"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TimelineTreeModel = exports.LOAD_MORE_COMMAND = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const tree_1 = require("@theia/core/lib/browser/tree");
|
|
22
|
+
const core_1 = require("@theia/core");
|
|
23
|
+
exports.LOAD_MORE_COMMAND = {
|
|
24
|
+
id: 'timeline-load-more'
|
|
25
|
+
};
|
|
26
|
+
let TimelineTreeModel = class TimelineTreeModel extends tree_1.TreeModelImpl {
|
|
27
|
+
updateTree(items, hasMoreItems) {
|
|
28
|
+
const root = {
|
|
29
|
+
id: 'timeline-tree-root',
|
|
30
|
+
parent: undefined,
|
|
31
|
+
visible: false,
|
|
32
|
+
children: []
|
|
33
|
+
};
|
|
34
|
+
const children = items.map(item => ({
|
|
35
|
+
timelineItem: item,
|
|
36
|
+
id: item.id ? item.id : item.timestamp.toString(),
|
|
37
|
+
parent: root,
|
|
38
|
+
detail: item.tooltip,
|
|
39
|
+
selected: false,
|
|
40
|
+
visible: true
|
|
41
|
+
}));
|
|
42
|
+
let loadMore;
|
|
43
|
+
if (hasMoreItems) {
|
|
44
|
+
const loadMoreNode = {
|
|
45
|
+
label: core_1.nls.localizeByDefault('Load more'),
|
|
46
|
+
timestamp: 0,
|
|
47
|
+
handle: '',
|
|
48
|
+
uri: '',
|
|
49
|
+
source: '',
|
|
50
|
+
icon: 'blank'
|
|
51
|
+
};
|
|
52
|
+
loadMoreNode.command = exports.LOAD_MORE_COMMAND;
|
|
53
|
+
loadMore = {
|
|
54
|
+
timelineItem: loadMoreNode,
|
|
55
|
+
id: 'load-more',
|
|
56
|
+
parent: root,
|
|
57
|
+
selected: true
|
|
58
|
+
};
|
|
59
|
+
children.push(loadMore);
|
|
60
|
+
}
|
|
61
|
+
root.children = children;
|
|
62
|
+
this.root = root;
|
|
63
|
+
if (loadMore) {
|
|
64
|
+
this.selectionService.addSelection(loadMore);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
exports.TimelineTreeModel = TimelineTreeModel;
|
|
69
|
+
exports.TimelineTreeModel = TimelineTreeModel = tslib_1.__decorate([
|
|
70
|
+
(0, inversify_1.injectable)()
|
|
71
|
+
], TimelineTreeModel);
|
|
72
|
+
//# sourceMappingURL=timeline-tree-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-tree-model.js","sourceR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AAC;YACF,YAAY,CAAC,OAAO,GAAG,yBAAiB,CAAC;YACzC,QAAQ,GAAG;gBACP,YAAY,EAAE,YAAY;gBAC1B,EAAE,EAAE,WAAW;gBACf,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,IAAI;aACD,CAAC;YAClB,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,QAAQ,EAAE,CAAC;YACX,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC;IACL,CAAC;CACJ,CAAA;AA5CY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,sBAAU,GAAE;GACA,iBAAiB,CA4C7B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommandRegistry, MenuModelRegistry, MenuPath } from '@theia/core/lib/common';
|
|
3
|
+
import { TreeWidget, TreeProps, NodeProps } from '@theia/core/lib/browser/tree';
|
|
4
|
+
import { ContextMenuRenderer, HoverService } from '@theia/core/lib/browser';
|
|
5
|
+
import { TimelineNode, TimelineTreeModel } from './timeline-tree-model';
|
|
6
|
+
import { TimelineService } from './timeline-service';
|
|
7
|
+
import { TimelineContextKeyService } from './timeline-context-key-service';
|
|
8
|
+
import * as React from '@theia/core/shared/react';
|
|
9
|
+
import { TimelineItem } from '../common/timeline-model';
|
|
10
|
+
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
11
|
+
export declare const TIMELINE_ITEM_CONTEXT_MENU: MenuPath;
|
|
12
|
+
export declare class TimelineTreeWidget extends TreeWidget {
|
|
13
|
+
readonly model: TimelineTreeModel;
|
|
14
|
+
static ID: string;
|
|
15
|
+
static PAGE_SIZE: number;
|
|
16
|
+
protected readonly menus: MenuModelRegistry;
|
|
17
|
+
protected readonly contextKeys: TimelineContextKeyService;
|
|
18
|
+
protected readonly timelineService: TimelineService;
|
|
19
|
+
protected readonly commandRegistry: CommandRegistry;
|
|
20
|
+
protected readonly hoverService: HoverService;
|
|
21
|
+
constructor(props: TreeProps, model: TimelineTreeModel, contextMenuRenderer: ContextMenuRenderer);
|
|
22
|
+
protected renderNode(node: TimelineNode, props: NodeProps): React.ReactNode;
|
|
23
|
+
protected handleEnter(event: KeyboardEvent): void;
|
|
24
|
+
protected handleLeft(event: KeyboardEvent): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace TimelineItemNode {
|
|
27
|
+
interface Props {
|
|
28
|
+
timelineItem: TimelineItem;
|
|
29
|
+
commandRegistry: CommandRegistry;
|
|
30
|
+
contextKeys: TimelineContextKeyService;
|
|
31
|
+
contextMenuRenderer: ContextMenuRenderer;
|
|
32
|
+
hoverService: HoverService;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export declare class TimelineItemNode extends React.Component<TimelineItemNode.Props> {
|
|
36
|
+
render(): JSX.Element | undefined;
|
|
37
|
+
protected open: () => void;
|
|
38
|
+
protected requestHover(e: React.MouseEvent<HTMLElement, MouseEvent>, content?: string | MarkdownString): void;
|
|
39
|
+
protected renderContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=timeline-tree-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-tree-widget.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-tree-widget.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAsD,MAAM,8BAA8B,CAAC;AACpI,OAAO,EAAW,mBAAmB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,YAAY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AY,CAAC;KAC9B;CACJ;AAED,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC;IAChE,MAAM,IAAI,GAAG,CAAC,OAAO,GAAG,SAAS;IAiC1C,SAAS,CAAC,IAAI,aAMZ;IAEF,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI;IAW7G,SAAS,CAAC,iBAAiB,UAAW,gBAAgB,CAAC,WAAW,CAAC,UAgBjE;CACL"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var TimelineTreeWidget_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.TimelineItemNode = exports.TimelineTreeWidget = exports.TIMELINE_ITEM_CONTEXT_MENU = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const common_1 = require("@theia/core/lib/common");
|
|
23
|
+
const tree_1 = require("@theia/core/lib/browser/tree");
|
|
24
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
25
|
+
const timeline_tree_model_1 = require("./timeline-tree-model");
|
|
26
|
+
const timeline_service_1 = require("./timeline-service");
|
|
27
|
+
const timeline_context_key_service_1 = require("./timeline-context-key-service");
|
|
28
|
+
const React = require("@theia/core/shared/react");
|
|
29
|
+
const markdown_rendering_1 = require("@theia/core/lib/common/markdown-rendering");
|
|
30
|
+
const theme_1 = require("@theia/core/lib/common/theme");
|
|
31
|
+
exports.TIMELINE_ITEM_CONTEXT_MENU = ['timeline-item-context-menu'];
|
|
32
|
+
let TimelineTreeWidget = TimelineTreeWidget_1 = class TimelineTreeWidget extends tree_1.TreeWidget {
|
|
33
|
+
constructor(props, model, contextMenuRenderer) {
|
|
34
|
+
super(props, model, contextMenuRenderer);
|
|
35
|
+
this.model = model;
|
|
36
|
+
this.id = TimelineTreeWidget_1.ID;
|
|
37
|
+
this.addClass('timeline-outer-container');
|
|
38
|
+
}
|
|
39
|
+
renderNode(node, props) {
|
|
40
|
+
const attributes = this.createNodeAttributes(node, props);
|
|
41
|
+
const content = React.createElement(TimelineItemNode, { timelineItem: node.timelineItem, commandRegistry: this.commandRegistry, contextKeys: this.contextKeys, contextMenuRenderer: this.contextMenuRenderer, hoverService: this.hoverService });
|
|
42
|
+
return React.createElement('div', attributes, content);
|
|
43
|
+
}
|
|
44
|
+
handleEnter(event) {
|
|
45
|
+
var _a;
|
|
46
|
+
const node = this.model.getFocusedNode();
|
|
47
|
+
const command = (_a = node === null || node === void 0 ? void 0 : node.timelineItem) === null || _a === void 0 ? void 0 : _a.command;
|
|
48
|
+
if (command) {
|
|
49
|
+
this.commandRegistry.executeCommand(command.id, ...(command.arguments ? command.arguments : []));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
async handleLeft(event) {
|
|
53
|
+
this.model.selectPrevNode();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.TimelineTreeWidget = TimelineTreeWidget;
|
|
57
|
+
TimelineTreeWidget.ID = 'timeline-tree-widget';
|
|
58
|
+
TimelineTreeWidget.PAGE_SIZE = 20;
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, inversify_1.inject)(common_1.MenuModelRegistry),
|
|
61
|
+
tslib_1.__metadata("design:type", common_1.MenuModelRegistry)
|
|
62
|
+
], TimelineTreeWidget.prototype, "menus", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, inversify_1.inject)(timeline_context_key_service_1.TimelineContextKeyService),
|
|
65
|
+
tslib_1.__metadata("design:type", timeline_context_key_service_1.TimelineContextKeyService)
|
|
66
|
+
], TimelineTreeWidget.prototype, "contextKeys", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, inversify_1.inject)(timeline_service_1.TimelineService),
|
|
69
|
+
tslib_1.__metadata("design:type", timeline_service_1.TimelineService)
|
|
70
|
+
], TimelineTreeWidget.prototype, "timelineService", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, inversify_1.inject)(common_1.CommandRegistry),
|
|
73
|
+
tslib_1.__metadata("design:type", common_1.CommandRegistry)
|
|
74
|
+
], TimelineTreeWidget.prototype, "commandRegistry", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, inversify_1.inject)(browser_1.HoverService),
|
|
77
|
+
tslib_1.__metadata("design:type", browser_1.HoverService)
|
|
78
|
+
], TimelineTreeWidget.prototype, "hoverService", void 0);
|
|
79
|
+
exports.TimelineTreeWidget = TimelineTreeWidget = TimelineTreeWidget_1 = tslib_1.__decorate([
|
|
80
|
+
(0, inversify_1.injectable)(),
|
|
81
|
+
tslib_1.__param(0, (0, inversify_1.inject)(tree_1.TreeProps)),
|
|
82
|
+
tslib_1.__param(1, (0, inversify_1.inject)(timeline_tree_model_1.TimelineTreeModel)),
|
|
83
|
+
tslib_1.__param(2, (0, inversify_1.inject)(browser_1.ContextMenuRenderer)),
|
|
84
|
+
tslib_1.__metadata("design:paramtypes", [Object, timeline_tree_model_1.TimelineTreeModel,
|
|
85
|
+
browser_1.ContextMenuRenderer])
|
|
86
|
+
], TimelineTreeWidget);
|
|
87
|
+
class TimelineItemNode extends React.Component {
|
|
88
|
+
constructor() {
|
|
89
|
+
super(...arguments);
|
|
90
|
+
this.open = () => {
|
|
91
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
92
|
+
const command = this.props.timelineItem.command;
|
|
93
|
+
if (command) {
|
|
94
|
+
this.props.commandRegistry.executeCommand(command.id, ...command.arguments ? command.arguments : []);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.renderContextMenu = (event) => {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
event.stopPropagation();
|
|
100
|
+
const { timelineItem, contextKeys, contextMenuRenderer } = this.props;
|
|
101
|
+
const currentTimelineItem = contextKeys.timelineItem.get();
|
|
102
|
+
contextKeys.timelineItem.set(timelineItem.contextValue);
|
|
103
|
+
try {
|
|
104
|
+
contextMenuRenderer.render({
|
|
105
|
+
menuPath: exports.TIMELINE_ITEM_CONTEXT_MENU,
|
|
106
|
+
anchor: event.nativeEvent,
|
|
107
|
+
args: [timelineItem],
|
|
108
|
+
context: event.currentTarget
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
finally {
|
|
112
|
+
contextKeys.timelineItem.set(currentTimelineItem);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
const { label, description, tooltip, accessibilityInformation, icon } = this.props.timelineItem;
|
|
118
|
+
let iconString = '';
|
|
119
|
+
if (icon) {
|
|
120
|
+
if (typeof icon === 'string') {
|
|
121
|
+
iconString = (0, browser_1.codicon)(icon);
|
|
122
|
+
}
|
|
123
|
+
else if ((0, theme_1.isThemeIcon)(icon)) {
|
|
124
|
+
iconString = (0, browser_1.codicon)(icon.id);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return React.createElement("div", { className: 'theia-TreeNodeContent', onContextMenu: this.renderContextMenu, onClick: this.open, onMouseEnter: e => this.requestHover(e, tooltip), "aria-label": accessibilityInformation === null || accessibilityInformation === void 0 ? void 0 : accessibilityInformation.label, role: accessibilityInformation === null || accessibilityInformation === void 0 ? void 0 : accessibilityInformation.role },
|
|
128
|
+
React.createElement("div", { className: `timeline-item noWrapInfo ${tree_1.TREE_NODE_SEGMENT_GROW_CLASS} no-select` },
|
|
129
|
+
React.createElement("span", { className: `${iconString} timeline-item-icon` }),
|
|
130
|
+
React.createElement("div", { className: 'noWrapInfo' },
|
|
131
|
+
React.createElement("span", { className: 'timeline-item-label' }, label),
|
|
132
|
+
React.createElement("span", { className: `timeline-item-description ${tree_1.TREE_NODE_INFO_CLASS}` }, description))));
|
|
133
|
+
}
|
|
134
|
+
requestHover(e, content) {
|
|
135
|
+
if (content) {
|
|
136
|
+
this.props.hoverService.requestHover({
|
|
137
|
+
content,
|
|
138
|
+
target: e.currentTarget,
|
|
139
|
+
position: 'right',
|
|
140
|
+
interactive: markdown_rendering_1.MarkdownString.is(content),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.TimelineItemNode = TimelineItemNode;
|
|
146
|
+
//# sourceMappingURL=timeline-tree-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-tree-widget.js","sourceRoot":"","sources":["../../src/browser/timeline-tree-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,4DAAkE;AAClE,mDAAsF;AACtF,uDAAoI;AACpI,qDAAqF;AACrF,+DAAwE;AACxE,yDA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BAAK,SAAS,EAAC,uBAAuB,EACzC,aAAa,EAAE,IAAI,CAAC,iBAAiB,EACrC,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,gBACpC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAE,KAAK,EAC3C,IAAI,EAAE,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAE,IAAI;YAEpC,6BAAK,SAAS,EAAE,4BAA4B,mCAA4B,YAAY;gBAChF,8BAAM,SAAS,EAAE,GAAG,UAAU,qBAAqB,GAAI;gBACvD,6BAAK,SAAS,EAAC,YAAY;oBACvB,8BAAM,SAAS,EAAC,qBAAqB,IAChC,KAAK,CACH;oBACP,8BAAM,SAAS,EAAE,6BAA6B,2BAAoB,EAAE,IAC/D,WAAW,CACT,CACL,CACJ,CACH,CAAC;IACZ,CAAC;IAUS,YAAY,CAAC,CAA4C,EAAE,OAAiC;QAClG,IAAI,OAAO,EAAE,CAAC;YACV,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC;gBACjC,OAAO;gBACP,MAAM,EAAE,CAAC,CAAC,aAAa;gBACvB,QAAQ,EAAE,OAAO;gBACjB,WAAW,EAAE,mCAAc,CAAC,EAAE,CAAC,OAAO,CAAC;aAC1C,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CAmBJ;AAtED,4CAsEC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Message } from '@theia/core/shared/@lumino/messaging';
|
|
2
|
+
import { ApplicationShell, BaseWidget, Panel, PanelLayout } from '@theia/core/lib/browser';
|
|
3
|
+
import { TimelineTreeWidget } from './timeline-tree-widget';
|
|
4
|
+
import { TimelineService } from './timeline-service';
|
|
5
|
+
import { CommandRegistry, SelectionService } from '@theia/core/lib/common';
|
|
6
|
+
import { TimelineEmptyWidget } from './timeline-empty-widget';
|
|
7
|
+
import URI from '@theia/core/lib/common/uri';
|
|
8
|
+
import { URI as CodeURI } from '@theia/core/shared/vscode-uri';
|
|
9
|
+
export declare class TimelineWidget extends BaseWidget {
|
|
10
|
+
protected panel: Panel;
|
|
11
|
+
static ID: string;
|
|
12
|
+
private readonly timelinesBySource;
|
|
13
|
+
protected readonly resourceWidget: TimelineTreeWidget;
|
|
14
|
+
protected readonly timelineService: TimelineService;
|
|
15
|
+
protected readonly commandRegistry: CommandRegistry;
|
|
16
|
+
protected readonly applicationShell: ApplicationShell;
|
|
17
|
+
protected readonly timelineEmptyWidget: TimelineEmptyWidget;
|
|
18
|
+
protected readonly selectionService: SelectionService;
|
|
19
|
+
constructor();
|
|
20
|
+
protected init(): void;
|
|
21
|
+
protected loadTimelineForSource(source: string, uri: CodeURI, reset: boolean): Promise<void>;
|
|
22
|
+
loadTimeline(uri: URI, reset: boolean): Promise<void>;
|
|
23
|
+
refresh(uri?: URI): void;
|
|
24
|
+
private suitableWidgetsOpened;
|
|
25
|
+
private getCurrentWidgetUri;
|
|
26
|
+
protected get containerLayout(): PanelLayout | undefined;
|
|
27
|
+
protected onUpdateRequest(msg: Message): void;
|
|
28
|
+
protected onAfterAttach(msg: Message): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=timeline-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-widget.d.ts","sourceRoot":"","sources":["../../src/browser/timeline-widget.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EACH,gBAAgB,EAChB,UAAU,EAGV,KAAK,EACL,WAAW,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAqB,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAA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|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var TimelineWidget_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.TimelineWidget = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const timeline_tree_widget_1 = require("./timeline-tree-widget");
|
|
24
|
+
const timeline_service_1 = require("./timeline-service");
|
|
25
|
+
const common_1 = require("@theia/core/lib/common");
|
|
26
|
+
const timeline_empty_widget_1 = require("./timeline-empty-widget");
|
|
27
|
+
const algorithm_1 = require("@theia/core/shared/@lumino/algorithm");
|
|
28
|
+
const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
|
|
29
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
30
|
+
let TimelineWidget = TimelineWidget_1 = class TimelineWidget extends browser_1.BaseWidget {
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
this.timelinesBySource = new Map();
|
|
34
|
+
this.id = TimelineWidget_1.ID;
|
|
35
|
+
this.title.label = nls_1.nls.localizeByDefault('Timeline');
|
|
36
|
+
this.title.caption = this.title.label;
|
|
37
|
+
this.addClass('theia-timeline');
|
|
38
|
+
}
|
|
39
|
+
init() {
|
|
40
|
+
const layout = new browser_1.PanelLayout();
|
|
41
|
+
this.layout = layout;
|
|
42
|
+
this.panel = new browser_1.Panel({ layout: new browser_1.PanelLayout({}) });
|
|
43
|
+
this.panel.node.tabIndex = -1;
|
|
44
|
+
layout.addWidget(this.panel);
|
|
45
|
+
this.containerLayout.addWidget(this.resourceWidget);
|
|
46
|
+
this.containerLayout.addWidget(this.timelineEmptyWidget);
|
|
47
|
+
this.refresh();
|
|
48
|
+
this.toDispose.push(this.timelineService.onDidChangeTimeline(event => {
|
|
49
|
+
const currentWidgetUri = this.getCurrentWidgetUri();
|
|
50
|
+
if (currentWidgetUri) {
|
|
51
|
+
this.loadTimeline(currentWidgetUri, event.reset);
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
this.toDispose.push(this.selectionService.onSelectionChanged(selection => {
|
|
55
|
+
if (Array.isArray(selection) && !!selection[0] && 'uri' in selection[0]) {
|
|
56
|
+
this.refresh(selection[0].uri);
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
this.toDispose.push(this.applicationShell.onDidChangeCurrentWidget(async (e) => {
|
|
60
|
+
if ((e.newValue && browser_1.Navigatable.is(e.newValue)) || !this.suitableWidgetsOpened()) {
|
|
61
|
+
this.refresh();
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
this.toDispose.push(this.applicationShell.onDidRemoveWidget(widget => {
|
|
65
|
+
if (browser_1.NavigatableWidget.is(widget)) {
|
|
66
|
+
this.refresh();
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
this.toDispose.push(this.timelineService.onDidChangeProviders(() => this.refresh()));
|
|
70
|
+
}
|
|
71
|
+
async loadTimelineForSource(source, uri, reset) {
|
|
72
|
+
var _a;
|
|
73
|
+
if (reset) {
|
|
74
|
+
this.timelinesBySource.delete(source);
|
|
75
|
+
}
|
|
76
|
+
let timeline = this.timelinesBySource.get(source);
|
|
77
|
+
const cursor = timeline === null || timeline === void 0 ? void 0 : timeline.cursor;
|
|
78
|
+
const options = { cursor: reset ? undefined : cursor, limit: timeline_tree_widget_1.TimelineTreeWidget.PAGE_SIZE };
|
|
79
|
+
const timelineResult = await this.timelineService.getTimeline(source, uri, options, { cacheResults: true, resetCache: reset });
|
|
80
|
+
if (timelineResult) {
|
|
81
|
+
const items = timelineResult.items;
|
|
82
|
+
if (items) {
|
|
83
|
+
if (timeline) {
|
|
84
|
+
timeline.add(items);
|
|
85
|
+
timeline.cursor = (_a = timelineResult.paging) === null || _a === void 0 ? void 0 : _a.cursor;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
timeline = new timeline_service_1.TimelineAggregate(timelineResult);
|
|
89
|
+
}
|
|
90
|
+
this.timelinesBySource.set(source, timeline);
|
|
91
|
+
this.resourceWidget.model.updateTree(timeline.items, !!timeline.cursor);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
async loadTimeline(uri, reset) {
|
|
96
|
+
for (const source of this.timelineService.getSources().map(s => s.id)) {
|
|
97
|
+
this.loadTimelineForSource(source, vscode_uri_1.URI.parse(uri.toString()), reset);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
refresh(uri) {
|
|
101
|
+
if (!uri) {
|
|
102
|
+
uri = this.getCurrentWidgetUri();
|
|
103
|
+
}
|
|
104
|
+
if (uri) {
|
|
105
|
+
this.timelineEmptyWidget.hide();
|
|
106
|
+
this.resourceWidget.show();
|
|
107
|
+
this.loadTimeline(uri, true);
|
|
108
|
+
}
|
|
109
|
+
else if (!this.suitableWidgetsOpened()) {
|
|
110
|
+
this.timelineEmptyWidget.show();
|
|
111
|
+
this.resourceWidget.hide();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
suitableWidgetsOpened() {
|
|
115
|
+
return !!(0, algorithm_1.toArray)(this.applicationShell.mainPanel.widgets()).find(widget => {
|
|
116
|
+
if (browser_1.NavigatableWidget.is(widget)) {
|
|
117
|
+
const uri = widget.getResourceUri();
|
|
118
|
+
if ((uri === null || uri === void 0 ? void 0 : uri.scheme) && this.timelineService.getSchemas().indexOf(uri === null || uri === void 0 ? void 0 : uri.scheme) > -1) {
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
getCurrentWidgetUri() {
|
|
125
|
+
let current = this.applicationShell.currentWidget;
|
|
126
|
+
if (!browser_1.NavigatableWidget.is(current)) {
|
|
127
|
+
current = (0, algorithm_1.toArray)(this.applicationShell.mainPanel.widgets()).find(widget => {
|
|
128
|
+
if (widget.isVisible && !widget.isHidden) {
|
|
129
|
+
return widget;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return browser_1.NavigatableWidget.is(current) ? current.getResourceUri() : undefined;
|
|
134
|
+
}
|
|
135
|
+
get containerLayout() {
|
|
136
|
+
return this.panel.layout;
|
|
137
|
+
}
|
|
138
|
+
onUpdateRequest(msg) {
|
|
139
|
+
browser_1.MessageLoop.sendMessage(this.resourceWidget, msg);
|
|
140
|
+
browser_1.MessageLoop.sendMessage(this.timelineEmptyWidget, msg);
|
|
141
|
+
this.refresh();
|
|
142
|
+
super.onUpdateRequest(msg);
|
|
143
|
+
}
|
|
144
|
+
onAfterAttach(msg) {
|
|
145
|
+
this.node.appendChild(this.resourceWidget.node);
|
|
146
|
+
this.node.appendChild(this.timelineEmptyWidget.node);
|
|
147
|
+
super.onAfterAttach(msg);
|
|
148
|
+
this.update();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
exports.TimelineWidget = TimelineWidget;
|
|
152
|
+
TimelineWidget.ID = 'timeline-view';
|
|
153
|
+
tslib_1.__decorate([
|
|
154
|
+
(0, inversify_1.inject)(timeline_tree_widget_1.TimelineTreeWidget),
|
|
155
|
+
tslib_1.__metadata("design:type", timeline_tree_widget_1.TimelineTreeWidget)
|
|
156
|
+
], TimelineWidget.prototype, "resourceWidget", void 0);
|
|
157
|
+
tslib_1.__decorate([
|
|
158
|
+
(0, inversify_1.inject)(timeline_service_1.TimelineService),
|
|
159
|
+
tslib_1.__metadata("design:type", timeline_service_1.TimelineService)
|
|
160
|
+
], TimelineWidget.prototype, "timelineService", void 0);
|
|
161
|
+
tslib_1.__decorate([
|
|
162
|
+
(0, inversify_1.inject)(common_1.CommandRegistry),
|
|
163
|
+
tslib_1.__metadata("design:type", common_1.CommandRegistry)
|
|
164
|
+
], TimelineWidget.prototype, "commandRegistry", void 0);
|
|
165
|
+
tslib_1.__decorate([
|
|
166
|
+
(0, inversify_1.inject)(browser_1.ApplicationShell),
|
|
167
|
+
tslib_1.__metadata("design:type", browser_1.ApplicationShell)
|
|
168
|
+
], TimelineWidget.prototype, "applicationShell", void 0);
|
|
169
|
+
tslib_1.__decorate([
|
|
170
|
+
(0, inversify_1.inject)(timeline_empty_widget_1.TimelineEmptyWidget),
|
|
171
|
+
tslib_1.__metadata("design:type", timeline_empty_widget_1.TimelineEmptyWidget)
|
|
172
|
+
], TimelineWidget.prototype, "timelineEmptyWidget", void 0);
|
|
173
|
+
tslib_1.__decorate([
|
|
174
|
+
(0, inversify_1.inject)(common_1.SelectionService),
|
|
175
|
+
tslib_1.__metadata("design:type", common_1.SelectionService)
|
|
176
|
+
], TimelineWidget.prototype, "selectionService", void 0);
|
|
177
|
+
tslib_1.__decorate([
|
|
178
|
+
(0, inversify_1.postConstruct)(),
|
|
179
|
+
tslib_1.__metadata("design:type", Function),
|
|
180
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
181
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
182
|
+
], TimelineWidget.prototype, "init", null);
|
|
183
|
+
exports.TimelineWidget = TimelineWidget = TimelineWidget_1 = tslib_1.__decorate([
|
|
184
|
+
(0, inversify_1.injectable)(),
|
|
185
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
186
|
+
], TimelineWidget);
|
|
187
|
+
//# sourceMappingURL=timeline-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-widget.js","sourceRoot":"","sources":["../../src/browser/timeline-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAGhF,4DAAiF;AACjF,qDAOiC;AACjC,iEAA4D;AAC5D,yDAAwE;AACxE,mDAA2E;AAC3E,mEAA8D;AAC9D,oEAA+D;AAE/D,8DAA+D;AAC/D,oDAAiD;AAG1C,IAAM,cAAc,sBAApB,MAAM,cAAe,SAAQ,oBAAU;IAc1C;QACI,KAAK,EAAE,CAAC;QAVK,sBAAiB,GAAG,IAAI,GAAG,EAA6B,CAAC;QAWtE,IAAI,CAAC,EAAE,GAAG,gBAAc,CAAC,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,SAAG,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QACtC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;IAGS,IAAI;QACV,MAAM,MAAM,GAAG,IAAI,qBAAW,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,eAAK,CAAC,EAAE,MAAM,EAAE,IAAI,qBAAW,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAA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
2
|
+
import { URI } from '@theia/core/shared/vscode-uri';
|
|
3
|
+
import { ThemeIcon } from '@theia/core/lib/common/theme';
|
|
4
|
+
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
5
|
+
import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
|
|
6
|
+
export interface TimelineItem {
|
|
7
|
+
source: string;
|
|
8
|
+
uri: string;
|
|
9
|
+
handle: string;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
label: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
icon?: string | {
|
|
14
|
+
light: string;
|
|
15
|
+
dark: string;
|
|
16
|
+
} | ThemeIcon;
|
|
17
|
+
description?: string;
|
|
18
|
+
tooltip?: string | MarkdownString | undefined;
|
|
19
|
+
command?: Command & {
|
|
20
|
+
arguments?: unknown[];
|
|
21
|
+
};
|
|
22
|
+
contextValue?: string;
|
|
23
|
+
accessibilityInformation?: AccessibilityInformation;
|
|
24
|
+
}
|
|
25
|
+
export interface TimelineChangeEvent {
|
|
26
|
+
id: string;
|
|
27
|
+
uri: URI | undefined;
|
|
28
|
+
reset: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface TimelineProvidersChangeEvent {
|
|
31
|
+
readonly added?: string[];
|
|
32
|
+
readonly removed?: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface TimelineOptions {
|
|
35
|
+
cursor?: string;
|
|
36
|
+
limit?: number | {
|
|
37
|
+
timestamp: number;
|
|
38
|
+
id?: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface InternalTimelineOptions {
|
|
42
|
+
cacheResults: boolean;
|
|
43
|
+
resetCache: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface Timeline {
|
|
46
|
+
source: string;
|
|
47
|
+
paging?: {
|
|
48
|
+
readonly cursor: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
items: TimelineItem[];
|
|
51
|
+
}
|
|
52
|
+
export interface TimelineProviderDescriptor {
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
scheme: string | string[];
|
|
56
|
+
}
|
|
57
|
+
export interface TimelineProvider extends TimelineProviderDescriptor, Disposable {
|
|
58
|
+
onDidChange?: Event<TimelineChangeEvent>;
|
|
59
|
+
provideTimeline(uri: URI, options: TimelineOptions, internalOptions?: InternalTimelineOptions): Promise<Timeline | undefined>;
|
|
60
|
+
}
|
|
61
|
+
export interface TimelineSource {
|
|
62
|
+
id: string;
|
|
63
|
+
label: string;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=timeline-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-model.d.ts","sourceRoot":"","sources":["../../src/common/timeline-model.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAAC;IAC9C,OAAO,CAAC,EAAE,OAAO,GAAG;QAAE,SAAS,CAAC,EAA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AC,CAAC;CACjI;AAED,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 RedHat and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=timeline-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-model.js","sourceRoot":"","sources":["../../src/common/timeline-model.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 TypeFox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
/* note: this bogus test file is required so that
|
|
17
|
+
we are able to run mocha unit tests on this
|
|
18
|
+
package, without having any actual unit tests in it.
|
|
19
|
+
This way a coverage report will be generated,
|
|
20
|
+
showing 0% coverage, instead of no report.
|
|
21
|
+
This file can be removed once we have real unit
|
|
22
|
+
tests in place. */
|
|
23
|
+
describe('timeline package', () => {
|
|
24
|
+
it('support code coverage statistics', () => true);
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=package.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAE9B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/timeline",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.86+03f92ff1d",
|
|
4
4
|
"description": "Theia - Timeline Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.67.0-next.
|
|
7
|
-
"@theia/navigator": "1.67.0-next.
|
|
6
|
+
"@theia/core": "1.67.0-next.86+03f92ff1d",
|
|
7
|
+
"@theia/navigator": "1.67.0-next.86+03f92ff1d",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"nyc": {
|
|
46
46
|
"extends": "../../configs/nyc.json"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "03f92ff1d97dcb199de39b48e60a53535de22808"
|
|
49
49
|
}
|