From 12508224ac1a778b3fe5422109e5989c2c97d48a Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 24 Aug 2020 00:21:12 +0200 Subject: [PATCH] Split RPC (dejavu) into own nav item (#3494) * Split RPC (dejavu) into own nav item * RPC/Extrinsics icons * Split addressbook app * Update create path --- packages/apps-routing/src/addresses.ts | 20 ++ packages/apps-routing/src/extrinsics.ts | 2 +- packages/apps-routing/src/index.ts | 12 +- .../apps-routing/src/{toolbox.ts => rpc.ts} | 8 +- packages/apps-routing/src/signing.ts | 21 ++ .../apps/public/locales/ar/translation.json | 1 + .../apps/public/locales/en/app-accounts.json | 23 -- .../apps/public/locales/en/app-addresses.json | 22 ++ packages/apps/public/locales/en/app-rpc.json | 8 + .../en/{app-toolbox.json => app-signing.json} | 8 +- packages/apps/public/locales/en/index.json | 4 +- .../apps/public/locales/es/translation.json | 1 + .../apps/public/locales/ja/translation.json | 1 + .../apps/public/locales/pt/translation.json | 1 + .../apps/public/locales/ru/translation.json | 1 + packages/page-accounts/src/index.tsx | 11 - .../.skip-build | 0 .../.skip-npm | 0 .../{page-toolbox => page-addresses}/LICENSE | 0 packages/page-addresses/README.md | 1 + packages/page-addresses/package.json | 24 +++ .../src/Contacts/Address.tsx | 18 +- .../src/Contacts/index.tsx | 4 +- .../src/Contacts/modals/Create.tsx | 2 +- packages/page-addresses/src/index.tsx | 45 ++++ packages/page-addresses/src/translate.ts | 9 + packages/page-addresses/src/types.ts | 35 +++ packages/page-addresses/src/util.tsx | 65 ++++++ packages/page-rpc/.skip-build | 0 packages/page-rpc/.skip-npm | 0 packages/page-rpc/LICENSE | 201 ++++++++++++++++++ packages/{page-toolbox => page-rpc}/README.md | 0 .../{page-toolbox => page-rpc}/package.json | 2 +- .../src/Rpc/Account.tsx | 2 +- .../src/Rpc/Results.tsx | 2 +- .../src/Rpc/Selection.tsx | 2 +- .../src/Rpc/index.tsx | 2 +- packages/page-rpc/src/index.tsx | 40 ++++ packages/page-rpc/src/translate.ts | 9 + packages/page-signing/.skip-build | 0 packages/page-signing/.skip-npm | 0 packages/page-signing/LICENSE | 201 ++++++++++++++++++ packages/page-signing/README.md | 1 + packages/page-signing/package.json | 17 ++ .../src/Hash.tsx | 2 +- .../src/Sign.tsx | 2 +- .../src/Unlock.tsx | 2 +- .../src/Verify.tsx | 2 +- .../src/index.tsx | 27 +-- .../src/translate.ts | 4 +- packages/react-components/src/i18n/index.ts | 3 +- tsconfig.json | 8 +- yarn.lock | 41 +++- 53 files changed, 813 insertions(+), 104 deletions(-) create mode 100644 packages/apps-routing/src/addresses.ts rename packages/apps-routing/src/{toolbox.ts => rpc.ts} (74%) create mode 100644 packages/apps-routing/src/signing.ts create mode 100644 packages/apps/public/locales/en/app-addresses.json create mode 100644 packages/apps/public/locales/en/app-rpc.json rename packages/apps/public/locales/en/{app-toolbox.json => app-signing.json} (90%) rename packages/{page-toolbox => page-addresses}/.skip-build (100%) rename packages/{page-toolbox => page-addresses}/.skip-npm (100%) rename packages/{page-toolbox => page-addresses}/LICENSE (100%) create mode 100644 packages/page-addresses/README.md create mode 100644 packages/page-addresses/package.json rename packages/{page-accounts => page-addresses}/src/Contacts/Address.tsx (95%) rename packages/{page-accounts => page-addresses}/src/Contacts/index.tsx (97%) rename packages/{page-accounts => page-addresses}/src/Contacts/modals/Create.tsx (98%) create mode 100644 packages/page-addresses/src/index.tsx create mode 100644 packages/page-addresses/src/translate.ts create mode 100644 packages/page-addresses/src/types.ts create mode 100644 packages/page-addresses/src/util.tsx create mode 100644 packages/page-rpc/.skip-build create mode 100644 packages/page-rpc/.skip-npm create mode 100644 packages/page-rpc/LICENSE rename packages/{page-toolbox => page-rpc}/README.md (100%) rename packages/{page-toolbox => page-rpc}/package.json (91%) rename packages/{page-toolbox => page-rpc}/src/Rpc/Account.tsx (96%) rename packages/{page-toolbox => page-rpc}/src/Rpc/Results.tsx (94%) rename packages/{page-toolbox => page-rpc}/src/Rpc/Selection.tsx (97%) rename packages/{page-toolbox => page-rpc}/src/Rpc/index.tsx (88%) create mode 100644 packages/page-rpc/src/index.tsx create mode 100644 packages/page-rpc/src/translate.ts create mode 100644 packages/page-signing/.skip-build create mode 100644 packages/page-signing/.skip-npm create mode 100644 packages/page-signing/LICENSE create mode 100644 packages/page-signing/README.md create mode 100644 packages/page-signing/package.json rename packages/{page-toolbox => page-signing}/src/Hash.tsx (97%) rename packages/{page-toolbox => page-signing}/src/Sign.tsx (99%) rename packages/{page-toolbox => page-signing}/src/Unlock.tsx (97%) rename packages/{page-toolbox => page-signing}/src/Verify.tsx (98%) rename packages/{page-toolbox => page-signing}/src/index.tsx (67%) rename packages/{page-toolbox => page-signing}/src/translate.ts (72%) diff --git a/packages/apps-routing/src/addresses.ts b/packages/apps-routing/src/addresses.ts new file mode 100644 index 0000000000..b0950389c4 --- /dev/null +++ b/packages/apps-routing/src/addresses.ts @@ -0,0 +1,20 @@ +// Copyright 2017-2020 @polkadot/apps-routing authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +import { Route } from './types'; + +import Component from '@polkadot/app-addresses'; + +export default function create (t: (key: string, text: string, options: { ns: string }) => T): Route { + return { + Component, + display: { + needsApi: [] + }, + group: 'accounts', + icon: 'address-card', + name: 'addresses', + text: t('nav.addresses', 'Address book', { ns: 'apps-routing' }) + }; +} diff --git a/packages/apps-routing/src/extrinsics.ts b/packages/apps-routing/src/extrinsics.ts index 08c7b4e32e..defdc9567f 100644 --- a/packages/apps-routing/src/extrinsics.ts +++ b/packages/apps-routing/src/extrinsics.ts @@ -14,7 +14,7 @@ export default function create (t: (key: string, text: string, opti needsApi: [] }, group: 'developer', - icon: 'sync', + icon: 'envelope-open-text', name: 'extrinsics', text: t('nav.extrinsics', 'Extrinsics', { ns: 'apps-routing' }) }; diff --git a/packages/apps-routing/src/index.ts b/packages/apps-routing/src/index.ts index abb04d3e0b..cef22409dc 100644 --- a/packages/apps-routing/src/index.ts +++ b/packages/apps-routing/src/index.ts @@ -5,6 +5,7 @@ import { Routes } from './types'; import accounts from './accounts'; +import addresses from './addresses'; import claims from './claims'; import contracts from './contracts'; import council from './council'; @@ -16,13 +17,14 @@ import genericAsset from './generic-asset'; import js from './js'; import parachains from './parachains'; import poll from './poll'; +import rpc from './rpc'; import settings from './settings'; +import signing from './signing'; import society from './society'; import staking from './staking'; import storage from './storage'; import sudo from './sudo'; import techcomm from './techcomm'; -import toolbox from './toolbox'; import transfer from './transfer'; import treasury from './treasury'; @@ -30,6 +32,7 @@ export default function create (t: (key: string, text: string, opti return [ // dashboard(t), accounts(t), + addresses(t), explorer(t), claims(t), poll(t), @@ -45,9 +48,10 @@ export default function create (t: (key: string, text: string, opti contracts(t), storage(t), extrinsics(t), + rpc(t), + signing(t), sudo(t), - settings(t), - toolbox(t), - js(t) + js(t), + settings(t) ]; } diff --git a/packages/apps-routing/src/toolbox.ts b/packages/apps-routing/src/rpc.ts similarity index 74% rename from packages/apps-routing/src/toolbox.ts rename to packages/apps-routing/src/rpc.ts index 8d1d50d1f3..e97914935f 100644 --- a/packages/apps-routing/src/toolbox.ts +++ b/packages/apps-routing/src/rpc.ts @@ -4,7 +4,7 @@ import { Route } from './types'; -import Component from '@polkadot/app-toolbox'; +import Component from '@polkadot/app-rpc'; export default function create (t: (key: string, text: string, options: { ns: string }) => T): Route { return { @@ -13,8 +13,8 @@ export default function create (t: (key: string, text: string, opti needsApi: [] }, group: 'developer', - icon: 'tools', - name: 'toolbox', - text: t('nav.toolbox', 'Toolbox', { ns: 'apps-routing' }) + icon: 'network-wired', + name: 'rpc', + text: t('nav.rpc', 'RPC calls', { ns: 'apps-routing' }) }; } diff --git a/packages/apps-routing/src/signing.ts b/packages/apps-routing/src/signing.ts new file mode 100644 index 0000000000..cbd52dd6e1 --- /dev/null +++ b/packages/apps-routing/src/signing.ts @@ -0,0 +1,21 @@ +// Copyright 2017-2020 @polkadot/apps-routing authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +import { Route } from './types'; + +import Component from '@polkadot/app-signing'; + +export default function create (t: (key: string, text: string, options: { ns: string }) => T): Route { + return { + Component, + display: { + needsAccounts: true, + needsApi: [] + }, + group: 'developer', + icon: 'signature', + name: 'signing', + text: t('nav.signing', 'Sign and verify', { ns: 'apps-routing' }) + }; +} diff --git a/packages/apps/public/locales/ar/translation.json b/packages/apps/public/locales/ar/translation.json index 71311dd653..75556e1f1e 100644 --- a/packages/apps/public/locales/ar/translation.json +++ b/packages/apps/public/locales/ar/translation.json @@ -1024,6 +1024,7 @@ "nav.i18n": "I18n مترجم", "nav.js": "جافا سكريبت", "nav.parachains": "السلاسل الموازية", + "nav.rpc": "استدعاء إجراء مكالمة عن بُعد", "nav.settings": "الإعدادات", "nav.society": "المجتمع", "nav.staking": "الرهان", diff --git a/packages/apps/public/locales/en/app-accounts.json b/packages/apps/public/locales/en/app-accounts.json index d5a29892e2..250d3e0cf2 100644 --- a/packages/apps/public/locales/en/app-accounts.json +++ b/packages/apps/public/locales/en/app-accounts.json @@ -11,8 +11,6 @@ "Add account": "Add account", "Add account via Qr": "Add account via Qr", "Add an account via seed": "Add an account via seed", - "Add an address": "Add an address", - "Add contact": "Add contact", "Add identity judgment": "Add identity judgment", "Add multisig": "Add multisig", "Add proxied account": "Add proxied account", @@ -43,9 +41,7 @@ "Create a backup file for this account": "Create a backup file for this account", "Create and backup account": "Create and backup account", "Delegate": "Delegate", - "Delegate democracy vote": "Delegate democracy vote", "Delegate democracy votes": "Delegate democracy votes", - "Deposit": "Deposit", "Derive account from pair": "Derive account from pair", "Derive account via derivation path": "Derive account via derivation path", "Determines what cryptography will be used to create this account. Note that to validate on Polkadot, the session account must use \"ed25519\".": "Determines what cryptography will be used to create this account. Note that to validate on Polkadot, the session account must use \"ed25519\".", @@ -61,7 +57,6 @@ "For approvals outstanding approvers will be shown, for hashes that should be cancelled the first approver is required.": "For approvals outstanding approvers will be shown, for hashes that should be cancelled the first approver is required.", "For final approvals, the actual full call data is required to execute the transaction": "For final approvals, the actual full call data is required to execute the transaction", "Forget this account": "Forget this account", - "Forget this address": "Forget this address", "Full Legal Name": "Full Legal Name", "Future versions of the web-only interface will drop support for non-external accounts, much like the IPFS version.": "Future versions of the web-only interface will drop support for non-external accounts, much like the IPFS version.", "If the delegated account is currently voting in a referendum, the delegating vote and conviction will be added.": "If the delegated account is currently voting in a referendum, the delegating vote and conviction will be added.", @@ -88,7 +83,6 @@ "Multisig message with call (for final approval)": "Multisig message with call (for final approval)", "My On-Chain Name": "My On-Chain Name", "My accounts": "My accounts", - "My contacts": "My contacts", "Name given to this account. You can change it at any point in the future.": "Name given to this account. You can change it at any point in the future.", "Name given to this account. You can edit it. To use the account to validate or nominate, it is a good practice to append the function of the account in the name, e.g \"name_you_want - stash\".": "Name given to this account. You can edit it. To use the account to validate or nominate, it is a good practice to append the function of the account in the name, e.g \"name_you_want - stash\".", "Name given to this multisig. You can edit it at any later point in time.": "Name given to this multisig. You can edit it at any later point in time.", @@ -98,7 +92,6 @@ "No sub identities set.": "No sub identities set.", "One of more extensions has been detected in your browser, however no accounts has been injected.": "One of more extensions has been detected in your browser, however no accounts has been injected.", "Owned": "Owned", - "Paste here the address of the contact you want to add to your address book.": "Paste here the address of the contact you want to add to your address book.", "Pending call hashes": "Pending call hashes", "Please make sure to save this file in a secure location as it is required, together with your password, to restore your account.": "Please make sure to save this file in a secure location as it is required, together with your password, to restore your account.", "Provide judgement": "Provide judgement", @@ -119,15 +112,12 @@ "Save": "Save", "Save delegation": "Save delegation", "Save this backup file in a secure location. Additionally, the password associated with this account is needed together with this backup file in order to restore your account.": "Save this backup file in a secure location. Additionally, the password associated with this account is needed together with this backup file in order to restore your account.", - "Saved": "Saved", "Search for": "Search for", "Select a contact or paste the address you want to send funds to.": "Select a contact or paste the address you want to send funds to.", "Select the JSON key file that was downloaded when you created the account. This JSON file contains your private key encrypted with your password.": "Select the JSON key file that was downloaded when you created the account. This JSON file contains your private key encrypted with your password.", "Select the account you wish to recover into this account.": "Select the account you wish to recover into this account.", "Send": "Send", "Send funds": "Send funds", - "Send funds from this account": "Send funds from this account", - "Send funds to this address": "Send funds to this address", "Set Identity": "Set Identity", "Set Subs": "Set Subs", "Set on-chain identity": "Set on-chain identity", @@ -195,7 +185,6 @@ "Total amount of fund that will be reserved. These funds are returned when the identity is cleared": "Total amount of fund that will be reserved. These funds are returned when the identity is cleared", "Type here what you would like your address to contain. This tool will generate the keys and show the associated addresses that best match your search. You can use \"?\" as a wildcard for a character.": "Type here what you would like your address to contain. This tool will generate the keys and show the associated addresses that best match your search. You can use \"?\" as a wildcard for a character.", "Type the amount you want to transfer. Note that you can select the unit on the right e.g sending 1 milli is equivalent to sending 0.001.": "Type the amount you want to transfer. Note that you can select the unit on the right e.g sending 1 milli is equivalent to sending 0.001.", - "Type the name of your contact. This name will be used across all the apps. It can be edited later on.": "Type the name of your contact. This name will be used across all the apps. It can be edited later on.", "Type the password chosen at the account creation. It was used to encrypt your account's private key in the backup file.": "Type the password chosen at the account creation. It was used to encrypt your account's private key in the backup file.", "Undelegate": "Undelegate", "Unlock": "Unlock", @@ -214,10 +203,6 @@ "account restored": "account restored", "accounts": "accounts", "added proxy": "added proxy", - "address": "address", - "address created": "address created", - "address edited": "address edited", - "address forgotten": "address forgotten", "address {{index}}": "address {{index}}", "amount": "amount", "approval type": "approval type", @@ -228,7 +213,6 @@ "balances": "balances", "call data for final approval": "call data for final approval", "case sensitive": "case sensitive", - "contacts": "contacts", "conviction": "conviction", "created account": "created account", "created multisig": "created multisig", @@ -237,7 +221,6 @@ "delegated account": "delegated account", "delegating account": "delegating account", "delegating amount": "delegating amount", - "delegation": "delegation", "democracy vote delegation": "democracy vote delegation", "deposit": "deposit", "derivation path": "derivation path", @@ -245,13 +228,11 @@ "development seed": "development seed", "display name": "display name", "email": "email", - "exclude value": "exclude value", "existential deposit": "existential deposit", "filter by name or tags": "filter by name or tags", "https://example.com": "https://example.com", "identity": "identity", "include field": "include field", - "include value": "include value", "invalid/unknown registrar account": "invalid/unknown registrar account", "judgement": "judgement", "keypair crypto type": "keypair crypto type", @@ -262,10 +243,6 @@ "multisig name": "multisig name", "name": "name", "new account": "new account", - "new address": "new address", - "no accounts yet, create or import an existing": "no accounts yet, create or import an existing", - "no addresses saved yet, add any existing address": "no addresses saved yet, add any existing address", - "no tags": "no tags", "parent": "parent", "password": "password", "password (repeat)": "password (repeat)", diff --git a/packages/apps/public/locales/en/app-addresses.json b/packages/apps/public/locales/en/app-addresses.json new file mode 100644 index 0000000000..5fe54b551b --- /dev/null +++ b/packages/apps/public/locales/en/app-addresses.json @@ -0,0 +1,22 @@ +{ + "Add an address": "Add an address", + "Add contact": "Add contact", + "Forget this address": "Forget this address", + "My contacts": "My contacts", + "Paste here the address of the contact you want to add to your address book.": "Paste here the address of the contact you want to add to your address book.", + "Save": "Save", + "Type the name of your contact. This name will be used across all the apps. It can be edited later on.": "Type the name of your contact. This name will be used across all the apps. It can be edited later on.", + "address": "address", + "address created": "address created", + "address edited": "address edited", + "address forgotten": "address forgotten", + "balances": "balances", + "contacts": "contacts", + "filter by name or tags": "filter by name or tags", + "name": "name", + "new address": "new address", + "no addresses saved yet, add any existing address": "no addresses saved yet, add any existing address", + "send": "send", + "tags": "tags", + "transactions": "transactions" +} \ No newline at end of file diff --git a/packages/apps/public/locales/en/app-rpc.json b/packages/apps/public/locales/en/app-rpc.json new file mode 100644 index 0000000000..7cfd695506 --- /dev/null +++ b/packages/apps/public/locales/en/app-rpc.json @@ -0,0 +1,8 @@ +{ + "RPC calls": "RPC calls", + "Submit RPC call": "Submit RPC call", + "The actual JSONRPC module and function to make a call to.": "The actual JSONRPC module and function to make a call to.", + "call the selected endpoint": "call the selected endpoint", + "sign data from account": "sign data from account", + "with an index of": "with an index of" +} \ No newline at end of file diff --git a/packages/apps/public/locales/en/app-toolbox.json b/packages/apps/public/locales/en/app-signing.json similarity index 90% rename from packages/apps/public/locales/en/app-toolbox.json rename to packages/apps/public/locales/en/app-signing.json index cef4a96cab..525ebe7f37 100644 --- a/packages/apps/public/locales/en/app-toolbox.json +++ b/packages/apps/public/locales/en/app-signing.json @@ -4,12 +4,9 @@ "Detection on the input string to determine if it is hex or non-hex.": "Detection on the input string to determine if it is hex or non-hex.", "Hash data": "Hash data", "No": "No", - "RPC calls": "RPC calls", "Sign message": "Sign message", - "Submit RPC call": "Submit RPC call", "The account that signed the input": "The account that signed the input", "The account's password specified at the creation of this account.": "The account's password specified at the creation of this account.", - "The actual JSONRPC module and function to make a call to.": "The actual JSONRPC module and function to make a call to.", "The blake2b 256-bit hash of the actual input data.": "The blake2b 256-bit hash of the actual input data.", "The data that was signed. This is used in combination with the signature for the verification. It can either be hex or a string.": "The data that was signed. This is used in combination with the signature for the verification. It can either be hex or a string.", "The input data to hash. This can be either specified as a hex value (0x-prefix) or as a string.": "The input data to hash. This can be either specified as a hex value (0x-prefix) or as a string.", @@ -27,18 +24,15 @@ "Yes": "Yes", "You need to unlock this account to be able to sign data.": "You need to unlock this account to be able to sign data.", "account": "account", - "call the selected endpoint": "call the selected endpoint", "from the following data": "from the following data", "hex input data": "hex input data", "password": "password", "select the account you wish to sign data with": "select the account you wish to sign data with", - "sign data from account": "sign data from account", "sign the following data": "sign the following data", "signature crypto type": "signature crypto type", "signature of supplied data": "signature of supplied data", "the resulting hash is": "the resulting hash is", "the supplied signature": "the supplied signature", "using the following data": "using the following data", - "verify using address": "verify using address", - "with an index of": "with an index of" + "verify using address": "verify using address" } \ No newline at end of file diff --git a/packages/apps/public/locales/en/index.json b/packages/apps/public/locales/en/index.json index 89fff620df..7cfb3df7e1 100644 --- a/packages/apps/public/locales/en/index.json +++ b/packages/apps/public/locales/en/index.json @@ -1,5 +1,6 @@ [ "app-accounts.json", + "app-addresses.json", "app-claims.json", "app-contracts.json", "app-council.json", @@ -10,13 +11,14 @@ "app-js.json", "app-parachains.json", "app-poll.json", + "app-rpc.json", "app-settings.json", + "app-signing.json", "app-society.json", "app-staking.json", "app-storage.json", "app-sudo.json", "app-tech-comm.json", - "app-toolbox.json", "app-treasury.json", "apps-config.json", "apps-routing.json", diff --git a/packages/apps/public/locales/es/translation.json b/packages/apps/public/locales/es/translation.json index d90ce41cca..600ab68225 100644 --- a/packages/apps/public/locales/es/translation.json +++ b/packages/apps/public/locales/es/translation.json @@ -866,6 +866,7 @@ "nav.i18n": "Traductor I18n", "nav.js": "Javascript", "nav.parachains": "Parachains", + "nav.rpc": "llamadas RPC", "nav.settings": "Ajustes", "nav.society": "Sociedad", "nav.staking": "Participación", diff --git a/packages/apps/public/locales/ja/translation.json b/packages/apps/public/locales/ja/translation.json index 8001d0d4cc..e41748af47 100644 --- a/packages/apps/public/locales/ja/translation.json +++ b/packages/apps/public/locales/ja/translation.json @@ -459,6 +459,7 @@ "nav.i18n": "I18n Translator", "nav.js": "Javascript", "nav.parachains": "パラチェーン", + "nav.rpc": "RPCコール", "nav.settings": "設定", "nav.society": "ソサエティー", "nav.staking": "ステイキング", diff --git a/packages/apps/public/locales/pt/translation.json b/packages/apps/public/locales/pt/translation.json index c730fe19ba..cecaacd29b 100644 --- a/packages/apps/public/locales/pt/translation.json +++ b/packages/apps/public/locales/pt/translation.json @@ -871,6 +871,7 @@ "nav.i18n": "Tradutor I18n", "nav.js": "Javascript", "nav.parachains": "Parachains", + "nav.rpc": "Chamadas RPC", "nav.settings": "Configurações", "nav.society": "Sociedade", "nav.staking": "Participação", diff --git a/packages/apps/public/locales/ru/translation.json b/packages/apps/public/locales/ru/translation.json index a4e992fa88..2e22c7aaf8 100644 --- a/packages/apps/public/locales/ru/translation.json +++ b/packages/apps/public/locales/ru/translation.json @@ -883,6 +883,7 @@ "nav.i18n": "I18n Переводчик", "nav.js": "javascript", "nav.parachains": "Парачейны", + "nav.rpc": "RPC вызовы", "nav.settings": "Настройки", "nav.society": "Общество", "nav.staking": "Стейкинг", diff --git a/packages/page-accounts/src/index.tsx b/packages/page-accounts/src/index.tsx index 6cb52fba51..b4cb425a9b 100644 --- a/packages/page-accounts/src/index.tsx +++ b/packages/page-accounts/src/index.tsx @@ -13,7 +13,6 @@ import basicMd from './md/basic.md'; import { useTranslation } from './translate'; import useCounter from './useCounter'; import Accounts from './Accounts'; -import Contacts from './Contacts'; import Vanity from './Vanity'; export { useCounter }; @@ -31,10 +30,6 @@ function AccountsApp ({ basePath, onStatusChange }: Props): React.ReactElement

('My accounts') }, - { - name: 'contacts', - text: t('My contacts') - }, { name: 'vanity', text: t('Vanity generator') @@ -52,12 +47,6 @@ function AccountsApp ({ basePath, onStatusChange }: Props): React.ReactElement

- - - ", + "maintainers": [ + "Jaco Greeff " + ], + "contributors": [], + "license": "Apache-2.0", + "dependencies": { + "@babel/runtime": "^7.11.2", + "@polkadot/react-components": "0.55.0-beta.54", + "@polkadot/vanitygen": "^0.20.0-beta.1", + "detect-browser": "^5.1.1", + "file-saver": "^2.0.2" + }, + "devDependencies": { + "@testing-library/react": "^10.4.8", + "testcontainers": "^2.17.0" + } +} diff --git a/packages/page-accounts/src/Contacts/Address.tsx b/packages/page-addresses/src/Contacts/Address.tsx similarity index 95% rename from packages/page-accounts/src/Contacts/Address.tsx rename to packages/page-addresses/src/Contacts/Address.tsx index 53784ff15a..802e5d9a97 100644 --- a/packages/page-accounts/src/Contacts/Address.tsx +++ b/packages/page-addresses/src/Contacts/Address.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2020 @polkadot/app-accounts authors & contributors +// Copyright 2017-2020 @polkadot/app-addresses authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -8,12 +8,12 @@ import { ActionStatus } from '@polkadot/react-components/Status/types'; import React, { useCallback, useEffect, useState } from 'react'; import styled from 'styled-components'; +import Transfer from '@polkadot/app-accounts/Accounts/modals/Transfer'; import { AddressSmall, AddressInfo, Button, ChainLock, Icon, LinkExternal, Forget, Menu, Popup, Tags } from '@polkadot/react-components'; import { useApi, useCall } from '@polkadot/react-hooks'; import keyring from '@polkadot/ui-keyring'; import { BN_ZERO, formatNumber } from '@polkadot/util'; -import Transfer from '../Accounts/modals/Transfer'; import { useTranslation } from '../translate'; interface Props { @@ -195,12 +195,14 @@ function Address ({ address, className = '', filter, isFavorite, toggleFavorite /> -