@@ -55,8 +61,8 @@ class Channels extends Component {
setViewType(0)}>
-
-
+ setViewType(1)}>
+
@@ -67,24 +73,30 @@ class Channels extends Component {
-
- { viewType === 0 && allChannels.map((channel, index) => (
- console.log('hi')}
- currentTicker={currentTicker}
- />
- ))
- }
- { viewType === 1 && allChannels.map((channel, index) => (
-
- card channel
-
- ))
- }
-
+ {
+ viewType === 0 &&
+
+ {
+ allChannels.map((channel, index) => (
+ {}}
+ currentTicker={currentTicker}
+ />
+ ))
+ }
+
+ }
+ { viewType === 1 &&
+
+ }
)
@@ -97,15 +109,21 @@ Channels.propTypes = {
channels: PropTypes.object.isRequired,
allChannels: PropTypes.array.isRequired,
+ openChannels: PropTypes.array.isRequired,
updateChannelSearchQuery: PropTypes.func.isRequired,
setViewType: PropTypes.func.isRequired,
+ setCurrentChannel: PropTypes.func.isRequired,
openChannelForm: PropTypes.func.isRequired,
ticker: PropTypes.object.isRequired,
currentTicker: PropTypes.object.isRequired,
- channelFormProps: PropTypes.object.isRequired
+ channelFormProps: PropTypes.object.isRequired,
+
+ network: PropTypes.object.isRequired,
+ fetchDescribeNetwork: PropTypes.func.isRequired,
+ identity_pubkey: PropTypes.string.isRequired
}
export default Channels
diff --git a/app/routes/channels/components/Channels.scss b/app/routes/channels/components/Channels.scss
index bd6c207e..dc552d74 100644
--- a/app/routes/channels/components/Channels.scss
+++ b/app/routes/channels/components/Channels.scss
@@ -1,9 +1,14 @@
@import '../../../variables.scss';
+.container.graphview {
+ background: $black;
+}
+
.search {
height: 75px;
padding: 2px 25px;
border-bottom: 1px solid $darkgrey;
+ background: $white;
.input {
display: inline-block;
diff --git a/app/routes/channels/containers/ChannelsContainer.js b/app/routes/channels/containers/ChannelsContainer.js
index 407c4ec4..9a1861a6 100644
--- a/app/routes/channels/containers/ChannelsContainer.js
+++ b/app/routes/channels/containers/ChannelsContainer.js
@@ -24,6 +24,8 @@ import { fetchPeers } from 'reducers/peers'
import { tickerSelectors } from 'reducers/ticker'
+import { fetchDescribeNetwork, setCurrentChannel } from '../../../reducers/network'
+
import Channels from '../components/Channels'
const mapDispatchToProps = {
@@ -39,17 +41,23 @@ const mapDispatchToProps = {
setPushAmount,
changeStep,
+ fetchPeers,
- fetchPeers
+ fetchDescribeNetwork,
+ setCurrentChannel
}
const mapStateToProps = state => ({
channels: state.channels,
+ openChannels: state.channels.channels,
channelform: state.channelform,
peers: state.peers,
ticker: state.ticker,
+ network: state.network,
+ identity_pubkey: state.info.data.identity_pubkey,
allChannels: channelsSelectors.allChannels(state),
+ activeChanIds: channelsSelectors.activeChanIds(state),
currentTicker: tickerSelectors.currentTicker(state),
channelFormHeader: channelFormSelectors.channelFormHeader(state),
channelFormProgress: channelFormSelectors.channelFormProgress(state),
diff --git a/package.json b/package.json
index fc27b684..dfa4ff29 100644
--- a/package.json
+++ b/package.json
@@ -213,7 +213,6 @@
"react-dom": "^15.6.1",
"react-hot-loader": "3.0.0-beta.6",
"react-inlinesvg": "^0.6.2",
- "react-input-autosize": "^2.0.1",
"react-modal": "^2.2.2",
"react-moment": "^0.6.0",
"react-redux": "^5.0.5",
@@ -222,6 +221,7 @@
"react-router-redux": "^5.0.0-alpha.6",
"react-svg": "^2.1.21",
"react-svg-morph": "^0.1.10",
+ "react-vis-force": "^0.3.1",
"react-websocket": "^1.1.7",
"redux": "^3.7.1",
"redux-electron-ipc": "^1.1.10",
diff --git a/yarn.lock b/yarn.lock
index 8d5ab8e0..35894bd7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2286,14 +2286,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.3, create-hmac@^1.1.4:
safe-buffer "^5.0.1"
sha.js "^2.4.8"
-create-react-class@^15.5.2:
- version "15.6.2"
- resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.2.tgz#cf1ed15f12aad7f14ef5f2dfe05e6c42f91ef02a"
- dependencies:
- fbjs "^0.8.9"
- loose-envify "^1.3.1"
- object-assign "^4.1.1"
-
create-react-class@^15.5.3:
version "15.5.3"
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.5.3.tgz#fb0f7cae79339e9a179e194ef466efa3923820fe"
@@ -2540,6 +2532,31 @@ currently-unhandled@^0.4.1:
dependencies:
array-find-index "^1.0.1"
+d3-collection@1:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2"
+
+d3-dispatch@1:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/d3-dispatch/-/d3-dispatch-1.0.3.tgz#46e1491eaa9b58c358fce5be4e8bed626e7871f8"
+
+d3-force@^1.0.2:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/d3-force/-/d3-force-1.1.0.tgz#cebf3c694f1078fcc3d4daf8e567b2fbd70d4ea3"
+ dependencies:
+ d3-collection "1"
+ d3-dispatch "1"
+ d3-quadtree "1"
+ d3-timer "1"
+
+d3-quadtree@1:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/d3-quadtree/-/d3-quadtree-1.0.3.tgz#ac7987e3e23fe805a990f28e1b50d38fcb822438"
+
+d3-timer@1:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-1.0.7.tgz#df9650ca587f6c96607ff4e60cc38229e8dd8531"
+
d@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f"
@@ -5586,7 +5603,7 @@ lodash.range@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d"
-lodash.reduce@^4.4.0:
+lodash.reduce@^4.4.0, lodash.reduce@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.reduce/-/lodash.reduce-4.6.0.tgz#f1ab6b839299ad48f784abbf476596f03b914d3b"
@@ -7128,13 +7145,6 @@ react-inlinesvg@^0.6.2:
httpplease "^0.16"
once "^1.4"
-react-input-autosize@^2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-2.0.1.tgz#e92190497b4026c2780ad0f2fd703c835ba03e33"
- dependencies:
- create-react-class "^15.5.2"
- prop-types "^15.5.8"
-
react-modal@^2.2.2:
version "2.2.4"
resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-2.2.4.tgz#a32483c3555bd7677f09bca65d82f51da3abcbc0"
@@ -7246,6 +7256,15 @@ react-transition-group@^1.2.0:
prop-types "^15.5.6"
warning "^3.0.0"
+react-vis-force@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/react-vis-force/-/react-vis-force-0.3.1.tgz#c7bc96a4e872409f5d4c0fa93fe89c94554d47b7"
+ dependencies:
+ d3-force "^1.0.2"
+ global "^4.3.0"
+ lodash.reduce "^4.6.0"
+ prop-types "^15.5.10"
+
react-websocket@^1.1.7:
version "1.1.7"
resolved "https://registry.yarnpkg.com/react-websocket/-/react-websocket-1.1.7.tgz#0a761f3de354d4731f55343456e03b1f6005b492"