Git Product home page Git Product logo

Comments (7)

curran avatar curran commented on September 28, 2024 1

It would be so awesome to have an open source integration we could all use!

FWIW I'm looking at using it in https://vizhub.com/ , which is kind of similar to replit. It's currently using CodeMirror 5 on JSON0 and is undergoing a rewrite from the ground up. The CM6+JSON1 integration will be core to the product and I'm really looking forward to getting it working.

from json1.

masad-frost avatar masad-frost commented on September 28, 2024

Hey Curran, I'm interested! Email me [email protected]

from json1.

masad-frost avatar masad-frost commented on September 28, 2024

FWIW we implemented https://github.com/ottypes/text-unicode

from json1.

curran avatar curran commented on September 28, 2024

Nice! What do you mean you implemented it? Do you mean you implemented a CodeMirror integration for text-unicode? If so, is the implementation open source? That is actually the core problem at hand here. Extending that to encompass json should be fairly simple (just wrapping in something that contains a path to the text-unicode value).

This is still something I'm looking to unlock, hopefully fairly soon. Will post here if I get it working!

from json1.

masad-frost avatar masad-frost commented on September 28, 2024

Yeah, we use text-unicode and codemirror.next at replit. By implemented I mean we use both and we have a translation layer from codemirror updates to text-unicode ops. Lemme see what I can open source because it's really intertwined with the rest of the codebase

from json1.

curran avatar curran commented on September 28, 2024

I made some solid progress here vizhub-core/codemirror-ot#35

Still WIP (no interactive demo to show for it yet) but lots of solid tests are passing now with the latest CodeMirror APIs. Leveraged json0-ot-diff for validation as well. The implementation supports both JSON0 and JSON1.

from json1.

curran avatar curran commented on September 28, 2024

I managed to get the CodeMirror 6 + JSON1 integration working.

Code is in codemirror-ot (plugin) and vizhub-codemirror (plugin use with interactive demo).

There is also a live demo of this component within a larger app (click "Open Editor"). This demo may go down at some point in the future.

If anyone has suggestions for improvement, please let me know!

from json1.

Related Issues (20)

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.