feat(Communities): Communities folder reorganization

- Renamed main `CommunitiesPortal` folder to `Communities`.
- Created new `layouts` folder.
- Moved layout files from chat to communities.
- Created new `helpers` folder.
- Moved helpers files from chat to communities.
- Moved `controls/community` files from chat to communities `controls`.
- Moved `panels/communities` files from chat to communities `panels`.
- Moved `popups/community` files from chat to communities `popups`.
- Moved `views/community` files from chat to communities `views`.
- Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context.
- Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`.
- Moved `PermissionsStore.qml` file to `shared/stores`.
- Updated imports.
- Updated storybook.

Part of #6204
This commit is contained in:
Noelia 2023-06-23 08:17:04 +02:00 committed by Noelia
parent 823054ec33
commit 0ab8a62896
179 changed files with 159 additions and 151 deletions

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import Storybook 1.0
import Models 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import Storybook 1.0
import Models 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import Models 1.0
import Storybook 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import utils 1.0

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
Logs { id: logs }

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
Logs { id: logs }

View File

@ -6,8 +6,8 @@ import Models 1.0
import Storybook 1.0
import utils 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.popups 1.0
import AppLayouts.Communities.panels 1.0
SplitView {
id: root

View File

@ -1,8 +1,8 @@
import QtQuick 2.14
import QtQuick.Controls 2.14
import AppLayouts.CommunitiesPortal 1.0
import AppLayouts.CommunitiesPortal.stores 1.0
import AppLayouts.Communities 1.0
import AppLayouts.Communities.stores 1.0
import SortFilterProxyModel 0.2

View File

@ -3,8 +3,8 @@ import QtQuick.Controls 2.15
import StatusQ.Core.Theme 0.1
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.panels 1.0
import AppLayouts.Communities.controls 1.0
import utils 1.0
import SortFilterProxyModel 0.2

View File

@ -4,7 +4,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import StatusQ.Core.Theme 0.1
import utils 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import AppLayouts.Chat.stores 1.0
import StatusQ.Core.Theme 0.1

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import StatusQ.Core.Theme 0.1
import StatusQ.Components 0.1
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Communities.views 1.0
import Storybook 1.0
import Models 1.0

View File

@ -2,8 +2,8 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.views 1.0
import AppLayouts.Communities.controls 1.0
import Storybook 1.0
import Models 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Communities.views 1.0
import Storybook 1.0
import Models 1.0
@ -27,8 +27,6 @@ SplitView {
permissionDuplicated: isPermissionDuplicatedCheckBox.checked
permissionTypeLimitReached: isLimitReachedCheckBox.checked
showWhoHoldsSwitch: true
assetsModel: AssetsModel {}
collectiblesModel: CollectiblesModel {}
channelsModel: ChannelsModel {}

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import StatusQ.Core.Theme 0.1
import StatusQ.Components 0.1
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Communities.views 1.0
import Storybook 1.0
import Models 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
ColumnLayout {
id: root

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
SplitView {
id: root

View File

@ -4,8 +4,6 @@ import QtQuick.Layouts 1.14
import StatusQ.Core.Utils 0.1
import AppLayouts.Chat.controls.community 1.0
Flickable {
id: root

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import StatusQ.Core.Theme 0.1
import StatusQ.Core.Utils 0.1
@ -77,10 +77,6 @@ SplitView {
collectiblesModel: CollectiblesModel {}
channelsModel: ChannelsModel {}
isOwner: isOwnerCheckBox.checked
showWhoHoldsSwitch: true
onCreatePermissionRequested: {
permissionsStoreMock.createPermission(holdings, permissionType,
isPrivate, channels)

View File

@ -4,7 +4,7 @@ import QtQuick.Controls 2.15
import StatusQ.Core.Theme 0.1
import StatusQ.Core.Utils 0.1
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Communities.views 1.0
import Models 1.0
import Storybook 1.0

View File

@ -1,7 +1,7 @@
import QtQuick 2.14
import QtQuick.Controls 2.14
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import utils 1.0
Item {

View File

@ -1,7 +1,7 @@
import QtQuick 2.14
import QtQuick.Controls 2.14
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import utils 1.0
Item {

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
SplitView {

View File

@ -2,8 +2,8 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Chat.helpers 1.0
import AppLayouts.Communities.views 1.0
import AppLayouts.Communities.helpers 1.0
import Storybook 1.0
import Models 1.0

View File

@ -4,7 +4,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
id: root

View File

@ -4,8 +4,7 @@ import QtQuick.Layouts 1.15
import Storybook 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
SplitView {
Logs { id: logs }

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import SortFilterProxyModel 0.2

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import Storybook 1.0
import Models 1.0

View File

@ -4,7 +4,7 @@ import QtQuick.Layouts 1.15
import Models 1.0
import utils 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
Item {
id: root

View File

@ -1,7 +1,7 @@
import QtQuick 2.14
import QtQuick.Controls 2.14
import AppLayouts.Chat.popups 1.0
import AppLayouts.Communities.popups 1.0
import utils 1.0
import Storybook 1.0

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import StatusQ.Core.Theme 0.1
import StatusQ.Components 0.1
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Communities.views 1.0
import Storybook 1.0
import Models 1.0
@ -152,8 +152,6 @@ Nemo enim 😋 ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
openJoinCommunityDialog()
}
onInvitationPendingClicked: logs.logEvent("JoinCommunityView::onInvitationPendingClicked()")
onJoined: logs.logEvent("JoinCommunityView::onJoined()")
onCancelMembershipRequest: logs.logEvent("JoinCommunityView::onCancelMembershipRequest()")
}
}

View File

@ -8,8 +8,7 @@ import StatusQ.Core 0.1
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import utils 1.0

View File

@ -3,7 +3,7 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQml 2.15
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
import utils 1.0
import SortFilterProxyModel 0.2

View File

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

View File

@ -4,7 +4,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
SplitView {
orientation: Qt.Vertical

View File

@ -4,7 +4,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
SplitView {
orientation: Qt.Vertical

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
Logs { id: logs }

View File

@ -4,8 +4,7 @@ import QtQuick.Layouts 1.15
import Storybook 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
Logs { id: logs }

View File

@ -5,7 +5,7 @@ import QtQuick.Layouts 1.14
import Storybook 1.0
import Models 1.0
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
SplitView {
Logs { id: logs }

View File

@ -1,7 +1,7 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import Storybook 1.0
import Models 1.0

View File

@ -2,7 +2,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import Storybook 1.0
import Models 1.0

View File

@ -5,7 +5,7 @@ import StatusQ.Core 0.1
import mainui 1.0
import AppLayouts.Chat.panels.communities 1.0
import AppLayouts.Communities.panels 1.0
import Storybook 1.0
import Models 1.0

View File

@ -6,7 +6,7 @@ import Models 1.0
import Storybook 1.0
import utils 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
SplitView {
id: root

View File

@ -6,7 +6,7 @@ import Models 1.0
import Storybook 1.0
import utils 1.0
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
SplitView {
id: root

View File

@ -1,6 +1,6 @@
import QtQuick 2.15
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
ListModel {
readonly property var data: [

View File

@ -1,6 +1,6 @@
import QtQuick 2.15
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
ListModel {
readonly property var data: [

View File

@ -4,7 +4,7 @@ import QtQuick 2.14
import Models 1.0
import StatusQ.Core.Utils 0.1
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
QtObject {
id: root

View File

@ -1,3 +0,0 @@
import QtQuick 2.15
QtObject {}

View File

@ -1,3 +1,2 @@
CommunitiesStore 1.0 CommunitiesStore.qml
RootStore 1.0 RootStore.qml
StickersStore 1.0 StickersStore.qml

View File

@ -6,9 +6,9 @@ import utils 1.0
import shared.popups 1.0
import "views"
import "views/communities"
import AppLayouts.Communities.views 1.0
import "stores"
import "popups/community"
import AppLayouts.Communities.popups 1.0
import AppLayouts.Chat.stores 1.0

View File

@ -1,4 +1,2 @@
PinnedMessagesPopup 1.0 PinnedMessagesPopup.qml
ChooseBrowserPopup 1.0 ChooseBrowserPopup.qml
InviteFriendsToCommunityPopup 1.0 community/InviteFriendsToCommunityPopup.qml
CommunityProfilePopup 1.0 community/CommunityProfilePopup.qml

View File

@ -1,6 +1,5 @@
CommunitiesStore 1.0 CommunitiesStore.qml
CreateChatPropertiesStore 1.0 CreateChatPropertiesStore.qml
PermissionsStore 1.0 PermissionsStore.qml
RootStore 1.0 RootStore.qml
StickerData 1.0 StickerData.qml
StickerPackData 1.0 StickerPackData.qml

View File

@ -16,7 +16,7 @@ import shared.controls 1.0
import shared.views.chat 1.0
import SortFilterProxyModel 0.2
import AppLayouts.Chat.popups.community 1.0
import AppLayouts.Communities.popups 1.0
import "../helpers"
import "../controls"
@ -24,7 +24,7 @@ import "../popups"
import "../panels"
import "../../Wallet"
import "../stores"
import "../panels/communities"
import AppLayouts.Communities.panels 1.0
Item {
id: root

View File

@ -9,6 +9,8 @@ import StatusQ.Core.Utils 0.1 as SQUtils
import utils 1.0
import shared.views.chat 1.0
import "../panels"
import "../stores"

View File

@ -15,7 +15,8 @@ import StatusQ.Controls 0.1
import "."
import "../panels"
import "../panels/communities"
import AppLayouts.Communities.panels 1.0
import AppLayouts.Communities.views 1.0
import "../popups"
import "../helpers"
import "../controls"

View File

@ -12,12 +12,14 @@ import utils 1.0
import shared 1.0
import shared.controls 1.0
import shared.popups 1.0
import shared.views.chat 1.0
import shared.panels 1.0
import SortFilterProxyModel 0.2
import "../panels"
import "../popups"
import "../popups/community"
import AppLayouts.Communities.popups 1.0
Item {
id: root

View File

@ -12,13 +12,13 @@ import StatusQ.Layout 0.1
import utils 1.0
import shared.controls 1.0
import shared.popups 1.0
import shared.panels 1.0
import SortFilterProxyModel 0.2
import "controls"
import "popups"
import "views"
import AppLayouts.Communities.controls 1.0
import AppLayouts.Communities.popups 1.0
import AppLayouts.Communities.views 1.0
import AppLayouts.Communities.panels 1.0
StatusSectionLayout {
id: root

View File

@ -8,12 +8,12 @@ import StatusQ.Core.Utils 0.1
import StatusQ.Components 0.1
import StatusQ.Controls 0.1
import AppLayouts.Chat.views.communities 1.0
import AppLayouts.Communities.views 1.0
/*!
\qmltype CommunityPermissionsRow
\inherits Control
\inqmlmodule AppLayouts.Chat.controls.community 1.0
\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.

View File

@ -8,7 +8,7 @@ import StatusQ.Components 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Utils 0.1
import AppLayouts.Chat.helpers 1.0
import AppLayouts.Communities.helpers 1.0
import utils 1.0
StatusDropdown {

View File

@ -2,9 +2,19 @@ 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
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
HoldingTypes 1.0 HoldingTypes.qml
HoldingsDropdown 1.0 HoldingsDropdown.qml
InDropdown 1.0 InDropdown.qml

View File

@ -5,7 +5,7 @@ import QtQml 2.14
import StatusQ.Core 0.1
import StatusQ.Core.Utils 0.1
import AppLayouts.Chat.controls.community 1.0
import AppLayouts.Communities.controls 1.0
QtObject {
function getTokenByKey(model, key) {

Some files were not shown because too many files have changed in this diff Show More