Преглед изворни кода

Remove some Flow annotations

master
Bettenbuk Zoltan пре 6 година
родитељ
комит
2a5adfc601
100 измењених фајлова са 140 додато и 158 уклоњено
  1. 1
    1
      react/features/authentication/components/WaitForOwnerDialog.native.js
  2. 0
    2
      react/features/base/app/components/BaseApp.js
  3. 1
    2
      react/features/base/dialog/components/native/BottomSheet.js
  4. 1
    1
      react/features/base/dialog/components/native/ConfirmDialog.js
  5. 1
    2
      react/features/base/dialog/components/native/CustomDialog.js
  6. 1
    2
      react/features/base/dialog/components/native/CustomSubmitDialog.js
  7. 1
    1
      react/features/base/dialog/components/native/DialogContainer.js
  8. 1
    1
      react/features/base/dialog/components/native/InputDialog.js
  9. 2
    2
      react/features/base/dialog/components/web/Dialog.js
  10. 2
    1
      react/features/base/dialog/components/web/DialogContainer.js
  11. 0
    5
      react/features/base/i18n/dateUtil.js
  12. 1
    1
      react/features/base/media/components/AbstractAudio.js
  13. 2
    2
      react/features/base/media/components/native/VideoTrack.js
  14. 2
    2
      react/features/base/media/components/native/VideoTransform.js
  15. 2
    2
      react/features/base/media/components/web/VideoTrack.js
  16. 11
    3
      react/features/base/participants/components/Avatar.native.js
  17. 1
    1
      react/features/base/participants/components/ParticipantView.native.js
  18. 1
    2
      react/features/base/react/components/native/BackButton.js
  19. 1
    1
      react/features/base/react/components/native/ForwardButton.js
  20. 1
    2
      react/features/base/react/components/native/Header.js
  21. 1
    1
      react/features/base/react/components/native/HeaderLabel.js
  22. 2
    2
      react/features/base/react/components/native/LoadingIndicator.js
  23. 1
    2
      react/features/base/react/components/native/PagedList.js
  24. 1
    2
      react/features/base/react/components/web/Watermarks.js
  25. 14
    0
      react/features/base/redux/functions.js
  26. 2
    2
      react/features/base/responsive-ui/components/AspectRatioAware.js
  27. 2
    2
      react/features/base/responsive-ui/components/AspectRatioDetector.js
  28. 2
    2
      react/features/base/responsive-ui/components/ReducedUIDetector.js
  29. 1
    2
      react/features/base/sounds/components/SoundCollection.js
  30. 1
    2
      react/features/base/testing/components/TestConnectionInfo.js
  31. 2
    1
      react/features/base/testing/components/TestHint.android.js
  32. 2
    2
      react/features/base/testing/components/TestHint.ios.js
  33. 1
    1
      react/features/calendar-sync/components/AddMeetingUrlButton.web.js
  34. 1
    1
      react/features/calendar-sync/components/CalendarList.native.js
  35. 1
    1
      react/features/calendar-sync/components/CalendarList.web.js
  36. 1
    1
      react/features/calendar-sync/components/CalendarListContent.native.js
  37. 1
    3
      react/features/calendar-sync/components/CalendarListContent.web.js
  38. 1
    1
      react/features/calendar-sync/components/ConferenceNotification.native.js
  39. 1
    1
      react/features/calendar-sync/components/UpdateCalendarEventDialog.native.js
  40. 4
    3
      react/features/calendar-sync/functions.any.js
  41. 0
    1
      react/features/calendar-sync/reducer.js
  42. 1
    1
      react/features/chat/components/native/Chat.js
  43. 1
    3
      react/features/chat/components/native/ChatButton.js
  44. 1
    1
      react/features/chat/components/native/ChatMessage.js
  45. 1
    1
      react/features/chat/components/web/Chat.js
  46. 2
    2
      react/features/chat/components/web/ChatCounter.js
  47. 2
    2
      react/features/chat/components/web/ChatInput.js
  48. 1
    1
      react/features/chat/components/web/DisplayNameForm.js
  49. 1
    2
      react/features/conference/components/native/Conference.js
  50. 1
    2
      react/features/conference/components/native/DisplayNameLabel.js
  51. 1
    2
      react/features/conference/components/native/Labels.js
  52. 1
    2
      react/features/conference/components/native/NavigationBar.js
  53. 1
    2
      react/features/conference/components/web/Conference.js
  54. 1
    2
      react/features/conference/components/web/Labels.js
  55. 1
    1
      react/features/conference/components/web/Notice.js
  56. 1
    2
      react/features/conference/components/web/Subject.js
  57. 1
    1
      react/features/deep-linking/components/DeepLinkingDesktopPage.web.js
  58. 1
    1
      react/features/deep-linking/components/DeepLinkingMobilePage.web.js
  59. 1
    1
      react/features/desktop-picker/components/DesktopPicker.js
  60. 1
    1
      react/features/display-name/components/DisplayName.web.js
  61. 1
    2
      react/features/display-name/components/DisplayNamePrompt.native.js
  62. 1
    1
      react/features/display-name/components/DisplayNamePrompt.web.js
  63. 1
    1
      react/features/feedback/components/FeedbackDialog.web.js
  64. 1
    2
      react/features/filmstrip/components/native/Filmstrip.js
  65. 1
    2
      react/features/filmstrip/components/native/LocalThumbnail.js
  66. 1
    2
      react/features/filmstrip/components/native/Thumbnail.js
  67. 1
    2
      react/features/filmstrip/components/native/TileView.js
  68. 1
    2
      react/features/filmstrip/components/web/Filmstrip.js
  69. 1
    2
      react/features/filmstrip/components/web/Toolbar.js
  70. 1
    1
      react/features/invite/components/InfoDialogButton.web.js
  71. 1
    1
      react/features/invite/components/InviteButton.native.js
  72. 1
    1
      react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js
  73. 1
    1
      react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js
  74. 1
    2
      react/features/invite/components/callee-info/CalleeInfo.js
  75. 2
    2
      react/features/invite/components/callee-info/CalleeInfoContainer.js
  76. 1
    1
      react/features/invite/components/info-dialog/InfoDialog.web.js
  77. 1
    2
      react/features/large-video/components/LargeVideo.native.js
  78. 1
    1
      react/features/local-recording/components/LocalRecordingInfoDialog.js
  79. 1
    1
      react/features/local-recording/components/LocalRecordingLabel.web.js
  80. 1
    1
      react/features/mobile/audio-mode/components/AudioRouteButton.js
  81. 1
    1
      react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js
  82. 1
    2
      react/features/mobile/incoming-call/components/AnswerButton.js
  83. 1
    2
      react/features/mobile/incoming-call/components/DeclineButton.js
  84. 1
    1
      react/features/mobile/incoming-call/components/IncomingCallPage.js
  85. 1
    2
      react/features/mobile/network-activity/components/NetworkActivityIndicator.js
  86. 1
    2
      react/features/mobile/picture-in-picture/components/PictureInPictureButton.js
  87. 2
    2
      react/features/notifications/components/NotificationsContainer.native.js
  88. 2
    2
      react/features/notifications/components/NotificationsContainer.web.js
  89. 1
    2
      react/features/overlay/components/FilmstripOnlyOverlayFrame.js
  90. 2
    2
      react/features/overlay/components/OverlayContainer.js
  91. 1
    1
      react/features/overlay/components/PageReloadFilmstripOnlyOverlay.js
  92. 1
    1
      react/features/overlay/components/PageReloadOverlay.native.js
  93. 1
    1
      react/features/overlay/components/PageReloadOverlay.web.js
  94. 1
    1
      react/features/overlay/components/ReloadButton.js
  95. 1
    1
      react/features/overlay/components/UserMediaPermissionsFilmstripOnlyOverlay.js
  96. 1
    1
      react/features/overlay/components/UserMediaPermissionsOverlay.js
  97. 1
    1
      react/features/presence-status/components/PresenceLabel.js
  98. 2
    3
      react/features/recent-list/components/RecentList.native.js
  99. 1
    1
      react/features/recent-list/components/RecentList.web.js
  100. 0
    0
      react/features/recording/components/LiveStream/native/GoogleSigninForm.js

+ 1
- 1
react/features/authentication/components/WaitForOwnerDialog.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 import type { Dispatch } from 'redux';
4
 import type { Dispatch } from 'redux';
6
 
5
 
7
 import { ConfirmDialog } from '../../base/dialog';
6
 import { ConfirmDialog } from '../../base/dialog';
8
 import { translate } from '../../base/i18n';
7
 import { translate } from '../../base/i18n';
8
+import { connect } from '../../base/redux';
9
 
9
 
10
 import { cancelWaitForOwner, _openLoginDialog } from '../actions';
10
 import { cancelWaitForOwner, _openLoginDialog } from '../actions';
11
 
11
 

+ 0
- 2
react/features/base/app/components/BaseApp.js Прегледај датотеку

55
 
55
 
56
         this.state = {
56
         this.state = {
57
             route: {},
57
             route: {},
58
-
59
-            // $FlowFixMe
60
             store: undefined
58
             store: undefined
61
         };
59
         };
62
     }
60
     }

+ 1
- 2
react/features/base/dialog/components/native/BottomSheet.js Прегледај датотеку

2
 
2
 
3
 import React, { Component, type Node } from 'react';
3
 import React, { Component, type Node } from 'react';
4
 import { TouchableWithoutFeedback, View } from 'react-native';
4
 import { TouchableWithoutFeedback, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { ColorSchemeRegistry } from '../../../color-scheme';
6
 import { ColorSchemeRegistry } from '../../../color-scheme';
8
 import { Modal } from '../../../react';
7
 import { Modal } from '../../../react';
8
+import { connect } from '../../../redux';
9
 import { StyleType } from '../../../styles';
9
 import { StyleType } from '../../../styles';
10
 
10
 
11
 import { bottomSheetStyles as styles } from './styles';
11
 import { bottomSheetStyles as styles } from './styles';
107
     };
107
     };
108
 }
108
 }
109
 
109
 
110
-// $FlowExpectedError
111
 export default connect(_mapStateToProps)(BottomSheet);
110
 export default connect(_mapStateToProps)(BottomSheet);

+ 1
- 1
react/features/base/dialog/components/native/ConfirmDialog.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { Text, TouchableOpacity } from 'react-native';
4
 import { Text, TouchableOpacity } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { translate } from '../../../i18n';
