This commit is contained in:
2022-09-30 05:39:11 +00:00
parent 41ee9463ae
commit 4687fa49bc
11418 changed files with 1312504 additions and 0 deletions

20
buildfiles/node_modules/electron/LICENSE generated vendored Normal file
View File

@ -0,0 +1,20 @@
Copyright (c) 2013-2020 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

107
buildfiles/node_modules/electron/README.md generated vendored Normal file
View File

@ -0,0 +1,107 @@
[![Electron Logo](https://electronjs.org/images/electron-logo.svg)](https://electronjs.org)
[![CircleCI Build Status](https://circleci.com/gh/electron/electron/tree/master.svg?style=shield)](https://circleci.com/gh/electron/electron/tree/master)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/4lggi9dpjc1qob7k/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/electron-ljo26/branch/master)
[![devDependency Status](https://david-dm.org/electron/electron/dev-status.svg)](https://david-dm.org/electron/electron?type=dev)
:memo: Available Translations: 🇨🇳 🇹🇼 🇧🇷 🇪🇸 🇰🇷 🇯🇵 🇷🇺 🇫🇷 🇹🇭 🇳🇱 🇹🇷 🇮🇩 🇺🇦 🇨🇿 🇮🇹 🇵🇱.
View these docs in other languages at [electron/i18n](https://github.com/electron/i18n/tree/master/content/).
The Electron framework lets you write cross-platform desktop applications
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
[Chromium](https://www.chromium.org) and is used by the [Atom
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
announcements.
This project adheres to the Contributor Covenant
[code of conduct](https://github.com/electron/electron/tree/master/CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report unacceptable
behavior to [coc@electronjs.org](mailto:coc@electronjs.org).
## Installation
To install prebuilt Electron binaries, use [`npm`](https://docs.npmjs.com/).
The preferred method is to install Electron as a development dependency in your
app:
```sh
npm install electron --save-dev [--save-exact]
```
The `--save-exact` flag is recommended for Electron prior to version 2, as it does not follow semantic
versioning. As of version 2.0.0, Electron follows semver, so you don't need `--save-exact` flag. For info on how to manage Electron versions in your apps, see
[Electron versioning](docs/tutorial/electron-versioning.md).
For more installation options and troubleshooting tips, see
[installation](docs/tutorial/installation.md).
## Quick start & Electron Fiddle
Use [`Electron Fiddle`](https://github.com/electron/fiddle)
to build, run, and package small Electron experiments, to see code examples for all of Electron's APIs, and
to try out different versions of Electron. It's designed to make the start of your journey with
Electron easier.
Alternatively, clone and run the
[electron/electron-quick-start](https://github.com/electron/electron-quick-start)
repository to see a minimal Electron app in action:
```sh
git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install
npm start
```
## Resources for learning Electron
- [electronjs.org/docs](https://electronjs.org/docs) - All of Electron's documentation
- [electron/fiddle](https://github.com/electron/fiddle) - A tool to build, run, and package small Electron experiments
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - A very basic starter Electron app
- [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - Sample starter apps created by the community
- [electron/simple-samples](https://github.com/electron/simple-samples) - Small applications with ideas for taking them further
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - An Electron app that teaches you how to use Electron
- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - Small demo apps for the various Electron APIs
## Programmatic usage
Most people use Electron from the command line, but if you require `electron` inside
your **Node app** (not your Electron app) it will return the file path to the
binary. Use this to spawn Electron from Node scripts:
```javascript
const electron = require('electron')
const proc = require('child_process')
// will print something similar to /Users/maf/.../Electron
console.log(electron)
// spawn Electron
const child = proc.spawn(electron)
```
### Mirrors
- [China](https://npm.taobao.org/mirrors/electron)
## Documentation Translations
Find documentation translations in [electron/i18n](https://github.com/electron/i18n).
## Contributing
If you are interested in reporting/fixing issues and contributing directly to the code base, please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information on what we're looking for and how to get started.
## Community
Info on reporting bugs, getting help, finding third-party tools and sample apps,
and more can be found in the [support document](docs/tutorial/support.md#finding-support).
## License
[MIT](https://github.com/electron/electron/blob/master/LICENSE)
When using the Electron or other GitHub logos, be sure to follow the [GitHub logo guidelines](https://github.com/logos).

21
buildfiles/node_modules/electron/cli.js generated vendored Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env node
var electron = require('./')
var proc = require('child_process')
var child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false })
child.on('close', function (code) {
process.exit(code)
})
const handleTerminationSignal = function (signal) {
process.on(signal, function signalHandler () {
if (!child.killed) {
child.kill(signal)
}
})
}
handleTerminationSignal('SIGINT')
handleTerminationSignal('SIGTERM')

20
buildfiles/node_modules/electron/dist/LICENSE generated vendored Normal file
View File

@ -0,0 +1,20 @@
Copyright (c) 2013-2020 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

File diff suppressed because it is too large Load Diff

BIN
buildfiles/node_modules/electron/dist/chrome-sandbox generated vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/electron generated vendored Executable file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/icudtl.dat generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/libEGL.so generated vendored Executable file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/libGLESv2.so generated vendored Executable file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/libffmpeg.so generated vendored Executable file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/libvk_swiftshader.so generated vendored Executable file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/libvulkan.so generated vendored Executable file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/am.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ar.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/bg.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/bn.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ca.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/cs.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/da.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/de.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/el.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/en-GB.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/en-US.pak generated vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/es.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/et.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/fa.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/fi.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/fil.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/fr.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/gu.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/he.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/hi.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/hr.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/hu.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/id.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/it.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ja.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/kn.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ko.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/lt.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/lv.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ml.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/mr.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ms.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/nb.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/nl.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/pl.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/pt-BR.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/pt-PT.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ro.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ru.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/sk.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/sl.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/sr.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/sv.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/sw.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/ta.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/te.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/th.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/tr.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/uk.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/vi.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/zh-CN.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/locales/zh-TW.pak generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/resources.pak generated vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/snapshot_blob.bin generated vendored Normal file

Binary file not shown.

BIN
buildfiles/node_modules/electron/dist/swiftshader/libEGL.so generated vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

1
buildfiles/node_modules/electron/dist/version generated vendored Normal file
View File

@ -0,0 +1 @@
9.3.5

View File

@ -0,0 +1 @@
{"file_format_version": "1.0.0", "ICD": {"library_path": "./libvk_swiftshader.so", "api_version": "1.0.5"}}

14239
buildfiles/node_modules/electron/electron.d.ts generated vendored Normal file

File diff suppressed because it is too large Load Diff

18
buildfiles/node_modules/electron/index.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
var fs = require('fs')
var path = require('path')
var pathFile = path.join(__dirname, 'path.txt')
function getElectronPath () {
if (fs.existsSync(pathFile)) {
var executablePath = fs.readFileSync(pathFile, 'utf-8')
if (process.env.ELECTRON_OVERRIDE_DIST_PATH) {
return path.join(process.env.ELECTRON_OVERRIDE_DIST_PATH, executablePath)
}
return path.join(__dirname, 'dist', executablePath)
} else {
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
}
}
module.exports = getElectronPath()

83
buildfiles/node_modules/electron/install.js generated vendored Normal file
View File

@ -0,0 +1,83 @@
#!/usr/bin/env node
const version = require('./package').version
const fs = require('fs')
const os = require('os')
const path = require('path')
const extract = require('extract-zip')
const { downloadArtifact } = require('@electron/get')
if (process.env.ELECTRON_SKIP_BINARY_DOWNLOAD) {
process.exit(0)
}
const platformPath = getPlatformPath()
if (isInstalled()) {
process.exit(0)
}
// downloads if not cached
downloadArtifact({
version,
artifactName: 'electron',
force: process.env.force_no_cache === 'true',
cacheRoot: process.env.electron_config_cache,
platform: process.env.npm_config_platform || process.platform,
arch: process.env.npm_config_arch || process.arch
}).then(extractFile).catch(err => {
console.error(err.stack)
process.exit(1)
})
function isInstalled () {
try {
if (fs.readFileSync(path.join(__dirname, 'dist', 'version'), 'utf-8').replace(/^v/, '') !== version) {
return false
}
if (fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8') !== platformPath) {
return false
}
} catch (ignored) {
return false
}
const electronPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist', platformPath)
return fs.existsSync(electronPath)
}
// unzips and makes path.txt point at the correct executable
function extractFile (zipPath) {
return new Promise((resolve, reject) => {
extract(zipPath, { dir: path.join(__dirname, 'dist') }, err => {
if (err) return reject(err)
fs.writeFile(path.join(__dirname, 'path.txt'), platformPath, err => {
if (err) return reject(err)
resolve()
})
})
})
}
function getPlatformPath () {
const platform = process.env.npm_config_platform || os.platform()
switch (platform) {
case 'mas':
case 'darwin':
return 'Electron.app/Contents/MacOS/Electron'
case 'freebsd':
case 'openbsd':
case 'linux':
return 'electron'
case 'win32':
return 'electron.exe'
default:
throw new Error('Electron builds are not available on platform: ' + platform)
}
}

61
buildfiles/node_modules/electron/package.json generated vendored Normal file
View File

@ -0,0 +1,61 @@
{
"_from": "electron@^9.2.1",
"_id": "electron@9.3.5",
"_inBundle": false,
"_integrity": "sha512-EPmDsp7sO0UPtw7nLD1ufse/nBskP+ifXzBgUg9psCUlapkzuwYi6pmLAzKLW/bVjwgyUKwh1OKWILWfOeLGcQ==",
"_location": "/electron",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "electron@^9.2.1",
"name": "electron",
"escapedName": "electron",
"rawSpec": "^9.2.1",
"saveSpec": null,
"fetchSpec": "^9.2.1"
},
"_requiredBy": [
"#DEV:/"
],
"_resolved": "https://registry.npmjs.org/electron/-/electron-9.3.5.tgz",
"_shasum": "7967146b81e6d9b484773243fd4a4f671a50b884",
"_spec": "electron@^9.2.1",
"_where": "/home/shihaam/www/freezer.shihaam.me",
"author": {
"name": "Electron Community"
},
"bin": {
"electron": "cli.js"
},
"bugs": {
"url": "https://github.com/electron/electron/issues"
},
"bundleDependencies": false,
"dependencies": {
"@electron/get": "^1.0.1",
"@types/node": "^12.0.12",
"extract-zip": "^1.0.3"
},
"deprecated": false,
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
"engines": {
"node": ">= 8.6"
},
"homepage": "https://github.com/electron/electron#readme",
"keywords": [
"electron"
],
"license": "MIT",
"main": "index.js",
"name": "electron",
"repository": {
"type": "git",
"url": "git+https://github.com/electron/electron.git"
},
"scripts": {
"postinstall": "node install.js"
},
"types": "electron.d.ts",
"version": "9.3.5"
}

1
buildfiles/node_modules/electron/path.txt generated vendored Normal file
View File

@ -0,0 +1 @@
electron