Skip to content

Commit 15ded0b

Browse files
committed
Integrate web app in to the main client
1 parent b89d9f6 commit 15ded0b

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

ethereal/assets/browser.png

12.6 KB
Loading

ethereal/assets/qml/wallet.qml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ ApplicationWindow {
4444
// Takes care of loading all default plugins
4545
Component.onCompleted: {
4646
addPlugin("./views/wallet.qml", {noAdd: true, section: "ethereum", active: true});
47+
addPlugin("./webapp.qml", {noAdd: true, section: "ethereum", active: true});
4748

4849
addPlugin("./views/transaction.qml", {noAdd: true, section: "legacy"});
4950
addPlugin("./views/chain.qml", {noAdd: true, section: "legacy"});
@@ -111,10 +112,12 @@ ApplicationWindow {
111112
}
112113
}
113114

115+
/*
114116
MenuItem {
115117
text: "Browser"
116118
onTriggered: eth.openBrowser()
117119
}
120+
*/
118121

119122
MenuItem {
120123
text: "Add plugin"
@@ -145,6 +148,7 @@ ApplicationWindow {
145148
})
146149
}
147150
}
151+
148152
}
149153

150154
Menu {
@@ -225,6 +229,17 @@ ApplicationWindow {
225229
}
226230
}
227231

232+
Menu {
233+
title: "GLOBAL SHORTCUTS"
234+
visible: false
235+
MenuItem {
236+
visible: false
237+
shortcut: "Ctrl+l"
238+
onTriggered: {
239+
url.focus = true
240+
}
241+
}
242+
}
228243
}
229244

230245
statusBar: StatusBar {
@@ -238,13 +253,15 @@ ApplicationWindow {
238253
}
239254
}
240255

256+
/*
241257
Button {
242258
id: importAppButton
243259
text: "Browser"
244260
onClicked: {
245261
eth.openBrowser()
246262
}
247263
}
264+
*/
248265

249266
RowLayout {
250267
Label {

ethereal/assets/qml/webapp.qml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@ import QtQuick.Layouts 1.0;
77
import QtQuick.Window 2.1;
88
import Ethereum 1.0
99

10-
ApplicationWindow {
10+
//ApplicationWindow {
11+
Rectangle {
1112
id: window
12-
title: "Ethereum"
13-
width: 1000
14-
height: 800
15-
minimumHeight: 300
13+
property var title: "Browser"
14+
property var iconSource: "../browser.png"
15+
property var menuItem
16+
17+
//width: 1000
18+
//height: 800
19+
//minimumHeight: 300
1620

1721
property alias url: webview.url
1822
property alias webView: webview
1923

24+
Component.onCompleted: {
25+
webview.url = "http://etherian.io"
26+
}
27+
2028
Item {
2129
objectName: "root"
2230
id: root
@@ -53,6 +61,7 @@ ApplicationWindow {
5361
leftMargin: 5
5462
rightMargin: 5
5563
}
64+
text: "http://etherian.io"
5665
id: uriNav
5766
y: parent.height / 2 - this.height / 2
5867

0 commit comments

Comments
 (0)