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

app.js 2.4KB

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