From 262169c8a42a29773a630ac3eb4aece41df5c17d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 24 Apr 2017 09:53:27 +0200 Subject: [PATCH] Add Vaults as dapp --- js/src/config/dappsViews.json | 15 +++++++++++++-- js/src/routes.js | 3 +-- js/src/views/Accounts/accounts.js | 18 +---------------- js/src/views/Vaults/index.js | 32 ++++++++++++++++++++++++++++++- js/src/views/Vaults/package.json | 19 ++++++++++++++++++ js/src/views/Vaults/parity.js | 21 ++++++++++++++++++++ js/src/views/index.js | 1 - 7 files changed, 86 insertions(+), 23 deletions(-) create mode 100644 js/src/views/Vaults/package.json create mode 100644 js/src/views/Vaults/parity.js diff --git a/js/src/config/dappsViews.json b/js/src/config/dappsViews.json index eb587d106..9d2c88f53 100644 --- a/js/src/config/dappsViews.json +++ b/js/src/config/dappsViews.json @@ -4,7 +4,7 @@ "url": "home", "src": "Home", "name": "Home", - "description": "Display a status of the node, recently accessed applications, accounts and news", + "description": "Display the status of the node, recently accessed applications, accounts and news", "author": "Parity Team ", "version": "2.0.0", "visible": true, @@ -15,7 +15,18 @@ "url": "status", "src": "Status", "name": "Status", - "description": "Display an overview of the node including settings, logs and connections", + "description": "Displays an overview of the node including settings, logs and connections", + "author": "Parity Team ", + "version": "2.0.0", + "visible": true, + "secure": true + }, + { + "id": "vaults", + "url": "vaults", + "src": "Vaults", + "name": "Vaults", + "description": "Allows the management of the Account Vaults, including creation, locking and account assignment", "author": "Parity Team ", "version": "2.0.0", "visible": true, diff --git a/js/src/routes.js b/js/src/routes.js index 0f7aacc47..1cd8f2eea 100644 --- a/js/src/routes.js +++ b/js/src/routes.js @@ -20,7 +20,7 @@ import { Contract, Contracts, Dapp, Dapps, Settings, SettingsBackground, SettingsParity, SettingsProxy, SettingsViews, Signer, - Vaults, Wallet, Web, WriteContract + Wallet, Web, WriteContract } from '~/views'; import builtinDapps from '~/config/dappsBuiltin.json'; import viewsDapps from '~/config/dappsViews.json'; @@ -61,7 +61,6 @@ const accountsRoutes = [ accountsHistory.add(params.address, 'account'); } }, - { path: '/vaults', component: Vaults }, { path: '/wallet/:address', component: Wallet, diff --git a/js/src/views/Accounts/accounts.js b/js/src/views/Accounts/accounts.js index 40bd31bf5..09e4e8475 100644 --- a/js/src/views/Accounts/accounts.js +++ b/js/src/views/Accounts/accounts.js @@ -20,13 +20,12 @@ import { uniq, isEqual, pickBy } from 'lodash'; import React, { Component, PropTypes } from 'react'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; -import { Link } from 'react-router'; import { bindActionCreators } from 'redux'; import HardwareStore from '~/mobx/hardwareStore'; import { CreateAccount, CreateWallet } from '~/modals'; import { Actionbar, ActionbarExport, ActionbarSearch, ActionbarSort, Button, Page, Tooltip } from '~/ui'; -import { AddIcon, KeyIcon } from '~/ui/Icons'; +import { AddIcon } from '~/ui/Icons'; import { setVisibleAccounts } from '~/redux/providers/personalActions'; import List from './List'; @@ -247,21 +246,6 @@ class Accounts extends Component { const { accounts } = this.props; const buttons = [ - -