|
|
@@ -15,59 +15,50 @@ import 'aui-experimental-css';
|
|
15
|
15
|
|
|
16
|
16
|
window.toastr = require("toastr");
|
|
17
|
17
|
|
|
18
|
|
-import conference from './conference';
|
|
19
|
|
-import API from './modules/API';
|
|
20
|
|
-import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
|
|
21
|
|
-import remoteControl from "./modules/remotecontrol/RemoteControl";
|
|
22
|
|
-import settings from "./modules/settings/Settings";
|
|
23
|
|
-import translation from "./modules/translation/translation";
|
|
24
|
|
-import UI from "./modules/UI/UI";
|
|
|
18
|
+export conference from './conference';
|
|
|
19
|
+export API from './modules/API';
|
|
|
20
|
+export keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
|
|
|
21
|
+export remoteControl from "./modules/remotecontrol/RemoteControl";
|
|
|
22
|
+export settings from "./modules/settings/Settings";
|
|
|
23
|
+export translation from "./modules/translation/translation";
|
|
|
24
|
+export UI from "./modules/UI/UI";
|
|
25
|
25
|
|
|
26
|
|
-const APP = {
|
|
27
|
|
- API,
|
|
28
|
|
- conference,
|
|
|
26
|
+/**
|
|
|
27
|
+ * After the APP has been initialized provides utility methods for dealing
|
|
|
28
|
+ * with the conference room URL(address).
|
|
|
29
|
+ * @type ConferenceUrl
|
|
|
30
|
+ */
|
|
|
31
|
+export let ConferenceUrl = null;
|
|
29
|
32
|
|
|
30
|
|
- /**
|
|
31
|
|
- * After the APP has been initialized provides utility methods for dealing
|
|
32
|
|
- * with the conference room URL(address).
|
|
33
|
|
- * @type ConferenceUrl
|
|
34
|
|
- */
|
|
35
|
|
- ConferenceUrl: null,
|
|
|
33
|
+// Used by do_external_connect.js if we receive the attach data after
|
|
|
34
|
+// connect was already executed. status property can be "initialized",
|
|
|
35
|
+// "ready" or "connecting". We are interested in "ready" status only which
|
|
|
36
|
+// means that connect was executed but we have to wait for the attach data.
|
|
|
37
|
+// In status "ready" handler property will be set to a function that will
|
|
|
38
|
+// finish the connect process when the attach data or error is received.
|
|
|
39
|
+export const connect = {
|
|
|
40
|
+ status: "initialized",
|
|
|
41
|
+ handler: null
|
|
|
42
|
+};
|
|
36
|
43
|
|
|
37
|
|
- // Used by do_external_connect.js if we receive the attach data after
|
|
38
|
|
- // connect was already executed. status property can be "initialized",
|
|
39
|
|
- // "ready" or "connecting". We are interested in "ready" status only which
|
|
40
|
|
- // means that connect was executed but we have to wait for the attach data.
|
|
41
|
|
- // In status "ready" handler property will be set to a function that will
|
|
42
|
|
- // finish the connect process when the attach data or error is received.
|
|
43
|
|
- connect: {
|
|
44
|
|
- status: "initialized",
|
|
45
|
|
- handler: null
|
|
46
|
|
- },
|
|
47
|
|
- connection: null,
|
|
|
44
|
+export let connection = null;
|
|
48
|
45
|
|
|
49
|
|
- // Used for automated performance tests
|
|
50
|
|
- connectionTimes: {
|
|
51
|
|
- "index.loaded": window.indexLoadedTime
|
|
52
|
|
- },
|
|
53
|
|
- keyboardshortcut,
|
|
|
46
|
+// Used for automated performance tests
|
|
|
47
|
+export const connectionTimes = {
|
|
|
48
|
+ "index.loaded": window.indexLoadedTime
|
|
|
49
|
+};
|
|
54
|
50
|
|
|
55
|
|
- /**
|
|
56
|
|
- * The log collector which captures JS console logs for this app.
|
|
57
|
|
- * @type {LogCollector}
|
|
58
|
|
- */
|
|
59
|
|
- logCollector: null,
|
|
|
51
|
+/**
|
|
|
52
|
+ * The log collector which captures JS console logs for this app.
|
|
|
53
|
+ * @type {LogCollector}
|
|
|
54
|
+ */
|
|
|
55
|
+export let logCollector = null;
|
|
60
|
56
|
|
|
61
|
|
- /**
|
|
62
|
|
- * Indicates if the log collector has been started (it will not be started
|
|
63
|
|
- * if the welcome page is displayed).
|
|
64
|
|
- */
|
|
65
|
|
- logCollectorStarted : false,
|
|
66
|
|
- remoteControl,
|
|
67
|
|
- settings,
|
|
68
|
|
- translation,
|
|
69
|
|
- UI
|
|
70
|
|
-};
|
|
|
57
|
+/**
|
|
|
58
|
+ * Indicates if the log collector has been started (it will not be started
|
|
|
59
|
+ * if the welcome page is displayed).
|
|
|
60
|
+ */
|
|
|
61
|
+export let logCollectorStarted = false;
|
|
71
|
62
|
|
|
72
|
63
|
// TODO The execution of the mobile app starts from react/index.native.js.
|
|
73
|
64
|
// Similarly, the execution of the Web app should start from react/index.web.js
|
|
|
@@ -76,5 +67,3 @@ const APP = {
|
|
76
|
67
|
// the execution of the Web app to start from app.js in order to reduce the
|
|
77
|
68
|
// complexity of the beginning step.
|
|
78
|
69
|
import './react';
|
|
79
|
|
-
|
|
80
|
|
-module.exports = APP;
|