update
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-06-07 05:50:51 -06:00
parent 4b32330b60
commit 6f99688667
7 changed files with 247 additions and 19 deletions

View File

@@ -31,6 +31,7 @@
type="password"
v-model:value="studentPassword"
name="password"
@keyup.enter="submitStudent"
/>
</n-form-item>
<n-alert
@@ -73,6 +74,7 @@
type="password"
v-model:value="adminPassword"
name="password"
@keyup.enter="submitAdmin"
/>
</n-form-item>
<n-alert

View File

@@ -40,6 +40,9 @@ async function render() {
const data = await Tutorial.get(step.value)
taskId.value = data.task_ptr
assetBaseUrl.value = `/media/tasks/tutorial/${step.value}/`
html.value = data.example_html ?? ""
css.value = data.example_css ?? ""
js.value = data.example_js ?? ""
const merged = `# ${data.display}. ${data.title}\n${data.content}`
content.value = await marked.parse(merged, { async: true })
}