aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/webapp.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-24 06:01:22 +0800
committerobscuren <geffobscura@gmail.com>2014-04-24 06:01:22 +0800
commitbb72347acf8a82d1c20e8aae25c84e5dc75903dd (patch)
treec2ab64cf4bbbe23a9efab8efa1087ba775e12aa2 /ethereal/assets/qml/webapp.qml
parent43f1214f97e52863b1f1ef7913991bef3d00c58e (diff)
downloadgo-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar
go-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.gz
go-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.bz2
go-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.lz
go-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.xz
go-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.zst
go-tangerine-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.zip
Minor fixes and sample coin "improvements"
Diffstat (limited to 'ethereal/assets/qml/webapp.qml')
-rw-r--r--ethereal/assets/qml/webapp.qml23
1 files changed, 20 insertions, 3 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index 496beb65a..ee7dea0ca 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -25,12 +25,15 @@ ApplicationWindow {
WebView {
objectName: "webView"
id: webview
+ anchors.fill: parent
+ /*
anchors {
left: parent.left
right: parent.right
bottom: sizeGrip.top
top: parent.top
}
+ */
onTitleChanged: { window.title = title }
experimental.preferences.javascriptEnabled: true
@@ -38,7 +41,7 @@ ApplicationWindow {
experimental.preferences.developerExtrasEnabled: true
experimental.userScripts: [ui.assetPath("ethereum.js")]
experimental.onMessageReceived: {
- console.log("[onMessageReceived]: ", message.data)
+ //console.log("[onMessageReceived]: ", message.data)
var data = JSON.parse(message.data)
switch(data.call) {
@@ -57,6 +60,20 @@ ApplicationWindow {
var tx = eth.createTx(data.args[0], data.args[1],data.args[2],data.args[3],data.args[4])
postData(data._seed, tx)
}
+ break
+ case "getStorage":
+ if(data.args.length < 2) {
+ postData(data._seed, null)
+ } else {
+ var stateObject = eth.getStateObject(data.args[0])
+ var storage = stateObject.getStorage(data.args[1])
+ postData(data._seed, storage)
+ }
+ break
+ case "getKey":
+ var keys = eth.getKey()
+ postData(data._seed, keys)
+ break
}
}
function postData(seed, data) {
@@ -67,7 +84,7 @@ ApplicationWindow {
Rectangle {
id: sizeGrip
color: "gray"
- visible: true
+ visible: false
height: 10
anchors {
left: root.left
@@ -86,7 +103,7 @@ ApplicationWindow {
WebView {
id: inspector
- visible: true
+ visible: false
url: webview.experimental.remoteInspectorUrl
anchors {
left: root.left