main.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { runner } from "./runner";
  2. import {
  3. initVisualUI,
  4. addFunctionChangeListener,
  5. addGlobalChangeListener,
  6. removeFunctionListener,
  7. removeGlobalListener,
  8. getTestCases,
  9. } from "./visualUI/functions";
  10. import * as LocalizedStringsService from "./services/localizedStringsService";
  11. import { i18nHelper } from "./services/i18nHelper";
  12. import {
  13. ActionTypes,
  14. getLogs,
  15. getLogsAsString,
  16. registerClick,
  17. registerUserEvent,
  18. parseLogs,
  19. } from "./services/userLog";
  20. import {
  21. prepareActivityToStudentHelper,
  22. autoEval,
  23. } from "./util/iassignHelpers";
  24. import { openAssessmentDetail } from "./util/utils";
  25. import { Config } from "./util/config";
  26. import { parseExpression } from "./util/parseFromVisual";
  27. import * as CodeEditorAll from "./visualUI/text_editor";
  28. import { autoGenerateTestCaseOutput } from "./util/auto_gen_output";
  29. const CodeEditor = {
  30. initTextEditor: CodeEditorAll.initTextEditor,
  31. setCode: CodeEditorAll.setCode,
  32. getCode: CodeEditorAll.getCode,
  33. updateEditor: CodeEditorAll.updateEditor,
  34. disable: CodeEditorAll.disable,
  35. };
  36. const i18n = i18nHelper.i18n;
  37. const LocalizedStrings = LocalizedStringsService.getInstance();
  38. export {
  39. runner,
  40. initVisualUI,
  41. addFunctionChangeListener,
  42. addGlobalChangeListener,
  43. removeFunctionListener,
  44. removeGlobalListener,
  45. getTestCases,
  46. autoEval,
  47. prepareActivityToStudentHelper,
  48. LocalizedStrings,
  49. i18n,
  50. getLogs,
  51. getLogsAsString,
  52. registerClick,
  53. registerUserEvent,
  54. parseLogs,
  55. ActionTypes,
  56. CodeEditor,
  57. openAssessmentDetail,
  58. autoGenerateTestCaseOutput,
  59. Config,
  60. parseExpression,
  61. };