2023-07-21 08:44:10 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQml 2.15
|
|
|
|
|
2024-10-15 19:26:12 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
2023-07-21 08:44:10 +00:00
|
|
|
import AppLayouts.Communities.popups 1.0
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
function openDialog() {
|
|
|
|
popupComponent.createObject(popupBg)
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: openDialog()
|
|
|
|
|
|
|
|
Item {
|
2023-07-21 08:44:10 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
PopupBackground {
|
|
|
|
id: popupBg
|
|
|
|
anchors.fill: parent
|
2023-07-21 08:44:10 +00:00
|
|
|
|
|
|
|
Button {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
onClicked: openDialog()
|
2023-07-21 08:44:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: popupComponent
|
|
|
|
ImportControlNodePopup {
|
|
|
|
id: popup
|
|
|
|
anchors.centerIn: parent
|
|
|
|
modal: false
|
|
|
|
visible: true
|
2023-09-12 09:26:57 +00:00
|
|
|
community: QtObject {
|
|
|
|
property string id: "1"
|
|
|
|
property string name: "Socks"
|
|
|
|
property var members: { "count": 5 }
|
2024-10-15 19:26:12 +00:00
|
|
|
property string image: Theme.png("tokens/UNI")
|
2023-09-12 09:26:57 +00:00
|
|
|
property string color: "orchid"
|
2023-07-21 08:44:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 160
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Popups
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/qHfFm7C9LwtXpfdbxssCK3/Kuba%E2%8E%9CDesktop---Communities?type=design&node-id=36894-685104&mode=design&t=6k1ago8SSQ5Ip9J8-0
|