Skip to content

Commit 4df1a4d

Browse files
committed
My version of Coder with node.js v0.10.9
1 parent f3f893c commit 4df1a4d

File tree

532 files changed

+23883
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

532 files changed

+23883
-15
lines changed

.gitignore

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

coder-base/apps/auth/app.js

100644100755
File mode changed.

coder-base/apps/auth/meta.json

100644100755
File mode changed.

coder-base/apps/boilerplate/app.js

100644100755
File mode changed.

coder-base/apps/boilerplate/meta.json

100644100755
File mode changed.

coder-base/apps/coder/app.js

100644100755
File mode changed.

coder-base/apps/coder/meta.json

100644100755
File mode changed.

coder-base/apps/coderlib/app.js

100644100755
File mode changed.

coder-base/apps/coderlib/meta.json

100644100755
File mode changed.

coder-base/apps/editor/app.js

100644100755
File mode changed.

coder-base/apps/editor/meta.json

100644100755
File mode changed.

coder-base/apps/eyeball/app.js

100644100755
File mode changed.

coder-base/apps/eyeball/meta.json

100644100755
File mode changed.

coder-base/apps/game2d/app.js

100644100755
File mode changed.

coder-base/apps/game2d/meta.json

100644100755
File mode changed.

coder-base/apps/hello_coder/app.js

100644100755
File mode changed.

coder-base/apps/hello_coder/meta.json

100644100755
File mode changed.

coder-base/apps/node_js_tests/app.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
exports.settings={};
2+
//These are dynamically updated by the runtime
3+
//settings.appname - the app id (folder) where your app is installed
4+
//settings.viewpath - prefix to where your view html files are located
5+
//settings.staticurl - base url path to static assets /static/apps/appname
6+
//settings.appurl - base url path to this app /app/appname
7+
//settings.device_name - name given to this coder by the user, Ie."Billy's Coder"
8+
//settings.coder_owner - name of the user, Ie. "Suzie Q."
9+
//settings.coder_color - hex css color given to this coder.
10+
11+
exports.get_routes = [
12+
{ path:'/', handler:'index_handler' },
13+
];
14+
15+
exports.post_routes = [
16+
];
17+
18+
19+
exports.index_handler = function( req, res ) {
20+
var tmplvars = {};
21+
tmplvars['static_url'] = exports.settings.staticurl;
22+
tmplvars['app_name'] = exports.settings.appname;
23+
tmplvars['app_url'] = exports.settings.appurl;
24+
tmplvars['device_name'] = exports.settings.device_name;
25+
26+
res.render( exports.settings.viewpath + '/index', tmplvars );
27+
};
28+
29+
exports.on_destroy = function() {
30+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"created": "2013-10-03",
3+
"modified": "2013-10-03",
4+
"color": "#f9de2a",
5+
"author": "",
6+
"name": "Node.js tests",
7+
"hidden": false
8+
}

coder-base/apps/space_rocks_/app.js

100644100755
File mode changed.

coder-base/apps/space_rocks_/meta.json

100644100755
File mode changed.

coder-base/apps/wifi/app.js

100644100755
File mode changed.

coder-base/apps/wifi/meta.json

100644100755
File mode changed.

coder-base/certs/.placeholder

100644100755
File mode changed.

coder-base/config.js

100644100755
File mode changed.

coder-base/device.json

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"password_hash": "",
2+
"password_hash": "$2a$10$JmznMZfX6yGiZvjVGyl33OeovjmSdY0xk5zdAUxVxvu0VskP8ZJma",
33
"device_name": "Coder",
44
"hostname": "coder",
55
"coder_owner": "",
66
"coder_color": ""
7-
}
7+
}

coder-base/device.json.reset

