文件名称:code-editor-demo:使用 React、Ace、Flux 和 Convergence 构建的代码编辑器模型
文件大小:477KB
文件格式:ZIP
更新时间:2024-08-12 18:29:15
react realtime code-editor convergence JavaScript
融合代码编辑器演示 该项目使用 、 和 Convergence 提供了一个协作代码编辑,用于持久性和实时协作。 注意:这只是一个演示,并不打算成为一个成熟的/真正的代码编辑器。 入门 克隆这个仓库 npm install 更新了public/code-editor-config.js的CONVERGENCE_URL以指向您的 Convergence 服务器。 npm start启动一个轻量级的 Web 服务器,用于在本地运行编辑器。 特征 正确解决冲突(尝试同时与两个用户编辑相同的代码) 用户状态(查看当前连接了哪些用户) 活动跟踪(每个远程用户的光标位置和高亮颜色编码)
【文件预览】:
code-editor-demo-master
----public()
--------manifest.json(306B)
--------index.html(2KB)
--------favicon()
--------code-editor-config.js(175B)
----src()
--------constants()
--------index.html(661B)
--------editorData.js(251B)
--------data.js(150B)
--------code-editor-config.js(128B)
--------stores()
--------color-util.js(165B)
--------utils.js(1KB)
--------components()
--------assets()
--------actions()
--------appDispatcher.js(103B)
--------sass()
--------index.js(450B)
----LICENSE(1KB)
----README.md(830B)
----.gitignore(317B)
----package-lock.json(1.31MB)
----package.json(2KB)