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