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

app.js 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* application specific logic */
  2. // FIXME: remove once atlaskit work with React 16
  3. // It seems that @atlaskit/icon is importing PropTypes from React, but it
  4. // happens through some glyph coffee script template. It could be that more
  5. // things are broken there (not only the icon).
  6. import './react/features/base/react/prop-types-polyfill.js';
  7. import 'jquery';
  8. import 'jquery-contextmenu';
  9. import 'jQuery-Impromptu';
  10. import 'autosize';
  11. import conference from './conference';
  12. import API from './modules/API';
  13. import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  14. import remoteControl from './modules/remotecontrol/RemoteControl';
  15. import translation from './modules/translation/translation';
  16. import UI from './modules/UI/UI';
  17. window.APP = {
  18. API,
  19. conference,
  20. // Used by do_external_connect.js if we receive the attach data after
  21. // connect was already executed. status property can be 'initialized',
  22. // 'ready', or 'connecting'. We are interested in 'ready' status only which
  23. // means that connect was executed but we have to wait for the attach data.
  24. // In status 'ready' handler property will be set to a function that will
  25. // finish the connect process when the attach data or error is received.
  26. connect: {
  27. handler: null,
  28. status: 'initialized'
  29. },
  30. // Used for automated performance tests.
  31. connectionTimes: {
  32. 'index.loaded': window.indexLoadedTime
  33. },
  34. keyboardshortcut,
  35. remoteControl,
  36. translation,
  37. UI
  38. };
  39. // TODO The execution of the mobile app starts from react/index.native.js.
  40. // Similarly, the execution of the Web app should start from react/index.web.js
  41. // for the sake of consistency and ease of understanding. Temporarily though
  42. // because we are at the beginning of introducing React into the Web app, allow
  43. // the execution of the Web app to start from app.js in order to reduce the
  44. // complexity of the beginning step.
  45. import './react';