Commit f19a1e6e authored by root's avatar root

Updates

parent 670f8dcc
......@@ -8,6 +8,19 @@
</head>
<body>
<script src="/app.js"></script>
<div id="pkDiv"></div>
<div id="modal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<button class="btn btn-primary" onclick="genKeypair()">Generate Keys</button>
<button class="btn btn-primary" onclick="recover()">Recover w/ Mnemonic</button>
</div>
</div>
</div>
</div>
</body>
</html>
......@@ -6881,7 +6881,7 @@ process.umask = function() { return 0; };
var keypair = require('keypair');
var rs = require('jsrsasign');
function genKeypair() {
function generateKeypair() {
var pair = keypair();
if(typeof(Storage) !== "undefined") {
localStorage.setItem("pk", pair.private);
......@@ -6928,7 +6928,6 @@ function load() {
$('#pkDiv').html(privKey);
}
catch(err) {
$('#modal-div').load('modal');
$('#modal').modal('show');
}
}
......
......@@ -2,7 +2,7 @@
var keypair = require('keypair');
var rs = require('jsrsasign');
function genKeypair() {
function generateKeypair() {
var pair = keypair();
if(typeof(Storage) !== "undefined") {
localStorage.setItem("pk", pair.private);
......@@ -49,7 +49,6 @@ function load() {
$('#pkDiv').html(privKey);
}
catch(err) {
$('#modal-div').load('modal');
$('#modal').modal('show');
}
}
......
......@@ -5,6 +5,20 @@
<li><a href="#" onclick="$('body').load('/pending');">Pending</a></li>
</ul>
<h1>Capabilities</h1>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal">Show Modal</button>
<div id="modal-div">
<div id="modal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<button class="btn btn-primary" onclick="generateKeypair()">Generate Keys</button>
<button class="btn btn-primary" onclick="recover()">Recover w/ Mnemonic</button>
</div>
</div>
</div>
</div>
</div>
</div>
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.11.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle keygen@1.0.0~prestart: keygen@1.0.0
6 silly lifecycle keygen@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle keygen@1.0.0~start: keygen@1.0.0
8 verbose lifecycle keygen@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle keygen@1.0.0~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/root/DC25_party/keygen/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/go/bin:/snap/bin
10 verbose lifecycle keygen@1.0.0~start: CWD: /root/DC25_party/keygen
11 silly lifecycle keygen@1.0.0~start: Args: [ '-c',
11 silly lifecycle 'browserify src/app.js -o public/js/app.js; node index.js' ]
12 silly lifecycle keygen@1.0.0~start: Returned: code: 1 signal: null
13 info lifecycle keygen@1.0.0~start: Failed to exec start script
14 verbose stack Error: keygen@1.0.0 start: `browserify src/app.js -o public/js/app.js; node index.js`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:891:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid keygen@1.0.0
16 verbose cwd /root/DC25_party/keygen/views
17 error Linux 4.4.0-87-generic
18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
19 error node v6.11.1
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error keygen@1.0.0 start: `browserify src/app.js -o public/js/app.js; node index.js`
22 error Exit status 1
23 error Failed at the keygen@1.0.0 start script 'browserify src/app.js -o public/js/app.js; node index.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the keygen package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error browserify src/app.js -o public/js/app.js; node index.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs keygen
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls keygen
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment