Browse Source

dev

master
nejery 5 years ago
commit
3f3632fa31
16 changed files with 962 additions and 0 deletions
  1. 1
    0
      .gitignore
  2. 3
    0
      .idea/.gitignore
  3. 12
    0
      .idea/electron-quick-start.iml
  4. 6
    0
      .idea/misc.xml
  5. 8
    0
      .idea/modules.xml
  6. 6
    0
      .idea/vcs.xml
  7. 39
    0
      LICENSE.md
  8. 45
    0
      README.md
  9. 16
    0
      index.html
  10. 54
    0
      main.js
  11. 718
    0
      package-lock.json
  12. 22
    0
      package.json
  13. 12
    0
      preload.js
  14. 10
    0
      renderer.js
  15. 10
    0
      test.html
  16. 0
    0
      test.txt

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
1
+node_modules

+ 3
- 0
.idea/.gitignore View File

@@ -0,0 +1,3 @@
1
+
2
+# Default ignored files
3
+/workspace.xml

+ 12
- 0
.idea/electron-quick-start.iml View File

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="WEB_MODULE" version="4">
3
+  <component name="NewModuleRootManager">
4
+    <content url="file://$MODULE_DIR$">
5
+      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+      <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+      <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+    </content>
9
+    <orderEntry type="inheritedJdk" />
10
+    <orderEntry type="sourceFolder" forTests="false" />
11
+  </component>
12
+</module>

+ 6
- 0
.idea/misc.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+</project>

+ 8
- 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/electron-quick-start.iml" filepath="$PROJECT_DIR$/.idea/electron-quick-start.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 39
- 0
LICENSE.md View File

@@ -0,0 +1,39 @@
1
+CC0 1.0 Universal
2
+==================
3
+
4
+Statement of Purpose
5
+---------------------
6
+
7
+The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
8
+
9
+Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
10
+
11
+For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
12
+
13
+1. Copyright and Related Rights.
14
+--------------------------------
15
+A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
16
+
17
+i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
18
+ii. moral rights retained by the original author(s) and/or performer(s);
19
+iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
20
+iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
21
+v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
22
+vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
23
+vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
24
+
25
+2. Waiver.
26
+-----------
27
+To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
28
+
29
+3. Public License Fallback.
30
+----------------------------
31
+Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
32
+
33
+4. Limitations and Disclaimers.
34
+--------------------------------
35
+
36
+a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
37
+b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
38
+c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
39
+d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.

+ 45
- 0
README.md View File

