aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-03 22:54:41 +0800
committerobscuren <geffobscura@gmail.com>2015-02-03 22:54:41 +0800
commit663d725026b3d41d700c12d7b4ed06da5b3f7705 (patch)
tree0d8dcf0ed6da080b6f48698d71855c0491f589e5 /cmd
parent30fa30bd4a5f12e86480bec0a7dd2fe290c9abc4 (diff)
downloaddexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.tar
dexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.tar.gz
dexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.tar.bz2
dexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.tar.lz
dexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.tar.xz
dexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.tar.zst
dexon-663d725026b3d41d700c12d7b4ed06da5b3f7705.zip
Added a different default home page
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mist/assets/html/home.html75
-rw-r--r--cmd/mist/assets/html/logo.pngbin0 -> 12767 bytes
-rw-r--r--cmd/mist/assets/qml/main.qml4
3 files changed, 77 insertions, 2 deletions
diff --git a/cmd/mist/assets/html/home.html b/cmd/mist/assets/html/home.html
new file mode 100644
index 000000000..7116f5dde
--- /dev/null
+++ b/cmd/mist/assets/html/home.html
@@ -0,0 +1,75 @@
+<!doctype>
+<html>
+<head>
+<title>Ethereum</title>
+<script type="text/javascript" src="../ext/bignumber.min.js"></script>
+<script type="text/javascript" src="../ext/ethereum.js/dist/ethereum.js"></script>
+<style type="text/css">
+ body {
+ font-family: Helvetica;
+ }
+ div.logo {
+ width: 192px;
+ margin: 40px auto;
+ }
+</style>
+</head>
+<body>
+ <div class="logo"><img src="logo.png"></img></div>
+ <h1>Info</h1>
+
+ <table width="100%">
+ <tr>
+ <td>Block number</td>
+ <td id="number"></td>
+ </tr>
+
+ <tr>
+ <td>Peer count</td>
+ <td id="peer_count"></td>
+ </tr>
+
+ <tr>
+ <td>Accounts</td>
+ <td id="accounts"></td>
+ </tr>
+
+ <tr>
+ <td>Gas price</td>
+ <td id="gas_price"></td>
+ </tr>
+
+ <tr>
+ <td>Mining</td>
+ <td id="mining"></td>
+ </tr>
+
+ <tr>
+ <td>Listening</td>
+ <td id="listening"></td>
+ </tr>
+
+ <tr>
+ <td>Coinbase</td>
+ <td id="coinbase"></td>
+ </tr>
+ </table>
+</body>
+
+<script type="text/javascript">
+ var web3 = require('web3');
+ var eth = web3.eth;
+
+ web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
+
+ document.querySelector("#number").innerHTML = eth.number;
+ document.querySelector("#coinbase").innerHTML = eth.coinbase
+ document.querySelector("#peer_count").innerHTML = eth.peerCount;
+ document.querySelector("#accounts").innerHTML = eth.accounts;
+ document.querySelector("#gas_price").innerHTML = eth.gasPrice;
+ document.querySelector("#mining").innerHTML = eth.mining;
+ document.querySelector("#listening").innerHTML = eth.listening;
+</script>
+
+</html>
+
diff --git a/cmd/mist/assets/html/logo.png b/cmd/mist/assets/html/logo.png
new file mode 100644
index 000000000..28dc9f509
--- /dev/null
+++ b/cmd/mist/assets/html/logo.png
Binary files differ
diff --git a/cmd/mist/assets/qml/main.qml b/cmd/mist/assets/qml/main.qml
index 439f7888c..878d95825 100644
--- a/cmd/mist/assets/qml/main.qml
+++ b/cmd/mist/assets/qml/main.qml
@@ -45,7 +45,7 @@ ApplicationWindow {
mainSplit.setView(wallet.view, wallet.menuItem);
- newBrowserTab("http://etherian.io");
+ newBrowserTab(eth.assetPath("html/home.html"));
// Command setup
gui.sendCommand(0)
@@ -138,7 +138,7 @@ ApplicationWindow {
text: "New tab"
shortcut: "Ctrl+t"
onTriggered: {
- newBrowserTab("http://etherian.io");
+ newBrowserTab("about:blank");
}
}