您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

app.js 2.7KB

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