main.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 * as CodeEditorAll from "./visualUI/text_editor";
  10. import {autoGenerateTestCaseOutput} from './util/auto_gen_output';
  11. const CodeEditor = {
  12. setCode: CodeEditorAll.setCode,
  13. getCode: CodeEditorAll.getCode,
  14. updateEditor: CodeEditorAll.updateEditor,
  15. disable: CodeEditorAll.disable
  16. };
  17. const i18n = i18nHelper.i18n
  18. const LocalizedStrings = LocalizedStringsService.getInstance();
  19. export {
  20. runner,
  21. initVisualUI,
  22. addFunctionChangeListener,
  23. addGlobalChangeListener,
  24. removeFunctionListener,
  25. removeGlobalListener,
  26. getTestCases,
  27. autoEval,
  28. prepareActivityToStudentHelper,
  29. LocalizedStrings,
  30. i18n,
  31. getLogs,
  32. getLogsAsString,
  33. registerClick,
  34. registerUserEvent,
  35. parseLogs,
  36. ActionTypes,
  37. CodeEditor,
  38. autoGenerateTestCaseOutput
  39. }