registry dapp: cleanup, support reverse entries (#3933)

* style fixes 

* registry dapp: show reverse events

* registry dapp: actions & reducers for isTestnet

* registry dapp: make Hash & Address components

* registry dapp: code style 

* registry dapp: bugfixes 🐛

* registry dapp: postTx helper

* registry dapp: refactor reducers

* registry dapp: use react-redux

* registry dapp: actions & reducers for reverse lookup

* registry dapp: reverse lookup component

* registry dapp: connect Address to redux

* registry dapp: de-DRY recordTypeSelect

In preparation for the next commit.

* registry dapp: support reverse lookup

* registry dapp: render reverse events

* registry dapp: show tx sender, add key prop

* registry dapp: link accounts to etherscan as well

* registry dapp: address style grumbles 💄

* registry dapp: address style grumbles 💄
This commit is contained in:
Jannis Redmann
2016-12-27 11:01:16 +01:00
committed by Gav Wood
parent 1ffc6ac58c
commit 002e8b00d4
33 changed files with 1177 additions and 351 deletions

View File

@@ -20,6 +20,10 @@ import lookupReducer from './Lookup/reducers.js';
import eventsReducer from './Events/reducers.js';
import namesReducer from './Names/reducers.js';
import recordsReducer from './Records/reducers.js';
import reverseReducer from './Reverse/reducers.js';
const isTestnetReducer = (state = null, action) =>
action.type === 'set isTestnet' ? action.isTestnet : state;
const contractReducer = (state = null, action) =>
action.type === 'set contract' ? action.contract : state;
@@ -31,6 +35,7 @@ const ownerReducer = (state = null, action) =>
action.type === 'set owner' ? action.owner : state;
const initialState = {
isTestnet: isTestnetReducer(undefined, { type: '' }),
accounts: accountsReducer(undefined, { type: '' }),
contacts: contactsReducer(undefined, { type: '' }),
contract: contractReducer(undefined, { type: '' }),
@@ -39,10 +44,12 @@ const initialState = {
lookup: lookupReducer(undefined, { type: '' }),
events: eventsReducer(undefined, { type: '' }),
names: namesReducer(undefined, { type: '' }),
records: recordsReducer(undefined, { type: '' })
records: recordsReducer(undefined, { type: '' }),
reverse: reverseReducer(undefined, { type: '' })
};
export default (state = initialState, action) => ({
isTestnet: isTestnetReducer(state.isTestnet, action),
accounts: accountsReducer(state.accounts, action),
contacts: contactsReducer(state.contacts, action),
contract: contractReducer(state.contract, action),
@@ -51,5 +58,6 @@ export default (state = initialState, action) => ({
lookup: lookupReducer(state.lookup, action),
events: eventsReducer(state.events, action),
names: namesReducer(state.names, action),
records: recordsReducer(state.records, action)
records: recordsReducer(state.records, action),
reverse: reverseReducer(state.reverse, action)
});