Repository navigation
Conversation
DLGrass
requested changes
Nov 22, 2026
DLGrass
left a comment
There was a problem hiding this comment.
有报错:
ERROR in ./src/containers/visual-extension-editor-modal.jsx
Module not found: Error: Can't resolve '../../reducers/modals' in 'E:\Bilup\scratch-gui\src\containers'
@ ./src/containers/visual-extension-editor-modal.jsx 7:0-67 14:26-52
@ ./src/components/gui/gui.jsx
@ ./src/containers/gui.jsx
@ ./src/playground/render-gui.jsx
@ ./src/playground/embed.jsx
ERROR in ./src/containers/visual-addon-editor-modal.jsx
Module not found: Error: Can't resolve '../../reducers/modals' in 'E:\Bilup\scratch-gui\src\containers'
@ ./src/containers/visual-addon-editor-modal.jsx 7:0-63 14:26-48
@ ./src/components/gui/gui.jsx
@ ./src/containers/gui.jsx
@ ./src/playground/render-gui.jsx
@ ./src/playground/embed.jsx
DLGrass
requested changes
Nov 22, 2026
DLGrass
left a comment
There was a problem hiding this comment.
仍然有报错(控制台):
The above error occurred in one of your React components:
in Unknown (created by GUIComponent)
in MediaQuery (created by GUIComponent)
in GUIComponent (created by Connect(GUIComponent))
in Connect(GUIComponent) (created by InjectIntl(Connect(GUIComponent)))
in InjectIntl(Connect(GUIComponent)) (created by GUI)
in GUI (created by Connect(GUI))
in Connect(GUI) (created by InjectIntl(Connect(GUI)))
in InjectIntl(Connect(GUI)) (created by CloudManager)
in CloudManager (created by Connect(CloudManager))
in Connect(CloudManager) (created by SBFileUploaderComponent)
in SBFileUploaderComponent (created by Connect(SBFileUploaderComponent))
in Connect(SBFileUploaderComponent) (created by InjectIntl(Connect(SBFileUploaderComponent)))
in InjectIntl(Connect(SBFileUploaderComponent)) (created by VMManager)
in VMManager (created by Connect(VMManager))
in Connect(VMManager) (created by VMListener)
in VMListener (created by Connect(VMListener))
in Connect(VMListener) (created by ProjectSaverComponent)
in ProjectSaverComponent (created by Connect(ProjectSaverComponent))
in Connect(ProjectSaverComponent) (created by TitledComponent)
in TitledComponent (created by Connect(TitledComponent))
in Connect(TitledComponent) (created by InjectIntl(Connect(TitledComponent)))
in InjectIntl(Connect(TitledComponent)) (created by SB3PostMessageComponent)
in SB3PostMessageComponent (created by Connect(SB3PostMessageComponent))
in Connect(SB3PostMessageComponent) (created by ProjectFetcherComponent)
in ProjectFetcherComponent (created by Connect(ProjectFetcherComponent))
in Connect(ProjectFetcherComponent) (created by InjectIntl(Connect(ProjectFetcherComponent)))
in InjectIntl(Connect(ProjectFetcherComponent)) (created by FontLoaderComponent)
in FontLoaderComponent (created by Connect(FontLoaderComponent))
in Connect(FontLoaderComponent) (created by FullScreenResizer)
in FullScreenResizer (created by Connect(FullScreenResizer))
in Connect(FullScreenResizer) (created by TWThemeManagerComponent)
in TWThemeManagerComponent (created by Connect(TWThemeManagerComponent))
in Connect(TWThemeManagerComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by RenderGUI)
in RenderGUI (created by Interface)
in div (created by Interface)
in div (created by Interface)
in Interface (created by Connect(Interface))
in Connect(Interface) (created by InjectIntl(Connect(Interface)))
in InjectIntl(Connect(Interface)) (created by PackagerIntegrationComponent)
in PackagerIntegrationComponent (created by InjectIntl(PackagerIntegrationComponent))
in InjectIntl(PackagerIntegrationComponent) (created by Connect(InjectIntl(PackagerIntegrationComponent)))
in Connect(InjectIntl(PackagerIntegrationComponent)) (created by StateManagerComponent)
in StateManagerComponent (created by Connect(StateManagerComponent))
in Connect(StateManagerComponent) (created by InjectIntl(Connect(StateManagerComponent)))
in InjectIntl(Connect(StateManagerComponent)) (created by ProjectMetaFetcherComponent)
in ProjectMetaFetcherComponent (created by Connect(ProjectMetaFetcherComponent))
in Connect(ProjectMetaFetcherComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by AppStateWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by AppStateWrapper)
in Provider (created by AppStateWrapper)
in AppStateWrapper
React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary. [react-dom.development.js:19527:1](webpack://GUI/node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/cjs/react-dom.development.js)
gui error Unhandled Error with action='Top Level App': throwException@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:32520:13
handleError@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:33592:21
performSyncWorkOnRoot@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:33341:20
scheduleUpdateOnFiber@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:32770:28
updateContainer@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:35955:15
./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/cjs/react-dom.development.js/legacyRenderSubtreeIntoContainer/<@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:36340:22
unbatchedUpdates@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:33485:12
legacyRenderSubtreeIntoContainer@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:36339:21
render@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:36422:10
render@http://localhost:8601/js/addon-settings~community~editor~embed~fullscreen~player.js:6654:54
./src/playground/editor.jsx@http://localhost:8601/js/editor.js:262:60
__webpack_require__@http://localhost:8601/js/editor.js:86:30
5@http://localhost:8601/js/editor.js:274:18
__webpack_require__@http://localhost:8601/js/editor.js:86:30
checkDeferredModules@http://localhost:8601/js/editor.js:47:23
GUI<@http://localhost:8601/js/editor.js:223:18
@http://localhost:8601/js/editor.js:226:10
Component stack:
in Unknown (created by GUIComponent)
in MediaQuery (created by GUIComponent)
in GUIComponent (created by Connect(GUIComponent))
in Connect(GUIComponent) (created by InjectIntl(Connect(GUIComponent)))
in InjectIntl(Connect(GUIComponent)) (created by GUI)
in GUI (created by Connect(GUI))
in Connect(GUI) (created by InjectIntl(Connect(GUI)))
in InjectIntl(Connect(GUI)) (created by CloudManager)
in CloudManager (created by Connect(CloudManager))
in Connect(CloudManager) (created by SBFileUploaderComponent)
in SBFileUploaderComponent (created by Connect(SBFileUploaderComponent))
in Connect(SBFileUploaderComponent) (created by InjectIntl(Connect(SBFileUploaderComponent)))
in InjectIntl(Connect(SBFileUploaderComponent)) (created by VMManager)
in VMManager (created by Connect(VMManager))
in Connect(VMManager) (created by VMListener)
in VMListener (created by Connect(VMListener))
in Connect(VMListener) (created by ProjectSaverComponent)
in ProjectSaverComponent (created by Connect(ProjectSaverComponent))
in Connect(ProjectSaverComponent) (created by TitledComponent)
in TitledComponent (created by Connect(TitledComponent))
in Connect(TitledComponent) (created by InjectIntl(Connect(TitledComponent)))
in InjectIntl(Connect(TitledComponent)) (created by SB3PostMessageComponent)
in SB3PostMessageComponent (created by Connect(SB3PostMessageComponent))
in Connect(SB3PostMessageComponent) (created by ProjectFetcherComponent)
in ProjectFetcherComponent (created by Connect(ProjectFetcherComponent))
in Connect(ProjectFetcherComponent) (created by InjectIntl(Connect(ProjectFetcherComponent)))
in InjectIntl(Connect(ProjectFetcherComponent)) (created by FontLoaderComponent)
in FontLoaderComponent (created by Connect(FontLoaderComponent))
in Connect(FontLoaderComponent) (created by FullScreenResizer)
in FullScreenResizer (created by Connect(FullScreenResizer))
in Connect(FullScreenResizer) (created by TWThemeManagerComponent)
in TWThemeManagerComponent (created by Connect(TWThemeManagerComponent))
in Connect(TWThemeManagerComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by RenderGUI)
in RenderGUI (created by Interface)
in div (created by Interface)
in div (created by Interface)
in Interface (created by Connect(Interface))
in Connect(Interface) (created by InjectIntl(Connect(Interface)))
in InjectIntl(Connect(Interface)) (created by PackagerIntegrationComponent)
in PackagerIntegrationComponent (created by InjectIntl(PackagerIntegrationComponent))
in InjectIntl(PackagerIntegrationComponent) (created by Connect(InjectIntl(PackagerIntegrationComponent)))
in Connect(InjectIntl(PackagerIntegrationComponent)) (created by StateManagerComponent)
in StateManagerComponent (created by Connect(StateManagerComponent))
in Connect(StateManagerComponent) (created by InjectIntl(Connect(StateManagerComponent)))
in InjectIntl(Connect(StateManagerComponent)) (created by ProjectMetaFetcherComponent)
in ProjectMetaFetcherComponent (created by Connect(ProjectMetaFetcherComponent))
in Connect(ProjectMetaFetcherComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by AppStateWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by AppStateWrapper)
in Provider (created by AppStateWrapper)
in AppStateWrapper [error-boundary.jsx:51:1](webpack://GUI/src/containers/error-boundary.jsx)
The above error occurred in one of your React components:
in Unknown (created by GUIComponent)
in MediaQuery (created by GUIComponent)
in GUIComponent (created by Connect(GUIComponent))
in Connect(GUIComponent) (created by InjectIntl(Connect(GUIComponent)))
in InjectIntl(Connect(GUIComponent)) (created by GUI)
in GUI (created by Connect(GUI))
in Connect(GUI) (created by InjectIntl(Connect(GUI)))
in InjectIntl(Connect(GUI)) (created by CloudManager)
in CloudManager (created by Connect(CloudManager))
in Connect(CloudManager) (created by SBFileUploaderComponent)
in SBFileUploaderComponent (created by Connect(SBFileUploaderComponent))
in Connect(SBFileUploaderComponent) (created by InjectIntl(Connect(SBFileUploaderComponent)))
in InjectIntl(Connect(SBFileUploaderComponent)) (created by VMManager)
in VMManager (created by Connect(VMManager))
in Connect(VMManager) (created by VMListener)
in VMListener (created by Connect(VMListener))
in Connect(VMListener) (created by ProjectSaverComponent)
in ProjectSaverComponent (created by Connect(ProjectSaverComponent))
in Connect(ProjectSaverComponent) (created by TitledComponent)
in TitledComponent (created by Connect(TitledComponent))
in Connect(TitledComponent) (created by InjectIntl(Connect(TitledComponent)))
in InjectIntl(Connect(TitledComponent)) (created by SB3PostMessageComponent)
in SB3PostMessageComponent (created by Connect(SB3PostMessageComponent))
in Connect(SB3PostMessageComponent) (created by ProjectFetcherComponent)
in ProjectFetcherComponent (created by Connect(ProjectFetcherComponent))
in Connect(ProjectFetcherComponent) (created by InjectIntl(Connect(ProjectFetcherComponent)))
in InjectIntl(Connect(ProjectFetcherComponent)) (created by FontLoaderComponent)
in FontLoaderComponent (created by Connect(FontLoaderComponent))
in Connect(FontLoaderComponent) (created by FullScreenResizer)
in FullScreenResizer (created by Connect(FullScreenResizer))
in Connect(FullScreenResizer) (created by TWThemeManagerComponent)
in TWThemeManagerComponent (created by Connect(TWThemeManagerComponent))
in Connect(TWThemeManagerComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by RenderGUI)
in RenderGUI (created by Interface)
in div (created by Interface)
in div (created by Interface)
in Interface (created by Connect(Interface))
in Connect(Interface) (created by InjectIntl(Connect(Interface)))
in InjectIntl(Connect(Interface)) (created by PackagerIntegrationComponent)
in PackagerIntegrationComponent (created by InjectIntl(PackagerIntegrationComponent))
in InjectIntl(PackagerIntegrationComponent) (created by Connect(InjectIntl(PackagerIntegrationComponent)))
in Connect(InjectIntl(PackagerIntegrationComponent)) (created by StateManagerComponent)
in StateManagerComponent (created by Connect(StateManagerComponent))
in Connect(StateManagerComponent) (created by InjectIntl(Connect(StateManagerComponent)))
in InjectIntl(Connect(StateManagerComponent)) (created by ProjectMetaFetcherComponent)
in ProjectMetaFetcherComponent (created by Connect(ProjectMetaFetcherComponent))
in Connect(ProjectMetaFetcherComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by AppStateWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by AppStateWrapper)
in Provider (created by AppStateWrapper)
in AppStateWrapper
React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary. [react-dom.development.js:19527:1](webpack://GUI/node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/cjs/react-dom.development.js)
gui error Unhandled Error with action='Top Level App': throwException@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:32520:13
handleError@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:33592:21
performSyncWorkOnRoot@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:33341:20
scheduleUpdateOnFiber@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:32770:28
updateContainer@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:35955:15
./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/cjs/react-dom.development.js/legacyRenderSubtreeIntoContainer/<@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:36340:22
unbatchedUpdates@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:33485:12
legacyRenderSubtreeIntoContainer@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:36339:21
render@http://localhost:8601/js/vendors~addon-settings~community~editor~embed~fullscreen~player.js:36422:10
render@http://localhost:8601/js/addon-settings~community~editor~embed~fullscreen~player.js:6654:54
./src/playground/editor.jsx@http://localhost:8601/js/editor.js:262:60
__webpack_require__@http://localhost:8601/js/editor.js:86:30
5@http://localhost:8601/js/editor.js:274:18
__webpack_require__@http://localhost:8601/js/editor.js:86:30
checkDeferredModules@http://localhost:8601/js/editor.js:47:23
GUI<@http://localhost:8601/js/editor.js:223:18
@http://localhost:8601/js/editor.js:226:10
Component stack:
in Unknown (created by GUIComponent)
in MediaQuery (created by GUIComponent)
in GUIComponent (created by Connect(GUIComponent))
in Connect(GUIComponent) (created by InjectIntl(Connect(GUIComponent)))
in InjectIntl(Connect(GUIComponent)) (created by GUI)
in GUI (created by Connect(GUI))
in Connect(GUI) (created by InjectIntl(Connect(GUI)))
in InjectIntl(Connect(GUI)) (created by CloudManager)
in CloudManager (created by Connect(CloudManager))
in Connect(CloudManager) (created by SBFileUploaderComponent)
in SBFileUploaderComponent (created by Connect(SBFileUploaderComponent))
in Connect(SBFileUploaderComponent) (created by InjectIntl(Connect(SBFileUploaderComponent)))
in InjectIntl(Connect(SBFileUploaderComponent)) (created by VMManager)
in VMManager (created by Connect(VMManager))
in Connect(VMManager) (created by VMListener)
in VMListener (created by Connect(VMListener))
in Connect(VMListener) (created by ProjectSaverComponent)
in ProjectSaverComponent (created by Connect(ProjectSaverComponent))
in Connect(ProjectSaverComponent) (created by TitledComponent)
in TitledComponent (created by Connect(TitledComponent))
in Connect(TitledComponent) (created by InjectIntl(Connect(TitledComponent)))
in InjectIntl(Connect(TitledComponent)) (created by SB3PostMessageComponent)
in SB3PostMessageComponent (created by Connect(SB3PostMessageComponent))
in Connect(SB3PostMessageComponent) (created by ProjectFetcherComponent)
in ProjectFetcherComponent (created by Connect(ProjectFetcherComponent))
in Connect(ProjectFetcherComponent) (created by InjectIntl(Connect(ProjectFetcherComponent)))
in InjectIntl(Connect(ProjectFetcherComponent)) (created by FontLoaderComponent)
in FontLoaderComponent (created by Connect(FontLoaderComponent))
in Connect(FontLoaderComponent) (created by FullScreenResizer)
in FullScreenResizer (created by Connect(FullScreenResizer))
in Connect(FullScreenResizer) (created by TWThemeManagerComponent)
in TWThemeManagerComponent (created by Connect(TWThemeManagerComponent))
in Connect(TWThemeManagerComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by RenderGUI)
in RenderGUI (created by Interface)
in div (created by Interface)
in div (created by Interface)
in Interface (created by Connect(Interface))
in Connect(Interface) (created by InjectIntl(Connect(Interface)))
in InjectIntl(Connect(Interface)) (created by PackagerIntegrationComponent)
in PackagerIntegrationComponent (created by InjectIntl(PackagerIntegrationComponent))
in InjectIntl(PackagerIntegrationComponent) (created by Connect(InjectIntl(PackagerIntegrationComponent)))
in Connect(InjectIntl(PackagerIntegrationComponent)) (created by StateManagerComponent)
in StateManagerComponent (created by Connect(StateManagerComponent))
in Connect(StateManagerComponent) (created by InjectIntl(Connect(StateManagerComponent)))
in InjectIntl(Connect(StateManagerComponent)) (created by ProjectMetaFetcherComponent)
in ProjectMetaFetcherComponent (created by Connect(ProjectMetaFetcherComponent))
in Connect(ProjectMetaFetcherComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlBridgeInner (created by InjectIntl(IntlBridgeInner))
in InjectIntl(IntlBridgeInner) (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by AppStateWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by AppStateWrapper)
in Provider (created by AppStateWrapper)
in AppStateWrapper
…eact tree); bindAll for canvas
…d), category-color titlebars, typed ports; fix palette filtering
Author
UI 重做 + 节点面板修复(15445ff)样式失效根因:CSS 是 CSS Modules(类名编译期哈希),而画布/面板 JSX 里写的是裸类名字符串——整张样式表从未匹配上,节点全部退化成纯文字堆叠。 UE 蓝图风格重做:
「节点放不出来」修复:
|
This branch has not been deployed
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.
功能说明
「工具」菜单新增两个可视化编辑器,UnrealEngine 蓝图风格的节点图编辑:
custom-plugins.js注册表(导入即用、持久化)核心能力
1. 节点图编辑(参考 UE 蓝图)
2. 节点目录(56 类,9 大分类)
事件(启动/绿旗/停止/广播/按键/角色点击/每帧/DOM/插件设置/作品改变)、流程控制(if/else/循环/遍历/break/continue/return/await 等待/try-catch/注释)、变量、运算(算术/比较/逻辑/三元/Math 函数/字符串操作/模板字符串/JSON/展开)、函数(定义/调用/表达式调用/箭头函数回调)、Scratch 交互(说/广播/变量读写/角色对象/舞台尺寸/计时器/克隆/回答)、DOM/UI(console/alert/prompt/query/样式修改/创建元素)、网络/存储/高级(fetch 异步/localStorage/定时器/随机/UUID/Promise/await)、扩展积木定义(opcode/文本/参数/子图逻辑)、插件 API(addon.tab/scratch/设置读写/等待元素/注入 CSS/msg 翻译)
★ 任意 JS 表达式/★ 任意 JS 语句节点——JS 能写的节点都能做3. 节点 ⇄ JS 双向转换
/* VE-GRAPH v1 ... */内嵌完整节点图存档4. 导入与下载
data:application/javascript:URL →markExtensionAsCustom+manuallyTrustExtension→vm.extensionManager.loadExtensionURL(与「自定义扩展」加载入口同链路)customPlugins.add(manifest, code, true)(走仓库现有自定义插件注册表,localStorage 持久化、设置页可管理)文件名.js变更文件
src/lib/visual-node-engine/(5 新文件)src/components/visual-editor/(5 新文件)src/containers/visual-*-editor-modal.jsx(2 新)src/reducers/modals.jssrc/components/menu-bar/menu-bar.jsxsrc/components/gui/gui.jsxsrc/lib/tw-translations/local-messages.js对现有代码零行为改动(纯新增 + 4 个既有文件的注册点)。
鸣谢