1
0

main.js 1.2 KB

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