2023-06-27 21:05:33 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2023-03-13 10:52:00 +00:00
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.views 1.0
|
2023-03-13 10:52:00 +00:00
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
2023-06-27 21:05:33 +00:00
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
2023-03-13 10:52:00 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
Logs { id: logs }
|
|
|
|
|
2023-06-27 21:05:33 +00:00
|
|
|
MintedTokensModel {
|
|
|
|
id: allTokensModel
|
|
|
|
}
|
|
|
|
|
|
|
|
SortFilterProxyModel {
|
|
|
|
id: filteredTokensModel
|
|
|
|
|
|
|
|
sourceModel: allTokensModel
|
|
|
|
|
|
|
|
filters: [
|
|
|
|
ValueFilter {
|
|
|
|
enabled: !allTokensRadioButton.checked
|
|
|
|
roleName: "tokenType"
|
|
|
|
value: onlyAssetsRadioButton.checked ? Constants.TokenType.ERC20
|
|
|
|
: Constants.TokenType.ERC721
|
|
|
|
},
|
|
|
|
IndexFilter {
|
|
|
|
enabled: nothingRadioButton.checked
|
|
|
|
minimumIndex: -1
|
|
|
|
maximumIndex: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-03-13 10:52:00 +00:00
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2023-06-26 11:48:45 +00:00
|
|
|
MintedTokensView {
|
2023-03-13 10:52:00 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 50
|
2023-06-27 21:05:33 +00:00
|
|
|
model: filteredTokensModel
|
2023-07-18 17:34:57 +00:00
|
|
|
isOwner: true
|
|
|
|
isAdmin: false
|
|
|
|
|
2023-06-27 21:05:33 +00:00
|
|
|
onItemClicked: logs.logEvent("MintedTokensView::itemClicked",
|
|
|
|
["tokenKey"], [tokenKey])
|
2023-03-13 10:52:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 150
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
2023-05-25 14:45:46 +00:00
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
RadioButton {
|
2023-06-27 21:05:33 +00:00
|
|
|
id: allTokensRadioButton
|
|
|
|
|
|
|
|
text: "Assets and collectibles"
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
|
|
|
id: onlyAssetsRadioButton
|
|
|
|
|
|
|
|
text: "Only assets"
|
2023-05-25 14:45:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
2023-06-27 21:05:33 +00:00
|
|
|
text: "Only collectibles"
|
2023-05-25 14:45:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
2023-06-27 21:05:33 +00:00
|
|
|
id: nothingRadioButton
|
|
|
|
|
|
|
|
text: "Nothing"
|
2023-05-25 14:45:46 +00:00
|
|
|
}
|
|
|
|
}
|
2023-03-13 10:52:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Views
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479136&t=zs22ORYUVDYpqubQ-1
|