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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* application specific logic */
  2. import 'jquery';
  3. import 'olm';
  4. import 'focus-visible';
  5. if (!window.clog){
  6. window.clog = console.log
  7. }
  8. console.log("glob_dbg app 0",window.glob_dbg,window?.glob_dbg?.defined)
  9. window.glob_dbg = window.glob_dbg || {defined:"app"}
  10. window.glob_dbg.def2="app"
  11. console.log("glob_dbg app 1",window.glob_dbg,window?.glob_dbg?.defined)
  12. window.glob_dbg.j={}
  13. console.log("APP?.")
  14. // console.log("APP?")
  15. import * as hi_t0 from './rdev/hooks/hookImports_t0';
  16. import * as jc1 from './rdev/hooks/hookImports1';
  17. import * as hi_t1 from './rdev/hooks/hookImports_t1';
  18. import * as hooks1 from './rdev/hooks/Hooks';
  19. // We need to setup the jitsi-local-storage as early as possible so that we can start using it.
  20. // NOTE: If jitsi-local-storage is used before the initial setup is performed this will break the use case when we use
  21. // the local storage from the parent page when the localStorage is disabled. Also the setup is relying that
  22. // window.location is not changed and still has all URL parameters.
  23. import './react/features/base/jitsi-local-storage/setup';
  24. import conference from './conference';
  25. import API from './modules/API';
  26. import UI from './modules/UI/UI';
  27. import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  28. import translation from './modules/translation/translation';
  29. // Initialize Olm as early as possible.
  30. if (window.Olm) {
  31. window.Olm.init().catch(e => {
  32. console.error('Failed to initialize Olm, E2EE will be disabled', e);
  33. delete window.Olm;
  34. });
  35. }
  36. window.APP = {
  37. API,
  38. conference,
  39. // Used by do_external_connect.js if we receive the attach data after
  40. // connect was already executed. status property can be 'initialized',
  41. // 'ready', or 'connecting'. We are interested in 'ready' status only which
  42. // means that connect was executed but we have to wait for the attach data.
  43. // In status 'ready' handler property will be set to a function that will
  44. // finish the connect process when the attach data or error is received.
  45. connect: {
  46. handler: null,
  47. status: 'initialized'
  48. },
  49. // Used for automated performance tests.
  50. connectionTimes: {
  51. 'index.loaded': window.indexLoadedTime
  52. },
  53. keyboardshortcut,
  54. translation,
  55. UI
  56. };
  57. import * as jc2 from './rdev/hooks/hookImports2';
  58. // TODO The execution of the mobile app starts from react/index.native.js.
  59. // Similarly, the execution of the Web app should start from react/index.web.js
  60. // for the sake of consistency and ease of understanding. Temporarily though
  61. // because we are at the beginning of introducing React into the Web app, allow
  62. // the execution of the Web app to start from app.js in order to reduce the
  63. // complexity of the beginning step.
  64. import './react';
  65. import * as jc3 from './rdev/hooks/hookImports3';