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