Giter VIP home page Giter VIP logo

code-collaborator's Introduction

Hi ๐Ÿ‘‹, I'm Thomas

Thomas' LinkedIn

code-collaborator's People

Contributors

dependabot[bot] avatar thomasmcdonald avatar

Watchers

 avatar  avatar

code-collaborator's Issues

Document saves on Cursor change event

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);
    }

Rework Room Generation

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.

Editor Customisation

Add a panel to the page that allows the user to edit:

  • Title
  • Syntax
  • Tab size
  • Theme
  • Keymap

Individual Cursors

Give each connected user a cursor to indicate to other users of typing.

Placeholder Text

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!"

Document CRUD

Provide CRUD functionality for the documents.
Possible solutions with DB:

  • Save the entire document object from the user each time its been edited.
  • Cache edits to be saved later in a batch
  • Save document to a txt file and save txt location in the DB.

Obviously these will be tested to find out the best solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.