init
This commit is contained in:
commit
44f31f8b9f
402 changed files with 47865 additions and 0 deletions
10
modules/account/injectors/index.js
Normal file
10
modules/account/injectors/index.js
Normal 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'
|
10
modules/account/injectors/indicatorInjectors.js
Normal file
10
modules/account/injectors/indicatorInjectors.js
Normal 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'])
|
||||
}
|
11
modules/account/injectors/noteInjectors.js
Normal file
11
modules/account/injectors/noteInjectors.js
Normal 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'])
|
||||
}
|
7
modules/account/injectors/recoverAccountInjectors.js
Normal file
7
modules/account/injectors/recoverAccountInjectors.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { mapActions, mapGetters } from 'vuex'
|
||||
|
||||
export const recoverAccountMethods = mapActions('encryptedNote', ['clearState', 'recoverAccountFromKey'])
|
||||
|
||||
export const recoverAccountComputed = {
|
||||
...mapGetters('encryptedNote', ['recoverAccountFromKeyRequest'])
|
||||
}
|
10
modules/account/injectors/setupAccountInjectors.js
Normal file
10
modules/account/injectors/setupAccountInjectors.js
Normal 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'])
|
||||
}
|
20
modules/account/injectors/setupInjectors.js
Normal file
20
modules/account/injectors/setupInjectors.js
Normal 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'])
|
||||
}
|
5
modules/account/injectors/showRecoveryKeyInjectors.js
Normal file
5
modules/account/injectors/showRecoveryKeyInjectors.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { mapActions } from 'vuex'
|
||||
|
||||
export const showRecoveryKeyMethods = {
|
||||
...mapActions('notice', ['addNoticeWithInterval'])
|
||||
}
|
10
modules/account/injectors/walletInjectors.js
Normal file
10
modules/account/injectors/walletInjectors.js
Normal 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'])
|
||||
}
|
19
modules/account/injectors/сontrolInjectors.js
Normal file
19
modules/account/injectors/сontrolInjectors.js
Normal 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'])
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue