Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

app.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* application specific logic */
  2. import 'jquery';
  3. import 'jquery-contextmenu';
  4. import 'jQuery-Impromptu';
  5. import 'olm';
  6. import conference from './conference';
  7. import API from './modules/API';
  8. import UI from './modules/UI/UI';
  9. import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  10. import remoteControl from './modules/remotecontrol/RemoteControl';
  11. import translation from './modules/translation/translation';
  12. // Initialize Olm as early as possible.
  13. if (window.Olm) {
  14. window.Olm.init();
  15. }
  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';