2023-01-05 20:03:18 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
|
|
|
import shared.popups 1.0
|
2023-02-03 10:06:45 +00:00
|
|
|
import utils 1.0
|
2023-01-05 20:03:18 +00:00
|
|
|
|
|
|
|
SplitView {
|
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
PopupBackground {
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
|
|
|
|
onClicked: dialog.open()
|
|
|
|
}
|
|
|
|
|
|
|
|
CommunityIntroDialog {
|
|
|
|
id: dialog
|
|
|
|
anchors.centerIn: parent
|
2023-02-03 10:06:45 +00:00
|
|
|
name: "Status"
|
|
|
|
imageSrc: ModelsData.icons.status
|
|
|
|
introMessage: "%1 sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
|
|
|
|
|
|
|
1. Ut enim ad minim veniam
|
|
|
|
2. Excepteur sint occaecat cupidatat non proident
|
|
|
|
3. Duis aute irure
|
|
|
|
4. Dolore eu fugiat nulla pariatur
|
|
|
|
5. 🚗 consectetur adipiscing elit
|
2023-01-05 20:03:18 +00:00
|
|
|
|
2023-02-03 10:06:45 +00:00
|
|
|
Nemo enim 😋 ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.".arg(dialog.name)
|
2023-07-04 15:11:41 +00:00
|
|
|
loginType: ctrlLoginType.currentIndex
|
2023-01-05 20:03:18 +00:00
|
|
|
|
2023-07-04 15:11:41 +00:00
|
|
|
walletAccountsModel: WalletAccountsModel {}
|
|
|
|
permissionsModel: dialog.accessType === Constants.communityChatOnRequestAccess ? PermissionsModel.complexPermissionsModel
|
|
|
|
: null
|
|
|
|
assetsModel: AssetsModel {}
|
|
|
|
collectiblesModel: CollectiblesModel {}
|
2023-01-05 20:03:18 +00:00
|
|
|
|
2023-07-04 15:11:41 +00:00
|
|
|
onJoined: logs.logEvent("CommunityIntroDialog::onJoined", ["airdropAddress", "sharedAddresses"], arguments)
|
|
|
|
onCancelMembershipRequest: logs.logEvent("CommunityIntroDialog::onCancelMembershipRequest()")
|
2023-01-05 20:03:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
2023-02-17 10:25:48 +00:00
|
|
|
text: "Community name"
|
2023-01-05 20:03:18 +00:00
|
|
|
font.weight: Font.Bold
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: dialog.name
|
|
|
|
onTextChanged: dialog.name = text
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
2023-02-03 10:06:45 +00:00
|
|
|
text: "Intro message"
|
2023-01-05 20:03:18 +00:00
|
|
|
font.weight: Font.Bold
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: dialog.introMessage
|
|
|
|
onTextChanged: dialog.introMessage = text
|
|
|
|
}
|
|
|
|
|
2023-02-03 10:06:45 +00:00
|
|
|
ColumnLayout {
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: "Icon:"
|
|
|
|
}
|
|
|
|
RadioButton {
|
|
|
|
checked: true
|
|
|
|
text: "Status"
|
|
|
|
onCheckedChanged: if(checked) dialog.imageSrc = ModelsData.icons.status
|
|
|
|
}
|
|
|
|
RadioButton {
|
|
|
|
text: "Crypto Punks"
|
|
|
|
onCheckedChanged: if(checked) dialog.imageSrc = ModelsData.icons.cryptPunks
|
|
|
|
}
|
|
|
|
RadioButton {
|
|
|
|
text: "Rarible"
|
|
|
|
onCheckedChanged: if(checked) dialog.imageSrc = ModelsData.icons.rarible
|
|
|
|
}
|
|
|
|
RadioButton {
|
|
|
|
text: "None"
|
|
|
|
onCheckedChanged: if(checked) dialog.imageSrc = ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: "Is invitation pending:"
|
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
checked: dialog.isInvitationPending
|
|
|
|
onCheckedChanged: dialog.isInvitationPending = checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
visible: !dialog.isInvitationPending
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: "Access type:"
|
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
|
|
|
checked: true
|
|
|
|
text: qsTr("Public access")
|
|
|
|
onCheckedChanged: dialog.accessType = Constants.communityChatPublicAccess
|
|
|
|
}
|
|
|
|
RadioButton {
|
|
|
|
text: qsTr("On request")
|
|
|
|
onCheckedChanged: dialog.accessType = Constants.communityChatOnRequestAccess
|
2023-01-05 20:03:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-04 15:11:41 +00:00
|
|
|
ColumnLayout {
|
|
|
|
visible: dialog.accessType == Constants.communityChatOnRequestAccess && !dialog.isInvitationPending
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: "Login type"
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
id: ctrlLoginType
|
|
|
|
Layout.fillWidth: true
|
|
|
|
model: ["Password","Biometrics","Keycard"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-05 20:03:18 +00:00
|
|
|
Item {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|