Lots of work on front-end
This commit is contained in:
parent
d1ee74b406
commit
4c7e41b71b
@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"website": {
|
"website": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
"siteTitle": "Cryppit",
|
||||||
"port": 80,
|
"port": 80,
|
||||||
"statUpdateInterval": 5
|
"statUpdateInterval": 5
|
||||||
},
|
},
|
||||||
|
|||||||
@ -75,7 +75,8 @@ module.exports = function(logger){
|
|||||||
for (var pageName in pageTemplates){
|
for (var pageName in pageTemplates){
|
||||||
pageProcessed[pageName] = pageTemplates[pageName]({
|
pageProcessed[pageName] = pageTemplates[pageName]({
|
||||||
poolsConfigs: poolConfigs,
|
poolsConfigs: poolConfigs,
|
||||||
stats: portalApi.stats
|
stats: portalApi.stats,
|
||||||
|
portalConfig: portalConfig
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -133,11 +134,11 @@ module.exports = function(logger){
|
|||||||
var requestedPage = getPage(pageId);
|
var requestedPage = getPage(pageId);
|
||||||
if (requestedPage){
|
if (requestedPage){
|
||||||
var data = pageTemplates.index({
|
var data = pageTemplates.index({
|
||||||
siteTitle: websiteConfig.siteTitle,
|
|
||||||
page: requestedPage,
|
page: requestedPage,
|
||||||
selected: pageId,
|
selected: pageId,
|
||||||
stats: portalApi.stats,
|
stats: portalApi.stats,
|
||||||
poolConfigs: poolConfigs
|
poolConfigs: poolConfigs,
|
||||||
|
portalConfig: portalConfig
|
||||||
});
|
});
|
||||||
res.send(data);
|
res.send(data);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
<div>Welcome to Cryppit - The first multi-pool running on NOMP!</div>
|
<div>Welcome to {{=it.portalConfig.website.siteTitle}}! - The first multi-pool running on NOMP!</div>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<script src="/static/main.js"></script>
|
<script src="/static/main.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<title>{{=it.siteTitle}}</title>
|
<title>{{=it.portalConfig.website.siteTitle}}</title>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@ -23,10 +23,10 @@
|
|||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="pure-menu pure-menu-open pure-menu-horizontal">
|
<div class="pure-menu pure-menu-open pure-menu-horizontal">
|
||||||
<ul>
|
<ul>
|
||||||
<li id="home" class="{{? it.selected === '' }}selected{{?}}"><a class="hot-swapper" href="/"><i class="fa fa-home"></i> Home</a></li>
|
<li id="home" class="{{? it.selected === '' }}selected{{?}}"><a class="hot-swapper" href="/"><i class="fa fa-home"></i> Home</a></li>
|
||||||
<li class="{{? it.selected === 'getting_started' }}selected{{?}}"><a class="hot-swapper" href="/getting_started">Getting Started</a></li>
|
<li class="{{? it.selected === 'getting_started' }}selected{{?}}"><a class="hot-swapper" href="/getting_started"><i class="fa fa-arrow-right"></i> Getting Started</a></li>
|
||||||
<li class="{{? it.selected === 'stats' }}selected{{?}}"><a class="hot-swapper" href="/stats">Stats</a></li>
|
<li class="{{? it.selected === 'stats' }}selected{{?}}"><a class="hot-swapper" href="/stats"><i class="fa fa-bar-chart-o"></i> Stats</a></li>
|
||||||
<li class="{{? it.selected === 'api' }}selected{{?}}"><a class="hot-swapper" href="/api"><i class="fa fa-code"></i> API</a></li>
|
<li class="{{? it.selected === 'api' }}selected{{?}}"><a class="hot-swapper" href="/api"><i class="fa fa-code"></i> API</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -43,11 +43,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<div>This site is powered by the open source <a href="https://github.com/zone117x/node-open-mining-portal/">NOMP</a> project created by Matthew Little and licensed under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GPL</a></div>
|
<div>This site is powered by the open source <a href="https://github.com/zone117x/node-open-mining-portal/">NOMP</a> project created by Matthew Little and licensed under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GPL</a></div>
|
||||||
<div>Support this project by donating <i class="fa fa-btc"></i> BTC: 1KRotMnQpxu3sePQnsVLRy3EraRFYfJQFR</div>
|
<div><i class="fa fa-heart"></i> Support this project by donating <i class="fa fa-btc"></i> BTC: 1KRotMnQpxu3sePQnsVLRy3EraRFYfJQFR</div>
|
||||||
<div id="communityFooter">
|
<div id="communityFooter">
|
||||||
Community: <a target="_blank" href="https://kiwiirc.com/client/irc.freenode.net/nomp">#nomp IRC</a>
|
Community <i class="fa fa-comment"></i> : <a target="_blank" href="https://kiwiirc.com/client/irc.freenode.net/nomp">#nomp IRC</a>
|
||||||
|
|
|
|
||||||
<a href="http://reddit.com/r/nomp">/r/nomp</a>
|
<a target="_blank" href="http://reddit.com/r/nomp">/r/nomp</a>
|
||||||
|
|
|
|
||||||
<iframe src="http://ghbtns.com/github-btn.html?user=zone117x&repo=node-open-mining-portal&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="140" height="20"></iframe>
|
<iframe src="http://ghbtns.com/github-btn.html?user=zone117x&repo=node-open-mining-portal&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="140" height="20"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
fancy graphs here
|
fancy graphs here
|
||||||
|
<br>
|
||||||
|
{{=JSON.stringify(it.stats)}}
|
||||||
</div>
|
</div>
|
||||||
@ -1,3 +1,6 @@
|
|||||||
|
html{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
body{
|
body{
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -12,6 +15,8 @@ body{
|
|||||||
-moz-flex-direction: column;
|
-moz-flex-direction: column;
|
||||||
-ms-flex-direction: column;
|
-ms-flex-direction: column;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
header{
|
header{
|
||||||
background-color: #f3f2ef;
|
background-color: #f3f2ef;
|
||||||
@ -74,22 +79,6 @@ footer a{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
footer iframe{
|
||||||
footer > div{
|
vertical-align: middle;
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -moz-box;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
-webkit-box-align: center;
|
|
||||||
-webkit-align-items: center;
|
|
||||||
-moz-box-align: center;
|
|
||||||
-ms-flex-align: center;
|
|
||||||
align-items: center;
|
|
||||||
-webkit-box-pack: center;
|
|
||||||
-webkit-justify-content: center;
|
|
||||||
-moz-box-pack: center;
|
|
||||||
-ms-flex-pack: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user