Comments (8)
Fiiiiine! 😄
Here's a work-in-progress PR #16. Seems to work but more testing is needed. It's been in the works for weeks, just haven't had the time to work on it actively, slowly getting there though.
@diasdavid wanna give it a spin and report back any problem?
from orbit-web.
Test version here: https://ipfs.io/ipfs/QmNzQaPoK9gmq9du6R3KcGNJRKvkjuf7MpgYV5qFVr16gt.
from orbit-web.
Wooooot! :D Just tested it. Chat seems fine, had two issues with images:
- drag and drop didn't work
- open after upload as attachment didn't work
from orbit-web.
Works on Safari mobile too \o/
from orbit-web.
Thanks @diasdavid for testing it! ❤️❤️ Any notes on connectivity or performance?
Will take a look at the file upload and drag & drop issues when I can. Anyone stumbling here and feeling like helping, figuring out the problems ^ would help a lot.
from orbit-web.
Hey. I just checked out feat/new-orbitdb
and ran it, Safari on Mac. Drag and Dropped an image in the chat window and it seemed to upload the image. However, I didn't "see" the image. I'm not sure what to expect though. I'm happy to help, just need some guidance.
I also noticed that assets/common.js
doesn't exist after doing nom run build
. The resulting index.html
file is referencing it though.
from orbit-web.
when i drag and drop a file/image, and then click on the resulting link, a js error occurs:
MessageStore.js:263 Uncaught TypeError: this.orbit.getFile(...).then is not a function
at Store.onLoadFile (MessageStore.js:263)
at EventEmitter.eventHandler (PublisherMethods.js:44)
at EventEmitter.emit (index.js:116)
at Function.trigger (PublisherMethods.js:63)
at PublisherMethods.js:74
this.orbit.getFile(...)
doesn't seem to be returning a Promise.
from orbit-web.
I changed the call to getFile
to:
var stream = this.orbit.getFile(hash)
if(asStream) {
callback(null, null, null, stream)
} else {
let buf = new Uint8Array(0)
stream.on('error', (err) => callback(err, null))
stream.on('data', (chunk) => {
const tmp = new Uint8Array(buf.length + chunk.length)
tmp.set(buf)
tmp.set(chunk, buf.length)
buf = tmp
})
stream.on('end', () => {
callback(null, buf)
})
}
but now it looks like the URI for the file is not correct. getting
File.js:79 Error: this dag node is a directory
at pull.collect (files.js:154)
at reduce.js:10
at drain.js:20
at map.js:19
at filter.js:17
at filter.js:17
at filter.js:17
at flatten.js:35
at drain (index.js:23)
at index.js:63
from orbit-web.
Related Issues (20)
- Add gesture navigation for mobile
- Improve highlight regex
- Too many messages in a single channel slows down the channel
- Known Issues and Roadmap
- Make the nickname placeholder more legible
- Change "Join Channel" text
- Have default joined channel on orbit.chat change weekly HOT 2
- Exit icon is not the global standard 'exit' standard
- Add text to homepage on orbit.chat HOT 4
- Certificate configured incorrectly HOT 4
- Loading orbit.chat using IPFS Companion browser extension creates redirect loop HOT 1
- Memory Leak HOT 1
- Please update to latest orbit-db HOT 3
- https://orbit.chat is down (name not resolvable) HOT 2
- web demo not working HOT 2
- Unnecessary redirect to HTTPS breaks local IPFS load HOT 3
- ERROR: Repository not found. HOT 1
- removed discord HOT 1
- orbit.chat does not work after insering nickname HOT 1
- `orbit.chat` page not opening
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbit-web.