main.js 1.4 KB

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