Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

6
goTorrentWebUI/node_modules/dotenv-expand/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,6 @@
coverage/
examples/
test/
.editorconfig
.travis.yml
Contributing.md

View File

@@ -0,0 +1,26 @@
# Contributing
1. Fork it
2. `npm install`
3. Create your feature branch (`git checkout -b my-new-feature`)
4. Commit your changes (`git commit -am 'Added some feature'`)
5. `npm test`
6. Push to the branch (`git push origin my-new-feature`)
7. Create new Pull Request
## Testing
We use [lab](https://github.com/hapijs/lab) and [should](https://github.com/shouldjs/should.js) to write BDD test. Run our test suite with this command:
```
npm test
```
## Code Style
We use [standard](https://www.npmjs.com/package/standard) and [editorconfig](http://editorconfig.org) to maintain code style and best practices. Please make sure your PR adheres to the guides by running:
```
npm run lint
```

24
goTorrentWebUI/node_modules/dotenv-expand/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,24 @@
Copyright (c) 2016, Scott Motte
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

40
goTorrentWebUI/node_modules/dotenv-expand/README.md generated vendored Normal file
View File

@@ -0,0 +1,40 @@
[![Donate](http://www.opensourcecitizen.org/badge)](http://www.opensourcecitizen.org/project?url=github.com/motdotla/dotenv-expand)
If you found this library useful, donate some CPU cycles to this project by clicking above. Thank you! 😇
# dotenv-expand
<img src="https://raw.githubusercontent.com/motdotla/dotenv-expand/master/dotenv-expand.png" alt="dotenv-expand" align="right" />
Dotenv-expand adds variable expansion on top of
[dotenv](http://github.com/motdotla/dotenv). If you find yourself needing to
expand environment variables already existing on your machine, then
dotenv-expand is your tool.
[![BuildStatus](https://img.shields.io/travis/motdotla/dotenv-expand/master.svg?style=flat-square)](https://travis-ci.org/motdotla/dotenv-expand)
[![NPM version](https://img.shields.io/npm/v/dotenv-expand.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-expand)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
## Install
```bash
npm install dotenv --save
npm install dotenv-expand --save
```
## Usage
As early as possible in your application, require dotenv and dotenv-expand, and
wrap dotenv-expand around dotenv.
```js
var dotenv = require('dotenv')
var dotenvExpand = require('dotenv-expand')
var myEnv = dotenv.config()
dotenvExpand(myEnv)
```
See [test/.env](./test/.env) for examples of variable expansion in your `.env`
file.

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

15
goTorrentWebUI/node_modules/dotenv-expand/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
export = dotenv_expand;
interface DotenvResult {
error?: Error;
parsed?: {
[name: string]: string;
};
}
declare function dotenv_expand(config: DotenvResult): DotenvResult;
declare namespace dotenv_expand {
const prototype: {
};
}

41
goTorrentWebUI/node_modules/dotenv-expand/lib/main.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
'use strict'
var dotenvExpand = function (config) {
var interpolate = function (env) {
var matches = env.match(/\$([a-zA-Z0-9_]+)|\${([a-zA-Z0-9_]+)}/g) || []
matches.forEach(function (match) {
var key = match.replace(/\$|{|}/g, '')
// process.env value 'wins' over .env file's value
var variable = process.env[key] || config.parsed[key] || ''
// Resolve recursive interpolations
variable = interpolate(variable)
env = env.replace(match, variable)
})
return env
}
for (var configKey in config.parsed) {
var value = process.env[configKey] || config.parsed[configKey]
if (config.parsed[configKey].substring(0, 2) === '\\$') {
config.parsed[configKey] = value.substring(1)
} else if (config.parsed[configKey].indexOf('\\$') > 0) {
config.parsed[configKey] = value.replace(/\\\$/g, '$')
} else {
config.parsed[configKey] = interpolate(value)
}
}
for (var processKey in config.parsed) {
process.env[processKey] = config.parsed[processKey]
}
return config
}
module.exports = dotenvExpand

55
goTorrentWebUI/node_modules/dotenv-expand/package.json generated vendored Normal file
View File

@@ -0,0 +1,55 @@
{
"_args": [
[
"dotenv-expand@4.2.0",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI"
]
],
"_from": "dotenv-expand@4.2.0",
"_id": "dotenv-expand@4.2.0",
"_inBundle": false,
"_integrity": "sha1-3vHxyl1gWdJKdm5YeULCEQbOEnU=",
"_location": "/dotenv-expand",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "dotenv-expand@4.2.0",
"name": "dotenv-expand",
"escapedName": "dotenv-expand",
"rawSpec": "4.2.0",
"saveSpec": null,
"fetchSpec": "4.2.0"
},
"_requiredBy": [
"/react-scripts"
],
"_resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-4.2.0.tgz",
"_spec": "4.2.0",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI",
"author": {
"name": "motdotla"
},
"description": "Expand environment variables using dotenv",
"devDependencies": {
"dotenv": "^4.0.0",
"lab": "^13.0.1",
"should": "^11.2.1",
"standard": "^9.0.2"
},
"keywords": [
"dotenv",
"expand",
"variables"
],
"license": "BSD-2-Clause",
"main": "lib/main.js",
"name": "dotenv-expand",
"scripts": {
"lint": "standard",
"posttest": "npm run lint",
"test": "lab test/* --coverage"
},
"types": "./index.d.ts",
"version": "4.2.0"
}