2024-02-16 12:08:45 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQml 2.15
|
|
|
|
|
|
|
|
import StatusQ 0.1
|
|
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
|
2024-03-04 22:07:09 +00:00
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
2024-02-16 12:08:45 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import AppLayouts.Profile.helpers 1.0
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
ListModel {
|
|
|
|
id: accountsModel
|
|
|
|
|
2024-03-04 22:07:09 +00:00
|
|
|
ListElement { address: "1"; name: "Crypto Kitties" }
|
|
|
|
ListElement { address: "2"; name: "Status" }
|
|
|
|
ListElement { address: "3"; name: "Fun Stuff" }
|
|
|
|
ListElement { address: "4"; name: "Other Stuff" }
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
ListModel {
|
|
|
|
id: socialLinksModel
|
|
|
|
|
|
|
|
ListElement { uuid: "1"; text: "Twitter"; url: "https://twitter.com/status" }
|
|
|
|
ListElement { uuid: "2"; text: "Personal Site"; url: "https://status.im" }
|
|
|
|
ListElement { uuid: "3"; text: "Github"; url: "https://github.com" }
|
|
|
|
ListElement { uuid: "4"; text: "Youtube"; url: "https://youtube.com" }
|
|
|
|
ListElement { uuid: "5"; text: "Discord"; url: "https://discord.com" }
|
|
|
|
ListElement { uuid: "6"; text: "Telegram"; url: "https://t.me/status" }
|
|
|
|
ListElement { uuid: "7"; text: "Custom"; url: "https://status.im" }
|
|
|
|
}
|
|
|
|
|
2024-02-16 12:08:45 +00:00
|
|
|
ListModel {
|
|
|
|
id: accountsShowcaseModel
|
2024-02-20 13:26:56 +00:00
|
|
|
ListElement {
|
2024-03-04 22:07:09 +00:00
|
|
|
address: "1"
|
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.IdVerifiedContacts
|
|
|
|
order: 0
|
|
|
|
name: "name"
|
|
|
|
colorId: "colorId"
|
|
|
|
emoji: "emoji"
|
2024-02-20 13:26:56 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
2024-03-04 22:07:09 +00:00
|
|
|
address: "2"
|
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Contacts
|
|
|
|
order: 1
|
|
|
|
name: "name"
|
|
|
|
colorId: "colorId"
|
|
|
|
emoji: "emoji"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
address: "3"
|
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Contacts
|
|
|
|
order: 2
|
|
|
|
name: "name"
|
|
|
|
colorId: "colorId"
|
|
|
|
emoji: "emoji"
|
2024-02-20 13:26:56 +00:00
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
2024-03-04 22:07:09 +00:00
|
|
|
id: accounts13
|
|
|
|
ListElement { accountAddress: "1" }
|
|
|
|
ListElement { accountAddress: "3" }
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-04 22:07:09 +00:00
|
|
|
ListModel {
|
|
|
|
id: accounts3
|
|
|
|
ListElement { accountAddress: "3" }
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
2024-03-04 22:07:09 +00:00
|
|
|
id: accounts123
|
|
|
|
ListElement { accountAddress: "1" }
|
|
|
|
ListElement { accountAddress: "2" }
|
|
|
|
ListElement { accountAddress: "3" }
|
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: accounts14
|
|
|
|
ListElement { accountAddress: "1" }
|
|
|
|
ListElement { accountAddress: "4" }
|
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: collectiblesListModel
|
|
|
|
|
|
|
|
ListElement { item: 1 }
|
|
|
|
ListElement { item: 2 }
|
|
|
|
ListElement { item: 3 }
|
|
|
|
ListElement { item: 4 }
|
|
|
|
}
|
|
|
|
|
|
|
|
SortFilterProxyModel {
|
|
|
|
id: collectiblesModel
|
|
|
|
sourceModel: collectiblesListModel
|
|
|
|
proxyRoles: [
|
|
|
|
FastExpressionRole {
|
|
|
|
name: "ownership"
|
|
|
|
expression: {
|
|
|
|
if (index == 0) {
|
|
|
|
return accounts13
|
|
|
|
} else if (index == 1) {
|
|
|
|
return accounts3
|
|
|
|
} else if (index == 2) {
|
|
|
|
return accounts123
|
|
|
|
} else if (index == 3) {
|
|
|
|
return accounts14
|
|
|
|
}
|
|
|
|
return undefined
|
|
|
|
}
|
|
|
|
},
|
|
|
|
FastExpressionRole {
|
|
|
|
name: "uid"
|
|
|
|
expression: {
|
|
|
|
return index + 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
FastExpressionRole {
|
|
|
|
name: "name"
|
|
|
|
expression: {
|
|
|
|
return "Collectible " + (index + 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-04 22:07:09 +00:00
|
|
|
ListModel {
|
|
|
|
id: collectiblesShowcaseModel
|
2024-02-20 13:26:56 +00:00
|
|
|
ListElement {
|
2024-03-04 22:07:09 +00:00
|
|
|
uid: "1"
|
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.IdVerifiedContacts
|
|
|
|
order: 0
|
|
|
|
name: "name"
|
|
|
|
backgroundColor: "backgroundColor"
|
|
|
|
chainId: "chainId"
|
|
|
|
communityId: "communityId"
|
|
|
|
collectionName: "collectionName"
|
|
|
|
imageUrl: "imageUrl"
|
|
|
|
isLoading: "isLoading"
|
|
|
|
contractAddress: "contractAddress"
|
|
|
|
tokenId: "tokenId"
|
2024-02-20 13:26:56 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
2024-03-04 22:07:09 +00:00
|
|
|
uid: "2"
|
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Contacts
|
|
|
|
order: 2
|
|
|
|
name: "name"
|
|
|
|
backgroundColor: "backgroundColor"
|
|
|
|
chainId: "chainId"
|
|
|
|
communityId: "communityId"
|
|
|
|
collectionName: "collectionName"
|
|
|
|
imageUrl: "imageUrl"
|
|
|
|
isLoading: "isLoading"
|
|
|
|
contractAddress: "contractAddress"
|
|
|
|
tokenId: "tokenId"
|
2024-02-20 13:26:56 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
2024-03-04 22:07:09 +00:00
|
|
|
uid: "3"
|
|
|
|
showcaseVisibility: Constants.ShowcaseVisibility.Contacts
|
|
|
|
order: 1
|
|
|
|
name: "name"
|
|
|
|
backgroundColor: "backgroundColor"
|
|
|
|
chainId: "chainId"
|
|
|
|
communityId: "communityId"
|
|
|
|
collectionName: "collectionName"
|
|
|
|
imageUrl: "imageUrl"
|
|
|
|
isLoading: "isLoading"
|
|
|
|
contractAddress: "contractAddress"
|
|
|
|
tokenId: "tokenId"
|
2024-02-20 13:26:56 +00:00
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ProfileShowcaseModels {
|
|
|
|
id: showcaseModels
|
|
|
|
|
|
|
|
accountsSourceModel: accountsModel
|
|
|
|
accountsShowcaseModel: accountsShowcaseModel
|
|
|
|
|
|
|
|
collectiblesSourceModel: collectiblesModel
|
|
|
|
collectiblesShowcaseModel: collectiblesShowcaseModel
|
2024-03-08 09:27:45 +00:00
|
|
|
|
|
|
|
socialLinksSourceModel: socialLinksModel
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
|
2024-02-20 13:26:56 +00:00
|
|
|
ListModel {
|
|
|
|
id: comboBoxModel
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
text: "verified"
|
|
|
|
value: Constants.ShowcaseVisibility.IdVerifiedContacts
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
text: "contacts"
|
|
|
|
value: Constants.ShowcaseVisibility.Contacts
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
text: "all"
|
|
|
|
value: Constants.ShowcaseVisibility.Everyone
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
2024-02-20 13:26:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
component VisibilityComboBox: ComboBox {
|
|
|
|
model: comboBoxModel
|
2024-02-16 12:08:45 +00:00
|
|
|
|
|
|
|
textRole: "text"
|
|
|
|
valueRole: "value"
|
|
|
|
}
|
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
StackView {
|
|
|
|
id: stackView
|
2024-02-16 12:08:45 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.margins: 10
|
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
initialItem: collectiblesView
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: collectiblesView
|
|
|
|
Flickable {
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
contentWidth: grid.width
|
|
|
|
contentHeight: grid.height
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
clip: true
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Grid {
|
|
|
|
id: grid
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
rows: 3
|
|
|
|
columns: 4
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
spacing: 10
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
flow: Grid.TopToBottom
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Label {
|
|
|
|
text: "Backend models"
|
|
|
|
font.pixelSize: 22
|
|
|
|
padding: 10
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 300
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: accountsModel
|
|
|
|
label: "ACCOUNTS MODEL"
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 300
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: accountsShowcaseModel
|
|
|
|
label: "SHOWCASE MODEL"
|
|
|
|
roles: ["showcaseKey", "showcaseVisibility", "showcasePosition"]
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Label {
|
|
|
|
text: "Display models"
|
|
|
|
font.pixelSize: 22
|
|
|
|
padding: 10
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 420
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: showcaseModels.accountsVisibleModel
|
|
|
|
label: "IN SHOWCASE"
|
|
|
|
movable: true
|
|
|
|
roles: ["showcaseKey", "showcaseVisibility", "showcasePosition"]
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
onMoveRequested: {
|
|
|
|
showcaseModels.changeAccountPosition(from, to);
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
insetComponent: RowLayout {
|
|
|
|
readonly property var topModel: model
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
RoundButton {
|
|
|
|
text: "❌"
|
|
|
|
onClicked: showcaseModels.setAccountVisibility(
|
|
|
|
model.showcaseKey,
|
|
|
|
Constants.ShowcaseVisibility.NoOne)
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
VisibilityComboBox {
|
|
|
|
property bool completed: false
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
onCurrentValueChanged: {
|
|
|
|
if (!completed || topModel.index < 0)
|
|
|
|
return
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
showcaseModels.setAccountVisibility(
|
|
|
|
topModel.showcaseKey, currentValue)
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
currentIndex = indexOfValue(topModel.showcaseVisibility)
|
|
|
|
completed = true
|
|
|
|
}
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 420
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: showcaseModels.accountsHiddenModel
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
label: "HIDDEN"
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
roles: ["showcaseKey", "showcaseVisibility", "showcasePosition"]
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
insetComponent: Button {
|
|
|
|
text: "unhide"
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
onClicked:
|
|
|
|
showcaseModels.setAccountVisibility(
|
|
|
|
model.showcaseKey,
|
|
|
|
Constants.ShowcaseVisibility.IdVerifiedContacts)
|
|
|
|
}
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Label {
|
|
|
|
text: "Backend models"
|
|
|
|
font.pixelSize: 22
|
|
|
|
padding: 10
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 270
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: collectiblesModel
|
|
|
|
label: "COLLECTIBLES MODEL"
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 270
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: collectiblesShowcaseModel
|
|
|
|
label: "SHOWCASE MODEL"
|
|
|
|
roles: ["uid", "showcaseVisibility", "order"]
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Label {
|
|
|
|
text: "Display models"
|
|
|
|
font.pixelSize: 22
|
|
|
|
padding: 10
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 610
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: showcaseModels.collectiblesVisibleModel
|
|
|
|
label: "IN SHOWCASE"
|
|
|
|
movable: true
|
|
|
|
roles: ["showcaseKey", "showcaseVisibility", "showcasePosition"]
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
onMoveRequested: {
|
|
|
|
showcaseModels.changeCollectiblePosition(from, to);
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
insetComponent: RowLayout {
|
|
|
|
readonly property var topModel: model
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
RoundButton {
|
|
|
|
text: "❌"
|
|
|
|
onClicked: showcaseModels.setCollectibleVisibility(
|
|
|
|
model.showcaseKey,
|
|
|
|
Constants.ShowcaseVisibility.NoOne)
|
|
|
|
}
|
|
|
|
|
|
|
|
VisibilityComboBox {
|
|
|
|
property bool completed: false
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
onCurrentValueChanged: {
|
|
|
|
if (!completed || topModel.index < 0)
|
|
|
|
return
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
showcaseModels.setCollectibleVisibility(
|
|
|
|
topModel.showcaseKey, currentValue)
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
currentIndex = indexOfValue(topModel.showcaseVisibility)
|
|
|
|
completed = true
|
|
|
|
}
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
2024-03-08 09:27:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GenericListView {
|
|
|
|
width: 610
|
|
|
|
height: 300
|
|
|
|
|
|
|
|
model: showcaseModels.collectiblesHiddenModel
|
|
|
|
|
|
|
|
label: "HIDDEN"
|
|
|
|
|
|
|
|
roles: ["showcaseKey", "showcaseVisibility", "showcasePosition",
|
|
|
|
"accounts", "maxVisibility"]
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
insetComponent: Button {
|
|
|
|
text: "unhide"
|
|
|
|
|
|
|
|
onClicked:
|
|
|
|
showcaseModels.setCollectibleVisibility(
|
|
|
|
model.showcaseKey,
|
|
|
|
Constants.ShowcaseVisibility.IdVerifiedContacts)
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-08 09:27:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: webView
|
|
|
|
Flickable {
|
|
|
|
|
|
|
|
contentWidth: webGrid.implicitWidth
|
|
|
|
contentHeight: webGrid.implicitHeight
|
|
|
|
|
|
|
|
Grid {
|
|
|
|
id: webGrid
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
rows: 3
|
|
|
|
columns: 4
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
spacing: 10
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
flow: Grid.TopToBottom
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
Label {
|
|
|
|
text: "Backend models"
|
|
|
|
font.pixelSize: 22
|
|
|
|
padding: 10
|
|
|
|
}
|
|
|
|
|
|
|
|
GenericListView {
|
|
|
|
width: 300
|
|
|
|
height: 300
|
|
|
|
|
|
|
|
model: socialLinksModel
|
|
|
|
label: "SOCIAL LINKS MODEL"
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
|
|
|
width: 300
|
|
|
|
height: 300
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "Display models"
|
|
|
|
font.pixelSize: 22
|
|
|
|
padding: 10
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
GenericListView {
|
|
|
|
width: 610
|
|
|
|
height: 300
|
2024-02-16 12:08:45 +00:00
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
model: showcaseModels.socialLinksVisibleModel
|
|
|
|
|
|
|
|
label: "IN SHOWCASE"
|
|
|
|
movable: true
|
|
|
|
|
|
|
|
onMoveRequested: {
|
|
|
|
showcaseModels.changeSocialLinkPosition(from, to);
|
|
|
|
}
|
|
|
|
}
|
2024-02-16 12:08:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: `accounts in showcase: [${showcaseModels.visibleAccountsList}]`
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
readonly property string visibilities:
|
|
|
|
JSON.stringify(showcaseModels.accountsVisibilityMap)
|
|
|
|
|
|
|
|
text: `accounts visibilities: [${visibilities}]`
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
}
|
|
|
|
|
2024-03-08 09:27:45 +00:00
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Collectibles tab"
|
|
|
|
onClicked: {
|
|
|
|
stackView.replace(webView, collectiblesView)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Web tab"
|
|
|
|
onClicked: {
|
|
|
|
stackView.replace(collectiblesView, webView)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-16 12:08:45 +00:00
|
|
|
Button {
|
|
|
|
text: "SAVE"
|
2024-03-04 22:07:09 +00:00
|
|
|
//TODO: enable when showcaseModels backend APIs is integrated
|
|
|
|
enabled: false
|
2024-02-16 12:08:45 +00:00
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
const accountsToBeSaved = showcaseModels.accountsCurrentState()
|
|
|
|
const collectiblesToBeSaved = showcaseModels.collectiblesCurrentState()
|
|
|
|
|
|
|
|
accountsShowcaseModel.clear()
|
|
|
|
accountsShowcaseModel.append(accountsToBeSaved)
|
|
|
|
|
|
|
|
collectiblesShowcaseModel.clear()
|
|
|
|
collectiblesShowcaseModel.append(collectiblesToBeSaved)
|
|
|
|
}
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.margins: 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Models
|