6
 import { translate } from '../../../i18n';
7
+import { connect } from '../../../redux';
8
 import { StyleType } from '../../../styles';
8
 import { StyleType } from '../../../styles';
9
 
9
 
10
 import { _abstractMapStateToProps } from '../../functions';
10
 import { _abstractMapStateToProps } from '../../functions';

+ 1
- 2
react/features/base/dialog/components/native/CustomDialog.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
3
+import { connect } from '../../../redux';
4
 
4
 
5
 import { _abstractMapStateToProps } from '../../functions';
5
 import { _abstractMapStateToProps } from '../../functions';
6
 
6
 
21
     }
21
     }
22
 }
22
 }
23
 
23
 
24
-// $FlowExpectedError
25
 export default connect(_abstractMapStateToProps)(CustomDialog);
24
 export default connect(_abstractMapStateToProps)(CustomDialog);

+ 1
- 2
react/features/base/dialog/components/native/CustomSubmitDialog.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
4
-
5
 import { translate } from '../../../i18n';
3
 import { translate } from '../../../i18n';
4
+import { connect } from '../../../redux';
6
 
5
 
7
 import { _abstractMapStateToProps } from '../../functions';
6
 import { _abstractMapStateToProps } from '../../functions';
8
 
7
 

+ 1
- 1
react/features/base/dialog/components/native/DialogContainer.js Прегледај датотеку

1
-import { connect } from 'react-redux';
1
+import { connect } from '../../../redux';
2
 
2
 
3
 import AbstractDialogContainer, {
3
 import AbstractDialogContainer, {
4
     abstractMapStateToProps
4
     abstractMapStateToProps

+ 1
- 1
react/features/base/dialog/components/native/InputDialog.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { View, Text, TextInput, TouchableOpacity } from 'react-native';
4
 import { View, Text, TextInput, TouchableOpacity } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { translate } from '../../../i18n';
6
 import { translate } from '../../../i18n';
7
+import { connect } from '../../../redux';
8
 import { StyleType } from '../../../styles';
8
 import { StyleType } from '../../../styles';
9
 
9
 
10
 import { _abstractMapStateToProps } from '../../functions';
10
 import { _abstractMapStateToProps } from '../../functions';

+ 2
- 2
react/features/base/dialog/components/web/Dialog.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
4
+
5
+import { connect } from '../../../redux';
5
 
6
 
6
 import AbstractDialog from '../AbstractDialog';
7
 import AbstractDialog from '../AbstractDialog';
7
 import type { Props as AbstractDialogProps, State } from '../AbstractDialog';
8
 import type { Props as AbstractDialogProps, State } from '../AbstractDialog';
84
     _onSubmit: (?string) => void;
85
     _onSubmit: (?string) => void;
85
 }
86
 }
86
 
87
 
87
-// $FlowExpectedError
88
 export default connect()(Dialog);
88
 export default connect()(Dialog);

+ 2
- 1
react/features/base/dialog/components/web/DialogContainer.js Прегледај датотеку

1
 import { ModalTransition } from '@atlaskit/modal-dialog';
1
 import { ModalTransition } from '@atlaskit/modal-dialog';
2
 import React from 'react';
2
 import React from 'react';
3
-import { connect } from 'react-redux';
3
+
4
+import { connect } from '../../../redux';
4
 
5
 
5
 import AbstractDialogContainer, {
6
 import AbstractDialogContainer, {
6
     abstractMapStateToProps
7
     abstractMapStateToProps

+ 0
- 5
react/features/base/i18n/dateUtil.js Прегледај датотеку

63
     // showing the hour and we want to include the hour if the conference is
63
     // showing the hour and we want to include the hour if the conference is
64
     // more than an hour long
64
     // more than an hour long
65
 
65
 
66
-    // $FlowFixMe
67
     if (moment.duration(duration).format('h') !== '0') {
66
     if (moment.duration(duration).format('h') !== '0') {
68
-        // $FlowFixMe
69
         return moment.duration(duration).format('h:mm:ss');
67
         return moment.duration(duration).format('h:mm:ss');
70
     }
68
     }
71
 
69
 
72
-    // $FlowFixMe
73
     return moment.duration(duration).format('mm:ss', { trim: false });
70
     return moment.duration(duration).format('mm:ss', { trim: false });
74
 }
71
 }
75
 
72
 
97
                 // FIXME The flow-type definition of moment is v2.3 while our
94
                 // FIXME The flow-type definition of moment is v2.3 while our
98
                 // package.json states v2.19 so maybe locales on moment was
95
                 // package.json states v2.19 so maybe locales on moment was
99
                 // introduced in between?
96
                 // introduced in between?
100
-                //
101
-                // $FlowFixMe
102
                 = moment.locales().find(lang => currentLocaleRegexp.exec(lang));
97
                 = moment.locales().find(lang => currentLocaleRegexp.exec(lang));
103
         }
98
         }
104
     }
99
     }

+ 1
- 1
react/features/base/media/components/AbstractAudio.js Прегледај датотеку

7
  * playback.
7
  * playback.
8
  */
8
  */
9
 export type AudioElement = {
9
 export type AudioElement = {
10
-    currentTime?: number,
10
+    currentTime: number,
11
     pause: () => void,
11
     pause: () => void,
12
     play: () => void,
12
     play: () => void,
13
     setSinkId?: string => void,
13
     setSinkId?: string => void,

+ 2
- 2
react/features/base/media/components/native/VideoTrack.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { View } from 'react-native';
4
 import { View } from 'react-native';
5
-import { connect } from 'react-redux';
5
+
6
+import { connect } from '../../../redux';
6
 
7
 
7
 import AbstractVideoTrack from '../AbstractVideoTrack';
8
 import AbstractVideoTrack from '../AbstractVideoTrack';
8
 import type { Props } from '../AbstractVideoTrack';
9
 import type { Props } from '../AbstractVideoTrack';
29
     }
30
     }
30
 }
31
 }
31
 
32
 
32
-// $FlowExpectedError
33
 export default connect()(VideoTrack);
33
 export default connect()(VideoTrack);

+ 2
- 2
react/features/base/media/components/native/VideoTransform.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { PanResponder, PixelRatio, View } from 'react-native';
4
 import { PanResponder, PixelRatio, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 import { type Dispatch } from 'redux';
5
 import { type Dispatch } from 'redux';
7
 
6
 
7
+import { connect } from '../../../redux';
8
+
8
 import type { PanResponderInstance } from 'PanResponder';
9
 import type { PanResponderInstance } from 'PanResponder';
9
 
10
 
10
 import { storeVideoTransform } from '../../actions';
11
 import { storeVideoTransform } from '../../actions';
727
     };
728
     };
728
 }
729
 }
729
 
730
 
730
-// $FlowExpectedError
731
 export default connect(_mapStateToProps, _mapDispatchToProps)(VideoTransform);
731
 export default connect(_mapStateToProps, _mapDispatchToProps)(VideoTransform);

+ 2
- 2
react/features/base/media/components/web/VideoTrack.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
4
+
5
+import { connect } from '../../../redux';
5
 
6
 
6
 import AbstractVideoTrack from '../AbstractVideoTrack';
7
 import AbstractVideoTrack from '../AbstractVideoTrack';
7
 import type { Props as AbstractVideoTrackProps } from '../AbstractVideoTrack';
8
 import type { Props as AbstractVideoTrackProps } from '../AbstractVideoTrack';
63
     _onVideoPlaying: () => void;
64
     _onVideoPlaying: () => void;
64
 }
65
 }
65
 
66
 
66
-// $FlowExpectedError
67
 export default connect()(VideoTrack);
67
 export default connect()(VideoTrack);

+ 11
- 3
react/features/base/participants/components/Avatar.native.js Прегледај датотеку

2
 
2
 
3
 import React, { Component, Fragment, PureComponent } from 'react';
3
 import React, { Component, Fragment, PureComponent } from 'react';
4
 import { Dimensions, Image, Platform, View } from 'react-native';
4
 import { Dimensions, Image, Platform, View } from 'react-native';
5
-import FastImage from 'react-native-fast-image';
5
+import FastImage, {
6
+    type CacheControls,
7
+    type Priorities
8
+} from 'react-native-fast-image';
6
 
9
 
7
 import { ColorPalette } from '../../styles';
10
 import { ColorPalette } from '../../styles';
8
 
11
 
63
     /**
66
     /**
64
      * Source for the non-local avatar.
67
      * Source for the non-local avatar.
65
      */
68
      */
66
-    source: { uri: ?string }
69
+    source: {
70
+        uri?: string,
71
+        headers?: Object,
72
+        priority?: Priorities,
73
+        cache?: CacheControls,
74
+    }
67
 };
75
 };
68
 
76
 
