Skip to content

Commit

Permalink
update ipfs api to resolve issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Apr 17, 2018
1 parent e1f5a50 commit d425786
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 58 deletions.
6 changes: 3 additions & 3 deletions packages/transmute-dashboard/src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AppBar from '../AppBar';

import Transmute from 'transmute-eventstore';

const ipfsAPI = require('ipfs-api');
// const ipfsAPI = require('ipfs-api');

let transmuteConfig = require('../../transmute-config');

Expand All @@ -24,9 +24,9 @@ class Home extends Component {
...transmuteConfig.ipfsConfig
}

let ipfs = ipfsAPI(config);
// let ipfs = ipfsAPI(config);

let ipfsAdapter = new Transmute.IpfsAdapter(ipfs);
let ipfsAdapter = new Transmute.IpfsAdapter(config);
let data = await ipfsAdapter.healthy();
console.log(data);

Expand Down
16 changes: 8 additions & 8 deletions packages/transmute-dashboard/src/components/Routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import {
import config from '../../okta_config';

import Home from '../Home';
// import Login from '../Auth/Login';
// import Register from '../Register';
// import Dashboard from '../Dashboard';
import Login from '../Auth/Login';
import Register from '../Register';
import Dashboard from '../Dashboard';

// import EventStoreFactoryPage from '../EventStoreFactoryPage';
// import EventStorePage from '../EventStorePage';
// import StreamModelPage from '../StreamModelPage';
import EventStoreFactoryPage from '../EventStoreFactoryPage';
import EventStorePage from '../EventStorePage';
import StreamModelPage from '../StreamModelPage';

function onAuthRequired({ history }) {
history.push('/login');
Expand All @@ -37,7 +37,7 @@ class Routes extends React.Component {
<Security auth={auth}>
<Switch>
<Route path="/" exact component={Home} />
{/* <Route
<Route
path="/login"
exact
render={() => <Login baseUrl={config.url} />}
Expand All @@ -58,7 +58,7 @@ class Routes extends React.Component {
<SecureRoute
path="/eventstore/:address/model"
component={StreamModelPage}
/> */}
/>
</Switch>
</Security>
);
Expand Down

0 comments on commit d425786

Please sign in to comment.