2023-03-20 12:29:05 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
2024-02-15 17:26:05 +00:00
|
|
|
import QtQuick.Layouts 1.15
|
2023-03-20 12:29:05 +00:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Utils 0.1 as CoreUtils
|
|
|
|
|
|
|
|
import AppLayouts.Profile.panels 1.0
|
2024-02-15 17:26:05 +00:00
|
|
|
import AppLayouts.Profile.controls 1.0
|
2023-10-23 11:36:33 +00:00
|
|
|
import shared.stores 1.0
|
2023-03-20 12:29:05 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
2024-02-15 17:26:05 +00:00
|
|
|
ListModel {
|
2024-02-28 12:19:14 +00:00
|
|
|
id: hiddenModelItem
|
|
|
|
Component.onCompleted:
|
|
|
|
append([{
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseKey: "0x0006",
|
2024-02-28 12:19:14 +00:00
|
|
|
name: "Test community 6",
|
|
|
|
joined: true,
|
|
|
|
memberRole: Constants.memberRole.owner,
|
|
|
|
isControlNode: true,
|
|
|
|
image: ModelsData.icons.dribble,
|
|
|
|
color: "yellow",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.NoOne
|
2024-02-28 12:19:14 +00:00
|
|
|
},
|
|
|
|
{
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseKey: "0x0007",
|
2024-02-28 12:19:14 +00:00
|
|
|
name: "Test community 7",
|
|
|
|
joined: true,
|
|
|
|
memberRole: Constants.memberRole.none,
|
|
|
|
isControlNode: false,
|
|
|
|
image: ModelsData.collectibles.custom,
|
|
|
|
color: "peach",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.NoOne
|
2024-02-28 12:19:14 +00:00
|
|
|
},
|
|
|
|
{
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseKey: "0x0008",
|
2024-02-28 12:19:14 +00:00
|
|
|
name: "Test community 8",
|
|
|
|
joined: true,
|
|
|
|
memberRole: Constants.memberRole.none,
|
|
|
|
isControlNode: false,
|
|
|
|
image: "",
|
|
|
|
color: "whitesmoke",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.NoOne
|
2024-02-28 12:19:14 +00:00
|
|
|
},
|
|
|
|
{
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseKey: "0x0009",
|
2024-02-28 12:19:14 +00:00
|
|
|
name: "Test community 9",
|
|
|
|
joined: true,
|
|
|
|
memberRole: Constants.memberRole.admin,
|
|
|
|
isControlNode: false,
|
|
|
|
image: ModelsData.icons.spotify,
|
|
|
|
color: "green",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.NoOne
|
2024-02-28 12:19:14 +00:00
|
|
|
},
|
|
|
|
])
|
2024-02-15 17:26:05 +00:00
|
|
|
}
|
|
|
|
|
2023-03-20 12:29:05 +00:00
|
|
|
ListModel {
|
2024-02-28 12:19:14 +00:00
|
|
|
id: inShowcaseModelItem
|
2023-11-09 14:24:05 +00:00
|
|
|
|
2023-03-20 12:29:05 +00:00
|
|
|
Component.onCompleted:
|
|
|
|
append([{
|
2024-03-04 22:07:09 +00:00
|
|
|
id: "0x0001",
|
|
|
|
showcaseKey: "0x0001",
|
2023-03-20 12:29:05 +00:00
|
|
|
name: "Test community",
|
|
|
|
joined: true,
|
2023-06-19 14:16:35 +00:00
|
|
|
memberRole: Constants.memberRole.owner,
|
2023-07-21 21:05:42 +00:00
|
|
|
isControlNode: true,
|
2023-03-20 12:29:05 +00:00
|
|
|
image: ModelsData.icons.dribble,
|
2024-02-28 12:19:14 +00:00
|
|
|
color: "yellow",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Everyone
|
2023-03-20 12:29:05 +00:00
|
|
|
},
|
|
|
|
{
|
2024-03-04 22:07:09 +00:00
|
|
|
id: "0x0002",
|
|
|
|
showcaseKey: "0x0002",
|
2023-03-20 12:29:05 +00:00
|
|
|
name: "Test community 2",
|
|
|
|
joined: true,
|
2023-06-19 14:16:35 +00:00
|
|
|
memberRole: Constants.memberRole.none,
|
2023-07-21 21:05:42 +00:00
|
|
|
isControlNode: false,
|
2023-03-20 12:29:05 +00:00
|
|
|
image: ModelsData.collectibles.custom,
|
2024-02-28 12:19:14 +00:00
|
|
|
color: "peach",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Everyone
|
2023-03-20 12:29:05 +00:00
|
|
|
},
|
|
|
|
{
|
2024-03-04 22:07:09 +00:00
|
|
|
id: "0x0004",
|
|
|
|
showcaseKey: "0x0004",
|
2023-03-20 12:29:05 +00:00
|
|
|
name: "Test community 3",
|
|
|
|
joined: true,
|
2023-06-19 14:16:35 +00:00
|
|
|
memberRole: Constants.memberRole.none,
|
2023-07-21 21:05:42 +00:00
|
|
|
isControlNode: false,
|
2023-03-20 12:29:05 +00:00
|
|
|
image: "",
|
2024-02-28 12:19:14 +00:00
|
|
|
color: "whitesmoke",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Everyone
|
2023-03-20 12:29:05 +00:00
|
|
|
},
|
|
|
|
{
|
2024-03-04 22:07:09 +00:00
|
|
|
id: "0x0005",
|
|
|
|
showcaseKey: "0x0005",
|
2023-03-20 12:29:05 +00:00
|
|
|
name: "Test community 4",
|
|
|
|
joined: true,
|
2023-06-19 14:16:35 +00:00
|
|
|
memberRole: Constants.memberRole.admin,
|
2023-07-21 21:05:42 +00:00
|
|
|
isControlNode: false,
|
2023-03-20 12:29:05 +00:00
|
|
|
image: ModelsData.icons.spotify,
|
2024-02-28 12:19:14 +00:00
|
|
|
color: "green",
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Everyone
|
2023-03-20 12:29:05 +00:00
|
|
|
},
|
|
|
|
])
|
|
|
|
}
|
|
|
|
|
2023-11-09 14:24:05 +00:00
|
|
|
ListModel {
|
2024-02-28 12:19:14 +00:00
|
|
|
id: emptyModel
|
2023-11-09 14:24:05 +00:00
|
|
|
}
|
|
|
|
|
2024-02-28 12:19:14 +00:00
|
|
|
ProfileShowcaseCommunitiesPanel {
|
|
|
|
id: showcasePanel
|
2023-03-20 12:29:05 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.preferredHeight: 500
|
2024-02-15 17:26:05 +00:00
|
|
|
|
2024-02-28 12:19:14 +00:00
|
|
|
inShowcaseModel: emptyModelChecker.checked ? emptyModel : inShowcaseModelItem
|
|
|
|
hiddenModel: emptyModelChecker.checked ? emptyModel : hiddenModelItem
|
2024-03-03 11:02:30 +00:00
|
|
|
showcaseLimit: 5
|
2023-03-20 12:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
2024-02-15 17:26:05 +00:00
|
|
|
ColumnLayout {
|
2024-02-28 12:19:14 +00:00
|
|
|
Label {
|
2024-03-04 22:07:09 +00:00
|
|
|
text: "ⓘ Showcase interaction implemented in ProfileShowcasePanelPage"
|
2024-02-15 17:26:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: emptyModelChecker
|
|
|
|
|
|
|
|
text: "Empty model"
|
|
|
|
checked: false
|
|
|
|
}
|
2023-03-20 12:29:05 +00:00
|
|
|
}
|
|
|
|
}
|
2024-02-28 12:19:14 +00:00
|
|
|
|
2023-03-20 12:29:05 +00:00
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Panels
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14580-339532&t=RkXAEv3G6mp3EUvl-0
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14729-231402&t=RkXAEv3G6mp3EUvl-0
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14609-236656&t=RkXAEv3G6mp3EUvl-0
|