@theia/mini-browser 1.23.0-next.5 → 1.23.0-next.54
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/environment/mini-browser-environment-module.d.ts +0 -15
- package/lib/browser/environment/mini-browser-environment-module.d.ts.map +1 -1
- package/lib/browser/environment/mini-browser-environment-module.js +15 -15
- package/lib/browser/environment/mini-browser-environment-module.js.map +1 -1
- package/lib/browser/environment/mini-browser-environment.d.ts +0 -15
- package/lib/browser/environment/mini-browser-environment.d.ts.map +1 -1
- package/lib/browser/environment/mini-browser-environment.js +19 -19
- package/lib/browser/environment/mini-browser-environment.js.map +1 -1
- package/lib/browser/location-mapper-service.d.ts +0 -15
- package/lib/browser/location-mapper-service.d.ts.map +1 -1
- package/lib/browser/location-mapper-service.js +23 -23
- package/lib/browser/location-mapper-service.js.map +1 -1
- package/lib/browser/mini-browser-content-style.d.ts +0 -15
- package/lib/browser/mini-browser-content-style.d.ts.map +1 -1
- package/lib/browser/mini-browser-content-style.js +15 -15
- package/lib/browser/mini-browser-content-style.js.map +1 -1
- package/lib/browser/mini-browser-content.d.ts +0 -15
- package/lib/browser/mini-browser-content.d.ts.map +1 -1
- package/lib/browser/mini-browser-content.js +33 -33
- package/lib/browser/mini-browser-content.js.map +1 -1
- package/lib/browser/mini-browser-frontend-module.d.ts +0 -15
- package/lib/browser/mini-browser-frontend-module.d.ts.map +1 -1
- package/lib/browser/mini-browser-frontend-module.js +16 -16
- package/lib/browser/mini-browser-frontend-module.js.map +1 -1
- package/lib/browser/mini-browser-frontend-security-warnings.d.ts +0 -15
- package/lib/browser/mini-browser-frontend-security-warnings.d.ts.map +1 -1
- package/lib/browser/mini-browser-frontend-security-warnings.js +19 -19
- package/lib/browser/mini-browser-frontend-security-warnings.js.map +1 -1
- package/lib/browser/mini-browser-open-handler.d.ts +0 -15
- package/lib/browser/mini-browser-open-handler.d.ts.map +1 -1
- package/lib/browser/mini-browser-open-handler.js +26 -26
- package/lib/browser/mini-browser-open-handler.js.map +1 -1
- package/lib/browser/mini-browser.d.ts +0 -15
- package/lib/browser/mini-browser.d.ts.map +1 -1
- package/lib/browser/mini-browser.js +21 -21
- package/lib/browser/mini-browser.js.map +1 -1
- package/lib/common/mini-browser-endpoint.d.ts +0 -15
- package/lib/common/mini-browser-endpoint.d.ts.map +1 -1
- package/lib/common/mini-browser-endpoint.js +15 -15
- package/lib/common/mini-browser-endpoint.js.map +1 -1
- package/lib/common/mini-browser-service.d.ts +0 -15
- package/lib/common/mini-browser-service.d.ts.map +1 -1
- package/lib/common/mini-browser-service.js +15 -15
- package/lib/common/mini-browser-service.js.map +1 -1
- package/lib/electron-browser/environment/electron-mini-browser-environment-module.d.ts +0 -15
- package/lib/electron-browser/environment/electron-mini-browser-environment-module.d.ts.map +1 -1
- package/lib/electron-browser/environment/electron-mini-browser-environment-module.js +15 -15
- package/lib/electron-browser/environment/electron-mini-browser-environment-module.js.map +1 -1
- package/lib/electron-browser/environment/electron-mini-browser-environment.d.ts +0 -15
- package/lib/electron-browser/environment/electron-mini-browser-environment.d.ts.map +1 -1
- package/lib/electron-browser/environment/electron-mini-browser-environment.js +17 -17
- package/lib/electron-browser/environment/electron-mini-browser-environment.js.map +1 -1
- package/lib/electron-main/mini-browser-electron-main-contribution.d.ts +0 -15
- package/lib/electron-main/mini-browser-electron-main-contribution.d.ts.map +1 -1
- package/lib/electron-main/mini-browser-electron-main-contribution.js +17 -17
- package/lib/electron-main/mini-browser-electron-main-contribution.js.map +1 -1
- package/lib/node/mini-browser-backend-module.d.ts +0 -15
- package/lib/node/mini-browser-backend-module.d.ts.map +1 -1
- package/lib/node/mini-browser-backend-module.js +16 -16
- package/lib/node/mini-browser-backend-module.js.map +1 -1
- package/lib/node/mini-browser-backend-security-warnings.d.ts +0 -15
- package/lib/node/mini-browser-backend-security-warnings.d.ts.map +1 -1
- package/lib/node/mini-browser-backend-security-warnings.js +16 -16
- package/lib/node/mini-browser-backend-security-warnings.js.map +1 -1
- package/lib/node/mini-browser-endpoint.d.ts +0 -15
- package/lib/node/mini-browser-endpoint.d.ts.map +1 -1
- package/lib/node/mini-browser-endpoint.js +24 -24
- package/lib/node/mini-browser-endpoint.js.map +1 -1
- package/lib/node/mini-browser-ws-validator.d.ts +0 -15
- package/lib/node/mini-browser-ws-validator.d.ts.map +1 -1
- package/lib/node/mini-browser-ws-validator.js +17 -17
- package/lib/node/mini-browser-ws-validator.js.map +1 -1
- package/lib/package.spec.d.ts +0 -15
- package/lib/package.spec.d.ts.map +1 -1
- package/lib/package.spec.js +15 -15
- package/lib/package.spec.js.map +1 -1
- package/package.json +4 -4
- package/src/browser/environment/mini-browser-environment-module.ts +15 -15
- package/src/browser/environment/mini-browser-environment.ts +15 -15
- package/src/browser/location-mapper-service.ts +15 -15
- package/src/browser/mini-browser-content-style.ts +15 -15
- package/src/browser/mini-browser-content.ts +16 -16
- package/src/browser/mini-browser-frontend-module.ts +15 -15
- package/src/browser/mini-browser-frontend-security-warnings.ts +15 -15
- package/src/browser/mini-browser-open-handler.ts +17 -17
- package/src/browser/mini-browser.ts +16 -16
- package/src/browser/pdfobject.d.ts +15 -15
- package/src/common/mini-browser-endpoint.ts +15 -15
- package/src/common/mini-browser-service.ts +15 -15
- package/src/electron-browser/environment/electron-mini-browser-environment-module.ts +15 -15
- package/src/electron-browser/environment/electron-mini-browser-environment.ts +17 -17
- package/src/electron-main/mini-browser-electron-main-contribution.ts +15 -15
- package/src/node/mini-browser-backend-module.ts +15 -15
- package/src/node/mini-browser-backend-security-warnings.ts +15 -15
- package/src/node/mini-browser-endpoint.ts +15 -15
- package/src/node/mini-browser-ws-validator.ts +15 -15
- package/src/package.spec.ts +15 -15
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox 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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
17
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
18
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
19
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -131,7 +131,7 @@ let MiniBrowserEndpoint = class MiniBrowserEndpoint {
|
|
|
131
131
|
defaultHandler() {
|
|
132
132
|
return async (statWithContent, response) => {
|
|
133
133
|
const { content } = statWithContent;
|
|
134
|
-
const mimeType = mime_types_1.lookup(file_uri_1.FileUri.fsPath(statWithContent.stat.uri));
|
|
134
|
+
const mimeType = (0, mime_types_1.lookup)(file_uri_1.FileUri.fsPath(statWithContent.stat.uri));
|
|
135
135
|
if (!mimeType) {
|
|
136
136
|
this.logger.warn(`Cannot handle unexpected resource. URI: ${statWithContent.stat.uri}.`);
|
|
137
137
|
response.contentType('application/octet-stream');
|
|
@@ -158,16 +158,16 @@ let MiniBrowserEndpoint = class MiniBrowserEndpoint {
|
|
|
158
158
|
*/
|
|
159
159
|
MiniBrowserEndpoint.HANDLE_PATH = '/mini-browser/';
|
|
160
160
|
__decorate([
|
|
161
|
-
inversify_1.inject(logger_1.ILogger),
|
|
161
|
+
(0, inversify_1.inject)(logger_1.ILogger),
|
|
162
162
|
__metadata("design:type", Object)
|
|
163
163
|
], MiniBrowserEndpoint.prototype, "logger", void 0);
|
|
164
164
|
__decorate([
|
|
165
|
-
inversify_1.inject(contribution_provider_1.ContributionProvider),
|
|
166
|
-
inversify_1.named(exports.MiniBrowserEndpointHandler),
|
|
165
|
+
(0, inversify_1.inject)(contribution_provider_1.ContributionProvider),
|
|
166
|
+
(0, inversify_1.named)(exports.MiniBrowserEndpointHandler),
|
|
167
167
|
__metadata("design:type", Object)
|
|
168
168
|
], MiniBrowserEndpoint.prototype, "contributions", void 0);
|
|
169
169
|
MiniBrowserEndpoint = __decorate([
|
|
170
|
-
inversify_1.injectable()
|
|
170
|
+
(0, inversify_1.injectable)()
|
|
171
171
|
], MiniBrowserEndpoint);
|
|
172
172
|
exports.MiniBrowserEndpoint = MiniBrowserEndpoint;
|
|
173
173
|
// See `EditorManager#canHandle`.
|
|
@@ -190,7 +190,7 @@ let HtmlHandler = class HtmlHandler {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
HtmlHandler = __decorate([
|
|
193
|
-
inversify_1.injectable()
|
|
193
|
+
(0, inversify_1.injectable)()
|
|
194
194
|
], HtmlHandler);
|
|
195
195
|
exports.HtmlHandler = HtmlHandler;
|
|
196
196
|
/**
|
|
@@ -215,7 +215,7 @@ let ImageHandler = class ImageHandler {
|
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
ImageHandler = __decorate([
|
|
218
|
-
inversify_1.injectable()
|
|
218
|
+
(0, inversify_1.injectable)()
|
|
219
219
|
], ImageHandler);
|
|
220
220
|
exports.ImageHandler = ImageHandler;
|
|
221
221
|
/**
|
|
@@ -250,7 +250,7 @@ let PdfHandler = class PdfHandler {
|
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
PdfHandler = __decorate([
|
|
253
|
-
inversify_1.injectable()
|
|
253
|
+
(0, inversify_1.injectable)()
|
|
254
254
|
], PdfHandler);
|
|
255
255
|
exports.PdfHandler = PdfHandler;
|
|
256
256
|
/**
|
|
@@ -269,7 +269,7 @@ let SvgHandler = class SvgHandler {
|
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
SvgHandler = __decorate([
|
|
272
|
-
inversify_1.injectable()
|
|
272
|
+
(0, inversify_1.injectable)()
|
|
273
273
|
], SvgHandler);
|
|
274
274
|
exports.SvgHandler = SvgHandler;
|
|
275
275
|
//# sourceMappingURL=mini-browser-endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-browser-endpoint.js","sourceRoot":"","sources":["../../src/node/mini-browser-endpoint.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"mini-browser-endpoint.js","sourceRoot":"","sources":["../../src/node/mini-browser-endpoint.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,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,sDAAuD;AACvD,kDAAkD;AAClD,2CAAoC;AACpC,4DAAyE;AAEzE,4DAAwD;AACxD,0DAAwD;AAExD,wFAAoF;AAGpF,2EAA+F;AAmB/F;;GAEG;AACU,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAuB/E,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAkBuB,aAAQ,GAA4C,IAAI,GAAG,EAAE,CAAC;IAqHrF,CAA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,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QACpE,EAAE,CAAC,QAAQ,CAAC,kBAAO,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YAClE,IAAI,KAAK,EAAE;gBACP,MAAM,KAAK,CAAC;aACf;YACD,uHAAuH;YACvH,QAAQ,CAAC,SAAS,CAAC,qBAAqB,EAAE,4BAA4B,uBAAuB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAC3G,QAAQ,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;YACxC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IACpB,CAAC;CAEJ,CAAA;AAjCY,UAAU;IADtB,IAAA,sBAAU,GAAE;GACA,UAAU,CAiCtB;AAjCY,gCAAU;AAmCvB;;GAEG;AAEH,IAAa,UAAU,GAAvB,MAAa,UAAU;IAEnB,mBAAmB;QACf,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,QAAQ;QACJ,OAAO,CAAC,CAAC;IACb,CAAC;IAED,OAAO,CAAC,eAAoC,EAAE,QAAkB;QAC5D,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;CAEJ,CAAA;AAfY,UAAU;IADtB,IAAA,sBAAU,GAAE;GACA,UAAU,CAetB;AAfY,gCAAU"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2020 Ericsson 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 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
1
|
/// <reference types="node" />
|
|
17
2
|
import { WsRequestValidatorContribution } from '@theia/core/lib/node/ws-request-validators';
|
|
18
3
|
import * as http from 'http';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-browser-ws-validator.d.ts","sourceRoot":"","sources":["../../src/node/mini-browser-ws-validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mini-browser-ws-validator.d.ts","sourceRoot":"","sources":["../../src/node/mini-browser-ws-validator.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAK7B;;GAEG;AACH,qBACa,6BAA8B,YAAW,8BAA8B;IAEhF,SAAS,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAEpC,SAAS,CAAC,eAAe,EAAE,OAAO,CAAS;IAG3C,SAAS,CAAC,aAAa,IAAI,IAAI;IAYzB,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;CAUxE"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2020 Ericsson 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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
17
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
18
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
19
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -58,13 +58,13 @@ let MiniBrowserWsRequestValidator = class MiniBrowserWsRequestValidator {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
__decorate([
|
|
61
|
-
inversify_1.postConstruct(),
|
|
61
|
+
(0, inversify_1.postConstruct)(),
|
|
62
62
|
__metadata("design:type", Function),
|
|
63
63
|
__metadata("design:paramtypes", []),
|
|
64
64
|
__metadata("design:returntype", void 0)
|
|
65
65
|
], MiniBrowserWsRequestValidator.prototype, "postConstruct", null);
|
|
66
66
|
MiniBrowserWsRequestValidator = __decorate([
|
|
67
|
-
inversify_1.injectable()
|
|
67
|
+
(0, inversify_1.injectable)()
|
|
68
68
|
], MiniBrowserWsRequestValidator);
|
|
69
69
|
exports.MiniBrowserWsRequestValidator = MiniBrowserWsRequestValidator;
|
|
70
70
|
//# sourceMappingURL=mini-browser-ws-validator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-browser-ws-validator.js","sourceRoot":"","sources":["../../src/node/mini-browser-ws-validator.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"mini-browser-ws-validator.js","sourceRoot":"","sources":["../../src/node/mini-browser-ws-validator.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAIhF,4DAAyE;AACzE,2BAA2B;AAC3B,2EAAsE;AAEtE;;GAEG;AAEH,IAAa,6BAA6B,GAA1C,MAAa,6BAA6B;IAA1C;QAIc,oBAAe,GAAY,KAAK,CAAC;IAyB/C,CAAC;IAtBa,aAAa;QACnB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,2CAAmB,CAAC,gBAAgB,CAAC,IAAI,2CAAmB,CAAC,oBAAoB,CAAC;QAC9G,IAAI,OAAO,KAAK,cAAc,EAAE;YAC5B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;SAC/B;QACD,MAAM,OAAO,GAAG,OAAO;aAClB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;aACrB,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,OAA6B;QAC9C,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YACjD,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACjD,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;gBACzD,iDAAiD;gBACjD,OAAO,KAAK,CAAC;aAChB;SACJ;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AAtBG;IADC,IAAA,yBAAa,GAAE;;;;kEAWf;AAjBQ,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CA6BzC;AA7BY,sEAA6B"}
|
package/lib/package.spec.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
1
|
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
package/lib/package.spec.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
describe('mini-browser package', () => {
|
|
17
17
|
it('support code coverage statistics', () => true);
|
|
18
18
|
});
|
package/lib/package.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA
|
|
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,2EAA2E;AAC3E,gFAAgF;AAEhF,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAElC,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/mini-browser",
|
|
3
|
-
"version": "1.23.0-next.
|
|
3
|
+
"version": "1.23.0-next.54+92b376dcf82",
|
|
4
4
|
"description": "Theia - Mini-Browser Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.23.0-next.
|
|
7
|
-
"@theia/filesystem": "1.23.0-next.
|
|
6
|
+
"@theia/core": "1.23.0-next.54+92b376dcf82",
|
|
7
|
+
"@theia/filesystem": "1.23.0-next.54+92b376dcf82",
|
|
8
8
|
"@types/mime-types": "^2.1.0",
|
|
9
9
|
"mime-types": "^2.1.18",
|
|
10
10
|
"pdfobject": "^2.0.201604172",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"nyc": {
|
|
55
55
|
"extends": "../../configs/nyc.json"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "92b376dcf823293059e2023a2a03253b48352d80"
|
|
58
58
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2020 Ericsson 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
18
18
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2020 Ericsson 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Endpoint, FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
18
18
|
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
18
18
|
import URI from '@theia/core/lib/common/uri';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
export namespace MiniBrowserContentStyle {
|
|
17
17
|
export const MINI_BROWSER = 'theia-mini-browser';
|
|
18
18
|
export const TOOLBAR = 'theia-mini-browser-toolbar';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as PDFObject from 'pdfobject';
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
@@ -240,7 +240,7 @@ export class MiniBrowserContent extends BaseWidget {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
protected onActivateRequest(msg: Message): void {
|
|
243
|
+
protected override onActivateRequest(msg: Message): void {
|
|
244
244
|
super.onActivateRequest(msg);
|
|
245
245
|
if (this.getToolbarProps() !== 'hide') {
|
|
246
246
|
this.input.focus();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import '../../src/browser/style/index.css';
|
|
18
18
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2021 Ericsson 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { MessageService } from '@theia/core';
|
|
18
18
|
import { Dialog, FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Widget } from '@theia/core/shared/@phosphor/widgets';
|
|
18
18
|
import { injectable, inject, optional } from '@theia/core/shared/inversify';
|
|
@@ -125,7 +125,7 @@ export class MiniBrowserOpenHandler extends NavigatableWidgetOpenHandler<MiniBro
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
async open(uri: URI, options?: MiniBrowserOpenerOptions): Promise<MiniBrowser> {
|
|
128
|
+
override async open(uri: URI, options?: MiniBrowserOpenerOptions): Promise<MiniBrowser> {
|
|
129
129
|
const widget = await super.open(uri, options);
|
|
130
130
|
const area = this.shell.getAreaFor(widget);
|
|
131
131
|
if (area === 'right' || area === 'left') {
|
|
@@ -138,7 +138,7 @@ export class MiniBrowserOpenHandler extends NavigatableWidgetOpenHandler<MiniBro
|
|
|
138
138
|
return widget;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
protected async getOrCreateWidget(uri: URI, options?: MiniBrowserOpenerOptions): Promise<MiniBrowser> {
|
|
141
|
+
protected override async getOrCreateWidget(uri: URI, options?: MiniBrowserOpenerOptions): Promise<MiniBrowser> {
|
|
142
142
|
const props = await this.options(uri, options);
|
|
143
143
|
const widget = await super.getOrCreateWidget(uri, props);
|
|
144
144
|
widget.setProps(props);
|