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.1KB

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