您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

app.js 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* application specific logic */
  2. // FIXME: remove once atlaskit work with React 16
  3. // It seems that @atlaskit/icon is importing PropTypes from React, but it
  4. // happens through some glyph coffee script template. It could be that more
  5. // things are broken there (not only the icon).
  6. import './react/features/base/react/prop-types-polyfill.js';
  7. import 'jquery';
  8. import 'jquery-contextmenu';
  9. import 'jquery-ui';
  10. import 'jQuery-Impromptu';
  11. import 'autosize';
  12. import 'aui';
  13. import 'aui-experimental';
  14. import 'aui-css';
  15. import 'aui-experimental-css';
  16. import conference from './conference';
  17. import API from './modules/API';
  18. import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  19. import remoteControl from './modules/remotecontrol/RemoteControl';
  20. import settings from './modules/settings/Settings';
  21. import translation from './modules/translation/translation';
  22. import UI from './modules/UI/UI';
  23. window.APP = {
  24. API,
  25. conference,
  26. // Used by do_external_connect.js if we receive the attach data after
  27. // connect was already executed. status property can be 'initialized',
  28. // 'ready', or 'connecting'. We are interested in 'ready' status only which
  29. // means that connect was executed but we have to wait for the attach data.
  30. // In status 'ready' handler property will be set to a function that will
  31. // finish the connect process when the attach data or error is received.
  32. connect: {
  33. handler: null,
  34. status: 'initialized'
  35. },
  36. // Used for automated performance tests.
  37. connectionTimes: {
  38. 'index.loaded': window.indexLoadedTime
  39. },
  40. keyboardshortcut,
  41. remoteControl,
  42. settings,
  43. translation,
  44. UI
  45. };
  46. // TODO The execution of the mobile app starts from react/index.native.js.
  47. // Similarly, the execution of the Web app should start from react/index.web.js
  48. // for the sake of consistency and ease of understanding. Temporarily though
  49. // because we are at the beginning of introducing React into the Web app, allow
  50. // the execution of the Web app to start from app.js in order to reduce the
  51. // complexity of the beginning step.
  52. import './react';