These are chat archives for codexa/firetext

24th
Jun 2015
Daniel Huigens
@twiss
Jun 24 2015 18:16
So, I've started working on collaboration. See twiss/collaboration. The only UI there is so far is a green bar on the left to paragraphs you are editing, and a red bar next to paragraphs someone else is editing. Further I was planning to create a dialog with a copyable url to send to people, and maybe allow them to set a password too.
If you feel like helping you can. Also we could look into giving people a color (and name, if there is an API for that on Firefox OS, and icon, if there is space for that on mobile)
Josh Smith
@joshua-s
Jun 24 2015 18:19
That's awesome!
I'd love to help
Are you using any libraries for it?
Daniel Huigens
@twiss
Jun 24 2015 18:20
socket.js, to send data between browsers
that won't be enough, since we'll have to store that data on the server as well in case the document owner goes offline, but that's what I use so far. the server is a node.js thing on heroku, very simple so far, I'll push that as well later
and I plan to use sjcl, to encrypt the data we send between browsers
Daniel Huigens
@twiss
Jun 24 2015 18:47
Pushed the server to github. Also you can now push to it on heroku (same name there)
Josh Smith
@joshua-s
Jun 24 2015 19:59
Does heroku support that?
It'd be nice to have a webhook integration so heroku is always up-to-date
Daniel Huigens
@twiss
Jun 24 2015 20:11
Support what? socket.js? Yes, that works
Or you mean storing the data? There is a handful of available databases, but storing a lot of data might cost money. I haven't looked into it much yet
About webhooks, you'll probably want to push to heroku more often than to github, during development. We might want to create firetext-collab-server-dev on heroku for that, as well
Josh Smith
@joshua-s
Jun 24 2015 20:16
The messages got re-ordered
That sounds like a good idea: so we have dev and production server
Daniel Huigens
@twiss
Jun 24 2015 20:17
dev and prod, yes
or do you want three?
Josh Smith
@joshua-s
Jun 24 2015 20:18
Nope, I got my terminology skewed
Daniel Huigens
@twiss
Jun 24 2015 20:18
np :)
One note about the UI: we might want to distinguish between sharing as in sending by email, and sharing as in for collaboration
Josh Smith
@joshua-s
Jun 24 2015 20:21
Definitely
Daniel Huigens
@twiss
Jun 24 2015 20:22
Furthermore Google Drive also offers sharing as in publishing as html, but that might be out of scope at least for now
And that could also be implemented by another app using the Firefox OS sharing api
Josh Smith
@joshua-s
Jun 24 2015 20:23
Publishing as html?
Daniel Huigens
@twiss
Jun 24 2015 20:24
Yes, a menu item that gives you a url ending in /html instead of /edit and shows a static html version of the document which updates every 5 minutes
And doesn't have your name on it