mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 19:18:53 +00:00
- implement the basic Onboarding UI skeleton and the Create Profile flows - adjust the PasswordView and EnterSeedPhrase views to the latest design - add the main OnboardingLayout and StatusPinInput pages to Storybook - change terminology app-wide: "Seed phrase" -> "Recovery phrase" - implement the Login flows (seed, sync, keycard) - amend the keycard flow sequences with separate (non) empty page Fixes #16719 Fixes #16742 Fixes #16743
54 lines
1.9 KiB
QML
54 lines
1.9 KiB
QML
import QtQml 2.15
|
|
|
|
import StatusQ.Core.Utils 0.1 as StatusQUtils
|
|
|
|
import AppLayouts.Onboarding.enums 1.0
|
|
|
|
QtObject {
|
|
readonly property QtObject d: StatusQUtils.QObject {
|
|
id: d
|
|
readonly property var onboardingModuleInst: onboardingModule
|
|
}
|
|
|
|
// keycard
|
|
readonly property int keycardState: d.onboardingModuleInst.keycardState // cf. enum Onboarding.KeycardState
|
|
readonly property int keycardRemainingPinAttempts: d.onboardingModuleInst.keycardRemainingPinAttempts
|
|
|
|
function setPin(pin: string) { // -> bool
|
|
return d.onboardingModuleInst.setPin(pin)
|
|
}
|
|
|
|
readonly property int addKeyPairState: d.onboardingModuleInst.addKeyPairState // cf. enum Onboarding.AddKeyPairState
|
|
function startKeypairTransfer() { // -> void
|
|
d.onboardingModuleInst.startKeypairTransfer()
|
|
}
|
|
|
|
// password
|
|
function getPasswordStrengthScore(password: string) { // -> int
|
|
return d.onboardingModuleInst.getPasswordStrengthScore(password)
|
|
}
|
|
|
|
// seedphrase/mnemonic
|
|
function validMnemonic(mnemonic: string) { // -> bool
|
|
return d.onboardingModuleInst.validMnemonic(mnemonic)
|
|
}
|
|
function getMnemonic() { // -> string
|
|
return d.onboardingModuleInst.mnemonic()
|
|
}
|
|
function mnemonicWasShown() { // -> void
|
|
d.onboardingModuleInst.mnemonicWasShown()
|
|
}
|
|
function removeMnemonic() { // -> void
|
|
d.onboardingModuleInst.removeMnemonic()
|
|
}
|
|
|
|
// sync
|
|
readonly property int syncState: d.onboardingModuleInst.syncState // cf. enum Onboarding.SyncState
|
|
function validateLocalPairingConnectionString(connectionString: string) { // -> bool
|
|
return d.onboardingModuleInst.validateLocalPairingConnectionString(connectionString)
|
|
}
|
|
function inputConnectionStringForBootstrapping(connectionString: string) { // -> void
|
|
d.onboardingModuleInst.inputConnectionStringForBootstrapping(connectionString)
|
|
}
|
|
}
|