@@ -0,0 +1,45 @@
1
+# electron-quick-start
2
+
3
+**Clone and run for a quick way to see Electron in action.**
4
+
5
+This is a minimal Electron application based on the [Quick Start Guide](https://electronjs.org/docs/tutorial/quick-start) within the Electron documentation.
6
+
7
+**Use this app along with the [Electron API Demos](https://electronjs.org/#get-started) app for API code examples to help you get started.**
8
+
9
+A basic Electron application needs just these files:
10
+
11
+- `package.json` - Points to the app's main file and lists its details and dependencies.
12
+- `main.js` - Starts the app and creates a browser window to render HTML. This is the app's **main process**.
13
+- `index.html` - A web page to render. This is the app's **renderer process**.
14
+
15
+You can learn more about each of these components within the [Quick Start Guide](https://electronjs.org/docs/tutorial/quick-start).
16
+
17
+## To Use
18
+
19
+To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
20
+
21
+```bash
22
+# Clone this repository
23
+git clone https://github.com/electron/electron-quick-start
24
+# Go into the repository
25
+cd electron-quick-start
26
+# Install dependencies
27
+npm install
28
+# Run the app
29
+npm start
30
+```
31
+
32
+Note: If you're using Linux Bash for Windows, [see this guide](https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/) or use `node` from the command prompt.
33
+
34
+## Resources for Learning Electron
35
+
36
+- [electronjs.org/docs](https://electronjs.org/docs) - all of Electron's documentation
37
+- [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - sample starter apps created by the community
38
+- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app
39
+- [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further
40
+- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron
41
+- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs
42
+
43
+## License
44
+
45
+[CC0 1.0 (Public Domain)](LICENSE.md)

+ 16
- 0
index.html View File

@@ -0,0 +1,16 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
6
+    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
7
+    <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
8
+    <title>Hello World!</title>
9
+</head>
10
+<body>
11
+<!-- You can also require other files to run in this process -->
12
+<iframe src="https://www.nejery.com" width="800" height="600" style="width:800px; height: 800px"></iframe>
13
+
14
+<script src="./renderer.js"></script>
15
+</body>
16
+</html>

+ 54
- 0
main.js View File

@@ -0,0 +1,54 @@
1
+// Modules to control application life and create native browser window
2
+const {app, BrowserWindow} = require('electron')
3
+const path = require('path')
4
+
5
+// Keep a global reference of the window object, if you don't, the window will
6
+// be closed automatically when the JavaScript object is garbage collected.
7
+let mainWindow
8
+
9
+function createWindow () {
10
+  // Create the browser window.
11
+  mainWindow = new BrowserWindow({
12
+    width: 1300,
13
+    height: 600,
14
+    webPreferences: {
15
+      preload: path.join(__dirname, 'preload.js')
16
+    }
17
+  });
18
+
19
+  // and load the index.html of the app.
20
+ // mainWindow.loadFile('index.html')
21
+  mainWindow.loadURL('http://192.168.20.245:9527/');
22
+  // Open the DevTools.
23
+  // mainWindow.webContents.openDevTools()
24
+
25
+  // Emitted when the window is closed.
26
+  mainWindow.on('closed', function () {
27
+    // Dereference the window object, usually you would store windows
28
+    // in an array if your app supports multi windows, this is the time
29
+    // when you should delete the corresponding element.
30
+    mainWindow = null
31
+  })
32
+  mainWindow.webContents.openDevTools()
33
+}
34
+
35
+// This method will be called when Electron has finished
36
+// initialization and is ready to create browser windows.
37
+// Some APIs can only be used after this event occurs.
38
+app.on('ready', createWindow)
39
+
40
+// Quit when all windows are closed.
41
+app.on('window-all-closed', function () {
42
+  // On macOS it is common for applications and their menu bar
43
+  // to stay active until the user quits explicitly with Cmd + Q
44
+  if (process.platform !== 'darwin') app.quit()
45
+})
46
+
47
+app.on('activate', function () {
48
+  // On macOS it's common to re-create a window in the app when the
49
+  // dock icon is clicked and there are no other windows open.
50
+  if (mainWindow === null) createWindow()
51
+})
52
+
53
+// In this file you can include the rest of your app's specific main process
54
+// code. You can also put them in separate files and require them here.

+ 718
- 0
package-lock.json View File

@@ -0,0 +1,718 @@
1
+{
2
+  "name": "electron-quick-start",
3
+  "version": "1.0.0",
4
+  "lockfileVersion": 1,
5
+  "requires": true,
6
+  "dependencies": {
7
+    "@electron/get": {
8
+      "version": "1.7.2",
9
+      "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.7.2.tgz",
10
+      "integrity": "sha512-LSE4LZGMjGS9TloDx0yO44D2UTbaeKRk+QjlhWLiQlikV6J4spgDCjb6z4YIcqmPAwNzlNCnWF4dubytwI+ATA==",
11
+      "dev": true,
12
+      "requires": {
13
+        "debug": "^4.1.1",
14
+        "env-paths": "^2.2.0",
15
+        "fs-extra": "^8.1.0",
16
+        "global-agent": "^2.0.2",
17
+        "global-tunnel-ng": "^2.7.1",
18
+        "got": "^9.6.0",
19
+        "sanitize-filename": "^1.6.2",
20
+        "sumchecker": "^3.0.1"
21
+      }
22
+    },
23
+    "@sindresorhus/is": {
24
+      "version": "0.14.0",
25
+      "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",
26
+      "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==",
27
+      "dev": true
28
+    },
29
+    "@szmarczak/http-timer": {
30
+      "version": "1.1.2",
31
+      "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",
32
+      "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==",
33
+      "dev": true,
34
+      "requires": {
35
+        "defer-to-connect": "^1.0.1"
36
+      }
37
+    },
38
+    "@types/node": {
39
+      "version": "12.12.24",
40
+      "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.24.tgz",
41
+      "integrity": "sha512-1Ciqv9pqwVtW6FsIUKSZNB82E5Cu1I2bBTj1xuIHXLe/1zYLl3956Nbhg2MzSYHVfl9/rmanjbQIb7LibfCnug==",
42
+      "dev": true
43
+    },
44
+    "boolean": {
45
+      "version": "3.0.0",
46
+      "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.0.tgz",
47
+      "integrity": "sha512-OElxJ1lUSinuoUnkpOgLmxp0DC4ytEhODEL6QJU0NpxE/mI4rUSh8h1P1Wkvfi3xQEBcxXR2gBIPNYNuaFcAbQ==",
48
+      "dev": true,
49
+      "optional": true
50
+    },
51
+    "buffer-from": {
52
+      "version": "1.1.1",
53
+      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
54
+      "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
55
+      "dev": true
56
+    },
57
+    "cacheable-request": {
58
+      "version": "6.1.0",
59
+      "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz",
60
+      "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==",
61
+      "dev": true,
62
+      "requires": {
63
+        "clone-response": "^1.0.2",
64
+        "get-stream": "^5.1.0",
65
+        "http-cache-semantics": "^4.0.0",
66
+        "keyv": "^3.0.0",
67
+        "lowercase-keys": "^2.0.0",
68
+        "normalize-url": "^4.1.0",
69
+        "responselike": "^1.0.2"
70
+      },
71
+      "dependencies": {
72
+        "get-stream": {
73
+          "version": "5.1.0",
74
+          "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz",
75
+          "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==",
76
+          "dev": true,
77
+          "requires": {
78
+            "pump": "^3.0.0"
79
+          }
80
+        },
81
+        "lowercase-keys": {
82
+          "version": "2.0.0",
83
+          "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
84
+          "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
85
+          "dev": true
86
+        }
87
+      }
88
+    },
89
+    "clone-response": {
90
+      "version": "1.0.2",
91
+      "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
92
+      "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",
93
+      "dev": true,
94
+      "requires": {
95
+        "mimic-response": "^1.0.0"
96
+      }
97
+    },
98
+    "concat-stream": {
99
+      "version": "1.6.2",
100
+      "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
101
+      "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
102
+      "dev": true,
103
+      "requires": {
104
+        "buffer-from": "^1.0.0",
105
+        "inherits": "^2.0.3",
106
+        "readable-stream": "^2.2.2",
107
+        "typedarray": "^0.0.6"
108
+      }
109
+    },
110
+    "config-chain": {
111
+      "version": "1.1.12",
112
+      "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz",
113
+      "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==",
114
+      "dev": true,
115
+      "optional": true,
116
+      "requires": {
117
+        "ini": "^1.3.4",
118
+        "proto-list": "~1.2.1"
119
+      }
120
+    },
121
+    "core-js": {
122
+      "version": "3.6.4",
123
+      "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
124
+      "integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw==",
125
+      "dev": true,
126
+      "optional": true
127
+    },
128
+    "core-util-is": {
129
+      "version": "1.0.2",
130
+      "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
131
+      "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
132
+      "dev": true
133
+    },
134
+    "debug": {
135
+      "version": "4.1.1",
136
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
137
+      "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
138
+      "dev": true,
139
+      "requires": {
140
+        "ms": "^2.1.1"
141
+      }
142
+    },
143
+    "decompress-response": {
144
+      "version": "3.3.0",
145
+      "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
146
+      "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",
147
+      "dev": true,
148
+      "requires": {
149
+        "mimic-response": "^1.0.0"
150
+      }
151
+    },
152
+    "defer-to-connect": {
153
+      "version": "1.1.1",
154
+      "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.1.tgz",
155
+      "integrity": "sha512-J7thop4u3mRTkYRQ+Vpfwy2G5Ehoy82I14+14W4YMDLKdWloI9gSzRbV30s/NckQGVJtPkWNcW4oMAUigTdqiQ==",
156
+      "dev": true
157
+    },
158
+    "define-properties": {
159
+      "version": "1.1.3",
160
+      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
161
+      "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
162
+      "dev": true,
163
+      "optional": true,
164
+      "requires": {
165
+        "object-keys": "^1.0.12"
166
+      }
167
+    },
168
+    "detect-node": {
169
+      "version": "2.0.4",
170
+      "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
171
+      "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
172
+      "dev": true,
173
+      "optional": true
174
+    },
175
+    "duplexer3": {
176
+      "version": "0.1.4",
177
+      "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
178
+      "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",
179
+      "dev": true
180
+    },
181
+    "electron": {
182
+      "version": "7.1.9",
183
+      "resolved": "https://registry.npmjs.org/electron/-/electron-7.1.9.tgz",
184
+      "integrity": "sha512-gkzDr08XxRaNZhwPLRXYNXDaPuiAeCrRPcClowlDVfCLKi+kRNhzekZpfYUBq8DdZCD29D3rCtgc9IHjD/xuHw==",
185
+      "dev": true,
186
+      "requires": {
187
+        "@electron/get": "^1.0.1",
188
+        "@types/node": "^12.0.12",
189
+        "extract-zip": "^1.0.3"
190
+      }
191
+    },
192
+    "encodeurl": {
193
+      "version": "1.0.2",
194
+      "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
195
+      "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",
196
+      "dev": true,
197
+      "optional": true
198
+    },
199
+    "end-of-stream": {
200
+      "version": "1.4.4",
201
+      "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
202
+      "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
203
+      "dev": true,
204
+      "requires": {
205
+        "once": "^1.4.0"
206
+      }
207
+    },
208
+    "env-paths": {
209
+      "version": "2.2.0",
210
+      "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.0.tgz",
211
+      "integrity": "sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA==",
212
+      "dev": true
213
+    },
214
+    "es6-error": {
215
+      "version": "4.1.1",
216
+      "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
217
+      "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
218
+      "dev": true,
219
+      "optional": true
220
+    },
221
+    "escape-string-regexp": {
222
+      "version": "2.0.0",
223
+      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
224
+      "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
225
+      "dev": true,
226
+      "optional": true
227
+    },
228
+    "extract-zip": {
229
+      "version": "1.6.7",
230
+      "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz",
231
+      "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=",
232
+      "dev": true,
233
+      "requires": {
234
+        "concat-stream": "1.6.2",
235
+        "debug": "2.6.9",
236
+        "mkdirp": "0.5.1",
237
+        "yauzl": "2.4.1"
238
+      },
239
+      "dependencies": {
240
+        "debug": {
241
+          "version": "2.6.9",
242
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
243
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
244
+          "dev": true,
245
+          "requires": {
246
+            "ms": "2.0.0"
247
+          }
248
+        },
249
+        "ms": {
250
+          "version": "2.0.0",
251
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
252
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
253
+          "dev": true
254
+        }
255
+      }
256
+    },
257
+    "fd-slicer": {
258
+      "version": "1.0.1",
259
+      "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz",
260
+      "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=",
261
+      "dev": true,
262
+      "requires": {
263
+        "pend": "~1.2.0"
264
+      }
265
+    },
266
+    "fs-extra": {
267
+      "version": "8.1.0",
268
+      "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
269
+      "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
270
+      "dev": true,
271
+      "requires": {
272
+        "graceful-fs": "^4.2.0",
273
+        "jsonfile": "^4.0.0",
274
+        "universalify": "^0.1.0"
275
+      }
276
+    },
277
+    "get-stream": {
278
+      "version": "4.1.0",
279
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
280
+      "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
281
+      "dev": true,
282
+      "requires": {
283
+        "pump": "^3.0.0"
284
+      }
285
+    },
286
+    "global-agent": {
287
+      "version": "2.1.7",
288
+      "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.1.7.tgz",
289
+      "integrity": "sha512-ooK7eqGYZku+LgnbfH/Iv0RJ74XfhrBZDlke1QSzcBt0bw1PmJcnRADPAQuFE+R45pKKDTynAr25SBasY2kvow==",
290
+      "dev": true,
291
+      "optional": true,
292
+      "requires": {
293
+        "boolean": "^3.0.0",
294
+        "core-js": "^3.4.1",
295
+        "es6-error": "^4.1.1",
296
+        "matcher": "^2.0.0",
297
+        "roarr": "^2.14.5",
298
+        "semver": "^6.3.0",
299
+        "serialize-error": "^5.0.0"
300
+      }
301
+    },
302
+    "global-tunnel-ng": {
303
+      "version": "2.7.1",
304
+      "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz",
305
+      "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==",
306
+      "dev": true,
307
+      "optional": true,
308
+      "requires": {
309
+        "encodeurl": "^1.0.2",
310
+        "lodash": "^4.17.10",
311
+        "npm-conf": "^1.1.3",
312
+        "tunnel": "^0.0.6"
313
+      }
314
+    },
315
+    "globalthis": {
316
+      "version": "1.0.1",
317
+      "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.1.tgz",
318
+      "integrity": "sha512-mJPRTc/P39NH/iNG4mXa9aIhNymaQikTrnspeCa2ZuJ+mH2QN/rXwtX3XwKrHqWgUQFbNZKtHM105aHzJalElw==",
319
+      "dev": true,
320
+      "optional": true,
321
+      "requires": {
322
+        "define-properties": "^1.1.3"
323
+      }
324
+    },
325
+    "got": {
326
+      "version": "9.6.0",
327
+      "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
328
+      "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",
329
+      "dev": true,
330
+      "requires": {
331
+        "@sindresorhus/is": "^0.14.0",
332
+        "@szmarczak/http-timer": "^1.1.2",
333
+        "cacheable-request": "^6.0.0",
334
+        "decompress-response": "^3.3.0",
335
+        "duplexer3": "^0.1.4",
336
+        "get-stream": "^4.1.0",
337
+        "lowercase-keys": "^1.0.1",
338
+        "mimic-response": "^1.0.1",
339
+        "p-cancelable": "^1.0.0",
340
+        "to-readable-stream": "^1.0.0",
341
+        "url-parse-lax": "^3.0.0"
342
+      }
343
+    },
344
+    "graceful-fs": {
345
+      "version": "4.2.3",
346
+      "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
347
+      "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
348
+      "dev": true
349
+    },
350
+    "http-cache-semantics": {
351
+      "version": "4.0.3",
352
+      "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.0.3.tgz",
353
+      "integrity": "sha512-TcIMG3qeVLgDr1TEd2XvHaTnMPwYQUQMIBLy+5pLSDKYFc7UIqj39w8EGzZkaxoLv/l2K8HaI0t5AVA+YYgUew==",
354
+      "dev": true
355
+    },
356
+    "inherits": {
357
+      "version": "2.0.4",
358
+      "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
359
+      "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
360
+      "dev": true
361
+    },
362
+    "ini": {
363
+      "version": "1.3.5",
364
+      "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
365
+      "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
366
+      "dev": true,
367
+      "optional": true
368
+    },
369
+    "isarray": {
370
+      "version": "1.0.0",
371
+      "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
372
+      "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
373
+      "dev": true
374
+    },
375
+    "json-buffer": {
376
+      "version": "3.0.0",
377
+      "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
378
+      "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=",
379
+      "dev": true
380
+    },
381
+    "json-stringify-safe": {
382
+      "version": "5.0.1",
383
+      "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
384
+      "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
385
+      "dev": true,
386
+      "optional": true
387
+    },
388
+    "jsonfile": {
389
+      "version": "4.0.0",
390
+      "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
391
+      "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
392
+      "dev": true,
393
+      "requires": {
394
+        "graceful-fs": "^4.1.6"
395
+      }
396
+    },
397
+    "keyv": {
398
+      "version": "3.1.0",
399
+      "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
400
+      "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",
401
+      "dev": true,
402
+      "requires": {
403
+        "json-buffer": "3.0.0"
404
+      }
405
+    },
406
+    "lodash": {
407
+      "version": "4.17.15",
408
+      "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
409
+      "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
410
+      "dev": true,
411
+      "optional": true
412
+    },
413
+    "lowercase-keys": {
414
+      "version": "1.0.1",
415
+      "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
416
+      "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",
417
+      "dev": true
418
+    },
419
+    "matcher": {
420
+      "version": "2.1.0",
421
+      "resolved": "https://registry.npmjs.org/matcher/-/matcher-2.1.0.tgz",
422
+      "integrity": "sha512-o+nZr+vtJtgPNklyeUKkkH42OsK8WAfdgaJE2FNxcjLPg+5QbeEoT6vRj8Xq/iv18JlQ9cmKsEu0b94ixWf1YQ==",
423
+      "dev": true,
424
+      "optional": true,
425
+      "requires": {
426
+        "escape-string-regexp": "^2.0.0"
427
+      }
428
+    },
429
+    "mimic-response": {
430
+      "version": "1.0.1",
431
+      "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
432
+      "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
433
+      "dev": true
434
+    },
435
+    "minimist": {
436
+      "version": "0.0.8",
437
+      "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
438
+      "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
439
+      "dev": true
440
+    },
441
+    "mkdirp": {
442
+      "version": "0.5.1",
443
+      "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
444
+      "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
445
+      "dev": true,
446
+      "requires": {
447
+        "minimist": "0.0.8"
448
+      }
449
+    },
450
+    "ms": {
451
+      "version": "2.1.2",
452
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
453
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
454
+      "dev": true
455
+    },
456
+    "normalize-url": {
457
+      "version": "4.5.0",
458
+      "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz",
459
+      "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==",
460
+      "dev": true
461
+    },
462
+    "npm-conf": {
463
+      "version": "1.1.3",
464
+      "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz",
465
+      "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==",
466
+      "dev": true,
467
+      "optional": true,
468
+      "requires": {
469
+        "config-chain": "^1.1.11",
470
+        "pify": "^3.0.0"
471
+      }
472
+    },
473
+    "object-keys": {
474
+      "version": "1.1.1",
475
+      "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
476
+      "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
477
+      "dev": true,
478
+      "optional": true
479
+    },
480
+    "once": {
481
+      "version": "1.4.0",
482
+      "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
483
+      "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
484
+      "dev": true,
485
+      "requires": {
486
+        "wrappy": "1"
487
+      }
488
+    },
489
+    "p-cancelable": {
490
+      "version": "1.1.0",
491
+      "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
492
+      "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",
493
+      "dev": true
494
+    },
495
+    "pend": {
496
+      "version": "1.2.0",
497
+      "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
498
+      "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
499
+      "dev": true
500
+    },
501
+    "pify": {
502
+      "version": "3.0.0",
503
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
504
+      "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
505
+      "dev": true,
506
+      "optional": true
507
+    },
508
+    "prepend-http": {
509
+      "version": "2.0.0",
510
+      "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
511
+      "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",
512
+      "dev": true
513
+    },
514
+    "process-nextick-args": {
515
+      "version": "2.0.1",
516
+      "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
517
+      "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
518
+      "dev": true
519
+    },
520
+    "proto-list": {
521
+      "version": "1.2.4",
522
+      "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
523
+      "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",
524
+      "dev": true,
525
+      "optional": true
526
+    },
527
+    "pump": {
528
+      "version": "3.0.0",
529
+      "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
530
+      "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
531
+      "dev": true,
532
+      "requires": {
533
+        "end-of-stream": "^1.1.0",
534
+        "once": "^1.3.1"
535
+      }
536
+    },
537
+    "readable-stream": {
538
+      "version": "2.3.7",
539
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
540
+      "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
541
+      "dev": true,
542
+      "requires": {
543
+        "core-util-is": "~1.0.0",
544
+        "inherits": "~2.0.3",
545
+        "isarray": "~1.0.0",
546
+        "process-nextick-args": "~2.0.0",
547
+        "safe-buffer": "~5.1.1",
548
+        "string_decoder": "~1.1.1",
549
+        "util-deprecate": "~1.0.1"
550
+      }
551
+    },
552
+    "responselike": {
553
+      "version": "1.0.2",
554
+      "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
555
+      "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",
556
+      "dev": true,
557
+      "requires": {
558
+        "lowercase-keys": "^1.0.0"
559
+      }
560
+    },
561
+    "roarr": {
562
+      "version": "2.14.6",
563
+      "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.14.6.tgz",
564
+      "integrity": "sha512-qjbw0BEesKA+3XFBPt+KVe1PC/Z6ShfJ4wPlx2XifqH5h2Lj8/KQT5XJTsy3n1Es5kai+BwKALaECW3F70B1cg==",
565
+      "dev": true,
566
+      "optional": true,
567
+      "requires": {
568
+        "boolean": "^3.0.0",
569
+        "detect-node": "^2.0.4",
570
+        "globalthis": "^1.0.0",
571
+        "json-stringify-safe": "^5.0.1",
572
+        "semver-compare": "^1.0.0",
573
+        "sprintf-js": "^1.1.2"
574
+      }
575
+    },
576
+    "safe-buffer": {
577
+      "version": "5.1.2",
578
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
579
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
580
+      "dev": true
581
+    },
582
+    "sanitize-filename": {
583
+      "version": "1.6.3",
584
+      "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz",
585
+      "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==",
586
+      "dev": true,
587
+      "requires": {
588
+        "truncate-utf8-bytes": "^1.0.0"
589
+      }
590
+    },
591
+    "semver": {
592
+      "version": "6.3.0",
593
+      "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
594
+      "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
595
+      "dev": true,
596
+      "optional": true
597
+    },
598
+    "semver-compare": {
599
+      "version": "1.0.0",
600
+      "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",
601
+      "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=",
602
+      "dev": true,
603
+      "optional": true
604
+    },
605
+    "serialize-error": {
606
+      "version": "5.0.0",
607
+      "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-5.0.0.tgz",
608
+      "integrity": "sha512-/VtpuyzYf82mHYTtI4QKtwHa79vAdU5OQpNPAmE/0UDdlGT0ZxHwC+J6gXkw29wwoVI8fMPsfcVHOwXtUQYYQA==",
609
+      "dev": true,
610
+      "optional": true,
611
+      "requires": {
612
+        "type-fest": "^0.8.0"
613
+      }
614
+    },
615
+    "sprintf-js": {
616
+      "version": "1.1.2",
617
+      "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
618
+      "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
619
+      "dev": true,
620
+      "optional": true
621
+    },
622
+    "string_decoder": {
623
+      "version": "1.1.1",
624
+      "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
625
+      "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
626
+      "dev": true,
627
+      "requires": {
628
+        "safe-buffer": "~5.1.0"
629
+      }
630
+    },
631
+    "sumchecker": {
632
+      "version": "3.0.1",
633
+      "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",
634
+      "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",
635
+      "dev": true,
636
+      "requires": {
637
+        "debug": "^4.1.0"
638
+      }
639
+    },
640
+    "to-readable-stream": {
641
+      "version": "1.0.0",
642
+      "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz",
643
+      "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==",
644
+      "dev": true
645
+    },
646
+    "truncate-utf8-bytes": {
647
+      "version": "1.0.2",
648
+      "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
649
+      "integrity": "sha1-QFkjkJWS1W94pYGENLC3hInKXys=",
650
+      "dev": true,
651
+      "requires": {
652
+        "utf8-byte-length": "^1.0.1"
653
+      }
654
+    },
655
+    "tunnel": {
656
+      "version": "0.0.6",
657
+      "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
658
+      "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
659
+      "dev": true,
660
+      "optional": true
661
+    },
662
+    "type-fest": {
663
+      "version": "0.8.1",
664
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
665
+      "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
666
+      "dev": true,
667
+      "optional": true
668
+    },
669
+    "typedarray": {
670
+      "version": "0.0.6",
671
+      "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
672
+      "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
673
+      "dev": true
674
+    },
675
+    "universalify": {
676
+      "version": "0.1.2",
677
+      "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
678
+      "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
679
+      "dev": true
680
+    },
681
+    "url-parse-lax": {
682
+      "version": "3.0.0",
683
+      "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
684
+      "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
685
+      "dev": true,
686
+      "requires": {
687
+        "prepend-http": "^2.0.0"
688
+      }
689
+    },
690
+    "utf8-byte-length": {
691
+      "version": "1.0.4",
692
+      "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz",
693
+      "integrity": "sha1-9F8VDExm7uloGGUFq5P8u4rWv2E=",
694
+      "dev": true
695
+    },
696
+    "util-deprecate": {
697
+      "version": "1.0.2",
698
+      "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
699
+      "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
700
+      "dev": true
701
+    },
702
+    "wrappy": {
703
+      "version": "1.0.2",
704
+      "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
705
+      "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
706
+      "dev": true
707
+    },
708
+    "yauzl": {
709
+      "version": "2.4.1",
710
+      "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz",
711
+      "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=",
712
+      "dev": true,
713
+      "requires": {
714
+        "fd-slicer": "~1.0.1"
715
+      }
716
+    }
717
+  }
718
+}

+ 22
- 0
package.json View File

@@ -0,0 +1,22 @@
1
+{
2
+  "name": "electron-quick-start",
3
+  "version": "1.0.0",
4
+  "description": "A minimal Electron application",
5
+  "main": "main.js",
6
+  "scripts": {
7
+    "start": "electron ."
8
+  },
9
+  "repository": "https://github.com/electron/electron-quick-start",
10
+  "keywords": [
11
+    "Electron",
12
+    "quick",
13
+    "start",
14
+    "tutorial",
15
+    "demo"
16
+  ],
17
+  "author": "GitHub",
18
+  "license": "CC0-1.0",
19
+  "devDependencies": {
20
+    "electron": "^7.1.9"
21
+  }
22
+}

+ 12
- 0
preload.js View File

@@ -0,0 +1,12 @@
1
+// All of the Node.js APIs are available in the preload process.
2
+// It has the same sandbox as a Chrome extension.
3
+window.addEventListener('DOMContentLoaded', () => {
4
+  const replaceText = (selector, text) => {
5
+    const element = document.getElementById(selector)
6
+    if (element) element.innerText = text
7
+  }
8
+
9
+  for (const type of ['chrome', 'node', 'electron']) {
10
+    replaceText(`${type}-version`, process.versions[type])
11
+  }
12
+})

+ 10
- 0
renderer.js View File

@@ -0,0 +1,10 @@
1
+// This file is required by the index.html file and will
2
+// be executed in the renderer process for that window.
3
+// No Node.js APIs are available in this process because
4
+// `nodeIntegration` is turned off. Use `preload.js` to
5
+// selectively enable features needed in the rendering
6
+// process.
7
+
8
+
9
+const { BrowserWindow } = require('electron');
10
+

+ 10
- 0
test.html View File

@@ -0,0 +1,10 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <title>Title</title>
6
+</head>
7
+<body>a
8
+asdfasfd
9
+</body>
10
+</html>

+ 0
- 0
test.txt View File


Loading…
Cancel
Save