Browse Source

Removed pinning from new entries, up dependencies

develop
Ezerous 4 years ago
parent
commit
56cfa278c8
  1. 4
      packages/concordia-app/package.json
  2. 4
      packages/concordia-app/src/components/InitializationScreen/index.jsx
  3. 2
      packages/concordia-app/src/components/PostCreate/index.jsx
  4. 2
      packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/index.jsx
  5. 2
      packages/concordia-app/src/views/Register/PersonalInformationStep/index.jsx
  6. 4
      packages/concordia-app/src/views/Topic/TopicCreate/index.jsx
  7. 6
      packages/concordia-pinner/package.json
  8. 2
      packages/concordia-rendezvous/package.json
  9. 948
      yarn.lock

4
packages/concordia-app/package.json

@ -24,8 +24,8 @@
] ]
}, },
"dependencies": { "dependencies": {
"@ezerous/breeze": "~0.4.0", "@ezerous/breeze": "~0.5.0",
"@ezerous/drizzle": "~0.4.1", "@ezerous/drizzle": "~0.4.2",
"@ezerous/eth-identity-provider": "~0.1.2", "@ezerous/eth-identity-provider": "~0.1.2",
"@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",

4
packages/concordia-app/src/components/InitializationScreen/index.jsx

@ -94,7 +94,7 @@ const InitializationLoader = ({ children }) => {
); );
} }
if (ipfsStatus === breezeConstants.STATUS_INITIALIZING) { if (ipfsStatus === breezeConstants.STATUS_UNINITIALIZED || ipfsStatus === breezeConstants.STATUS_INITIALIZING) {
return ( return (
<CustomLoader <CustomLoader
title="Initializing IPFS..." title="Initializing IPFS..."
@ -118,7 +118,7 @@ const InitializationLoader = ({ children }) => {
); );
} }
if (orbitStatus === breezeConstants.STATUS_INITIALIZING) { if (orbitStatus === breezeConstants.STATUS_UNINITIALIZED || orbitStatus === breezeConstants.STATUS_INITIALIZING) {
const message = process.env.NODE_ENV === 'development' const message = process.env.NODE_ENV === 'development'
? 'If needed, please sign the transaction in MetaMask to create the databases.' ? 'If needed, please sign the transaction in MetaMask to create the databases.'
: 'Please sign the transaction in MetaMask to create the databases.'; : 'Please sign the transaction in MetaMask to create the databases.';

2
packages/concordia-app/src/components/PostCreate/index.jsx

@ -87,7 +87,7 @@ const PostCreate = (props) => {
postsDb postsDb
.put(contractPostId, { .put(contractPostId, {
[POST_CONTENT]: postContent, [POST_CONTENT]: postContent,
}, { pin: true }) })
.then(() => { .then(() => {
setPostContent(''); setPostContent('');
setPosting(false); setPosting(false);

2
packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/index.jsx

@ -112,7 +112,7 @@ const EditInformationModal = (props) => {
.map((keyValueToStore) => { .map((keyValueToStore) => {
if (keyValueToStore.value !== '') { if (keyValueToStore.value !== '') {
return userDb return userDb
.put(keyValueToStore.key, keyValueToStore.value, { pin: true }); .put(keyValueToStore.key, keyValueToStore.value);
} }
return userDb.del(keyValueToStore.key); return userDb.del(keyValueToStore.key);

2
packages/concordia-app/src/views/Register/PersonalInformationStep/index.jsx

@ -90,7 +90,7 @@ const PersonalInformationStep = (props) => {
keyValuesToStore keyValuesToStore
.reduce((acc, keyValueToStore) => acc .reduce((acc, keyValueToStore) => acc
.then(() => userDb .then(() => userDb
.put(keyValueToStore.key, keyValueToStore.value, { pin: true })), .put(keyValueToStore.key, keyValueToStore.value)),
Promise.resolve()) Promise.resolve())
.then(() => pushNextStep()) .then(() => pushNextStep())
.catch((reason) => { .catch((reason) => {

4
packages/concordia-app/src/views/Topic/TopicCreate/index.jsx

@ -71,11 +71,11 @@ const TopicCreate = (props) => {
const postsDb = Object.values(stores).find((store) => store.dbname === POSTS_DATABASE); const postsDb = Object.values(stores).find((store) => store.dbname === POSTS_DATABASE);
topicsDb topicsDb
.put(topicId, { [TOPIC_SUBJECT]: subjectInput }, { pin: true }) .put(topicId, { [TOPIC_SUBJECT]: subjectInput })
.then(() => postsDb .then(() => postsDb
.put(postId, { .put(postId, {
[POST_CONTENT]: contentInput, [POST_CONTENT]: contentInput,
}, { pin: true })) }))
.then(() => { .then(() => {
history.push(`/topics/${topicId}`); history.push(`/topics/${topicId}`);
}) })

6
packages/concordia-pinner/package.json

@ -16,18 +16,18 @@
"concordia-shared": "~0.1.0", "concordia-shared": "~0.1.0",
"esm": "~3.2.25", "esm": "~3.2.25",
"express": "^4.17.1", "express": "^4.17.1",
"ipfs": "~0.52.1", "ipfs": "~0.54.2",
"is-reachable": "^5.0.0", "is-reachable": "^5.0.0",
"level": "~6.0.1", "level": "~6.0.1",
"libp2p": "~0.30.0", "libp2p": "~0.30.0",
"libp2p-bootstrap": "~0.12.1", "libp2p-bootstrap": "~0.12.2",
"libp2p-gossipsub": "~0.8.0", "libp2p-gossipsub": "~0.8.0",
"libp2p-kad-dht": "~0.20.1", "libp2p-kad-dht": "~0.20.1",
"libp2p-mdns": "~0.15.0", "libp2p-mdns": "~0.15.0",
"libp2p-mplex": "~0.10.0", "libp2p-mplex": "~0.10.0",
"libp2p-noise": "~2.0.1", "libp2p-noise": "~2.0.1",
"libp2p-tcp": "~0.15.1", "libp2p-tcp": "~0.15.1",
"libp2p-webrtc-star": "~0.20.2", "libp2p-webrtc-star": "~0.21.1",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"orbit-db": "~0.26.0", "orbit-db": "~0.26.0",
"orbit-db-identity-provider": "~0.3.1", "orbit-db-identity-provider": "~0.3.1",

2
packages/concordia-rendezvous/package.json

@ -7,6 +7,6 @@
"start": "star-signal --port=9090 --host=127.0.0.1" "start": "star-signal --port=9090 --host=127.0.0.1"
}, },
"dependencies": { "dependencies": {
"libp2p-webrtc-star": "~0.20.5" "libp2p-webrtc-star": "~0.21.1"
} }
} }

948
yarn.lock

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