mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-20 13:34:43 +01:00
New Themes and LND Wallet Incomplete
New Themes and LND Wallet Incomplete
This commit is contained in:
parent
e1b555ede6
commit
ba84f996e6
16 changed files with 1722 additions and 172 deletions
|
@ -351,6 +351,25 @@ Apache License
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
qrious@2.3.0
|
||||
GPL-3.0
|
||||
QRious
|
||||
Copyright (C) 2017 Alasdair Mercer
|
||||
Copyright (C) 2010 Tom Zerucha
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
hammerjs@2.0.8
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
|
|
@ -35,3 +35,169 @@
|
|||
.mat-dialog-container {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.mt-1 {
|
||||
margin-top: 0.55rem !important;
|
||||
}
|
||||
|
||||
.mb-1 {
|
||||
margin-bottom: 0.55rem !important;
|
||||
}
|
||||
|
||||
.ml-1 {
|
||||
margin-left: 0.55rem !important;
|
||||
}
|
||||
|
||||
.mr-1 {
|
||||
margin-right: 0.55rem !important;
|
||||
}
|
||||
|
||||
.mx-1 {
|
||||
margin: 0 0.55rem !important;
|
||||
}
|
||||
|
||||
.my-1 {
|
||||
margin: 0.55rem 0 !important;
|
||||
}
|
||||
|
||||
.m-1 {
|
||||
margin: 0.55rem !important;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 1rem !important;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 1rem !important;
|
||||
}
|
||||
|
||||
.ml-2 {
|
||||
margin-left: 1rem !important;
|
||||
}
|
||||
|
||||
.mr-2 {
|
||||
margin-right: 1rem !important;
|
||||
}
|
||||
|
||||
.ml-4 {
|
||||
margin-left: 2rem !important;
|
||||
}
|
||||
|
||||
.mr-4 {
|
||||
margin-right: 2rem !important;
|
||||
}
|
||||
|
||||
.mx-2 {
|
||||
margin: 0 1rem !important;
|
||||
}
|
||||
|
||||
.my-2 {
|
||||
margin: 1rem 0 !important;
|
||||
}
|
||||
|
||||
.m-2 {
|
||||
margin: 1rem !important;
|
||||
}
|
||||
|
||||
.pt-1 {
|
||||
padding-top: 0.55rem !important;
|
||||
}
|
||||
|
||||
.pb-1 {
|
||||
padding-bottom: 0.55rem !important;
|
||||
}
|
||||
|
||||
.pl-1 {
|
||||
padding-left: 0.55rem !important;
|
||||
}
|
||||
|
||||
.pr-1 {
|
||||
padding-right: 0.55rem !important;
|
||||
}
|
||||
|
||||
.px-1 {
|
||||
padding: 0 0.55rem !important;
|
||||
}
|
||||
|
||||
.py-1 {
|
||||
padding: 0.55rem 0 !important;
|
||||
}
|
||||
|
||||
.p-1 {
|
||||
padding: 0.55rem !important;
|
||||
}
|
||||
|
||||
.pt-2 {
|
||||
padding-top: 1rem !important;
|
||||
}
|
||||
|
||||
.pb-2 {
|
||||
padding-bottom: 1rem !important;
|
||||
}
|
||||
|
||||
.pl-2 {
|
||||
padding-left: 1rem !important;
|
||||
}
|
||||
|
||||
.pr-2 {
|
||||
padding-right: 1rem !important;
|
||||
}
|
||||
|
||||
.px-2 {
|
||||
padding: 0 1rem !important;
|
||||
}
|
||||
|
||||
.py-2 {
|
||||
padding: 1rem 0 !important;
|
||||
}
|
||||
|
||||
.p-2 {
|
||||
padding: 1rem !important;
|
||||
}
|
||||
|
||||
.m-1px {
|
||||
margin: 1px !important;
|
||||
}
|
||||
|
||||
.overflow-x-auto {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.mat-footer-row, .mat-header-row, .mat-row {
|
||||
border-bottom-width: 0px;
|
||||
}
|
||||
|
||||
.mat-cell, .mat-header-cell, .mat-footer-cell {
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.wide-tooltip {
|
||||
width: 380px;
|
||||
min-width: 380px;
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
.flex-ellipsis {
|
||||
padding-right: 30px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.mat-list, .mat-list .mat-list-item .mat-list-item-content, .mat-nav-list, .mat-selection-list {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.inline-spinner {
|
||||
display: inline-flex !important;
|
||||
top: 5px !important;
|
||||
}
|
||||
|
||||
.qr-code-position {
|
||||
position: relative;
|
||||
top: -80px;
|
||||
margin-bottom: -80px;
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
|
||||
<link rel="icon" type="image/x-icon" href="./assets/img/favicon.ico">
|
||||
<link rel="stylesheet" href="styles.4c1eac5380b70a4e5128.css"></head>
|
||||
<link rel="stylesheet" href="styles.7700d10dc384fba31d1a.css"></head>
|
||||
<body>
|
||||
<rtl-root></rtl-root>
|
||||
|
||||
<script type="text/javascript" src="runtime.6afe30102d8fe7337431.js"></script><script type="text/javascript" src="polyfills.c7939909ac1e754960ad.js"></script><script type="text/javascript" src="main.f2b1aa4ef45d7c101fa0.js"></script></body></html>
|
||||
<script type="text/javascript" src="runtime.6afe30102d8fe7337431.js"></script><script type="text/javascript" src="polyfills.c7939909ac1e754960ad.js"></script><script type="text/javascript" src="main.f899a5d8e15b55a8e3cf.js"></script></body></html>
|
1
angular/main.f899a5d8e15b55a8e3cf.js
Normal file
1
angular/main.f899a5d8e15b55a8e3cf.js
Normal file
File diff suppressed because one or more lines are too long
1
angular/styles.7700d10dc384fba31d1a.css
Normal file
1
angular/styles.7700d10dc384fba31d1a.css
Normal file
File diff suppressed because one or more lines are too long
6
app.js
6
app.js
|
@ -10,6 +10,9 @@ const peersRoutes = require("./routes/peers");
|
|||
const feesRoutes = require("./routes/fees");
|
||||
const balanceRoutes = require("./routes/balance");
|
||||
const walletRoutes = require("./routes/wallet");
|
||||
const graphInfoRoutes = require("./routes/graphInfo");
|
||||
const newAddressRoutes = require("./routes/newAddress");
|
||||
const transactionsRoutes = require("./routes/transactions");
|
||||
const UISettingsRoutes = require("./routes/UISettings");
|
||||
|
||||
app.use(bodyParser.json());
|
||||
|
@ -38,6 +41,9 @@ app.use("/api/peers", peersRoutes);
|
|||
app.use("/api/fees", feesRoutes);
|
||||
app.use("/api/balance", balanceRoutes);
|
||||
app.use("/api/wallet", walletRoutes);
|
||||
app.use("/api/network", graphInfoRoutes);
|
||||
app.use("/api/newaddress", newAddressRoutes);
|
||||
app.use("/api/transactions", transactionsRoutes);
|
||||
app.use("/api/uisettings", UISettingsRoutes);
|
||||
|
||||
// sending angular application when route doesn't match
|
||||
|
|
|
@ -22,7 +22,7 @@ exports.getFees = (req, res, next) => {
|
|||
if (undefined === body.month_fee_sum) {
|
||||
body.month_fee_sum = 0;
|
||||
}
|
||||
res.status(200).json({fees: body});
|
||||
res.status(200).json(body);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
20
controllers/graphInfo.js
Normal file
20
controllers/graphInfo.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
var request = require('request');
|
||||
var options = require("../connect");
|
||||
var config = require('../config');
|
||||
|
||||
exports.getGraphInfo = (req, res, next) => {
|
||||
options.url = config.lnd_server_url + '/graph/info';
|
||||
request.get(options, (error, response, body) => {
|
||||
const body_str = (undefined === body) ? '' : JSON.stringify(body);
|
||||
const search_idx = (undefined === body) ? -1 : body_str.search('Not Found');
|
||||
console.log('Network Information Received: ' + body_str);
|
||||
if(undefined === body || search_idx > -1 || body.error) {
|
||||
res.status(500).json({
|
||||
message: "Fetching network Info failed!",
|
||||
error: (undefined === body || search_idx > -1) ? 'ERROR From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
res.status(200).json(body);
|
||||
}
|
||||
});
|
||||
};
|
18
controllers/newAddress.js
Normal file
18
controllers/newAddress.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
var request = require('request');
|
||||
var options = require("../connect");
|
||||
var config = require('../config');
|
||||
|
||||
exports.getNewAddress = (req, res, next) => {
|
||||
options.url = config.lnd_server_url + '/newaddress';
|
||||
request.get(options, (error, response, body) => {
|
||||
console.log("New Address Received: " + JSON.stringify(body));
|
||||
if(undefined === body || body.error) {
|
||||
res.status(500).json({
|
||||
message: "Fetching new address failed!",
|
||||
error: (undefined === body) ? 'ERROR From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
res.status(200).json(body);
|
||||
}
|
||||
});
|
||||
};
|
25
controllers/transactions.js
Normal file
25
controllers/transactions.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
var request = require('request');
|
||||
var options = require("../connect");
|
||||
var config = require('../config');
|
||||
|
||||
exports.postTransactions = (req, res, next) => {
|
||||
options.url = config.lnd_server_url + '/transactions';
|
||||
options.form = JSON.stringify({
|
||||
amount: req.body.amount,
|
||||
addr: req.body.address,
|
||||
sat_per_byte: req.body.fees,
|
||||
target_conf: req.body.blocks
|
||||
});
|
||||
request.post(options, (error, response, body) => {
|
||||
console.log('Transactions Post Response: ');
|
||||
console.log(body);
|
||||
if(undefined === body || body.error) {
|
||||
res.status(500).json({
|
||||
message: "Transactions post failed!",
|
||||
error: (undefined === body) ? 'ERROR From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
res.status(201).json(body);
|
||||
}
|
||||
});
|
||||
};
|
1599
package-lock.json
generated
1599
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -49,9 +49,9 @@
|
|||
"zone.js": "0.8.26"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "0.6.1",
|
||||
"@angular/cli": "6.0.1",
|
||||
"@angular/compiler-cli": "6.0.1",
|
||||
"@angular-devkit/build-angular": "0.6.1",
|
||||
"@angular/language-service": "6.0.1",
|
||||
"@types/hammerjs": "2.0.35",
|
||||
"@types/jasmine": "2.8.7",
|
||||
|
@ -60,16 +60,16 @@
|
|||
"codelyzer": "4.3.0",
|
||||
"jasmine-core": "3.1.0",
|
||||
"jasmine-spec-reporter": "4.2.1",
|
||||
"karma": "^3.0.0",
|
||||
"karma": "2.0.2",
|
||||
"karma-chrome-launcher": "2.2.0",
|
||||
"karma-cli": "1.0.1",
|
||||
"karma-coverage-istanbul-reporter": "1.4.2",
|
||||
"karma-jasmine": "1.1.2",
|
||||
"karma-jasmine-html-reporter": "1.1.0",
|
||||
"nodemon": "^1.17.4",
|
||||
"protractor": "^5.4.1",
|
||||
"protractor": "5.3.2",
|
||||
"ts-node": "6.0.3",
|
||||
"tslint": "5.10.0",
|
||||
"typescript": "2.7.2"
|
||||
"typescript": "2.7.2",
|
||||
"nodemon": "^1.17.4"
|
||||
}
|
||||
}
|
||||
|
|
7
routes/graphInfo.js
Normal file
7
routes/graphInfo.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
const graphInfoController = require("../controllers/graphInfo");
|
||||
const express = require("express");
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/", graphInfoController.getGraphInfo);
|
||||
|
||||
module.exports = router;
|
7
routes/newAddress.js
Normal file
7
routes/newAddress.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
const NewAddressController = require("../controllers/newAddress");
|
||||
const express = require("express");
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/", NewAddressController.getNewAddress);
|
||||
|
||||
module.exports = router;
|
7
routes/transactions.js
Normal file
7
routes/transactions.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
const TransactionsController = require("../controllers/transactions");
|
||||
const express = require("express");
|
||||
const router = express.Router();
|
||||
|
||||
router.post("/", TransactionsController.postTransactions);
|
||||
|
||||
module.exports = router;
|
|
@ -1 +1 @@
|
|||
{"name":"RTL","loadingSpinner":false,"fixedHeader":false,"sidenavIsOpened":true,"sidenavIsPinned":true,"sidenavUserBlock":true,"menu":"vertical","menuType":"default","theme":"teal-light","rtl":false}
|
||||
{"name":"RTL","loadingSpinner":false,"fixedHeader":false,"sidenavIsOpened":true,"sidenavIsPinned":true,"sidenavUserBlock":true,"menu":"vertical","menuType":"default","theme":"self-blue","rtl":false}
|
Loading…
Add table
Reference in a new issue