浏览代码

Consistent middleware and reducer imports

j8
Lyubomir Marinov 8 年前
父节点
当前提交
55a8b44224

+ 0
- 1
react/features/app/actions.js 查看文件

8
     _parseURIString,
8
     _parseURIString,
9
     init
9
     init
10
 } from './functions';
10
 } from './functions';
11
-import './reducer';
12
 
11
 
13
 /**
12
 /**
14
  * Temporary solution. Should dispatch actions related to initial settings of
13
  * Temporary solution. Should dispatch actions related to initial settings of

+ 2
- 0
react/features/app/index.js 查看文件

2
 export * from './actionTypes';
2
 export * from './actionTypes';
3
 export * from './components';
3
 export * from './components';
4
 export * from './functions';
4
 export * from './functions';
5
+
6
+import './reducer';

+ 0
- 2
react/features/background/actions.js 查看文件

5
     _SET_BACKGROUND_VIDEO_MUTED,
5
     _SET_BACKGROUND_VIDEO_MUTED,
6
     APP_STATE_CHANGED
6
     APP_STATE_CHANGED
7
 } from './actionTypes';
7
 } from './actionTypes';
8
-import './middleware';
9
-import './reducer';
10
 
8
 
11
 /**
9
 /**
12
  * Signals that the App state has changed (in terms of execution state). The
10
  * Signals that the App state has changed (in terms of execution state). The

+ 3
- 0
react/features/background/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './actionTypes';
2
 export * from './actionTypes';
3
+
4
+import './middleware';
5
+import './reducer';

+ 0
- 2
react/features/base/conference/actions.js 查看文件

20
 } from './actionTypes';
20
 } from './actionTypes';
21
 import { EMAIL_COMMAND } from './constants';
21
 import { EMAIL_COMMAND } from './constants';
22
 import { _addLocalTracksToConference } from './functions';
22
 import { _addLocalTracksToConference } from './functions';
23
-import './middleware';
24
-import './reducer';
25
 
23
 
26
 /**
24
 /**
27
  * Adds conference (event) listeners.
25
  * Adds conference (event) listeners.

+ 3
- 0
react/features/base/conference/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './actionTypes';
2
 export * from './actionTypes';
3
 export * from './functions';
3
 export * from './functions';
4
+
5
+import './middleware';
6
+import './reducer';

+ 0
- 1
react/features/base/connection/actions.native.js 查看文件

11
     CONNECTION_FAILED,
11
     CONNECTION_FAILED,
12
     SET_DOMAIN
12
     SET_DOMAIN
13
 } from './actionTypes';
13
 } from './actionTypes';
14
-import './reducer';
15
 
14
 
16
 const JitsiConnectionEvents = JitsiMeetJS.events.connection;
15
 const JitsiConnectionEvents = JitsiMeetJS.events.connection;
17
 
16
 

+ 0
- 1
react/features/base/connection/actions.web.js 查看文件

5
 import UIEvents from '../../../../service/UI/UIEvents';
5
 import UIEvents from '../../../../service/UI/UIEvents';
6
 
6
 
7
 import { SET_DOMAIN } from './actionTypes';
7
 import { SET_DOMAIN } from './actionTypes';
8
-import './reducer';
9
 
8
 
10
 declare var APP: Object;
9
 declare var APP: Object;
11
 declare var JitsiMeetJS: Object;
10
 declare var JitsiMeetJS: Object;

+ 2
- 0
react/features/base/connection/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './actionTypes';
2
 export * from './actionTypes';
3
 export * from './functions';
3
 export * from './functions';
4
+
5
+import './reducer';

+ 0
- 2
react/features/base/lib-jitsi-meet/actions.js 查看文件

5
     LIB_INITIALIZED,
5
     LIB_INITIALIZED,
6
     SET_CONFIG
6
     SET_CONFIG
7
 } from './actionTypes';
7
 } from './actionTypes';
8
-import './middleware';
9
-import './reducer';
10
 
8
 
11
 /**
9
 /**
12
  * Disposes lib-jitsi-meet.
10
  * Disposes lib-jitsi-meet.

+ 3
- 0
react/features/base/lib-jitsi-meet/index.js 查看文件

6
 export * from './actions';
6
 export * from './actions';
7
 export * from './actionTypes';
7
 export * from './actionTypes';
8
 export * from './functions';
8
 export * from './functions';
9
+
10
+import './middleware';
11
+import './reducer';

+ 2
- 2
react/features/base/lib-jitsi-meet/native/index.js 查看文件

1
-require('./polyfills-browser');
2
-require('./polyfills-browserify');
1
+import './polyfills-browser';
2
+import './polyfills-browserify';

+ 0
- 2
react/features/base/media/actions.js 查看文件

8
     SET_VIDEO_MUTED
8
     SET_VIDEO_MUTED
9
 } from './actionTypes';
9
 } from './actionTypes';
10
 import { CAMERA_FACING_MODE } from './constants';
10
 import { CAMERA_FACING_MODE } from './constants';
11
-import './middleware';
12
-import './reducer';
13
 
11
 
14
 /**
12
 /**
15
  * Action to set the muted state of the local audio.
13
  * Action to set the muted state of the local audio.

+ 3
- 0
react/features/base/media/index.js 查看文件

3
 export * from './components';
3
 export * from './components';
4
 export * from './constants';
4
 export * from './constants';
5
 export * from './functions';
5
 export * from './functions';
6
+
7
+import './middleware';
8
+import './reducer';

+ 0
- 2
react/features/base/participants/actions.js 查看文件

7
     PIN_PARTICIPANT
7
     PIN_PARTICIPANT
8
 } from './actionTypes';
8
 } from './actionTypes';
9
 import { getLocalParticipant } from './functions';
9
 import { getLocalParticipant } from './functions';
10
-import './middleware';
11
-import './reducer';
12
 
10
 
13
 /**
11
 /**
14
  * Action to update a participant's email.
12
  * Action to update a participant's email.

+ 3
- 0
react/features/base/participants/index.js 查看文件

2
 export * from './actionTypes';
2
 export * from './actionTypes';
3
 export * from './constants';
3
 export * from './constants';
4
 export * from './functions';
4
 export * from './functions';
5
+
6
+import './middleware';
7
+import './reducer';

+ 0
- 2
react/features/base/tracks/actions.js 查看文件

10
     TRACK_REMOVED,
10
     TRACK_REMOVED,
11
     TRACK_UPDATED
11
     TRACK_UPDATED
12
 } from './actionTypes';
12
 } from './actionTypes';
13
-import './middleware';
14
-import './reducer';
15
 
13
 
16
 const JitsiTrackErrors = JitsiMeetJS.errors.track;
14
 const JitsiTrackErrors = JitsiMeetJS.errors.track;
17
 const JitsiTrackEvents = JitsiMeetJS.events.track;
15
 const JitsiTrackEvents = JitsiMeetJS.events.track;

+ 3
- 0
react/features/base/tracks/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './actionTypes';
2
 export * from './actionTypes';
3
 export * from './functions';
3
 export * from './functions';
4
+
5
+import './middleware';
6
+import './reducer';

+ 0
- 2
react/features/large-video/actions.js 查看文件

6
 } from '../base/tracks';
6
 } from '../base/tracks';
7
 
7
 
8
 import { SELECT_LARGE_VIDEO_PARTICIPANT } from './actionTypes';
8
 import { SELECT_LARGE_VIDEO_PARTICIPANT } from './actionTypes';
9
-import './middleware';
10
-import './reducer';
11
 
9
 
12
 /**
10
 /**
13
  * Signals conference to select a participant.
11
  * Signals conference to select a participant.

+ 3
- 0
react/features/large-video/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './components';
2
 export * from './components';
3
+
4
+import './middleware';
5
+import './reducer';

+ 0
- 1
react/features/room-lock/actions.js 查看文件

1
 import { setPassword } from '../base/conference';
1
 import { setPassword } from '../base/conference';
2
 
2
 
3
 import { BEGIN_ROOM_LOCK_REQUEST, END_ROOM_LOCK_REQUEST } from './actionTypes';
3
 import { BEGIN_ROOM_LOCK_REQUEST, END_ROOM_LOCK_REQUEST } from './actionTypes';
4
-import './reducer';
5
 
4
 
6
 /**
5
 /**
7
  * Begins a (user) request to lock a specific conference/room.
6
  * Begins a (user) request to lock a specific conference/room.

+ 2
- 0
react/features/room-lock/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './components';
2
 export * from './components';
3
+
4
+import './reducer';

+ 0
- 1
react/features/unsupported-browser/actions.js 查看文件

1
 import { DISMISS_MOBILE_APP_PROMO } from './actionTypes';
1
 import { DISMISS_MOBILE_APP_PROMO } from './actionTypes';
2
-import './reducer';
3
 
2
 
4
 /**
3
 /**
5
  * Returns a Redux action which signals that the UnsupportedMobileBrowser which
4
  * Returns a Redux action which signals that the UnsupportedMobileBrowser which

+ 2
- 0
react/features/unsupported-browser/index.js 查看文件

1
 export * from './actions';
1
 export * from './actions';
2
 export * from './components';
2
 export * from './components';
3
+
4
+import './reducer';

正在加载...
取消
保存