Git Product home page Git Product logo

fonto-crdt's People

Contributors

casoku avatar martinn1996 avatar qcllee avatar quentinlee5 avatar wanghaojiang1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fonto-crdt's Issues

Test offline support

When the network is offline, operations can be saved locally and send later through the network. When these operations are sent at a later time, the CRDTs should still converge

Merge blocks

D.O.D.

  • Blocks can be moved with a mergeBlocks function
  • Fix the ID's (Wang)

Move blocks

D.O.D.

  • Blocks can be moved with a moveBlock function

Refactor delete function Logoot

When deleting a node which has Childs, Logoot currently only sets an empty property to true.

This can lead to 2 different replicas, where nodes can differ in the following way:

{
        "id": {
          "int": 214,
          "site": "crdt2",
          "clock": 1
        },
        "value": null,
        "children": [
          ...
        ],
        "size": 2,
        "empty": true
      }
{
        "id": {
          "int": 214,
          "site": "crdt2",
          "clock": 1
        },
        "value": "o",
        "children": [
          ...
        ],
        "size": 2,
        "empty": true
      }

Where one has a value of "o" and one a value of null.

These are however expected to be the same

Test: Added functionality

Test the functionality of the added functionality of the CRDT:

  • Merge Blocks
  • Split Blocks
  • Insert Blocks
  • Delete Blocks
  • Insert text in blocks
  • Delete text in blocks
  • Convergence

Monkey tests

When multiple users perform multiple random operations, it should still converge

Add parent class for nodes

D.O.D.

  • Change current Node to CharacterNode
  • Create a parent Node Node and let CharacterNode extend from Node
  • Create a BlockNode which extends from 'Node'
  • Create a IntermediateNode which extends from 'Node'

Offline Support

Editor supports offline editing

  • Editor has offline button to simulate offline editing
  • Editor saves messages that has not been send yet
  • Merge block works when a user works offline
  • Split block works when a user works offline

Insert blocks

D.O.D.

  • Add insertBlock operation
  • Insert block after a block
  • Insert block before a block
  • Update insert of character based on new tree character

Test delays

When there are network delays, the CRDTs should still converge.

Split blocks

D.O.D.

  • Blocks can be moved with a splitBlock function

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.