2013-12-16 12:22:23 +01:00
|
|
|
/* application specific logic */
|
2014-05-12 11:56:33 +02:00
|
|
|
|
2017-06-14 15:13:25 -05:00
|
|
|
import 'jquery';
|
|
|
|
|
import 'jquery-contextmenu';
|
|
|
|
|
import 'jQuery-Impromptu';
|
2016-09-15 22:22:56 -05:00
|
|
|
|
2020-05-07 11:54:02 +02:00
|
|
|
import 'olm';
|
|
|
|
|
|
2020-09-25 17:51:54 -05:00
|
|
|
// We need to setup the jitsi-local-storage as early as possible so that we can start using it.
|
2020-09-29 10:44:17 -05:00
|
|
|
// NOTE: If jitsi-local-storage is used before the initial setup is performed this will break the use case when we use
|
2020-09-25 17:51:54 -05:00
|
|
|
// the local storage from the parent page when the localStorage is disabled. Also the setup is relying that
|
|
|
|
|
// window.location is not changed and still has all URL parameters.
|
|
|
|
|
import './react/features/base/jitsi-local-storage/setup';
|
2017-06-15 22:47:04 -05:00
|
|
|
import conference from './conference';
|
|
|
|
|
import API from './modules/API';
|
2020-05-20 12:57:03 +02:00
|
|
|
import UI from './modules/UI/UI';
|
2017-06-15 22:47:04 -05:00
|
|
|
import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
|
|
|
|
|
import remoteControl from './modules/remotecontrol/RemoteControl';
|
|
|
|
|
import translation from './modules/translation/translation';
|
|
|
|
|
|
2020-05-07 11:54:02 +02:00
|
|
|
// Initialize Olm as early as possible.
|
|
|
|
|
if (window.Olm) {
|
|
|
|
|
window.Olm.init();
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-15 22:47:04 -05:00
|
|
|
window.APP = {
|
|
|
|
|
API,
|
|
|
|
|
conference,
|
|
|
|
|
|
|
|
|
|
// 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: {
|
|
|
|
|
handler: null,
|
|
|
|
|
status: 'initialized'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Used for automated performance tests.
|
|
|
|
|
connectionTimes: {
|
|
|
|
|
'index.loaded': window.indexLoadedTime
|
|
|
|
|
},
|
2017-05-26 17:11:33 -05:00
|
|
|
|
2017-06-15 22:47:04 -05:00
|
|
|
keyboardshortcut,
|
|
|
|
|
remoteControl,
|
|
|
|
|
translation,
|
|
|
|
|
UI
|
2017-06-14 13:13:41 -05:00
|
|
|
};
|
2017-05-26 17:11:33 -05: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.
|
2017-05-26 17:11:33 -05:00
|
|
|
import './react';
|