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 13:41:20 +00:00
|
|
|
model: emptyModelCheckbox.checked ? emptyModel : smallModelCheckbox.checked ? smallModel: dappsModel
|
2024-07-04 11:38:13 +00:00
|
|
|
popup.visible: true
|
2024-09-03 12:57:07 +00:00
|
|
|
|
|
|
|
onPairDapp: console.log("onPairDapp")
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: emptyModel
|
|
|
|
}
|
|
|
|
|
2024-08-05 13:41:20 +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-11-26 11:19:43 +00:00
|
|
|
connectorBadge: "https://random.imagecdn.app/20/20"
|
2024-08-05 13:41:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: "https://random.imagecdn.app/20/20"
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 2"
|
|
|
|
url: "https://dapp.test/2"
|
2024-07-25 12:43:52 +00:00
|
|
|
iconUrl: ""
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: "https://random.imagecdn.app/20/20"
|
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-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
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"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
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"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 6"
|
|
|
|
url: "https://dapp.test/6"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
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"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-07-04 11:38:13 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 8"
|
|
|
|
url: "https://dapp.test/8"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-07-04 11:38:13 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 9"
|
|
|
|
url: "https://dapp.test/9"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-07-04 11:38:13 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 10"
|
|
|
|
url: "https://dapp.test/10"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-07-04 11:38:13 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Test dApp 11"
|
|
|
|
url: "https://dapp.test/11"
|
|
|
|
iconUrl: "https://react-app.walletconnect.com/assets/eip155-1.png"
|
2024-11-26 11:19:43 +00:00
|
|
|
connectorBadge: ""
|
2024-07-04 11:38:13 +00:00
|
|
|
}
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
id: controls
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
ColumnLayout {
|
2024-09-03 12:57:07 +00:00
|
|
|
RadioButton {
|
|
|
|
text: "Default model"
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
2024-06-19 13:13:32 +00:00
|
|
|
id: emptyModelCheckbox
|
|
|
|
text: "Empty model"
|
|
|
|
}
|
2024-08-05 13:41:20 +00:00
|
|
|
|
2024-09-03 12:57:07 +00:00
|
|
|
RadioButton {
|
2024-08-05 13:41:20 +00:00
|
|
|
id: smallModelCheckbox
|
|
|
|
text: "Small model"
|
|
|
|
}
|
2024-06-19 13:13:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Controls
|
|
|
|
|
2024-08-05 13:41:20 +00:00
|
|
|
// https://www.figma.com/design/HrmZp1y4S77QJezRFRl6ku/dApp-Interactions---Milestone-1?node-id=130-31949&t=hnzB58fTnEnx2z84-0
|
2024-09-03 12:57:07 +00:00
|
|
|
// https://www.figma.com/design/1OYKMzU6KTQHQAqDhojk0r/Status-connector?node-id=3216-5618&node-type=FRAME&t=CqsuoQHp1p5MOUt9-0
|