chore: fix storybook regressions
This commit is contained in:
parent
c0e9c28ff5
commit
77fa884a36
|
@ -10,7 +10,6 @@ int main(int argc, char *argv[])
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
#endif
|
#endif
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||||
QtWebEngine::initialize();
|
QtWebEngine::initialize();
|
||||||
QGuiApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
|
|
|
@ -20,10 +20,6 @@ Item {
|
||||||
{colorId: 19, segmentLength: 2}])
|
{colorId: 19, segmentLength: 2}])
|
||||||
}
|
}
|
||||||
|
|
||||||
function isCompressedPubKey() {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Utils.globalUtilsInst = this
|
Utils.globalUtilsInst = this
|
||||||
globalUtilsReady = true
|
globalUtilsReady = true
|
||||||
|
|
|
@ -22,7 +22,9 @@ SplitView {
|
||||||
contentWidth: parent.width
|
contentWidth: parent.width
|
||||||
|
|
||||||
languageStore: LanguageStore {
|
languageStore: LanguageStore {
|
||||||
readonly property string currentLanguage: "en"
|
property string currentLanguage: "en"
|
||||||
|
readonly property bool isDDMMYYDateFormat: true
|
||||||
|
readonly property bool is24hTimeFormat: true
|
||||||
|
|
||||||
readonly property ListModel languageModel: ListModel {
|
readonly property ListModel languageModel: ListModel {
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -31,6 +33,7 @@ SplitView {
|
||||||
shortName: "العربية"
|
shortName: "العربية"
|
||||||
flag: "🇸🇦"
|
flag: "🇸🇦"
|
||||||
state: 0
|
state: 0
|
||||||
|
selected: false
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
locale: "en"
|
locale: "en"
|
||||||
|
@ -38,11 +41,13 @@ SplitView {
|
||||||
shortName: "English"
|
shortName: "English"
|
||||||
flag: "🏴"
|
flag: "🏴"
|
||||||
state: 2
|
state: 2
|
||||||
|
selected: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeLanguage(locale) {
|
function changeLanguage(language) {
|
||||||
logs.logEvent("languageStore::changeLanguage", ["locale"], arguments)
|
logs.logEvent("languageStore::changeLanguage", ["language"], arguments)
|
||||||
|
currentLanguage = language
|
||||||
}
|
}
|
||||||
|
|
||||||
function setIsDDMMYYDateFormat(isDDMMYYDateFormat) {
|
function setIsDDMMYYDateFormat(isDDMMYYDateFormat) {
|
||||||
|
@ -56,7 +61,7 @@ SplitView {
|
||||||
|
|
||||||
currencyStore: QtObject {
|
currencyStore: QtObject {
|
||||||
property string currentCurrency: "usd"
|
property string currentCurrency: "usd"
|
||||||
property string currentCurrencySymbol: "usd"
|
property string currentCurrencySymbol: "$"
|
||||||
|
|
||||||
readonly property ListModel currenciesModel: ListModel {
|
readonly property ListModel currenciesModel: ListModel {
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -65,8 +70,8 @@ SplitView {
|
||||||
name: "US Dollars"
|
name: "US Dollars"
|
||||||
symbol: "$"
|
symbol: "$"
|
||||||
category: ""
|
category: ""
|
||||||
imageSource: "../../../../imports/shared/assets/twemoji/svg/1f1fa-1f1f8.svg"
|
imageSource: "../../assets/twemoji/svg/1f1fa-1f1f8.svg"
|
||||||
selected: false
|
selected: true
|
||||||
}
|
}
|
||||||
|
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -75,7 +80,7 @@ SplitView {
|
||||||
name: "British Pound"
|
name: "British Pound"
|
||||||
symbol: "£"
|
symbol: "£"
|
||||||
category: ""
|
category: ""
|
||||||
imageSource: "../../../../imports/shared/assets/twemoji/svg/1f1ec-1f1e7.svg"
|
imageSource: "../../assets/twemoji/svg/1f1ec-1f1e7.svg"
|
||||||
selected: false
|
selected: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ SplitView {
|
||||||
readonly property string stateType: Constants.startupState.welcome
|
readonly property string stateType: Constants.startupState.welcome
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPassword() {
|
function setPassword(password) {
|
||||||
logs.logEvent("StartupStore::setPassword", ["password"], arguments)
|
logs.logEvent("StartupStore::setPassword", ["password"], arguments)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,15 @@ SplitView {
|
||||||
logs.logEvent("StartupStore::doTertiaryAction")
|
logs.logEvent("StartupStore::doTertiaryAction")
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSelectedLoginAccountByIndex() {
|
function doQuaternaryAction() {
|
||||||
|
logs.logEvent("StartupStore::doQuaternaryAction")
|
||||||
|
}
|
||||||
|
|
||||||
|
function doQuinaryAction() {
|
||||||
|
logs.logEvent("StartupStore::doQuinaryAction")
|
||||||
|
}
|
||||||
|
|
||||||
|
function setSelectedLoginAccountByIndex(index) {
|
||||||
logs.logEvent("StartupStore::setSelectedLoginAccountByIndex", ["index"], arguments)
|
logs.logEvent("StartupStore::setSelectedLoginAccountByIndex", ["index"], arguments)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@ QtObject {
|
||||||
readonly property bool isDDMMYYDateFormat: localAccountSensitiveSettings.isDDMMYYDateFormat
|
readonly property bool isDDMMYYDateFormat: localAccountSensitiveSettings.isDDMMYYDateFormat
|
||||||
readonly property bool is24hTimeFormat: localAccountSensitiveSettings.is24hTimeFormat
|
readonly property bool is24hTimeFormat: localAccountSensitiveSettings.is24hTimeFormat
|
||||||
|
|
||||||
function changeLanguage(locale) {
|
function changeLanguage(language) {
|
||||||
root.languageModule.changeLanguage(locale)
|
root.languageModule.changeLanguage(language)
|
||||||
}
|
}
|
||||||
|
|
||||||
function setIsDDMMYYDateFormat(isDDMMYYDateFormat) {
|
function setIsDDMMYYDateFormat(isDDMMYYDateFormat) {
|
||||||
|
|
Loading…
Reference in New Issue