Enhancements & Bug Fixes

App Pubkey - wordwrap: Done
LND wallet - LTC Address: Done
LND wallet - send funds Confirmation screen layout: Done
Confirmation Screen - numeric value break on comma: Done
Send Payment - Confirmation screen layout: Done
Channel dashboard - min balance 1: Done
Channel - Alias to Remote Alias: Done
Channel Show - Alias reorder: Done
Tables - feature to open detail on click: Done
Copy feature on pubkey: Done
Node - Pending Channel Error: Done
Node - Cannot read property 'map' of undefined: Done
pull/47/head
ShahanaFarooqui 6 years ago
parent ccf6880452
commit 73637696e5

@ -6,8 +6,8 @@
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
<link rel="stylesheet" href="styles.49988dc3a5bfc0ebf979.css"></head>
<link rel="stylesheet" href="styles.56c3cb2889f85205c3dc.css"></head>
<body>
<rtl-app></rtl-app>
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.3cd2cbcde180b413014f.js"></script></body>
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.ae3c478c790c33661505.js"></script></body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,17 +1,31 @@
// var request = require('request');
var request = require("request-promise");
var options = require("../connect");
var common = require('../common');
var getAlias = (channel) => new Promise(function(resolve, reject) {
options.url = common.lnd_server_url + '/graph/node/' + channel.remote_pubkey;
request(options).then(function(aliasBody) {
console.log(`\nReceived alias: ${aliasBody.node.alias}`);
channel.alias = aliasBody.node.alias;
resolve(aliasBody.node.alias);
}).catch(err => reject(err));
});
getAlias = (channel, channelType) => {
// console.log('CHANNEL: ');
// console.log(channel);
return new Promise(function(resolve, reject) {
if (undefined === channelType || channelType === 'all') {
options.url = common.lnd_server_url + '/graph/node/' + channel.remote_pubkey;
} else {
options.url = common.lnd_server_url + '/graph/node/' + channel.channel.remote_node_pub;
}
console.log('URL: ' + options.url);
request(options)
.then(function(aliasBody) {
console.log('Alias: ' + JSON.stringify(aliasBody.node.alias));
if (undefined === channelType || channelType === 'all') {
channel.remote_alias = aliasBody.node.alias;
resolve(aliasBody.node.alias);
} else {
channel.channel.remote_alias = aliasBody.node.alias;
resolve(aliasBody.node.alias);
}
})
.catch(err => reject(err));
});
}
exports.getChannels = (req, res, next) => {
if (undefined === req.params.channelType || req.params.channelType === 'all') {
@ -21,13 +35,18 @@ exports.getChannels = (req, res, next) => {
}
options.qs = req.query;
request(options).then(function (body) {
let channels = body.channels;
let channels = [];
if (undefined === req.params.channelType || req.params.channelType === 'all') {
channels = (undefined === body.channels) ? [] : body.channels;
} else {
channels = (undefined === body.pending_open_channels) ? [] : body.pending_open_channels;
}
Promise.all(
channels.map(channel => {
return getAlias(channel);
return getAlias(channel, req.params.channelType);
}))
.then(function(values) {
console.log(`\nChannel Reading Finished: ${JSON.stringify(body)}`);
console.log(`\nChannels Fetched with Alias: ${JSON.stringify(body)}`);
res.status(200).json(body);
});
});

@ -1,4 +1,3 @@
// var request = require('request');
var request = require("request-promise");
var options = require("../connect");
var common = require('../common');

@ -1 +1 @@
{"flgSidenavOpened":true,"flgSidenavPinned":true,"menu":"Vertical","menuType":"Regular","theme":"dark-blue","lndConfigPath":"","satsToBTC":true}
{"flgSidenavOpened":true,"flgSidenavPinned":true,"menu":"Vertical","menuType":"Regular","theme":"dark-blue","lndConfigPath":"","satsToBTC":false}
Loading…
Cancel
Save