80 lines
2.5 KiB
XML
80 lines
2.5 KiB
XML
{
|
||
"widgettype": "VBox",
|
||
"options": {
|
||
"width": "100%",
|
||
"height": "100%",
|
||
"padding": "12px",
|
||
"backgroundColor": "#0B1020"
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "Text",
|
||
"options": {
|
||
"label": "PBL 覆盖层 · Agent 控制台",
|
||
"fontSize": "18px",
|
||
"fontWeight": "bold",
|
||
"color": "#E5E7EB"
|
||
}
|
||
},
|
||
{
|
||
"widgettype": "Html",
|
||
"id": "pbl_overlay_shell_agent_console",
|
||
"options": {
|
||
"html": "<div data-pbl-page=\"agent_console\" data-pbl-overlay-root=\"1\" class=\"pbl-shell\"><div class=\"pbl-shell-hint\">Agent 控制台(agent_console)· 覆盖层未启用:点击下方「启用 PBL 覆盖层」装配 PBL 组件;本页为教师/学生侧页面(首屏预算 ≤1.5s)。</div></div>"
|
||
}
|
||
},
|
||
{
|
||
"widgettype": "HBox",
|
||
"options": {
|
||
"width": "100%",
|
||
"gap": "8px",
|
||
"marginTop": "10px"
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "Button",
|
||
"options": {
|
||
"label": "启用 PBL 覆盖层",
|
||
"type": "primary"
|
||
},
|
||
"binds": [
|
||
{
|
||
"wid": "self",
|
||
"event": "click",
|
||
"actiontype": "script",
|
||
"options": {
|
||
"script": "window.PblOverlayLoader?PblOverlayLoader.start({page:'agent_console'}):(function(){var b=String(window.__PBL_API_BASE__||'').replace(/\\/$/,'');var s=document.createElement('script');s.src=b+'/pbl_scense_ext/overlay/pbl_overlay_loader.js';s.async=false;s.onload=function(){window.PblOverlayLoader.start({page:'agent_console'})};s.onerror=function(){window.__pblOverlayFail&&window.__pblOverlayFail('PBL_E_NETWORK','覆盖层引导脚本加载失败')};document.head.appendChild(s);})()"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"widgettype": "Button",
|
||
"options": {
|
||
"label": "PBL 首页"
|
||
},
|
||
"binds": [
|
||
{
|
||
"wid": "self",
|
||
"event": "click",
|
||
"actiontype": "url",
|
||
"options": {
|
||
"url": "{{entire_url('/pbl_scense_ext/pbl_overlay/home.ui')}}"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"widgettype": "Text",
|
||
"options": {
|
||
"label": "上下文:URL 携带 session_id / blueprint_id / world_id;覆盖层仅渲染服务端权威状态,不本地预测(Q4)。",
|
||
"fontSize": "12px",
|
||
"color": "#6B7280",
|
||
"marginTop": "10px"
|
||
}
|
||
}
|
||
]
|
||
}
|