Repository navigation
Desktop 内置 UI Studio,并统一界面架构与设计体系 - #139
Merged
Merged
Conversation
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.
UI Studio 原先需要通过 CLI 启动并在浏览器中使用。现在可从 Desktop 左侧「开发工具 → UI Studio」、Ctrl+9 或命令面板直接打开,无需添加或连接实例;编辑器随客户端离线打包,切换页面和实例时保留工程、选中项与撤销状态。 Studio 构建使用标准文件 URL 加载 Vite,兼容 Windows 盘符路径。
提取内部公共包
@sfmc-bds/ui,让 Desktop 与 Studio 共用 SnowUI 颜色/字体、Phosphor 图标及 Base UI 控件、选择器、菜单、对话框和提示。Studio 按 app/pages/components/lib/store/styles 分层,内嵌时跟随桌面主题;原工程格式、预览求值与 IndexedDB 数据模型继续复用。输入与确认操作改为应用内弹窗,适配 Electron。同步 changeset、桌面说明、架构文档与 CI 类型检查。公共界面代码沿用桌面的 AGPL 许可,Studio 静态资源包含许可证和源码入口;SDK 作者向 API 继续使用 ISC。
验证通过:
真实 Windows 安装/启动与 Minecraft 客户端尚未在本次环境验收。