Added game info bar

This commit is contained in:
clerie
2018-04-04 12:31:55 +02:00
parent 811ecfddfb
commit 95741499fd
271 changed files with 46086 additions and 2 deletions
index.js
node_modules
.bin
commander
diff
escape-string-regexp
glob
growl
jade
lru-cache
minimatch
minimist
mkdirp
mocha
quick-local-ip
sigmund
supports-color
to-iso-string
package-lock.jsonpackage.json
public

10
node_modules/quick-local-ip/.npmignore generated vendored Normal file

@@ -0,0 +1,10 @@
.DS_Store
.nodemonignore
.sass-cache/
npm-debug.log
node_modules/
public/lib
app/tests/coverage/
.bower-*/
.idea/
.svn/

22
node_modules/quick-local-ip/LICENSE generated vendored Normal file

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Alok Guha
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.

28
node_modules/quick-local-ip/README.md generated vendored Normal file

@@ -0,0 +1,28 @@
# Quick-local-ip
quick-local-ip is a utility module which provides straight-forward access to local network addresses. it provides 2 functions to get local ip addresses.
### Installation
npm install --save quick-local-ip
- If System is connected to multiple internet connections like wifi and ethernet and usb internet, following methods will return any active internet address in string format.
- If System is connected with one internet connection, methods will return ip address in string format.
- If system is not connected with internet default local address will be returned by all methods.
- These method will never return null or undefined.
## Quick Examples
var myip = require('quick-local-ip');
### getting ip4 network address of local system.
myip.getLocalIP4();
### getting ip6 network address of local system
myip.getLocalIP6();

43
node_modules/quick-local-ip/index.js generated vendored Normal file

@@ -0,0 +1,43 @@
/**
* Created by alokguha on 25/09/15.
*/
'use strict'
var ni = require('os').networkInterfaces();
module.exports = {
getLocalIP4: function() {
var ipAddress = [];
for(var key in ni){
for(var index in ni[key]){
if(ni[key][index].family === 'IPv4' && !ni[key][index].internal){
ipAddress.push(ni[key][index].address);
}
}
}
if(ipAddress.length > 1){
return ipAddress[Math.floor(Math.random() * ((ipAddress.length - 1) - 0 + 1)) + 0];
}else if(ipAddress.length == 1){
return ipAddress[0];
}else{
return '127.0.0.1';
}
},
getLocalIP6: function() {
var ipAddress = [];
for(var key in ni){
for(var index in ni[key]){
if(ni[key][index].family === 'IPv6' && !ni[key][index].internal){
ipAddress.push(ni[key][index].address);
}
}
}
if(ipAddress.length > 1){
return ipAddress[Math.floor(Math.random() * ((ipAddress.length - 1) - 0 + 1)) + 0];
}else if(ipAddress.length == 1){
return ipAddress[0];
}else{
return 'fc00::/7';
}
}
};

65
node_modules/quick-local-ip/package.json generated vendored Normal file

@@ -0,0 +1,65 @@
{
"_from": "quick-local-ip",
"_id": "quick-local-ip@1.0.7",
"_inBundle": false,
"_integrity": "sha1-S9oQKeXm2iGNtwLfcsJK3eFKpMc=",
"_location": "/quick-local-ip",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "quick-local-ip",
"name": "quick-local-ip",
"escapedName": "quick-local-ip",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/quick-local-ip/-/quick-local-ip-1.0.7.tgz",
"_shasum": "4bda1029e5e6da218db702df72c24adde14aa4c7",
"_spec": "quick-local-ip",
"_where": "/home/clemens/Dokumente/git/pixelnode",
"author": {
"name": "Alok Guha"
},
"bugs": {
"url": "https://github.com/aloksguha/myip/issues"
},
"bundleDependencies": false,
"dependencies": {
"mocha": "^2.3.3"
},
"deprecated": false,
"description": "This is a tiny utility to get local ip address with in node applications.",
"homepage": "https://github.com/aloksguha/myip#readme",
"keywords": [
"nodejs",
"npm",
"local ip",
"network",
"ip4",
"ip6",
"netmask"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "aloksguha",
"email": "aloksguha@gmail.com"
}
],
"name": "quick-local-ip",
"repository": {
"type": "git",
"url": "git+https://github.com/aloksguha/myip.git"
},
"scripts": {
"test": "mocha t7st"
},
"version": "1.0.7"
}

19
node_modules/quick-local-ip/test.js generated vendored Normal file

@@ -0,0 +1,19 @@
/**
* Created by alokguha on 25/09/15.
*/
var network = require('./index');
var assert = require("assert");
describe('MyIp Tests', function() {
//Undefined Test
describe('Undefined Test', function () {
it('variable network should not be undefined', function () {
assert.notEqual(network,undefined);
});
it('variable network.getLocalIP4 should not be undefined', function () {
assert.notEqual(network.getLocalIP4(),undefined);
});
it('variable network.getLocalIP6 should not be undefined', function () {
assert.notEqual(network.getLocalIP6(),undefined);
});
});
});