2024-06-19 13:13:32 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
|
|
|
import AppLayouts.Wallet.controls 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
width: 400
|
|
|
|
height: 400
|
|
|
|
|
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
DappsComboBox {
|
|
|
|
id: connectedDappComboBox
|
2024-07-04 11:38:13 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2024-08-05 18:18:26 +00:00
|
|
|
model: emptyModelCheckbox.checked ? emptyModel : smallModelCheckbox.checked ? smallModel: dappsModel
|
2024-07-04 11:38:13 +00:00
|
|
|
popup.visible: true
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: emptyModel
|
|
|
|
}
|
|
|
|
|
2024-08-05 18:18:26 +00:00
|
|
|
ListModel {
|
|
|
|
id: smallModel
|
|
|
|
ListElement {
|
|
|
|
name: "SMALL Model"
|
|
|
|
url: "https://dapp.test/1"
|
|
|
|
iconUrl: "https://se-sdk-dapp.vercel.app/assets/eip155:1.png"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-19 13:13:32 +00:00
|
|
|
ListModel {
|
|
|
|
id: dappsModel
|
|
|
|
ListElement {
|
2024-07-25 12:43:52 +00:00
|
|
|
name: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
url: "https://dapp.test/1"
|
|
|
|
iconUrl: "https://se-sdk-dapp.vercel.app/assets/eip155:1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 2"
|
|
|
|
url: "https://dapp.test/2"
|
2024-07-25 12:43:52 +00:00
|
|
|
iconUrl: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
2024-07-25 12:43:52 +00:00
|
|
|
name: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
url: "https://dapp.test/3"
|
2024-07-25 12:43:52 +00:00
|
|
|
iconUrl: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 4 - very long name !!!!!!!!!!!!!!!!"
|
|
|
|
url: "https://dapp.test/4"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 5 - very long url"
|
|
|
|
url: "https://dapp.test/very_long/url/unusual"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 6"
|
|
|
|
url: "https://dapp.test/6"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
2024-07-04 11:38:13 +00:00
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 7"
|
|
|
|
url: "https://dapp.test/7"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 8"
|
|
|
|
url: "https://dapp.test/8"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 9"
|
|
|
|
url: "https://dapp.test/9"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 10"
|
|
|
|
url: "https://dapp.test/10"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 11"
|
|
|
|
url: "https://dapp.test/11"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
|
|
|
}
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
id: controls
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
CheckBox {
|
|
|
|
id: emptyModelCheckbox
|
|
|
|
text: "Empty model"
|
|
|
|
checked: false
|
|
|
|
}
|
2024-08-05 18:18:26 +00:00
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: smallModelCheckbox
|
|
|
|
text: "Small model"
|
|
|
|
checked: false
|
|
|
|
}
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Controls
|
|
|
|
|
2024-08-05 18:18:26 +00:00
|
|
|
// https://www.figma.com/design/HrmZp1y4S77QJezRFRl6ku/dApp-Interactions---Milestone-1?node-id=130-31949&t=hnzB58fTnEnx2z84-0
|