2022-11-24 16:23:54 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import AppLayouts.Chat.panels.communities 1.0
|
|
|
|
import AppLayouts.Chat.stores 1.0
|
2022-12-01 16:31:03 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2022-11-24 16:23:54 +00:00
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
|
2022-11-24 16:23:54 +00:00
|
|
|
SplitView {
|
2023-01-20 11:22:04 +00:00
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
2022-11-24 16:23:54 +00:00
|
|
|
Logs { id: logs }
|
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
Rectangle {
|
2022-11-24 16:23:54 +00:00
|
|
|
SplitView.fillWidth: true
|
2023-01-20 11:22:04 +00:00
|
|
|
SplitView.fillHeight: true
|
|
|
|
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
|
|
|
CommunityPermissionsSettingsPanel {
|
|
|
|
anchors {
|
|
|
|
fill: parent
|
|
|
|
topMargin: 50
|
|
|
|
}
|
|
|
|
store: CommunitiesStore {
|
|
|
|
readonly property bool isOwner: isOwnerCheckBox.checked
|
|
|
|
|
|
|
|
assetsModel: AssetsModel {}
|
|
|
|
collectiblesModel: CollectiblesModel {}
|
|
|
|
channelsModel: ListModel {
|
|
|
|
Component.onCompleted: {
|
|
|
|
append([
|
|
|
|
{
|
|
|
|
key: "welcome",
|
|
|
|
iconSource: ModelsData.assets.inch,
|
|
|
|
name: "#welcome"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "general",
|
|
|
|
iconSource: ModelsData.assets.inch,
|
|
|
|
name: "#general"
|
|
|
|
}
|
|
|
|
])
|
2022-12-20 00:03:25 +00:00
|
|
|
}
|
2023-01-20 11:22:04 +00:00
|
|
|
}
|
|
|
|
}
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
rootStore: QtObject {
|
|
|
|
readonly property QtObject chatCommunitySectionModule: QtObject {
|
|
|
|
readonly property var model: ChannelsModel {}
|
|
|
|
}
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
readonly property QtObject mainModuleInst: QtObject {
|
|
|
|
readonly property QtObject activeSection: QtObject {
|
|
|
|
readonly property string name: "Socks"
|
|
|
|
readonly property string image: ModelsData.icons.socks
|
|
|
|
readonly property color color: "red"
|
2022-12-20 00:03:25 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-24 16:23:54 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-20 11:22:04 +00:00
|
|
|
}
|
2022-11-24 16:23:54 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
2022-11-24 16:23:54 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 150
|
2022-11-24 16:23:54 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
logsView.logText: logs.logText
|
2023-01-20 11:04:12 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
CheckBox {
|
|
|
|
id: isOwnerCheckBox
|
2023-01-20 11:04:12 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
text: "Is owner"
|
2022-11-24 16:23:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|