100644100755
File mode changed.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../express/bin/express
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../node-zip/bin/nodezip
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
argv = ['/usr/bin/node-waf', 'configure', 'build']
2+
blddir = '/home/pi/cl-project314-coder/coder-base/node_modules/bcrypt/build'
3+
commands = {'dist': 0, 'configure': True, 'distcheck': 0, 'install': 0, 'build': True, 'clean': 0, 'distclean': 0, 'check': 0, 'uninstall': 0}
4+
cwd = '/home/pi/cl-project314-coder/coder-base/node_modules/bcrypt'
5+
environ = {'npm_package_dist_shasum': '105af2782a34278895c338614ddeeb8adce4d23f', 'npm_config_searchopts': '', 'npm_package_contributors_3_name': 'Ben Glow', 'npm_config_group': '1000', 'npm_config_browser': 'google-chrome', 'npm_config_global': '', 'npm_config_color': 'true', 'npm_package_contributors_5_email': '[email protected]', 'npm_package_contributors_8_email': '[email protected]', 'SHELL': '/bin/bash', 'npm_package_contributors_12_url': 'https://github.com/seanmonstar', 'npm_config_pre': '', 'npm_config_logfd': '2', 'npm_config_tmp': '/tmp', 'npm_package_engines_node': '>= 0.6.0', 'npm_config_argv': '{"remain":[],"cooked":["install"],"original":["install"]}', 'npm_package_contributors_7_email': '[email protected]', 'npm_package_contributors_6_email': '[email protected]', 'npm_package_scripts_preinstall': 'node-waf clean || (exit 0); node-waf configure build', 'npm_package_contributors_13_name': 'Fanie Oosthuysen', 'npm_package_contributors_13_email': '[email protected]', 'npm_package_contributors_7_name': 'Lloyd Hilaiel', 'npm_config_init_version': '0.0.0', 'npm_lifecycle_event': 'preinstall', 'npm_package_contributors_7_url': 'https://github.com/lloyd', 'npm_package_contributors_13_url': 'https://github.com/weareu', 'npm_config_init_author_name': '', 'npm_config_rebuild_bundle': 'true', 'npm_package_contributors_11_url': 'https://github.com/tootallnate', 'npm_config_yes': '', 'npm_config_usage': '', 'npm_package_description': 'A bcrypt library for NodeJS.', 'npm_config_logprefix': 'true', 'MAIL': '/var/mail/pi', 'SSH_CONNECTION': '172.26.29.81 50316 172.26.29.168 22', 'npm_config_ignore': '', 'npm_config_ca': '"-----BEGIN CERTIFICATE-----\\nMIIChzCCAfACCQDauvz/KHp8ejANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMC\\nVVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMQwwCgYDVQQKEwNucG0x\\nIjAgBgNVBAsTGW5wbSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxDjAMBgNVBAMTBW5w\\nbUNBMRcwFQYJKoZIhvcNAQkBFghpQGl6cy5tZTAeFw0xMTA5MDUwMTQ3MTdaFw0y\\nMTA5MDIwMTQ3MTdaMIGHMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEDAOBgNV\\nBAcTB09ha2xhbmQxDDAKBgNVBAoTA25wbTEiMCAGA1UECxMZbnBtIENlcnRpZmlj\\nYXRlIEF1dGhvcml0eTEOMAwGA1UEAxMFbnBtQ0ExFzAVBgkqhkiG9w0BCQEWCGlA\\naXpzLm1lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLI4tIqPpRW+ACw9GE\\nOgBlJZwK5f8nnKCLK629Pv5yJpQKs3DENExAyOgDcyaF0HD0zk8zTp+ZsLaNdKOz\\nGn2U181KGprGKAXP6DU6ByOJDWmTlY6+Ad1laYT0m64fERSpHw/hjD3D+iX4aMOl\\ny0HdbT5m1ZGh6SJz3ZqxavhHLQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAC4ySDbC\\nl7W1WpLmtLGEQ/yuMLUf6Jy/vr+CRp4h+UzL+IQpCv8FfxsYE7dhf/bmWTEupBkv\\nyNL18lipt2jSvR3v6oAHAReotvdjqhxddpe5Holns6EQd1/xEZ7sB1YhQKJtvUrl\\nZNufy1Jf1r0ldEGeA+0ISck7s+xSh9rQD2Op\\n-----END CERTIFICATE-----"', 'npm_config_globalconfig': '/etc/npmrc', 'npm_package_contributors_10_url': 'https://github.com/bnoordhuis', 'npm_package_contributors_2_email': '[email protected]', 'npm_config_parseable': '', 'npm_package_contributors_1_email': '[email protected]', 'npm_config_userignorefile': '/home/pi/.npmignore', 'USER': 'pi', 'npm_package_author_name': 'Nick Campbell', 'npm_package_contributors_0_url': 'https://github.com/Shadowfiend', 'npm_config_versions': '', 'SHLVL': '1', 'npm_config_init_author_url': '', 'npm_config_cache': '/home/pi/.npm', 'npm_config_proxy': '', 'npm_package_contributors_11_name': 'Nate Rajlich', 'npm_config_depth': 'null', 'npm_config_shell': '/bin/bash', 'npm_config_umask': '022', 'npm_package_contributors_4_name': 'NewITFarmer.com', 'npm_package_contributors_9_name': 'Vadim Graboys', 'npm_config_long': '', 'npm_package_contributors_0_name': 'Antonio Salazar Cardozo', 'npm_config_editor': 'vi', '_': '/usr/bin/npm', 'npm_package_repository_type': 'git', 'npm_package_contributors_1_name': 'Van Nguyen', 'npm_config_npat': '', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'npm_package_contributors_11_email': '[email protected]', 'npm_config_json': '', 'npm_config_searchsort': 'name', 'npm_package_contributors_12_email': '[email protected]', 'npm_lifecycle_script': 'node-waf clean || (exit 0); node-waf configure build', 'npm_config_git': 'git', 'npm_package_contributors_1_url': 'https://github.com/thegoleffect', 'npm_package_contributors_6_url': 'https://github.com/vincentcr', 'npm_config_rollback': 'true', 'npm_package_repository_url': 'git://github.com/ncb000gt/node.bcrypt.js.git', 'npm_package_contributors_5_url': 'https://github.com/alfredwesterveld', 'HOME': '/home/pi', 'LANG': 'en_US.UTF-8', 'npm_config_save': '', 'npm_config_registry': 'https://registry.npmjs.org/', 'npm_config_unicode': 'true', 'npm_config_production': '', 'npm_config_message': '%s', 'npm_config_always_auth': '', 'npm_config_prefix': '/usr/local', 'npm_package_devDependencies_nodeunit': '>=0.6.4', 'npm_config_searchexclude': '', 'npm_config_loglevel': 'http', 'npm_package_contributors_8_url': 'https://github.com/shtylman', 'npm_package_scripts_test': 'node-gyp configure build && nodeunit test', 'npm_config_strict_ssl': 'true', 'COMP_WORDBREAKS': ' \t\n"\'><;|&(:', 'npm_package_keywords_2': 'auth', 'npm_package_keywords_3': 'authentication', 'npm_package_keywords_0': 'bcrypt', 'npm_package_keywords_1': 'password', 'npm_package_keywords_6': 'crypto', 'npm_package_keywords_4': 'encryption', 'npm_package_keywords_5': 'crypt', 'npm_package_contributors_2_name': 'David Trejo', 'npm_package_main': './bcrypt', 'npm_config_tag': 'latest', 'npm_package_licenses_0_type': 'MIT', 'npm_package_contributors_3_url': 'https://github.com/pixelglow', 'SSH_TTY': '/dev/pts/0', 'npm_config_globalignorefile': '/etc/npmignore', 'npm_config_version': '', 'npm_package_bugs_url': 'http://github.com/ncb000gt/node.bcrypt.js/issues', 'npm_package_contributors_0_email': '[email protected]', 'npm_config_force': '', 'npm_config_username': '', 'npm_config_user': '', 'npm_config_link': '', 'npm_package_contributors_9_url': 'https://github.com/vadimg', 'npm_package_name': 'bcrypt', 'npm_config_userconfig': '/home/pi/.npmrc', 'npm_config_dev': '', 'npm_package_contributors_10_name': 'Ben Noorduis', 'SSH_CLIENT': '172.26.29.81 50316 22', 'npm_config_npaturl': 'http://npat.npmjs.org/', 'LOGNAME': 'pi', 'npm_package_contributors_6_name': 'Vincent C\xc3\xb4t\xc3\xa9-Roy', 'PATH': '/home/pi/cl-project314-coder/coder-base/node_modules/bcrypt/node_modules/.bin:/home/pi/cl-project314-coder/coder-base/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games', 'npm_package_contributors_5_name': 'Alfred Westerveld', 'npm_config_coverage': '', 'TERM': 'xterm-256color', 'XDG_SESSION_COOKIE': '57ae80824714b7b337db9bbc5115ac19-1362422448.671902-492784406', 'npm_config_onload_script': '', 'npm_config_description': 'true', 'npm_package_contributors_8_name': 'Roman Shtylman', 'npm_package_author_url': 'http://github.com/ncb000gt', 'npm_config_bindist': '0.6-ares1.9.1-evundefined-openssl1.0.1c-v83.8.9.20-linux-arm-3.6.11+', 'npm_config___DO_NOT_MODIFY_THIS_FILE___use__etc_npmrc_instead_': 'true', 'npm_package_contributors_12_name': 'Sean McArthur', 'npm_config_viewer': 'man', 'npm_config_showlevel': '2', 'npm_config_unsafe_perm': 'true', 'npm_package_contributors_4_url': 'https://github.com/newitfarmer', 'npm_config_proprietary_attribs': 'true', 'npm_package_version': '0.7.4', 'npm_config_https_proxy': '', 'npm_config_node_version': '0.6.19', 'npm_config_init_author_email': '', 'npm_package_contributors_2_url': 'https://github.com/dtrejo', 'npm_package_dependencies_bindings': '1.0.0', 'npm_package_contributors_3_email': '[email protected]', 'OLDPWD': '/home/pi/cl-project314-coder/coder-base/apps/auth', 'npm_config_outfd': '1', 'npm_config_bin_publish': '', 'PWD': '/home/pi/cl-project314-coder/coder-base/node_modules/bcrypt', 'npm_package_contributors_9_email': '[email protected]'}
6+
files = []
7+
hash = 0
8+
options = {'compile_targets': None, 'force': False, 'verbose': 0, 'nocache': False, 'progress_bar': 0, 'destdir': '', 'keep': False, 'zones': '', 'blddir': '', 'prefix': '/usr/local/', 'jobs': 1, 'srcdir': '', 'check_cxx_compiler': 'g++ icpc sunc++'}
9+
srcdir = '/home/pi/cl-project314-coder/coder-base/node_modules/bcrypt'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.lock*
2+
build
3+
*.node
4+
*.sw[a-z]
5+
node_modules
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 0.6
4+
- 0.8
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
v0.5.0
2+
* Fix for issue around empty string params throwing Errors.
3+
* Method deprecation.
4+
* Upgrade from libeio/ev to libuv. (shtylman)
5+
** --- NOTE --- Breaks 0.4.x compatability
6+
* EV_MULTIPLICITY compile flag.
7+
8+
v0.4.1
9+
* Thread safety fix around OpenSSL (GH-32). (bnoordhuis - through node)
10+
* C++ code changes using delete and new instead of malloc and free. (shtylman)
11+
* Compile options for speed, zoom. (shtylman)
12+
* Move much of the type and variable checking to the JS. (shtylman)
13+
14+
v0.4.0
15+
* Added getRounds function that will tell you the number of rounds within a hash/salt
16+
17+
v0.3.2
18+
* Fix api issue with async salt gen first param
19+
20+
v0.3.1
21+
* Compile under node 0.5.x
22+
23+
v0.3.0
24+
* Internal Refactoring
25+
* Remove pthread dependencies and locking
26+
* Fix compiler warnings and a memory bug
27+
28+
v0.2.4
29+
* Use threadsafe functions instead of pthread mutexes
30+
* salt validation to make sure the salt is of the correct size and format
31+
32+
v0.2.3
33+
* cygwin support
34+
35+
v0.2.2
36+
* Remove dependency on libbsd, use libssl instead
37+
38+
v0.2.0
39+
* Added async functionality
40+
* API changes
41+
* hashpw -> encrypt
42+
* all old sync methods now end with _sync
43+
* Removed libbsd(arc4random) dependency...now uses openssl which is more widely spread
44+
45+
v0.1.2
46+
* Security fix. Wasn't reading rounds in properly and was always only using 4 rounds
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2010 Nicholas Campbell
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
TESTS = test/*.js
2+
3+
all: test
4+
5+
build: clean configure compile
6+
7+
configure:
8+
node-gyp configure
9+
10+
compile: configure
11+
node-gyp build
12+
npm install .
13+
14+
test: build
15+
@./node_modules/nodeunit/bin/nodeunit \
16+
$(TESTS)
17+
18+
clean:
19+
node-gyp clean
20+
21+
22+
.PHONY: clean test build

0 commit comments

Comments
 (0)