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 1.9KB

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