69
 /**
77
 /**
261
             }
269
             }
262
         }
270
         }
263
 
271
 
264
-        return (// $FlowFixMe
272
+        return (
265
             <FastImage
273
             <FastImage
266
                 onError = { this._onAvatarLoadError }
274
                 onError = { this._onAvatarLoadError }
267
                 onLoadEnd = { this._onAvatarLoaded }
275
                 onLoadEnd = { this._onAvatarLoaded }

+ 1
- 1
react/features/base/participants/components/ParticipantView.native.js Прегледај датотеку

3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { Text, View } from 'react-native';
4
 import { Text, View } from 'react-native';
5
 import FastImage from 'react-native-fast-image';
5
 import FastImage from 'react-native-fast-image';
6
-import { connect } from 'react-redux';
7
 
6
 
8
 import { translate } from '../../i18n';
7
 import { translate } from '../../i18n';
9
 import { JitsiParticipantConnectionStatus } from '../../lib-jitsi-meet';
8
 import { JitsiParticipantConnectionStatus } from '../../lib-jitsi-meet';
12
     VideoTrack
11
     VideoTrack
13
 } from '../../media';
12
 } from '../../media';
14
 import { Container, TintedView } from '../../react';
13
 import { Container, TintedView } from '../../react';
14
+import { connect } from '../../redux';
15
 import { StyleType } from '../../styles';
15
 import { StyleType } from '../../styles';
16
 import { TestHint } from '../../testing/components';
16
 import { TestHint } from '../../testing/components';
17
 import { getTrackByMediaTypeAndParticipant } from '../../tracks';
17
 import { getTrackByMediaTypeAndParticipant } from '../../tracks';

+ 1
- 2
react/features/base/react/components/native/BackButton.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { TouchableOpacity } from 'react-native';
4
 import { TouchableOpacity } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { ColorSchemeRegistry } from '../../../color-scheme';
6
 import { ColorSchemeRegistry } from '../../../color-scheme';
8
 import { Icon } from '../../../font-icons';
7
 import { Icon } from '../../../font-icons';
8
+import { connect } from '../../../redux';
9
 
9
 
10
 /**
10
 /**
11
  * The type of the React {@code Component} props of {@link BackButton}
11
  * The type of the React {@code Component} props of {@link BackButton}
68
     };
68
     };
69
 }
69
 }
70
 
70
 
71
-// $FlowExpectedError
72
 export default connect(_mapStateToProps)(BackButton);
71
 export default connect(_mapStateToProps)(BackButton);

+ 1
- 1
react/features/base/react/components/native/ForwardButton.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { Text, TouchableOpacity } from 'react-native';
4
 import { Text, TouchableOpacity } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { ColorSchemeRegistry } from '../../../color-scheme';
6
 import { ColorSchemeRegistry } from '../../../color-scheme';
8
 import { translate } from '../../../i18n';
7
 import { translate } from '../../../i18n';
8
+import { connect } from '../../../redux';
9
 
9
 
10
 /**
10
 /**
11
  * The type of the React {@code Component} props of {@link ForwardButton}
11
  * The type of the React {@code Component} props of {@link ForwardButton}

+ 1
- 2
react/features/base/react/components/native/Header.js Прегледај датотеку

2
 
2
 
3
 import React, { Component, type Node } from 'react';
3
 import React, { Component, type Node } from 'react';
4
 import { Platform, SafeAreaView, StatusBar, View } from 'react-native';
4
 import { Platform, SafeAreaView, StatusBar, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { ColorSchemeRegistry } from '../../../color-scheme';
6
 import { ColorSchemeRegistry } from '../../../color-scheme';
7
+import { connect } from '../../../redux';
8
 import { isDarkColor } from '../../../styles';
8
 import { isDarkColor } from '../../../styles';
9
 
9
 
10
 import { HEADER_PADDING } from './headerstyles';
10
 import { HEADER_PADDING } from './headerstyles';
165
     };
165
     };
166
 }
166
 }
167
 
167
 
168
-// $FlowExpectedError
169
 export default connect(_mapStateToProps)(Header);
168
 export default connect(_mapStateToProps)(Header);

+ 1
- 1
react/features/base/react/components/native/HeaderLabel.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { Text, View } from 'react-native';
4
 import { Text, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { ColorSchemeRegistry } from '../../../color-scheme';
6
 import { ColorSchemeRegistry } from '../../../color-scheme';
8
 import { translate } from '../../../i18n';
7
 import { translate } from '../../../i18n';
8
+import { connect } from '../../../redux';
9
 
9
 
10
 /**
10
 /**
11
  * The type of the React {@code Component} props of {@link HeaderLabel}
11
  * The type of the React {@code Component} props of {@link HeaderLabel}

+ 2
- 2
react/features/base/react/components/native/LoadingIndicator.js Прегледај датотеку

11
      * Prop to set the size of the indicator. This is the same as the
11
      * Prop to set the size of the indicator. This is the same as the
12
      * prop of the native component.
12
      * prop of the native component.
13
      */
13
      */
14
-    size: 'large' | 'medium' | 'small'
14
+    size: 'large' | 'small'
15
 };
15
 };
16
 
16
 
17
 /**
17
 /**
40
             size
40
             size
41
         };
41
         };
42
 
42
 
43
-        return (// $FlowFixMe
43
+        return (
44
             <ActivityIndicator
44
             <ActivityIndicator
45
                 animating = { true }
45
                 animating = { true }
46
                 color = { ColorPalette.white }
46
                 color = { ColorPalette.white }

+ 1
- 2
react/features/base/react/components/native/PagedList.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { SafeAreaView, Text, TouchableOpacity, View } from 'react-native';
4
 import { SafeAreaView, Text, TouchableOpacity, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { Icon } from '../../../font-icons';
6
 import { Icon } from '../../../font-icons';
7
+import { connect } from '../../../redux';
8
 
8
 
9
 import styles from './styles';
9
 import styles from './styles';
10
 
10
 
283
     }
283
     }
284
 }
284
 }
285
 
285
 
286
-// $FlowExpectedError
287
 export default connect()(PagedList);
286
 export default connect()(PagedList);

+ 1
- 2
react/features/base/react/components/web/Watermarks.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { translate } from '../../../i18n';
5
 import { translate } from '../../../i18n';
6
+import { connect } from '../../../redux';
7
 
7
 
8
 declare var interfaceConfig: Object;
8
 declare var interfaceConfig: Object;
9
 
9
 
242
     };
242
     };
243
 }
243
 }
244
 
244
 
245
-// $FlowExpectedError
246
 export default connect(_mapStateToProps)(translate(Watermarks));
245
 export default connect(_mapStateToProps)(translate(Watermarks));

+ 14
- 0
react/features/base/redux/functions.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import _ from 'lodash';
3
 import _ from 'lodash';
4
+import { connect as reduxConnect } from 'react-redux';
4
 
5
 
5
 /**
6
 /**
6
  * Sets specific properties of a specific state to specific values and prevents
7
  * Sets specific properties of a specific state to specific values and prevents
25
     return t;
26
     return t;
26
 }
27
 }
27
 
28
 
29
+/**
30
+ * Wrapper function for the react-redux connect function to avoid having to
31
+ * declare function types for flow, but still let flow warn for other errors.
32
+ *
33
+ * @param {Function?} mapStateToProps - Redux mapStateToProps function.
34
+ * @param {Function?} mapDispatchToProps - Redux mapDispatchToProps function.
35
+ * @returns {Connector}
36
+ */
37
+export function connect(
38
+        mapStateToProps?: Function, mapDispatchToProps?: Function) {
39
+    return reduxConnect<*, *, *, *, *, *>(mapStateToProps, mapDispatchToProps);
40
+}
41
+
28
 /**
42
 /**
29
  * Determines whether {@code a} equals {@code b} according to deep comparison
43
  * Determines whether {@code a} equals {@code b} according to deep comparison
30
  * (which makes sense for Redux and its state definition).
44
  * (which makes sense for Redux and its state definition).

+ 2
- 2
react/features/base/responsive-ui/components/AspectRatioAware.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
4
+
5
+import { connect } from '../../redux';
5
 
6
 
6
 import { ASPECT_RATIO_NARROW, ASPECT_RATIO_WIDE } from '../constants';
7
 import { ASPECT_RATIO_NARROW, ASPECT_RATIO_WIDE } from '../constants';
7
 
8
 
51
         }
52
         }
52
     }
53
     }
53
 
54
 
54
-    // $FlowFixMe
55
     return connect(_mapStateToProps)(AspectRatioAware);
55
     return connect(_mapStateToProps)(AspectRatioAware);
56
 }
56
 }
57
 
57
 

+ 2
- 2
react/features/base/responsive-ui/components/AspectRatioDetector.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component, type Node } from 'react';
3
 import React, { Component, type Node } from 'react';
4
-import { connect } from 'react-redux';
5
 import { type Dispatch } from 'redux';
4
 import { type Dispatch } from 'redux';
6
 
5
 
6
+import { connect } from '../../redux';
7
+
7
 import { setAspectRatio } from '../actions';
8
 import { setAspectRatio } from '../actions';
8
 import DimensionsDetector from './DimensionsDetector';
9
 import DimensionsDetector from './DimensionsDetector';
9
 
10
 
69
     };
70
     };
70
 }
71
 }
71
 
72
 
72
-// $FlowExpectedError
73
 export default connect(undefined, _mapDispatchToProps)(AspectRatioDetector);
73
 export default connect(undefined, _mapDispatchToProps)(AspectRatioDetector);

+ 2
- 2
react/features/base/responsive-ui/components/ReducedUIDetector.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component, type Node } from 'react';
3
 import React, { Component, type Node } from 'react';
4
-import { connect } from 'react-redux';
5
 import { type Dispatch } from 'redux';
4
 import { type Dispatch } from 'redux';
6
 
5
 
6
+import { connect } from '../../redux';
7
+
7
 import { setReducedUI } from '../actions';
8
 import { setReducedUI } from '../actions';
8
 import DimensionsDetector from './DimensionsDetector';
9
 import DimensionsDetector from './DimensionsDetector';
9
 
10
 
70
     };
71
     };
71
 }
72
 }
72
 
73
 
73
-// $FlowExpectedError
74
 export default connect(undefined, _mapDispatchToProps)(ReducedUIDetector);
74
 export default connect(undefined, _mapDispatchToProps)(ReducedUIDetector);

+ 1
- 2
react/features/base/sounds/components/SoundCollection.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { Audio } from '../../media';
5
 import { Audio } from '../../media';
7
 import type { AudioElement } from '../../media';
6
 import type { AudioElement } from '../../media';
7
+import { connect } from '../../redux';
8
 
8
 
9
 import { _addAudioElement, _removeAudioElement } from '../actions';
9
 import { _addAudioElement, _removeAudioElement } from '../actions';
10
 import type { Sound } from '../reducer';
10
 import type { Sound } from '../reducer';
153
     };
153
     };
154
 }
154
 }
155
 
155
 
156
-// $FlowExpectedError
157
 export default connect(_mapStateToProps, _mapDispatchToProps)(SoundCollection);
156
 export default connect(_mapStateToProps, _mapDispatchToProps)(SoundCollection);

+ 1
- 2
react/features/base/testing/components/TestConnectionInfo.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component, Fragment } from 'react';
3
 import React, { Component, Fragment } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { getLocalParticipant } from '../../participants';
5
 import { getLocalParticipant } from '../../participants';
6
+import { connect } from '../../redux';
7
 
7
 
8
 // FIXME this imports feature to 'base'
8
 // FIXME this imports feature to 'base'
9
 import { statsEmitter } from '../../../connection-indicator';
9
 import { statsEmitter } from '../../../connection-indicator';
215
     };
215
     };
216
 }
216
 }
217
 
217
 
218
-// $FlowExpectedError
219
 export default connect(_mapStateToProps)(TestConnectionInfo);
218
 export default connect(_mapStateToProps)(TestConnectionInfo);

+ 2
- 1
react/features/base/testing/components/TestHint.android.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 import { Text } from 'react-native';
4
 import { Text } from 'react-native';
6
 
5
 
6
+import { connect } from '../../redux';
7
+
7
 import type { TestHintProps } from './AbstractTestHint';
8
 import type { TestHintProps } from './AbstractTestHint';
8
 import { _mapStateToProps } from './AbstractTestHint';
9
 import { _mapStateToProps } from './AbstractTestHint';
9
 
10
 

+ 2
- 2
react/features/base/testing/components/TestHint.ios.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 import { Text } from 'react-native';
4
 import { Text } from 'react-native';
6
 
5
 
6
+import { connect } from '../../redux';
7
+
7
 import type { TestHintProps } from './AbstractTestHint';
8
 import type { TestHintProps } from './AbstractTestHint';
8
 import { _mapStateToProps } from './AbstractTestHint';
9
 import { _mapStateToProps } from './AbstractTestHint';
9
 
10
 
34
     }
35
     }
35
 }
36
 }
36
 
37
 
37
-// $FlowExpectedError
38
 export default connect(_mapStateToProps)(TestHint);
38
 export default connect(_mapStateToProps)(TestHint);

+ 1
- 1
react/features/calendar-sync/components/AddMeetingUrlButton.web.js Прегледај датотеку

2
 
2
 
3
 import Tooltip from '@atlaskit/tooltip';
3
 import Tooltip from '@atlaskit/tooltip';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
-import { connect } from 'react-redux';
6
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
7
 
6
 
8
 import {
7
 import {
10
     sendAnalytics
9
     sendAnalytics
11
 } from '../../analytics';
10
 } from '../../analytics';
12
 import { translate } from '../../base/i18n';
11
 import { translate } from '../../base/i18n';
12
+import { connect } from '../../base/redux';
13
 
13
 
14
 import { updateCalendarEvent } from '../actions';
14
 import { updateCalendarEvent } from '../actions';
15
 
15
 

+ 1
- 1
react/features/calendar-sync/components/CalendarList.native.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { Text, TouchableOpacity, View } from 'react-native';
4
 import { Text, TouchableOpacity, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { openSettings } from '../../mobile/permissions';
6
 import { openSettings } from '../../mobile/permissions';
8
 import { translate } from '../../base/i18n';
7
 import { translate } from '../../base/i18n';
9
 import { AbstractPage } from '../../base/react';
8
 import { AbstractPage } from '../../base/react';
9
+import { connect } from '../../base/redux';
10
 
10
 
11
 import { refreshCalendar } from '../actions';
11
 import { refreshCalendar } from '../actions';
12
 import { isCalendarEnabled } from '../functions';
12
 import { isCalendarEnabled } from '../functions';

+ 1
- 1
react/features/calendar-sync/components/CalendarList.web.js Прегледај датотеку

2
 
2
 
3
 import Spinner from '@atlaskit/spinner';
3
 import Spinner from '@atlaskit/spinner';
4
 import React from 'react';
4
 import React from 'react';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
8
 import { AbstractPage } from '../../base/react';
7
 import { AbstractPage } from '../../base/react';
8
+import { connect } from '../../base/redux';
9
 import { openSettingsDialog, SETTINGS_TABS } from '../../settings';
9
 import { openSettingsDialog, SETTINGS_TABS } from '../../settings';
10
 import {
10
 import {
11
     createCalendarClickedEvent,
11
     createCalendarClickedEvent,

+ 1
- 1
react/features/calendar-sync/components/CalendarListContent.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { appNavigate } from '../../app';
5
 import { appNavigate } from '../../app';
7
 import {
6
 import {
11
 } from '../../analytics';
10
 } from '../../analytics';
12
 import { getLocalizedDateFormatter, translate } from '../../base/i18n';
11
 import { getLocalizedDateFormatter, translate } from '../../base/i18n';
13
 import { NavigateSectionList } from '../../base/react';
12
 import { NavigateSectionList } from '../../base/react';
13
+import { connect } from '../../base/redux';
14
 
14
 
15
 import { refreshCalendar, openUpdateCalendarEventDialog } from '../actions';
15
 import { refreshCalendar, openUpdateCalendarEventDialog } from '../actions';
16
 import { isCalendarEnabled } from '../functions';
16
 import { isCalendarEnabled } from '../functions';

+ 1
- 3
react/features/calendar-sync/components/CalendarListContent.web.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { appNavigate } from '../../app';
5
 import { appNavigate } from '../../app';
7
 import {
6
 import {
10
     sendAnalytics
9
     sendAnalytics
11
 } from '../../analytics';
10
 } from '../../analytics';
12
 import { MeetingsList } from '../../base/react';
11
 import { MeetingsList } from '../../base/react';
12
+import { connect } from '../../base/redux';
13
 
13
 
14
 import { isCalendarEnabled } from '../functions';
14
 import { isCalendarEnabled } from '../functions';
15
 
15
 
173
 }
173
 }
174
 
174
 
175
 export default isCalendarEnabled()
175
 export default isCalendarEnabled()
176
-
177
-    // $FlowExpectedError
178
     ? connect(_mapStateToProps)(CalendarListContent)
176
     ? connect(_mapStateToProps)(CalendarListContent)
179
     : undefined;
177
     : undefined;

+ 1
- 1
react/features/calendar-sync/components/ConferenceNotification.native.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { Text, TouchableOpacity, View } from 'react-native';
4
 import { Text, TouchableOpacity, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { appNavigate } from '../../app';
6
 import { appNavigate } from '../../app';
8
 import { getURLWithoutParamsNormalized } from '../../base/connection';
7
 import { getURLWithoutParamsNormalized } from '../../base/connection';
9
 import { Icon } from '../../base/font-icons';
8
 import { Icon } from '../../base/font-icons';
10
 import { getLocalizedDateFormatter, translate } from '../../base/i18n';
9
 import { getLocalizedDateFormatter, translate } from '../../base/i18n';
10
+import { connect } from '../../base/redux';
11
 import { ASPECT_RATIO_NARROW } from '../../base/responsive-ui';
11
 import { ASPECT_RATIO_NARROW } from '../../base/responsive-ui';
12
 
12
 
13
 import { isCalendarEnabled } from '../functions';
13
 import { isCalendarEnabled } from '../functions';

+ 1
- 1
react/features/calendar-sync/components/UpdateCalendarEventDialog.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { ConfirmDialog } from '../../base/dialog';
5
 import { ConfirmDialog } from '../../base/dialog';
7
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
7
+import { connect } from '../../base/redux';
8
 
8
 
9
 import { updateCalendarEvent } from '../actions';
9
 import { updateCalendarEvent } from '../actions';
10
 
10
 

+ 4
- 3
react/features/calendar-sync/functions.any.js Прегледај датотеку

107
  */
