2023-07-19 05:58:21 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
|
|
|
import AppLayouts.Communities.popups 1.0
|
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
2023-07-19 05:58:21 +00:00
|
|
|
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)
|
|
|
|
}
|
2023-07-19 05:58:21 +00:00
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
Component.onCompleted: openDialog()
|
|
|
|
|
|
|
|
Item {
|
2023-07-19 05:58:21 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
PopupBackground {
|
2023-09-12 09:26:57 +00:00
|
|
|
id: popupBg
|
2023-07-19 05:58:21 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
Button {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
2023-07-19 05:58:21 +00:00
|
|
|
|
2023-09-12 09:26:57 +00:00
|
|
|
onClicked: openDialog()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: fakeDevicesModel
|
|
|
|
ListElement {
|
|
|
|
name: "Device 1 (osx)"
|
|
|
|
deviceType: "osx"
|
|
|
|
timestamp: 123456789
|
|
|
|
isCurrentDevice: true
|
|
|
|
enabled: true
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Device 2 (windows)"
|
|
|
|
deviceType: "windows"
|
|
|
|
timestamp: 123456789123
|
|
|
|
isCurrentDevice: false
|
|
|
|
enabled: false
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Device 3 (android)"
|
|
|
|
deviceType: "android"
|
|
|
|
timestamp: 0
|
|
|
|
isCurrentDevice: false
|
|
|
|
enabled: true
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Device 4 (ios)"
|
|
|
|
deviceType: "ios"
|
|
|
|
timestamp: 0
|
|
|
|
isCurrentDevice: false
|
|
|
|
enabled: true
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Device 5 (desktop)"
|
|
|
|
deviceType: "desktop"
|
|
|
|
timestamp: 0
|
|
|
|
isCurrentDevice: false
|
|
|
|
enabled: true
|
2023-07-19 05:58:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: popupComponent
|
|
|
|
ExportControlNodePopup {
|
|
|
|
id: popup
|
|
|
|
anchors.centerIn: parent
|
|
|
|
modal: false
|
|
|
|
visible: true
|
2023-09-12 09:26:57 +00:00
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
destroyOnClose: true
|
|
|
|
community: QtObject {
|
|
|
|
property string id: "1"
|
|
|
|
property string name: "Socks"
|
|
|
|
property var members: { "count": 5 }
|
|
|
|
property string image: Style.png("tokens/UNI")
|
|
|
|
property string color: "orchid"
|
|
|
|
}
|
|
|
|
devicesStore: QtObject {
|
|
|
|
function loadDevices() {}
|
|
|
|
|
|
|
|
property bool isDeviceSetup: true
|
|
|
|
|
|
|
|
property var devicesModule: QtObject {
|
|
|
|
property bool devicesLoading
|
|
|
|
property bool devicesLoadingError
|
|
|
|
}
|
|
|
|
|
|
|
|
property var devicesModel: ctrlHasSyncedDevices.checked ? fakeDevicesModel : null
|
|
|
|
}
|
2023-07-19 05:58:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 160
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
2023-09-12 09:26:57 +00:00
|
|
|
|
|
|
|
Switch {
|
|
|
|
id: ctrlHasSyncedDevices
|
|
|
|
text: "Has synced devices"
|
|
|
|
}
|
2023-07-19 05:58:21 +00:00
|
|
|
}
|
|
|
|
}
|
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-685070&mode=design&t=6k1ago8SSQ5Ip9J8-0
|
|
|
|
// https://www.figma.com/file/qHfFm7C9LwtXpfdbxssCK3/Kuba%E2%8E%9CDesktop---Communities?type=design&node-id=37275-289960&mode=design&t=6k1ago8SSQ5Ip9J8-0
|
|
|
|
// https://www.figma.com/file/qHfFm7C9LwtXpfdbxssCK3/Kuba%E2%8E%9CDesktop---Communities?type=design&node-id=37275-290036&mode=design&t=6k1ago8SSQ5Ip9J8-0
|