feat(content-editor): tambah template Exp Wiring & buat iframe Velxio mengisi area

- Tambah FEATURE_TEMPLATES 'expected-wiring' (grup Penilaian) untuk
  menyisipkan blok ---EXPECTED_WIRING--- yang dipakai velxio-evaluator
  grading wiring (sudah diekstrak backend lesson_service.py).
- Perbaiki iframe Velxio tab Arduino tidak dinamis: tambah height:100%
  pada .velxio-tab-content agar mengisi tinggi area kosong di desktop & mobile.
This commit is contained in:
anggoro 2026-08-23 08:17:42 +07:00
parent c90a8787f7
commit a1ccef2d71
1 changed files with 16 additions and 0 deletions

View File

@ -366,6 +366,21 @@
'LED ON\nLED OFF\n' +
'---END_EXPECTED_SERIAL_OUTPUT---\n',
},
{
id: 'expected-wiring',
label: 'Exp Wiring',
group: 'penilaian',
snippet:
'\n---EXPECTED_WIRING---\n' +
'{\n' +
' "wires": [\n' +
' { "start": { "componentId": "arduino-uno", "pinName": "13" }, "end": { "componentId": "resistor-1", "pinName": "1" } },\n' +
' { "start": { "componentId": "resistor-1", "pinName": "2" }, "end": { "componentId": "led-builtin", "pinName": "A" } },\n' +
' { "start": { "componentId": "arduino-uno", "pinName": "GND" }, "end": { "componentId": "led-builtin", "pinName": "C" } }\n' +
' ]\n' +
'}\n' +
'---END_EXPECTED_WIRING---\n',
},
{
id: 'expected-flowchart',
label: 'Exp Flow',
@ -1394,6 +1409,7 @@
/* Velxio / Arduino tab */
.velxio-tab-content {
flex: 1;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;