Browse Source

minor tweaks for the public demo site

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
3655fb24b6
  1. 1
      app/coins/btc.js
  2. 1
      app/coins/ltc.js
  3. 39
      views/index.pug
  4. 2
      views/terminal.pug

1
app/coins/btc.js

@ -8,6 +8,7 @@ module.exports = {
siteDescriptionHtml:"<b>BTC Explorer</b> is <a href='https://github.com/janoside/btc-rpc-explorer). If you run your own [Bitcoin Full Node](https://bitcoin.org/en/full-node), **BTC Explorer** can easily run alongside it, communicating via RPC calls. See the project [ReadMe](https://github.com/janoside/btc-rpc-explorer) for a list of features and instructions for running.", siteDescriptionHtml:"<b>BTC Explorer</b> is <a href='https://github.com/janoside/btc-rpc-explorer). If you run your own [Bitcoin Full Node](https://bitcoin.org/en/full-node), **BTC Explorer** can easily run alongside it, communicating via RPC calls. See the project [ReadMe](https://github.com/janoside/btc-rpc-explorer) for a list of features and instructions for running.",
nodeTitle:"Bitcoin Full Node", nodeTitle:"Bitcoin Full Node",
nodeUrl:"https://bitcoin.org/en/full-node", nodeUrl:"https://bitcoin.org/en/full-node",
demoSiteUrl: "https://btc-explorer.chaintools.io",
currencyUnits:[ currencyUnits:[
{ {
name:"BTC", name:"BTC",

1
app/coins/ltc.js

@ -7,6 +7,7 @@ module.exports = {
siteTitle:"Litecoin Explorer", siteTitle:"Litecoin Explorer",
nodeTitle:"Litecoin Full Node", nodeTitle:"Litecoin Full Node",
nodeUrl:"https://litecoin.org/", nodeUrl:"https://litecoin.org/",
demoSiteUrl: "https://ltc-explorer.chaintools.io",
currencyUnits:[ currencyUnits:[
{ {
name:"LTC", name:"LTC",

39
views/index.pug

@ -7,21 +7,31 @@ block content
h1(class="h2") #{coinConfig.siteTitle} h1(class="h2") #{coinConfig.siteTitle}
hr hr
p(class="lead") if (env.demoSite)
strong #{coinConfig.siteTitle} div(class="alert alert-primary", role="alert")
span is p(class="lead")
a(href="https://github.com/janoside/btc-rpc-explorer") open-source strong #{coinConfig.siteTitle}
span . If you run your own span is
a(href=coinConfig.nodeUrl) #{coinConfig.name} Full Node a(href="https://github.com/janoside/btc-rpc-explorer") open-source
span , span . If you run your own
strong #{coinConfig.siteTitle} a(href=coinConfig.nodeUrl) #{coinConfig.name} Full Node
span can easily run alongside it, communicating via RPC calls. See the span ,
a(href="https://github.com/janoside/btc-rpc-explorer") project description strong #{coinConfig.siteTitle}
span for a list of features and instructions for running. span can easily run alongside it, communicating via RPC calls.
br
span See the
a(href="https://github.com/janoside/btc-rpc-explorer") project description
span for a list of features and instructions for running.
div
a(class="github-button", href="https://github.com/janoside/btc-rpc-explorer", data-icon="octicon-star", data-size="large", data-show-count="true", aria-label="Star janoside/btc-rpc-explorer on GitHub", style="padding-right: 10px;") Star
span
a(class="github-button", href="https://github.com/janoside/btc-rpc-explorer/fork", data-icon="octicon-repo-forked", data-size="large", data-show-count="true", aria-label="Fork janoside/btc-rpc-explorer on GitHub") Fork
if (latestBlocks) if (latestBlocks)
div(class="row mt-5") div(class="row mt-4")
div(class="col") div(class="col")
h2(class="h3") Latest Blocks h2(class="h3") Latest Blocks
if (getblockchaininfo.initialblockdownload) if (getblockchaininfo.initialblockdownload)
@ -36,4 +46,7 @@ block content
- var blocks = latestBlocks; - var blocks = latestBlocks;
- var blockOffset = 0; - var blockOffset = 0;
include includes/blocks-list.pug include includes/blocks-list.pug
block endOfBody
script(async, defer, src="https://buttons.github.io/buttons.js")

2
views/terminal.pug

@ -6,7 +6,7 @@ block content
h1(class="h2") RPC Terminal h1(class="h2") RPC Terminal
div(class="col") div(class="col")
if (!env.rpc || !env.rpc.rpc) if (!env.demoSite && (!env.rpc || !env.rpc.rpc))
span(style="float: right;") span(style="float: right;")
a(href="/disconnect", class="btn btn-secondary") Disconnect from node a(href="/disconnect", class="btn btn-secondary") Disconnect from node

Loading…
Cancel
Save