Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* application specific logic */
  2. import "babel-polyfill";
  3. import "jquery";
  4. import "jquery-contextmenu";
  5. import "jquery-ui";
  6. import "strophe";
  7. import "strophe-disco";
  8. import "jQuery-Impromptu";
  9. import "autosize";
  10. import 'aui';
  11. import 'aui-experimental';
  12. import 'aui-css';
  13. import 'aui-experimental-css';
  14. window.toastr = require("toastr");
  15. import UI from "./modules/UI/UI";
  16. import settings from "./modules/settings/Settings";
  17. import conference from './conference';
  18. import API from './modules/API/API';
  19. import translation from "./modules/translation/translation";
  20. import remoteControl from "./modules/remotecontrol/RemoteControl";
  21. const APP = {
  22. // Used by do_external_connect.js if we receive the attach data after
  23. // connect was already executed. status property can be "initialized",
  24. // "ready" or "connecting". We are interested in "ready" status only which
  25. // means that connect was executed but we have to wait for the attach data.
  26. // In status "ready" handler property will be set to a function that will
  27. // finish the connect process when the attach data or error is received.
  28. connect: {
  29. status: "initialized",
  30. handler: null
  31. },
  32. // Used for automated performance tests
  33. connectionTimes: {
  34. "index.loaded": window.indexLoadedTime
  35. },
  36. UI,
  37. settings,
  38. conference,
  39. translation,
  40. /**
  41. * The log collector which captures JS console logs for this app.
  42. * @type {LogCollector}
  43. */
  44. logCollector: null,
  45. /**
  46. * Indicates if the log collector has been started (it will not be started
  47. * if the welcome page is displayed).
  48. */
  49. logCollectorStarted : false,
  50. /**
  51. * After the APP has been initialized provides utility methods for dealing
  52. * with the conference room URL(address).
  53. * @type ConferenceUrl
  54. */
  55. ConferenceUrl : null,
  56. connection: null,
  57. API,
  58. remoteControl
  59. };
  60. // TODO The execution of the mobile app starts from react/index.native.js.
  61. // Similarly, the execution of the Web app should start from react/index.web.js
  62. // for the sake of consistency and ease of understanding. Temporarily though
  63. // because we are at the beginning of introducing React into the Web app, allow
  64. // the execution of the Web app to start from app.js in order to reduce the
  65. // complexity of the beginning step.
  66. require('./react');
  67. module.exports = APP;