Explorar el Código

primer commit

master
Dieg hace 3 años
commit
3bd665d863

+ 23
- 0
.gitignore Ver fichero

@@ -0,0 +1,23 @@
1
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+# dependencies
4
+/node_modules
5
+/.pnp
6
+.pnp.js
7
+
8
+# testing
9
+/coverage
10
+
11
+# production
12
+/build
13
+
14
+# misc
15
+.DS_Store
16
+.env.local
17
+.env.development.local
18
+.env.test.local
19
+.env.production.local
20
+
21
+npm-debug.log*
22
+yarn-debug.log*
23
+yarn-error.log*

+ 68
- 0
README.md Ver fichero

@@ -0,0 +1,68 @@
1
+This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2
+
3
+## Available Scripts
4
+
5
+In the project directory, you can run:
6
+
7
+### `yarn start`
8
+
9
+Runs the app in the development mode.<br />
10
+Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11
+
12
+The page will reload if you make edits.<br />
13
+You will also see any lint errors in the console.
14
+
15
+### `yarn test`
16
+
17
+Launches the test runner in the interactive watch mode.<br />
18
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19
+
20
+### `yarn build`
21
+
22
+Builds the app for production to the `build` folder.<br />
23
+It correctly bundles React in production mode and optimizes the build for the best performance.
24
+
25
+The build is minified and the filenames include the hashes.<br />
26
+Your app is ready to be deployed!
27
+
28
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29
+
30
+### `yarn eject`
31
+
32
+**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33
+
34
+If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35
+
36
+Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37
+
38
+You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39
+
40
+## Learn More
41
+
42
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43
+
44
+To learn React, check out the [React documentation](https://reactjs.org/).
45
+
46
+### Code Splitting
47
+
48
+This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49
+
50
+### Analyzing the Bundle Size
51
+
52
+This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53
+
54
+### Making a Progressive Web App
55
+
56
+This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57
+
58
+### Advanced Configuration
59
+
60
+This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61
+
62
+### Deployment
63
+
64
+This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65
+
66
+### `yarn build` fails to minify
67
+
68
+This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

+ 4
- 0
electron/.gitignore Ver fichero

@@ -0,0 +1,4 @@
1
+/node_modules
2
+/build
3
+/release-builds
4
+*.sqlite3

BIN
electron/favicon2.png Ver fichero


+ 40
- 0
electron/main.js Ver fichero

@@ -0,0 +1,40 @@
1
+const { app, BrowserWindow } = require('electron')
2
+//const { spawn } = require("child_process");
3
+
4
+function createWindow() {
5
+	// Crea la ventana del navegador.
6
+	let win = new BrowserWindow({
7
+		minHeight: 768,
8
+		minWidth: 1366,
9
+		width: 1366,
10
+		height: 768,
11
+		webPreferences: {
12
+			nodeIntegration: true
13
+		},
14
+		autoHideMenuBar: true
15
+	})
16
+	// y carga el  index.html de la aplicación.
17
+	win.loadFile('build/index.html')
18
+}
19
+
20
+
21
+app.whenReady().then(() => {
22
+	createWindow()
23
+})
24
+
25
+// Finaliza cuando todas las ventanas estén cerradas.
26
+app.on('window-all-closed', () => {
27
+	// En macOS es común para las aplicaciones y sus barras de menú
28
+	// que estén activas hasta que el usuario salga explicitamente con Cmd + Q
29
+	if (process.platform !== 'darwin') {
30
+		app.quit()
31
+	}
32
+})
33
+
34
+app.on('activate', () => {
35
+	// En macOS es común volver a crear una ventana en la aplicación cuando el
36
+	// icono del dock es clicado y no hay otras ventanas abiertas.
37
+	if (BrowserWindow.getAllWindows().length === 0) {
38
+		createWindow()
39
+	}
40
+})

+ 14
- 0
electron/package.json Ver fichero

@@ -0,0 +1,14 @@
1
+{
2
+	"main": "main.js",
3
+	"scripts": {
4
+		"start": "electron .",
5
+		"package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --prune=true --out=release-builds",
6
+		"package-win": "electron-packager . Divisas --overwrite --asar --platform=win32 --arch=ia32 --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Divisas\" --icon=build/favicon2.ico",
7
+		"package-linux": "electron-packager . divisas-app --overwrite --asar=true --platform=linux --arch=x64 --prune=true --out=release-builds"
8
+	},
9
+	"devDependencies": {
10
+		"electron": "^9.0.4",
11
+		"electron-packager": "^15.0.0"
12
+	},
13
+	"dependencies": {}
14
+}

+ 951
- 0
electron/yarn.lock Ver fichero

@@ -0,0 +1,951 @@
1
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+# yarn lockfile v1
3
+
4
+
5
+"@electron/get@^1.0.1", "@electron/get@^1.6.0":
6
+  version "1.12.2"
7
+  resolved "https://registry.yarnpkg.com/@electron/get/-/get-1.12.2.tgz#6442066afb99be08cefb9a281e4b4692b33764f3"
8
+  dependencies:
9
+    debug "^4.1.1"
10
+    env-paths "^2.2.0"
11
+    fs-extra "^8.1.0"
12
+    got "^9.6.0"
13
+    progress "^2.0.3"
14
+    sanitize-filename "^1.6.2"
15
+    sumchecker "^3.0.1"
16
+  optionalDependencies:
17
+    global-agent "^2.0.2"
18
+    global-tunnel-ng "^2.7.1"
19
+
20
+"@sindresorhus/is@^0.14.0":
21
+  version "0.14.0"
22
+  resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
23
+
24
+"@szmarczak/http-timer@^1.1.2":
25
+  version "1.1.2"
26
+  resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
27
+  dependencies:
28
+    defer-to-connect "^1.0.1"
29
+
30
+"@types/glob@^7.1.1":
31
+  version "7.1.2"
32
+  resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.2.tgz#06ca26521353a545d94a0adc74f38a59d232c987"
33
+  dependencies:
34
+    "@types/minimatch" "*"
35
+    "@types/node" "*"
36
+
37
+"@types/minimatch@*":
38
+  version "3.0.3"
39
+  resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
40
+
41
+"@types/node@*":
42
+  version "14.0.14"
43
+  resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.14.tgz#24a0b5959f16ac141aeb0c5b3cd7a15b7c64cbce"
44
+
45
+"@types/node@^12.0.12":
46
+  version "12.12.47"
47
+  resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.47.tgz#5007b8866a2f9150de82335ca7e24dd1d59bdfb5"
48
+
49
+"@types/yauzl@^2.9.1":
50
+  version "2.9.1"
51
+  resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.9.1.tgz#d10f69f9f522eef3cf98e30afb684a1e1ec923af"
52
+  dependencies:
53
+    "@types/node" "*"
54
+
55
+asar@^3.0.0:
56
+  version "3.0.3"
57
+  resolved "https://registry.yarnpkg.com/asar/-/asar-3.0.3.tgz#1fef03c2d6d2de0cbad138788e4f7ae03b129c7b"
58
+  dependencies:
59
+    chromium-pickle-js "^0.2.0"
60
+    commander "^5.0.0"
61
+    glob "^7.1.6"
62
+    minimatch "^3.0.4"
63
+  optionalDependencies:
64
+    "@types/glob" "^7.1.1"
65
+
66
+at-least-node@^1.0.0:
67
+  version "1.0.0"
68
+  resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
69
+
70
+author-regex@^1.0.0:
71
+  version "1.0.0"
72
+  resolved "https://registry.yarnpkg.com/author-regex/-/author-regex-1.0.0.tgz#d08885be6b9bbf9439fe087c76287245f0a81450"
73
+
74
+balanced-match@^1.0.0:
75
+  version "1.0.0"
76
+  resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
77
+
78
+base64-js@^1.2.3:
79
+  version "1.3.1"
80
+  resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1"
81
+
82
+bluebird@^3.1.1, bluebird@^3.5.0:
83
+  version "3.7.2"
84
+  resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
85
+
86
+boolean@^3.0.0, boolean@^3.0.1:
87
+  version "3.0.1"
88
+  resolved "https://registry.yarnpkg.com/boolean/-/boolean-3.0.1.tgz#35ecf2b4a2ee191b0b44986f14eb5f052a5cbb4f"
89
+
90
+brace-expansion@^1.1.7:
91
+  version "1.1.11"
92
+  resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
93
+  dependencies:
94
+    balanced-match "^1.0.0"
95
+    concat-map "0.0.1"
96
+
97
+buffer-alloc-unsafe@^1.1.0:
98
+  version "1.1.0"
99
+  resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0"
100
+
101
+buffer-alloc@^1.2.0:
102
+  version "1.2.0"
103
+  resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec"
104
+  dependencies:
105
+    buffer-alloc-unsafe "^1.1.0"
106
+    buffer-fill "^1.0.0"
107
+
108
+buffer-crc32@~0.2.3:
109
+  version "0.2.13"
110
+  resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
111
+
112
+buffer-fill@^1.0.0:
113
+  version "1.0.0"
114
+  resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c"
115
+
116
+buffer-from@^1.0.0:
117
+  version "1.1.1"
118
+  resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
119
+
120
+cacheable-request@^6.0.0:
121
+  version "6.1.0"
122
+  resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912"
123
+  dependencies:
124
+    clone-response "^1.0.2"
125
+    get-stream "^5.1.0"
126
+    http-cache-semantics "^4.0.0"
127
+    keyv "^3.0.0"
128
+    lowercase-keys "^2.0.0"
129
+    normalize-url "^4.1.0"
130
+    responselike "^1.0.2"
131
+
132
+camelcase@^5.0.0:
133
+  version "5.3.1"
134
+  resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320"
135
+
136
+chromium-pickle-js@^0.2.0:
137
+  version "0.2.0"
138
+  resolved "https://registry.yarnpkg.com/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz#04a106672c18b085ab774d983dfa3ea138f22205"
139
+
140
+clone-response@^1.0.2:
141
+  version "1.0.2"
142
+  resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b"
143
+  dependencies:
144
+    mimic-response "^1.0.0"
145
+
146
+commander@^5.0.0:
147
+  version "5.1.0"
148
+  resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
149
+
150
+compare-version@^0.1.2:
151
+  version "0.1.2"
152
+  resolved "https://registry.yarnpkg.com/compare-version/-/compare-version-0.1.2.tgz#0162ec2d9351f5ddd59a9202cba935366a725080"
153
+
154
+concat-map@0.0.1:
155
+  version "0.0.1"
156
+  resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
157
+
158
+concat-stream@^1.6.2:
159
+  version "1.6.2"
160
+  resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
161
+  dependencies:
162
+    buffer-from "^1.0.0"
163
+    inherits "^2.0.3"
164
+    readable-stream "^2.2.2"
165
+    typedarray "^0.0.6"
166
+
167
+config-chain@^1.1.11:
168
+  version "1.1.12"
169
+  resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa"
170
+  dependencies:
171
+    ini "^1.3.4"
172
+    proto-list "~1.2.1"
173
+
174
+core-js@^3.6.5:
175
+  version "3.6.5"
176
+  resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.5.tgz#7395dc273af37fb2e50e9bd3d9fe841285231d1a"
177
+
178
+core-util-is@~1.0.0:
179
+  version "1.0.2"
180
+  resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
181
+
182
+debug@^2.2.0, debug@^2.6.8, debug@^2.6.9:
183
+  version "2.6.9"
184
+  resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
185
+  dependencies:
186
+    ms "2.0.0"
187
+
188
+debug@^3.1.0:
189
+  version "3.2.6"
190
+  resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
191
+  dependencies:
192
+    ms "^2.1.1"
193
+
194
+debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
195
+  version "4.1.1"
196
+  resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
197
+  dependencies:
198
+    ms "^2.1.1"
199
+
200
+decamelize@^1.2.0:
201
+  version "1.2.0"
202
+  resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
203
+
204
+decompress-response@^3.3.0:
205
+  version "3.3.0"
206
+  resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3"
207
+  dependencies:
208
+    mimic-response "^1.0.0"
209
+
210
+defer-to-connect@^1.0.1:
211
+  version "1.1.3"
212
+  resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591"
213
+
214
+define-properties@^1.1.3:
215
+  version "1.1.3"
216
+  resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
217
+  dependencies:
218
+    object-keys "^1.0.12"
219
+
220
+detect-node@^2.0.4:
221
+  version "2.0.4"
222
+  resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c"
223
+
224
+duplexer3@^0.1.4:
225
+  version "0.1.4"
226
+  resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
227
+
228
+electron-notarize@^1.0.0:
229
+  version "1.0.0"
230
+  resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-1.0.0.tgz#bc925b1ccc3f79e58e029e8c4706572b01a9fd8f"
231
+  dependencies:
232
+    debug "^4.1.1"
233
+    fs-extra "^9.0.1"
234
+
235
+electron-osx-sign@^0.4.11:
236
+  version "0.4.17"
237
+  resolved "https://registry.yarnpkg.com/electron-osx-sign/-/electron-osx-sign-0.4.17.tgz#2727ca0c79e1e4e5ccd3861fb3da9c3c913b006c"
238
+  dependencies:
239
+    bluebird "^3.5.0"
240
+    compare-version "^0.1.2"
241
+    debug "^2.6.8"
242
+    isbinaryfile "^3.0.2"
243
+    minimist "^1.2.0"
244
+    plist "^3.0.1"
245
+
246
+electron-packager@^15.0.0:
247
+  version "15.0.0"
248
+  resolved "https://registry.yarnpkg.com/electron-packager/-/electron-packager-15.0.0.tgz#40eb28a273a1251da9e089f6fde4222e72f6eedd"
249
+  dependencies:
250
+    "@electron/get" "^1.6.0"
251
+    asar "^3.0.0"
252
+    debug "^4.0.1"
253
+    electron-notarize "^1.0.0"
254
+    electron-osx-sign "^0.4.11"
255
+    extract-zip "^2.0.0"
256
+    filenamify "^4.1.0"
257
+    fs-extra "^9.0.0"
258
+    galactus "^0.2.1"
259
+    get-package-info "^1.0.0"
260
+    junk "^3.1.0"
261
+    parse-author "^2.0.0"
262
+    plist "^3.0.0"
263
+    rcedit "^2.0.0"
264
+    resolve "^1.1.6"
265
+    semver "^7.1.3"
266
+    yargs-parser "^18.0.0"
267
+
268
+electron@^9.0.4:
269
+  version "9.0.4"
270
+  resolved "https://registry.yarnpkg.com/electron/-/electron-9.0.4.tgz#5aa72c1576c82c19f6e087311ffe1d7b74358d25"
271
+  dependencies:
272
+    "@electron/get" "^1.0.1"
273
+    "@types/node" "^12.0.12"
274
+    extract-zip "^1.0.3"
275
+
276
+encodeurl@^1.0.2:
277
+  version "1.0.2"
278
+  resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
279
+
280
+end-of-stream@^1.1.0:
281
+  version "1.4.4"
282
+  resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
283
+  dependencies:
284
+    once "^1.4.0"
285
+
286
+env-paths@^2.2.0:
287
+  version "2.2.0"
288
+  resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43"
289
+
290
+error-ex@^1.2.0:
291
+  version "1.3.2"
292
+  resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
293
+  dependencies:
294
+    is-arrayish "^0.2.1"
295
+
296
+es6-error@^4.1.1:
297
+  version "4.1.1"
298
+  resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
299
+
300
+escape-string-regexp@^1.0.2:
301
+  version "1.0.5"
302
+  resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
303
+
304
+escape-string-regexp@^4.0.0:
305
+  version "4.0.0"
306
+  resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
307
+
308
+extract-zip@^1.0.3:
309
+  version "1.7.0"
310
+  resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.7.0.tgz#556cc3ae9df7f452c493a0cfb51cc30277940927"
311
+  dependencies:
312
+    concat-stream "^1.6.2"
313
+    debug "^2.6.9"
314
+    mkdirp "^0.5.4"
315
+    yauzl "^2.10.0"
316
+
317
+extract-zip@^2.0.0:
318
+  version "2.0.1"
319
+  resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a"
320
+  dependencies:
321
+    debug "^4.1.1"
322
+    get-stream "^5.1.0"
323
+    yauzl "^2.10.0"
324
+  optionalDependencies:
325
+    "@types/yauzl" "^2.9.1"
326
+
327
+fd-slicer@~1.1.0:
328
+  version "1.1.0"
329
+  resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
330
+  dependencies:
331
+    pend "~1.2.0"
332
+
333
+filename-reserved-regex@^2.0.0:
334
+  version "2.0.0"
335
+  resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229"
336
+
337
+filenamify@^4.1.0:
338
+  version "4.1.0"
339
+  resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-4.1.0.tgz#54d110810ae74eebfe115c1b995bd07e03cf2184"
340
+  dependencies:
341
+    filename-reserved-regex "^2.0.0"
342
+    strip-outer "^1.0.1"
343
+    trim-repeated "^1.0.0"
344
+
345
+find-up@^2.0.0:
346
+  version "2.1.0"
347
+  resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
348
+  dependencies:
349
+    locate-path "^2.0.0"
350
+
351
+flora-colossus@^1.0.0:
352
+  version "1.0.1"
353
+  resolved "https://registry.yarnpkg.com/flora-colossus/-/flora-colossus-1.0.1.tgz#aba198425a8185341e64f9d2a6a96fd9a3cbdb93"
354
+  dependencies:
355
+    debug "^4.1.1"
356
+    fs-extra "^7.0.0"
357
+
358
+fs-extra@^4.0.0:
359
+  version "4.0.3"
360
+  resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94"
361
+  dependencies:
362
+    graceful-fs "^4.1.2"
363
+    jsonfile "^4.0.0"
364
+    universalify "^0.1.0"
365
+
366
+fs-extra@^7.0.0:
367
+  version "7.0.1"
368
+  resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
369
+  dependencies:
370
+    graceful-fs "^4.1.2"
371
+    jsonfile "^4.0.0"
372
+    universalify "^0.1.0"
373
+
374
+fs-extra@^8.1.0:
375
+  version "8.1.0"
376
+  resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
377
+  dependencies:
378
+    graceful-fs "^4.2.0"
379
+    jsonfile "^4.0.0"
380
+    universalify "^0.1.0"
381
+
382
+fs-extra@^9.0.0, fs-extra@^9.0.1:
383
+  version "9.0.1"
384
+  resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
385
+  dependencies:
386
+    at-least-node "^1.0.0"
387
+    graceful-fs "^4.2.0"
388
+    jsonfile "^6.0.1"
389
+    universalify "^1.0.0"
390
+
391
+fs.realpath@^1.0.0:
392
+  version "1.0.0"
393
+  resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
394
+
395
+galactus@^0.2.1:
396
+  version "0.2.1"
397
+  resolved "https://registry.yarnpkg.com/galactus/-/galactus-0.2.1.tgz#cbed2d20a40c1f5679a35908e2b9415733e78db9"
398
+  dependencies:
399
+    debug "^3.1.0"
400
+    flora-colossus "^1.0.0"
401
+    fs-extra "^4.0.0"
402
+
403
+get-package-info@^1.0.0:
404
+  version "1.0.0"
405
+  resolved "https://registry.yarnpkg.com/get-package-info/-/get-package-info-1.0.0.tgz#6432796563e28113cd9474dbbd00052985a4999c"
406
+  dependencies:
407
+    bluebird "^3.1.1"
408
+    debug "^2.2.0"
409
+    lodash.get "^4.0.0"
410
+    read-pkg-up "^2.0.0"
411
+
412
+get-stream@^4.1.0:
413
+  version "4.1.0"
414
+  resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5"
415
+  dependencies:
416
+    pump "^3.0.0"
417
+
418
+get-stream@^5.1.0:
419
+  version "5.1.0"
420
+  resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9"
421
+  dependencies:
422
+    pump "^3.0.0"
423
+
424
+glob@^7.1.6:
425
+  version "7.1.6"
426
+  resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
427
+  dependencies:
428
+    fs.realpath "^1.0.0"
429
+    inflight "^1.0.4"
430
+    inherits "2"
431
+    minimatch "^3.0.4"
432
+    once "^1.3.0"
433
+    path-is-absolute "^1.0.0"
434
+
435
+global-agent@^2.0.2:
436
+  version "2.1.12"
437
+  resolved "https://registry.yarnpkg.com/global-agent/-/global-agent-2.1.12.tgz#e4ae3812b731a9e81cbf825f9377ef450a8e4195"
438
+  dependencies:
439
+    boolean "^3.0.1"
440
+    core-js "^3.6.5"
441
+    es6-error "^4.1.1"
442
+    matcher "^3.0.0"
443
+    roarr "^2.15.3"
444
+    semver "^7.3.2"
445
+    serialize-error "^7.0.1"
446
+
447
+global-tunnel-ng@^2.7.1:
448
+  version "2.7.1"
449
+  resolved "https://registry.yarnpkg.com/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz#d03b5102dfde3a69914f5ee7d86761ca35d57d8f"
450
+  dependencies:
451
+    encodeurl "^1.0.2"
452
+    lodash "^4.17.10"
453
+    npm-conf "^1.1.3"
454
+    tunnel "^0.0.6"
455
+
456
+globalthis@^1.0.1:
457
+  version "1.0.1"
458
+  resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.1.tgz#40116f5d9c071f9e8fb0037654df1ab3a83b7ef9"
459
+  dependencies:
460
+    define-properties "^1.1.3"
461
+
462
+got@^9.6.0:
463
+  version "9.6.0"
464
+  resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85"
465
+  dependencies:
466
+    "@sindresorhus/is" "^0.14.0"
467
+    "@szmarczak/http-timer" "^1.1.2"
468
+    cacheable-request "^6.0.0"
469
+    decompress-response "^3.3.0"
470
+    duplexer3 "^0.1.4"
471
+    get-stream "^4.1.0"
472
+    lowercase-keys "^1.0.1"
473
+    mimic-response "^1.0.1"
474
+    p-cancelable "^1.0.0"
475
+    to-readable-stream "^1.0.0"
476
+    url-parse-lax "^3.0.0"
477
+
478
+graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
479
+  version "4.2.4"
480
+  resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
481
+
482
+hosted-git-info@^2.1.4:
483
+  version "2.8.8"
484
+  resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488"
485
+
486
+http-cache-semantics@^4.0.0:
487
+  version "4.1.0"
488
+  resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
489
+
490
+inflight@^1.0.4:
491
+  version "1.0.6"
492
+  resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
493
+  dependencies:
494
+    once "^1.3.0"
495
+    wrappy "1"
496
+
497
+inherits@2, inherits@^2.0.3, inherits@~2.0.3:
498
+  version "2.0.4"
499
+  resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
500
+
501
+ini@^1.3.4:
502
+  version "1.3.5"
503
+  resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
504
+
505
+is-arrayish@^0.2.1:
506
+  version "0.2.1"
507
+  resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
508
+
509
+isarray@~1.0.0:
510
+  version "1.0.0"
511
+  resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
512
+
513
+isbinaryfile@^3.0.2:
514
+  version "3.0.3"
515
+  resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-3.0.3.tgz#5d6def3edebf6e8ca8cae9c30183a804b5f8be80"
516
+  dependencies:
517
+    buffer-alloc "^1.2.0"
518
+
519
+json-buffer@3.0.0:
520
+  version "3.0.0"
521
+  resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898"
522
+
523
+json-stringify-safe@^5.0.1:
524
+  version "5.0.1"
525
+  resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
526
+
527
+jsonfile@^4.0.0:
528
+  version "4.0.0"
529
+  resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
530
+  optionalDependencies:
531
+    graceful-fs "^4.1.6"
532
+
533
+jsonfile@^6.0.1:
534
+  version "6.0.1"
535
+  resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179"
536
+  dependencies:
537
+    universalify "^1.0.0"
538
+  optionalDependencies:
539
+    graceful-fs "^4.1.6"
540
+
541
+junk@^3.1.0:
542
+  version "3.1.0"
543
+  resolved "https://registry.yarnpkg.com/junk/-/junk-3.1.0.tgz#31499098d902b7e98c5d9b9c80f43457a88abfa1"
544
+
545
+keyv@^3.0.0:
546
+  version "3.1.0"
547
+  resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9"
548
+  dependencies:
549
+    json-buffer "3.0.0"
550
+
551
+load-json-file@^2.0.0:
552
+  version "2.0.0"
553
+  resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8"
554
+  dependencies:
555
+    graceful-fs "^4.1.2"
556
+    parse-json "^2.2.0"
557
+    pify "^2.0.0"
558
+    strip-bom "^3.0.0"
559
+
560
+locate-path@^2.0.0:
561
+  version "2.0.0"
562
+  resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
563
+  dependencies:
564
+    p-locate "^2.0.0"
565
+    path-exists "^3.0.0"
566
+
567
+lodash.get@^4.0.0:
568
+  version "4.4.2"
569
+  resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
570
+
571
+lodash@^4.17.10:
572
+  version "4.17.15"
573
+  resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
574
+
575
+lowercase-keys@^1.0.0, lowercase-keys@^1.0.1:
576
+  version "1.0.1"
577
+  resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
578
+
579
+lowercase-keys@^2.0.0:
580
+  version "2.0.0"
581
+  resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479"
582
+
583
+matcher@^3.0.0:
584
+  version "3.0.0"
585
+  resolved "https://registry.yarnpkg.com/matcher/-/matcher-3.0.0.tgz#bd9060f4c5b70aa8041ccc6f80368760994f30ca"
586
+  dependencies:
587
+    escape-string-regexp "^4.0.0"
588
+
589
+mimic-response@^1.0.0, mimic-response@^1.0.1:
590
+  version "1.0.1"
591
+  resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
592
+
593
+minimatch@^3.0.4:
594
+  version "3.0.4"
595
+  resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
596
+  dependencies:
597
+    brace-expansion "^1.1.7"
598
+
599
+minimist@^1.2.0, minimist@^1.2.5:
600
+  version "1.2.5"
601
+  resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
602
+
603
+mkdirp@^0.5.4:
604
+  version "0.5.5"
605
+  resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
606
+  dependencies:
607
+    minimist "^1.2.5"
608
+
609
+ms@2.0.0:
610
+  version "2.0.0"
611
+  resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
612
+
613
+ms@^2.1.1:
614
+  version "2.1.2"
615
+  resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
616
+
617
+normalize-package-data@^2.3.2:
618
+  version "2.5.0"
619
+  resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8"
620
+  dependencies:
621
+    hosted-git-info "^2.1.4"
622
+    resolve "^1.10.0"
623
+    semver "2 || 3 || 4 || 5"
624
+    validate-npm-package-license "^3.0.1"
625
+
626
+normalize-url@^4.1.0:
627
+  version "4.5.0"
628
+  resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
629
+
630
+npm-conf@^1.1.3:
631
+  version "1.1.3"
632
+  resolved "https://registry.yarnpkg.com/npm-conf/-/npm-conf-1.1.3.tgz#256cc47bd0e218c259c4e9550bf413bc2192aff9"
633
+  dependencies:
634
+    config-chain "^1.1.11"
635
+    pify "^3.0.0"
636
+
637
+object-keys@^1.0.12:
638
+  version "1.1.1"
639
+  resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
640
+
641
+once@^1.3.0, once@^1.3.1, once@^1.4.0:
642
+  version "1.4.0"
643
+  resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
644
+  dependencies:
645
+    wrappy "1"
646
+
647
+p-cancelable@^1.0.0:
648
+  version "1.1.0"
649
+  resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc"
650
+
651
+p-limit@^1.1.0:
652
+  version "1.3.0"
653
+  resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
654
+  dependencies:
655
+    p-try "^1.0.0"
656
+
657
+p-locate@^2.0.0:
658
+  version "2.0.0"
659
+  resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
660
+  dependencies:
661
+    p-limit "^1.1.0"
662
+
663
+p-try@^1.0.0:
664
+  version "1.0.0"
665
+  resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
666
+
667
+parse-author@^2.0.0:
668
+  version "2.0.0"
669
+  resolved "https://registry.yarnpkg.com/parse-author/-/parse-author-2.0.0.tgz#d3460bf1ddd0dfaeed42da754242e65fb684a81f"
670
+  dependencies:
671
+    author-regex "^1.0.0"
672
+
673
+parse-json@^2.2.0:
674
+  version "2.2.0"
675
+  resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
676
+  dependencies:
677
+    error-ex "^1.2.0"
678
+
679
+path-exists@^3.0.0:
680
+  version "3.0.0"
681
+  resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
682
+
683
+path-is-absolute@^1.0.0:
684
+  version "1.0.1"
685
+  resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
686
+
687
+path-parse@^1.0.6:
688
+  version "1.0.6"
689
+  resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
690
+
691
+path-type@^2.0.0:
692
+  version "2.0.0"
693
+  resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73"
694
+  dependencies:
695
+    pify "^2.0.0"
696
+
697
+pend@~1.2.0:
698
+  version "1.2.0"
699
+  resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
700
+
701
+pify@^2.0.0:
702
+  version "2.3.0"
703
+  resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
704
+
705
+pify@^3.0.0:
706
+  version "3.0.0"
707
+  resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
708
+
709
+plist@^3.0.0, plist@^3.0.1:
710
+  version "3.0.1"
711
+  resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.1.tgz#a9b931d17c304e8912ef0ba3bdd6182baf2e1f8c"
712
+  dependencies:
713
+    base64-js "^1.2.3"
714
+    xmlbuilder "^9.0.7"
715
+    xmldom "0.1.x"
716
+
717
+prepend-http@^2.0.0:
718
+  version "2.0.0"
719
+  resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
720
+
721
+process-nextick-args@~2.0.0:
722
+  version "2.0.1"
723
+  resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
724
+
725
+progress@^2.0.3:
726
+  version "2.0.3"
727
+  resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
728
+
729
+proto-list@~1.2.1:
730
+  version "1.2.4"
731
+  resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
732
+
733
+pump@^3.0.0:
734
+  version "3.0.0"
735
+  resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
736
+  dependencies:
737
+    end-of-stream "^1.1.0"
738
+    once "^1.3.1"
739
+
740
+rcedit@^2.0.0:
741
+  version "2.2.0"
742
+  resolved "https://registry.yarnpkg.com/rcedit/-/rcedit-2.2.0.tgz#3bfe71248749fa821fef26eda3d35f4e0ee47afc"
743
+
744
+read-pkg-up@^2.0.0:
745
+  version "2.0.0"
746
+  resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
747
+  dependencies:
748
+    find-up "^2.0.0"
749
+    read-pkg "^2.0.0"
750
+
751
+read-pkg@^2.0.0:
752
+  version "2.0.0"
753
+  resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8"
754
+  dependencies:
755
+    load-json-file "^2.0.0"
756
+    normalize-package-data "^2.3.2"
757
+    path-type "^2.0.0"
758
+
759
+readable-stream@^2.2.2:
760
+  version "2.3.7"
761
+  resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
762
+  dependencies:
763
+    core-util-is "~1.0.0"
764
+    inherits "~2.0.3"
765
+    isarray "~1.0.0"
766
+    process-nextick-args "~2.0.0"
767
+    safe-buffer "~5.1.1"
768
+    string_decoder "~1.1.1"
769
+    util-deprecate "~1.0.1"
770
+
771
+resolve@^1.1.6, resolve@^1.10.0:
772
+  version "1.17.0"
773
+  resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"
774
+  dependencies:
775
+    path-parse "^1.0.6"
776
+
777
+responselike@^1.0.2:
778
+  version "1.0.2"
779
+  resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
780
+  dependencies:
781
+    lowercase-keys "^1.0.0"
782
+
783
+roarr@^2.15.3:
784
+  version "2.15.3"
785
+  resolved "https://registry.yarnpkg.com/roarr/-/roarr-2.15.3.tgz#65248a291a15af3ebfd767cbf7e44cb402d1d836"
786
+  dependencies:
787
+    boolean "^3.0.0"
788
+    detect-node "^2.0.4"
789
+    globalthis "^1.0.1"
790
+    json-stringify-safe "^5.0.1"
791
+    semver-compare "^1.0.0"
792
+    sprintf-js "^1.1.2"
793
+
794
+safe-buffer@~5.1.0, safe-buffer@~5.1.1:
795
+  version "5.1.2"
796
+  resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
797
+
798
+sanitize-filename@^1.6.2:
799
+  version "1.6.3"
800
+  resolved "https://registry.yarnpkg.com/sanitize-filename/-/sanitize-filename-1.6.3.tgz#755ebd752045931977e30b2025d340d7c9090378"
801
+  dependencies:
802
+    truncate-utf8-bytes "^1.0.0"
803
+
804
+semver-compare@^1.0.0:
805
+  version "1.0.0"
806
+  resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
807
+
808
+"semver@2 || 3 || 4 || 5":
809
+  version "5.7.1"
810
+  resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
811
+
812
+semver@^7.1.3, semver@^7.3.2:
813
+  version "7.3.2"
814
+  resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
815
+
816
+serialize-error@^7.0.1:
817
+  version "7.0.1"
818
+  resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-7.0.1.tgz#f1360b0447f61ffb483ec4157c737fab7d778e18"
819
+  dependencies:
820
+    type-fest "^0.13.1"
821
+
822
+spdx-correct@^3.0.0:
823
+  version "3.1.1"
824
+  resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9"
825
+  dependencies:
826
+    spdx-expression-parse "^3.0.0"
827
+    spdx-license-ids "^3.0.0"
828
+
829
+spdx-exceptions@^2.1.0:
830
+  version "2.3.0"
831
+  resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d"
832
+
833
+spdx-expression-parse@^3.0.0:
834
+  version "3.0.1"
835
+  resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679"
836
+  dependencies:
837
+    spdx-exceptions "^2.1.0"
838
+    spdx-license-ids "^3.0.0"
839
+
840
+spdx-license-ids@^3.0.0:
841
+  version "3.0.5"
842
+  resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654"
843
+
844
+sprintf-js@^1.1.2:
845
+  version "1.1.2"
846
+  resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.2.tgz#da1765262bf8c0f571749f2ad6c26300207ae673"
847
+
848
+string_decoder@~1.1.1:
849
+  version "1.1.1"
850
+  resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
851
+  dependencies:
852
+    safe-buffer "~5.1.0"
853
+
854
+strip-bom@^3.0.0:
855
+  version "3.0.0"
856
+  resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
857
+
858
+strip-outer@^1.0.1:
859
+  version "1.0.1"
860
+  resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631"
861
+  dependencies:
862
+    escape-string-regexp "^1.0.2"
863
+
864
+sumchecker@^3.0.1:
865
+  version "3.0.1"
866
+  resolved "https://registry.yarnpkg.com/sumchecker/-/sumchecker-3.0.1.tgz#6377e996795abb0b6d348e9b3e1dfb24345a8e42"
867
+  dependencies:
868
+    debug "^4.1.0"
869
+
870
+to-readable-stream@^1.0.0:
871
+  version "1.0.0"
872
+  resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771"
873
+
874
+trim-repeated@^1.0.0:
875
+  version "1.0.0"
876
+  resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21"
877
+  dependencies:
878
+    escape-string-regexp "^1.0.2"
879
+
880
+truncate-utf8-bytes@^1.0.0:
881
+  version "1.0.2"
882
+  resolved "https://registry.yarnpkg.com/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz#405923909592d56f78a5818434b0b78489ca5f2b"
883
+  dependencies:
884
+    utf8-byte-length "^1.0.1"
885
+
886
+tunnel@^0.0.6:
887
+  version "0.0.6"
888
+  resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
889
+
890
+type-fest@^0.13.1:
891
+  version "0.13.1"
892
+  resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934"
893
+
894
+typedarray@^0.0.6:
895
+  version "0.0.6"
896
+  resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
897
+
898
+universalify@^0.1.0:
899
+  version "0.1.2"
900
+  resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
901
+
902
+universalify@^1.0.0:
903
+  version "1.0.0"
904
+  resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d"
905
+
906
+url-parse-lax@^3.0.0:
907
+  version "3.0.0"
908
+  resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c"
909
+  dependencies:
910
+    prepend-http "^2.0.0"
911
+
912
+utf8-byte-length@^1.0.1:
913
+  version "1.0.4"
914
+  resolved "https://registry.yarnpkg.com/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz#f45f150c4c66eee968186505ab93fcbb8ad6bf61"
915
+
916
+util-deprecate@~1.0.1:
917
+  version "1.0.2"
918
+  resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
919
+
920
+validate-npm-package-license@^3.0.1:
921
+  version "3.0.4"
922
+  resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
923
+  dependencies:
924
+    spdx-correct "^3.0.0"
925
+    spdx-expression-parse "^3.0.0"
926
+
927
+wrappy@1:
928
+  version "1.0.2"
929
+  resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
930
+
931
+xmlbuilder@^9.0.7:
932
+  version "9.0.7"
933
+  resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d"
934
+
935
+xmldom@0.1.x:
936
+  version "0.1.31"
937
+  resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.31.tgz#b76c9a1bd9f0a9737e5a72dc37231cf38375e2ff"
938
+
939
+yargs-parser@^18.0.0:
940
+  version "18.1.3"
941
+  resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0"
942
+  dependencies:
943
+    camelcase "^5.0.0"
944
+    decamelize "^1.2.0"
945
+
946
+yauzl@^2.10.0:
947
+  version "2.10.0"
948
+  resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
949
+  dependencies:
950
+    buffer-crc32 "~0.2.3"
951
+    fd-slicer "~1.1.0"

+ 40
- 0
package.json Ver fichero

@@ -0,0 +1,40 @@
1
+{
2
+  "name": "goahead-front",
3
+  "version": "0.1.0",
4
+  "private": true,
5
+  "dependencies": {
6
+    "@material-ui/core": "^4.11.0",
7
+    "@material-ui/icons": "^4.9.1",
8
+    "@testing-library/jest-dom": "^4.2.4",
9
+    "@testing-library/react": "^9.3.2",
10
+    "@testing-library/user-event": "^7.1.2",
11
+    "react": "^16.13.1",
12
+    "react-dom": "^16.13.1",
13
+    "react-redux": "^7.2.0",
14
+    "react-router-dom": "^5.2.0",
15
+    "react-scripts": "3.4.1",
16
+    "redux": "^4.0.5"
17
+  },
18
+  "scripts": {
19
+    "start": "react-scripts start",
20
+    "s": "react-scripts start",
21
+    "build": "react-scripts build",
22
+    "test": "react-scripts test",
23
+    "eject": "react-scripts eject"
24
+  },
25
+  "eslintConfig": {
26
+    "extends": "react-app"
27
+  },
28
+  "browserslist": {
29
+    "production": [
30
+      ">0.2%",
31
+      "not dead",
32
+      "not op_mini all"
33
+    ],
34
+    "development": [
35
+      "last 1 chrome version",
36
+      "last 1 firefox version",
37
+      "last 1 safari version"
38
+    ]
39
+  }
40
+}

BIN
public/favicon.ico Ver fichero


+ 43
- 0
public/index.html Ver fichero

@@ -0,0 +1,43 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+  <head>
4
+    <meta charset="utf-8" />
5
+    <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
+    <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+    <meta name="theme-color" content="#000000" />
8
+    <meta
9
+      name="description"
10
+      content="Web site created using create-react-app"
11
+    />
12
+    <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
+    <!--
14
+      manifest.json provides metadata used when your web app is installed on a
15
+      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16
+    -->
17
+    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18
+    <!--
19
+      Notice the use of %PUBLIC_URL% in the tags above.
20
+      It will be replaced with the URL of the `public` folder during the build.
21
+      Only files inside the `public` folder can be referenced from the HTML.
22
+
23
+      Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24
+      work correctly both with client-side routing and a non-root public URL.
25
+      Learn how to configure a non-root public URL by running `npm run build`.
26
+    -->
27
+    <title>GOAHEAD</title>
28
+  </head>
29
+  <body>
30
+    <noscript>You need to enable JavaScript to run this app.</noscript>
31
+    <div id="root"></div>
32
+    <!--
33
+      This HTML file is a template.
34
+      If you open it directly in the browser, you will see an empty page.
35
+
36
+      You can add webfonts, meta tags, or analytics to this file.
37
+      The build step will place the bundled scripts into the <body> tag.
38
+
39
+      To begin the development, run `npm start` or `yarn start`.
40
+      To create a production bundle, use `npm run build` or `yarn build`.
41
+    -->
42
+  </body>
43
+</html>

BIN
public/logo192.png Ver fichero


BIN
public/logo512.png Ver fichero


+ 25
- 0
public/manifest.json Ver fichero

@@ -0,0 +1,25 @@
1
+{
2
+  "short_name": "React App",
3
+  "name": "Create React App Sample",
4
+  "icons": [
5
+    {
6
+      "src": "favicon.ico",
7
+      "sizes": "64x64 32x32 24x24 16x16",
8
+      "type": "image/x-icon"
9
+    },
10
+    {
11
+      "src": "logo192.png",
12
+      "type": "image/png",
13
+      "sizes": "192x192"
14
+    },
15
+    {
16
+      "src": "logo512.png",
17
+      "type": "image/png",
18
+      "sizes": "512x512"
19
+    }
20
+  ],
21
+  "start_url": ".",
22
+  "display": "standalone",
23
+  "theme_color": "#000000",
24
+  "background_color": "#ffffff"
25
+}

+ 3
- 0
public/robots.txt Ver fichero

@@ -0,0 +1,3 @@
1
+# https://www.robotstxt.org/robotstxt.html
2
+User-agent: *
3
+Disallow:

+ 38
- 0
src/App.css Ver fichero

@@ -0,0 +1,38 @@
1
+.App {
2
+  text-align: center;
3
+}
4
+
5
+.App-logo {
6
+  height: 40vmin;
7
+  pointer-events: none;
8
+}
9
+
10
+@media (prefers-reduced-motion: no-preference) {
11
+  .App-logo {
12
+    animation: App-logo-spin infinite 20s linear;
13
+  }
14
+}
15
+
16
+.App-header {
17
+  background-color: #282c34;
18
+  min-height: 100vh;
19
+  display: flex;
20
+  flex-direction: column;
21
+  align-items: center;
22
+  justify-content: center;
23
+  font-size: calc(10px + 2vmin);
24
+  color: white;
25
+}
26
+
27
+.App-link {
28
+  color: #61dafb;
29
+}
30
+
31
+@keyframes App-logo-spin {
32
+  from {
33
+    transform: rotate(0deg);
34
+  }
35
+  to {
36
+    transform: rotate(360deg);
37
+  }
38
+}

+ 48
- 0
src/App.js Ver fichero

@@ -0,0 +1,48 @@
1
+import React from 'react'
2
+import './App.css'
3
+import { Switch, Route, Redirect } from 'react-router-dom'
4
+import { useSelector } from 'react-redux'
5
+import { ThemeProvider, createMuiTheme, useMediaQuery } from '@material-ui/core'
6
+import { purple, teal } from '@material-ui/core/colors'
7
+
8
+import Login from './Components/Login'
9
+import Dashboard from './Components/Dashboard'
10
+
11
+function App() {
12
+	const logged = useSelector(state => state.login.logged)
13
+
14
+	const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)');
15
+
16
+
17
+	const theme = createMuiTheme({
18
+		palette: {
19
+			type: prefersDarkMode? 'dark' : 'light',
20
+			primary: { main: prefersDarkMode? teal[300] : '#009688' },
21
+			secondary: { main: prefersDarkMode? purple[300] : purple[700] },
22
+			background: { 
23
+				default: prefersDarkMode? '#121212' : '#fafafa',
24
+				level1: prefersDarkMode? '#212121' : '#fff',
25
+				level2: prefersDarkMode? '#212121' : '#f5f5f5',
26
+				paper: prefersDarkMode? '#424242' : '#fff'
27
+			}
28
+		}
29
+	})
30
+	return (
31
+		<ThemeProvider theme={theme}>
32
+			<Switch>
33
+				<Route exact path='/'>
34
+					<Login />
35
+				</Route>
36
+				{logged ? (
37
+					<Route path='/dashboard'>
38
+						<Dashboard />
39
+					</Route>
40
+				) : (
41
+					<Redirect to='/' />
42
+				)}
43
+			</Switch>
44
+		</ThemeProvider>
45
+	)
46
+}
47
+
48
+export default App

