2024-11-06 00:39:08 +01:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
|
|
|
import StatusQ.Core.Backpressure 0.1
|
|
|
|
|
|
|
|
import AppLayouts.Onboarding2.pages 1.0
|
|
|
|
import AppLayouts.Onboarding.enums 1.0
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
SyncProgressPage {
|
|
|
|
id: progressPage
|
|
|
|
anchors.fill: parent
|
2025-01-28 17:20:20 +01:00
|
|
|
syncState: ctrlState.currentValue
|
2024-11-06 00:39:08 +01:00
|
|
|
onRestartSyncRequested: {
|
|
|
|
console.warn("!!! RESTART SYNC REQUESTED")
|
2025-02-04 08:22:05 -05:00
|
|
|
ctrlState.currentIndex = ctrlState.indexOfValue(Onboarding.ProgressState.InProgress)
|
2024-11-06 00:39:08 +01:00
|
|
|
Backpressure.debounce(root, 2000, function() {
|
|
|
|
console.warn("!!! SIMULATION: SUCCESS")
|
2025-02-04 08:22:05 -05:00
|
|
|
ctrlState.currentIndex = ctrlState.indexOfValue(Onboarding.ProgressState.Success)
|
2024-11-06 00:39:08 +01:00
|
|
|
})()
|
|
|
|
}
|
|
|
|
onLoginToAppRequested: console.warn("!!! LOGIN TO APP REQUESTED")
|
|
|
|
onLoginWithSeedphraseRequested: console.warn("!!! LOGIN WITH SEEDPHRASE REQUESTED")
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
id: ctrlState
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
width: 300
|
2025-01-28 17:20:20 +01:00
|
|
|
textRole: "name"
|
|
|
|
valueRole: "value"
|
2025-02-04 08:22:05 -05:00
|
|
|
model: Onboarding.getModelFromEnum("ProgressState")
|
2024-11-06 00:39:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Onboarding
|
|
|
|
// status: good
|
|
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=221-23716&node-type=frame&m=dev
|
|
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=224-20891&node-type=frame&m=dev
|
|
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=221-23788&node-type=frame&m=dev
|