main.js 1.6 KB

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