Browse Source

Minor changes, up breeze

develop
Ezerous 4 years ago
parent
commit
32670456da
  1. 6
      packages/concordia-app/package.json
  2. BIN
      packages/concordia-app/src/assets/images/orbitdb_logo.png
  3. 1
      packages/concordia-app/src/assets/images/orbitdb_logo.svg
  4. 2
      packages/concordia-app/src/components/LoadingComponent.jsx
  5. 4
      packages/concordia-app/src/options/breezeOptions.js
  6. 16
      packages/concordia-app/src/redux/sagas/peerDbReplicationSaga.js
  7. 4
      packages/concordia-contracts/package.json
  8. 1165
      yarn.lock

6
packages/concordia-app/package.json

@ -8,8 +8,8 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"postinstall": "patch-package",
"analyze": "source-map-explorer 'build/static/js/*.js'",
"lint": "yarn run eslint --ext js,jsx . --format table"
"analyze": "react-scripts build && source-map-explorer 'build/static/js/*.js' --gzip",
"lint": "eslint --ext js,jsx . --format table"
},
"browserslist": {
"production": [
@ -24,7 +24,7 @@
]
},
"dependencies": {
"@ezerous/breeze": "~0.3.0",
"@ezerous/breeze": "~0.4.0",
"@ezerous/drizzle": "~0.4.0",
"@reduxjs/toolkit": "~1.4.0",
"@welldone-software/why-did-you-render": "^6.0.0-rc.1",

BIN
packages/concordia-app/src/assets/images/orbitdb_logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

1
packages/concordia-app/src/assets/images/orbitdb_logo.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

2
packages/concordia-app/src/components/LoadingComponent.jsx

@ -9,7 +9,7 @@ import '../assets/css/loading-component.css';
// Images
import ethereumLogo from '../assets/images/ethereum_logo.svg';
import ipfsLogo from '../assets/images/ipfs_logo.svg';
import orbitdbLogo from '../assets/images/orbitdb_logo.png';
import orbitdbLogo from '../assets/images/orbitdb_logo.svg';
import appLogo from '../assets/images/app_logo.png';
const LoadingComponent = (props) => {

4
packages/concordia-app/src/options/breezeOptions.js

@ -26,11 +26,11 @@ const breezeOptions = {
identityProvider: EthereumIdentityProvider,
databases: [
{
name: 'topics',
address: 'topics',
type: 'keyvalue',
},
{
name: 'posts',
address: 'posts',
type: 'keyvalue',
},
],

16
packages/concordia-app/src/redux/sagas/peerDbReplicationSaga.js

@ -2,10 +2,10 @@ import {
call, put, select, takeEvery,
} from 'redux-saga/effects';
import {
createOrbitDatabase,
ORBIT_DATABASE_READY,
ORBIT_DATABASE_REPLICATED,
ORBIT_DATABASE_WRITE,
addOrbitDB,
ORBIT_DB_READY,
ORBIT_DB_REPLICATED,
ORBIT_DB_WRITE,
} from '@ezerous/breeze/src/orbit/orbitActions';
import determineKVAddress from '../../orbit/orbitUtils';
import { FETCH_USER_DATABASE, UPDATE_ORBIT_DATA } from '../actions/peerDbReplicationActions';
@ -15,7 +15,7 @@ function* fetchUserDb({ orbit, userAddress }) {
orbit, dbName: 'topics', userAddress,
});
yield put(createOrbitDatabase(orbit, { name: peerDbAddress, type: 'keyvalue' }));
yield put(addOrbitDB({ address: peerDbAddress, type: 'keyvalue' }));
}
function* updateReduxState({ database }) {
@ -71,9 +71,9 @@ function* updateReduxState({ database }) {
function* peerDbReplicationSaga() {
yield takeEvery(FETCH_USER_DATABASE, fetchUserDb);
yield takeEvery(ORBIT_DATABASE_REPLICATED, updateReduxState);
yield takeEvery(ORBIT_DATABASE_READY, updateReduxState);
yield takeEvery(ORBIT_DATABASE_WRITE, updateReduxState);
yield takeEvery(ORBIT_DB_REPLICATED, updateReduxState);
yield takeEvery(ORBIT_DB_READY, updateReduxState);
yield takeEvery(ORBIT_DB_WRITE, updateReduxState);
}
export default peerDbReplicationSaga;

4
packages/concordia-contracts/package.json

@ -10,7 +10,7 @@
"_eslint": "yarn eslint . --format table",
"_solhint": "yarn solhint --formatter table contracts/*.sol test/*.sol",
"test": "yarn truffle test",
"migrate": "yarn truffle migrate --network develop"
"migrate": "yarn truffle migrate --network develop --reset"
},
"dependencies": {
"@openzeppelin/contracts": "~3.2.0",
@ -23,6 +23,6 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^4.2.0",
"solhint": "~3.2.0"
"solhint": "~3.3.2"
}
}

1165
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save