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

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