thomasmcdonald / code-collaborator Goto Github PK
View Code? Open in Web Editor NEWCode Collaborator
Code Collaborator
Stop document from saving when the cursor changes.
Proposed Fix:
Sneaky If statement in the below function to check type isnt cursor before sending content to save.
sendData(type,message){
if(this.silent || this.isDocLoad) return;
this.socketService.sendData(type,this.document._roomID,message);
this.document._content = this.editor.getEditor().session.getDocument().$lines;
this.socketService.saveData(this.document);
}
Change room generator to server side so it can check if the room exists.
If the room exists it should then generate a different room that is available.
Routing directly to a document will crash the server if the particular document doesn't exist.
Steps to reproduce
Possible Fix
When joining document an attempting to retrieve data, first check if room exists if not then add a room for that particular route and send empty document. This should work out fine.
Add a panel to the page that allows the user to edit:
Give each connected user a cursor to indicate to other users of typing.
Add generic placeholder text that is visible before the user edits the document for the first time, basically show the below text when the document is empty.
"Write or paste code here then share. Collaboration is Live!"
Provide CRUD functionality for the documents.
Possible solutions with DB:
Obviously these will be tested to find out the best solution.
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.