2021-10-01 15:58:36 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
|
2021-12-30 12:39:47 +00:00
|
|
|
import "../Profile/stores"
|
2021-10-15 08:00:45 +00:00
|
|
|
|
2021-10-01 15:58:36 +00:00
|
|
|
QtObject {
|
|
|
|
id: root
|
2021-11-22 11:08:09 +00:00
|
|
|
property var mainModuleInst: mainModule
|
2021-12-20 18:21:21 +00:00
|
|
|
property var aboutModuleInst: aboutModule
|
2022-01-05 15:11:26 +00:00
|
|
|
property var communitiesModuleInst: communitiesModule
|
2022-01-10 16:44:54 +00:00
|
|
|
property var observedCommunity: communitiesModuleInst.observedCommunity
|
2021-11-22 11:08:09 +00:00
|
|
|
|
2021-12-30 12:39:47 +00:00
|
|
|
property ProfileSectionStore profileSectionStore: ProfileSectionStore {
|
|
|
|
}
|
|
|
|
|
2022-01-05 15:50:03 +00:00
|
|
|
property EmojiReactions emojiReactionsModel: EmojiReactions {
|
|
|
|
}
|
|
|
|
|
2021-12-13 14:24:21 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// property var chatsModelInst: chatsModel
|
|
|
|
// Not Refactored Yet
|
|
|
|
// property var walletModelInst: walletModel
|
2021-11-22 11:08:09 +00:00
|
|
|
property var userProfileInst: userProfile
|
2021-11-04 18:55:21 +00:00
|
|
|
|
|
|
|
property var accounts: walletSectionAccounts.model
|
|
|
|
property var currentAccount: walletSectionCurrent
|
2021-12-13 14:24:21 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// property var profileModelInst: profileModel
|
2021-11-22 11:08:09 +00:00
|
|
|
|
2022-01-10 16:44:54 +00:00
|
|
|
property var contactStore: profileSectionStore.contactsStore
|
|
|
|
property bool hasAddedContacts: contactStore.myContactsModel.count > 0
|
|
|
|
|
2021-11-04 18:55:21 +00:00
|
|
|
property var assets: walletSectionAccountTokens.model
|
2021-12-09 12:53:40 +00:00
|
|
|
// property MessageStore messageStore: MessageStore { }
|
2021-11-02 14:11:35 +00:00
|
|
|
|
2021-12-08 21:20:43 +00:00
|
|
|
property real volume: !!localAccountSensitiveSettings ? localAccountSensitiveSettings.volume : 0.0
|
|
|
|
property bool notificationSoundsEnabled: !!localAccountSensitiveSettings ? localAccountSensitiveSettings.notificationSoundsEnabled : false
|
2021-11-15 15:15:21 +00:00
|
|
|
|
2021-11-02 14:11:35 +00:00
|
|
|
function createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
2022-01-07 14:23:18 +00:00
|
|
|
communitiesModuleInst.createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
2021-11-02 14:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function copyToClipboard(text) {
|
2022-01-10 16:44:54 +00:00
|
|
|
globalUtils.copyToClipboard(text)
|
2021-11-02 14:11:35 +00:00
|
|
|
}
|
2022-01-18 20:54:14 +00:00
|
|
|
|
|
|
|
function generateAlias(pk) {
|
|
|
|
return globalUtils.generateAlias(pk);
|
|
|
|
}
|
|
|
|
|
|
|
|
function generateIdenticon(pk) {
|
|
|
|
return globalUtils.generateIdenticon(pk);
|
|
|
|
}
|
2021-10-01 15:58:36 +00:00
|
|
|
}
|