Merge branch 'master' into bianjie/cosmos-explorer

This commit is contained in:
billy rennekamp 2018-06-11 16:03:14 +02:00 committed by GitHub
commit 7c41f20685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 23 deletions

View File

@ -1,8 +1,8 @@
# Cosmos Network Monitor
# Cosmos Explorer
> Graphical interface to view testnets on the Cosmos Network.
> Graphical interface to explore testnet data for the Cosmos Hub.
## Build Setup
## Build
```bash
# install dependencies
@ -10,19 +10,14 @@ yarn
# serve with hot reload at localhost:8080
yarn serve
# build for production with minification
yarn build
```
## Change Watched Node
## Deploy
In `./src/store/modules/blockchain.js` change the `url` line to the Tendermint RPC of your choice.
```
# build for production with minification
yarn build
## Run the built version locally
# then serve the `./dist` folder with the web server of your choice
```
1. Extract the zip
2. Enter the folder in your terminal
3. Run `python -m SimpleHTTPServer 8080` (python 2) or `python3 -m http.server 8080` (python 3)
4. Visit `localhost:8080` in your browser
5. Done!

View File

@ -1,16 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Cosmos Monitor</title>
<title>Cosmos Explorer</title>
<meta name=viewport content="width=device-width, user-scalable=no">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<div id="app">
<div id="load">
<div id="load-container">
<div id="load-title">Cosmos Monitor</div>
<div id="load-title">Cosmos Explorer</div>
<div id="load-main">
<p class="green">app is loading&hellip;</p>
<p>taking forever? disable noscript</p>
<p>need help? <a href="mailto:hello@tendermint.com">email us</a></p>
</div>
</div>
</div>

View File

@ -1,12 +1,13 @@
<template lang="pug">
menu.app-menu
part(title='Network Monitor')
part(title='Network Explorer')
list-item(to="/" exact @click.native="close" title="Blockchain")
list-item(to="/validators" exact @click.native="close" :title="`Peer Nodes (${peers.length})`" v-bind:class="{ 'active': isValidatorPage }")
list-item(to="/search" exact @click.native="close" title="Search")
part(title='Learn More')
list-item(type="anchor" href="https://riot.im/app/#/room/#cosmos_validators:matrix.org" @click.native="close" title="Validator Chat" target="_blank")
list-item(type="anchor" href="https://cosmos.network" @click.native="close" title="Cosmos Website" target="_blank")
list-item(type="anchor" href="https://riot.im/app/#/room/#cosmos_validators:matrix.org" @click.native="close" title="#cosmos_validators" subtitle="validator chat" target="_blank")
list-item(type="anchor" href="http://validators.resilient.zone/gaia-5/" @click.native="close" title="resilient.zone" subtitle="validator statistics" target="_blank")
list-item(type="anchor" href="https://cosmos.network" @click.native="close" title="cosmos.network" subtitle="official website" target="_blank")
</template>
<script>

View File

@ -8,11 +8,11 @@ page(title='Blockchain')
part(title='Current Block')
list-item(dt='Block Height' :dd='num.prettyInt(bc.status.sync_info.latest_block_height)'
:to="{ name: 'block', params: { block: bc.status.sync_info.latest_block_height} }")
list-item(dt='Latest Block Time' :dd='readableDate(bc.status.latest_block_time)')
list-item(dt='Latest Block Time' :dd='readableDate(bc.status.sync_info.latest_block_time)')
list-item(dt='Latest Block Hash' :dd='bc.status.sync_info.latest_block_hash')
part(title='Connected Node')
list-item(dt='Node IP')
list-item(dt='Node Address')
div(slot="dd"): input#node-input(v-model="bc.url")
list-item(dt='Node Moniker' :dd='bc.status.node_info.moniker')
</template>

View File

@ -1,7 +1,7 @@
import axios from 'axios'
const state = {
url: 'http://45.77.53.208:46657',
url: 'https://nylira.net',
status: {
listen_addr: '',
sync_info: {

1
static/_redirects Normal file
View File

@ -0,0 +1 @@
/* /index.html 200