From a1ccef2d717bb0692648c649a73594ed24582ad7 Mon Sep 17 00:00:00 2001 From: anggoro Date: Sun, 23 Aug 2026 08:17:42 +0700 Subject: [PATCH] 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. --- frontend/src/routes/teacher/content/+page.svelte | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/routes/teacher/content/+page.svelte b/frontend/src/routes/teacher/content/+page.svelte index e9fafbf..3fde700 100644 --- a/frontend/src/routes/teacher/content/+page.svelte +++ b/frontend/src/routes/teacher/content/+page.svelte @@ -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;