+ 9
- 0
src/App.test.js Ver fichero

@@ -0,0 +1,9 @@
1
+import React from 'react';
2
+import { render } from '@testing-library/react';
3
+import App from './App';
4
+
5
+test('renders learn react link', () => {
6
+  const { getByText } = render(<App />);
7
+  const linkElement = getByText(/learn react/i);
8
+  expect(linkElement).toBeInTheDocument();
9
+});

+ 16
- 0
src/Components/Dashboard/index.js Ver fichero

@@ -0,0 +1,16 @@
1
+import React from 'react'
2
+import { Box, makeStyles } from '@material-ui/core'
3
+
4
+const useStyles = makeStyles(theme => ({
5
+    root: {
6
+
7
+    }
8
+}))
9
+
10
+export default function Dashboard(){
11
+    const classes = useStyles()
12
+
13
+    return <Box className={classes.root}>
14
+        dashboard
15
+    </Box>
16
+}

+ 16
- 0
src/Components/Login/index.js Ver fichero

@@ -0,0 +1,16 @@
1
+import React from 'react'
2
+import { Box, makeStyles } from '@material-ui/core'
3
+
4
+const useStyles = makeStyles(theme => ({
5
+    root: {
6
+
7
+    }
8
+}))
9
+
10
+export default function Login(){
11
+    const classes = useStyles()
12
+
13
+    return <Box className={classes.root}>
14
+        login
15
+    </Box>
16
+}

