2022-10-12 09:42:51 +00:00
|
|
|
|
import QtQuick 2.14
|
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
|
|
import AppLayouts.Onboarding.views 1.0
|
|
|
|
|
import AppLayouts.Onboarding.stores 1.0
|
|
|
|
|
|
|
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
|
|
LoginView {
|
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
|
|
startupStore: StartupStore {
|
|
|
|
|
readonly property QtObject startupModuleInst: QtObject {
|
2024-09-18 08:19:08 +00:00
|
|
|
|
readonly property int remainingAttempts: 5
|
|
|
|
|
|
2022-10-12 09:42:51 +00:00
|
|
|
|
signal accountLoginError
|
|
|
|
|
signal obtainingPasswordSuccess
|
|
|
|
|
signal obtainingPasswordError
|
|
|
|
|
|
|
|
|
|
readonly property ListModel loginAccountsModel: ListModel {
|
|
|
|
|
ListElement {
|
|
|
|
|
keycardCreatedAccount: false
|
|
|
|
|
colorId: 1
|
|
|
|
|
colorHash: "0xAB34"
|
|
|
|
|
username: "Bob"
|
|
|
|
|
thumbnailImage: ""
|
2024-09-18 08:19:08 +00:00
|
|
|
|
icon: ""
|
2022-10-12 09:42:51 +00:00
|
|
|
|
keyUid: "uid_1"
|
|
|
|
|
}
|
|
|
|
|
ListElement {
|
|
|
|
|
keycardCreatedAccount: false
|
|
|
|
|
colorId: 2
|
2024-09-18 08:19:08 +00:00
|
|
|
|
colorHash: "0xAB35"
|
2022-10-12 09:42:51 +00:00
|
|
|
|
username: "John"
|
|
|
|
|
thumbnailImage: ""
|
2024-09-18 08:19:08 +00:00
|
|
|
|
icon: ""
|
2022-10-12 09:42:51 +00:00
|
|
|
|
keyUid: "uid_2"
|
|
|
|
|
}
|
2024-05-13 08:05:53 +00:00
|
|
|
|
ListElement {
|
2024-09-18 08:19:08 +00:00
|
|
|
|
keycardCreatedAccount: false
|
2024-05-13 08:05:53 +00:00
|
|
|
|
colorId: 3
|
|
|
|
|
colorHash: "0xAB38"
|
|
|
|
|
username: "8️⃣6️⃣.eth"
|
|
|
|
|
thumbnailImage: ""
|
2024-09-18 08:19:08 +00:00
|
|
|
|
icon: ""
|
2024-05-13 08:05:53 +00:00
|
|
|
|
keyUid: "uid_4"
|
|
|
|
|
}
|
2024-09-18 08:19:08 +00:00
|
|
|
|
ListElement {
|
|
|
|
|
keycardCreatedAccount: true
|
|
|
|
|
colorId: 4
|
|
|
|
|
colorHash: "0xAB37"
|
|
|
|
|
username: "Very long username that should eventually elide on the right side"
|
|
|
|
|
thumbnailImage: ""
|
|
|
|
|
icon: ""
|
|
|
|
|
keyUid: "uid_3"
|
|
|
|
|
}
|
2022-10-12 09:42:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readonly property QtObject selectedLoginAccount: QtObject {
|
|
|
|
|
readonly property bool keycardCreatedAccount: false
|
2024-09-18 08:19:08 +00:00
|
|
|
|
readonly property int colorId: 3
|
2024-05-13 08:05:53 +00:00
|
|
|
|
readonly property string username: "8️⃣6️⃣.eth"
|
2022-10-12 09:42:51 +00:00
|
|
|
|
readonly property string thumbnailImage: ""
|
2024-09-18 08:19:08 +00:00
|
|
|
|
readonly property string keyUid: "uid_4"
|
|
|
|
|
readonly property string icon: ""
|
2022-10-12 09:42:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readonly property QtObject currentStartupState: QtObject {
|
|
|
|
|
readonly property string stateType: Constants.startupState.welcome
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-10 14:28:53 +00:00
|
|
|
|
function setPassword(password) {
|
2022-10-12 09:42:51 +00:00
|
|
|
|
logs.logEvent("StartupStore::setPassword", ["password"], arguments)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function doPrimaryAction() {
|
|
|
|
|
logs.logEvent("StartupStore::doPrimaryAction")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function doSecondaryAction() {
|
|
|
|
|
logs.logEvent("StartupStore::doSecondaryAction")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function doTertiaryAction() {
|
|
|
|
|
logs.logEvent("StartupStore::doTertiaryAction")
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-10 14:28:53 +00:00
|
|
|
|
function doQuaternaryAction() {
|
|
|
|
|
logs.logEvent("StartupStore::doQuaternaryAction")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function doQuinaryAction() {
|
|
|
|
|
logs.logEvent("StartupStore::doQuinaryAction")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setSelectedLoginAccountByIndex(index) {
|
2022-10-12 09:42:51 +00:00
|
|
|
|
logs.logEvent("StartupStore::setSelectedLoginAccountByIndex", ["index"], arguments)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
|
id: localAccountSettings
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
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=1080%3A313192
|