fix: some exports to make it work with webpack 2

This commit is contained in:
hristoterezov 2017-06-14 15:13:25 -05:00 committed by Lyubo Marinov
parent 4d329b510f
commit c8c44d62ed
3 changed files with 23 additions and 43 deletions

63
app.js
View File

@ -1,65 +1,44 @@
/* application specific logic */ /* application specific logic */
import "jquery"; import 'jquery';
import "jquery-contextmenu"; import 'jquery-contextmenu';
import "jquery-ui"; import 'jquery-ui';
import "strophe"; import 'strophe';
import "strophe-disco"; import 'strophe-disco';
import "jQuery-Impromptu"; import 'jQuery-Impromptu';
import "autosize"; import 'autosize';
import 'aui'; import 'aui';
import 'aui-experimental'; import 'aui-experimental';
import 'aui-css'; import 'aui-css';
import 'aui-experimental-css'; import 'aui-experimental-css';
window.toastr = require("toastr"); window.toastr = require('toastr');
export conference from './conference'; export conference from './conference';
export API from './modules/API'; export API from './modules/API';
export keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut'; export keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
export remoteControl from "./modules/remotecontrol/RemoteControl"; export remoteControl from './modules/remotecontrol/RemoteControl';
export settings from "./modules/settings/Settings"; export settings from './modules/settings/Settings';
export translation from "./modules/translation/translation"; export translation from './modules/translation/translation';
export UI from "./modules/UI/UI"; export UI from './modules/UI/UI';
/** // Used by do_external_connect.js if we receive the attach data after connect
* After the APP has been initialized provides utility methods for dealing // was already executed. status property can be 'initialized', 'ready', or
* with the conference room URL(address). // 'connecting'. We are interested in 'ready' status only which means that
* @type ConferenceUrl // 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
export let ConferenceUrl = null; // connect process when the attach data or error is received.
// 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.
export const connect = { export const connect = {
status: "initialized", handler: null,
handler: null status: 'initialized'
}; };
export let connection = null;
// Used for automated performance tests // Used for automated performance tests
export const connectionTimes = { export const connectionTimes = {
"index.loaded": window.indexLoadedTime 'index.loaded': window.indexLoadedTime
}; };
/**
* The log collector which captures JS console logs for this app.
* @type {LogCollector}
*/
export let logCollector = null;
/**
* Indicates if the log collector has been started (it will not be started
* if the welcome page is displayed).
*/
export let logCollectorStarted = false;
// TODO The execution of the mobile app starts from react/index.native.js. // TODO The execution of the mobile app starts from react/index.native.js.
// Similarly, the execution of the Web app should start from react/index.web.js // 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 // for the sake of consistency and ease of understanding. Temporarily though

View File

@ -21,7 +21,7 @@ export default class JitsiMeetLogStorage {
* <tt>false</tt> otherwise. * <tt>false</tt> otherwise.
*/ */
isReady() { isReady() {
return APP.logCollectorStarted && APP.conference; return Boolean(APP.logCollectorStarted && APP.conference);
} }
/** /**

View File

@ -1,4 +1,5 @@
export * from './actions'; export * from './actions';
export * from './actionTypes';
export * from './components'; export * from './components';
export * from './functions'; export * from './functions';