Removed GopherJS, basic frontend completed, need backend changes for

torrent storage
This commit is contained in:
2017-11-30 18:12:11 -05:00
parent 67fdef16b1
commit e98ad2cc88
69321 changed files with 5498914 additions and 337 deletions

View File

@@ -0,0 +1,64 @@
module.exports = {
"100": "Continue",
"101": "Switching Protocols",
"102": "Processing",
"200": "OK",
"201": "Created",
"202": "Accepted",
"203": "Non-Authoritative Information",
"204": "No Content",
"205": "Reset Content",
"206": "Partial Content",
"207": "Multi-Status",
"208": "Already Reported",
"226": "IM Used",
"300": "Multiple Choices",
"301": "Moved Permanently",
"302": "Found",
"303": "See Other",
"304": "Not Modified",
"305": "Use Proxy",
"307": "Temporary Redirect",
"308": "Permanent Redirect",
"400": "Bad Request",
"401": "Unauthorized",
"402": "Payment Required",
"403": "Forbidden",
"404": "Not Found",
"405": "Method Not Allowed",
"406": "Not Acceptable",
"407": "Proxy Authentication Required",
"408": "Request Timeout",
"409": "Conflict",
"410": "Gone",
"411": "Length Required",
"412": "Precondition Failed",
"413": "Payload Too Large",
"414": "URI Too Long",
"415": "Unsupported Media Type",
"416": "Range Not Satisfiable",
"417": "Expectation Failed",
"418": "I'm a teapot",
"421": "Misdirected Request",
"422": "Unprocessable Entity",
"423": "Locked",
"424": "Failed Dependency",
"425": "Unordered Collection",
"426": "Upgrade Required",
"428": "Precondition Required",
"429": "Too Many Requests",
"431": "Request Header Fields Too Large",
"451": "Unavailable For Legal Reasons",
"500": "Internal Server Error",
"501": "Not Implemented",
"502": "Bad Gateway",
"503": "Service Unavailable",
"504": "Gateway Timeout",
"505": "HTTP Version Not Supported",
"506": "Variant Also Negotiates",
"507": "Insufficient Storage",
"508": "Loop Detected",
"509": "Bandwidth Limit Exceeded",
"510": "Not Extended",
"511": "Network Authentication Required"
}

View File

@@ -0,0 +1,8 @@
'use strict'
var fs = require('fs')
var statusCodes = require('./')
var code = 'module.exports = ' + JSON.stringify(statusCodes, null, 2) + '\n'
fs.writeFileSync('browser.js', code)

View File

@@ -0,0 +1,3 @@
'use strict'
module.exports = require('http').STATUS_CODES

View File

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

View File

@@ -0,0 +1,74 @@
{
"_args": [
[
"builtin-status-codes@3.0.0",
"C:\\Users\\deranjer\\GoglandProjects\\torrent-project\\torrent-project"
]
],
"_from": "builtin-status-codes@3.0.0",
"_id": "builtin-status-codes@3.0.0",
"_inBundle": false,
"_integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=",
"_location": "/webpack/builtin-status-codes",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "builtin-status-codes@3.0.0",
"name": "builtin-status-codes",
"escapedName": "builtin-status-codes",
"rawSpec": "3.0.0",
"saveSpec": null,
"fetchSpec": "3.0.0"
},
"_requiredBy": [
"/webpack/stream-http"
],
"_resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz",
"_spec": "3.0.0",
"_where": "C:\\Users\\deranjer\\GoglandProjects\\torrent-project\\torrent-project",
"author": {
"name": "Ben Drucker",
"email": "bvdrucker@gmail.com",
"url": "bendrucker.me"
},
"browser": "browser.js",
"bugs": {
"url": "https://github.com/bendrucker/builtin-status-codes/issues"
},
"description": "The map of HTTP status codes from the builtin http module",
"devDependencies": {
"standard": "^4.0.0",
"tape": "^4.0.0"
},
"files": [
"index.js",
"browser.js",
"build.js"
],
"homepage": "https://github.com/bendrucker/builtin-status-codes#readme",
"keywords": [
"http",
"status",
"codes",
"builtin",
"map"
],
"license": "MIT",
"main": "index.js",
"name": "builtin-status-codes",
"repository": {
"type": "git",
"url": "git+https://github.com/bendrucker/builtin-status-codes.git"
},
"scripts": {
"build": "node build.js",
"test": "standard && tape test.js"
},
"standard": {
"ignore": [
"browser.js"
]
},
"version": "3.0.0"
}

View File

@@ -0,0 +1,31 @@
# builtin-status-codes [![Build Status](https://travis-ci.org/bendrucker/builtin-status-codes.svg?branch=master)](https://travis-ci.org/bendrucker/builtin-status-codes)
> The map of HTTP status codes from the builtin http module. Exposes the latest directly from `http` in Node, with a zero-dependencies version for the browser.
## Install
```
$ npm install --save builtin-status-codes
```
## Usage
```js
var codes = require('builtin-status-codes')
codes[100]
//=> Continue
```
## Build
To create a new browser build:
```sh
$ npm run build
```
## License
MIT © [Ben Drucker](http://bendrucker.me)