feat(Communities): File renames

- Removed redundant `community` word in some files from: `controls`, `views`, `popups`, `helpers ` and `panels` folders.
- Updated storybook.
- Updated squish files.

Closes #6204
This commit is contained in:
Noelia 2023-06-26 13:48:45 +02:00 committed by Noelia
parent 0ab8a62896
commit d763a09cac
72 changed files with 231 additions and 217 deletions

View File

@ -14,11 +14,11 @@ ListModel {
section: "Views"
}
ListElement {
title: "CommunityNewPermissionView"
title: "EditPermissionView"
section: "Views"
}
ListElement {
title: "CommunityNewAirdropView"
title: "EditAirdropView"
section: "Views"
}
ListElement {
@ -34,7 +34,7 @@ ListModel {
section: "Views"
}
ListElement {
title: "CommunityPermissionsView"
title: "PermissionsView"
section: "Views"
}
ListElement {
@ -42,7 +42,7 @@ ListModel {
section: "Views"
}
ListElement {
title: "CommunityNewTokenView"
title: "EditCommunityTokenView"
section: "Views"
}
ListElement {
@ -50,7 +50,7 @@ ListModel {
section: "Views"
}
ListElement {
title: "CommunityMintedTokensView"
title: "MintedTokensView"
section: "Views"
}
ListElement {
@ -78,11 +78,11 @@ ListModel {
section: "Panels"
}
ListElement {
title: "CommunityProfilePopupInviteFriendsPanel"
title: "ProfilePopupInviteFriendsPanel"
section: "Panels"
}
ListElement {
title: "CommunityProfilePopupInviteMessagePanel"
title: "ProfilePopupInviteMessagePanel"
section: "Panels"
}
ListElement {
@ -90,7 +90,7 @@ ListModel {
section: "Panels"
}
ListElement {
title: "CommunityPermissionsSettingsPanel"
title: "PermissionsSettingsPanel"
section: "Panels"
}
ListElement {
@ -102,7 +102,7 @@ ListModel {
section: "Panels"
}
ListElement {
title: "CommunityColumnHeaderPanel"
title: "ColumnHeaderPanel"
section: "Panels"
}
ListElement {
@ -114,11 +114,11 @@ ListModel {
section: "Panels"
}
ListElement {
title: "CommunityMintTokensSettingsPanel"
title: "MintTokensSettingsPanel"
section: "Panels"
}
ListElement {
title: "CommunityAirdropsSettingsPanel"
title: "AirdropsSettingsPanel"
section: "Panels"
}
ListElement {
@ -198,7 +198,7 @@ ListModel {
section: "Popups"
}
ListElement {
title: "CommunityTokenPermissionsPopup"
title: "TokenPermissionsPopup"
section: "Popups"
}
ListElement {
@ -318,7 +318,7 @@ ListModel {
section: "Components"
}
ListElement {
title: "CommunityPermissionsRow"
title: "PermissionsRow"
section: "Components"
}
ListElement {

View File

@ -37,7 +37,7 @@
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479570&t=Qo2FwPRxvSxbluqB-1",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29384-568106&t=mAtmLENvQyRJqDGQ-0"
],
"CommunityMintTokensSettingsPanel": [
"MintTokensSettingsPanel": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498587&t=v2Krj5iZQaSTK7Om-1",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A480877&t=v2Krj5iZQaSTK7Om-1",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498811&t=v2Krj5iZQaSTK7Om-1",
@ -45,10 +45,10 @@
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-689073&t=mAtmLENvQyRJqDGQ-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29437-599353&t=mAtmLENvQyRJqDGQ-0"
],
"CommunityMintedTokensView": [
"MintedTokensView": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479136&t=zs22ORYUVDYpqubQ-1"
],
"CommunityNewAirdropView": [
"EditAirdropView": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22602-495563&t=9dIP8Sji2UlfhsEs-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22628-495258&t=9dIP8Sji2UlfhsEs-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22628-496145&t=9dIP8Sji2UlfhsEs-0",
@ -56,7 +56,7 @@
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22647-501014&t=9dIP8Sji2UlfhsEs-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22647-499051&t=kHAcE8WSCyGqhWSH-0"
],
"CommunityNewTokenView": [
"EditCommunityTokenView": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A480877&t=Qo2FwPRxvSxbluqB-1",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=26601%3A518245&t=Qo2FwPRxvSxbluqB-1",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498811&t=Qo2FwPRxvSxbluqB-1",
@ -64,26 +64,26 @@
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29423%3A593514&t=g40TADKO0p93G4r0-1"
],
"CommunityNewPermissionView": [
"EditPermissionView": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22253%3A486103&t=JrCIfks1zVzsk3vn-0"
],
"CommunityPermissionsSettingsPanel": [
"PermissionsSettingsPanel": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2992%3A367890&t=7gqqAFbdG5KrPOmn-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22137%3A484809&t=7gqqAFbdG5KrPOmn-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22813%3A497277&t=7gqqAFbdG5KrPOmn-0"
],
"CommunityPermissionsView": [
"PermissionsView": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22813%3A497277&t=7gqqAFbdG5KrPOmn-0"
],
"ChatPermissionQualificationPanel": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2698%3A375926&t=iIeFeGOBx5BbbYJa-0"
],
"CommunityProfilePopupInviteFriendsPanel": [
"ProfilePopupInviteFriendsPanel": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2927%3A343592",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2990%3A353179",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2927%3A344073"
],
"CommunityProfilePopupInviteMessagePanel": [
"ProfilePopupInviteMessagePanel": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4291%3A385536",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4295%3A385958"
],
@ -206,7 +206,7 @@
"DerivationPathInput": [
"https://www.figma.com/file/FkFClTCYKf83RJWoifWgoX/Wallet-v2?node-id=12272%3A269692&t=YiipgcxOhdOvqprP-0"
],
"CommunityPermissionsRow": [
"PermissionsRow": [
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=28570-546277&t=PVEC7ehRew4RnGFa-0",
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=8159%3A416159&t=bTEq7jsSZT0nfC4y-1",
"https://www.figma.com/file/WQZcp6S0EnzxdTL4taoKDv/Design-System-for-Mobile?node-id=17582-215241&t=8cRmw5jIlzUtfJbY-0"

View File

@ -70,8 +70,8 @@ SplitView {
anchors.fill: parent
active: globalUtilsReady && mainModuleReady
sourceComponent: CommunityAirdropsSettingsPanel {
id: communityAirdropsSettingsPanel
sourceComponent: AirdropsSettingsPanel {
id: airdropsSettingsPanel
anchors.fill: parent
anchors.topMargin: 50
assetsModel: AssetsModel {}
@ -115,7 +115,7 @@ SplitView {
}
Component.onCompleted: {
Qt.callLater(() => communityAirdropsSettingsPanel.collectiblesModel = this)
Qt.callLater(() => airdropsSettingsPanel.collectiblesModel = this)
}
}
@ -158,13 +158,21 @@ SplitView {
Component.onCompleted: {
Qt.callLater(() => communityAirdropsSettingsPanel.assetsModel = this)
Qt.callLater(() => airdropsSettingsPanel.assetsModel = this)
}
}
membersModel: UsersModel {}
onAirdropClicked: logs.logEvent("CommunityAirdropsSettingsPanel::onAirdropClicked")
communityDetails: QtObject {
readonly property string name: "Socks"
readonly property string id: "SOCKS"
readonly property string image: ModelsData.icons.socks
readonly property string color: "red"
readonly property bool owner: true
}
onAirdropClicked: logs.logEvent("AirdropsSettingsPanel::onAirdropClicked")
}
}
}

View File

@ -38,7 +38,7 @@ SplitView {
anchors.centerIn: parent
color: Theme.palette.baseColor4
CommunityColumnHeaderPanel {
ColumnHeaderPanel {
id: communityColumnHeader
width: widthSlider.value
@ -49,9 +49,9 @@ SplitView {
color: d.color
amISectionAdmin: d.amISectionAdmin
openCreateChat: false
onInfoButtonClicked: logs.logEvent("CommunityColumnHeaderPanel::onInfoButtonClicked()")
onInfoButtonClicked: logs.logEvent("ColumnHeaderPanel::onInfoButtonClicked()")
onAdHocChatButtonClicked: {
logs.logEvent("CommunityColumnHeaderPanel::onAdHocChatButtonClicked(): " + openCreateChat.toString())
logs.logEvent("ColumnHeaderPanel::onAdHocChatButtonClicked(): " + openCreateChat.toString())
openCreateChat = !openCreateChat
}
}

View File

@ -149,8 +149,8 @@ SplitView {
anchors.fill: parent
active: globalUtilsReady && mainModuleReady
sourceComponent: CommunityNewAirdropView {
id: communityNewAirdropView
sourceComponent: EditAirdropView {
id: editAirdropView
CollectiblesModel {
id: collectiblesModel
@ -198,7 +198,7 @@ SplitView {
}
Component.onCompleted: {
Qt.callLater(() => communityNewAirdropView.collectiblesModel = this)
Qt.callLater(() => editAirdropView.collectiblesModel = this)
}
}
@ -241,22 +241,29 @@ SplitView {
Component.onCompleted: {
Qt.callLater(() => communityNewAirdropView.assetsModel = this)
Qt.callLater(() => editAirdropView.assetsModel = this)
}
}
assetsModel: ListModel {}
collectiblesModel: ListModel {}
assetsModel: AssetsModel {}
collectiblesModel: CollectiblesModel {}
membersModel: members
communityDetails: QtObject {
readonly property string name: "Socks"
readonly property string id: "SOCKS"
readonly property string image: ModelsData.icons.socks
readonly property string color: "red"
readonly property bool owner: true
}
onAirdropClicked: {
logs.logEvent("CommunityNewAirdropView::airdropClicked",
logs.logEvent("EditAirdropView::airdropClicked",
["airdropTokens", "addresses", "membersPubKeys"],
arguments)
}
onAirdropFeesRequested: {
logs.logEvent("CommunityNewAirdropView::airdropFeesRequested",
logs.logEvent("EditAirdropView::airdropFeesRequested",
["contractKeysAndAmounts", "addresses"],
arguments)

View File

@ -24,7 +24,7 @@ SplitView {
SplitView.fillWidth: true
SplitView.fillHeight: true
CommunityNewTokenView {
EditCommunityTokenView {
anchors.fill: parent
anchors.margins: 50
isAssetView: isAssetBox.checked
@ -36,7 +36,7 @@ SplitView {
accounts: WalletAccountsModel {}
tokensModel: isAssetBox.checked ? MintedTokensModel.mintedAssetsModel : MintedTokensModel.mintedCollectiblesModel
onPreviewClicked: logs.logEvent("CommunityNewTokenView::previewClicked")
onPreviewClicked: logs.logEvent("EditCommunityTokenView::previewClicked")
}
}

View File

@ -17,8 +17,8 @@ SplitView {
SplitView.fillWidth: true
SplitView.fillHeight: true
CommunityNewPermissionView {
id: communityNewPermissionView
EditPermissionView {
id: editPermissionView
anchors.fill: parent
@ -39,7 +39,7 @@ SplitView {
}
onCreatePermissionClicked: {
logs.logEvent("CommunityNewPermissionView::onCreatePermissionClicked")
logs.logEvent("EditPermissionView::onCreatePermissionClicked")
}
}
}
@ -94,11 +94,11 @@ SplitView {
Button {
text: "Reset changes"
onClicked: communityNewPermissionView.resetChanges()
onClicked: editPermissionView.resetChanges()
}
Label {
text: "Is dirty: " + communityNewPermissionView.dirty
text: "Is dirty: " + editPermissionView.dirty
}
}
}

View File

@ -6,8 +6,6 @@ import StatusQ.Controls 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Components 0.1
import AppLayouts.Communities.views 1.0
import Storybook 1.0
import Models 1.0

View File

@ -29,7 +29,7 @@ SplitView {
SplitView.fillHeight: true
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
CommunityMintTokensSettingsPanel {
MintTokensSettingsPanel {
id: panel
anchors.fill: parent

View File

@ -24,11 +24,11 @@ SplitView {
SplitView.fillWidth: true
SplitView.fillHeight: true
CommunityMintedTokensView {
MintedTokensView {
anchors.fill: parent
anchors.margins: 50
model: MintedTokensModel.mintedTokensModel
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked --> " + tokenKey)
onItemClicked: logs.logEvent("MintedTokensView::itemClicked --> " + tokenKey)
}
}

View File

@ -27,7 +27,7 @@ SplitView {
text: "1 permission:"
}
CommunityPermissionsRow {
PermissionsRow {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.bottomMargin: spacing
@ -43,7 +43,7 @@ SplitView {
text: "2 short permissions:"
}
CommunityPermissionsRow {
PermissionsRow {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.bottomMargin: spacing
@ -59,7 +59,7 @@ SplitView {
text: "2 long permissions:"
}
CommunityPermissionsRow {
PermissionsRow {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.bottomMargin: spacing
@ -75,7 +75,7 @@ SplitView {
text: "Three short permissions:"
}
CommunityPermissionsRow {
PermissionsRow {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.bottomMargin: spacing
@ -91,7 +91,7 @@ SplitView {
text: "More than 2 permissions with short 1st and 2nd ones:"
}
CommunityPermissionsRow {
PermissionsRow {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.bottomMargin: spacing
@ -107,7 +107,7 @@ SplitView {
text: "5 permissions - long ones"
}
CommunityPermissionsRow {
PermissionsRow {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.preferredHeight: heighSliderEditor.value
Layout.bottomMargin: spacing

View File

@ -66,7 +66,7 @@ SplitView {
SplitView.fillHeight: true
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
CommunityPermissionsSettingsPanel {
PermissionsSettingsPanel {
id: communityPermissionsSettingsPanel
anchors.fill: parent

View File

@ -22,7 +22,7 @@ SplitView {
SplitView.fillHeight: true
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
CommunityPermissionsView {
PermissionsView {
anchors {
fill: parent
margins: 50
@ -53,7 +53,7 @@ SplitView {
}
function log(method, index) {
logs.logEvent(`CommunityPermissionsView::${method} - index: ${index}`)
logs.logEvent(`PermissionsView::${method} - index: ${index}`)
}
onEditPermissionRequested: log("editPermissionRequested", index)

View File

@ -51,7 +51,7 @@ Item {
Loader {
active: globalUtilsReady && mainModuleReady
sourceComponent: CommunityProfilePopupInviteFriendsPanel {
sourceComponent: ProfilePopupInviteFriendsPanel {
id: panel
community: ({ id: "communityId" })

View File

@ -60,7 +60,7 @@ Item {
anchors.fill: parent
sourceComponent: CommunityProfilePopupInviteMessagePanel {
sourceComponent: ProfilePopupInviteMessagePanel {
id: panel
contactsStore: QtObject {

View File

@ -27,7 +27,7 @@ SplitView {
onClicked: dialog.open()
}
CommunityTokenPermissionsPopup {
TokenPermissionsPopup {
id: dialog
anchors.centerIn: parent

View File

@ -79,16 +79,16 @@ communitySettings_Community_LetterIdenticon = {"container": communitySettings_Co
communitySettings_EditCommunity_ScrollView = {"container": statusDesktop_mainWindow, "objectName": "communityEditPanelScrollView", "type": "StatusScrollView", "visible": True}
communitySettings_EditCommunity_Name_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityNameInput", "type": "TextEdit", "visible": True}
communitySettings_EditCommunity_Description_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityDescriptionInput", "type": "TextEdit", "visible": True}
communitySettings_EditCommunity_ColorPicker_Button = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityColorPicker", "type": "CommunityColorPicker", "visible": True}
communitySettings_EditCommunity_ColorPicker_Button = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityColorPicker", "type": "ColorPicker", "visible": True}
# Community color popup:
communitySettings_ColorPanel_HexColor_Input = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelHexInput", "type": "TextEdit", "visible": True}
communitySettings_SaveColor_Button = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelSelectColorButton", "type": "StatusButton", "visible": True}
# Community Overview
communityOverview_Back_up_Banner = {"container": statusDesktop_mainWindow, "objectName": "backUpBanner", "type": "CommunityBanner", "visible": True}
communityOverview_Back_up_Banner = {"container": statusDesktop_mainWindow, "objectName": "backUpBanner", "type": "BannerPanel", "visible": True}
communityOverview_Back_up_StatusButton = {"container": communityOverview_Back_up_Banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
communityOverview_Airdrop_Tokens_Banner = {"container": statusDesktop_mainWindow, "objectName": "airdropBanner", "type": "CommunityBanner", "visible": True}
communityOverview_Airdrop_Tokens_Banner = {"container": statusDesktop_mainWindow, "objectName": "airdropBanner", "type": "BannerPanel", "visible": True}
communityOverview_Airdrop_Tokens_StatusButton = {"container": communityOverview_Airdrop_Tokens_Banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
transferOwnerShipTextEdit = {"container": statusDesktop_mainWindow_overlay, "id": "edit", "type": "TextEdit", "unnamed": 1, "visible": True}

View File

@ -7,7 +7,7 @@ communitiesPortalLayoutContainer_createCommunityButton_StatusButton = {"containe
navBarListView_All_Community_Buttons = {"checkable": True, "container": mainWindow_communityNavBarListView_ListView, "objectName": "CommunityNavBarButton", "type": "StatusNavBarTabButton"}
# Create community intermediate popup:
createCommunity_banner = {"container": statusDesktop_mainWindow_overlay, "objectName": "createCommunityBanner", "type": "CommunityBanner", "visible": True}
createCommunity_banner = {"container": statusDesktop_mainWindow_overlay, "objectName": "createCommunityBanner", "type": "BannerPanel", "visible": True}
createCommunity_bannerButton = {"container": createCommunity_banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
# Create community popup:

View File

@ -142,7 +142,7 @@ StatusSectionLayout {
}
}
CommunityTagsRow {
TagsRow {
id: communityTags
Layout.fillWidth: true
@ -201,7 +201,7 @@ StatusSectionLayout {
contentItem: RowLayout {
spacing: 20
CommunityBanner {
BannerPanel {
objectName: "createCommunityBanner"
text: qsTr("Create a new Status community")
buttonText: qsTr("Create new")
@ -211,7 +211,7 @@ StatusSectionLayout {
Global.createCommunityPopupRequested(false /*isDiscordImport*/)
}
}
CommunityBanner {
BannerPanel {
readonly property bool importInProgress: root.communitiesStore.discordImportInProgress && !root.communitiesStore.discordImportCancelled
text: importInProgress ?
qsTr("'%1' import in progress...").arg(root.communitiesStore.discordImportCommunityName) :

View File

@ -333,8 +333,8 @@ StatusDropdown {
Component.onCompleted: {
if(d.extendedDeepNavigation)
listPanel.goForward(d.currentItemKey,
CommunityPermissionsHelpers.getTokenNameByKey(root.collectiblesModel, d.currentItemKey),
CommunityPermissionsHelpers.getTokenIconByKey(root.collectiblesModel, d.currentItemKey),
PermissionsHelpers.getTokenNameByKey(root.collectiblesModel, d.currentItemKey),
PermissionsHelpers.getTokenIconByKey(root.collectiblesModel, d.currentItemKey),
d.currentSubItems)
}
@ -367,9 +367,9 @@ StatusDropdown {
readonly property real effectiveAmount: amountValid ? amount : 0
tokenName: CommunityPermissionsHelpers.getTokenNameByKey(root.assetsModel, root.assetKey)
tokenShortName: CommunityPermissionsHelpers.getTokenShortNameByKey(root.assetsModel, root.assetKey)
tokenImage: CommunityPermissionsHelpers.getTokenIconByKey(root.assetsModel, root.assetKey)
tokenName: PermissionsHelpers.getTokenNameByKey(root.assetsModel, root.assetKey)
tokenShortName: PermissionsHelpers.getTokenShortNameByKey(root.assetsModel, root.assetKey)
tokenImage: PermissionsHelpers.getTokenIconByKey(root.assetsModel, root.assetKey)
amountText: d.assetAmountText
tokenCategoryText: qsTr("Asset")
addOrUpdateButtonEnabled: d.assetsReady
@ -377,7 +377,7 @@ StatusDropdown {
ListModel {
Component.onCompleted: {
const asset = CommunityPermissionsHelpers.getTokenByKey(
const asset = PermissionsHelpers.getTokenByKey(
root.assetsModel,
root.assetKey)
@ -429,10 +429,10 @@ StatusDropdown {
readonly property real effectiveAmount: amountValid ? amount : 0
tokenName: CommunityPermissionsHelpers.getTokenNameByKey(root.collectiblesModel, root.collectibleKey)
tokenName: PermissionsHelpers.getTokenNameByKey(root.collectiblesModel, root.collectibleKey)
tokenShortName: ""
tokenImage: CommunityPermissionsHelpers.getTokenIconByKey(root.collectiblesModel, root.collectibleKey)
tokenAmount: CommunityPermissionsHelpers.getTokenAmountByKey(root.collectiblesModel, root.collectibleKey)
tokenImage: PermissionsHelpers.getTokenIconByKey(root.collectiblesModel, root.collectibleKey)
tokenAmount: PermissionsHelpers.getTokenAmountByKey(root.collectiblesModel, root.collectibleKey)
amountText: d.collectibleAmountText
tokenCategoryText: qsTr("Collectible")
addOrUpdateButtonEnabled: d.collectiblesReady
@ -441,7 +441,7 @@ StatusDropdown {
ListModel {
Component.onCompleted: {
const collectible = CommunityPermissionsHelpers.getTokenByKey(
const collectible = PermissionsHelpers.getTokenByKey(
root.collectiblesModel,
root.collectibleKey)

View File

@ -293,7 +293,7 @@ StatusDropdown {
Component {
id: communityCategoryDelegate
CommunityCategoryListItem {
CategoryListItem {
title: model.name
checkState: {

View File

@ -11,17 +11,17 @@ import StatusQ.Controls 0.1
import AppLayouts.Communities.views 1.0
/*!
\qmltype CommunityPermissionsRow
\qmltype PermissionsRow
\inherits Control
\inqmlmodule AppLayouts.Communities.controls 1.0
\brief It is a permissions row control that provides information about community tokens permissions. Inherits \l{https://doc.qt.io/qt-5/qml-qtquick-controls2-control.html}{Control}.
The \c CommunityPermissionsRow is the token permissions representation row component.
The \c PermissionsRow is the token permissions representation row component.
It has different ui abreviations / permutations depending on the tokens and permissons the permissions model provides.
Example of how to use it:
\qml
CommunityPermissionsRow {
PermissionsRow {
model: root.permissionsModel
assetsModel: root.assetsModel
collectiblesModel: root.collectiblesModel
@ -38,61 +38,61 @@ Control {
id: root
/*!
\qmlproperty var CommunityPermissionsRow::model
\qmlproperty var PermissionsRow::model
This property holds the permissions model with expected roles: [ holdingsModel [ roles: key] ].
*/
property var model
/*!
\qmlproperty var CommunityPermissionsRow::assetsModel
\qmlproperty var PermissionsRow::assetsModel
This property holds the global assets model.
*/
property var assetsModel
/*!
\qmlproperty var CommunityPermissionsRow::collectiblesModel
\qmlproperty var PermissionsRow::collectiblesModel
This property holds the global collectibles model.
*/
property var collectiblesModel
/*!
\qmlproperty bool CommunityPermissionsRow::requirementsMet
\qmlproperty bool PermissionsRow::requirementsMet
This property holds if the token requirements are met in case the community requires permissions.
*/
property bool requirementsMet: false
/*!
\qmlproperty int CommunityPermissionsRow::overlapping
\qmlproperty int PermissionsRow::overlapping
This property allows customizing the overlapping distance between elements.
*/
property int overlapping: 8
/*!
\qmlproperty int CommunityPermissionsRow::overlappingBorder
\qmlproperty int PermissionsRow::overlappingBorder
This property allows customizing the overlapping border between elements.
*/
property int overlappingBorder: 1
/*!
\qmlproperty color CommunityPermissionsRow::backgroundColor
\qmlproperty color PermissionsRow::backgroundColor
This property holds the control background color, including border color of overlapped elements.
*/
property color backgroundColor: Theme.palette.baseColor4
/*!
\qmlproperty int CommunityPermissionsRow::backgroundRadius
\qmlproperty int PermissionsRow::backgroundRadius
This property holds the background radius.
*/
property int backgroundRadius: 8
/*!
\qmlproperty int CommunityPermissionsRow::dotsIconSize
\qmlproperty int PermissionsRow::dotsIconSize
This property holds the dots icon size.
*/
property int dotsIconSize: 8
/*!
\qmlproperty int CommunityPermissionsRow::pixelSize
\qmlproperty int PermissionsRow::pixelSize
This property holds the font pixel size of all elements that contain text,
like the text `or` between elements or the `+2` and `+3` element's text.
*/

View File

@ -2,28 +2,29 @@ AddressesInputList 1.0 AddressesInputList.qml
AddressesSelectorPanel 1.0 AddressesSelectorPanel.qml
AirdropRecipientsSelector 1.0 AirdropRecipientsSelector.qml
AirdropTokensSelector 1.0 AirdropTokensSelector.qml
CommunityBannerPicker 1.0 CommunityBannerPicker.qml
CommunityCategoryListItem 1.0 CommunityCategoryListItem.qml
CommunityColorPicker 1.0 CommunityColorPicker.qml
CommunityDescriptionInput 1.0 CommunityDescriptionInput.qml
CommunityIntroMessageInput 1.0 CommunityIntroMessageInput.qml
BannerPicker 1.0 BannerPicker.qml
CategoryListItem 1.0 CategoryListItem.qml
CommunityListItem 1.0 CommunityListItem.qml
CommunityLogoPicker 1.0 CommunityLogoPicker.qml
CommunityNameInput 1.0 CommunityNameInput.qml
CommunityOptions 1.0 CommunityOptions.qml
CommunityOutroMessageInput 1.0 CommunityOutroMessageInput.qml
CommunityPermissionsRow 1.0 CommunityPermissionsRow.qml
CommunityTagsPicker 1.0 CommunityTagsPicker.qml
CommunityTagsRow 1.0 CommunityTagsRow.qml
ColorPicker 1.0 ColorPicker.qml
DescriptionInput 1.0 DescriptionInput.qml
HoldingTypes 1.0 HoldingTypes.qml
HoldingsDropdown 1.0 HoldingsDropdown.qml
IssuePill 1.0 IssuePill.qml
InDropdown 1.0 InDropdown.qml
InlineNetworksComboBox 1.0 InlineNetworksComboBox.qml
IntroMessageInput 1.0 IntroMessageInput.qml
LogoPicker 1.0 LogoPicker.qml
MembersDropdown 1.0 MembersDropdown.qml
MembersSelectorPanel 1.0 MembersSelectorPanel.qml
NameInput 1.0 NameInput.qml
Options 1.0 Options.qml
OutroMessageInput 1.0 OutroMessageInput.qml
PermissionItem 1.0 PermissionItem.qml
PermissionsDropdown 1.0 PermissionsDropdown.qml
PermissionsRow 1.0 PermissionsRow.qml
RecipientTypeSelectionDropdown 1.0 RecipientTypeSelectionDropdown.qml
TagsPicker 1.0 TagsPicker.qml
TagsRow 1.0 TagsRow.qml
TokenItem 1.0 TokenItem.qml
TokenPanel 1.0 TokenPanel.qml
singleton PermissionTypes 1.0 PermissionTypes.qml

View File

@ -1,2 +1,2 @@
singleton CommunityPermissionsHelpers 1.0 CommunityPermissionsHelpers.qml
singleton PermissionsHelpers 1.0 PermissionsHelpers.qml
TokenObject 1.0 TokenObject.qml

View File

@ -24,7 +24,7 @@ SettingsPageLayout {
// JS object specifing fees for the airdrop operation, should be set to
// provide response to airdropFeesRequested signal.
// Refer CommunityNewAirdropView::airdropFees for details.
// Refer EditAirdropView::airdropFees for details.
property var airdropFees: null
property int viewWidth: 560 // by design
@ -99,7 +99,7 @@ SettingsPageLayout {
Component {
id: welcomeView
CommunityWelcomeSettingsView {
WelcomeSettingsView {
viewWidth: root.viewWidth
image: Style.png("community/airdrops8_1")
title: qsTr("Airdrop community tokens")
@ -115,7 +115,7 @@ SettingsPageLayout {
Component {
id: newAirdropView
CommunityNewAirdropView {
EditAirdropView {
id: view
communityDetails: root.communityDetails

View File

@ -51,32 +51,32 @@ StatusScrollView {
width: 608
spacing: 12
CommunityNameInput {
NameInput {
id: nameInput
input.edit.objectName: "editCommunityNameInput"
Layout.fillWidth: true
Component.onCompleted: nameInput.input.forceActiveFocus(Qt.MouseFocusReason)
}
CommunityDescriptionInput {
DescriptionInput {
id: descriptionTextInput
input.edit.objectName: "editCommunityDescriptionInput"
Layout.fillWidth: true
}
CommunityLogoPicker {
LogoPicker {
id: logoPicker
objectName: "editCommunityLogoPicker"
Layout.fillWidth: true
}
CommunityBannerPicker {
BannerPicker {
id: bannerPicker
objectName: "editCommunityBannerPicker"
Layout.fillWidth: true
}
CommunityColorPicker {
ColorPicker {
id: colorPicker
objectName: "editCommunityColorPicker"
onPick: Global.openPopup(pickColorComponent)
@ -89,7 +89,7 @@ StatusScrollView {
width: 640
anchors.centerIn: parent
leftButtons: []
replaceItem: CommunityColorPanel {
replaceItem: ColorPanel {
clip: true
Component.onCompleted: color = colorPicker.color
onAccepted: {
@ -102,7 +102,7 @@ StatusScrollView {
}
}
CommunityTagsPicker {
TagsPicker {
id: tagsPicker
objectName: "editCommunityTagsPicker"
onPick: Global.openPopup(pickTagsComponent)
@ -115,7 +115,7 @@ StatusScrollView {
anchors.centerIn: parent
leftButtons: []
width: 640
replaceItem: CommunityTagsPanel {
replaceItem: TagsPanel {
Component.onCompleted: {
tags = tagsPicker.tags;
selectedTags = tagsPicker.selectedTags;
@ -135,7 +135,7 @@ StatusScrollView {
Layout.bottomMargin: -layout.spacing
}
CommunityOptions {
Options {
id: options
Layout.fillWidth: true
}
@ -146,7 +146,7 @@ StatusScrollView {
Layout.bottomMargin: 8
}
CommunityIntroMessageInput {
IntroMessageInput {
id: introMessageTextInput
input.edit.objectName: "editCommunityIntroInput"
Layout.fillWidth: true
@ -154,7 +154,7 @@ StatusScrollView {
maximumHeight: 108
}
CommunityOutroMessageInput {
OutroMessageInput {
id: outroMessageTextInput
input.edit.objectName: "editCommunityOutroInput"
Layout.fillWidth: true

View File

@ -29,7 +29,7 @@ Control {
readonly property int defaultHoldingsSpacing: 8
function holdingsTextFormat(name, amount) {
return CommunityPermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
return PermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
}
}

View File

@ -50,7 +50,7 @@ Control {
readonly property string memberchipRequestRejectedText: qsTr("Membership Request Rejected")
function holdingsTextFormat(name, amount) {
return CommunityPermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
return PermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
}
function getInvitationPendingText() {

View File

@ -104,7 +104,7 @@ SettingsPageLayout {
Layout.fillHeight: true
currentIndex: membersTabBar.currentIndex
CommunityMembersTabPanel {
MembersTabPanel {
model: root.membersModel
rootStore: root.rootStore
placeholderText: {
@ -113,7 +113,7 @@ SettingsPageLayout {
return qsTr("Search %1's %n member(s)", "", root.membersModel ? root.membersModel.count : 0).arg(root.communityName)
}
panelType: CommunityMembersTabPanel.TabType.AllMembers
panelType: MembersTabPanel.TabType.AllMembers
Layout.fillWidth: true
Layout.fillHeight: true
@ -131,7 +131,7 @@ SettingsPageLayout {
}
}
CommunityMembersTabPanel {
MembersTabPanel {
model: root.pendingMemberRequestsModel
rootStore: root.rootStore
placeholderText: {
@ -140,7 +140,7 @@ SettingsPageLayout {
return qsTr("Search %1's %n pending request(s)", "", root.pendingMemberRequestsModel.count).arg(root.communityName)
}
panelType: CommunityMembersTabPanel.TabType.PendingRequests
panelType: MembersTabPanel.TabType.PendingRequests
Layout.fillWidth: true
Layout.fillHeight: true
@ -149,7 +149,7 @@ SettingsPageLayout {
onDeclineRequestToJoin: root.declineRequestToJoin(id)
}
CommunityMembersTabPanel {
MembersTabPanel {
model: root.declinedMemberRequestsModel
rootStore: root.rootStore
placeholderText: {
@ -158,7 +158,7 @@ SettingsPageLayout {
return qsTr("Search %1's %n rejected member(s)", "", root.declinedMemberRequestsModel.count).arg(root.communityName)
}
panelType: CommunityMembersTabPanel.TabType.DeclinedRequests
panelType: MembersTabPanel.TabType.DeclinedRequests
Layout.fillWidth: true
Layout.fillHeight: true
@ -166,7 +166,7 @@ SettingsPageLayout {
onAcceptRequestToJoin: root.acceptRequestToJoin(id)
}
CommunityMembersTabPanel {
MembersTabPanel {
model: root.bannedMembersModel
rootStore: root.rootStore
placeholderText: {
@ -175,7 +175,7 @@ SettingsPageLayout {
return qsTr("Search %1's %n banned member(s)", "", root.bannedMembersModel.count).arg(root.communityName)
}
panelType: CommunityMembersTabPanel.TabType.BannedMembers
panelType: MembersTabPanel.TabType.BannedMembers
Layout.fillWidth: true
Layout.fillHeight: true

View File

@ -35,7 +35,7 @@ Item {
DeclinedRequests
}
property int panelType: CommunityMembersTabPanel.TabType.AllMembers
property int panelType: MembersTabPanel.TabType.AllMembers
ColumnLayout {
anchors.fill: parent
@ -81,7 +81,7 @@ Item {
components: [
StatusButton {
objectName: "MemberListIten_KickButton"
visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
visible: (root.panelType === MembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
text: qsTr("Kick")
type: StatusBaseButton.Type.Danger
size: StatusBaseButton.Size.Small
@ -89,7 +89,7 @@ Item {
},
StatusButton {
visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
visible: (root.panelType === MembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
text: qsTr("Ban")
type: StatusBaseButton.Type.Danger
size: StatusBaseButton.Size.Small
@ -97,13 +97,13 @@ Item {
},
StatusButton {
visible: (root.panelType === CommunityMembersTabPanel.TabType.BannedMembers) && isHovered && canBeBanned
visible: (root.panelType === MembersTabPanel.TabType.BannedMembers) && isHovered && canBeBanned
text: qsTr("Unban")
onClicked: root.unbanUserClicked(model.pubKey)
},
StatusButton {
visible: (root.panelType === CommunityMembersTabPanel.TabType.PendingRequests) && isHovered
visible: (root.panelType === MembersTabPanel.TabType.PendingRequests) && isHovered
text: qsTr("Reject")
type: StatusBaseButton.Type.Danger
icon.name: "close-circle"
@ -112,8 +112,8 @@ Item {
},
StatusButton {
visible: (root.panelType === CommunityMembersTabPanel.TabType.PendingRequests ||
root.panelType === CommunityMembersTabPanel.TabType.DeclinedRequests) && isHovered
visible: (root.panelType === MembersTabPanel.TabType.PendingRequests ||
root.panelType === MembersTabPanel.TabType.DeclinedRequests) && isHovered
text: qsTr("Accept")
icon.name: "checkmark-circle"
icon.color: Theme.palette.successColor1
@ -142,7 +142,7 @@ Item {
asset.width: 40
asset.height: 40
ringSettings.ringSpecModel: model.colorHash
statusListItemIcon.badge.visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers)
statusListItemIcon.badge.visible: (root.panelType === MembersTabPanel.TabType.AllMembers)
onClicked: {
if(mouse.button === Qt.RightButton) {

View File

@ -225,7 +225,7 @@ SettingsPageLayout {
Component {
id: welcomeView
CommunityWelcomeSettingsView {
WelcomeSettingsView {
viewWidth: root.viewWidth
image: Style.png("community/mint2_1")
title: qsTr("Community tokens")
@ -285,7 +285,7 @@ SettingsPageLayout {
currentIndex: optionsTab.currentItem == collectiblesTab ? 0 : 1
CustomCommunityNewTokenView {
CustomEditCommunityTokenView {
id: newCollectibleView
isAssetView: false
@ -297,7 +297,7 @@ SettingsPageLayout {
referenceSymbol: colLayout.referenceSymbol
}
CustomCommunityNewTokenView {
CustomEditCommunityTokenView {
id: newAssetView
isAssetView: true
@ -309,7 +309,7 @@ SettingsPageLayout {
referenceSymbol: colLayout.referenceSymbol
}
component CustomCommunityNewTokenView: CommunityNewTokenView {
component CustomEditCommunityTokenView: EditCommunityTokenView {
viewWidth: root.viewWidth
layer1Networks: root.layer1Networks
layer2Networks: root.layer2Networks
@ -521,7 +521,7 @@ SettingsPageLayout {
Component {
id: mintedTokensView
CommunityMintedTokensView {
MintedTokensView {
viewWidth: root.viewWidth
model: root.tokensModel
onItemClicked: {

View File

@ -136,7 +136,7 @@ StackLayout {
}
RowLayout {
CommunityBanner {
BannerPanel {
objectName: "invitePeopleBanner"
text: qsTr("Welcome to your community!")
buttonText: qsTr("Invite new people")
@ -146,7 +146,7 @@ StackLayout {
Item {
Layout.fillWidth: true
}
CommunityBanner {
BannerPanel {
objectName: "airdropBanner"
visible: root.owned
text: qsTr("Try an airdrop to reward your community for engagement!")
@ -159,7 +159,7 @@ StackLayout {
Layout.fillWidth: true
}
CommunityBanner {
BannerPanel {
objectName: "backUpBanner"
visible: root.owned
text: qsTr("Back up community key")
@ -177,7 +177,7 @@ StackLayout {
title: qsTr("Edit Community")
editable: true
content: CommunityEditSettingsPanel {
content: EditSettingsPanel {
name: root.name
anchors.fill: parent
description: root.description

View File

@ -142,7 +142,7 @@ SettingsPageLayout {
Component {
id: welcomeView
CommunityWelcomeSettingsView {
WelcomeSettingsView {
viewWidth: root.viewWidth
image: Style.png("community/permissions2_3")
title: qsTr("Permissions")
@ -158,8 +158,8 @@ SettingsPageLayout {
Component {
id: newPermissionView
CommunityNewPermissionView {
id: communityNewPermissionView
EditPermissionView {
id: editPermissionView
viewWidth: root.viewWidth
@ -182,8 +182,8 @@ SettingsPageLayout {
// dependencies
holdingsTracker.revision
channelsTracker.revision
communityNewPermissionView.dirtyValues.permissionType
communityNewPermissionView.dirtyValues.isPrivate
editPermissionView.dirtyValues.permissionType
editPermissionView.dirtyValues.isPrivate
const model = root.permissionsModel
const count = model.rowCount()
@ -287,21 +287,21 @@ SettingsPageLayout {
ModelChangeTracker {
id: holdingsTracker
model: communityNewPermissionView.dirtyValues.selectedHoldingsModel
model: editPermissionView.dirtyValues.selectedHoldingsModel
}
ModelChangeTracker {
id: channelsTracker
model: communityNewPermissionView.dirtyValues.selectedChannelsModel
model: editPermissionView.dirtyValues.selectedChannelsModel
}
Binding {
target: root
property: "saveChangesButtonEnabled"
value: !communityNewPermissionView.permissionDuplicated
&& !communityNewPermissionView.permissionTypeLimitReached
&& communityNewPermissionView.isFullyFilled
value: !editPermissionView.permissionDuplicated
&& !editPermissionView.permissionTypeLimitReached
&& editPermissionView.isFullyFilled
}
}
}
@ -309,7 +309,7 @@ SettingsPageLayout {
Component {
id: permissionsView
CommunityPermissionsView {
PermissionsView {
permissionsModel: root.permissionsModel
assetsModel: root.assetsModel
collectiblesModel: root.collectiblesModel

View File

@ -1,27 +1,29 @@
AirdropsSettingsPanel 1.0 AirdropsSettingsPanel.qml
BackUpCommuntyBannerPanel 1.0 BackUpCommuntyBannerPanel.qml
CommunityAirdropsSettingsPanel 1.0 CommunityAirdropsSettingsPanel.qml
CommunityBanner 1.0 CommunityBanner.qml
CommunityChannelsAndCategoriesBannerPanel 1.0 CommunityChannelsAndCategoriesBannerPanel.qml
CommunityColumnHeaderPanel 1.0 CommunityColumnHeaderPanel.qml
CommunityMembersSettingsPanel 1.0 CommunityMembersSettingsPanel.qml
CommunityMintTokensSettingsPanel 1.0 CommunityMintTokensSettingsPanel.qml
CommunityOverviewSettingsPanel 1.0 CommunityOverviewSettingsPanel.qml
CommunityPermissionsSettingsPanel 1.0 CommunityPermissionsSettingsPanel.qml
CommunityProfilePopupOverviewPanel 1.0 CommunityProfilePopupOverviewPanel.qml
CommunityProfilePopupInviteFriendsPanel 1.0 CommunityProfilePopupInviteFriendsPanel.qml
CommunityProfilePopupInviteMessagePanel 1.0 CommunityProfilePopupInviteMessagePanel.qml
CommunityWelcomeBannerPanel 1.0 CommunityWelcomeBannerPanel.qml
BannerPanel 1.0 BannerPanel.qml
ChannelsAndCategoriesBannerPanel 1.0 ChannelsAndCategoriesBannerPanel.qml
ChatPermissionQualificationPanel 1.0 ChatPermissionQualificationPanel.qml
ColorPanel 1.0 ColorPanel.qml
ColumnHeaderPanel 1.0 ColumnHeaderPanel.qml
FeesPanel 1.0 FeesPanel.qml
HidePermissionPanel 1.0 HidePermissionPanel.qml
JoinCommunityCenterPanel 1.0 JoinCommunityCenterPanel.qml
JoinCommunityHeaderPanel 1.0 JoinCommunityHeaderPanel.qml
JoinPermissionsOverlayPanel 1.0 JoinPermissionsOverlayPanel.qml
MembersSettingsPanel 1.0 MembersSettingsPanel.qml
MintTokensFooterPanel 1.0 MintTokensFooterPanel.qml
MintTokensSettingsPanel 1.0 MintTokensSettingsPanel.qml
OverviewSettingsPanel 1.0 OverviewSettingsPanel.qml
PermissionConflictWarningPanel 1.0 PermissionConflictWarningPanel.qml
PermissionQualificationPanel 1.0 PermissionQualificationPanel.qml
PermissionsSettingsPanel 1.0 PermissionsSettingsPanel.qml
ProfilePopupOverviewPanel 1.0 ProfilePopupOverviewPanel.qml
ProfilePopupInviteFriendsPanel 1.0 ProfilePopupInviteFriendsPanel.qml
ProfilePopupInviteMessagePanel 1.0 ProfilePopupInviteMessagePanel.qml
SortableTokenHoldersList 1.0 SortableTokenHoldersList.qml
SortableTokenHoldersPanel 1.0 SortableTokenHoldersPanel.qml
TagsPanel 1.0 TagsPanel.qml
TokenHoldersPanel 1.0 TokenHoldersPanel.qml
TokenHoldersProxyModel 1.0 TokenHoldersProxyModel.qml
WarningPanel 1.0 WarningPanel.qml
ChatPermissionQualificationPanel 1.0 ChatPermissionQualificationPanel.qml
JoinCommunityCenterPanel 1.0 JoinCommunityCenterPanel.qml
JoinCommunityHeaderPanel 1.0 JoinCommunityHeaderPanel.qml
WelcomeBannerPanel 1.0 WelcomeBannerPanel.qml

View File

@ -44,7 +44,7 @@ StatusModal {
Component {
id: profileOverview
CommunityProfilePopupOverviewPanel {
ProfilePopupOverviewPanel {
width: stack.width
headerTitle: root.community.name

View File

@ -16,9 +16,7 @@ import StatusQ.Controls.Validators 0.1
import StatusQ.Popups 0.1
import AppLayouts.Communities.controls 1.0
import "../controls"
import "../panels"
import AppLayouts.Communities.panels 1.0
StatusStackModal {
id: root
@ -387,31 +385,31 @@ StatusStackModal {
width: generalView.availableWidth
spacing: 16
CommunityNameInput {
NameInput {
id: nameInput
input.edit.objectName: "createCommunityNameInput"
Layout.fillWidth: true
input.tabNavItem: descriptionTextInput.input.edit
}
CommunityDescriptionInput {
DescriptionInput {
id: descriptionTextInput
input.edit.objectName: "createCommunityDescriptionInput"
Layout.fillWidth: true
input.tabNavItem: nameInput.input.edit
}
CommunityLogoPicker {
LogoPicker {
id: logoPicker
Layout.fillWidth: true
}
CommunityBannerPicker {
BannerPicker {
id: bannerPicker
Layout.fillWidth: true
}
CommunityColorPicker {
ColorPicker {
id: colorPicker
onPick: root.replace(colorPanel)
Layout.fillWidth: true
@ -419,7 +417,7 @@ StatusStackModal {
Component {
id: colorPanel
CommunityColorPanel {
ColorPanel {
Component.onCompleted: color = colorPicker.color
onAccepted: {
colorPicker.color = color;
@ -429,7 +427,7 @@ StatusStackModal {
}
}
CommunityTagsPicker {
TagsPicker {
id: communityTagsPicker
tags: root.store.communityTags
onPick: root.replace(tagsPanel)
@ -438,7 +436,7 @@ StatusStackModal {
Component {
id: tagsPanel
CommunityTagsPanel {
TagsPanel {
Component.onCompleted: {
tags = communityTagsPicker.tags;
selectedTags = communityTagsPicker.selectedTags;
@ -455,7 +453,7 @@ StatusStackModal {
Layout.fillWidth: true
}
CommunityOptions {
Options {
id: options
Layout.fillWidth: true
}
@ -471,7 +469,7 @@ StatusStackModal {
spacing: 11
readonly property bool canGoNext: introMessageInput.valid && outroMessageInput.valid
CommunityIntroMessageInput {
IntroMessageInput {
id: introMessageInput
input.edit.objectName: "createCommunityIntroMessageInput"
input.tabNavItem: outroMessageInput.input.edit
@ -483,7 +481,7 @@ StatusStackModal {
maximumHeight: (height - Style.current.xlPadding)
}
CommunityOutroMessageInput {
OutroMessageInput {
id: outroMessageInput
input.edit.objectName: "createCommunityOutroMessageInput"
input.tabNavItem: introMessageInput.input.edit

View File

@ -93,7 +93,7 @@ StatusStackModal {
Item {
implicitHeight: d.popupContentHeight
CommunityProfilePopupInviteFriendsPanel {
ProfilePopupInviteFriendsPanel {
anchors.fill: parent
anchors.topMargin: 16
anchors.bottomMargin: 16
@ -106,7 +106,7 @@ StatusStackModal {
},
Item {
CommunityProfilePopupInviteMessagePanel {
ProfilePopupInviteMessagePanel {
anchors.fill: parent
anchors.topMargin: 16

View File

@ -1,7 +1,7 @@
AlertPopup 1.0 AlertPopup.qml
BurnTokensPopup 1.0 BurnTokensPopup.qml
CommunityProfilePopup 1.0 CommunityProfilePopup.qml
CommunityTokenPermissionsPopup 1.0 CommunityTokenPermissionsPopup.qml
TokenPermissionsPopup 1.0 TokenPermissionsPopup.qml
CreateCategoryPopup 1.0 CreateCategoryPopup.qml
CreateChannelPopup 1.0 CreateChannelPopup.qml
CreateCommunityPopup 1.0 CreateCommunityPopup.qml

View File

@ -86,7 +86,7 @@ StatusScrollView {
// Community restrictions
rigthHeaderComponent: CommunityPermissionsRow {
rigthHeaderComponent: PermissionsRow {
visible: !!card.permissionsList && card.permissionsList.count > 0
assetsModel: root.assetsModel
collectiblesModel: root.collectiblesModel

View File

@ -45,7 +45,7 @@ Item {
signal infoButtonClicked
signal manageButtonClicked
CommunityColumnHeaderPanel {
ColumnHeaderPanel {
id: communityHeader
anchors.top: parent.top
@ -391,7 +391,7 @@ Item {
width: parent.width
height: item.height
sourceComponent: Component {
CommunityWelcomeBannerPanel {
WelcomeBannerPanel {
activeCommunity: communityData
store: root.store
hasAddedContacts: root.hasAddedContacts
@ -408,7 +408,7 @@ Item {
width: parent.width
height: item.height
sourceComponent: Component {
CommunityChannelsAndCategoriesBannerPanel {
ChannelsAndCategoriesBannerPanel {
id: channelsAndCategoriesBanner
communityId: communityData.id
onAddMembersClicked: {

View File

@ -167,7 +167,7 @@ StatusSectionLayout {
id: stackLayout
currentIndex: d.currentIndex
CommunityOverviewSettingsPanel {
OverviewSettingsPanel {
communityId: root.community.id
name: root.community.name
description: root.community.description
@ -219,7 +219,7 @@ StatusSectionLayout {
onPreviousPageNameChanged: root.backButtonName = previousPageName
}
CommunityMembersSettingsPanel {
MembersSettingsPanel {
rootStore: root.rootStore
membersModel: root.community.members
bannedMembersModel: root.community.bannedMembers
@ -235,7 +235,7 @@ StatusSectionLayout {
onDeclineRequestToJoin: root.rootStore.declineRequestToJoinCommunity(id, root.community.id)
}
CommunityPermissionsSettingsPanel {
PermissionsSettingsPanel {
readonly property PermissionsStore permissionsStore:
rootStore.permissionsStore
@ -268,7 +268,7 @@ StatusSectionLayout {
onNavigateToMintTokenSettings: root.goTo(Constants.CommunitySettingsSections.MintTokens)
}
CommunityMintTokensSettingsPanel {
MintTokensSettingsPanel {
id: mintPanel
readonly property CommunityTokensStore communityTokensStore:
@ -471,7 +471,7 @@ StatusSectionLayout {
}
}
CommunityAirdropsSettingsPanel {
AirdropsSettingsPanel {
id: airdropPanel
communityDetails: d.communityDetails

View File

@ -90,7 +90,7 @@ StatusScrollView {
else if (type === Constants.TokenType.ERC721)
tokenModel = root.collectiblesModel
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
const modelItem = PermissionsHelpers.getTokenByKey(
tokenModel, key)
const entry = d.prepareEntry(key, amount, type)
@ -187,7 +187,7 @@ StatusScrollView {
else if (type === Constants.TokenType.ERC721)
tokenModel = root.collectiblesModel
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
const modelItem = PermissionsHelpers.getTokenByKey(
tokenModel, key)
return {

View File

@ -266,14 +266,14 @@ StatusScrollView {
}
onAddAsset: {
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
const modelItem = PermissionsHelpers.getTokenByKey(
root.assetsModel, key)
addItem(HoldingTypes.Type.Asset, modelItem, amount)
dropdown.close()
}
onAddCollectible: {
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
const modelItem = PermissionsHelpers.getTokenByKey(
root.collectiblesModel, key)
addItem(HoldingTypes.Type.Collectible, modelItem, amount)
dropdown.close()
@ -287,7 +287,7 @@ StatusScrollView {
onUpdateAsset: {
const itemIndex = prepareUpdateIndex(key)
const modelItem = CommunityPermissionsHelpers.getTokenByKey(root.assetsModel, key)
const modelItem = PermissionsHelpers.getTokenByKey(root.assetsModel, key)
d.dirtyValues.selectedHoldingsModel.set(
itemIndex, { type: HoldingTypes.Type.Asset, key, amount })
@ -296,7 +296,7 @@ StatusScrollView {
onUpdateCollectible: {
const itemIndex = prepareUpdateIndex(key)
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
const modelItem = PermissionsHelpers.getTokenByKey(
root.collectiblesModel, key)
d.dirtyValues.selectedHoldingsModel.set(

View File

@ -31,7 +31,7 @@ SortFilterProxyModel {
const model = type === HoldingTypes.Type.Asset
? assetsModel
: collectiblesModel
const item = CommunityPermissionsHelpers.getTokenByKey(model, key)
const item = PermissionsHelpers.getTokenByKey(model, key)
return item ? item.shortName || item.name : ""
}
@ -39,7 +39,7 @@ SortFilterProxyModel {
function getText(type, key, amount) {
const name = getName(type, key)
return CommunityPermissionsHelpers.setHoldingsTextFormat(
return PermissionsHelpers.setHoldingsTextFormat(
type, name, amount)
}
@ -61,7 +61,7 @@ SortFilterProxyModel {
const model = type === HoldingTypes.Type.Asset
? assetsModel : collectiblesModel
return CommunityPermissionsHelpers.getTokenIconByKey(model, key)
return PermissionsHelpers.getTokenIconByKey(model, key)
}
expression: {

View File

@ -78,7 +78,7 @@ StatusSectionLayout {
leftPanel: ColumnLayout {
anchors.fill: parent
CommunityColumnHeaderPanel {
ColumnHeaderPanel {
Layout.fillWidth: true
name: root.name
membersCount: root.membersCount

View File

@ -1,13 +1,13 @@
ChannelsSelectionModel 1.0 ChannelsSelectionModel.qml
CommunityColumnView 1.0 CommunityColumnView.qml
CommunitiesGridView 1.0 CommunitiesGridView.qml
CommunityNewAirdropView 1.0 CommunityNewAirdropView.qml
CommunityMintedTokensView 1.0 CommunityMintedTokensView.qml
CommunityNewPermissionView 1.0 CommunityNewPermissionView.qml
CommunityNewTokenView 1.0 CommunityNewTokenView.qml
CommunityPermissionsView 1.0 CommunityPermissionsView.qml
CommunitySettingsView 1.0 CommunitySettingsView.qml
CommunityTokenView 1.0 CommunityTokenView.qml
CommunityWelcomeSettingsView 1.0 CommunityWelcomeSettingsView.qml
EditAirdropView 1.0 EditAirdropView.qml
EditPermissionView 1.0 EditPermissionView.qml
EditCommunityTokenView 1.0 EditCommunityTokenView.qml
HoldingsSelectionModel 1.0 HoldingsSelectionModel.qml
JoinCommunityView 1.0 JoinCommunityView.qml
MintedTokensView 1.0 MintedTokensView.qml
PermissionsView 1.0 PermissionsView.qml
WelcomeSettingsView 1.0 WelcomeSettingsView.qml