瀏覽代碼

fix: some exports to make it work with webpack 2

master
hristoterezov 7 年之前
父節點
當前提交
c8c44d62ed
共有 3 個文件被更改,包括 24 次插入44 次删除
  1. 22
    43
      app.js
  2. 1
    1
      modules/util/JitsiMeetLogStorage.js
  3. 1
    0
      react/features/jwt/index.js

+ 22
- 43
app.js 查看文件

@@ -1,65 +1,44 @@
1 1
 /* application specific logic */
2 2
 
3
-import "jquery";
4
-import "jquery-contextmenu";
5
-import "jquery-ui";
6
-import "strophe";
7
-import "strophe-disco";
8
-import "jQuery-Impromptu";
9
-import "autosize";
3
+import 'jquery';
4
+import 'jquery-contextmenu';
5
+import 'jquery-ui';
6
+import 'strophe';
7
+import 'strophe-disco';
8
+import 'jQuery-Impromptu';
9
+import 'autosize';
10 10
 
11 11
 import 'aui';
12 12
 import 'aui-experimental';
13 13
 import 'aui-css';
14 14
 import 'aui-experimental-css';
15 15
 
16
-window.toastr = require("toastr");
16
+window.toastr = require('toastr');
17 17
 
18 18
 export conference from './conference';
19 19
 export API from './modules/API';
20 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
-
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;
32
-
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.
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
+
26
+// Used by do_external_connect.js if we receive the attach data after connect
27
+// was already executed. status property can be 'initialized', 'ready', or
28
+// 'connecting'. We are interested in 'ready' status only which means that
29
+// connect was executed but we have to wait for the attach data. In status
30
+// 'ready' handler property will be set to a function that will finish the
31
+// connect process when the attach data or error is received.
39 32
 export const connect = {
40
-    status: "initialized",
41
-    handler: null
33
+    handler: null,
34
+    status: 'initialized'
42 35
 };
43 36
 
44
-export let connection = null;
45
-
46 37
 // Used for automated performance tests
47 38
 export const connectionTimes = {
48
-    "index.loaded": window.indexLoadedTime
39
+    'index.loaded': window.indexLoadedTime
49 40
 };
50 41
 
51
-/**
52
- * The log collector which captures JS console logs for this app.
53
- * @type {LogCollector}
54
- */
55
-export let logCollector = null;
56
-
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;
62
-
63 42
 // TODO The execution of the mobile app starts from react/index.native.js.
64 43
 // Similarly, the execution of the Web app should start from react/index.web.js
65 44
 // for the sake of consistency and ease of understanding. Temporarily though

+ 1
- 1
modules/util/JitsiMeetLogStorage.js 查看文件

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

+ 1
- 0
react/features/jwt/index.js 查看文件

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

Loading…
取消
儲存