107
  */
108
 function _checkPattern(str, positivePattern, negativePattern) {
108
 function _checkPattern(str, positivePattern, negativePattern) {
109
     const positiveRegExp = new RegExp(positivePattern, 'gi');
109
     const positiveRegExp = new RegExp(positivePattern, 'gi');
110
-    let positiveMatch;
110
+    let positiveMatch = positiveRegExp.exec(str);
111
 
111
 
112
-    while ((positiveMatch = positiveRegExp.exec(str)) !== null) {
113
-        // $FlowFixMe
112
+    while (positiveMatch !== null) {
114
         const url = positiveMatch[0];
113
         const url = positiveMatch[0];
115
 
114
 
116
         if (!new RegExp(negativePattern, 'gi').exec(url)) {
115
         if (!new RegExp(negativePattern, 'gi').exec(url)) {
117
             return url;
116
             return url;
118
         }
117
         }
118
+
119
+        positiveMatch = positiveRegExp.exec(str);
119
     }
120
     }
120
 }
121
 }
121
 
122
 

+ 0
- 1
react/features/calendar-sync/reducer.js Прегледај датотеку

63
             // knownDomains. At this point, it should have already been
63
             // knownDomains. At this point, it should have already been
64
             // translated into the new state format (namely, base/known-domains)
64
             // translated into the new state format (namely, base/known-domains)
65
             // and the app no longer needs it.
65
             // and the app no longer needs it.
66
-            // $FlowFixMe
67
             if (typeof state.knownDomains !== 'undefined') {
66
             if (typeof state.knownDomains !== 'undefined') {
68
                 return set(state, 'knownDomains', undefined);
67
                 return set(state, 'knownDomains', undefined);
69
             }
68
             }

+ 1
- 1
react/features/chat/components/native/Chat.js Прегледај датотеку

3
 import React from 'react';
3
 import React from 'react';
4
 import { SafeAreaView } from 'react-native';
4
 import { SafeAreaView } from 'react-native';
5
 import { GiftedChat } from 'react-native-gifted-chat';
5
 import { GiftedChat } from 'react-native-gifted-chat';
6
-import { connect } from 'react-redux';
7
 
6
 
8
 import { translate } from '../../../base/i18n';
7
 import { translate } from '../../../base/i18n';
9
 import { BackButton, Header, HeaderLabel, Modal } from '../../../base/react';
8
 import { BackButton, Header, HeaderLabel, Modal } from '../../../base/react';
9
+import { connect } from '../../../base/redux';
10
 
10
 
11
 import AbstractChat, {
11
 import AbstractChat, {
12
     _mapDispatchToProps,
12
     _mapDispatchToProps,

+ 1
- 3
react/features/chat/components/native/ChatButton.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
4
-
5
 import { getLocalParticipant } from '../../../base/participants';
3
 import { getLocalParticipant } from '../../../base/participants';
4
+import { connect } from '../../../base/redux';
6
 import {
5
 import {
7
     AbstractButton,
6
     AbstractButton,
8
     type AbstractButtonProps
7
     type AbstractButtonProps
126
     };
125
     };
127
 }
126
 }
128
 
127
 
129
-// $FlowExpectedError
130
 export default connect(_mapStateToProps, _mapDispatchToProps)(ChatButton);
128
 export default connect(_mapStateToProps, _mapDispatchToProps)(ChatButton);

