deploy: current vibn theia state
Made-with: Cursor
This commit is contained in:
10
packages/electron/.eslintrc.js
Normal file
10
packages/electron/.eslintrc.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = {
|
||||
extends: [
|
||||
'../../configs/build.eslintrc.json'
|
||||
],
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: 'compile.tsconfig.json'
|
||||
}
|
||||
};
|
||||
37
packages/electron/README.md
Normal file
37
packages/electron/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
<div align='center'>
|
||||
|
||||
<br />
|
||||
|
||||
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
||||
|
||||
<h2>ECLIPSE THEIA - ELECTRON EXTENSION</h2>
|
||||
|
||||
<hr />
|
||||
|
||||
</div>
|
||||
|
||||
## Description
|
||||
|
||||
The `@theia/electron` extension bundles all Electron-specific dependencies and core functionalities.
|
||||
|
||||
## Re-Exports
|
||||
|
||||
- `@theia/electron/shared/...`
|
||||
- `native-keymap` (from [`native-keymap@^2.2.1`](https://www.npmjs.com/package/native-keymap))
|
||||
- `electron` (from [`electron@38.4.0`](https://www.npmjs.com/package/electron/v/38.4.0))
|
||||
- `electron-store` (from [`electron-store@^8.0.0`](https://www.npmjs.com/package/electron-store))
|
||||
|
||||
## Additional Information
|
||||
|
||||
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
||||
- [Theia - Website](https://theia-ide.org/)
|
||||
|
||||
## License
|
||||
|
||||
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
||||
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
||||
|
||||
## Trademark
|
||||
|
||||
"Theia" is a trademark of the Eclipse Foundation
|
||||
<https://www.eclipse.org/theia>
|
||||
41
packages/electron/README_TEMPLATE.md
Normal file
41
packages/electron/README_TEMPLATE.md
Normal file
@@ -0,0 +1,41 @@
|
||||
<div align='center'>
|
||||
|
||||
<br />
|
||||
|
||||
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
||||
|
||||
<h2>ECLIPSE THEIA - ELECTRON EXTENSION</h2>
|
||||
|
||||
<hr />
|
||||
|
||||
</div>
|
||||
|
||||
## Description
|
||||
|
||||
The `@theia/electron` extension bundles all Electron-specific dependencies and core functionalities.
|
||||
|
||||
## Re-Exports
|
||||
|
||||
{{#reExportsDirectories}}
|
||||
- `@theia/electron/{{&directory}}/...`
|
||||
{{#packages}}
|
||||
{{#modules}}
|
||||
- `{{&moduleName}}` (from [`{{&packageName}}@{{&versionRange}}`]({{&npmUrl}}))
|
||||
{{/modules}}
|
||||
{{/packages}}
|
||||
{{/reExportsDirectories}}
|
||||
|
||||
## Additional Information
|
||||
|
||||
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
||||
- [Theia - Website](https://theia-ide.org/)
|
||||
|
||||
## License
|
||||
|
||||
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
||||
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
||||
|
||||
## Trademark
|
||||
|
||||
"Theia" is a trademark of the Eclipse Foundation
|
||||
<https://www.eclipse.org/theia>
|
||||
25
packages/electron/index.d.ts
vendored
Normal file
25
packages/electron/index.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// *****************************************************************************
|
||||
// Copyright (C) 2021 Ericsson and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// http://www.eclipse.org/legal/epl-2.0.
|
||||
//
|
||||
// This Source Code may also be made available under the following Secondary
|
||||
// Licenses when the conditions for such availability set forth in the Eclipse
|
||||
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
||||
// with the GNU Classpath Exception which is available at
|
||||
// https://www.gnu.org/software/classpath/license.html.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
||||
// *****************************************************************************
|
||||
|
||||
/**
|
||||
* Currently installed Electron version. `undefined` if Electron is not installed nor found.
|
||||
*/
|
||||
export const electronVersion: string | undefined;
|
||||
|
||||
/**
|
||||
* Supported Electron version range.
|
||||
*/
|
||||
export const electronRange: string;
|
||||
27
packages/electron/index.js
Normal file
27
packages/electron/index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// *****************************************************************************
|
||||
// Copyright (C) 2021 Ericsson and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// http://www.eclipse.org/legal/epl-2.0.
|
||||
//
|
||||
// This Source Code may also be made available under the following Secondary
|
||||
// Licenses when the conditions for such availability set forth in the Eclipse
|
||||
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
||||
// with the GNU Classpath Exception which is available at
|
||||
// https://www.gnu.org/software/classpath/license.html.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
||||
// *****************************************************************************
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
exports.electronRange = require('./package.json').peerDependencies.electron;
|
||||
try {
|
||||
exports.electronVersion = require('electron/package.json').version;
|
||||
} catch (error) {
|
||||
if (error.code === 'MODULE_NOT_FOUND') {
|
||||
exports.electronVersion = undefined;
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
57
packages/electron/package.json
Normal file
57
packages/electron/package.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "@theia/electron",
|
||||
"version": "1.68.0",
|
||||
"description": "Theia - Electron utility package",
|
||||
"dependencies": {
|
||||
"electron-store": "^8.0.0",
|
||||
"fix-path": "^4.0.0",
|
||||
"native-keymap": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@theia/ext-scripts": "1.68.0",
|
||||
"@theia/re-exports": "1.68.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"electron": "38.4.0"
|
||||
},
|
||||
"theiaReExports": {
|
||||
"shared": {
|
||||
"export *": [
|
||||
"native-keymap"
|
||||
],
|
||||
"export =": [
|
||||
"electron as Electron",
|
||||
"electron-store as ElectronStore"
|
||||
]
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"theiaExtensions": [],
|
||||
"keywords": [
|
||||
"theia-extension"
|
||||
],
|
||||
"license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/eclipse-theia/theia.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/eclipse-theia/theia/issues"
|
||||
},
|
||||
"homepage": "https://github.com/eclipse-theia/theia",
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index.js",
|
||||
"shared"
|
||||
],
|
||||
"scripts": {
|
||||
"afterInstall": "npm run generate-theia-re-exports",
|
||||
"generate-theia-re-exports": "theia-re-exports generate && theia-re-exports template README_TEMPLATE.md > README.md"
|
||||
},
|
||||
"nyc": {
|
||||
"extends": "../../configs/nyc.json"
|
||||
},
|
||||
"gitHead": "21358137e41342742707f660b8e222f940a27652"
|
||||
}
|
||||
2
packages/electron/shared/electron-store/index.d.ts
vendored
Normal file
2
packages/electron/shared/electron-store/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import ElectronStore = require('electron-store');
|
||||
export = ElectronStore;
|
||||
1
packages/electron/shared/electron-store/index.js
Normal file
1
packages/electron/shared/electron-store/index.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('electron-store');
|
||||
2
packages/electron/shared/electron/index.d.ts
vendored
Normal file
2
packages/electron/shared/electron/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import Electron = require('electron');
|
||||
export = Electron;
|
||||
1
packages/electron/shared/electron/index.js
Normal file
1
packages/electron/shared/electron/index.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('electron');
|
||||
2
packages/electron/shared/fix-path/index.d.ts
vendored
Normal file
2
packages/electron/shared/fix-path/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import fixPath = require('fix-path');
|
||||
export = fixPath;
|
||||
1
packages/electron/shared/fix-path/index.js
Normal file
1
packages/electron/shared/fix-path/index.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = import('fix-path');
|
||||
1
packages/electron/shared/native-keymap/index.d.ts
vendored
Normal file
1
packages/electron/shared/native-keymap/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from 'native-keymap';
|
||||
1
packages/electron/shared/native-keymap/index.js
Normal file
1
packages/electron/shared/native-keymap/index.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('native-keymap');
|
||||
Reference in New Issue
Block a user