This commit is contained in:
Magnus Åhall 2025-07-16 10:50:17 +02:00
parent e28a7c765c
commit b7fa4c5c94
2 changed files with 21 additions and 9 deletions

View file

@ -4,8 +4,9 @@
<script type="importmap">
{
"imports": {
"@editor": "/js/{{ .VERSION }}/editor.mjs",
"@mbus": "/js/{{ .VERSION }}/mbus.mjs",
"@component": "/js/{{ .VERSION }}/component.mjs",
"@editor": "/js/{{ .VERSION }}/editor.mjs",
"@select_node": "/js/{{ .VERSION }}/select_node.mjs"
}
}
@ -21,8 +22,9 @@
<div id="layout">
<div class="page section" id="menu">
<div class="item" id="logo"><img src="/images/{{ .VERSION }}/logo.svg" /></div>
<div class="item" data-section='node' onclick="mbus.dispatch('MENU_ITEM_SELECTED', 'node')">Nodes</div>
<div class="item" data-section='type' onclick="mbus.dispatch('MENU_ITEM_SELECTED', 'type')">Types</div>
<div class="item" data-section='node' onclick="mbus.dispatch('MENU_ITEM_SELECTED', 'node')">Nodes</div>
<div class="item" data-section='type' onclick="mbus.dispatch('MENU_ITEM_SELECTED', 'type')">Types</div>
<div class="item" data-section='script' onclick="mbus.dispatch('MENU_ITEM_SELECTED', 'script')">Scripts</div>
</div>
<div class="page section" id="nodes"></div>
@ -62,6 +64,9 @@
<div class="page section" id="types"></div>
<div class="page section" id="editor-type-schema"></div>
<div class="page section" id="scripts"></div>
<div class="page section" id="editor-script"></div>
</div>
{{ end }}