2022-10-04 21:51:14 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
2022-10-10 14:12:23 +00:00
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities 1.0
|
|
|
|
import AppLayouts.Communities.stores 1.0
|
2022-10-04 21:51:14 +00:00
|
|
|
|
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
2022-10-11 09:26:24 +00:00
|
|
|
import Storybook 1.0
|
2022-10-25 21:20:10 +00:00
|
|
|
import Models 1.0
|
2022-10-11 09:26:24 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2023-02-07 14:21:32 +00:00
|
|
|
import mainui 1.0
|
2023-10-23 11:36:33 +00:00
|
|
|
import shared.stores 1.0
|
2022-10-11 09:26:24 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
SplitView {
|
2023-02-07 14:21:32 +00:00
|
|
|
id: root
|
2022-10-11 09:26:24 +00:00
|
|
|
Logs { id: logs }
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2023-02-07 14:21:32 +00:00
|
|
|
Popups {
|
|
|
|
popupParent: root
|
|
|
|
rootStore: QtObject {}
|
2023-10-23 11:36:33 +00:00
|
|
|
communityTokensStore: CommunityTokensStore {}
|
2023-02-07 14:21:32 +00:00
|
|
|
}
|
|
|
|
|
2022-10-11 09:26:24 +00:00
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
2022-10-10 14:12:23 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
2022-10-12 09:42:51 +00:00
|
|
|
CommunitiesPortalLayout {
|
2022-10-11 09:26:24 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2023-04-18 14:22:27 +00:00
|
|
|
assetsModel: AssetsModel {}
|
|
|
|
collectiblesModel: CollectiblesModel {}
|
2022-10-12 09:42:51 +00:00
|
|
|
communitiesStore: CommunitiesStore {
|
|
|
|
readonly property int unreadNotificationsCount: 42
|
2022-10-25 21:20:10 +00:00
|
|
|
readonly property string communityTags: ModelsData.communityTags
|
2022-10-12 09:42:51 +00:00
|
|
|
readonly property var curatedCommunitiesModel: SortFilterProxyModel {
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-12 09:42:51 +00:00
|
|
|
sourceModel: CommunitiesPortalDummyModel { id: mockedModel }
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-12 09:42:51 +00:00
|
|
|
filters: IndexFilter {
|
|
|
|
inverted: true
|
|
|
|
minimumIndex: Math.floor(slider.value)
|
2022-10-10 14:12:23 +00:00
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
}
|
2022-10-11 09:26:24 +00:00
|
|
|
|
2022-10-18 13:55:02 +00:00
|
|
|
function navigateToCommunity() {
|
|
|
|
logs.logEvent("CommunitiesStore::navigateToCommunity", ["communityId"], arguments)
|
2022-10-11 09:26:24 +00:00
|
|
|
}
|
2022-10-12 09:42:51 +00:00
|
|
|
}
|
2022-10-11 09:26:24 +00:00
|
|
|
|
2022-10-12 09:42:51 +00:00
|
|
|
QtObject {
|
|
|
|
id: localAccountSensitiveSettings
|
|
|
|
readonly property bool isDiscordImportToolEnabled: false
|
2022-10-04 21:51:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-11 09:26:24 +00:00
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
Row {
|
2022-10-14 08:29:36 +00:00
|
|
|
Label {
|
2022-10-10 14:12:23 +00:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
text: "number of communities:"
|
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
Slider {
|
|
|
|
id: slider
|
|
|
|
value: 9
|
|
|
|
from: 0
|
|
|
|
to: 9
|
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-14 08:29:36 +00:00
|
|
|
Pane {
|
2022-10-10 14:12:23 +00:00
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
|
|
|
|
CommunitiesPortalModelEditor {
|
|
|
|
anchors.fill: parent
|
|
|
|
model: mockedModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Views
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=8159%3A415655
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=8159%3A415935
|