Bläddra i källkod

Consistent middleware and reducer imports

j8
Lyubomir Marinov 8 år sedan
förälder
incheckning
55a8b44224

+ 0
- 1
react/features/app/actions.js Visa fil

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

+ 2
- 0
react/features/app/index.js Visa fil

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

+ 0
- 2
react/features/background/actions.js Visa fil

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

+ 3
- 0
react/features/background/index.js Visa fil

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

+ 0
- 2
react/features/base/conference/actions.js Visa fil

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

+ 3
- 0
react/features/base/conference/index.js Visa fil

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

+ 0
- 1
react/features/base/connection/actions.native.js Visa fil

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

+ 0
- 1
react/features/base/connection/actions.web.js Visa fil

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

+ 2
- 0
react/features/base/connection/index.js Visa fil

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

+ 0
- 2
react/features/base/lib-jitsi-meet/actions.js Visa fil

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

+ 3
- 0
react/features/base/lib-jitsi-meet/index.js Visa fil

@@ -6,3 +6,6 @@ export { JitsiMeetJS as default };
6 6
 export * from './actions';
7 7
 export * from './actionTypes';
8 8
 export * from './functions';
9
+
10
+import './middleware';
11
+import './reducer';

+ 2
- 2
react/features/base/lib-jitsi-meet/native/index.js Visa fil

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

+ 0
- 2
react/features/base/media/actions.js Visa fil

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

+ 3
- 0
react/features/base/media/index.js Visa fil

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

+ 0
- 2
react/features/base/participants/actions.js Visa fil

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

+ 3
- 0
react/features/base/participants/index.js Visa fil

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

+ 0
- 2
react/features/base/tracks/actions.js Visa fil

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

+ 3
- 0
react/features/base/tracks/index.js Visa fil

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

+ 0
- 2
react/features/large-video/actions.js Visa fil

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

+ 3
- 0
react/features/large-video/index.js Visa fil

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

+ 0
- 1
react/features/room-lock/actions.js Visa fil

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

+ 2
- 0
react/features/room-lock/index.js Visa fil

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

+ 0
- 1
react/features/unsupported-browser/actions.js Visa fil

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

+ 2
- 0
react/features/unsupported-browser/index.js Visa fil

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

Laddar…
Avbryt
Spara