实现多标签页协作编辑器 - 支持 Y.Map 和 Y.Array 的多实例编辑与监控#9
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: cmcxn <84500762+cmcxn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] 编写界面 拥有开启多个相同页面修改和监控
Y.Map
Y.Array 类型的值
实现多标签页协作编辑器 - 支持 Y.Map 和 Y.Array 的多实例编辑与监控
Sep 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
根据问题需求"编写界面 拥有开启多个相同页面修改和监控 Y.Map Y.Array 类型的值",实现了一个功能完整的多标签页协作编辑器。该编辑器允许用户在同一个应用中打开多个编辑器实例,每个实例都可以独立地修改和监控 Y.Map 和 Y.Array 数据结构。
主要功能
🎯 多标签页架构
📊 Y.Map 键值对编辑器
📋 Y.Array 数组编辑器
🔄 实时协作支持
技术实现
新增文件
更新文件
核心特性
界面展示
初始双标签页界面
展示了两个编辑器标签页,每个标签页包含完整的 Y.Map 和 Y.Array 编辑器。用户可以在不同标签页间切换,模拟多个用户或多个实例同时编辑的场景。
动态添加第三标签页
演示了动态添加新标签页的功能。用户可以无限制地添加新的编辑器实例,每个实例都连接到相同的 Y.js 文档,实现真正的多实例协作编辑。
使用方式
mvn gwt:devmode启动开发服务器这个实现完全满足了问题陈述的需求,提供了一个功能丰富、用户友好的多实例协作编辑环境。
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
repository.sonatype.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/yjs-gwt/yjs-gwt org.codehaus.plexus.classworlds.launcher.Launcher clean compile(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.