fix: Model-Driven and Template Center Entry Shielding (#1707)

This commit is contained in:
xuanlid 2025-11-27 18:29:28 -08:00 committed by GitHub
parent a6e30fe5ec
commit bea520c5bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ import {
Datasource,
Robot,
Resource,
ModelManager,
// ModelManager,
Props,
Events,
Styles,
@ -51,9 +51,9 @@ import {
GlobalService,
ThemeSwitchService,
HttpService,
McpService,
ApplicationCenter,
TemplateCenter
McpService
// ApplicationCenter,
// TemplateCenter
} from './re-export'
window.__TINY_ENGINE_REMOVED_REGISTRY = {}
@ -166,8 +166,8 @@ export default {
__TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.schema'] === false ? null : Schema,
__TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.editorhelp'] === false ? null : Help,
__TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.robot'] === false ? null : Robot,
__TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.resource'] === false ? null : Resource,
__TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.modelmanager'] === false ? null : ModelManager
__TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.resource'] === false ? null : Resource
// __TINY_ENGINE_REMOVED_REGISTRY['engine.plugins.modelmanager'] === false ? null : ModelManager
],
settings: [
__TINY_ENGINE_REMOVED_REGISTRY['engine.setting.props'] === false ? null : Props,
@ -175,8 +175,8 @@ export default {
__TINY_ENGINE_REMOVED_REGISTRY['engine.setting.event'] === false ? null : Events
],
workspace: [
__TINY_ENGINE_REMOVED_REGISTRY['engine.workspace.application-center'] === false ? null : ApplicationCenter,
__TINY_ENGINE_REMOVED_REGISTRY['engine.workspace.template-center'] === false ? null : TemplateCenter
// __TINY_ENGINE_REMOVED_REGISTRY['engine.workspace.application-center'] === false ? null : ApplicationCenter,
// __TINY_ENGINE_REMOVED_REGISTRY['engine.workspace.template-center'] === false ? null : TemplateCenter
],
canvas: Canvas
}

View File

@ -6,7 +6,7 @@ export default {
width: 600,
widthResizable: true,
options: {
enableAICompletion: true
enableAICompletion: false
},
confirm: 'close' // 当点击插件栏切换或关闭前是否需要确认, 会调用插件中confirm值指定的方法e.g. 此处指向 close方法会调用插件的close方法执行确认逻辑
}