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", "test": "react-scripts test",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"postinstall": "patch-package", "postinstall": "patch-package",
"analyze": "source-map-explorer 'build/static/js/*.js'", "analyze": "react-scripts build && source-map-explorer 'build/static/js/*.js' --gzip",
"lint": "yarn run eslint --ext js,jsx . --format table" "lint": "eslint --ext js,jsx . --format table"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
@ -24,7 +24,7 @@
] ]
}, },
"dependencies": { "dependencies": {
"@ezerous/breeze": "~0.3.0", "@ezerous/breeze": "~0.4.0",
"@ezerous/drizzle": "~0.4.0", "@ezerous/drizzle": "~0.4.0",
"@reduxjs/toolkit": "~1.4.0", "@reduxjs/toolkit": "~1.4.0",
"@welldone-software/why-did-you-render": "^6.0.0-rc.1", "@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 // Images
import ethereumLogo from '../assets/images/ethereum_logo.svg'; import ethereumLogo from '../assets/images/ethereum_logo.svg';
import ipfsLogo from '../assets/images/ipfs_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'; import appLogo from '../assets/images/app_logo.png';
const LoadingComponent = (props) => { const LoadingComponent = (props) => {

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

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

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

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

4
packages/concordia-contracts/package.json

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