This commit is contained in:
Danil Kovtonyuk 2022-04-22 13:05:56 +10:00
commit 44f31f8b9f
No known key found for this signature in database
GPG key ID: E72A919BF08C3746
402 changed files with 47865 additions and 0 deletions

View file

@ -0,0 +1,10 @@
// components
export * from './noteInjectors'
export * from './setupInjectors'
export * from './walletInjectors'
export * from './сontrolInjectors'
export * from './indicatorInjectors'
// modals
export * from './setupAccountInjectors'
export * from './recoverAccountInjectors'
export * from './showRecoveryKeyInjectors'

View file

@ -0,0 +1,10 @@
import { mapGetters, mapActions } from 'vuex'
export const indicatorMethods = {
...mapActions('encryptedNote', ['highlightNoteAccount', 'redirectToAccount'])
}
export const indicatorComputed = {
...mapGetters('metamask', ['currency']),
...mapGetters('encryptedNote', ['accounts', 'isSetupAccount', 'noteAccountBalance'])
}

View file

@ -0,0 +1,11 @@
import { mapActions, mapGetters, mapState } from 'vuex'
export const noteMethods = {
...mapActions('encryptedNote', ['checkExistAccount', 'highlightNoteAccount'])
}
export const noteComputed = {
...mapGetters('encryptedNote', ['isSetupAccount']),
...mapState('metamask', ['isInitialized', 'netId']),
...mapGetters('encryptedNote', ['isHighlightedNoteAccount'])
}

View file

@ -0,0 +1,7 @@
import { mapActions, mapGetters } from 'vuex'
export const recoverAccountMethods = mapActions('encryptedNote', ['clearState', 'recoverAccountFromKey'])
export const recoverAccountComputed = {
...mapGetters('encryptedNote', ['recoverAccountFromKeyRequest'])
}

View file

@ -0,0 +1,10 @@
import { mapActions, mapGetters } from 'vuex'
export const setupAccountMethods = {
...mapActions('notice', ['addNoticeWithInterval']),
...mapActions('encryptedNote', ['clearState', 'setupAccount'])
}
export const setupAccountComputed = {
...mapGetters('encryptedNote', ['setupAccountRequest'])
}

View file

@ -0,0 +1,20 @@
import { mapActions, mapGetters, mapState } from 'vuex'
export const setupMethods = {
...mapActions('loading', ['enable', 'disable']),
...mapActions('notice', ['addNoticeWithInterval']),
...mapActions('encryptedNote', [
'clearState',
'decryptNotes',
'setupAccount',
'recoverAccountFromKey',
'saveRecoveryKeyOnFile',
'recoverAccountFromChain'
])
}
export const setupComputed = {
...mapState('metamask', ['isInitialized', 'providerName']),
...mapGetters('metamask', ['isLoggedIn', 'isPartialSupport']),
...mapGetters('encryptedNote', ['isExistAccount', 'setupAccountRequest'])
}

View file

@ -0,0 +1,5 @@
import { mapActions } from 'vuex'
export const showRecoveryKeyMethods = {
...mapActions('notice', ['addNoticeWithInterval'])
}

View file

@ -0,0 +1,10 @@
import { mapGetters, mapState, mapActions } from 'vuex'
export const walletComputed = {
...mapState('metamask', ['ethAccount']),
...mapGetters('metamask', ['netId', 'isLoggedIn'])
}
export const walletActions = {
...mapActions('metamask', ['onLogOut'])
}

View file

@ -0,0 +1,19 @@
import { mapActions, mapGetters } from 'vuex'
export const controlMethods = {
...mapActions('notice', ['addNoticeWithInterval']),
...mapActions('encryptedNote', ['decryptNotes', 'removeAccount', 'enabledSaveFile', 'getRecoveryKey'])
}
export const controlComputed = {
...mapGetters('encryptedNote', ['isEnabledSaveFile', 'isSetupAccount'])
}
export const statisticComputed = {
...mapGetters('encryptedNote', ['statistic']),
...mapGetters('token', ['getSymbol'])
}
export const headerComputed = {
...mapGetters('encryptedNote', ['accounts'])
}