+ 5
- 0
src/api/encoding.js Ver fichero

@@ -0,0 +1,5 @@
1
+export const encodeBase64 = (file, onLoadCallback) => {
2
+	var reader = new FileReader()
3
+	reader.readAsDataURL(file)
4
+	reader.onload = onLoadCallback
5
+}

+ 90
- 0
src/api/index.js Ver fichero

@@ -0,0 +1,90 @@
1
+var headers = new Headers()
2
+headers.append('Content-Type', 'image/jpeg')
3
+headers.append('Authorization', localStorage.getItem('Authorization'))
4
+
5
+export const apiGet = url => {
6
+	var headers = new Headers()
7
+	headers.append('Content-Type', 'image/jpeg')
8
+	headers.append('Authorization', localStorage.getItem('Authorization'))
9
+	return fetch(url, {
10
+		method: 'GET',
11
+		headers
12
+	})
13
+		.then(v => v.json())
14
+		.then(data => data)
15
+}
16
+
17
+export const apiPut = (url, obj) => {
18
+	var headers = new Headers()
19
+	headers.append('Content-Type', 'image/jpeg')
20
+	headers.append('Authorization', localStorage.getItem('Authorization'))
21
+	return fetch(`${url}`, {
22
+		method: 'PUT',
23
+		body: JSON.stringify(obj),
24
+		headers
25
+	})
26
+		.then(v => v.json())
27
+		.then(r => {
28
+			if (r.error) {
29
+				return Promise.reject(r.validation)
30
+			}
31
+			return r
32
+		})
33
+		.catch(r => {
34
+			//console.log(r)
35
+			return { status: 'err' }
36
+		})
37
+}
38
+
39
+export const apiDelete = (url, obj) => {
40
+	var headers = new Headers()
41
+	headers.append('Content-Type', 'image/jpeg')
42
+	headers.append('Authorization', localStorage.getItem('Authorization'))
43
+	return fetch(`${url}`, {
44
+		method: 'DELETE',
45
+		body: JSON.stringify(obj),
46
+		headers
47
+	})
48
+		.then(v => v.json())
49
+		.then(r => {
50
+			if (r.error) {
51
+				return Promise.reject(r.validation)
52
+			}
53
+			return r
54
+		})
55
+		.catch(r => {
56
+			//console.log(r)
57
+			return { status: 'err' }
58
+		})
59
+}
60
+export const apiPost = (url, obj) => {
61
+	var headers = new Headers()
62
+	headers.append('Content-Type', 'image/jpeg')
63
+	headers.append('Authorization', localStorage.getItem('Authorization'))
64
+	return fetch(`${url}`, {
65
+		method: 'POST',
66
+		body: JSON.stringify(obj),
67
+		headers
68
+	})
69
+		.then(v => v.json())
70
+		.then(r => {
71
+			if (r.error) {
72
+				return Promise.reject(r.validation)
73
+			}
74
+			return r
75
+		})
76
+		.catch(r => {
77
+			//console.log(r)
78
+			return { status: 'err' }
79
+		})
80
+}
81
+
82
+export const apiGetWithParams = (url, params) => {
83
+	var headers = new Headers()
84
+	headers.append('Content-Type', 'image/jpeg')
85
+	headers.append('Authorization', localStorage.getItem('Authorization'))
86
+	var toFetch = new URL(url)
87
+	toFetch.search = new URLSearchParams(params)
88
+
89
+	return fetch(toFetch, { method: 'GET', headers }).then(r => r.json()).catch(r => ({ status: 'err' }))
90
+}