+ 1
- 1
react/features/chat/components/native/ChatMessage.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { Text, View } from 'react-native';
4
 import { Text, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { getLocalizedDateFormatter, translate } from '../../../base/i18n';
6
 import { getLocalizedDateFormatter, translate } from '../../../base/i18n';
8
 import { Avatar } from '../../../base/participants';
7
 import { Avatar } from '../../../base/participants';
8
+import { connect } from '../../../base/redux';
9
 
9
 
10
 import AbstractChatMessage, {
10
 import AbstractChatMessage, {
11
     _mapStateToProps as _abstractMapStateToProps,
11
     _mapStateToProps as _abstractMapStateToProps,

+ 1
- 1
react/features/chat/components/web/Chat.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
5
 import Transition from 'react-transition-group/Transition';
4
 import Transition from 'react-transition-group/Transition';
6
 
5
 
7
 import { translate } from '../../../base/i18n';
6
 import { translate } from '../../../base/i18n';
7
+import { connect } from '../../../base/redux';
8
 
8
 
9
 import AbstractChat, {
9
 import AbstractChat, {
10
     _mapDispatchToProps,
10
     _mapDispatchToProps,

+ 2
- 2
react/features/chat/components/web/ChatCounter.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
4
+
5
+import { connect } from '../../../base/redux';
5
 
6
 
6
 import { getUnreadCount } from '../../functions';
7
 import { getUnreadCount } from '../../functions';
7
 
8
 
57
     };
58
     };
58
 }
59
 }
59
 
60
 
60
-// $FlowExpectedError
61
 export default connect(_mapStateToProps)(ChatCounter);
61
 export default connect(_mapStateToProps)(ChatCounter);

+ 2
- 2
react/features/chat/components/web/ChatInput.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 import Emoji from 'react-emoji-render';
4
 import Emoji from 'react-emoji-render';
6
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
7
 
6
 
7
+import { connect } from '../../../base/redux';
8
+
8
 import { sendMessage } from '../../actions';
9
 import { sendMessage } from '../../actions';
9
 
10
 
10
 import SmileysPanel from './SmileysPanel';
11
 import SmileysPanel from './SmileysPanel';
232
     }
233
     }
233
 }
234
 }
234
 
235
 
235
-// $FlowExpectedError
236
 export default connect()(ChatInput);
236
 export default connect()(ChatInput);

+ 1
- 1
react/features/chat/components/web/DisplayNameForm.js Прегледај датотеку

2
 
2
 
3
 import { FieldTextStateless } from '@atlaskit/field-text';
3
 import { FieldTextStateless } from '@atlaskit/field-text';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
-import { connect } from 'react-redux';
6
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
7
 
6
 
8
 import { translate } from '../../../base/i18n';
7
 import { translate } from '../../../base/i18n';
8
+import { connect } from '../../../base/redux';
9
 import { updateSettings } from '../../../base/settings';
9
 import { updateSettings } from '../../../base/settings';
10
 
10
 
