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

app.js 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright @ 2015 Atlassian Pty Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* jshint -W117 */
  17. /* application specific logic */
  18. var APP =
  19. {
  20. init: function () {
  21. this.UI = require("./modules/UI/UI");
  22. this.API = require("./modules/API/API");
  23. this.connectionquality = require("./modules/connectionquality/connectionquality");
  24. this.statistics = require("./modules/statistics/statistics");
  25. this.RTC = require("./modules/RTC/RTC");
  26. this.desktopsharing = require("./modules/desktopsharing/desktopsharing");
  27. this.xmpp = require("./modules/xmpp/xmpp");
  28. this.keyboardshortcut = require("./modules/keyboardshortcut/keyboardshortcut");
  29. this.translation = require("./modules/translation/translation");
  30. this.settings = require("./modules/settings/Settings");
  31. this.DTMF = require("./modules/DTMF/DTMF");
  32. this.members = require("./modules/members/MemberList");
  33. }
  34. };
  35. function init() {
  36. APP.RTC.start();
  37. APP.xmpp.start();
  38. APP.statistics.start();
  39. APP.connectionquality.init();
  40. // Set default desktop sharing method
  41. APP.desktopsharing.init();
  42. APP.keyboardshortcut.init();
  43. APP.members.start();
  44. }
  45. $(document).ready(function () {
  46. var URLPRocessor = require("./modules/URLProcessor/URLProcessor");
  47. URLPRocessor.setConfigParametersFromUrl();
  48. APP.init();
  49. APP.translation.init();
  50. if(APP.API.isEnabled())
  51. APP.API.init();
  52. APP.UI.start(init);
  53. });
  54. $(window).bind('beforeunload', function () {
  55. if(APP.API.isEnabled())
  56. APP.API.dispose();
  57. });
  58. module.exports = APP;