+ 2
- 0
src/api/server.js Ver fichero

@@ -0,0 +1,2 @@
1
+//export default 'http://nanof17.myddns.me:3002/'
2
+export default 'http://dev.kitsuneclub.com/'

+ 1
- 0
src/api/server.js.example Ver fichero

@@ -0,0 +1 @@
1
+export default "http://localhost:8000/"

+ 14
- 0
src/api/urls.js Ver fichero

@@ -0,0 +1,14 @@
1
+import url from './server'
2
+
3
+export const urlLogin = `${url}login`
4
+export const urlCurso = `${url}cursos`
5
+export const urlUnidades = `${url}unidades`
6
+export const urlTematicas = `${url}tematicas`
7
+export const urlModulos = `${url}modulos`
8
+export const urlRespuestas = `${url}respuestas`
9
+export const urlUsuarios = `${url}users`
10
+export const urlGrupos = `${url}grupos`
11
+export const urlGRupoUsuario = `${url}grupoUsuario`
12
+export const urlDivisiones = `${url}divisiones`
13
+export const urlPermisos = `${url}permisos`
14
+export const urlRoles = `${url}roles`

+ 3
- 0
src/constants/index.js Ver fichero

@@ -0,0 +1,3 @@
1
+export const SET_LOGIN = 'setLogin'
2
+
3
+export const isAlfaNum = /^[A-Za-zÀ-ÖØ-öø-ÿ0-9.]*$/

