merge: feature/extension-structure
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"ignorePatterns": [
|
"ignorePatterns": [
|
||||||
"app/**/*", // ignore nodeJs files
|
|
||||||
"dist/**/*",
|
"dist/**/*",
|
||||||
"release/**/*"
|
"release/**/*"
|
||||||
],
|
],
|
||||||
@ -12,17 +11,11 @@
|
|||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"project": [
|
"project": [
|
||||||
"./tsconfig.serve.json",
|
"./tsconfig.serve.json"
|
||||||
"./src/tsconfig.app.json",
|
|
||||||
"./src/tsconfig.spec.json",
|
|
||||||
"./e2e/tsconfig.e2e.json"
|
|
||||||
],
|
],
|
||||||
"createDefaultProgram": true
|
"createDefaultProgram": true
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"plugin:@angular-eslint/ng-cli-compat",
|
|
||||||
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
|
||||||
"plugin:@angular-eslint/template/process-inline-templates"
|
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"prefer-arrow/prefer-arrow-functions": 0,
|
"prefer-arrow/prefer-arrow-functions": 0,
|
||||||
@ -42,7 +35,6 @@
|
|||||||
"*.html"
|
"*.html"
|
||||||
],
|
],
|
||||||
"extends": [
|
"extends": [
|
||||||
"plugin:@angular-eslint/template/recommended"
|
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
}
|
}
|
||||||
|
2
.gitignore
vendored
@ -1,8 +1,8 @@
|
|||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
# compiled output
|
# compiled output
|
||||||
/dist
|
|
||||||
/build/SetupScripts/nim/skin.zip
|
/build/SetupScripts/nim/skin.zip
|
||||||
|
dist/
|
||||||
/tmp
|
/tmp
|
||||||
/out-tsc
|
/out-tsc
|
||||||
/app-builds
|
/app-builds
|
||||||
|
10
README.md
@ -1,6 +1,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/eolinker/eoapi">
|
<a href="https://github.com/eolinker/eoapi">
|
||||||
<img width="200" src="https://raw.githubusercontent.com/eolinker/eoapi/main/src/assets/icons/128x128.png">
|
<img width="200" src="./wiki/images/logo.png">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<h1 align="center">Eoapi</h1>
|
<h1 align="center">Eoapi</h1>
|
||||||
@ -8,9 +8,9 @@
|
|||||||
A lightweight open source API tool.
|
A lightweight open source API tool.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
![](https://raw.githubusercontent.com/eolinker/eoapi/main/wiki/preview_1.png)
|
![](./wiki/images/preview_1.png)
|
||||||
|
|
||||||
English | [简体中文](README.zh_CN.md)
|
English | [简体中文](wiki/README.zh_CN.md)
|
||||||
|
|
||||||
# Featue
|
# Featue
|
||||||
|
|
||||||
@ -47,11 +47,11 @@ English | [简体中文](README.zh_CN.md)
|
|||||||
## Running the code
|
## Running the code
|
||||||
|
|
||||||
```
|
```
|
||||||
npm ci
|
npm install
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to improve development efficiency, you can install the command-line Angular-cli officially provided by Angular to quickly generate templates such as components and services.
|
If you want to improve Angular development efficiency, you can install the command-line Angular-cli officially provided by Angular to quickly generate templates such as components and services.
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install -g @angular/cli
|
npm install -g @angular/cli
|
||||||
|
@ -1 +0,0 @@
|
|||||||
theme: jekyll-theme-architect
|
|
8
app/browser/index.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script type="application/javascript" src="./dist/index.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
758
app/browser/package-lock.json
generated
Normal file
@ -0,0 +1,758 @@
|
|||||||
|
{
|
||||||
|
"name": "eoapi",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/code-frame": {
|
||||||
|
"version": "7.16.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz",
|
||||||
|
"integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@babel/highlight": "^7.16.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@babel/helper-validator-identifier": {
|
||||||
|
"version": "7.16.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz",
|
||||||
|
"integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"@babel/highlight": {
|
||||||
|
"version": "7.16.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz",
|
||||||
|
"integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@babel/helper-validator-identifier": "^7.16.7",
|
||||||
|
"chalk": "^2.0.0",
|
||||||
|
"js-tokens": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@rollup/plugin-commonjs": {
|
||||||
|
"version": "21.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-21.0.2.tgz",
|
||||||
|
"integrity": "sha512-d/OmjaLVO4j/aQX69bwpWPpbvI3TJkQuxoAk7BH8ew1PyoMBLTOuvJTjzG8oEoW7drIIqB0KCJtfFLu/2GClWg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@rollup/pluginutils": "^3.1.0",
|
||||||
|
"commondir": "^1.0.1",
|
||||||
|
"estree-walker": "^2.0.1",
|
||||||
|
"glob": "^7.1.6",
|
||||||
|
"is-reference": "^1.2.1",
|
||||||
|
"magic-string": "^0.25.7",
|
||||||
|
"resolve": "^1.17.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@rollup/plugin-json": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz",
|
||||||
|
"integrity": "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@rollup/pluginutils": "^3.0.8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@rollup/plugin-replace": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-3.1.0.tgz",
|
||||||
|
"integrity": "sha512-pA3XRUrSKybVYqmH5TqWNZpGxF+VV+1GrYchKgCNIj2vsSOX7CVm2RCtx8p2nrC7xvkziYyK+lSi74T93MU3YA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@rollup/pluginutils": "^3.1.0",
|
||||||
|
"magic-string": "^0.25.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@rollup/pluginutils": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",
|
||||||
|
"integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/estree": "0.0.39",
|
||||||
|
"estree-walker": "^1.0.1",
|
||||||
|
"picomatch": "^2.2.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"estree-walker": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/estree": {
|
||||||
|
"version": "0.0.39",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",
|
||||||
|
"integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"@types/glob": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/minimatch": "*",
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/minimatch": {
|
||||||
|
"version": "3.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",
|
||||||
|
"integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"@types/node": {
|
||||||
|
"version": "17.0.23",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.23.tgz",
|
||||||
|
"integrity": "sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"@types/resolve": {
|
||||||
|
"version": "0.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz",
|
||||||
|
"integrity": "sha512-auApPaJf3NPfe18hSoJkp8EbZzer2ISk7o8mCC3M9he/a04+gbMF97NkpD2S8riMGvm4BMRI59/SZQSaLTKpsQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/rimraf": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/rimraf/-/rimraf-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/glob": "*",
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acorn": {
|
||||||
|
"version": "8.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz",
|
||||||
|
"integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"ansi-styles": {
|
||||||
|
"version": "3.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
||||||
|
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"color-convert": "^1.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"balanced-match": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"brace-expansion": {
|
||||||
|
"version": "1.1.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||||
|
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"balanced-match": "^1.0.0",
|
||||||
|
"concat-map": "0.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"buffer-from": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"builtin-modules": {
|
||||||
|
"version": "3.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.2.0.tgz",
|
||||||
|
"integrity": "sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"chalk": {
|
||||||
|
"version": "2.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
||||||
|
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"ansi-styles": "^3.2.1",
|
||||||
|
"escape-string-regexp": "^1.0.5",
|
||||||
|
"supports-color": "^5.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"color-convert": {
|
||||||
|
"version": "1.9.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
|
||||||
|
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"color-name": "1.1.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"color-name": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
|
||||||
|
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"commander": {
|
||||||
|
"version": "2.20.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
||||||
|
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"commondir": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"concat-map": {
|
||||||
|
"version": "0.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||||
|
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"escape-string-regexp": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
||||||
|
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"estree-walker": {
|
||||||
|
"version": "2.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"find-cache-dir": {
|
||||||
|
"version": "3.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",
|
||||||
|
"integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"commondir": "^1.0.1",
|
||||||
|
"make-dir": "^3.0.2",
|
||||||
|
"pkg-dir": "^4.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"find-up": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
||||||
|
"integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"locate-path": "^5.0.0",
|
||||||
|
"path-exists": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fs-extra": {
|
||||||
|
"version": "8.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
|
||||||
|
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"graceful-fs": "^4.2.0",
|
||||||
|
"jsonfile": "^4.0.0",
|
||||||
|
"universalify": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fs.realpath": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"fsevents": {
|
||||||
|
"version": "2.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
||||||
|
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"function-bind": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"glob": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"fs.realpath": "^1.0.0",
|
||||||
|
"inflight": "^1.0.4",
|
||||||
|
"inherits": "2",
|
||||||
|
"minimatch": "^3.0.4",
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"path-is-absolute": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"graceful-fs": {
|
||||||
|
"version": "4.2.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz",
|
||||||
|
"integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"has": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
||||||
|
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"function-bind": "^1.1.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has-flag": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"inflight": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"wrappy": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"inherits": {
|
||||||
|
"version": "2.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"is-core-module": {
|
||||||
|
"version": "2.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz",
|
||||||
|
"integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"has": "^1.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is-module": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"is-reference": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/estree": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"jest-worker": {
|
||||||
|
"version": "26.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz",
|
||||||
|
"integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/node": "*",
|
||||||
|
"merge-stream": "^2.0.0",
|
||||||
|
"supports-color": "^7.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"has-flag": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"supports-color": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"has-flag": "^4.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"js-tokens": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"jsonfile": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
|
||||||
|
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"graceful-fs": "^4.1.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locate-path": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-locate": "^4.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"magic-string": {
|
||||||
|
"version": "0.25.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz",
|
||||||
|
"integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"sourcemap-codec": "^1.4.8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"make-dir": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
|
||||||
|
"integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"semver": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"merge-stream": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"minimatch": {
|
||||||
|
"version": "3.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||||
|
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"brace-expansion": "^1.1.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"once": {
|
||||||
|
"version": "1.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||||
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"wrappy": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-limit": {
|
||||||
|
"version": "2.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
|
||||||
|
"integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-try": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-locate": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
|
||||||
|
"integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-limit": "^2.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-try": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"path-exists": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"path-is-absolute": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"path-parse": {
|
||||||
|
"version": "1.0.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
||||||
|
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"picomatch": {
|
||||||
|
"version": "2.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
||||||
|
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"pkg-dir": {
|
||||||
|
"version": "4.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
|
||||||
|
"integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"find-up": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"randombytes": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"safe-buffer": "^5.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resolve": {
|
||||||
|
"version": "1.22.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
|
||||||
|
"integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"is-core-module": "^2.8.1",
|
||||||
|
"path-parse": "^1.0.7",
|
||||||
|
"supports-preserve-symlinks-flag": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rimraf": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"glob": "^7.1.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup": {
|
||||||
|
"version": "2.70.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.70.1.tgz",
|
||||||
|
"integrity": "sha512-CRYsI5EuzLbXdxC6RnYhOuRdtz4bhejPMSWjsFLfVM/7w/85n2szZv6yExqUXsBdz5KT8eoubeyDUDjhLHEslA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"fsevents": "~2.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-plugin-inject": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"estree-walker": "^0.6.1",
|
||||||
|
"magic-string": "^0.25.3",
|
||||||
|
"rollup-pluginutils": "^2.8.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"estree-walker": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-plugin-node-polyfills": {
|
||||||
|
"version": "0.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz",
|
||||||
|
"integrity": "sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"rollup-plugin-inject": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-plugin-node-resolve": {
|
||||||
|
"version": "5.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz",
|
||||||
|
"integrity": "sha512-jUlyaDXts7TW2CqQ4GaO5VJ4PwwaV8VUGA7+km3n6k6xtOEacf61u0VXwN80phY/evMcaS+9eIeJ9MOyDxt5Zw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/resolve": "0.0.8",
|
||||||
|
"builtin-modules": "^3.1.0",
|
||||||
|
"is-module": "^1.0.0",
|
||||||
|
"resolve": "^1.11.1",
|
||||||
|
"rollup-pluginutils": "^2.8.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-plugin-string": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-string/-/rollup-plugin-string-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-vqyzgn9QefAgeKi+Y4A7jETeIAU1zQmS6VotH6bzm/zmUQEnYkpIGRaOBPY41oiWYV4JyBoGAaBjYMYuv+6wVw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"rollup-pluginutils": "^2.4.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-plugin-terser": {
|
||||||
|
"version": "7.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz",
|
||||||
|
"integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@babel/code-frame": "^7.10.4",
|
||||||
|
"jest-worker": "^26.2.1",
|
||||||
|
"serialize-javascript": "^4.0.0",
|
||||||
|
"terser": "^5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-plugin-typescript2": {
|
||||||
|
"version": "0.30.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.30.0.tgz",
|
||||||
|
"integrity": "sha512-NUFszIQyhgDdhRS9ya/VEmsnpTe+GERDMmFo0Y+kf8ds51Xy57nPNGglJY+W6x1vcouA7Au7nsTgsLFj2I0PxQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@rollup/pluginutils": "^4.1.0",
|
||||||
|
"find-cache-dir": "^3.3.1",
|
||||||
|
"fs-extra": "8.1.0",
|
||||||
|
"resolve": "1.20.0",
|
||||||
|
"tslib": "2.1.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@rollup/pluginutils": {
|
||||||
|
"version": "4.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.0.tgz",
|
||||||
|
"integrity": "sha512-2WUyJNRkyH5p487pGnn4tWAsxhEFKN/pT8CMgHshd5H+IXkOnKvKZwsz5ZWz+YCXkleZRAU5kwbfgF8CPfDRqA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"estree-walker": "^2.0.1",
|
||||||
|
"picomatch": "^2.2.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resolve": {
|
||||||
|
"version": "1.20.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz",
|
||||||
|
"integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"is-core-module": "^2.2.0",
|
||||||
|
"path-parse": "^1.0.6"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rollup-pluginutils": {
|
||||||
|
"version": "2.8.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
|
||||||
|
"integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"estree-walker": "^0.6.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"estree-walker": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"safe-buffer": {
|
||||||
|
"version": "5.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||||
|
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"semver": {
|
||||||
|
"version": "6.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||||
|
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"serialize-javascript": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"randombytes": "^2.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"source-map": {
|
||||||
|
"version": "0.7.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
|
||||||
|
"integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"source-map-support": {
|
||||||
|
"version": "0.5.21",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
|
||||||
|
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"buffer-from": "^1.0.0",
|
||||||
|
"source-map": "^0.6.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"source-map": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourcemap-codec": {
|
||||||
|
"version": "1.4.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
|
||||||
|
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"supports-color": {
|
||||||
|
"version": "5.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
||||||
|
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"has-flag": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"supports-preserve-symlinks-flag": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"terser": {
|
||||||
|
"version": "5.12.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.12.1.tgz",
|
||||||
|
"integrity": "sha512-NXbs+7nisos5E+yXwAD+y7zrcTkMqb0dEJxIGtSKPdCBzopf7ni4odPul2aechpV7EXNvOudYOX2bb5tln1jbQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"acorn": "^8.5.0",
|
||||||
|
"commander": "^2.20.0",
|
||||||
|
"source-map": "~0.7.2",
|
||||||
|
"source-map-support": "~0.5.20"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tslib": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"universalify": {
|
||||||
|
"version": "0.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
||||||
|
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"wrappy": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
25
app/browser/package.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "eoapi",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "A storage load service.",
|
||||||
|
"scripts": {
|
||||||
|
"build": "rimraf ./dist && rollup -c rollup.config",
|
||||||
|
"dev": "rollup -c rollup.config.js -w"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@rollup/plugin-commonjs": "^21.0.0",
|
||||||
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
|
"@rollup/plugin-replace": "^3.0.0",
|
||||||
|
"@types/rimraf": "^3.0.0",
|
||||||
|
"rimraf": "^3.0.2",
|
||||||
|
"rollup": "^2.58.0",
|
||||||
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
||||||
|
"rollup-plugin-node-resolve": "^5.2.0",
|
||||||
|
"rollup-plugin-string": "^3.0.0",
|
||||||
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
|
"rollup-plugin-typescript2": "^0.30.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 12.0.0"
|
||||||
|
}
|
||||||
|
}
|
47
app/browser/rollup.config
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
import { terser } from 'rollup-plugin-terser';
|
||||||
|
import typescript from 'rollup-plugin-typescript2';
|
||||||
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
|
import json from '@rollup/plugin-json';
|
||||||
|
import replace from '@rollup/plugin-replace';
|
||||||
|
import resolve from 'rollup-plugin-node-resolve';
|
||||||
|
import nodePolyfills from 'rollup-plugin-node-polyfills';
|
||||||
|
|
||||||
|
const sourcemap = 'inline';
|
||||||
|
const input = './src/index.ts';
|
||||||
|
|
||||||
|
const commonOptions = {
|
||||||
|
external: ['dexie', 'rxjs'],
|
||||||
|
plugins: [
|
||||||
|
typescript({
|
||||||
|
tsconfigOverride: {
|
||||||
|
compilerOptions: {
|
||||||
|
target: 'ES2017',
|
||||||
|
module: 'ES2015'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
terser(),
|
||||||
|
resolve(),
|
||||||
|
nodePolyfills(),
|
||||||
|
commonjs(),
|
||||||
|
json(),
|
||||||
|
replace({
|
||||||
|
preventAssignment: true
|
||||||
|
})
|
||||||
|
],
|
||||||
|
input
|
||||||
|
};
|
||||||
|
|
||||||
|
/** @type import('rollup').RollupOptions */
|
||||||
|
const nodeCjs = {
|
||||||
|
output: [{
|
||||||
|
file: 'dist/index.js',
|
||||||
|
format: 'cjs',
|
||||||
|
sourcemap
|
||||||
|
}],
|
||||||
|
...commonOptions
|
||||||
|
};
|
||||||
|
|
||||||
|
const bundles = [nodeCjs];
|
||||||
|
|
||||||
|
export default bundles;
|
84
app/browser/src/index.ts
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
import { ipcRenderer, app } from 'electron';
|
||||||
|
import * as fs from 'fs';
|
||||||
|
import * as path from 'path';
|
||||||
|
import { StorageHandleResult, StorageHandleStatus, StorageHandleArgs, StorageProcessType } from '../../../platform/browser/IndexedDB';
|
||||||
|
import { storage } from '../../../platform/browser/IndexedDB/lib';
|
||||||
|
import { isNotEmpty } from '../../../shared/common/common';
|
||||||
|
class StorageService {
|
||||||
|
private ipcRenderer: typeof ipcRenderer;
|
||||||
|
private app: typeof app;
|
||||||
|
private fs: typeof fs;
|
||||||
|
private path: typeof path;
|
||||||
|
constructor() {
|
||||||
|
console.log('test');
|
||||||
|
this.ipcRenderer = window.require('electron').ipcRenderer;
|
||||||
|
this.app= window.require('electron').app;
|
||||||
|
this.fs = window.require('fs');
|
||||||
|
this.path= window.require('path');
|
||||||
|
this.storageListen();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 存储监听处理
|
||||||
|
* @param args
|
||||||
|
*/
|
||||||
|
private storageListenHandle(args: StorageHandleArgs): void {
|
||||||
|
console.log(args);
|
||||||
|
const action: string = args.action || undefined;
|
||||||
|
const handleResult: StorageHandleResult = {
|
||||||
|
status: StorageHandleStatus.invalid,
|
||||||
|
data: undefined
|
||||||
|
};
|
||||||
|
if (storage && storage[action] && typeof storage[action] === 'function') {
|
||||||
|
console.log('storage run');
|
||||||
|
storage[action](...args.params).subscribe((result: any) => {
|
||||||
|
handleResult.data = result;
|
||||||
|
if (isNotEmpty(result)) {
|
||||||
|
handleResult.status = StorageHandleStatus.success;
|
||||||
|
} else {
|
||||||
|
handleResult.status = StorageHandleStatus.empty;
|
||||||
|
}
|
||||||
|
this.storageListenHandleNotify(args.type, handleResult);
|
||||||
|
}, (error: any) => {
|
||||||
|
handleResult.status = StorageHandleStatus.error;
|
||||||
|
this.storageListenHandleNotify(args.type, handleResult);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.storageListenHandleNotify(args.type, handleResult);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据存储监听通知返回
|
||||||
|
* @param type
|
||||||
|
* @param result
|
||||||
|
*/
|
||||||
|
private storageListenHandleNotify(type: string, result: StorageHandleResult): void {
|
||||||
|
try {
|
||||||
|
if (StorageProcessType.default === type) {
|
||||||
|
this.ipcRenderer.send('eo-storage', {type: 'result', result: result});
|
||||||
|
} else if (StorageProcessType.sync === type) {
|
||||||
|
const storageTemp = this.path.join(this.app.getPath('home'), '.eo', 'tmp.storage');
|
||||||
|
this.fs.writeFileSync(storageTemp, JSON.stringify(result));
|
||||||
|
} else if (StorageProcessType.remote === type) {
|
||||||
|
window.require('@electron/remote').getGlobal('shareObject').storageResult = result;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开启数据存储监听
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
private storageListen(): void {
|
||||||
|
this.ipcRenderer.on('eo-storage', (event, args: StorageHandleArgs) => this.storageListenHandle(args));
|
||||||
|
}
|
||||||
|
|
||||||
|
isElectron(): boolean {
|
||||||
|
return !!(window && window.process && window.process.type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
new StorageService();
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 726 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
95
app/electron-main/appView.ts
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
import ModuleManager from '../../platform/node/extension-manager/lib/manager';
|
||||||
|
import { ModuleInfo, ModuleManagerInterface, ModuleType } from '../../platform/node/extension-manager/types';
|
||||||
|
import { getViewBounds, SidePosition, ViewBounds, ViewZone } from '../../shared/common/bounds';
|
||||||
|
import { BrowserView, BrowserWindow } from 'electron';
|
||||||
|
import * as path from 'path';
|
||||||
|
import { BrowserViewInstance } from '../../platform/electron-main/browserView/browserView';
|
||||||
|
import { processEnv } from '../../platform/node/constant';
|
||||||
|
const browserViews: Map<ViewZone, BrowserView> = new Map();
|
||||||
|
const moduleManager: ModuleManagerInterface = ModuleManager();
|
||||||
|
export class AppViews {
|
||||||
|
mainModuleID: string = 'default';
|
||||||
|
moduleID: string = 'default';
|
||||||
|
view: BrowserView;
|
||||||
|
sidePosition: SidePosition = SidePosition.left;
|
||||||
|
constructor(private win: BrowserWindow) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据模块ID启动app模块的加载
|
||||||
|
* @param moduleID
|
||||||
|
*/
|
||||||
|
create(moduleID: string) {
|
||||||
|
this.moduleID = moduleID;
|
||||||
|
const module: ModuleInfo = moduleManager.getModule(moduleID, true);
|
||||||
|
if (module && module.moduleType === ModuleType.app) {
|
||||||
|
let refresh: boolean = false;
|
||||||
|
if (module.isApp && this.mainModuleID !== module.moduleID) {
|
||||||
|
this.mainModuleID = module.moduleID;
|
||||||
|
this.sidePosition = module.sidePosition;
|
||||||
|
refresh = true;
|
||||||
|
}
|
||||||
|
this.createAppView(module, refresh);
|
||||||
|
}
|
||||||
|
if (module.main_node) {
|
||||||
|
const main_node = require(module.main_node);
|
||||||
|
if (main_node.module && typeof main_node.module === 'object') {
|
||||||
|
const _fun = main_node.module;
|
||||||
|
console.log(_fun);
|
||||||
|
_fun.setup({
|
||||||
|
appView: this.view
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this.view;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除视图
|
||||||
|
*/
|
||||||
|
remove() {
|
||||||
|
if (!this.view) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.view.webContents.closeDevTools();
|
||||||
|
this.win.removeBrowserView(this.view);
|
||||||
|
this.view = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
rebuildBounds(sideWidth?: number) {
|
||||||
|
if (!this.view) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const windBounds = this.win.getContentBounds();
|
||||||
|
const _bounds: ViewBounds = getViewBounds(ViewZone.main, windBounds.width, windBounds.height, this.sidePosition, sideWidth);
|
||||||
|
this.view.setBounds(_bounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建主视图,主要从模块载入文件
|
||||||
|
* @param module
|
||||||
|
* @param window
|
||||||
|
*/
|
||||||
|
private createAppView(module: ModuleInfo, refresh: boolean) {
|
||||||
|
const windBounds = this.win.getContentBounds();
|
||||||
|
const _bounds: ViewBounds = getViewBounds(ViewZone.main, windBounds.width, windBounds.height, this.sidePosition);
|
||||||
|
let _view = new BrowserViewInstance({
|
||||||
|
bounds: _bounds,
|
||||||
|
partition: `<${module.moduleID}>`,
|
||||||
|
preloadPath: path.join(__dirname, '../../', 'platform', 'electron-browser', 'preload.js'),
|
||||||
|
preload: module.preload,
|
||||||
|
viewPath: processEnv === 'development' && module.main_debug ? module.main_debug : module.main,
|
||||||
|
}).init(this.win);
|
||||||
|
this.remove()
|
||||||
|
this.view = _view;
|
||||||
|
this.view.webContents.once('did-finish-load', () => {
|
||||||
|
_view.setBackgroundColor('#FFF');
|
||||||
|
});
|
||||||
|
this.view.webContents.once('dom-ready', () => {
|
||||||
|
this.rebuildBounds();
|
||||||
|
require('@electron/remote/main').enable(this.view.webContents);
|
||||||
|
//_view.setAutoResize({ width: true });
|
||||||
|
//this.win.webContents.executeJavaScript(`window.getModules1()`);
|
||||||
|
});
|
||||||
|
//return this.view;
|
||||||
|
}
|
||||||
|
}
|
74
app/electron-main/coreView.ts
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
import { BrowserView, screen, BrowserWindow, session, ipcMain } from 'electron';
|
||||||
|
import { BrowserViewInstance } from '../../platform/electron-main/browserView/browserView';
|
||||||
|
import * as path from 'path';
|
||||||
|
import { subView } from './main';
|
||||||
|
import { processEnv } from '../../platform/node/constant';
|
||||||
|
export class CoreViews {
|
||||||
|
moduleID: string;
|
||||||
|
view: BrowserView;
|
||||||
|
constructor(private win: BrowserWindow) {
|
||||||
|
this.triggleEvent = this.triggleEvent.bind(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
rebuildBounds() {
|
||||||
|
if (!this.view) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const _bounds = this.win.getContentBounds();
|
||||||
|
_bounds.x = 0;
|
||||||
|
_bounds.y = 0;
|
||||||
|
this.view.setBounds(_bounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* create core module browserview with sidebar/navbar/toolbar
|
||||||
|
*/
|
||||||
|
create() {
|
||||||
|
const _bounds = this.win.getContentBounds();
|
||||||
|
_bounds.x = 0;
|
||||||
|
_bounds.y = 0;
|
||||||
|
this.view = new BrowserViewInstance({
|
||||||
|
bounds: _bounds,
|
||||||
|
partition: '<core-module>',
|
||||||
|
preloadPath: path.join(__dirname, '../../', 'platform', 'electron-browser', 'preload.js'),
|
||||||
|
viewPath:
|
||||||
|
processEnv === 'development'
|
||||||
|
? 'http://localhost:4201'
|
||||||
|
: `file://${path.join(__dirname, '../../', 'workbench', 'browser', 'dist', 'index.html')}`,
|
||||||
|
}).init(this.win);
|
||||||
|
|
||||||
|
this.view.webContents.once('dom-ready', () => {
|
||||||
|
require('@electron/remote/main').enable(this.view.webContents);
|
||||||
|
});
|
||||||
|
this.watch();
|
||||||
|
}
|
||||||
|
watch() {
|
||||||
|
ipcMain.on('message', this.triggleEvent);
|
||||||
|
}
|
||||||
|
triggleEvent(event, arg) {
|
||||||
|
console.log(`core view ${event.frameId}: recieve render msg=>`, arg, arg.action);
|
||||||
|
if (event.frameId !== 1) return;
|
||||||
|
switch (arg.action) {
|
||||||
|
case 'connect-dropdown': {
|
||||||
|
this.win.setTopBrowserView((arg.data.action === 'show' ? subView.mainView : subView.appView).view);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'setBounds': {
|
||||||
|
//sidebar shrink or expand
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除视图
|
||||||
|
* @param view
|
||||||
|
* @param window
|
||||||
|
*/
|
||||||
|
remove() {
|
||||||
|
if(!this.view) return;
|
||||||
|
this.win.removeBrowserView(this.view);
|
||||||
|
this.view.webContents.closeDevTools();
|
||||||
|
ipcMain.removeListener('message', this.triggleEvent);
|
||||||
|
this.view = undefined;
|
||||||
|
}
|
||||||
|
}
|
233
app/electron-main/main.ts
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
import { app, BrowserWindow, ipcMain, screen } from 'electron';
|
||||||
|
import { EoUpdater } from './updater';
|
||||||
|
import * as path from 'path';
|
||||||
|
import * as os from 'os';
|
||||||
|
import ModuleManager from '../../platform/node/extension-manager/lib/manager';
|
||||||
|
import { ModuleManagerInterface } from '../../platform/node/extension-manager';
|
||||||
|
import { StorageHandleStatus, StorageProcessType } from '../../platform/browser/IndexedDB';
|
||||||
|
import { AppViews } from './appView';
|
||||||
|
import { CoreViews } from './coreView';
|
||||||
|
import { processEnv } from '../../platform/node/constant';
|
||||||
|
import { proxyOpenExternal } from '../../shared/common/browserView';
|
||||||
|
import { deleteFile, readJson } from '../../shared/node/file';
|
||||||
|
import { STORAGE_TEMP as storageTemp } from '../../shared/common/constant';
|
||||||
|
let win: BrowserWindow = null;
|
||||||
|
export const subView = {
|
||||||
|
appView: null,
|
||||||
|
mainView: null,
|
||||||
|
};
|
||||||
|
const eoUpdater = new EoUpdater();
|
||||||
|
const moduleManager: ModuleManagerInterface = ModuleManager();
|
||||||
|
// Remote
|
||||||
|
const mainRemote = require('@electron/remote/main');
|
||||||
|
mainRemote.initialize();
|
||||||
|
global.shareObject = {
|
||||||
|
storageResult: null
|
||||||
|
};
|
||||||
|
|
||||||
|
function createWindow(): BrowserWindow {
|
||||||
|
const electronScreen = screen;
|
||||||
|
const size = electronScreen.getPrimaryDisplay().workAreaSize;
|
||||||
|
// Create the browser window.
|
||||||
|
win = new BrowserWindow({
|
||||||
|
width: Math.round(size.width * 0.8),
|
||||||
|
height: Math.round(size.height * 0.8),
|
||||||
|
useContentSize: true, // 这个要设置,不然计算显示区域尺寸不准
|
||||||
|
frame: os.type() === 'Darwin' ? true : false, //mac use default frame
|
||||||
|
webPreferences: {
|
||||||
|
nodeIntegration: true,
|
||||||
|
allowRunningInsecureContent: processEnv === 'serve' ? true : false,
|
||||||
|
contextIsolation: false, // false if you want to run e2e test with Spectron
|
||||||
|
},
|
||||||
|
});
|
||||||
|
if (processEnv === 'serve') {
|
||||||
|
require('electron-reload')(__dirname, {
|
||||||
|
electron: require(path.join(__dirname, '/../node_modules/electron')),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
proxyOpenExternal(win);
|
||||||
|
let loadPage = () => {
|
||||||
|
const file: string = `file://${path.join(__dirname, '../browser', 'index.html')}`;
|
||||||
|
win.loadURL(file);
|
||||||
|
win.webContents.openDevTools({
|
||||||
|
mode:"undocked"
|
||||||
|
});
|
||||||
|
};
|
||||||
|
win.webContents.on('did-fail-load', () => {
|
||||||
|
loadPage();
|
||||||
|
});
|
||||||
|
win.webContents.on('did-finish-load', () => {
|
||||||
|
mainRemote.enable(win.webContents);
|
||||||
|
//remove origin view
|
||||||
|
for (var i in subView) {
|
||||||
|
if (!subView[i]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
subView[i].remove();
|
||||||
|
}
|
||||||
|
subView.appView = new AppViews(win);
|
||||||
|
subView.mainView = new CoreViews(win);
|
||||||
|
subView.mainView.create();
|
||||||
|
subView.appView.create('default');
|
||||||
|
});
|
||||||
|
loadPage();
|
||||||
|
|
||||||
|
// Emitted when the window is closed.
|
||||||
|
win.on('closed', () => {
|
||||||
|
// Dereference the window object, usually you would store window
|
||||||
|
// in an array if your app supports multi windows, this is the time
|
||||||
|
// when you should delete the corresponding element.
|
||||||
|
win = null;
|
||||||
|
});
|
||||||
|
|
||||||
|
// resize 监听,改变bounds
|
||||||
|
win.on('resize', () => resize());
|
||||||
|
|
||||||
|
return win;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置View的Bounds
|
||||||
|
*/
|
||||||
|
function resize(sideWidth?: number) {
|
||||||
|
for (var i in subView) {
|
||||||
|
if (!subView[i]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
subView[i].rebuildBounds(sideWidth);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// This method will be called when Electron has finished
|
||||||
|
// initialization and is ready to create browser windows.
|
||||||
|
// Some APIs can only be used after this event occurs.
|
||||||
|
// Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947
|
||||||
|
app.on('ready', () => {
|
||||||
|
setTimeout(createWindow, 400);
|
||||||
|
eoUpdater.check();
|
||||||
|
});
|
||||||
|
//!TODO only api manage app need this
|
||||||
|
// setupUnit(subView.appView);
|
||||||
|
|
||||||
|
// Quit when all windows are closed.
|
||||||
|
app.on('window-all-closed', () => {
|
||||||
|
// On OS X it is common for applications and their menu bar
|
||||||
|
// to stay active until the user quits explicitly with Cmd + Q
|
||||||
|
if (process.platform !== 'darwin') {
|
||||||
|
app.quit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
app.on('activate', () => {
|
||||||
|
// On OS X it's common to re-create a window in the app when the
|
||||||
|
// dock icon is clicked and there are no other windows open.
|
||||||
|
if (win === null) {
|
||||||
|
createWindow();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ipcMain.on('message', function (event, arg) {
|
||||||
|
console.log('recieve render msg=>', arg, arg.action);
|
||||||
|
//only action from mainView can be executed
|
||||||
|
if (event.frameId !== 1) return;
|
||||||
|
switch (arg.action) {
|
||||||
|
case 'minimize': {
|
||||||
|
win.minimize();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'restore': {
|
||||||
|
win.restore();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'maximize': {
|
||||||
|
win.maximize();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'close': {
|
||||||
|
win.close();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
ipcMain.on('eo-storage', (event, args) => {
|
||||||
|
let returnValue: any;
|
||||||
|
if (args.type === StorageProcessType.default || args.type === StorageProcessType.remote) {
|
||||||
|
win.webContents.send('eo-storage', args);
|
||||||
|
returnValue = null;
|
||||||
|
} else if (args.type === StorageProcessType.sync) {
|
||||||
|
deleteFile(storageTemp);
|
||||||
|
win.webContents.send('eo-storage', args);
|
||||||
|
let data = readJson(storageTemp);
|
||||||
|
let count: number = 0;
|
||||||
|
while (data === null) {
|
||||||
|
if (count > 1500) {
|
||||||
|
data = {
|
||||||
|
status: StorageHandleStatus.error,
|
||||||
|
data: 'storage sync load error'
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
data = readJson(storageTemp);
|
||||||
|
++count;
|
||||||
|
}
|
||||||
|
deleteFile(storageTemp);
|
||||||
|
returnValue = data;
|
||||||
|
} else if (args.type === 'result') {
|
||||||
|
subView.appView.view.webContents.send('storageCallback', args.result);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 这里可以封装成类+方法匹配调用,不用多个if else
|
||||||
|
ipcMain.on('eo-sync', async (event, arg) => {
|
||||||
|
let returnValue: any;
|
||||||
|
if (arg.action === 'getApiAccessRules') {
|
||||||
|
// 后期加入权限生成,根据moduleID,上层moduleID,应用范围等
|
||||||
|
// 或者是像Android, 跳出权限列表让用户自己选择确认放开的权限。
|
||||||
|
const output: string[] = ['getModules', 'getAppModuleList', 'getSlideModuleList', 'hook'];
|
||||||
|
returnValue = output;
|
||||||
|
} else if (arg.action === 'getModules') {
|
||||||
|
returnValue = moduleManager.getModules(true);
|
||||||
|
} else if (arg.action === 'getAppModuleList') {
|
||||||
|
returnValue = moduleManager.getAppModuleList();
|
||||||
|
} else if (arg.action === 'installModule') {
|
||||||
|
const data = await moduleManager.install(arg.data);
|
||||||
|
if (data.code === 0) {
|
||||||
|
subView.mainView.view.webContents.send('moduleUpdate');
|
||||||
|
}
|
||||||
|
returnValue = Object.assign(data, { modules: moduleManager.getModules() });
|
||||||
|
} else if (arg.action === 'uninstallModule') {
|
||||||
|
const data = await moduleManager.uninstall(arg.data);
|
||||||
|
if (data.code === 0) {
|
||||||
|
subView.mainView.view.webContents.send('moduleUpdate');
|
||||||
|
}
|
||||||
|
returnValue = Object.assign(data, { modules: moduleManager.getModules() });
|
||||||
|
} else if (arg.action === 'getSideModuleList') {
|
||||||
|
returnValue = moduleManager.getSideModuleList(subView.appView.mainModuleID);
|
||||||
|
} else if (arg.action === 'getSidePosition') {
|
||||||
|
returnValue = subView.appView.sidePosition;
|
||||||
|
} else if (arg.action === 'hook') {
|
||||||
|
returnValue = 'hook返回';
|
||||||
|
} else if (arg.action === 'openApp') {
|
||||||
|
if (arg.data.moduleID) {
|
||||||
|
// 如果要打开是同一app,忽略
|
||||||
|
if (subView.appView.moduleID === arg.data.moduleID) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// subView.appView = new AppViews(win);
|
||||||
|
subView.appView.create(arg.data.moduleID);
|
||||||
|
}
|
||||||
|
returnValue = 'view id';
|
||||||
|
} else if (arg.action === 'autoResize') {
|
||||||
|
resize(arg.data.sideWidth);
|
||||||
|
} else if (arg.action === 'openModal') {
|
||||||
|
console.log('openModal');
|
||||||
|
subView.mainView.view.webContents.send('connect-main', { action: 'openModal' });
|
||||||
|
} else {
|
||||||
|
returnValue = 'Invalid data';
|
||||||
|
}
|
||||||
|
event.returnValue = returnValue;
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
// Catch Error
|
||||||
|
// throw e;
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import { autoUpdater } from 'electron-updater';
|
import { autoUpdater } from 'electron-updater';
|
||||||
import log from 'electron-log';
|
import log from 'electron-log';
|
||||||
const appVersion = require('./package.json').version;
|
const appVersion = require('../../package.json').version;
|
||||||
|
|
||||||
export class EoUpdater {
|
export class EoUpdater {
|
||||||
constructor() {
|
constructor() {
|
142
app/main.ts
@ -1,142 +0,0 @@
|
|||||||
import { app, BrowserWindow, screen, ipcMain, shell } from 'electron';
|
|
||||||
import { EoUpdater } from './updater';
|
|
||||||
import * as path from 'path';
|
|
||||||
import * as fs from 'fs';
|
|
||||||
import * as os from 'os';
|
|
||||||
import * as url from 'url';
|
|
||||||
import { UnitWorker } from './unitWorker';
|
|
||||||
|
|
||||||
let win: BrowserWindow = null;
|
|
||||||
const args = process.argv.slice(1),
|
|
||||||
eoUpdater = new EoUpdater(),
|
|
||||||
workerLoop = {},
|
|
||||||
serve = args.some((val) => val === '--serve');
|
|
||||||
function createWindow(): BrowserWindow {
|
|
||||||
const electronScreen = screen;
|
|
||||||
const size = electronScreen.getPrimaryDisplay().workAreaSize;
|
|
||||||
|
|
||||||
// Create the browser window.
|
|
||||||
win = new BrowserWindow({
|
|
||||||
width: size.width * 0.8,
|
|
||||||
height: size.height * 0.8,
|
|
||||||
frame: os.type() === 'Darwin' ? true : false, //mac use default frame
|
|
||||||
webPreferences: {
|
|
||||||
nodeIntegration: true,
|
|
||||||
allowRunningInsecureContent: serve ? true : false,
|
|
||||||
contextIsolation: false, // false if you want to run e2e test with Spectron
|
|
||||||
},
|
|
||||||
});
|
|
||||||
//open link through default browser not electron
|
|
||||||
win.webContents.setWindowOpenHandler(({ url }) => {
|
|
||||||
setImmediate(() => {
|
|
||||||
shell.openExternal(url);
|
|
||||||
});
|
|
||||||
return { action: 'deny' };
|
|
||||||
});
|
|
||||||
if (serve) {
|
|
||||||
win.webContents.openDevTools();
|
|
||||||
require('electron-reload')(__dirname, {
|
|
||||||
electron: require(path.join(__dirname, '/../node_modules/electron')),
|
|
||||||
});
|
|
||||||
win.loadURL('http://localhost:4200');
|
|
||||||
} else {
|
|
||||||
// Path when running electron executable
|
|
||||||
let pathIndex = './index.html';
|
|
||||||
['dist', 'app'].some((pathName) => {
|
|
||||||
let htmlPath = `../${pathName}/index.html`;
|
|
||||||
if (fs.existsSync(path.join(__dirname, htmlPath))) {
|
|
||||||
// Path when running electron in local folder
|
|
||||||
pathIndex = htmlPath;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
let loadPage = () => {
|
|
||||||
win.loadURL(
|
|
||||||
url.format({
|
|
||||||
pathname: path.join(__dirname, pathIndex),
|
|
||||||
protocol: 'file:',
|
|
||||||
slashes: true,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
};
|
|
||||||
win.webContents.on('did-fail-load', () => {
|
|
||||||
loadPage();
|
|
||||||
});
|
|
||||||
loadPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Emitted when the window is closed.
|
|
||||||
win.on('closed', () => {
|
|
||||||
// Dereference the window object, usually you would store window
|
|
||||||
// in an array if your app supports multi windows, this is the time
|
|
||||||
// when you should delete the corresponding element.
|
|
||||||
win = null;
|
|
||||||
});
|
|
||||||
|
|
||||||
return win;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
// This method will be called when Electron has finished
|
|
||||||
// initialization and is ready to create browser windows.
|
|
||||||
// Some APIs can only be used after this event occurs.
|
|
||||||
// Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947
|
|
||||||
app.on('ready', () => {
|
|
||||||
setTimeout(createWindow, 400);
|
|
||||||
eoUpdater.check();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Quit when all windows are closed.
|
|
||||||
app.on('window-all-closed', () => {
|
|
||||||
// On OS X it is common for applications and their menu bar
|
|
||||||
// to stay active until the user quits explicitly with Cmd + Q
|
|
||||||
if (process.platform !== 'darwin') {
|
|
||||||
app.quit();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
app.on('activate', () => {
|
|
||||||
// On OS X it's common to re-create a window in the app when the
|
|
||||||
// dock icon is clicked and there are no other windows open.
|
|
||||||
if (win === null) {
|
|
||||||
createWindow();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
ipcMain.on('message', function (event, arg) {
|
|
||||||
console.log('recieve render msg=>', arg, arg.action);
|
|
||||||
switch (arg.action) {
|
|
||||||
case 'minimize': {
|
|
||||||
win.minimize();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'restore': {
|
|
||||||
win.restore();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'maximize': {
|
|
||||||
win.maximize();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'close': {
|
|
||||||
win.close();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
ipcMain.on('unitTest', function (event, message) {
|
|
||||||
let id = message.id;
|
|
||||||
switch (message.action) {
|
|
||||||
case 'ajax': {
|
|
||||||
workerLoop[id] = new UnitWorker(win);
|
|
||||||
workerLoop[id].start(message);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'abort': {
|
|
||||||
workerLoop[id].kill();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} catch (e) {
|
|
||||||
// Catch Error
|
|
||||||
// throw e;
|
|
||||||
}
|
|
906
app/package-lock.json
generated
@ -1,906 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "eoapi",
|
|
||||||
"version": "0.0.1-beta",
|
|
||||||
"lockfileVersion": 1,
|
|
||||||
"requires": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@electron/get": {
|
|
||||||
"version": "1.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@electron/get/-/get-1.13.1.tgz",
|
|
||||||
"integrity": "sha512-U5vkXDZ9DwXtkPqlB45tfYnnYBN8PePp1z/XDCupnSpdrxT8/ThCv9WCwPLf9oqiSGZTkH6dx2jDUPuoXpjkcA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"debug": "^4.1.1",
|
|
||||||
"env-paths": "^2.2.0",
|
|
||||||
"fs-extra": "^8.1.0",
|
|
||||||
"global-agent": "^3.0.0",
|
|
||||||
"global-tunnel-ng": "^2.7.1",
|
|
||||||
"got": "^9.6.0",
|
|
||||||
"progress": "^2.0.3",
|
|
||||||
"semver": "^6.2.0",
|
|
||||||
"sumchecker": "^3.0.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"fs-extra": {
|
|
||||||
"version": "8.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
|
|
||||||
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"graceful-fs": "^4.2.0",
|
|
||||||
"jsonfile": "^4.0.0",
|
|
||||||
"universalify": "^0.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"jsonfile": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
|
|
||||||
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"graceful-fs": "^4.1.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"semver": {
|
|
||||||
"version": "6.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
|
||||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"universalify": {
|
|
||||||
"version": "0.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
|
||||||
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@sindresorhus/is": {
|
|
||||||
"version": "0.14.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",
|
|
||||||
"integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"@szmarczak/http-timer": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"defer-to-connect": "^1.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@types/node": {
|
|
||||||
"version": "14.18.12",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.12.tgz",
|
|
||||||
"integrity": "sha512-q4jlIR71hUpWTnGhXWcakgkZeHa3CCjcQcnuzU8M891BAWA2jHiziiWEPEkdS5pFsz7H9HJiy8BrK7tBRNrY7A==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"@types/semver": {
|
|
||||||
"version": "7.3.9",
|
|
||||||
"resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.3.9.tgz",
|
|
||||||
"integrity": "sha512-L/TMpyURfBkf+o/526Zb6kd/tchUP3iBDEPjqjb+U2MAJhVRxxrmr2fwpe08E7QsV7YLcpq0tUaQ9O9x97ZIxQ=="
|
|
||||||
},
|
|
||||||
"argparse": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
|
|
||||||
},
|
|
||||||
"asynckit": {
|
|
||||||
"version": "0.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
|
||||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
|
||||||
},
|
|
||||||
"boolean": {
|
|
||||||
"version": "3.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",
|
|
||||||
"integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"buffer-crc32": {
|
|
||||||
"version": "0.2.13",
|
|
||||||
"resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
|
|
||||||
"integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"buffer-from": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"builder-util-runtime": {
|
|
||||||
"version": "8.9.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/builder-util-runtime/-/builder-util-runtime-8.9.2.tgz",
|
|
||||||
"integrity": "sha512-rhuKm5vh7E0aAmT6i8aoSfEjxzdYEFX7zDApK+eNgOhjofnWb74d9SRJv0H/8nsgOkos0TZ4zxW0P8J4N7xQ2A==",
|
|
||||||
"requires": {
|
|
||||||
"debug": "^4.3.2",
|
|
||||||
"sax": "^1.2.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cacheable-request": {
|
|
||||||
"version": "6.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz",
|
|
||||||
"integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"clone-response": "^1.0.2",
|
|
||||||
"get-stream": "^5.1.0",
|
|
||||||
"http-cache-semantics": "^4.0.0",
|
|
||||||
"keyv": "^3.0.0",
|
|
||||||
"lowercase-keys": "^2.0.0",
|
|
||||||
"normalize-url": "^4.1.0",
|
|
||||||
"responselike": "^1.0.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"get-stream": {
|
|
||||||
"version": "5.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
|
|
||||||
"integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"pump": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lowercase-keys": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"clone-response": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"mimic-response": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"combined-stream": {
|
|
||||||
"version": "1.0.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
|
||||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
|
||||||
"requires": {
|
|
||||||
"delayed-stream": "~1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"concat-stream": {
|
|
||||||
"version": "1.6.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
|
|
||||||
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"buffer-from": "^1.0.0",
|
|
||||||
"inherits": "^2.0.3",
|
|
||||||
"readable-stream": "^2.2.2",
|
|
||||||
"typedarray": "^0.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config-chain": {
|
|
||||||
"version": "1.1.13",
|
|
||||||
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",
|
|
||||||
"integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"ini": "^1.3.4",
|
|
||||||
"proto-list": "~1.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"content-disposition": {
|
|
||||||
"version": "0.5.4",
|
|
||||||
"resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz",
|
|
||||||
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
|
||||||
"requires": {
|
|
||||||
"safe-buffer": "5.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"core-util-is": {
|
|
||||||
"version": "1.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
|
|
||||||
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"crypto-js": {
|
|
||||||
"version": "4.1.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
|
|
||||||
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"version": "4.3.3",
|
|
||||||
"resolved": "https://registry.npmmirror.com/debug/download/debug-4.3.3.tgz",
|
|
||||||
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
|
|
||||||
"requires": {
|
|
||||||
"ms": "2.1.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"decompress-response": {
|
|
||||||
"version": "3.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
|
|
||||||
"integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"mimic-response": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defer-to-connect": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"define-properties": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"object-keys": "^1.0.12"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"delayed-stream": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
|
||||||
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
|
|
||||||
},
|
|
||||||
"detect-node": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"duplexer3": {
|
|
||||||
"version": "0.1.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
|
|
||||||
"integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"electron": {
|
|
||||||
"version": "17.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/electron/-/electron-17.1.2.tgz",
|
|
||||||
"integrity": "sha512-hqKQaUIRWX5Y2eAD8FZINWD/e5TKdpkbBYbkcZmJS4Bd1PKQsaDVc9h5xoA8zZQkPymE9rss+swjRpAFurOPGQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@electron/get": "^1.13.0",
|
|
||||||
"@types/node": "^14.6.2",
|
|
||||||
"extract-zip": "^1.0.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"electron-log": {
|
|
||||||
"version": "4.4.6",
|
|
||||||
"resolved": "https://registry.npmmirror.com/electron-log/-/electron-log-4.4.6.tgz",
|
|
||||||
"integrity": "sha512-nirYgRdY+F+vclr8ijdwy2vW03IzFpDHTaKNWu76dEN21Y76+smcES5knS7cgHUUB0qNLOi8vZO36taakjbSXA=="
|
|
||||||
},
|
|
||||||
"electron-updater": {
|
|
||||||
"version": "4.6.5",
|
|
||||||
"resolved": "https://registry.npmmirror.com/electron-updater/-/electron-updater-4.6.5.tgz",
|
|
||||||
"integrity": "sha512-kdTly8O9mSZfm9fslc1mnCY+mYOeaYRy7ERa2Fed240u01BKll3aiupzkd07qKw69KvhBSzuHroIW3mF0D8DWA==",
|
|
||||||
"requires": {
|
|
||||||
"@types/semver": "^7.3.6",
|
|
||||||
"builder-util-runtime": "8.9.2",
|
|
||||||
"fs-extra": "^10.0.0",
|
|
||||||
"js-yaml": "^4.1.0",
|
|
||||||
"lazy-val": "^1.0.5",
|
|
||||||
"lodash.escaperegexp": "^4.1.2",
|
|
||||||
"lodash.isequal": "^4.5.0",
|
|
||||||
"semver": "^7.3.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"encodeurl": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"end-of-stream": {
|
|
||||||
"version": "1.4.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
|
|
||||||
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"once": "^1.4.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"env-paths": {
|
|
||||||
"version": "2.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
|
|
||||||
"integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"es6-error": {
|
|
||||||
"version": "4.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
|
|
||||||
"integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"escape-string-regexp": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"extract-zip": {
|
|
||||||
"version": "1.7.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",
|
|
||||||
"integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"concat-stream": "^1.6.2",
|
|
||||||
"debug": "^2.6.9",
|
|
||||||
"mkdirp": "^0.5.4",
|
|
||||||
"yauzl": "^2.10.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"debug": {
|
|
||||||
"version": "2.6.9",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
|
||||||
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ms": "2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ms": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
|
||||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fd-slicer": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
|
|
||||||
"integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"pend": "~1.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"form-data": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
|
||||||
"requires": {
|
|
||||||
"asynckit": "^0.4.0",
|
|
||||||
"combined-stream": "^1.0.8",
|
|
||||||
"mime-types": "^2.1.12"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fs-extra": {
|
|
||||||
"version": "10.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-10.0.0.tgz",
|
|
||||||
"integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",
|
|
||||||
"requires": {
|
|
||||||
"graceful-fs": "^4.2.0",
|
|
||||||
"jsonfile": "^6.0.1",
|
|
||||||
"universalify": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"get-stream": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"pump": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"global-agent": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"boolean": "^3.0.1",
|
|
||||||
"es6-error": "^4.1.1",
|
|
||||||
"matcher": "^3.0.0",
|
|
||||||
"roarr": "^2.15.3",
|
|
||||||
"semver": "^7.3.2",
|
|
||||||
"serialize-error": "^7.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"global-tunnel-ng": {
|
|
||||||
"version": "2.7.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz",
|
|
||||||
"integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"encodeurl": "^1.0.2",
|
|
||||||
"lodash": "^4.17.10",
|
|
||||||
"npm-conf": "^1.1.3",
|
|
||||||
"tunnel": "^0.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"globalthis": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"define-properties": "^1.1.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"got": {
|
|
||||||
"version": "9.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
|
|
||||||
"integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@sindresorhus/is": "^0.14.0",
|
|
||||||
"@szmarczak/http-timer": "^1.1.2",
|
|
||||||
"cacheable-request": "^6.0.0",
|
|
||||||
"decompress-response": "^3.3.0",
|
|
||||||
"duplexer3": "^0.1.4",
|
|
||||||
"get-stream": "^4.1.0",
|
|
||||||
"lowercase-keys": "^1.0.1",
|
|
||||||
"mimic-response": "^1.0.1",
|
|
||||||
"p-cancelable": "^1.0.0",
|
|
||||||
"to-readable-stream": "^1.0.0",
|
|
||||||
"url-parse-lax": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"graceful-fs": {
|
|
||||||
"version": "4.2.9",
|
|
||||||
"resolved": "https://registry.npmmirror.com/graceful-fs/download/graceful-fs-4.2.9.tgz",
|
|
||||||
"integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ=="
|
|
||||||
},
|
|
||||||
"http-cache-semantics": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"iconv-lite": {
|
|
||||||
"version": "0.6.3",
|
|
||||||
"resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
|
||||||
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
|
||||||
"requires": {
|
|
||||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inherits": {
|
|
||||||
"version": "2.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
|
||||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"ini": {
|
|
||||||
"version": "1.3.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
|
|
||||||
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"isarray": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
|
||||||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"js-yaml": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
|
||||||
"requires": {
|
|
||||||
"argparse": "^2.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"json-buffer": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
|
|
||||||
"integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"json-stringify-safe": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
|
|
||||||
"integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"jsonfile": {
|
|
||||||
"version": "6.1.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.1.0.tgz",
|
|
||||||
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
|
||||||
"requires": {
|
|
||||||
"graceful-fs": "^4.1.6",
|
|
||||||
"universalify": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"keyv": {
|
|
||||||
"version": "3.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
|
|
||||||
"integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"json-buffer": "3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lazy-val": {
|
|
||||||
"version": "1.0.5",
|
|
||||||
"resolved": "https://registry.npmmirror.com/lazy-val/-/lazy-val-1.0.5.tgz",
|
|
||||||
"integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q=="
|
|
||||||
},
|
|
||||||
"lodash": {
|
|
||||||
"version": "4.17.21",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"lodash.escaperegexp": {
|
|
||||||
"version": "4.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz",
|
|
||||||
"integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw=="
|
|
||||||
},
|
|
||||||
"lodash.isequal": {
|
|
||||||
"version": "4.5.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
|
|
||||||
"integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="
|
|
||||||
},
|
|
||||||
"lowercase-keys": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"lru-cache": {
|
|
||||||
"version": "6.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
|
|
||||||
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
|
||||||
"requires": {
|
|
||||||
"yallist": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"matcher": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"escape-string-regexp": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mime-db": {
|
|
||||||
"version": "1.51.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz",
|
|
||||||
"integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g=="
|
|
||||||
},
|
|
||||||
"mime-types": {
|
|
||||||
"version": "2.1.34",
|
|
||||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz",
|
|
||||||
"integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",
|
|
||||||
"requires": {
|
|
||||||
"mime-db": "1.51.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mimic-response": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"minimist": {
|
|
||||||
"version": "1.2.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
|
||||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"mkdirp": {
|
|
||||||
"version": "0.5.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
|
|
||||||
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"minimist": "^1.2.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ms": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
|
||||||
},
|
|
||||||
"normalize-url": {
|
|
||||||
"version": "4.5.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz",
|
|
||||||
"integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"npm-conf": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"config-chain": "^1.1.11",
|
|
||||||
"pify": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"object-keys": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"once": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
||||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"wrappy": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"p-cancelable": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"pend": {
|
|
||||||
"version": "1.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
|
|
||||||
"integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"pify": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
|
|
||||||
"integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"prepend-http": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
|
|
||||||
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"process-nextick-args": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"progress": {
|
|
||||||
"version": "2.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
|
|
||||||
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"proto-list": {
|
|
||||||
"version": "1.2.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
|
|
||||||
"integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"pump": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"end-of-stream": "^1.1.0",
|
|
||||||
"once": "^1.3.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"readable-stream": {
|
|
||||||
"version": "2.3.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
|
||||||
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"core-util-is": "~1.0.0",
|
|
||||||
"inherits": "~2.0.3",
|
|
||||||
"isarray": "~1.0.0",
|
|
||||||
"process-nextick-args": "~2.0.0",
|
|
||||||
"safe-buffer": "~5.1.1",
|
|
||||||
"string_decoder": "~1.1.1",
|
|
||||||
"util-deprecate": "~1.0.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"responselike": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"lowercase-keys": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"roarr": {
|
|
||||||
"version": "2.15.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",
|
|
||||||
"integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"boolean": "^3.0.1",
|
|
||||||
"detect-node": "^2.0.4",
|
|
||||||
"globalthis": "^1.0.1",
|
|
||||||
"json-stringify-safe": "^5.0.1",
|
|
||||||
"semver-compare": "^1.0.0",
|
|
||||||
"sprintf-js": "^1.1.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.2.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
|
||||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
|
||||||
},
|
|
||||||
"safer-buffer": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
|
||||||
},
|
|
||||||
"sax": {
|
|
||||||
"version": "1.2.4",
|
|
||||||
"resolved": "https://registry.npmmirror.com/sax/-/sax-1.2.4.tgz",
|
|
||||||
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
|
|
||||||
},
|
|
||||||
"semver": {
|
|
||||||
"version": "7.3.5",
|
|
||||||
"resolved": "https://registry.npmmirror.com/semver/-/semver-7.3.5.tgz",
|
|
||||||
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
|
||||||
"requires": {
|
|
||||||
"lru-cache": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"semver-compare": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",
|
|
||||||
"integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"serialize-error": {
|
|
||||||
"version": "7.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",
|
|
||||||
"integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"type-fest": "^0.13.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sprintf-js": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"string_decoder": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"safe-buffer": "~5.1.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sumchecker": {
|
|
||||||
"version": "3.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",
|
|
||||||
"integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"debug": "^4.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to-readable-stream": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"tunnel": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
|
||||||
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"type-fest": {
|
|
||||||
"version": "0.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
|
|
||||||
"integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"typedarray": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
|
||||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"universalify": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/universalify/-/universalify-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ=="
|
|
||||||
},
|
|
||||||
"url-parse-lax": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
|
|
||||||
"integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"prepend-http": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"util-deprecate": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"wrappy": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"xml2js": {
|
|
||||||
"version": "0.4.23",
|
|
||||||
"resolved": "https://registry.npmmirror.com/xml2js/-/xml2js-0.4.23.tgz",
|
|
||||||
"integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==",
|
|
||||||
"requires": {
|
|
||||||
"sax": ">=0.6.0",
|
|
||||||
"xmlbuilder": "~11.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xmlbuilder": {
|
|
||||||
"version": "11.0.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
|
|
||||||
"integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="
|
|
||||||
},
|
|
||||||
"yallist": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
|
||||||
},
|
|
||||||
"yauzl": {
|
|
||||||
"version": "2.10.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
|
|
||||||
"integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"buffer-crc32": "~0.2.3",
|
|
||||||
"fd-slicer": "~1.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "eoapi",
|
|
||||||
"version": "0.0.1-beta",
|
|
||||||
"main": "main.js",
|
|
||||||
"private": true,
|
|
||||||
"scripts": {
|
|
||||||
"postinstall": "electron-builder install-app-deps"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"crypto-js": "^4.1.1",
|
|
||||||
"form-data": "^4.0.0",
|
|
||||||
"iconv-lite": "^0.6.3",
|
|
||||||
"xml2js": "^0.4.23",
|
|
||||||
"content-disposition": "^0.5.4",
|
|
||||||
"electron-log": "^4.4.6",
|
|
||||||
"electron-updater": "^4.6.5"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"electron": "17.1.2"
|
|
||||||
},
|
|
||||||
"__npminstall_done": false
|
|
||||||
}
|
|
8
app/typings.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/* SystemJS module definition */
|
||||||
|
interface Window {
|
||||||
|
process: any;
|
||||||
|
requirejs:any;
|
||||||
|
require: any;
|
||||||
|
angular:any;
|
||||||
|
eo: any;
|
||||||
|
}
|
@ -1,32 +0,0 @@
|
|||||||
import * as child_process from 'child_process';
|
|
||||||
import { BrowserWindow, ipcMain } from 'electron';
|
|
||||||
export class UnitWorker {
|
|
||||||
instance: child_process.ChildProcess;
|
|
||||||
win: BrowserWindow;
|
|
||||||
constructor(win) {
|
|
||||||
this.win = win;
|
|
||||||
}
|
|
||||||
start(message) {
|
|
||||||
this.instance = child_process.fork(`${__dirname}/request/main.js`);
|
|
||||||
this.watch();
|
|
||||||
this.instance.send(message);
|
|
||||||
}
|
|
||||||
finish(message) {
|
|
||||||
this.win.webContents.send('unitTest', message);
|
|
||||||
this.kill();
|
|
||||||
}
|
|
||||||
kill() {
|
|
||||||
this.instance.kill();
|
|
||||||
}
|
|
||||||
private watch() {
|
|
||||||
this.instance.on('message', (message: any) => {
|
|
||||||
switch (message.action) {
|
|
||||||
case 'finish': {
|
|
||||||
this.finish(message.data);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
13
core/api-manager/browser/.editorconfig
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Editor configuration, see http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off
|
||||||
|
trim_trailing_whitespace = false
|
50
core/api-manager/browser/.eslintrc.json
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"ignorePatterns": [
|
||||||
|
"dist/**/*",
|
||||||
|
"release/**/*"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.ts"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"project": [
|
||||||
|
"./tsconfig.serve.json",
|
||||||
|
"./src/tsconfig.app.json",
|
||||||
|
"./src/tsconfig.spec.json",
|
||||||
|
"./e2e/tsconfig.e2e.json"
|
||||||
|
],
|
||||||
|
"createDefaultProgram": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:@angular-eslint/ng-cli-compat",
|
||||||
|
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
||||||
|
"plugin:@angular-eslint/template/process-inline-templates"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"prefer-arrow/prefer-arrow-functions": 0,
|
||||||
|
"@angular-eslint/directive-selector": 0,
|
||||||
|
"@angular-eslint/component-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"type": "element",
|
||||||
|
"prefix": "eo",
|
||||||
|
"style": "kebab-case"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.html"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"plugin:@angular-eslint/template/recommended"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
53
core/api-manager/browser/.gitignore
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
dist/
|
||||||
|
/tmp
|
||||||
|
/out-tsc
|
||||||
|
/app-builds
|
||||||
|
/release
|
||||||
|
src/**/*.js
|
||||||
|
!src/karma.conf.js
|
||||||
|
!src/ng1/**/*.js
|
||||||
|
*.js.map
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
# IDEs and editors
|
||||||
|
.idea
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.c9/
|
||||||
|
*.launch
|
||||||
|
.settings/
|
||||||
|
*.sublime-workspace
|
||||||
|
|
||||||
|
# IDE - VSCode
|
||||||
|
.vscode/*
|
||||||
|
.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
|
||||||
|
# misc
|
||||||
|
.angular/
|
||||||
|
/.sass-cache
|
||||||
|
/connect.lock
|
||||||
|
/coverage
|
||||||
|
/libpeerconnection.log
|
||||||
|
npm-debug.log
|
||||||
|
testem.log
|
||||||
|
/typings
|
||||||
|
|
||||||
|
# e2e
|
||||||
|
/e2e/test
|
||||||
|
!/e2e/protractor.conf.js
|
||||||
|
/e2e/*.map
|
||||||
|
/e2e/tracing
|
||||||
|
/e2e/screenshots
|
||||||
|
|
||||||
|
# System Files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
# *-lock.json
|
28
core/api-manager/browser/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Renderer",
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "attach",
|
||||||
|
"port": 9876,
|
||||||
|
"url": "http://localhost:4200",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"timeout": 10000,
|
||||||
|
"trace": "verbose",
|
||||||
|
"sourceMapPathOverrides": {
|
||||||
|
"webpack:///./*": "${workspaceFolder}/*"
|
||||||
|
},
|
||||||
|
"preLaunchTask": "Build.Renderer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compounds": [
|
||||||
|
{
|
||||||
|
"name": "Application Debug",
|
||||||
|
"configurations": ["Renderer"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
49
core/api-manager/browser/.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build.Main",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "npm run electron:serve-tsc",
|
||||||
|
"isBackground": false,
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"source": "ts",
|
||||||
|
"applyTo": "closedDocuments",
|
||||||
|
"fileLocation": ["relative", "${cwd}"],
|
||||||
|
"pattern": "$tsc",
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*",
|
||||||
|
"endsPattern": "^.*Terminal will be reused by tasks, press any key to close it.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build.Renderer",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "npm run ng:serve",
|
||||||
|
"isBackground": true,
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"source": "ts",
|
||||||
|
"applyTo": "closedDocuments",
|
||||||
|
"fileLocation": ["relative", "${cwd}"],
|
||||||
|
"pattern": "$tsc",
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*",
|
||||||
|
"endsPattern": "^.*Compiled successfully.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -28,4 +28,4 @@ module.exports = (config, options) => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
13122
core/api-manager/browser/package-lock.json
generated
Normal file
92
core/api-manager/browser/package.json
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
{
|
||||||
|
"name": "api-manager",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"private": true,
|
||||||
|
"description": "API Manager",
|
||||||
|
"homepage": "https://github.com/eolinker/eoapi.git",
|
||||||
|
"author": "eoapi",
|
||||||
|
"moduleID": "default",
|
||||||
|
"moduleName": "API Manager",
|
||||||
|
"moduleType": "app",
|
||||||
|
"logo": "dist/assets/images/icon.png",
|
||||||
|
"main": "dist/index.html",
|
||||||
|
"main_node": "../node/unitWorker.js",
|
||||||
|
"main_debug": "http://localhost:4200",
|
||||||
|
"scripts": {
|
||||||
|
"ng": "ng",
|
||||||
|
"start": "ng serve -c web",
|
||||||
|
"build": "ng build --base-href ./",
|
||||||
|
"build:dev": "npm run build -- -c dev",
|
||||||
|
"build:prod": "npm run build -- -c production",
|
||||||
|
"build:web": "ng build -c production",
|
||||||
|
"ng:serve": "ng serve -c web -o",
|
||||||
|
"ng:web": "ng serve -c webaot -o",
|
||||||
|
"test": "ng test --watch=false",
|
||||||
|
"test:watch": "ng test",
|
||||||
|
"e2e": "npm run build:prod && playwright test -c e2e/playwright.config.ts e2e/",
|
||||||
|
"e2e:web": "npx playwright test e2e/cases/",
|
||||||
|
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
|
||||||
|
"lint": "ng lint"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/animations": "13.2.6",
|
||||||
|
"@angular/common": "13.2.6",
|
||||||
|
"@angular/compiler": "13.2.6",
|
||||||
|
"@angular/core": "13.2.6",
|
||||||
|
"@angular/forms": "13.2.6",
|
||||||
|
"@angular/language-service": "13.2.6",
|
||||||
|
"@angular/platform-browser": "13.2.6",
|
||||||
|
"@angular/platform-browser-dynamic": "13.2.6",
|
||||||
|
"@angular/router": "13.2.6",
|
||||||
|
"@angular/upgrade": "^13.2.6",
|
||||||
|
"@ngxs/store": "3.7.3",
|
||||||
|
"angular": "1.8.2",
|
||||||
|
"js-beautify": "1.14.0",
|
||||||
|
"ng-zorro-antd": "13.1.1",
|
||||||
|
"ngx-ace-wrapper": "12.0.0",
|
||||||
|
"rxjs": "7.5.5",
|
||||||
|
"tslib": "^2.3.1",
|
||||||
|
"zone.js": "~0.11.5"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular-builders/custom-webpack": "13.1.0",
|
||||||
|
"@angular-devkit/build-angular": "13.2.6",
|
||||||
|
"@angular-eslint/builder": "13.1.0",
|
||||||
|
"@angular-eslint/eslint-plugin": "13.1.0",
|
||||||
|
"@angular-eslint/eslint-plugin-template": "13.1.0",
|
||||||
|
"@angular-eslint/schematics": "13.1.0",
|
||||||
|
"@angular-eslint/template-parser": "13.1.0",
|
||||||
|
"@angular/cli": "13.2.6",
|
||||||
|
"@angular/compiler-cli": "13.2.6",
|
||||||
|
"@ngx-translate/core": "14.0.0",
|
||||||
|
"@ngx-translate/http-loader": "7.0.0",
|
||||||
|
"@types/jasmine": "3.10.3",
|
||||||
|
"@types/jasminewd2": "2.0.10",
|
||||||
|
"@types/node": "17.0.21",
|
||||||
|
"@typescript-eslint/eslint-plugin": "5.14.0",
|
||||||
|
"@typescript-eslint/parser": "5.14.0",
|
||||||
|
"conventional-changelog-cli": "2.2.2",
|
||||||
|
"eslint": "8.10.0",
|
||||||
|
"eslint-plugin-import": "2.25.4",
|
||||||
|
"eslint-plugin-jsdoc": "37.9.7",
|
||||||
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||||
|
"jasmine-core": "4.0.1",
|
||||||
|
"jasmine-spec-reporter": "7.0.0",
|
||||||
|
"karma": "6.3.17",
|
||||||
|
"karma-coverage-istanbul-reporter": "3.0.3",
|
||||||
|
"karma-jasmine": "4.0.1",
|
||||||
|
"karma-jasmine-html-reporter": "1.7.0",
|
||||||
|
"lodash": "4.17.21",
|
||||||
|
"node-polyfill-webpack-plugin": "1.1.4",
|
||||||
|
"npm-run-all": "4.1.5",
|
||||||
|
"ts-node": "10.7.0",
|
||||||
|
"typescript": "~4.6.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14.17.0"
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"chrome 98"
|
||||||
|
],
|
||||||
|
"__npminstall_done": false
|
||||||
|
}
|
@ -6,22 +6,14 @@ import { HttpClientModule } from '@angular/common/http';
|
|||||||
|
|
||||||
//Other module
|
//Other module
|
||||||
import { CoreModule } from './core/core.module';
|
import { CoreModule } from './core/core.module';
|
||||||
import { StorageModule } from './modules/storage/storage.module';
|
|
||||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
||||||
import { NgxsModule } from '@ngxs/store';
|
import { NgxsModule } from '@ngxs/store';
|
||||||
|
|
||||||
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { EnvState } from './shared/store/env.state';
|
import { EnvState } from './shared/store/env.state';
|
||||||
|
|
||||||
// NG1 Upgrade
|
// NG1 Upgrade
|
||||||
import { UpgradeModule } from '@angular/upgrade/static';
|
import { UpgradeModule } from '@angular/upgrade/static';
|
||||||
|
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||||
//Storage Module
|
|
||||||
import { storageSettingData } from './shared/models/storageSetting.model';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent],
|
||||||
@ -29,13 +21,12 @@ import { storageSettingData } from './shared/models/storageSetting.model';
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
HttpClientModule,
|
|
||||||
CoreModule,
|
CoreModule,
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
|
HttpClientModule,
|
||||||
UpgradeModule,
|
UpgradeModule,
|
||||||
NzModalModule,
|
NzModalModule,
|
||||||
NgxsModule.forRoot([EnvState]),
|
NgxsModule.forRoot([EnvState]),
|
||||||
StorageModule.forRoot({ setting: storageSettingData })
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
@ -8,6 +8,7 @@ nz-content {
|
|||||||
|
|
||||||
nz-sider {
|
nz-sider {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -62,11 +63,11 @@ nz-sider {
|
|||||||
eo-api {
|
eo-api {
|
||||||
router-outlet + * {
|
router-outlet + * {
|
||||||
display: block;
|
display: block;
|
||||||
height: calc(100vh - var(--NAVBAR_HEIGHT) - var(--FOOTER_HEIGHT) - 45px);
|
height: calc(100vh - 45px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.has_tab_page router-outlet + * {
|
.has_tab_page router-outlet + * {
|
||||||
height: calc(100vh - var(--NAVBAR_HEIGHT) - var(--FOOTER_HEIGHT) - 45px - 46px);
|
height: calc(100vh - 45px - 46px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.method_text_GET {
|
.method_text_GET {
|
@ -31,7 +31,11 @@ export class ApiComponent implements OnInit, OnDestroy {
|
|||||||
];
|
];
|
||||||
private destroy$: Subject<void> = new Subject<void>();
|
private destroy$: Subject<void> = new Subject<void>();
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute, private apiService: ApiService, private messageService: MessageService) {}
|
constructor(
|
||||||
|
private route: ActivatedRoute,
|
||||||
|
private apiService: ApiService,
|
||||||
|
private messageService: MessageService
|
||||||
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.watchChangeRouter();
|
this.watchChangeRouter();
|
||||||
@ -56,6 +60,10 @@ export class ApiComponent implements OnInit, OnDestroy {
|
|||||||
case 'gotoBulkDeleteApi':
|
case 'gotoBulkDeleteApi':
|
||||||
this.apiService.bulkDelete(inArg.data.uuids);
|
this.apiService.bulkDelete(inArg.data.uuids);
|
||||||
break;
|
break;
|
||||||
|
case 'exportApi':{
|
||||||
|
this.apiService.export(inArg.data);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
@ -11,7 +11,8 @@ import { ParamsImportModule } from '../../shared/components/params-import/params
|
|||||||
|
|
||||||
import { ApiComponent } from './api.component';
|
import { ApiComponent } from './api.component';
|
||||||
import { ApiGroupEditComponent } from './group/edit/api-group-edit.component';
|
import { ApiGroupEditComponent } from './group/edit/api-group-edit.component';
|
||||||
|
import { ExportApiComponent } from '../../shared/components/export-api/export-api.component';
|
||||||
|
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
||||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||||
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
||||||
@ -21,15 +22,15 @@ import { NzFormModule } from 'ng-zorro-antd/form';
|
|||||||
import { NzInputModule } from 'ng-zorro-antd/input';
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
||||||
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
||||||
|
|
||||||
import { ApiDataService } from '../../shared/services/api-data/api-data.service';
|
|
||||||
import { GroupService } from '../../shared/services/group/group.service';
|
|
||||||
import { ApiTabService } from './tab/api-tab.service';
|
import { ApiTabService } from './tab/api-tab.service';
|
||||||
import { MessageService } from '../../shared/services/message';
|
import { MessageService } from '../../shared/services/message';
|
||||||
import { ApiGroupTreeComponent } from './group/tree/api-group-tree.component';
|
import { ApiGroupTreeComponent } from './group/tree/api-group-tree.component';
|
||||||
import { ApiTabComponent } from './tab/api-tab.component';
|
import { ApiTabComponent } from './tab/api-tab.component';
|
||||||
import { ApiService } from './api.service';
|
import { ApiService } from './api.service';
|
||||||
|
import { ElectronService } from '../../core/services';
|
||||||
|
import { StorageService } from '../../shared/services/storage';
|
||||||
|
|
||||||
const COMPONENTS = [ApiComponent, ApiGroupEditComponent, ApiGroupTreeComponent];
|
const COMPONENTS = [ApiComponent, ApiGroupEditComponent, ApiGroupTreeComponent, ExportApiComponent];
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
@ -46,6 +47,7 @@ const COMPONENTS = [ApiComponent, ApiGroupEditComponent, ApiGroupTreeComponent];
|
|||||||
NzTreeModule,
|
NzTreeModule,
|
||||||
NzFormModule,
|
NzFormModule,
|
||||||
NzInputModule,
|
NzInputModule,
|
||||||
|
NzRadioModule,
|
||||||
NzDropDownModule,
|
NzDropDownModule,
|
||||||
ParamsImportModule,
|
ParamsImportModule,
|
||||||
EouiModule,
|
EouiModule,
|
||||||
@ -53,6 +55,6 @@ const COMPONENTS = [ApiComponent, ApiGroupEditComponent, ApiGroupTreeComponent];
|
|||||||
],
|
],
|
||||||
declarations: [...COMPONENTS, ApiTabComponent],
|
declarations: [...COMPONENTS, ApiTabComponent],
|
||||||
exports: [],
|
exports: [],
|
||||||
providers: [ApiDataService, GroupService, MessageService, ApiTabService,ApiService],
|
providers: [ElectronService, MessageService, ApiTabService, ApiService, StorageService],
|
||||||
})
|
})
|
||||||
export class ApiModule {}
|
export class ApiModule {}
|
57
core/api-manager/browser/src/app/pages/api/api.service.ts
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
||||||
|
import { ApiData, StorageHandleResult, StorageHandleStatus } from '../../../../../../../platform/browser/IndexedDB';
|
||||||
|
import { ExportApiComponent } from '../../shared/components/export-api/export-api.component';
|
||||||
|
import { MessageService } from '../../shared/services/message';
|
||||||
|
import { ModalService } from '../../shared/services/modal.service';
|
||||||
|
import { StorageService } from '../../shared/services/storage';
|
||||||
|
@Injectable()
|
||||||
|
export class ApiService {
|
||||||
|
constructor(
|
||||||
|
private nzModalService: NzModalService,
|
||||||
|
private modalService: ModalService,
|
||||||
|
private messageService: MessageService,
|
||||||
|
private storage: StorageService
|
||||||
|
) {}
|
||||||
|
|
||||||
|
copy(apiData: ApiData): void {
|
||||||
|
delete apiData.uuid;
|
||||||
|
delete apiData.createdAt;
|
||||||
|
apiData.name += ' Copy';
|
||||||
|
window.sessionStorage.setItem('apiDataWillbeSave', JSON.stringify(apiData));
|
||||||
|
this.messageService.send({ type: 'copyApi', data: apiData });
|
||||||
|
}
|
||||||
|
|
||||||
|
delete(apiData: ApiData): void {
|
||||||
|
this.nzModalService.confirm({
|
||||||
|
nzTitle: '删除确认?',
|
||||||
|
nzContent: `确认要删除数据 <strong title="${apiData.name}">${
|
||||||
|
apiData.name.length > 50 ? apiData.name.slice(0, 50) + '...' : apiData.name
|
||||||
|
}</strong> 吗?删除后不可恢复!`,
|
||||||
|
nzOnOk: () => {
|
||||||
|
const result: StorageHandleResult = this.storage.run('apiDataRemove', [apiData.uuid]);
|
||||||
|
if (result.status === StorageHandleStatus.success) {
|
||||||
|
this.messageService.send({ type: 'deleteApi', data: { uuid: apiData.uuid } });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
bulkDelete(apis) {
|
||||||
|
const result: StorageHandleResult = this.storage.run('apiDataBulkRemove', [apis]);
|
||||||
|
if (result.status === StorageHandleStatus.success) {
|
||||||
|
this.messageService.send({ type: 'bulkDeleteApi', data: { uuids: apis } });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export(apiData: ApiData) {
|
||||||
|
const modal: NzModalRef = this.modalService.create({
|
||||||
|
nzTitle: "导出 API",
|
||||||
|
nzContent: ExportApiComponent,
|
||||||
|
nzClosable: false,
|
||||||
|
nzComponentParams:{},
|
||||||
|
nzOnOk() {
|
||||||
|
modal.componentInstance.submit();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
bulkExport(groups) {}
|
||||||
|
}
|
@ -1,12 +1,9 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
import { ApiData, ApiBodyType, JsonRootType, StorageHandleResult, StorageHandleStatus } from '../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { ApiData } from '../../../shared/services/api-data/api-data.model';
|
|
||||||
import { ApiBodyType, JsonRootType } from '../../../shared/services/api-data/api-data.model';
|
|
||||||
|
|
||||||
import { ApiDataService } from '../../../shared/services/api-data/api-data.service';
|
|
||||||
import { treeToListHasLevel } from '../../../utils/tree/tree.utils';
|
import { treeToListHasLevel } from '../../../utils/tree/tree.utils';
|
||||||
import { reverseObj } from '../../../utils';
|
import { reverseObj } from '../../../utils';
|
||||||
|
import { StorageService } from '../../../shared/services/storage';
|
||||||
|
|
||||||
export interface TreeNodeInterface {
|
export interface TreeNodeInterface {
|
||||||
key?: string;
|
key?: string;
|
||||||
@ -29,7 +26,7 @@ export class ApiDetailComponent implements OnInit {
|
|||||||
BODY_TYPE: reverseObj(ApiBodyType),
|
BODY_TYPE: reverseObj(ApiBodyType),
|
||||||
JSON_ROOT_TYPE: reverseObj(JsonRootType)
|
JSON_ROOT_TYPE: reverseObj(JsonRootType)
|
||||||
};
|
};
|
||||||
constructor(private apiDataService: ApiDataService, private route: ActivatedRoute) {
|
constructor(private route: ActivatedRoute, private storage: StorageService) {
|
||||||
}
|
}
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.route.queryParams.subscribe((params) => {
|
this.route.queryParams.subscribe((params) => {
|
||||||
@ -41,13 +38,14 @@ export class ApiDetailComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
getApiByUuid(id: number) {
|
getApiByUuid(id: number) {
|
||||||
this.apiDataService.load(id).subscribe((result: ApiData) => {
|
const result: StorageHandleResult = this.storage.run('apiDataLoad', [id]);
|
||||||
|
if (result.status === StorageHandleStatus.success) {
|
||||||
['requestBody', 'responseBody'].forEach((tableName) => {
|
['requestBody', 'responseBody'].forEach((tableName) => {
|
||||||
if (['xml', 'json'].includes(result[`${tableName}Type`])) {
|
if (['xml', 'json'].includes(result.data[`${tableName}Type`])) {
|
||||||
result[tableName] = treeToListHasLevel(result[tableName]);
|
result.data[tableName] = treeToListHasLevel(result.data[tableName]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.apiData = result;
|
this.apiData = result.data;
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,8 +1,6 @@
|
|||||||
import { Component, OnInit, Input, OnChanges, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges, OnDestroy } from '@angular/core';
|
||||||
|
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { ApiEditBody } from '../../../../shared/services/api-data/api-edit-params.model';
|
import { ApiEditBody, ApiBodyType, JsonRootType } from '../../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { ApiBodyType, JsonRootType } from '../../../../shared/services/api-data/api-data.model';
|
|
||||||
import { ApiDetailService } from '../api-detail.service';
|
import { ApiDetailService } from '../api-detail.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'eo-api-detail-body',
|
selector: 'eo-api-detail-body',
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { ApiEditHeaders } from '../../../../shared/services/api-data/api-edit-params.model';
|
import { ApiEditHeaders } from '../../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { ApiDetailService } from '../api-detail.service';
|
import { ApiDetailService } from '../api-detail.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'eo-api-detail-header',
|
selector: 'eo-api-detail-header',
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input} from '@angular/core';
|
import { Component, OnInit, Input} from '@angular/core';
|
||||||
import { ApiEditQuery } from '../../../../shared/services/api-data/api-edit-params.model';
|
import { ApiEditQuery } from '../../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { ApiDetailService } from '../api-detail.service';
|
import { ApiDetailService } from '../api-detail.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input} from '@angular/core';
|
import { Component, OnInit, Input} from '@angular/core';
|
||||||
import { ApiEditRest } from '../../../../shared/services/api-data/api-edit-params.model';
|
import { ApiEditRest } from '../../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { ApiDetailService } from '../api-detail.service';
|
import { ApiDetailService } from '../api-detail.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'eo-api-detail-rest',
|
selector: 'eo-api-detail-rest',
|
@ -7,14 +7,10 @@ import { NzTreeSelectComponent } from 'ng-zorro-antd/tree-select';
|
|||||||
|
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { debounceTime, take, takeUntil, pairwise, filter } from 'rxjs/operators';
|
import { debounceTime, take, takeUntil, pairwise, filter } from 'rxjs/operators';
|
||||||
|
|
||||||
import { ApiEditRest } from '../../../shared/services/api-data/api-edit-params.model';
|
|
||||||
import { ApiData, RequestProtocol, RequestMethod } from '../../../shared/services/api-data/api-data.model';
|
|
||||||
import { ApiDataService } from '../../../shared/services/api-data/api-data.service';
|
|
||||||
import { MessageService } from '../../../shared/services/message';
|
import { MessageService } from '../../../shared/services/message';
|
||||||
|
import { StorageService } from '../../../shared/services/storage';
|
||||||
|
|
||||||
import { Group } from '../../../shared/services/group/group.model';
|
import { Group, ApiData, RequestProtocol, RequestMethod, ApiEditRest, StorageHandleResult, StorageHandleStatus } from '../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { GroupService } from '../../../shared/services/group/group.service';
|
|
||||||
import { ApiTabService } from '../tab/api-tab.service';
|
import { ApiTabService } from '../tab/api-tab.service';
|
||||||
|
|
||||||
import { objectToArray } from '../../../utils';
|
import { objectToArray } from '../../../utils';
|
||||||
@ -39,28 +35,28 @@ export class ApiEditComponent implements OnInit, OnDestroy {
|
|||||||
private changeGroupID$: Subject<string | number> = new Subject();
|
private changeGroupID$: Subject<string | number> = new Subject();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private storage: ApiDataService,
|
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private fb: FormBuilder,
|
private fb: FormBuilder,
|
||||||
private message: NzMessageService,
|
private message: NzMessageService,
|
||||||
private messageService: MessageService,
|
private messageService: MessageService,
|
||||||
private groupService: GroupService,
|
private apiTab: ApiTabService,
|
||||||
private apiTab: ApiTabService
|
private storage: StorageService
|
||||||
) {}
|
) {}
|
||||||
getApiGroup() {
|
getApiGroup() {
|
||||||
this.groups = [];
|
this.groups = [];
|
||||||
this.groupService.loadAllByProjectID(1).subscribe((items: Array<Group>) => {
|
const treeItems: any = [
|
||||||
const treeItems: any = [
|
{
|
||||||
{
|
title: '根目录',
|
||||||
title: '根目录',
|
//!actually is 0,but 0 will hidden in nz component,so use -1 replace 0
|
||||||
//!actually is 0,but 0 will hidden in nz component,so use -1 replace 0
|
key: '-1',
|
||||||
key: '-1',
|
weight: 0,
|
||||||
weight: 0,
|
parentID: '0',
|
||||||
parentID: '0',
|
isLeaf: false,
|
||||||
isLeaf: false,
|
},
|
||||||
},
|
];
|
||||||
];
|
const result: StorageHandleResult = this.storage.run('groupLoadAllByProjectID', [1]);
|
||||||
items.forEach((item) => {
|
if (result.status === StorageHandleStatus.success) {
|
||||||
|
result.data.forEach((item: Group) => {
|
||||||
delete item.updatedAt;
|
delete item.updatedAt;
|
||||||
treeItems.push({
|
treeItems.push({
|
||||||
title: item.name,
|
title: item.name,
|
||||||
@ -71,21 +67,22 @@ export class ApiEditComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
treeItems.sort((a, b) => a.weight - b.weight);
|
treeItems.sort((a, b) => a.weight - b.weight);
|
||||||
listToTree(treeItems, this.groups, '0');
|
}
|
||||||
this.afterInitGroup();
|
listToTree(treeItems, this.groups, '-1');
|
||||||
});
|
this.afterInitGroup();
|
||||||
}
|
}
|
||||||
getApi(id) {
|
getApi(id) {
|
||||||
this.storage.load(id).subscribe((result: ApiData) => {
|
const result: StorageHandleResult = this.storage.run('apiDataLoad', [id]);
|
||||||
|
if (result.status === StorageHandleStatus.success) {
|
||||||
['requestBody', 'responseBody'].forEach((tableName) => {
|
['requestBody', 'responseBody'].forEach((tableName) => {
|
||||||
if (['xml', 'json'].includes(result[`${tableName}Type`])) {
|
if (['xml', 'json'].includes(result.data[`${tableName}Type`])) {
|
||||||
result[tableName] = treeToListHasLevel(result[tableName]);
|
result.data[tableName] = treeToListHasLevel(result.data[tableName]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.apiData = result;
|
this.apiData = result.data;
|
||||||
this.changeGroupID$.next(this.apiData.groupID);
|
this.changeGroupID$.next(this.apiData.groupID);
|
||||||
this.validateForm.patchValue(this.apiData);
|
this.validateForm.patchValue(this.apiData);
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
saveApi() {
|
saveApi() {
|
||||||
//manual set dirty in case user submit directly without edit
|
//manual set dirty in case user submit directly without edit
|
||||||
@ -217,8 +214,11 @@ export class ApiEditComponent implements OnInit, OnDestroy {
|
|||||||
* Reset Group ID after group list load
|
* Reset Group ID after group list load
|
||||||
*/
|
*/
|
||||||
private afterInitGroup() {
|
private afterInitGroup() {
|
||||||
const groupID = this.apiData.groupID;
|
let groupID: number | string = '-1';
|
||||||
this.apiData.groupID = '';
|
if (this.apiData && this.apiData.groupID) {
|
||||||
|
groupID = this.apiData.groupID;
|
||||||
|
this.apiData.groupID = '';
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.apiData.groupID = groupID;
|
this.apiData.groupID = groupID;
|
||||||
this.changeGroupID$.next(groupID);
|
this.changeGroupID$.next(groupID);
|
||||||
@ -255,13 +255,22 @@ export class ApiEditComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private editApi(formData) {
|
private editApi(formData) {
|
||||||
const busEvent = formData.uuid ? 'editApi' : 'addApi';
|
if (formData.uuid) {
|
||||||
const title = busEvent === 'editApi' ? '编辑成功' : '新增成功';
|
const result: StorageHandleResult = this.storage.run('apiDataUpdate', [formData, this.apiData.uuid]);
|
||||||
this.storage[busEvent === 'editApi' ? 'update' : 'create'](formData, this.apiData.uuid).subscribe(
|
if (result.status === StorageHandleStatus.success) {
|
||||||
(result: ApiData) => {
|
this.message.success('编辑成功');
|
||||||
this.message.success(title);
|
this.messageService.send({ type: 'editApi', data: result.data });
|
||||||
this.messageService.send({ type: `${busEvent}Success`, data: result });
|
} else {
|
||||||
|
this.message.success('编辑失败');
|
||||||
}
|
}
|
||||||
);
|
} else {
|
||||||
|
const result: StorageHandleResult = this.storage.run('apiDataCreate', [formData]);
|
||||||
|
if (result.status === StorageHandleStatus.success) {
|
||||||
|
this.message.success('新增成功');
|
||||||
|
this.messageService.send({ type: 'addApi', data: result.data });
|
||||||
|
} else {
|
||||||
|
this.message.success('新增失败');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,12 +11,7 @@ import {
|
|||||||
|
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { pairwise, takeUntil, debounceTime } from 'rxjs/operators';
|
import { pairwise, takeUntil, debounceTime } from 'rxjs/operators';
|
||||||
import {
|
import { ApiParamsTypeFormData, ApiParamsTypeJsonOrXml, ApiEditBody, ApiBodyType, JsonRootType } from '../../../../../../../../../platform/browser/IndexedDB';
|
||||||
ApiParamsTypeFormData,
|
|
||||||
ApiParamsTypeJsonOrXml,
|
|
||||||
} from '../../../../shared/services/api-data/api-edit-params.model';
|
|
||||||
import { ApiEditBody } from '../../../../shared/services/api-data/api-edit-params.model';
|
|
||||||
import { ApiBodyType, JsonRootType } from '../../../../shared/services/api-data/api-data.model';
|
|
||||||
import { ApiEditService } from '../api-edit.service';
|
import { ApiEditService } from '../api-edit.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'eo-api-edit-body',
|
selector: 'eo-api-edit-body',
|
@ -1,6 +1,5 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, OnInit, Input } from '@angular/core';
|
||||||
import { ApiParamsTypeJsonOrXml, ParamsEnum } from '../../../../shared/services/api-data/api-edit-params.model';
|
import { ApiParamsTypeJsonOrXml, ParamsEnum, BasiApiEditParams } from '../../../../../../../../../platform/browser/IndexedDB';
|
||||||
import { BasiApiEditParams } from '../../../../shared/services/api-data/api-edit-params.model';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'eo-api-edit-params-extra-setting',
|
selector: 'eo-api-edit-params-extra-setting',
|
@ -0,0 +1,4 @@
|
|||||||
|
<div class="param_header">
|
||||||
|
<params-import [(baseData)]="model"></params-import>
|
||||||
|
</div>
|
||||||
|
<list-block-common-component [mainObject]="listConf" [(list)]="model"></list-block-common-component>
|