From 655449932547109dfbf53a244e7fe06e2d91c028 Mon Sep 17 00:00:00 2001 From: Breno Polanski Date: Tue, 3 Mar 2020 06:27:37 -0300 Subject: [PATCH] refactor: replace various lodash methods with native alternatives (#1759) --- .../App/AppSidemenu/AppSidemenuPlugins.vue | 2 +- .../App/AppSidemenu/AppSidemenuSettings.vue | 4 +- .../components/Input/InputAddress.vue | 4 +- .../components/Input/InputCurrency.vue | 4 +- .../components/Menu/MenuStep/MenuStep.vue | 7 ++-- .../components/Modal/ModalExportWallets.vue | 4 +- .../Passphrase/PassphraseVerification.vue | 4 +- .../PluginManager/PluginManagerSearchBar.vue | 2 +- .../PluginManager/PluginManagerSideMenu.vue | 2 +- .../PluginManager/PluginManagerTable.vue | 4 +- .../TransactionForm/TransactionForm.vue | 3 +- .../Transaction/TransactionModal.vue | 3 +- .../WalletDelegates/WalletDelegates.vue | 2 +- .../Wallet/WalletDetails/WalletDetails.vue | 2 +- .../components/Wallet/WalletSelection.vue | 4 +- .../Wallet/WalletSidebar/WalletSidebar.vue | 8 ++-- .../WalletSignVerify/WalletSignVerify.vue | 2 +- .../components/Wallet/WalletTable.vue | 4 +- .../WalletTransactions/WalletTransactions.js | 3 +- .../WalletTransactionsMultiSignature.js | 3 +- src/renderer/mixins/index.js | 2 +- src/renderer/models/base.js | 9 ++-- src/renderer/models/profile.js | 3 +- src/renderer/pages/Profile/ProfileAll.vue | 4 +- src/renderer/services/plugin-manager.js | 3 +- .../plugin-manager/adapters/npm-adapter.js | 2 +- .../plugin-manager/component/get-context.js | 2 +- .../sandbox/messaging-sandbox.js | 2 +- .../plugin-manager/setup/themes-setup.js | 6 +-- .../plugin-manager/setup/wallet-tabs-setup.js | 3 +- src/renderer/services/price-api.js | 4 +- src/renderer/services/price-api/coin-cap.js | 2 +- src/renderer/services/price-api/coin-gecko.js | 2 +- .../services/price-api/crypto-compare.js | 2 +- src/renderer/services/synchronizer.js | 4 +- src/renderer/services/synchronizer/wallets.js | 10 ++--- src/renderer/store/base.js | 4 +- src/renderer/store/index.js | 4 +- .../migrations/2.4.0 - fix letter avatars.js | 4 +- ...5.2 - add marketChartOptions to profile.js | 4 +- src/renderer/store/modules/profile.js | 6 +-- src/renderer/store/modules/transaction.js | 6 +-- src/renderer/store/modules/wallet.js | 22 ++++++---- .../store/plugins/vuex-persist-migrations.js | 5 +-- src/renderer/store/plugins/vuex-persist.js | 4 +- src/renderer/utils/index.js | 42 +++++++++++++++++++ 46 files changed, 135 insertions(+), 97 deletions(-) create mode 100644 src/renderer/utils/index.js diff --git a/src/renderer/components/App/AppSidemenu/AppSidemenuPlugins.vue b/src/renderer/components/App/AppSidemenu/AppSidemenuPlugins.vue index 6e08fa57fb..ec1220b436 100644 --- a/src/renderer/components/App/AppSidemenu/AppSidemenuPlugins.vue +++ b/src/renderer/components/App/AppSidemenu/AppSidemenuPlugins.vue @@ -30,7 +30,7 @@