+ 13
- 0
src/index.css Ver fichero

@@ -0,0 +1,13 @@
1
+body {
2
+  margin: 0;
3
+  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4
+    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5
+    sans-serif;
6
+  -webkit-font-smoothing: antialiased;
7
+  -moz-osx-font-smoothing: grayscale;
8
+}
9
+
10
+code {
11
+  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12
+    monospace;
13
+}

+ 22
- 0
src/index.js Ver fichero

@@ -0,0 +1,22 @@
1
+import React from 'react'
2
+import ReactDOM from 'react-dom'
3
+import './index.css'
4
+import App from './App'
5
+import * as serviceWorker from './serviceWorker'
6
+import { store } from './store'
7
+import { Provider } from 'react-redux'
8
+import { BrowserRouter as Router } from 'react-router-dom'
9
+
10
+ReactDOM.render(
11
+	<Provider store={store}>
12
+		<Router>
13
+			<App />
14
+		</Router>
15
+	</Provider>,
16
+	document.getElementById('root')
17
+)
18
+
19
+// If you want your app to work offline and load faster, you can change
20
+// unregister() to register() below. Note this comes with some pitfalls.
21
+// Learn more about service workers: https://bit.ly/CRA-PWA
22
+serviceWorker.unregister()

+ 7
- 0
src/logo.svg Ver fichero

