2024-09-25 19:15:13 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2023-12-26 11:19:41 +01:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
2024-05-22 11:13:39 +03:00
|
|
|
import shared.stores 1.0
|
|
|
|
|
|
|
|
import AppLayouts.stores 1.0 as AppLayoutsStores
|
|
|
|
import AppLayouts.Communities.stores 1.0
|
|
|
|
import AppLayouts.Profile.stores 1.0 as ProfileStores
|
|
|
|
import AppLayouts.Wallet.stores 1.0 as WalletStores
|
2023-12-26 11:19:41 +01:00
|
|
|
import "../panels"
|
|
|
|
|
|
|
|
FocusScope {
|
|
|
|
id: root
|
|
|
|
|
2024-05-22 11:13:39 +03:00
|
|
|
property AppLayoutsStores.RootStore store
|
|
|
|
property ProfileStores.ContactsStore contactsStore
|
|
|
|
property CommunitiesStore communitiesStore
|
|
|
|
property NetworkConnectionStore networkConnectionStore
|
2023-12-26 11:19:41 +01:00
|
|
|
|
2024-08-12 12:41:27 +02:00
|
|
|
property bool swapEnabled
|
2024-11-29 16:55:48 +02:00
|
|
|
property bool dAppsEnabled
|
2024-12-05 18:46:15 +02:00
|
|
|
property bool dAppsVisible
|
2024-11-29 16:55:48 +02:00
|
|
|
property bool walletConnectEnabled
|
|
|
|
property bool browserConnectEnabled
|
|
|
|
|
|
|
|
property var dAppsModel
|
2024-08-12 12:41:27 +02:00
|
|
|
|
2023-12-26 11:19:41 +01:00
|
|
|
property alias header: header
|
|
|
|
property alias headerButton: header.headerButton
|
|
|
|
property alias networkFilter: header.networkFilter
|
|
|
|
|
2024-01-10 10:27:11 +01:00
|
|
|
default property alias content: contentWrapper.children
|
2023-12-26 11:19:41 +01:00
|
|
|
|
2024-11-29 16:55:48 +02:00
|
|
|
signal dappPairRequested()
|
|
|
|
signal dappDisconnectRequested(string dappUrl)
|
|
|
|
|
2023-12-26 11:19:41 +01:00
|
|
|
ColumnLayout {
|
2024-01-10 10:27:11 +01:00
|
|
|
anchors.fill: parent
|
2023-12-26 11:19:41 +01:00
|
|
|
spacing: 0
|
|
|
|
|
|
|
|
WalletHeader {
|
|
|
|
id: header
|
|
|
|
Layout.fillWidth: true
|
2024-05-22 11:13:39 +03:00
|
|
|
overview: WalletStores.RootStore.overview
|
|
|
|
walletStore: WalletStores.RootStore
|
2023-12-26 11:19:41 +01:00
|
|
|
networkConnectionStore: root.networkConnectionStore
|
2024-09-25 19:15:13 +02:00
|
|
|
loginType: root.store.loginType
|
2024-11-29 16:55:48 +02:00
|
|
|
dAppsEnabled: root.dAppsEnabled
|
2024-12-05 18:46:15 +02:00
|
|
|
dAppsVisible: root.dAppsVisible
|
2024-11-29 16:55:48 +02:00
|
|
|
dAppsModel: root.dAppsModel
|
|
|
|
walletConnectEnabled: root.walletConnectEnabled
|
|
|
|
browserConnectEnabled: root.browserConnectEnabled
|
|
|
|
|
|
|
|
onDappPairRequested: root.dappPairRequested()
|
|
|
|
onDappDisconnectRequested: (dappUrl) =>root.dappDisconnectRequested(dappUrl)
|
2023-12-26 11:19:41 +01:00
|
|
|
}
|
|
|
|
|
2024-01-31 16:45:23 +01:00
|
|
|
Item {
|
2023-12-26 11:19:41 +01:00
|
|
|
id: contentWrapper
|
|
|
|
Layout.fillWidth: true
|
2024-01-10 10:27:11 +01:00
|
|
|
Layout.fillHeight: true
|
2023-12-26 11:19:41 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|