aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/webapp.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-17 18:41:23 +0800
committerobscuren <geffobscura@gmail.com>2014-08-17 18:41:23 +0800
commit27735bbdfc4e32e2e5ca11f48591d62b766aa3f5 (patch)
treeceb02da5048d2f592944ff7bc41186fc81f8e76b /ethereal/assets/qml/webapp.qml
parent2eab964a00b998068f49b088949730f4896e256c (diff)
downloadgo-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar
go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.gz
go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.bz2
go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.lz
go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.xz
go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.zst
go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.zip
State dumps from gui
Diffstat (limited to 'ethereal/assets/qml/webapp.qml')
-rw-r--r--ethereal/assets/qml/webapp.qml18
1 files changed, 15 insertions, 3 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index e6d0f5c14..22e404cc8 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -78,6 +78,7 @@ ApplicationWindow {
}
}
+
WebView {
objectName: "webView"
id: webview
@@ -127,6 +128,8 @@ ApplicationWindow {
this.cleanPath = false;
}
}
+
+
experimental.preferences.javascriptEnabled: true
experimental.preferences.navigatorQtObjectEnabled: true
experimental.preferences.developerExtrasEnabled: true
@@ -251,9 +254,13 @@ ApplicationWindow {
break
- case "debug":
- console.log(data.args[0]);
- break;
+ case "mutan":
+ require(1)
+
+ var code = eth.compileMutan(data.args[0])
+ postData(data._seed, "0x"+code)
+
+ break;
}
} catch(e) {
console.log(data.call + ": " + e)
@@ -262,6 +269,11 @@ ApplicationWindow {
}
}
+ function post(seed, data) {
+ console.log("data", data)
+ postData(data._seed, data)
+ }
+
function require(args, num) {
if(args.length < num) {
throw("required argument count of "+num+" got "+args.length);