main.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 * as CodeEditorAll from "./visualUI/text_editor";
  27. import { autoGenerateTestCaseOutput } from "./util/auto_gen_output";
  28. const CodeEditor = {
  29. initTextEditor: CodeEditorAll.initTextEditor,
  30. setCode: CodeEditorAll.setCode,
  31. getCode: CodeEditorAll.getCode,
  32. updateEditor: CodeEditorAll.updateEditor,
  33. disable: CodeEditorAll.disable,
  34. };
  35. const i18n = i18nHelper.i18n;
  36. const LocalizedStrings = LocalizedStringsService.getInstance();
  37. export {
  38. runner,
  39. initVisualUI,
  40. addFunctionChangeListener,
  41. addGlobalChangeListener,
  42. removeFunctionListener,
  43. removeGlobalListener,
  44. getTestCases,
  45. autoEval,
  46. prepareActivityToStudentHelper,
  47. LocalizedStrings,
  48. i18n,
  49. getLogs,
  50. getLogsAsString,
  51. registerClick,
  52. registerUserEvent,
  53. parseLogs,
  54. ActionTypes,
  55. CodeEditor,
  56. openAssessmentDetail,
  57. autoGenerateTestCaseOutput,
  58. Config,
  59. };