From 7e7a728a91bc970444d1bf1daf4c5d991b9a97f2 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Mon, 25 Mar 2019 20:17:47 +0200 Subject: [PATCH] Minor fixes --- app/package.json | 4 ++-- app/src/components/Post.js | 7 +++---- app/src/components/Topic.js | 3 +-- app/src/config/ipfsOptions.js | 7 +++++-- app/src/redux/sagas/orbitSaga.js | 4 ++-- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/package.json b/app/package.json index 864e606..7e13969 100644 --- a/app/package.json +++ b/app/package.json @@ -15,9 +15,9 @@ "orbit-db": "0.19.9", "orbit-db-keystore": "0.1.0", "prop-types": "15.7.2", - "react": "16.8.4", + "react": "16.8.5", "react-content-loader": "4.2.1", - "react-dom": "16.8.4", + "react-dom": "16.8.5", "react-markdown": "4.0.6", "react-redux": "6.0.1", "react-router-dom": "5.0.0", diff --git a/app/src/components/Post.js b/app/src/components/Post.js index abd8b39..264269b 100644 --- a/app/src/components/Post.js +++ b/app/src/components/Post.js @@ -11,7 +11,6 @@ import { Button, Divider, Grid, Icon, Label, Transition } from 'semantic-ui-reac import TimeAgo from 'react-timeago'; import UserAvatar from 'react-user-avatar'; import ReactMarkdown from 'react-markdown'; -import epochTimeConverter from '../helpers/EpochTimeConverter'; class Post extends Component { constructor(props) { @@ -177,9 +176,9 @@ class Post extends Component { {postData !== null && ( - ) } diff --git a/app/src/components/Topic.js b/app/src/components/Topic.js index 3d5625c..9c57686 100644 --- a/app/src/components/Topic.js +++ b/app/src/components/Topic.js @@ -8,7 +8,6 @@ import ContentLoader from 'react-content-loader'; import { Card } from 'semantic-ui-react'; import TimeAgo from 'react-timeago'; -import epochTimeConverter from '../helpers/EpochTimeConverter'; import { addPeerDatabase } from '../redux/actions/orbitActions'; class Topic extends Component { @@ -83,7 +82,7 @@ class Topic extends Component { {topicData !== null && ( ) } diff --git a/app/src/config/ipfsOptions.js b/app/src/config/ipfsOptions.js index ed1e642..e5c1d9f 100644 --- a/app/src/config/ipfsOptions.js +++ b/app/src/config/ipfsOptions.js @@ -8,14 +8,17 @@ const ipfsOptions = { Addresses: { Swarm: [ '/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star', - // Use local signal server (https://github.com/libp2p/js-libp2p-websocket-star-rendezvous) - // (e.g. rendezvous --port=9090 --host=127.0.0.1) + // Use local signaling server (see also rendezvous script in package.json) + // For more information: https://github.com/libp2p/js-libp2p-websocket-star-rendezvous '/ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star' ] } }, preload: { enabled: false + }, + init:{ + emptyRepo: true } }; diff --git a/app/src/redux/sagas/orbitSaga.js b/app/src/redux/sagas/orbitSaga.js index 80514be..74d6ad8 100644 --- a/app/src/redux/sagas/orbitSaga.js +++ b/app/src/redux/sagas/orbitSaga.js @@ -6,7 +6,7 @@ import { DRIZZLE_UTILS_SAGA_INITIALIZED } from '../actions/drizzleUtilsActions'; import { ADD_PEER_DATABASE, PEER_DATABASE_ADDED, DATABASES_NOT_READY, - IPFS_INITIALIZED, OPENING_PEER_DATABASE, + IPFS_INITIALIZED, UPDATE_PEERS } from '../actions/orbitActions'; @@ -73,7 +73,7 @@ function* addPeerDatabase(action) { } } -//Keeps track of connected pubsub peers in Redux store +//Keeps track of currently connected pubsub peers in Redux store (for debugging purposes) function* updatePeersState() { const orbit = yield select(state => state.orbit); if(orbit.ready){