Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | import { nameFactory } from "src/helper/utils"; import Vue from "vue"; import Vuex from "vuex"; import createLogger from "vuex/dist/logger"; import contract from "./contract"; import { ContractActionName, ContractGetterName, ContractMutationName } from "./contract/names"; import settings from "./settings"; import { SettingsActionName, SettingsGetterName, SettingsMutationName } from "./settings/names"; import web3 from "./web3"; import { Web3ActionName, Web3GetterName, Web3MutationName } from "./web3/names"; export interface RootState { settings: typeof settings.state; web3: typeof web3.state; contract: typeof contract.state; route: any; } Vue.use(Vuex); const VuexStoreProperties = { modules: { settings, web3, contract }, plugins: process.env.DEV ? [createLogger()] : [] }; export default new Vuex.Store(VuexStoreProperties); export const ActionsName = { contract: nameFactory("contract", ContractActionName), settings: nameFactory("settings", SettingsActionName), web3: nameFactory("web3", Web3ActionName) }; export const MutationsName = { contract: nameFactory("contract", ContractMutationName), settings: nameFactory("settings", SettingsMutationName), web3: nameFactory("web3", Web3MutationName) }; export const GettersName = { contract: nameFactory("contract", ContractGetterName), settings: nameFactory("settings", SettingsGetterName), web3: nameFactory("web3", Web3GetterName) }; |