add new type of self-learning
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-06-29 19:38:00 -06:00
parent 71fc5e3246
commit 5867bbceed
10 changed files with 1113 additions and 31 deletions

View File

@@ -8,6 +8,7 @@ import type {
BlankProblem,
Contest,
Exercise,
ExerciseType,
Server,
TestcaseUploadedReturns,
Tutorial,
@@ -272,7 +273,7 @@ export async function getAdminExercises(tutorialId: number) {
export async function createExercise(data: {
tutorial_id: number
type: "mcq" | "sort" | "fill"
type: ExerciseType
data: object
order: number
}) {
@@ -282,7 +283,7 @@ export async function createExercise(data: {
export async function updateExercise(data: {
id: number
type: "mcq" | "sort" | "fill"
type: ExerciseType
data: object
order: number
}) {