feat(CommunitiesPortal): implement text search using mocked model
Additionally: - communities grid made scrollable - filtering done using SortFilterProxyModel - various adjustments to the design - clear input button added to the search input Closes: #6360
This commit is contained in:
parent
37b9cf39c8
commit
e70fecaf2d
|
@ -1,5 +1,4 @@
|
||||||
import QtQuick 2.13
|
import QtQuick 2.13
|
||||||
import QtQuick.Controls 2.13
|
|
||||||
import QtQuick.Layouts 1.13
|
import QtQuick.Layouts 1.13
|
||||||
|
|
||||||
import StatusQ.Core 0.1
|
import StatusQ.Core 0.1
|
||||||
|
@ -11,12 +10,16 @@ import StatusQ.Popups.Dialog 0.1
|
||||||
import StatusQ.Layout 0.1
|
import StatusQ.Layout 0.1
|
||||||
|
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
|
import shared.controls 1.0
|
||||||
import shared.popups 1.0
|
import shared.popups 1.0
|
||||||
import shared.panels 1.0
|
import shared.panels 1.0
|
||||||
|
|
||||||
|
import SortFilterProxyModel 0.2
|
||||||
|
|
||||||
import "controls"
|
import "controls"
|
||||||
import "stores"
|
import "stores"
|
||||||
import "popups"
|
import "popups"
|
||||||
|
import "views"
|
||||||
|
|
||||||
StatusSectionLayout {
|
StatusSectionLayout {
|
||||||
id: root
|
id: root
|
||||||
|
@ -30,35 +33,56 @@ StatusSectionLayout {
|
||||||
notificationCount: root.communitiesStore.unreadNotificationsCount
|
notificationCount: root.communitiesStore.unreadNotificationsCount
|
||||||
onNotificationButtonClicked: Global.openActivityCenterPopup()
|
onNotificationButtonClicked: Global.openActivityCenterPopup()
|
||||||
|
|
||||||
|
onVisibleChanged: {
|
||||||
|
if(visible)
|
||||||
|
searcher.input.edit.forceActiveFocus()
|
||||||
|
}
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: d
|
id: d
|
||||||
|
|
||||||
property string searchText: ""
|
// values from the design
|
||||||
property int layoutVMargin: 70
|
readonly property int layoutTopMargin: 10
|
||||||
property int layoutHMargin: 64
|
readonly property int layoutBottomMargin: 249
|
||||||
property int titlePixelSize: 28
|
readonly property int layoutHMargin: 64
|
||||||
property int subtitlePixelSize: 17
|
readonly property int layoutWidth: 1037
|
||||||
|
readonly property int titlePixelSize: 28
|
||||||
|
readonly property int preventShadowClipMargin: 40
|
||||||
|
|
||||||
|
readonly property bool searchMode: searcher.text.length > 0
|
||||||
|
|
||||||
function navigateToCommunity(communityId) {
|
function navigateToCommunity(communityId) {
|
||||||
root.communitiesStore.setActiveCommunity(communityId)
|
root.communitiesStore.setActiveCommunity(communityId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
centerPanel: Item {
|
SortFilterProxyModel {
|
||||||
implicitWidth: parent.width
|
id: searchModel
|
||||||
implicitHeight: parent.height
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.leftMargin: d.layoutHMargin
|
|
||||||
clip: true
|
|
||||||
|
|
||||||
StatusScrollView {
|
sourceModel: root.communitiesStore.curatedCommunitiesModel
|
||||||
contentHeight: column.height + d.layoutVMargin
|
|
||||||
contentWidth: root.contentPrefferedWidth - d.layoutHMargin
|
filters: ExpressionFilter {
|
||||||
|
enabled: d.searchMode
|
||||||
|
expression: {
|
||||||
|
searcher.text
|
||||||
|
return name.toLowerCase().includes(searcher.text.toLowerCase())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
centerPanel: Item {
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
width: d.layoutWidth
|
||||||
|
|
||||||
|
anchors.topMargin: d.layoutTopMargin
|
||||||
|
anchors.leftMargin: d.layoutHMargin
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: column
|
id: column
|
||||||
width: parent.availableWidth
|
|
||||||
height: childrenRect.height
|
anchors.fill: parent
|
||||||
spacing: 18
|
spacing: 18
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
|
@ -73,25 +97,14 @@ StatusSectionLayout {
|
||||||
Layout.preferredHeight: 38
|
Layout.preferredHeight: 38
|
||||||
spacing: Style.current.bigPadding
|
spacing: Style.current.bigPadding
|
||||||
|
|
||||||
StatusInput {
|
SearchBox {
|
||||||
id: searcher
|
id: searcher
|
||||||
implicitWidth: 327
|
implicitWidth: 327
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
enabled: false // Out of scope
|
|
||||||
placeholderText: qsTr("Search")
|
|
||||||
input.asset.name: "search"
|
|
||||||
leftPadding: 0
|
|
||||||
rightPadding: 0
|
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
minimumHeight: 36
|
minimumHeight: 36
|
||||||
maximumHeight: 36
|
maximumHeight: 36
|
||||||
text: d.searchText
|
|
||||||
onTextChanged: {
|
|
||||||
console.warn("TODO: Community Cards searcher algorithm.")
|
|
||||||
// 1. Filter Community Cards by title, description or tags category.
|
|
||||||
// 2. Once some filter is applyed, update main tags row only showing the tags that are part of the categories of the filtered Community Cards.
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Just a row filler to fit design
|
// Just a row filler to fit design
|
||||||
|
@ -99,7 +112,7 @@ StatusSectionLayout {
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
id: importBtn
|
id: importBtn
|
||||||
Layout.fillHeight: true
|
Layout.preferredHeight: 38
|
||||||
text: qsTr("Import using key")
|
text: qsTr("Import using key")
|
||||||
verticalPadding: 0
|
verticalPadding: 0
|
||||||
onClicked: Global.openPopup(importCommunitiesPopupComponent)
|
onClicked: Global.openPopup(importCommunitiesPopupComponent)
|
||||||
|
@ -108,7 +121,7 @@ StatusSectionLayout {
|
||||||
StatusButton {
|
StatusButton {
|
||||||
id: createBtn
|
id: createBtn
|
||||||
objectName: "createCommunityButton"
|
objectName: "createCommunityButton"
|
||||||
Layout.fillHeight: true
|
Layout.preferredHeight: 38
|
||||||
verticalPadding: 0
|
verticalPadding: 0
|
||||||
text: qsTr("Create New Community")
|
text: qsTr("Create New Community")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -126,69 +139,27 @@ StatusSectionLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusBaseText {
|
Item {
|
||||||
Layout.topMargin: 20
|
Layout.fillWidth: true
|
||||||
text: qsTr("Featured")
|
Layout.fillHeight: true
|
||||||
font.weight: Font.Bold
|
Layout.leftMargin: -d.preventShadowClipMargin
|
||||||
font.pixelSize: d.subtitlePixelSize
|
Layout.rightMargin: -d.preventShadowClipMargin
|
||||||
color: Theme.palette.directColor1
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout {
|
clip: true
|
||||||
id: featuredGrid
|
|
||||||
columns: 3
|
CommunitiesGridView {
|
||||||
columnSpacing: Style.current.padding
|
anchors.fill: parent
|
||||||
rowSpacing: Style.current.padding
|
anchors.rightMargin: d.preventShadowClipMargin
|
||||||
|
anchors.leftMargin: d.preventShadowClipMargin
|
||||||
|
|
||||||
|
padding: 0
|
||||||
|
bottomPadding: d.layoutBottomMargin
|
||||||
|
|
||||||
Repeater {
|
|
||||||
model: root.communitiesStore.curatedCommunitiesModel
|
|
||||||
delegate: StatusCommunityCard {
|
|
||||||
visible: model.featured
|
|
||||||
locale: communitiesStore.locale
|
locale: communitiesStore.locale
|
||||||
communityId: model.id
|
model: searchModel
|
||||||
loaded: model.available
|
searchLayout: d.searchMode
|
||||||
logo: model.icon
|
|
||||||
name: model.name
|
|
||||||
description: model.description
|
|
||||||
members: model.members
|
|
||||||
popularity: model.popularity
|
|
||||||
// <out of scope> categories: model.categories
|
|
||||||
|
|
||||||
onClicked: { d.navigateToCommunity(communityId) }
|
onCardClicked: d.navigateToCommunity(communityId)
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
StatusBaseText {
|
|
||||||
Layout.topMargin: 20
|
|
||||||
text: qsTr("Popular")
|
|
||||||
font.weight: Font.Bold
|
|
||||||
font.pixelSize: d.subtitlePixelSize
|
|
||||||
color: Theme.palette.directColor1
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout {
|
|
||||||
columns: 3
|
|
||||||
columnSpacing: Style.current.padding
|
|
||||||
rowSpacing: Style.current.padding
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
model: root.communitiesStore.curatedCommunitiesModel
|
|
||||||
delegate: StatusCommunityCard {
|
|
||||||
visible: !model.featured
|
|
||||||
locale: communitiesStore.locale
|
|
||||||
communityId: model.id
|
|
||||||
loaded: model.available
|
|
||||||
logo: model.icon
|
|
||||||
name: model.name
|
|
||||||
description: model.description
|
|
||||||
members: model.members
|
|
||||||
popularity: model.popularity
|
|
||||||
// <out of scope> categories: model.categories
|
|
||||||
|
|
||||||
onClicked: { d.navigateToCommunity(communityId) }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,111 @@
|
||||||
|
import QtQuick 2.14
|
||||||
|
|
||||||
|
ListModel {
|
||||||
|
ListElement {
|
||||||
|
featured: true
|
||||||
|
communityId: "id1"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAP/SURBVHgBzZndVdtAEIXvyhTgVIB8KACoAPPzHlIBogJMBRYVBFdgUQEUwI+pIOI9OTYVhLzHq9yRVkbYxpbWK8ffOToCIaEZ7d3ZmVkFB7SDYdPD+NRDYzcBfF7a49E0R85IDgXEGuMXjcZgELVGWBEFSzKjccF/0EZ22LxcnOmt4kxlBwqGd/DxC69KNAauqjpSyYGjYNitwfAPUILhY9S6Knt/KQf41f0t4DbJtL0ORhyNwzKj4S274fj89awB/Fij8YIv7zwOhqfLblzowEn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AhiCFIFIIkjEAAAAASUVORK5CYII="
|
||||||
|
name: "Status.im"
|
||||||
|
description: "Your portal to Web3. Secure wallet. dApp browser. Private messaging. All-in-one."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: true
|
||||||
|
communityId: "id2"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUySURBVHgB1VpLSCtLEC29gqL4X4gimiguxfhZ61X8LATxLdSNcnNRQUTEh4ob8UYEN27u2ykiLy5EcfXEDy7EiIgbF9eHCv4gefgX/KKI33pdnczcTJxJJjHReKCIU10zU6eruru6xwDwAhAxiv2UM8lgomGiYxJlEwEWm6wy+ZfJQkBAgAU+CuQ0kx9MTOg5fjHRM9HAe8HO8Qv0Lv72OREfOe6IH+BtUM+gNdzvBTN6KxrsQd/Q970uB3pnObwFaE2Zj4ZnKYX+4bwA90iwG8rR//BNztcAGec17OcXSBchf8Alk0zHxU+OgBmsq6k/YpURyLRXBNpfoDXXNOC/0DEfDfYKMQK21DGD/4NSScsiQb+SCHh/BfQNaGy2CBc8Ap70/tXVFZycnADrCYiLi4OIiAh4R4hRECLwVe2dU1NT0NraCtPT07C/vw8LCwuQmZkJsbGxkJWVBTqdDkwmE7cdHh6GhIQEiI+PF6WoqAgGBwehurqaX6enp0NVVRUsLS2BG5BEgSLgss55enrCuro6zM3Nxbu7O0nbw8MDdnR0ID2KZGRkRGzr7OwU9SRlZWVi28DAAAYGBoptzc3N/D0qYRKc16ixppeR+ezsrKJNQ0MDt+nv7xd1LEqKBAhtbW2S9t7eXnQDUURAr8YyJyeHv2BxcVHR5vz8HJOSkrCvr0/UXV5eOiWwu7sraWcphy8vL6gSehoDOlcJx8IKq6ur/O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||||
|
name: "SuperRare"
|
||||||
|
description: "The future of CryptoArt markets—a network governed by artists, collectors and curators."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: true
|
||||||
|
communityId: "id3"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAX1SURBVHgBxZprbFRVEMf/d6m1pQILPuuLW1pf0dgWKjExhi0fFJ/pQ2NiDDRaQEOxBaMBjLqNH0QjSAMoNgirCYmRuFsVRSy21cQHJtJWNLER6Na3ksYCKS1Q9jqz5y7dbvecc/dVfsn2sWfu3Zl75syZmbMG0kGF5eafcKGYfpv0KqGX235FCMKil4Eu+rsbIXSgxQgiRQwkCyvtQj0p5aG7eJAMFhljoCkVYxI3IKI40ICxTzhVfGRIY6KGJGZAlfUC0q94LF74jUanws4MqLBMTEKAprwEE0OQZqPcyWy4dAKothaRVOcEKs+Y4c+ssCp0gmoD2GUs8s3MuowMXmsB222lyF1IXOiFQ/JygPIbgbIi4KoLgaJ8YHoeELKAo0PAr0eAw/8AB/qA3fuBwZNIBOm6iG8ATx1b74BrL6dVfS/w8O3AtMlwxNETQGAf0PgeOfu/zq4hTWvwvvH2+Ldj4QXL/qdxm6mk7KpKoXxuNpLiTAho+hh4cScwMKgVH6CFXRq7sMcbUGX1QuymUuaRq2yvAwouQVrgWah9Hfj8gEaQN76AURr91thFLPzeVN1joQfY81z6lGdMutendM+ld2gEDYqEVZZ37FsRhOv0qq5/dD7w1jJklMVvAFv3KkXYlQrIlQb4n9EZcEEZrjzkNluWIuNsXgzMv0kpwuG1IfKPmAHN0+fo0rVOTPVE0EtrovQpEa0knJ2FyAx4oODZBxJT/vgwsPcHoPkz4Q6t3YnFfV5fq6qUImdn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O5jjfegPqQL0EjMoRUeUZ/SilOa9idJvqcjNfhClLepxJyfszqAgVR9dlB2uAa5UzY54N60UTIvEuJvUjhMrEk81UDk67y0msR0odQnLMB++DCKal82cMEwl/0qNdtfFIsdIQz4SQUj5C8AdGMGsOGFNvdPjNKYsB+dZHSfXYV2JKs0tH8Dw9k0nTP6oSCAAAAAElFTkSuQmCC"
|
||||||
|
name: "Coinbase"
|
||||||
|
description: "Jump start your crypto portfolio with the easiest place to buy and sell crypto."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: false
|
||||||
|
communityId: "id4"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAW8SURBVHgBrVhZaFRJFD1pxX1pFDdQaUXFBUxcQFTUVhFRwYmIiv6YUfzwQ3TcPgQ1UfFHZOKfohhFURTERBQRA0nIvpE9IRBCdrLvG9ne1LnpznS/1OvuZOZAkbxXr26dunt1ECYAwzDs6k+YGsFqhKjhUMPumm5Xo8I1YtSIDwoKqsD/CUXAqUacMXF85Vr8VyghDl8EhoeHjaqqKiM3N9dob2/3R8jha68gHySuqj/h+Ff17vcycnJyEBkZidraWnkmTp06hZMnT2LJkiU6kTRdhDJXZMBElOD7LhLj0NHRgSdPniAlJQU7d+7E8ePHYbfbUVJSgk+fPqG/vx+XL1/GoUOHoDbViQhX7yPgDyRhpV9FwggLCzOOHDlifP/+3WtuZGTEaG5ulnmn02l8/vzZl6nu+yNx1WplQ0ODcebMGeP06dNGeXm55Q5v37419u3bJ+P9+/dC0ALXPPe2eZBwWJlDzeHZs2doamrCo0eP4HA4LA+zatUqMQnHy5cvkZ2dbfXpfcPDgW0eE3/D5JhuEq9evRKfuHPnDtasWSPv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m9NETIbsc0mCCVF19jAhwvNKOs5gSmA4XF2T+8T0+tu3b0vbSHIHDx4Us9EUN2/elGzJ7yIiIiTk3717J1HizspsCUy+QRLhXoeGBmYyhLqzSNsYGxuLgYEBEczkxJO7tTdr1ix5JilGyKVLl7B7926/JCyJuMhcc5Hxqs40Ef2FJy4sLBQH5kbcnP0Hw3jPnj1jTZQHCZ9XTp8wRi/hX3W3I16ceAlX5jFUIjOUJnxdpuIMP5fwQAk5rQj5QZwR4M8SQZgAXKdyYrTPdUD/Qw1rFwvpG1fWDgj/ACxIOBmWCQUcAAAAAElFTkSuQmCC"
|
||||||
|
name: "Dragonereum"
|
||||||
|
description: "A community of cat lovers, meow!"
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: false
|
||||||
|
communityId: "id5"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALiSURBVHgB1ZhPTxNBGId/24IWYiIeNEUikkg1EtL2APRSYoKUNl5EvEhjgn4Ba3rxqEc92MgXUE/WE9GDxCKSEIkJcqnBQAyYkCqIxQChBLG1xX2n2dp/6u7sbFOepNnuzM7uk3fm3ZlZ6f7NF9ekPekRqhQJ0uMaCGZ96xsWv8zmzrvaeqEX4ZKfZMGnr0K586qTDMtyG1txiEao5MzcOIxAiGR4LISZeWMECV2SSpKsJ8R3cT66JIuTxChM4ISSRE0Xs+t0jlXuSKp9sHJdp45XkWZJJUkWnt8pqbNd/FN290Y/Lp93sv8jE1EEhy9g0BPkklXd3ZQk7+So2E7WYaAn+3CTuRY1dYfZkaDyrvaWkrZNxxpY3Y9UjN3DMEklSeynzbgX6M82PlgPy5HjMMtHgsqV6OXjksWpzmRa5Eo07jFpaWhEJp3C7sYKMsmdEiFXmYjywi1ZU9+AXzubSCa+F5QrXSsSbsntlXlUCtWSzc0n4Pf70Wp3wmJtAQ/nepNy2zZoRbWk292N7kvXoYehM30Yko8Pb7/V1E615NTUGzZ7UDTdbjcre//VjJcLtQXXORvT8NpSqI1EYI5GC+pSPh/SDge0oloyFvssSz7JCRKr2yZEiiQJkiRBEs0n7XRySap6T9Js8TM9wWYZT1Mca5MPUEl0rYKshzLwtaYKyhxydxMUNUhSQV3GagUPuiRJSJEqJuX1sp8IVEtOf1jCreFnGJCnPZpNEh/HoJWR11F2n46jVzW1Uy25HN9kqxlaQLjagd3VOWhlcnyU3aMjYIBkKDDK1oVhFYsDkqCIK5Rb0mlF+L67qubuv+Fiw6EFIuHe4+RT3MWiESI5PbvERI1CSHfTIpd++XschapLHNEJoyBUUtn7iEZ4dpdDGbN76VZc8fRAK0IS538sr2VnK8uBZq7vlUIiSa+ff2U3fRCgWYsXod3debZ8lE412aEHoZKDfUEYQUXGpF72heRvWCUEXU7sGx8AAAAASUVORK5CYII="
|
||||||
|
name: "CryptPunks"
|
||||||
|
description: "A group chat full of our favorite thinkers and creators."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: false
|
||||||
|
communityId: "id6"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAhZSURBVHgBnVhdaBzHHf/P7N7unXQXyYosXyI7smQ7tmNoIElbaG1sAsF1cf3Qh9YvpW4JlBJa0kKpIYQqfmofGuhH+lDIS4gIxND0A9pCSNWHfAfHsR1iW3JyURRbspLIOvtOd3u7O//89+t2Zm7vJPnQ6nbmZv7zm//nb4bBbX6mJ6fNPUdHD4Mh9jHku0HgOPqszAXk0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QcXWw07mTcxN0MXCGRg8qvC8pi5Q3zbuM0Ee9zz3wF4Ryu4EZGSKtXJiZvJNAIir6//GLmx/ueTmQfOZ/MX9QIL5E0bYpq1xm1dlMFpVVWeQx8lhgF3NW7ptjFwZv6HgyQYYafezqIxS6p2n2AEg8r4O16CTZy6Z5yoWVBDIAzji87gn+vd0zw1ezsPBuIMeeGX3Z81sH6Gqukp5lWHoZoJy3IQ2ORIOeBFAODj3KGbzYKC8d7gawpyaTT+VEZZD51p8p6o5TwjXW9r20T28rcwGqaPAndl0cfmYtDGuCbIM9vnCIe3iKdr8fw+togJ63vvomUr7a4Ca8yIpwcvydkcX1rL1ukG2w31k4SL76I1r4KD136hf4ai2OWRLlPpozR81nRQmm9rxdrmxgyY2DbIM9Ucmza6VvCNd9kLl8p0Cxi7JBWfiQoxRWI7BXueBXqGzOsAK8OvHWlvNwm58vAfPw1Ad4zHknAAAAAElFTkSuQmCC"
|
||||||
|
name: "Socks"
|
||||||
|
description: "A community of P2P crypto trades."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: false
|
||||||
|
communityId: "id7"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARRSURBVHgB1ZpNiBxFFMf/r6olxM1hEKJEicz6kWW97A54yUGcIDkKiSJ+XDZBDCJoshdPwk5U8KauKHhRN3jMIasXUdRsRNSTOznJqpgJURMSCJPvbHaqXl71bCcz07093TOd2Z4fDDNdXVP9XtV7Va9eNSEDeBEFM4JdGt4EmItSMsmKCmAUgjrEXANRTX5VDfj4ijELG8dRQ58QesQJjU1qP5jKDJTRAwQWZWi2H2VSKxAIzqADrT3cLyLI3HVjDqZVJJUC/JeayVrwToi4Qo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IT+/SvGshoWKXFNzCFzHCCq1l1tfFhcHCRlN5f9hBFDCQtryWz3fvCtyA9fqwXwQMySckFykhIPkmKm6/ctPkL12USqEsev8qGTkr4XtXXzXyvQrdyE+WOr+82cauTAAAAAElFTkSuQmCC"
|
||||||
|
name: "Rarible"
|
||||||
|
description: "Multichain community-centric NFT marketplace. Create, sell and collect NFTs."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: false
|
||||||
|
communityId: "id8"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1eSURBVHgBxVp5cFT1Hf/83nubzW6uTcjJmdQQtQEJGMZjWkpQsaIItNOxihc9HOsxxs50xraOCZb+0cuCOsPUoQPWUanTAqKoAxWCWtBBNIAECMQkHAm5N8nuZje77/36/b73drMJSQiB1O/wY7Pv/Y7vff1W4AqAlNJDH8tpzKGRT6OEhsegwe8Va1qDPappHKJRJYRowGWCwDjBRvopGgsl5EJBW0lJz4VEEGH0Gn3wh/vMuckON5JFIlzCYR5JU2D/V63r+jo1HK4SLlcDxgGXTEAU8YiU5QKGh5DH6XA7Pu7+Cgf7anGk7zTaIt0IyH4IYj2/VwyBRJGAbGc6rtEm44bkYtyUdDW+5cwm6Sig19AkNkFRVl+qVC6JAEK+gj7KiXcevx7ATm81Nnv34ovgKUQUw5ojSBL21kIOPDOfmBIilZKMsECxYwbunVSGOz2lSFYSo6sqiYjVY8VpTAQQ4vn0sZU+SwJ6EG90fISNnTtxTnTickEQIVPULDw4aRHuS/suklUXbCmUjUUaFyWAVOUhFVhrkOp86q/Bs02v46TeDEVEl0tcDkh7D5UImaHkoDLvx1iQeh0RJr1hoaxyCrEN4yVAJ5URhqyMwMCG9g/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DDwTQK73yfS78ZTOcuogFEaCPmCQe+HWbOCkizvL7LuwtLkUrvwmHhJDAU+lx3D7UmleCJrKSciXoqFZUPnXUAAi4cykac5xq7OXYl5ahHG2yK9HGD3OkuZjjWEg4OwNAxllXBdeOU0rN0nkJVLujFM15KxoeBx3EmXDZZNTDywd+Y0/I7EediUX07BMI2j/mpNG/6qaVScwtQJVoVREaFA89L57Xip+92Y/58o4GTxUc8SlOcstxu3YrWqqpUjzb8oU0N0W5MAYyMlu569PYfwXMtmnNXbzBZgfJNqvBC1MY7ZeZR2VOasxG2euRy5vYaBp4nzm0ZdjzGAfTNCFx8yv4fyoDd7PsI/OvegKdIBXK5EaHkm1coPeG41r1o95MYpUFWTwa4YTufHRUDsLFIpuvSo4NrdR/dnb3sPYHPbhzimnzU7ZtKOSlYvaGB7w+5WczlqNbCtrt21iTPww6SbsSL9Rngo8aMo7SVBrBOqqBwrTpdslywNwzAqKZd/iBHRqbSvpX7PPrpDPuA7juPhJrSFuhFWItY9gLWKamMNk6jXM4taivOoB3pz0rW41jWF3KOp6V5K7NYpirI2enExYQTEE0IfC2k8RXwtsX5GIEzb8NE9g7ffRxca9o89NBfSHEnmzwnMik7EksAq8o97MQ7EL5uAEYjhn9lQqxL5MLve0SSbghAhKKyf2jTC+tw2XqTj4X/KtvDlFNnXzQAAAABJRU5ErkJggg=="
|
||||||
|
name: "Spotify"
|
||||||
|
description: "Listening is everything"
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
|
||||||
|
ListElement {
|
||||||
|
featured: false
|
||||||
|
communityId: "id9"
|
||||||
|
loaded: true
|
||||||
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfpSURBVHgBtVlJcxtFFH49M9plWfKGV1lOOHGJ4Eax6QYUKcr5BV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xw+Zdaj6MuLNnOh19vYJU4SkUqI1ANZ3xiXLy8H1FscjMpKiEXgENfef0qipnS/J167dcv5s5xaX/m+db2DSRveBohY3YWjoTBH/D3hTwhYLQL7CRbO/nKVDq1ae9yYQJv//tDCond0xvP4XCKCkIvIqN3mZVVqtWK6FPTtNt6R066xcf3N1dXUdPjrffI8YTnwqLQyvt8eTxekXfrgepGuM/xqd+/WtNrNzyhWckmntwJRcmjxpxOF0zPTp8l8ZeBKtaN9IJCPJaKv/H394anlqZnZO89W13iIN2YCU+rlPizS7zaKxKUp0jAbxMHM442jlnZY+wdgUsClVXoeEoQwjgHI835d5I/djxmtXnQbe/gzy6Sm5tqrVJb7rTqrbCd0Z/sBsSxZHgT+gaGTlR7WCpUlpsHF5afhC5BE0ENismStICWJNrNGPjydUxn10uF8kO7xFvG6B1nk5GxTIm1VuAswlvO2sgJYb6sYhkzgfdT0GCJYrH8c7ekW/EfbDrvnVt+CGwAAAAASUVORK5CYII="
|
||||||
|
name: "Dribbble"
|
||||||
|
description: "Open source platform to write and distribute decentralized applications."
|
||||||
|
members: 34
|
||||||
|
popularity: 4
|
||||||
|
available: true
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,7 +5,11 @@ QtObject {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property var communitiesModuleInst: communitiesModule
|
property var communitiesModuleInst: communitiesModule
|
||||||
property var curatedCommunitiesModel: root.communitiesModuleInst.curatedCommunities
|
|
||||||
|
// TODO: should be replaced with root.communitiesModuleInst.curatedCommunities
|
||||||
|
// when backend is ready
|
||||||
|
readonly property var curatedCommunitiesModel: CommunitiesPortalDummyModel {}
|
||||||
|
|
||||||
property var discordFileList: root.communitiesModuleInst.discordFileList
|
property var discordFileList: root.communitiesModuleInst.discordFileList
|
||||||
property var discordCategoriesModel: root.communitiesModuleInst.discordCategories
|
property var discordCategoriesModel: root.communitiesModuleInst.discordCategories
|
||||||
property var discordChannelsModel: root.communitiesModuleInst.discordChannels
|
property var discordChannelsModel: root.communitiesModuleInst.discordChannels
|
||||||
|
|
|
@ -0,0 +1,119 @@
|
||||||
|
import QtQuick 2.13
|
||||||
|
import QtQuick.Layouts 1.13
|
||||||
|
|
||||||
|
import StatusQ.Core 0.1
|
||||||
|
import StatusQ.Core.Theme 0.1
|
||||||
|
import StatusQ.Components 0.1
|
||||||
|
|
||||||
|
import utils 1.0
|
||||||
|
|
||||||
|
import SortFilterProxyModel 0.2
|
||||||
|
|
||||||
|
StatusScrollView {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
property var locale
|
||||||
|
property var model
|
||||||
|
property bool searchLayout: false
|
||||||
|
|
||||||
|
signal cardClicked(string communityId)
|
||||||
|
|
||||||
|
clip: false
|
||||||
|
|
||||||
|
QtObject {
|
||||||
|
id: d
|
||||||
|
|
||||||
|
// values from the design
|
||||||
|
readonly property int scrollViewTopMargin: 20
|
||||||
|
readonly property int subtitlePixelSize: 17
|
||||||
|
}
|
||||||
|
|
||||||
|
SortFilterProxyModel {
|
||||||
|
id: featuredModel
|
||||||
|
|
||||||
|
sourceModel: root.model
|
||||||
|
|
||||||
|
filters: ValueFilter {
|
||||||
|
roleName: "featured"
|
||||||
|
value: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SortFilterProxyModel {
|
||||||
|
id: popularModel
|
||||||
|
|
||||||
|
sourceModel: root.model
|
||||||
|
|
||||||
|
filters: ValueFilter {
|
||||||
|
roleName: "featured"
|
||||||
|
value: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: communityCardDelegate
|
||||||
|
|
||||||
|
StatusCommunityCard {
|
||||||
|
locale: root.locale
|
||||||
|
communityId: model.communityId
|
||||||
|
loaded: model.available
|
||||||
|
logo: model.icon
|
||||||
|
name: model.name
|
||||||
|
description: model.description
|
||||||
|
members: model.members
|
||||||
|
popularity: model.popularity
|
||||||
|
// <out of scope> categories: model.categories
|
||||||
|
|
||||||
|
onClicked: root.cardClicked(communityId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: contentColumn
|
||||||
|
|
||||||
|
StatusBaseText {
|
||||||
|
id: featuredLabel
|
||||||
|
visible: !root.searchLayout
|
||||||
|
Layout.topMargin: d.scrollViewTopMargin
|
||||||
|
text: qsTr("Featured")
|
||||||
|
font.weight: Font.Bold
|
||||||
|
font.pixelSize: d.subtitlePixelSize
|
||||||
|
color: Theme.palette.directColor1
|
||||||
|
}
|
||||||
|
|
||||||
|
GridLayout {
|
||||||
|
Layout.topMargin: root.searchLayout
|
||||||
|
? featuredLabel.height + contentColumn.spacing + featuredLabel.Layout.topMargin
|
||||||
|
: 0
|
||||||
|
columns: 3
|
||||||
|
columnSpacing: Style.current.padding
|
||||||
|
rowSpacing: Style.current.padding
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
model: root.searchLayout ? root.model : featuredModel
|
||||||
|
delegate: communityCardDelegate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
StatusBaseText {
|
||||||
|
visible: !root.searchLayout
|
||||||
|
Layout.topMargin: 20
|
||||||
|
text: qsTr("Popular")
|
||||||
|
font.weight: Font.Bold
|
||||||
|
font.pixelSize: d.subtitlePixelSize
|
||||||
|
color: Theme.palette.directColor1
|
||||||
|
}
|
||||||
|
|
||||||
|
GridLayout {
|
||||||
|
visible: !root.searchLayout
|
||||||
|
columns: 3
|
||||||
|
columnSpacing: Style.current.padding
|
||||||
|
rowSpacing: Style.current.padding
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
model: popularModel
|
||||||
|
delegate: communityCardDelegate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue