1
0

main.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { runner } from './runner';
  2. import { initVisualUI, addFunctionChangeListener,
  3. addGlobalChangeListener, removeFunctionListener,
  4. removeGlobalListener, getTestCases } from './visualUI/functions';
  5. import * as LocalizedStringsService from './services/localizedStringsService';
  6. import { i18nHelper } from "./services/i18nHelper";
  7. import { ActionTypes, getLogs, getLogsAsString, registerClick, registerUserEvent, parseLogs } from "./services/userLog";
  8. import { prepareActivityToStudentHelper, autoEval } from "./util/iassignHelpers";
  9. import { openAssessmentDetail } from "./util/utils";
  10. import * as CodeEditorAll from "./visualUI/text_editor";
  11. import {autoGenerateTestCaseOutput} from './util/auto_gen_output';
  12. const CodeEditor = {
  13. initTextEditor: CodeEditorAll.initTextEditor,
  14. setCode: CodeEditorAll.setCode,
  15. getCode: CodeEditorAll.getCode,
  16. updateEditor: CodeEditorAll.updateEditor,
  17. disable: CodeEditorAll.disable
  18. };
  19. const i18n = i18nHelper.i18n
  20. const LocalizedStrings = LocalizedStringsService.getInstance();
  21. export {
  22. runner,
  23. initVisualUI,
  24. addFunctionChangeListener,
  25. addGlobalChangeListener,
  26. removeFunctionListener,
  27. removeGlobalListener,
  28. getTestCases,
  29. autoEval,
  30. prepareActivityToStudentHelper,
  31. LocalizedStrings,
  32. i18n,
  33. getLogs,
  34. getLogsAsString,
  35. registerClick,
  36. registerUserEvent,
  37. parseLogs,
  38. ActionTypes,
  39. CodeEditor,
  40. openAssessmentDetail,
  41. autoGenerateTestCaseOutput
  42. }