2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-05-19 14:44:45 -05:00
|
|
|
import "../../../shared"
|
2021-10-06 11:16:39 +02:00
|
|
|
|
|
|
|
import "stores"
|
|
|
|
import "popups"
|
|
|
|
import "views"
|
2020-05-19 14:44:45 -05:00
|
|
|
|
2021-06-16 13:15:28 +02:00
|
|
|
import StatusQ.Layout 0.1
|
|
|
|
|
|
|
|
StatusAppTwoPanelLayout {
|
|
|
|
|
|
|
|
id: profileView
|
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
property RootStore store: RootStore { }
|
|
|
|
|
2021-03-18 10:33:39 +01:00
|
|
|
property int contentMaxWidth: 624
|
2021-04-08 11:44:58 -04:00
|
|
|
property int contentMinWidth: 450
|
2020-10-21 10:45:28 -04:00
|
|
|
property alias changeProfileSection: leftTab.changeProfileSection
|
2020-06-23 16:49:04 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
leftPanel: LeftTabView {
|
2020-05-19 14:44:45 -05:00
|
|
|
id: leftTab
|
2021-10-06 11:16:39 +02:00
|
|
|
store: profileView.store
|
|
|
|
anchors.fill: parent
|
2020-05-19 14:44:45 -05:00
|
|
|
}
|
|
|
|
|
2021-06-16 13:15:28 +02:00
|
|
|
rightPanel: StackLayout {
|
|
|
|
id: profileContainer
|
2021-04-08 11:44:58 -04:00
|
|
|
property int profileContentWidth: Math.max(contentMinWidth, Math.min(profileContainer.width * 0.8, contentMaxWidth))
|
2021-06-16 13:15:28 +02:00
|
|
|
anchors.fill: parent
|
2021-04-08 11:44:58 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
currentIndex: profileView.store.selectedMenuItem
|
2020-05-19 14:44:45 -05:00
|
|
|
|
2020-08-04 18:22:51 -04:00
|
|
|
onCurrentIndexChanged: {
|
|
|
|
if(visibleChildren[0] === ensContainer){
|
|
|
|
ensContainer.goToStart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
MyProfileView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2021-06-16 13:15:28 +02:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
ContactsView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-05-19 14:44:45 -05:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
EnsView {
|
2020-08-04 18:22:51 -04:00
|
|
|
id: ensContainer
|
2021-10-06 11:16:39 +02:00
|
|
|
store: profileView.store
|
2020-08-04 18:22:51 -04:00
|
|
|
}
|
2020-07-21 17:03:22 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
PrivacyView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-05-19 14:44:45 -05:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
AppearanceView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-07-03 12:54:27 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
SoundsView {}
|
2020-05-24 18:23:00 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
LanguageView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-05-24 18:23:00 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
NotificationsView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-05-24 18:23:00 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
SyncView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-07-21 17:03:22 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
DevicesView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-07-21 17:03:22 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
BrowserView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-10-21 10:45:28 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
AdvancedView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-05-24 18:23:00 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
HelpView {}
|
2020-05-19 14:44:45 -05:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
AboutView {
|
|
|
|
store: profileView.store
|
|
|
|
}
|
2020-05-19 14:44:45 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|