Browse Source

pug formatting consistency improvements

master
Dan Janosik 5 years ago
parent
commit
1958749871
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 2
      views/about.pug
  2. 10
      views/address.pug
  3. 2
      views/block.pug
  4. 2
      views/browser.pug
  5. 4
      views/error.pug
  6. 2
      views/fun.pug
  7. 2
      views/index.pug
  8. 4
      views/mempool-summary.pug
  9. 10
      views/node-status.pug
  10. 2
      views/peers.pug
  11. 2
      views/search.pug
  12. 2
      views/terminal.pug
  13. 2
      views/tx-stats.pug

2
views/about.pug

@ -4,7 +4,7 @@ block headContent
title About
block content
h1(class="h3") About
h1.h3 About
hr
p This tool is intended to be a simple, self-hosted explorer for the #{coinConfig.name} blockchain, driven by RPC calls to your own node. This tool is easy to run but lacks some features compared to database-backed explorers.

10
views/address.pug

@ -10,7 +10,7 @@ block content
br
small(class="monospace") #{address}
else
h1(class="h3") Address
h1.h3 Address
br
small(class="monospace") #{address}
@ -75,7 +75,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(addressObj, null, 4)}
code.json.bg-light #{JSON.stringify(addressObj, null, 4)}
ul(class='nav nav-tabs mb-3')
li(class="nav-item")
@ -146,7 +146,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(firstSeenTransaction)}
code.json.bg-light #{JSON.stringify(firstSeenTransaction)}
if (balance)
if (balance.conflictedResults)
@ -315,7 +315,7 @@ block content
each tx, txIndex in transactions
//pre
// code(class="json bg-light") #{JSON.stringify(tx, null, 4)}
// code.json.bg-light #{JSON.stringify(tx, null, 4)}
div(class=("xcard bg-light rounded shadow-sm " + ((txIndex < (transactions.length - 1) || txids.length > limit) ? "mb-4" : "")))
div(class="card-header monospace clearfix")
div(class="float-left", style="margin-right: 0px;")
@ -373,7 +373,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(transactions, null, 4)}
code.json.bg-light #{JSON.stringify(transactions, null, 4)}
if (!crawlerBot && addressDetails && addressDetails.txCount > limit)
- var txCount = addressDetails.txCount;

2
views/block.pug

@ -4,7 +4,7 @@ block headContent
title Block ##{result.getblock.height.toLocaleString()}, #{result.getblock.hash}
block content
h1(class="h3") Block
h1.h3 Block
small(style="width: 100%;", class="monospace") ##{result.getblock.height.toLocaleString()}
br
small(style="width: 100%;", class="monospace word-wrap") #{result.getblock.hash}

2
views/browser.pug

@ -10,7 +10,7 @@ block headContent
}
block content
h1(class="h3") RPC Browser
h1.h3 RPC Browser
hr
if (gethelp)

4
views/error.pug

@ -6,11 +6,11 @@ block content
if (message)
pre
code(class="json bg-light") !{message}
code.json.bg-light !{message}
else
p Unknown error
if (error)
h2 #{error.status}
pre
code(class="json bg-light") #{error.stack}
code.json.bg-light #{error.stack}

2
views/fun.pug

@ -4,7 +4,7 @@ block headContent
title #{coinConfig.name} Fun
block content
h1(class="h3") #{coinConfig.name} Fun
h1.h3 #{coinConfig.name} Fun
hr
p Below is a list of fun/interesting things in the #{coinConfig.name} blockchain. Some are historical firsts, others are just fun or cool.

2
views/index.pug

@ -4,7 +4,7 @@ block headContent
title Home
block content
h1(class="h3") #{coinConfig.siteTitle}
h1.h3 #{coinConfig.siteTitle}
hr
if (getblockchaininfo == null)

4
views/mempool-summary.pug

@ -4,12 +4,12 @@ block headContent
title Mempool Summary
block content
h1(class="h3") Mempool Summary
h1.h3 Mempool Summary
hr
if (false)
pre
code(class="json bg-light") #{JSON.stringify(mempoolstats, null, 4)}
code.json.bg-light #{JSON.stringify(mempoolstats, null, 4)}
if (true)
div(class="card mb-3 shadow-sm")

10
views/node-status.pug

@ -4,7 +4,7 @@ block headContent
title Node Status
block content
h1(class="h3") Node Status
h1.h3 Node Status
hr
if (getblockchaininfo)
@ -18,7 +18,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(getblockchaininfo, null, 4)}
code.json.bg-light #{JSON.stringify(getblockchaininfo, null, 4)}
ul(class='nav nav-tabs mb-3')
li(class="nav-item")
@ -123,14 +123,14 @@ block content
div(class="tab-content")
div(id="tab-getblockchaininfo", class="tab-pane active", role="tabpanel")
pre
code(class="json bg-light", data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)}
code.json.bg-light(data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)}
div(id="tab-getnettotals", class="tab-pane", role="tabpanel")
pre
code(class="json bg-light", data-lang="json") #{JSON.stringify(getnettotals, null, 4)}
code.json.bg-light(data-lang="json") #{JSON.stringify(getnettotals, null, 4)}
div(id="tab-getnetworkinfo", class="tab-pane", role="tabpanel")
pre
code(class="json bg-light", data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)}
code.json.bg-light(data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)}

2
views/peers.pug

@ -17,7 +17,7 @@ block headContent
#map { height: 700px; }
block content
h1(class="h3") #{peerSummary.getpeerinfo.length}
h1.h3 #{peerSummary.getpeerinfo.length}
if (peerSummary.getpeerinfo.length == 1)
span Peer
else

2
views/search.pug

@ -4,7 +4,7 @@ block headContent
title Search
block content
h1(class="h3") Search
h1.h3 Search
hr
div(class="mb-5")

2
views/terminal.pug

@ -6,7 +6,7 @@ block headContent
block content
div(class="row")
div(class="col")
h1(class="h3") RPC Terminal
h1.h3 RPC Terminal
div(class="col")
if (!config.demoSite && (!config.credentials.rpc || !config.credentials.rpc.rpc))

2
views/tx-stats.pug

@ -4,7 +4,7 @@ block headContent
title Transaction Stats
block content
h1(class="h3") Transaction Stats
h1.h3 Transaction Stats
hr
if (false)

Loading…
Cancel
Save