feat(client): exam environment download page (#57325)

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Sem Bauke
2025-07-02 17:18:23 +02:00
committed by GitHub
parent f6107116e8
commit 1f76ac71a4
7 changed files with 252 additions and 8 deletions
+9 -4
View File
@@ -29,6 +29,7 @@ const jsLab = 26;
const pyLab = 27;
const dailyChallengeJs = 28;
const dailyChallengePy = 29;
const examDownload = 30;
export const challengeTypes = {
html,
@@ -61,7 +62,8 @@ export const challengeTypes = {
jsLab,
pyLab,
dailyChallengeJs,
dailyChallengePy
dailyChallengePy,
examDownload
};
export const hasNoSolution = (challengeType: number): boolean => {
@@ -84,7 +86,8 @@ export const hasNoSolution = (challengeType: number): boolean => {
multipleChoice,
dialogue,
fillInTheBlank,
generic
generic,
examDownload
];
return noSolutions.includes(challengeType);
@@ -120,7 +123,8 @@ export const viewTypes = {
[jsLab]: 'classic',
[pyLab]: 'classic',
[dailyChallengeJs]: 'classic',
[dailyChallengePy]: 'classic'
[dailyChallengePy]: 'classic',
[examDownload]: 'examDownload'
};
// determine the type of submit function to use for the challenge on completion
@@ -157,7 +161,8 @@ export const submitTypes = {
[jsLab]: 'tests',
[pyLab]: 'tests',
[dailyChallengeJs]: 'tests',
[dailyChallengePy]: 'tests'
[dailyChallengePy]: 'tests',
[examDownload]: 'examDownload'
};
export const canSaveToDB = (challengeType: number): boolean =>