@@ -0,0 +1,7 @@
1
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3">
2
+    <g fill="#61DAFB">
3
+        <path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/>
4
+        <circle cx="420.9" cy="296.5" r="45.7"/>
5
+        <path d="M520.5 78.1z"/>
6
+    </g>
7
+</svg>

+ 6
- 0
src/reducers/index.js Ver fichero

@@ -0,0 +1,6 @@
1
+import { combineReducers } from 'redux'
2
+import { login } from './login'
3
+
4
+export default combineReducers({
5
+    login,
6
+})

+ 10
- 0
src/reducers/login.js Ver fichero

@@ -0,0 +1,10 @@
1
+import { SET_LOGIN } from '../constants'
2
+
3
+export const login = (state = {logged: false} ,a ) => {
4
+    switch (a.type) {
5
+        case SET_LOGIN:
6
+            return {logged: a.payload}    
7
+        default:
8
+            return state
9
+    }
10
+}

+ 141
- 0
src/serviceWorker.js Ver fichero

@@ -0,0 +1,141 @@
1
+// This optional code is used to register a service worker.
2
+// register() is not called by default.
3
+
4
+// This lets the app load faster on subsequent visits in production, and gives
5
+// it offline capabilities. However, it also means that developers (and users)
6
+// will only see deployed updates on subsequent visits to a page, after all the
7
+// existing tabs open on the page have been closed, since previously cached
8
+// resources are updated in the background.
9
+
10
+// To learn more about the benefits of this model and instructions on how to
11
+// opt-in, read https://bit.ly/CRA-PWA
12
+
13
+const isLocalhost = Boolean(
14
+  window.location.hostname === 'localhost' ||
15
+    // [::1] is the IPv6 localhost address.
16
+    window.location.hostname === '[::1]' ||
17
+    // 127.0.0.0/8 are considered localhost for IPv4.
18
+    window.location.hostname.match(
19
+      /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
20
+    )
21
+);
22
+
23
+export function register(config) {
24
+  if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
25
+    // The URL constructor is available in all browsers that support SW.
26
+    const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
27
+    if (publicUrl.origin !== window.location.origin) {
28
+      // Our service worker won't work if PUBLIC_URL is on a different origin
29
+      // from what our page is served on. This might happen if a CDN is used to
30
+      // serve assets; see https://github.com/facebook/create-react-app/issues/2374
31
+      return;
32
+    }
33
+
34
+    window.addEventListener('load', () => {
35
+      const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
36
+
37
+      if (isLocalhost) {
38
+        // This is running on localhost. Let's check if a service worker still exists or not.
39
+        checkValidServiceWorker(swUrl, config);
40
+
41
+        // Add some additional logging to localhost, pointing developers to the
42
+        // service worker/PWA documentation.
43
+        navigator.serviceWorker.ready.then(() => {
44
+          console.log(
45
+            'This web app is being served cache-first by a service ' +
46
+              'worker. To learn more, visit https://bit.ly/CRA-PWA'
47
+          );
48
+        });
49
+      } else {
50
+        // Is not localhost. Just register service worker
51
+        registerValidSW(swUrl, config);
52
+      }
53
+    });
54
+  }
55
+}
56
+
57
+function registerValidSW(swUrl, config) {
58
+  navigator.serviceWorker
59
+    .register(swUrl)
60
+    .then(registration => {
61
+      registration.onupdatefound = () => {
62
+        const installingWorker = registration.installing;
63
+        if (installingWorker == null) {
64
+          return;
65
+        }
66
+        installingWorker.onstatechange = () => {
67
+          if (installingWorker.state === 'installed') {
68
+            if (navigator.serviceWorker.controller) {
69
+              // At this point, the updated precached content has been fetched,
70
+              // but the previous service worker will still serve the older
71
+              // content until all client tabs are closed.
72
+              console.log(
73
+                'New content is available and will be used when all ' +
74
+                  'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
75
+              );
76
+
77
+              // Execute callback
78
+              if (config && config.onUpdate) {
79
+                config.onUpdate(registration);
80
+              }
81
+            } else {
82
+              // At this point, everything has been precached.
83
+              // It's the perfect time to display a
84
+              // "Content is cached for offline use." message.
85
+              console.log('Content is cached for offline use.');
86
+
87
+              // Execute callback
88
+              if (config && config.onSuccess) {
89
+                config.onSuccess(registration);
90
+              }
91
+            }
92
+          }
93
+        };
94
+      };
95
+    })
96
+    .catch(error => {
97
+      console.error('Error during service worker registration:', error);
98
+    });
99
+}
100
+
101
+function checkValidServiceWorker(swUrl, config) {
102
+  // Check if the service worker can be found. If it can't reload the page.
103
+  fetch(swUrl, {
104
+    headers: { 'Service-Worker': 'script' },
105
+  })
106
+    .then(response => {
107
+      // Ensure service worker exists, and that we really are getting a JS file.
108
+      const contentType = response.headers.get('content-type');
109
+      if (
110
+        response.status === 404 ||
111
+        (contentType != null && contentType.indexOf('javascript') === -1)
112
+      ) {
113
+        // No service worker found. Probably a different app. Reload the page.
114
+        navigator.serviceWorker.ready.then(registration => {
115
+          registration.unregister().then(() => {
116
+            window.location.reload();
117
+          });
118
+        });
119
+      } else {
120
+        // Service worker found. Proceed as normal.
121
+        registerValidSW(swUrl, config);
122
+      }
123
+    })
124
+    .catch(() => {
125
+      console.log(
126
+        'No internet connection found. App is running in offline mode.'
127
+      );
128
+    });
129
+}
130
+
131
+export function unregister() {
132
+  if ('serviceWorker' in navigator) {
133
+    navigator.serviceWorker.ready
134
+      .then(registration => {
135
+        registration.unregister();
136
+      })
137
+      .catch(error => {
138
+        console.error(error.message);
139
+      });
140
+  }
141
+}

+ 5
- 0
src/setupTests.js Ver fichero

@@ -0,0 +1,5 @@
1
+// jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+// allows you to do things like:
3
+// expect(element).toHaveTextContent(/react/i)
4
+// learn more: https://github.com/testing-library/jest-dom
5
+import '@testing-library/jest-dom/extend-expect';

+ 4
- 0
src/store/index.js Ver fichero

@@ -0,0 +1,4 @@
1
+import { createStore } from 'redux'
2
+import reducers from './../reducers'
3
+
4
+export const store = createStore(reducers, {})

+ 9736
- 0
yarn.lock
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


Loading…
Cancelar
Guardar