You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.js 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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-Impromptu';
  10. import 'autosize';
  11. import conference from './conference';
  12. import API from './modules/API';
  13. import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  14. import remoteControl from './modules/remotecontrol/RemoteControl';
  15. import settings from './modules/settings/Settings';
  16. import translation from './modules/translation/translation';
  17. import UI from './modules/UI/UI';
  18. window.APP = {
  19. API,
  20. conference,
  21. // Used by do_external_connect.js if we receive the attach data after
  22. // connect was already executed. status property can be 'initialized',
  23. // 'ready', or 'connecting'. We are interested in 'ready' status only which
  24. // means that connect was executed but we have to wait for the attach data.
  25. // In status 'ready' handler property will be set to a function that will
  26. // finish the connect process when the attach data or error is received.
  27. connect: {
  28. handler: null,
  29. status: 'initialized'
  30. },
  31. // Used for automated performance tests.
  32. connectionTimes: {
  33. 'index.loaded': window.indexLoadedTime
  34. },
  35. keyboardshortcut,
  36. remoteControl,
  37. settings,
  38. translation,
  39. UI
  40. };
  41. // TODO The execution of the mobile app starts from react/index.native.js.
  42. // Similarly, the execution of the Web app should start from react/index.web.js
  43. // for the sake of consistency and ease of understanding. Temporarily though
  44. // because we are at the beginning of introducing React into the Web app, allow
  45. // the execution of the Web app to start from app.js in order to reduce the
  46. // complexity of the beginning step.
  47. import './react';