11
 /**
11
 /**

+ 1
- 2
react/features/conference/components/native/Conference.js Прегледај датотеку

3
 import React from 'react';
3
 import React from 'react';
4
 
4
 
5
 import { BackHandler, SafeAreaView, StatusBar, View } from 'react-native';
5
 import { BackHandler, SafeAreaView, StatusBar, View } from 'react-native';
6
-import { connect as reactReduxConnect } from 'react-redux';
7
 
6
 
8
 import { appNavigate } from '../../../app';
7
 import { appNavigate } from '../../../app';
9
 import { connect, disconnect } from '../../../base/connection';
8
 import { connect, disconnect } from '../../../base/connection';
10
 import { getParticipantCount } from '../../../base/participants';
9
 import { getParticipantCount } from '../../../base/participants';
11
 import { Container, LoadingIndicator, TintedView } from '../../../base/react';
10
 import { Container, LoadingIndicator, TintedView } from '../../../base/react';
11
+import { connect as reactReduxConnect } from '../../../base/redux';
12
 import {
12
 import {
13
     isNarrowAspectRatio,
13
     isNarrowAspectRatio,
14
     makeAspectRatioAware
14
     makeAspectRatioAware
540
     };
540
     };
541
 }
541
 }
542
 
542
 
543
-// $FlowFixMe
544
 export default reactReduxConnect(_mapStateToProps, _mapDispatchToProps)(
543
 export default reactReduxConnect(_mapStateToProps, _mapDispatchToProps)(
545
     makeAspectRatioAware(Conference));
544
     makeAspectRatioAware(Conference));

+ 1
- 2
react/features/conference/components/native/DisplayNameLabel.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { Text, View } from 'react-native';
4
 import { Text, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import {
6
 import {
8
     getLocalParticipant,
7
     getLocalParticipant,
9
     getParticipantDisplayName,
8
     getParticipantDisplayName,
10
     shouldRenderParticipantVideo
9
     shouldRenderParticipantVideo
11
 } from '../../../base/participants';
10
 } from '../../../base/participants';
11
+import { connect } from '../../../base/redux';
12
 
12
 
13
 import { shouldDisplayTileView } from '../../../video-layout';
13
 import { shouldDisplayTileView } from '../../../video-layout';
14
 
14
 
76
     };
76
     };
77
 }
77
 }
78
 
78
 
79
-// $FlowExpectedError
80
 export default connect(_mapStateToProps)(DisplayNameLabel);
79
 export default connect(_mapStateToProps)(DisplayNameLabel);

+ 1
- 2
react/features/conference/components/native/Labels.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { TouchableOpacity, View } from 'react-native';
4
 import { TouchableOpacity, View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
6
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
7
+import { connect } from '../../../base/redux';
8
 import {
8
 import {
9
     isNarrowAspectRatio,
9
     isNarrowAspectRatio,
10
     makeAspectRatioAware
10
     makeAspectRatioAware
370
     };
370
     };
371
 }
371
 }
372
 
372
 
373
-// $FlowExpectedError
374
 export default connect(_mapStateToProps)(makeAspectRatioAware(Labels));
373
 export default connect(_mapStateToProps)(makeAspectRatioAware(Labels));

+ 1
- 2
react/features/conference/components/native/NavigationBar.js Прегледај датотеку

4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
 import { SafeAreaView, Text, View } from 'react-native';
5
 import { SafeAreaView, Text, View } from 'react-native';
6
 import LinearGradient from 'react-native-linear-gradient';
6
 import LinearGradient from 'react-native-linear-gradient';
7
-import { connect } from 'react-redux';
8
 
7
 
9
 import { getConferenceName } from '../../../base/conference';
8
 import { getConferenceName } from '../../../base/conference';
9
+import { connect } from '../../../base/redux';
10
 import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
10
 import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
11
 import { isToolboxVisible } from '../../../toolbox';
11
 import { isToolboxVisible } from '../../../toolbox';
12
 
12
 
87
     };
87
     };
88
 }
88
 }
89
 
89
 
90
-// $FlowExpectedError
91
 export default connect(_mapStateToProps)(NavigationBar);
90
 export default connect(_mapStateToProps)(NavigationBar);

+ 1
- 2
react/features/conference/components/web/Conference.js Прегледај датотеку

2
 
2
 
3
 import _ from 'lodash';
3
 import _ from 'lodash';
4
 import React from 'react';
4
 import React from 'react';
5
-import { connect as reactReduxConnect } from 'react-redux';
6
 
5
 
7
 import VideoLayout from '../../../../../modules/UI/videolayout/VideoLayout';
6
 import VideoLayout from '../../../../../modules/UI/videolayout/VideoLayout';
8
 
7
 
9
 import { obtainConfig } from '../../../base/config';
8
 import { obtainConfig } from '../../../base/config';
10
 import { connect, disconnect } from '../../../base/connection';
9
 import { connect, disconnect } from '../../../base/connection';
11
 import { translate } from '../../../base/i18n';
10
 import { translate } from '../../../base/i18n';
11
+import { connect as reactReduxConnect } from '../../../base/redux';
12
 import { Chat } from '../../../chat';
12
 import { Chat } from '../../../chat';
13
 import { Filmstrip } from '../../../filmstrip';
13
 import { Filmstrip } from '../../../filmstrip';
14
 import { CalleeInfoContainer } from '../../../invite';
14
 import { CalleeInfoContainer } from '../../../invite';
293
     };
293
     };
294
 }
294
 }
295
 
295
 
296
-// $FlowExpectedError
297
 export default reactReduxConnect(_mapStateToProps)(translate(Conference));
296
 export default reactReduxConnect(_mapStateToProps)(translate(Conference));

+ 1
- 2
react/features/conference/components/web/Labels.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
5
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
6
+import { connect } from '../../../base/redux';
7
 
7
 
8
 import AbstractLabels, {
8
 import AbstractLabels, {
9
     _abstractMapStateToProps as _mapStateToProps,
9
     _abstractMapStateToProps as _mapStateToProps,
105
     _renderVideoQualityLabel: () => React$Element<*>;
105
     _renderVideoQualityLabel: () => React$Element<*>;
106
 }
106
 }
107
 
107
 
108
-// $FlowExpectedError
109
 export default connect(_mapStateToProps)(Labels);
108
 export default connect(_mapStateToProps)(Labels);

+ 1
- 1
react/features/conference/components/web/Notice.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { translate } from '../../../base/i18n';
5
 import { translate } from '../../../base/i18n';
6
+import { connect } from '../../../base/redux';
7
 
7
 
8
 declare var config: Object;
8
 declare var config: Object;
9
 
9
 

+ 1
- 2
react/features/conference/components/web/Subject.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
5
+import { connect } from '../../../base/redux';
6
 import { isToolboxVisible } from '../../../toolbox';
6
 import { isToolboxVisible } from '../../../toolbox';
7
 
7
 
8
 /**
8
 /**
65
     };
65
     };
66
 }
66
 }
67
 
67
 
68
-// $FlowExpectedError
69
 export default connect(_mapStateToProps)(Subject);
68
 export default connect(_mapStateToProps)(Subject);

+ 1
- 1
react/features/deep-linking/components/DeepLinkingDesktopPage.web.js Прегледај датотеку

3
 import Button, { ButtonGroup } from '@atlaskit/button';
3
 import Button, { ButtonGroup } from '@atlaskit/button';
4
 import { AtlasKitThemeProvider } from '@atlaskit/theme';
4
 import { AtlasKitThemeProvider } from '@atlaskit/theme';
5
 import React, { Component } from 'react';
5
 import React, { Component } from 'react';
6
-import { connect } from 'react-redux';
6
+import { connect } from '../../base/redux';
7
 import type { Dispatch } from 'redux';
7
 import type { Dispatch } from 'redux';
8
 
8
 
9
 import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
9
 import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';

+ 1
- 1
react/features/deep-linking/components/DeepLinkingMobilePage.web.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
4
+import { connect } from '../../base/redux';
5
 
5
 
6
 import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
6
 import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
7
 import { translate, translateToHTML } from '../../base/i18n';
7
 import { translate, translateToHTML } from '../../base/i18n';

+ 1
- 1
react/features/desktop-picker/components/DesktopPicker.js Прегледај датотеку

2
 
2
 
3
 import Tabs from '@atlaskit/tabs';
3
 import Tabs from '@atlaskit/tabs';
4
 import React, { PureComponent } from 'react';
4
 import React, { PureComponent } from 'react';
5
-import { connect } from 'react-redux';
5
+import { connect } from '../../base/redux';
6
 import type { Dispatch } from 'redux';
6
 import type { Dispatch } from 'redux';
7
 
7
 
8
 import { Dialog, hideDialog } from '../../base/dialog';
8
 import { Dialog, hideDialog } from '../../base/dialog';

+ 1
- 1
react/features/display-name/components/DisplayName.web.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
4
+import { connect } from '../../base/redux';
5
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
6
 
6
 
7
 import { appendSuffix } from '../functions';
7
 import { appendSuffix } from '../functions';

+ 1
- 2
react/features/display-name/components/DisplayNamePrompt.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
4
+import { connect } from '../../base/redux';
5
 
5
 
6
 import { InputDialog } from '../../base/dialog';
6
 import { InputDialog } from '../../base/dialog';
7
 
7
 
27
     _onSetDisplayName: string => boolean;
27
     _onSetDisplayName: string => boolean;
28
 }
28
 }
29
 
29
 
30
-// $FlowExpectedError
31
 export default connect()(DisplayNamePrompt);
30
 export default connect()(DisplayNamePrompt);

+ 1
- 1
react/features/display-name/components/DisplayNamePrompt.web.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
4
+import { connect } from '../../base/redux';
5
 import { FieldTextStateless as TextField } from '@atlaskit/field-text';
5
 import { FieldTextStateless as TextField } from '@atlaskit/field-text';
6
 
6
 
7
 import { Dialog } from '../../base/dialog';
7
 import { Dialog } from '../../base/dialog';

+ 1
- 1
react/features/feedback/components/FeedbackDialog.web.js Прегледај датотеку

4
 import StarIcon from '@atlaskit/icon/glyph/star';
4
 import StarIcon from '@atlaskit/icon/glyph/star';
5
 import StarFilledIcon from '@atlaskit/icon/glyph/star-filled';
5
 import StarFilledIcon from '@atlaskit/icon/glyph/star-filled';
6
 import React, { Component } from 'react';
6
 import React, { Component } from 'react';
7
-import { connect } from 'react-redux';
7
+import { connect } from '../../base/redux';
8
 import type { Dispatch } from 'redux';
8
 import type { Dispatch } from 'redux';
9
 
9
 
10
 import {
10
 import {

+ 1
- 2
react/features/filmstrip/components/native/Filmstrip.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { ScrollView } from 'react-native';
4
 import { ScrollView } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { Container, Platform } from '../../../base/react';
6
 import { Container, Platform } from '../../../base/react';
7
+import { connect } from '../../../base/redux';
8
 import {
8
 import {
9
     isNarrowAspectRatio,
9
     isNarrowAspectRatio,
10
     makeAspectRatioAware
10
     makeAspectRatioAware
219
     };
219
     };
220
 }
220
 }
221
 
221
 
222
-// $FlowExpectedError
223
 export default connect(_mapStateToProps)(makeAspectRatioAware(Filmstrip));
222
 export default connect(_mapStateToProps)(makeAspectRatioAware(Filmstrip));

+ 1
- 2
react/features/filmstrip/components/native/LocalThumbnail.js Прегледај датотеку

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { View } from 'react-native';
4
 import { View } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { getLocalParticipant } from '../../../base/participants';
6
 import { getLocalParticipant } from '../../../base/participants';
7
+import { connect } from '../../../base/redux';
8
 
8
 
9
 import styles from '../styles';
9
 import styles from '../styles';
10
 import Thumbnail from './Thumbnail';
10
 import Thumbnail from './Thumbnail';
60
     };
60
     };
61
 }
61
 }
62
 
62
 
63
-// $FlowExpectedError
64
 export default connect(_mapStateToProps)(LocalThumbnail);
63
 export default connect(_mapStateToProps)(LocalThumbnail);

+ 1
- 2
react/features/filmstrip/components/native/Thumbnail.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 import type { Dispatch } from 'redux';
4
 import type { Dispatch } from 'redux';
6
 
5
 
7
 import { ColorSchemeRegistry } from '../../../base/color-scheme';
6
 import { ColorSchemeRegistry } from '../../../base/color-scheme';
14
     pinParticipant
13
     pinParticipant
15
 } from '../../../base/participants';
14
 } from '../../../base/participants';
16
 import { Container } from '../../../base/react';
15
 import { Container } from '../../../base/react';
16
+import { connect } from '../../../base/redux';
17
 import { StyleType } from '../../../base/styles';
17
 import { StyleType } from '../../../base/styles';
18
 import { getTrackByMediaTypeAndParticipant } from '../../../base/tracks';
18
 import { getTrackByMediaTypeAndParticipant } from '../../../base/tracks';
19
 
19
 
255
     };
255
     };
256
 }
256
 }
257
 
257
 
258
-// $FlowExpectedError
259
 export default connect(_mapStateToProps, _mapDispatchToProps)(Thumbnail);
258
 export default connect(_mapStateToProps, _mapDispatchToProps)(Thumbnail);

+ 1
- 2
react/features/filmstrip/components/native/TileView.js Прегледај датотеку

6
     TouchableWithoutFeedback,
6
     TouchableWithoutFeedback,
7
     View
7
     View
8
 } from 'react-native';
8
 } from 'react-native';
9
-import { connect } from 'react-redux';
10
 import type { Dispatch } from 'redux';
9
 import type { Dispatch } from 'redux';
11
 
10
 
12
 import {
11
 import {
13
     getNearestReceiverVideoQualityLevel,
12
     getNearestReceiverVideoQualityLevel,
14
     setMaxReceiverVideoQuality
13
     setMaxReceiverVideoQuality
15
 } from '../../../base/conference';
14
 } from '../../../base/conference';
15
+import { connect } from '../../../base/redux';
16
 import {
16
 import {
17
     DimensionsDetector,
17
     DimensionsDetector,
18
     isNarrowAspectRatio,
18
     isNarrowAspectRatio,
335
     };
335
     };
336
 }
336
 }
337
 
337
 
338
-// $FlowExpectedError
339
 export default connect(_mapStateToProps)(makeAspectRatioAware(TileView));
338
 export default connect(_mapStateToProps)(makeAspectRatioAware(TileView));

+ 1
- 2
react/features/filmstrip/components/web/Filmstrip.js Прегледај датотеку

2
 
2
 
3
 import _ from 'lodash';
3
 import _ from 'lodash';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
-import { connect } from 'react-redux';
6
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
7
 
6
 
8
 import {
7
 import {
10
     createToolbarEvent,
9
     createToolbarEvent,
11
     sendAnalytics
10
     sendAnalytics
12
 } from '../../../analytics';
11
 } from '../../../analytics';
12
+import { connect } from '../../../base/redux';
13
 import { dockToolbox } from '../../../toolbox';
13
 import { dockToolbox } from '../../../toolbox';
14
 
14
 
15
 import { setFilmstripHovered, setFilmstripVisible } from '../../actions';
15
 import { setFilmstripHovered, setFilmstripVisible } from '../../actions';
319
     };
319
     };
320
 }
320
 }
321
 
321
 
322
-// $FlowExpectedError
323
 export default connect(_mapStateToProps)(Filmstrip);
322
 export default connect(_mapStateToProps)(Filmstrip);

+ 1
- 2
react/features/filmstrip/components/web/Toolbar.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
5
+import { connect } from '../../../base/redux';
6
 import { SettingsButton } from '../../../settings';
6
 import { SettingsButton } from '../../../settings';
7
 import {
7
 import {
8
     AudioMuteButton,
8
     AudioMuteButton,
90
     };
90
     };
91
 }
91
 }
92
 
92
 
93
-// $FlowExpectedError
94
 export default connect(_mapStateToProps)(Toolbar);
93
 export default connect(_mapStateToProps)(Toolbar);

+ 1
- 1
react/features/invite/components/InfoDialogButton.web.js Прегледај датотеку

2
 
2
 
3
 import InlineDialog from '@atlaskit/inline-dialog';
3
 import InlineDialog from '@atlaskit/inline-dialog';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
-import { connect } from 'react-redux';
6
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
7
 
6
 
8
 import { createToolbarEvent, sendAnalytics } from '../../analytics';
7
 import { createToolbarEvent, sendAnalytics } from '../../analytics';
11
 import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet';
10
 import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet';
12
 import { getParticipantCount } from '../../base/participants';
11
 import { getParticipantCount } from '../../base/participants';
13
 import { OverflowMenuItem } from '../../base/toolbox';
12
 import { OverflowMenuItem } from '../../base/toolbox';
13
+import { connect } from '../../base/redux';
14
 import { getActiveSession } from '../../recording';
14
 import { getActiveSession } from '../../recording';
15
 import { ToolbarButton } from '../../toolbox';
15
 import { ToolbarButton } from '../../toolbox';
16
 import { updateDialInNumbers } from '../actions';
16
 import { updateDialInNumbers } from '../actions';

+ 1
- 1
react/features/invite/components/InviteButton.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
4
 import type { Dispatch } from 'redux';
3
 import type { Dispatch } from 'redux';
5
 
4
 
6
 import { translate } from '../../base/i18n';
5
 import { translate } from '../../base/i18n';
6
+import { connect } from '../../base/redux';
7
 import { AbstractButton } from '../../base/toolbox';
7
 import { AbstractButton } from '../../base/toolbox';
8
 import type { AbstractButtonProps } from '../../base/toolbox';
8
 import type { AbstractButtonProps } from '../../base/toolbox';
9
 import { beginShareRoom } from '../../share-room';
9
 import { beginShareRoom } from '../../share-room';

+ 1
- 1
react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js Прегледај датотеку

11
     TouchableOpacity,
11
     TouchableOpacity,
12
     View
12
     View
13
 } from 'react-native';
13
 } from 'react-native';
14
-import { connect } from 'react-redux';
15
 
14
 
16
 import { Icon } from '../../../../base/font-icons';
15
 import { Icon } from '../../../../base/font-icons';
17
 import { translate } from '../../../../base/i18n';
16
 import { translate } from '../../../../base/i18n';
24
     Modal,
23
     Modal,
25
     type Item
24
     type Item
26
 } from '../../../../base/react';
25
 } from '../../../../base/react';
26
+import { connect } from '../../../../base/redux';
27
 
27
 
28
 import { setAddPeopleDialogVisible } from '../../../actions';
28
 import { setAddPeopleDialogVisible } from '../../../actions';
29
 
29
 

+ 1
- 1
react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js Прегледај датотеку

3
 import Avatar from '@atlaskit/avatar';
3
 import Avatar from '@atlaskit/avatar';
4
 import InlineMessage from '@atlaskit/inline-message';
4
 import InlineMessage from '@atlaskit/inline-message';
5
 import React from 'react';
5
 import React from 'react';
6
-import { connect } from 'react-redux';
7
 import type { Dispatch } from 'redux';
6
 import type { Dispatch } from 'redux';
8
 
7
 
9
 import { createInviteDialogEvent, sendAnalytics } from '../../../../analytics';
8
 import { createInviteDialogEvent, sendAnalytics } from '../../../../analytics';
11
 import { translate, translateToHTML } from '../../../../base/i18n';
10
 import { translate, translateToHTML } from '../../../../base/i18n';
12
 import { getLocalParticipant } from '../../../../base/participants';
11
 import { getLocalParticipant } from '../../../../base/participants';
13
 import { MultiSelectAutocomplete } from '../../../../base/react';
12
 import { MultiSelectAutocomplete } from '../../../../base/react';
13
+import { connect } from '../../../../base/redux';
14
 
14
 
15
 import AbstractAddPeopleDialog, {
15
 import AbstractAddPeopleDialog, {
16
     type Props as AbstractProps,
16
     type Props as AbstractProps,

+ 1
- 2
react/features/invite/components/callee-info/CalleeInfo.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { MEDIA_TYPE } from '../../../base/media';
5
 import { MEDIA_TYPE } from '../../../base/media';
7
 import {
6
 import {
12
     getParticipantPresenceStatus
11
     getParticipantPresenceStatus
13
 } from '../../../base/participants';
12
 } from '../../../base/participants';
14
 import { Container, Text } from '../../../base/react';
13
 import { Container, Text } from '../../../base/react';
14
+import { connect } from '../../../base/redux';
15
 import { isLocalTrackMuted } from '../../../base/tracks';
15
 import { isLocalTrackMuted } from '../../../base/tracks';
16
 import { CALLING, PresenceLabel } from '../../../presence-status';
16
 import { CALLING, PresenceLabel } from '../../../presence-status';
17
 
17
 
158
     };
158
     };
159
 }
159
 }
160
 
160
 
161
-// $FlowExpectedError
162
 export default connect(_mapStateToProps)(CalleeInfo);
161
 export default connect(_mapStateToProps)(CalleeInfo);

+ 2
- 2
react/features/invite/components/callee-info/CalleeInfoContainer.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
4
+
5
+import { connect } from '../../../base/redux';
5
 
6
 
6
 import CalleeInfo from './CalleeInfo';
7
 import CalleeInfo from './CalleeInfo';
7
 
8
 
61
     };
62
     };
62
 }
63
 }
63
 
64
 
64
-// $FlowExpectedError
65
 export default connect(_mapStateToProps)(CalleeInfoContainer);
65
 export default connect(_mapStateToProps)(CalleeInfoContainer);

+ 1
- 1
react/features/invite/components/info-dialog/InfoDialog.web.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 import type { Dispatch } from 'redux';
4
 import type { Dispatch } from 'redux';
6
 
5
 
7
 import { setPassword } from '../../../base/conference';
6
 import { setPassword } from '../../../base/conference';
8
 import { getInviteURL } from '../../../base/connection';
7
 import { getInviteURL } from '../../../base/connection';
9
 import { Dialog } from '../../../base/dialog';
8
 import { Dialog } from '../../../base/dialog';
10
 import { translate } from '../../../base/i18n';
9
 import { translate } from '../../../base/i18n';
10
+import { connect } from '../../../base/redux';
11
 import { isLocalParticipantModerator } from '../../../base/participants';
11
 import { isLocalParticipantModerator } from '../../../base/participants';
12
 
12
 
13
 import { _getDefaultPhoneNumber, getDialInfoPageURL } from '../../functions';
13
 import { _getDefaultPhoneNumber, getDialInfoPageURL } from '../../functions';

+ 1
- 2
react/features/large-video/components/LargeVideo.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { ColorSchemeRegistry } from '../../base/color-scheme';
5
 import { ColorSchemeRegistry } from '../../base/color-scheme';
7
 import { ParticipantView } from '../../base/participants';
6
 import { ParticipantView } from '../../base/participants';
7
+import { connect } from '../../base/redux';
8
 import { DimensionsDetector } from '../../base/responsive-ui';
8
 import { DimensionsDetector } from '../../base/responsive-ui';
9
 import { StyleType } from '../../base/styles';
9
 import { StyleType } from '../../base/styles';
10
 
10
 
159
     };
159
     };
160
 }
160
 }
161
 
161
 
162
-// $FlowExpectedError
163
 export default connect(_mapStateToProps)(LargeVideo);
162
 export default connect(_mapStateToProps)(LargeVideo);

+ 1
- 1
react/features/local-recording/components/LocalRecordingInfoDialog.js Прегледај датотеку

2
 
2
 
3
 import moment from 'moment';
3
 import moment from 'moment';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
-import { connect } from 'react-redux';
6
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
7
 
6
 
8
 import { Dialog } from '../../base/dialog';
7
 import { Dialog } from '../../base/dialog';
11
     PARTICIPANT_ROLE,
10
     PARTICIPANT_ROLE,
12
     getLocalParticipant
11
     getLocalParticipant
13
 } from '../../base/participants';
12
 } from '../../base/participants';
13
+import { connect } from '../../base/redux';
14
 
14
 
15
 import { statsUpdate } from '../actions';
15
 import { statsUpdate } from '../actions';
16
 import { recordingController } from '../controller';
16
 import { recordingController } from '../controller';

+ 1
- 1
react/features/local-recording/components/LocalRecordingLabel.web.js Прегледај датотеку

2
 
2
 
3
 import Tooltip from '@atlaskit/tooltip';
3
 import Tooltip from '@atlaskit/tooltip';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { translate } from '../../base/i18n/index';
6
 import { translate } from '../../base/i18n/index';
8
 import { CircularLabel } from '../../base/label/index';
7
 import { CircularLabel } from '../../base/label/index';
8
+import { connect } from '../../base/redux';
9
 
9
 
10
 
10
 
11
 /**
11
 /**

+ 1
- 1
react/features/mobile/audio-mode/components/AudioRouteButton.js Прегледај датотеку

7
     requireNativeComponent,
7
     requireNativeComponent,
8
     View
8
     View
9
 } from 'react-native';
9
 } from 'react-native';
10
-import { connect } from 'react-redux';
11
 
10
 
12
 import { openDialog } from '../../../base/dialog';
11
 import { openDialog } from '../../../base/dialog';
13
 import { translate } from '../../../base/i18n';
12
 import { translate } from '../../../base/i18n';
13
+import { connect } from '../../../base/redux';
14
 import { AbstractButton } from '../../../base/toolbox';
14
 import { AbstractButton } from '../../../base/toolbox';
15
 import type { AbstractButtonProps } from '../../../base/toolbox';
15
 import type { AbstractButtonProps } from '../../../base/toolbox';
16
 
16
 

+ 1
- 1
react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js Прегледај датотеку

3
 import _ from 'lodash';
3
 import _ from 'lodash';
4
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
5
 import { NativeModules, Text, TouchableHighlight, View } from 'react-native';
5
 import { NativeModules, Text, TouchableHighlight, View } from 'react-native';
6
-import { connect } from 'react-redux';
7
 
6
 
8
 import { hideDialog, BottomSheet } from '../../../base/dialog';
7
 import { hideDialog, BottomSheet } from '../../../base/dialog';
9
 import { translate } from '../../../base/i18n';
8
 import { translate } from '../../../base/i18n';
10
 import { Icon } from '../../../base/font-icons';
9
 import { Icon } from '../../../base/font-icons';
10
+import { connect } from '../../../base/redux';
11
 import { ColorPalette } from '../../../base/styles';
11
 import { ColorPalette } from '../../../base/styles';
12
 
12
 
13
 import styles from './styles';
13
 import styles from './styles';

+ 1
- 2
react/features/mobile/incoming-call/components/AnswerButton.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
4
-
5
 import { translate } from '../../../base/i18n';
3
 import { translate } from '../../../base/i18n';
4
+import { connect } from '../../../base/redux';
6
 import { AbstractButton } from '../../../base/toolbox';
5
 import { AbstractButton } from '../../../base/toolbox';
7
 import type { AbstractButtonProps } from '../../../base/toolbox';
6
 import type { AbstractButtonProps } from '../../../base/toolbox';
8
 
7
 

+ 1
- 2
react/features/mobile/incoming-call/components/DeclineButton.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
4
-
5
 import { translate } from '../../../base/i18n';
3
 import { translate } from '../../../base/i18n';
4
+import { connect } from '../../../base/redux';
6
 import { AbstractButton } from '../../../base/toolbox';
5
 import { AbstractButton } from '../../../base/toolbox';
7
 import type { AbstractButtonProps } from '../../../base/toolbox';
6
 import type { AbstractButtonProps } from '../../../base/toolbox';
8
 
7
 

+ 1
- 1
react/features/mobile/incoming-call/components/IncomingCallPage.js Прегледај датотеку

3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 import { Image, Text, View } from 'react-native';
4
 import { Image, Text, View } from 'react-native';
5
 import LinearGradient from 'react-native-linear-gradient';
5
 import LinearGradient from 'react-native-linear-gradient';
6
-import { connect } from 'react-redux';
7
 
6
 
8
 import { translate } from '../../../base/i18n';
7
 import { translate } from '../../../base/i18n';
9
 import { Avatar } from '../../../base/participants';
8
 import { Avatar } from '../../../base/participants';
9
+import { connect } from '../../../base/redux';
10
 
10
 
11
 import AnswerButton from './AnswerButton';
11
 import AnswerButton from './AnswerButton';
12
 import DeclineButton from './DeclineButton';
12
 import DeclineButton from './DeclineButton';

+ 1
- 2
react/features/mobile/network-activity/components/NetworkActivityIndicator.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { LoadingIndicator } from '../../../base/react';
5
 import { LoadingIndicator } from '../../../base/react';
6
+import { connect } from '../../../base/redux';
7
 
7
 
8
 /**
8
 /**
9
  * The type of the React {@code Component} props of
9
  * The type of the React {@code Component} props of
52
     };
52
     };
53
 }
53
 }
54
 
54
 
55
-// $FlowExpectedError
56
 export default connect(_mapStateToProps)(NetworkActivityIndicator);
55
 export default connect(_mapStateToProps)(NetworkActivityIndicator);

+ 1
- 2
react/features/mobile/picture-in-picture/components/PictureInPictureButton.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { connect } from 'react-redux';
4
-
5
 import { getAppProp } from '../../../base/app';
3
 import { getAppProp } from '../../../base/app';
6
 import { translate } from '../../../base/i18n';
4
 import { translate } from '../../../base/i18n';
5
+import { connect } from '../../../base/redux';
7
 import { AbstractButton } from '../../../base/toolbox';
6
 import { AbstractButton } from '../../../base/toolbox';
8
 import type { AbstractButtonProps } from '../../../base/toolbox';
7
 import type { AbstractButtonProps } from '../../../base/toolbox';
9
 
8
 

+ 2
- 2
react/features/notifications/components/NotificationsContainer.native.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { View } from 'react-native';
4
 import { View } from 'react-native';
5
-import { connect } from 'react-redux';
5
+
6
+import { connect } from '../../base/redux';
6
 
7
 
7
 import AbstractNotificationsContainer, {
8
 import AbstractNotificationsContainer, {
8
     _abstractMapStateToProps,
9
     _abstractMapStateToProps,
63
     _onDismissed: number => void;
64
     _onDismissed: number => void;
64
 }
65
 }
65
 
66
 
66
-// $FlowExpectedError
67
 export default connect(_abstractMapStateToProps)(NotificationsContainer);
67
 export default connect(_abstractMapStateToProps)(NotificationsContainer);

+ 2
- 2
react/features/notifications/components/NotificationsContainer.web.js Прегледај датотеку

2
 
2
 
3
 import { FlagGroup } from '@atlaskit/flag';
3
 import { FlagGroup } from '@atlaskit/flag';
4
 import React from 'react';
4
 import React from 'react';
5
-import { connect } from 'react-redux';
5
+
6
+import { connect } from '../../base/redux';
6
 
7
 
7
 import AbstractNotificationsContainer, {
8
 import AbstractNotificationsContainer, {
8
     _abstractMapStateToProps as _mapStateToProps,
9
     _abstractMapStateToProps as _mapStateToProps,
63
     }
64
     }
64
 }
65
 }
65
 
66
 
66
-// $FlowExpectedError
67
 export default connect(_mapStateToProps)(NotificationsContainer);
67
 export default connect(_mapStateToProps)(NotificationsContainer);

+ 1
- 2
react/features/overlay/components/FilmstripOnlyOverlayFrame.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import {
5
 import {
7
     Avatar,
6
     Avatar,
8
     getAvatarURL,
7
     getAvatarURL,
9
     getLocalParticipant
8
     getLocalParticipant
10
 } from '../../base/participants';
9
 } from '../../base/participants';
10
+import { connect } from '../../base/redux';
11
 
11
 
12
 import OverlayFrame from './OverlayFrame';
12
 import OverlayFrame from './OverlayFrame';
13
 
13
 
112
     };
112
     };
113
 }
113
 }
114
 
114
 
115
-// $FlowExpectedError
116
 export default connect(_mapStateToProps)(FilmstripOnlyOverlayFrame);
115
 export default connect(_mapStateToProps)(FilmstripOnlyOverlayFrame);

+ 2
- 2
react/features/overlay/components/OverlayContainer.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
4
+
5
+import { connect } from '../../base/redux';
5
 
6
 
6
 import { getOverlayToRender } from '../functions';
7
 import { getOverlayToRender } from '../functions';
7
 
8
 
58
     };
59
     };
59
 }
60
 }
60
 
61
 
61
-// $FlowExpectedError
62
 export default connect(_mapStateToProps)(OverlayContainer);
62
 export default connect(_mapStateToProps)(OverlayContainer);

+ 1
- 1
react/features/overlay/components/PageReloadFilmstripOnlyOverlay.js Прегледај датотеку

1
 import React from 'react';
1
 import React from 'react';
2
-import { connect } from 'react-redux';
3
 
2
 
4
 import { translate } from '../../base/i18n';
3
 import { translate } from '../../base/i18n';
4
+import { connect } from '../../base/redux';
5
 
5
 
6
 import AbstractPageReloadOverlay, { abstractMapStateToProps }
6
 import AbstractPageReloadOverlay, { abstractMapStateToProps }
7
     from './AbstractPageReloadOverlay';
7
     from './AbstractPageReloadOverlay';

+ 1
- 1
react/features/overlay/components/PageReloadOverlay.native.js Прегледај датотеку

2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
 import { Text } from 'react-native';
4
 import { Text } from 'react-native';
5
-import { connect } from 'react-redux';
6
 
5
 
7
 import { appNavigate, reloadNow } from '../../app';
6
 import { appNavigate, reloadNow } from '../../app';
8
 import { ColorSchemeRegistry } from '../../base/color-scheme';
7
 import { ColorSchemeRegistry } from '../../base/color-scheme';
9
 import { ConfirmDialog } from '../../base/dialog';
8
 import { ConfirmDialog } from '../../base/dialog';
10
 import { translate } from '../../base/i18n';
9
 import { translate } from '../../base/i18n';
10
+import { connect } from '../../base/redux';
11
 import { StyleType } from '../../base/styles';
11
 import { StyleType } from '../../base/styles';
12
 
12
 
13
 import AbstractPageReloadOverlay, {
13
 import AbstractPageReloadOverlay, {

+ 1
- 1
react/features/overlay/components/PageReloadOverlay.web.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { translate } from '../../base/i18n';
5
 import { translate } from '../../base/i18n';
6
+import { connect } from '../../base/redux';
7
 
7
 
8
 import AbstractPageReloadOverlay, {
8
 import AbstractPageReloadOverlay, {
9
     abstractMapStateToProps,
9
     abstractMapStateToProps,

+ 1
- 1
react/features/overlay/components/ReloadButton.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { reloadNow } from '../../app';
5
 import { reloadNow } from '../../app';
7
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
7
+import { connect } from '../../base/redux';
8
 
8
 
9
 /**
9
 /**
10
  * The type of the React {@code Component} props of {@link ReloadButton}.
10
  * The type of the React {@code Component} props of {@link ReloadButton}.

+ 1
- 1
react/features/overlay/components/UserMediaPermissionsFilmstripOnlyOverlay.js Прегледај датотеку

1
 import React from 'react';
1
 import React from 'react';
2
-import { connect } from 'react-redux';
3
 
2
 
4
 import { translate, translateToHTML } from '../../base/i18n';
3
 import { translate, translateToHTML } from '../../base/i18n';
4
+import { connect } from '../../base/redux';
5
 
5
 
6
 import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
6
 import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
7
     from './AbstractUserMediaPermissionsOverlay';
7
     from './AbstractUserMediaPermissionsOverlay';

+ 1
- 1
react/features/overlay/components/UserMediaPermissionsOverlay.js Прегледај датотеку

1
 /* global interfaceConfig */
