Add playground entry selector

This commit is contained in:
2026-07-09 19:21:12 +09:00
parent 5b26d071ca
commit 43f692e75c
3 changed files with 66 additions and 16 deletions
+15 -7
View File
@@ -9,14 +9,22 @@ import ManualLayout from '../layouts/ManualLayout.astro';
<p>Virtual files are evaluated in the browser through WebAssembly. Use import paths such as <code>./schemas/service.dcdl</code>.</p>
</div>
<div class="playground-actions">
<label class="example-picker">
<span>Example</span>
<select id="example-select" aria-label="Playground example"></select>
</label>
<button id="load-example" type="button">Load</button>
<div class="action-group example-actions">
<label class="example-picker">
<span>Example</span>
<select id="example-select" aria-label="Playground example"></select>
</label>
<button id="load-example" type="button">Load</button>
</div>
<div class="action-group run-actions">
<button id="format" disabled>Format</button>
<label class="entry-picker">
<span>Entry</span>
<select id="entry-select" aria-label="Entry point file"></select>
</label>
<button id="run" disabled>Run</button>
</div>
<p id="status" class="status">Loading WASM...</p>
<button id="format" disabled>Format</button>
<button id="run" disabled>Run</button>
</div>
</div>