Skip to content

Commit

Permalink
Merge branch 'evaluate-correct-submissions' into lib
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienTainon committed Jun 5, 2024
2 parents 7fbf8bd + a44508d commit 2f31b12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/task/libs/import_modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,15 @@ export async function importPlatformModules(platform, modulesPath) {
if (null !== jsLibLoaded) {
return;
}
jsLibLoaded = platform;

const modulesToImport = {
blockly: ['fonts-loader-1.0', 'acorn', 'acorn-walk', 'interpreter', 'blockly', 'blockly_blocks', 'blockly_javascript', 'blockly_python', 'blockly_fioi', 'quickAlgo_utils', 'quickAlgo_blockly_blocks', 'quickAlgo_blockly_interface', 'quickAlgo_i18n'],
scratch: ['fonts-loader-1.0', 'acorn', 'acorn-walk', 'interpreter', 'scratch', 'scratch_blocks_common', 'scratch_blocks', 'blockly_javascript', 'blockly_python', 'blockly_fioi', 'scratch_fixes', 'scratch_procedures', 'quickAlgo_utils', 'quickAlgo_blockly_blocks', 'quickAlgo_blockly_interface', 'quickAlgo_i18n'],
}

await importModules(modulesToImport[platform], modulesPath);

jsLibLoaded = platform;
}

export function loadFonts(theme: string, task: Task|null) {
Expand Down

0 comments on commit 2f31b12

Please sign in to comment.