orbitdb / orbit-db-control-center Goto Github PK
View Code? Open in Web Editor NEWUI for managing OrbitDB databases
UI for managing OrbitDB databases
Instead, it should catch the error and display something in the UI.
I have an application with OrbitDB using a remote IPFS daemon (actually, all running on the same machine).
I changed your code a bit such that I can connect to that local IPFS peer, because I wasn't able to
open my databases using your demoed web version.
import IpfsClient from 'ipfs-http-client'
// ...
// Start OrbitDB
export const initOrbitDB = async () => {
orbitdb = await OrbitDB.createInstance(IpfsClient('http://localhost:5001'))
return orbitdb
}
I configured CORS for my IPFS peer, such that it works without issues
After these changes I was able to open the database, and as you can see they are correctly detected.
The issue is that, even having douments stored, no entries are shown, when added programmatically in my application.
When adding documents to the OrbitDB, they should appear in the Control Center
I'm not sure that this is an issue with your useful viewer, or something I forgot to do on my apps side. In my innocent understanding, I expect an implicit replication of the data. Maybe you can help me on this.
Thanks in advance
I tried to get a more secure CSP working but failed due to dependencies insisting on inlining CSS and JS. Lookin' at you, glamor-css
I tried:
INLINE_RUNTIME_CHUNK=false
nonceEnabled
, hashEnabled
etcThis passes CI but we still have an issue with IPFS:
โ Cannot log after tests are done. Did you forget to wait for something async in your test?
Attempted to log "generating 2048-bit (rsa only) RSA keypair...".
20 | }
21 |
> 22 | export const getAllDatabases = async () => {
| ^
23 | if (!programs && orbitdb) {
24 | // Load programs database
25 | programs = await orbitdb.feed('network.programs', {
at console.log (node_modules/@jest/console/build/CustomConsole.js:185:10)
at initPeerId (node_modules/ipfs-core/src/components/storage.js:176:3)
at initRepo (node_modules/ipfs-core/src/components/storage.js:110:13)
at loadRepo (node_modules/ipfs-core/src/components/storage.js:86:17)
at Function.start (node_modules/ipfs-core/src/components/storage.js:54:41)
at Object.create (node_modules/ipfs-core/src/components/index.js:223:21)
at initIPFS (src/database/index.js:22:10)
(node:76) UnhandledPromiseRejectionWarning: Error: digest should be a Uint8Array
(Use `node --trace-warnings ...` to show where the warning was created)
(node:76) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:76) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
CircleCI received exit code 0
Originally posted by @aphelionz in #11 (comment)
Hi everyone.
Have you all thought about using web components in the ui: orbit-db-control-center?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.