From b5c6150f2675b5978d8203917064861c467140e1 Mon Sep 17 00:00:00 2001 From: Matt Snoby Date: Fri, 2 Sep 2022 18:27:23 -0400 Subject: [PATCH 1/6] customize for my reverse proxy and configs --- css/miningcore.css | 13 +++++++------ index.html | 1 + js/miningcore.js | 12 +++++++----- poolconfig/default.html | 6 ++++++ 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/css/miningcore.css b/css/miningcore.css index cf6c928..10e4960 100644 --- a/css/miningcore.css +++ b/css/miningcore.css @@ -1005,12 +1005,13 @@ div.card-chart { */ #pool-coins td:nth-of-type(1):before { content: "Pool coin"; } #pool-coins td:nth-of-type(2):before { content: "Algorithm"; } - #pool-coins td:nth-of-type(3):before { content: "Miners"; } - #pool-coins td:nth-of-type(4):before { content: "Pool Hashrate"; } - #pool-coins td:nth-of-type(5):before { content: "Fee"; } - #pool-coins td:nth-of-type(6):before { content: "Network Hashrate"; } - #pool-coins td:nth-of-type(7):before { content: "Network Difficulty"; } - #pool-coins td:nth-of-type(8):before { content: ""; } + #pool-coins td:nth-of-type(3):before { content: "Scheme"; } + #pool-coins td:nth-of-type(4):before { content: "Miners"; } + #pool-coins td:nth-of-type(5):before { content: "Pool Hashrate"; } + #pool-coins td:nth-of-type(6):before { content: "Fee"; } + #pool-coins td:nth-of-type(7):before { content: "Network Hashrate"; } + #pool-coins td:nth-of-type(8):before { content: "Network Difficulty"; } + #pool-coins td:nth-of-type(9):before { content: ""; } .sidebar-open .main-sidebar { -webkit-transform:translate(0, 0); diff --git a/index.html b/index.html index 16e2522..934c735 100644 --- a/index.html +++ b/index.html @@ -202,6 +202,7 @@
Pool Coins
Pool coin Algorithm + Payout Type Miners Pool Hashrate Fee diff --git a/js/miningcore.js b/js/miningcore.js index a85985c..5d89b1b 100644 --- a/js/miningcore.js +++ b/js/miningcore.js @@ -23,21 +23,22 @@ // read WebURL from current browser -var WebURL = window.location.protocol + "//" + window.location.hostname + "/"; // Website URL is: https://domain.com/ +var WebURL = "http://ergo.mattsnoby.com/"; // WebURL correction if not ends with / if (WebURL.substring(WebURL.length-1) != "/") { WebURL = WebURL + "/"; console.log('Corrected WebURL, does not end with / -> New WebURL : ', WebURL); } -var API = WebURL + "api/"; // API address is: https://domain.com/api/ +//var API = WebURL + "api/"; // API address is: https://domain.com/api/ +var API = "https://miningcore-api.mattsnoby.com/api/"; // API correction if not ends with / if (API.substring(API.length-1) != "/") { API = API + "/"; console.log('Corrected API, does not end with / -> New API : ', API); } -var stratumAddress = window.location.hostname; // Stratum address is: domain.com +var stratumAddress = "ergo.mattsnoby.com:3056"; @@ -172,6 +173,7 @@ function loadHomePage() { poolCoinTableTemplate += ""; poolCoinTableTemplate += "" + coinLogo + coinName + " (" + value.coin.type.toUpperCase() + ") "; poolCoinTableTemplate += "" + value.coin.algorithm + ""; + poolCoinTableTemplate += "" + value.paymentProcessing.payoutScheme + ""; poolCoinTableTemplate += "" + value.poolStats.connectedMiners + ""; poolCoinTableTemplate += "" + _formatter(value.poolStats.poolHashrate, 5, "H/s") + ""; poolCoinTableTemplate += "" + value.poolFeePercent + " %"; @@ -270,8 +272,8 @@ function loadMinersPage() { if (data.length > 0) { $.each(data, function(index, value) { minerList += ""; - //minerList += "" + value.miner + ""; - minerList += '' + value.miner.substring(0, 12) + ' … ' + value.miner.substring(value.miner.length - 12) + ''; + minerList += "" + value.miner + ""; + //minerList += '' + value.miner.substring(0, 12) + ' … ' + value.miner.substring(value.miner.length - 12) + ''; //minerList += '' + value.miner.substring(0, 12) + ' … ' + value.miner.substring(value.miner.length - 12) + ''; minerList += "" + _formatter(value.hashrate, 5, "H/s") + ""; minerList += "" + _formatter(value.sharesPerSecond, 5, "S/s") + ""; diff --git a/poolconfig/default.html b/poolconfig/default.html index ffd76cb..b16ba8b 100644 --- a/poolconfig/default.html +++ b/poolconfig/default.html @@ -29,6 +29,12 @@

crypto mining software

Where: