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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 UI from "./modules/UI/UI";
  15. import settings from "./modules/settings/Settings";
  16. import conference from './conference';
  17. import API from './modules/API/API';
  18. import translation from "./modules/translation/translation";
  19. import remoteControl from "./modules/remotecontrol/RemoteControl";
  20. const APP = {
  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. status: "initialized",
  29. handler: null
  30. },
  31. // Used for automated performance tests
  32. connectionTimes: {
  33. "index.loaded": window.indexLoadedTime
  34. },
  35. UI,
  36. settings,
  37. conference,
  38. translation,
  39. /**
  40. * The log collector which captures JS console logs for this app.
  41. * @type {LogCollector}
  42. */
  43. logCollector: null,
  44. /**
  45. * Indicates if the log collector has been started (it will not be started
  46. * if the welcome page is displayed).
  47. */
  48. logCollectorStarted : false,
  49. /**
  50. * After the APP has been initialized provides utility methods for dealing
  51. * with the conference room URL(address).
  52. * @type ConferenceUrl
  53. */
  54. ConferenceUrl : null,
  55. connection: null,
  56. API,
  57. remoteControl
  58. };
  59. // TODO The execution of the mobile app starts from react/index.native.js.
  60. // Similarly, the execution of the Web app should start from react/index.web.js
  61. // for the sake of consistency and ease of understanding. Temporarily though
  62. // because we are at the beginning of introducing React into the Web app, allow
  63. // the execution of the Web app to start from app.js in order to reduce the
  64. // complexity of the beginning step.
  65. require('./react');
  66. module.exports = APP;