Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats 작업용 #1

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
36 changes: 28 additions & 8 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
{
"nodeAddr": "localhost",
"gethPort": 8545,
"gethPort": 9545,
"startBlock": 0,
"endBlock": "latest",
"quiet": true,
"syncAll": true,
"patch": true,
"syncAll": false,
"patch": false,
"patchBlocks": 100,
"settings": {
"symbol": "ETC",
"name": "Ethereum Classic",
"title": "Ethereum Classic Block Explorer",
"author": "Elaine"
"contact": "mailto:[email protected]",
"about": "This is an open source Blockchain Explorer.",
"rss": "http://ethereumclassic.org",
"reddit": "https://www.reddit.com/r/EthereumClassic",
"twitter": "https://twitter.com/ethereumclassic",
"linkedin": "https://www.linkedin.com/company/ethereum-classic",
"github": "https://github.com/ethereumproject",
"logo": "/img/esn-explorer-logo.png",
"customCss": "gray.css",
"copyright": "2018 © Gonsmine.",
"symbol": "ESN",
"name": "EtherSocial Network",
"title": "EtherSocial Network Block Explorer",
"author": "gonspool",
"miners": {
"0xe3ec5ebd3e822c972d802a0ee4e0ec080b8237ba": "SejunPool",
"0xc734480388db099cb43fd1c3ed530b39b9d8d567": "GonsPool",
"0x2eb64b8ab13f0d7823158217d15ba310ed3d0e58": "TopMining",
"0x0b292a321fe5e20cc943648a782184f8ab44d2eb": "MoricPool",
"0x2930822031420731f09dce572554a8b8c1eaa09b": "Gonsmine",
"0xfc35930abb108ae6cae33fd065dfb799808ea326": "Comining",
"0x90d7c82615f151953a8d71a68096cee4d428619c": "privatePool"
}
}
}
}
97 changes: 97 additions & 0 deletions public/css/gray.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
.page-prefooter {
background: #5a5a5a;
color: #b4b9b7;
}

.page-prefooter a {
color: #fff;
}

.page-footer {
background: #7d7d7d;
color: #eee;
}

.social-icons li>a {
border-radius: 14px!important;
}

.dashboard-stat2 {
padding: 0px;
}

.dashboard-stat2 .display .icon {
float: left;
padding: 1rem 10px;
}

.dashboard-stat2 .display .icon>i {
font-size: 38px;
color: #98a6c1;
}

.dashboard-stat2 .display .number h3 {
color: #585858;
font-size: 3.2rem;
}

body, h1, h2, h3, h4, h5, h6 {
font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-header .page-header-top .page-logo {
width: 450px;
height: 75px;
font-size: 30px;
font-weight: bold;
color: #48525e;
text-shadow: 1px 1px 3px #cccccc;
}

.page-header .page-header-menu, .page-header .page-header-top {
/* background: #33f3ca; /* */
/* background: -moz-linear-gradient(left, #33f3ca 0%, #75baff 50%, #b591ff 100%); /* */
/* background: -webkit-linear-gradient(left, #33f3ca 0%,#75baff 50%,#b591ff 100%); /* */
/* background: linear-gradient(to right, #33f3ca 0%,#75baff 50%,#b591ff 100%); /* */
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33f3ca', endColorstr='#b591ff',GradientType=1); /* */
background-color: #353535;
}

.page-header .page-header-menu .hor-menu .navbar-nav>li>a {
padding-bottom: 14px;
color: #fff !important;
}

.page-header .page-header-menu .hor-menu.hor-menu-light .navbar-nav>li:hover>a {
color: #fff!important;
background: transparent!important;
}

.page-header .page-header-menu .hor-menu .navbar-nav>li.active>a,
.page-header .page-header-menu .hor-menu .navbar-nav>li.active>a:hover,
.page-header .page-header-menu .hor-menu .navbar-nav>li.current>a,
.page-header .page-header-menu .hor-menu .navbar-nav>li.current>a:hover {
border-bottom: 4px solid #8f9090!important;
}

.page-header .page-header-menu .hor-menu .navbar-nav>li.current>a,
.page-header .page-header-menu .hor-menu .navbar-nav>li>a:hover {
border-bottom: none !important; /* */
}

.page-header .page-header-menu .hor-menu .navbar-nav>li>a {
font-size: 1.6rem;
}

.nav a.btn {
color: white;
}

.page-header .page-header-menu .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li:hover>a {
color: #000;
background: #eaeaf2;
}

a.hash, a.account {
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
}
6 changes: 4 additions & 2 deletions public/css/stats.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ text.shadow {

path {
stroke: steelblue;
stroke-width: 2;
stroke-width: 1;
fill: none;
}

Expand Down Expand Up @@ -48,6 +48,8 @@ path {

path.slice{
stroke-width:2px;
stroke: #3a3a3a;
opacity: .7;
}

polyline{
Expand Down Expand Up @@ -80,5 +82,5 @@ path {
text-align: center;
}
text {
font: 12px sans-serif;
font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
Binary file added public/img/esn-explorer-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions public/js/controllers/AddressController.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ angular.module('BlocksApp').controller('AddressController', function($stateParam

$rootScope.$state.current.data["pageSubTitle"] = $stateParams.hash;
$scope.addrHash = $stateParams.hash;
$scope.addr = {"balance": 0, "count": 0};
$scope.addr = {"balance": 0, "count": 0, "mined": 0};
$scope.settings = $rootScope.setup;

//fetch web3 stuff
Expand All @@ -18,7 +18,7 @@ angular.module('BlocksApp').controller('AddressController', function($stateParam
url: '/web3relay',
data: {"addr": $scope.addrHash, "options": ["balance", "count", "bytecode"]}
}).success(function(data) {
$scope.addr = data;
$scope.addr = $.extend($scope.addr, data);
fetchTxs($scope.addr.count);
if (data.isContract) {
$rootScope.$state.current.data["pageTitle"] = "Contract Address";
Expand Down Expand Up @@ -63,7 +63,7 @@ angular.module('BlocksApp').controller('AddressController', function($stateParam
"columnDefs": [
{ "targets": [ 5 ], "visible": false, "searchable": false },
{"type": "date", "targets": 6},
{"orderable": false, "targets": [0,2,3]},
{"orderable": false, "targets": [0,2,3,4]},
{ "render": function(data, type, row) {
if (data != $scope.addrHash)
return '<a href="/addr/'+data+'">'+data+'</a>'
Expand All @@ -80,6 +80,9 @@ angular.module('BlocksApp').controller('AddressController', function($stateParam
return getDuration(data).toString();
}, "targets": [6]},
]
}).on('xhr', function(e, settings, json) {
$scope.addr.count = json.recordsTotal;
$scope.addr.mined = parseInt(json.mined);
});
}

Expand Down
Loading