1
 /* global interfaceConfig */
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { translate, translateToHTML } from '../../base/i18n';
5
 import { translate, translateToHTML } from '../../base/i18n';
6
+import { connect } from '../../base/redux';
7
 
7
 
8
 import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
8
 import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
9
     from './AbstractUserMediaPermissionsOverlay';
9
     from './AbstractUserMediaPermissionsOverlay';

+ 1
- 1
react/features/presence-status/components/PresenceLabel.js Прегледај датотеку

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from 'react-redux';
5
 
4
 
6
 import { translate } from '../../base/i18n';
5
 import { translate } from '../../base/i18n';
7
 import { getParticipantById } from '../../base/participants';
6
 import { getParticipantById } from '../../base/participants';
8
 import { Text } from '../../base/react';
7
 import { Text } from '../../base/react';
8
+import { connect } from '../../base/redux';
9
 
9
 
10
 import { STATUS_TO_I18N_KEY } from '../constants';
10
 import { STATUS_TO_I18N_KEY } from '../constants';
11
 
11
 

+ 2
- 3
react/features/recent-list/components/RecentList.native.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
5
 import type { Dispatch } from 'redux';
4
 import type { Dispatch } from 'redux';
6
 
5
 
7
 import { getDefaultURL } from '../../app';
6
 import { getDefaultURL } from '../../app';
