Comments (7)
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.
Hey Curran, I'm interested! Email me [email protected]
from json1.
FWIW we implemented https://github.com/ottypes/text-unicode
from json1.
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.
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.
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.
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)
- Moving array element into subkey of later element HOT 5
- isNoop behaviour - should we strip embedded noops during processing? HOT 1
- Security: Disallow __proto__ (and others?)
- json1.type.compose took a long time HOT 6
- Compose does not preserve invertable operations HOT 6
- Apply should throw when path has out of bounds index (was: Composition and inserts in skipped position) HOT 4
- how can i diff 2 json HOT 2
- Python conversion HOT 4
- transformPosition edge case ? HOT 5
- "invalid JSON key" exception on makeInvertible HOT 3
- ot-json1 <-> JSON Patch (RFC 6902)
- `invert` and ShareDB HOT 1
- Question: how to work with data types that has a schema? HOT 6
- Computing a Diff HOT 3
- Typo in readme HOT 1
- Browser Build HOT 2
- The problem HOT 5
- Is it possible to provide a base op for object value copying HOT 1
- Hope to increase the resolution of conflicts that replaceOp at the same time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json1.