8
 import { translate } from '../../base/i18n';
7
 import { translate } from '../../base/i18n';
9
-import { NavigateSectionList } from '../../base/react';
10
-import type { Section } from '../../base/react';
8
+import { NavigateSectionList, type Section } from '../../base/react';
9
+import { connect } from '../../base/redux';
11
 
10
 
12
 import { deleteRecentListEntry } from '../actions';
11
 import { deleteRecentListEntry } from '../actions';
13
 import { isRecentListEnabled, toDisplayableList } from '../functions';
12
 import { isRecentListEnabled, toDisplayableList } from '../functions';

+ 1
- 1
react/features/recent-list/components/RecentList.web.js Прегледај датотеку

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from 'react-redux';
5
 import type { Dispatch } from 'redux';
4
 import type { Dispatch } from 'redux';
6
 
5
 
7
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
8
 import { MeetingsList } from '../../base/react';
7
 import { MeetingsList } from '../../base/react';
8
+import { connect } from '../../base/redux';
9
 
9
 
10
 import AbstractRecentList from './AbstractRecentList';
10
 import AbstractRecentList from './AbstractRecentList';
11
 import { isRecentListEnabled, toDisplayableList } from '../functions';
11
 import { isRecentListEnabled, toDisplayableList } from '../functions';

+ 0
- 0
react/features/recording/components/LiveStream/native/GoogleSigninForm.js Прегледај датотеку


Неке датотеке нису приказане због велике количине промена

Loading…
Откажи
Сачувај