Преглед на файлове

chore: remove some cycles

j8
Saúl Ibarra Corretgé преди 4 години
родител
ревизия
a67d0fbf6c
променени са 59 файла, в които са добавени 65 реда и са изтрити 113 реда
  1. 1
    1
      modules/UI/UI.js
  2. 1
    1
      modules/UI/etherpad/Etherpad.js
  3. 3
    6
      modules/UI/shared_video/SharedVideo.js
  4. 1
    1
      react/features/base/participants/components/ParticipantView.native.js
  5. 1
    1
      react/features/base/premeeting/components/web/PreMeetingScreen.js
  6. 0
    3
      react/features/base/toolbox/index.js
  7. 2
    2
      react/features/blur/components/VideoBlurButton.js
  8. 1
    1
      react/features/chat/components/PrivateMessageButton.js
  9. 1
    1
      react/features/chat/components/native/ChatButton.js
  10. 2
    1
      react/features/chat/middleware.js
  11. 3
    1
      react/features/conference/components/native/Conference.js
  12. 1
    1
      react/features/conference/components/native/NavigationBar.js
  13. 2
    6
      react/features/conference/components/web/Conference.js
  14. 1
    4
      react/features/conference/components/web/InviteMore.js
  15. 1
    1
      react/features/conference/components/web/Subject.js
  16. 1
    1
      react/features/conference/middleware.js
  17. 1
    1
      react/features/etherpad/components/SharedDocumentButton.js
  18. 1
    1
      react/features/filmstrip/components/native/Thumbnail.js
  19. 1
    1
      react/features/filmstrip/components/web/Filmstrip.js
  20. 1
    1
      react/features/filmstrip/components/web/Toolbar.js
  21. 1
    2
      react/features/invite/components/add-people-dialog/native/InviteButton.js
  22. 1
    1
      react/features/lobby/components/web/KnockingParticipantList.js
  23. 0
    0
      react/features/local-recording/components/LocalRecordingButton.native.js
  24. 1
    1
      react/features/local-recording/components/LocalRecordingButton.web.js
  25. 1
    2
      react/features/mobile/audio-mode/components/AudioRouteButton.js
  26. 1
    2
      react/features/mobile/incoming-call/components/AnswerButton.js
  27. 1
    2
      react/features/mobile/incoming-call/components/DeclineButton.js
  28. 1
    2
      react/features/mobile/picture-in-picture/components/PictureInPictureButton.js
  29. 1
    4
      react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
  30. 1
    4
      react/features/recording/components/Recording/AbstractRecordButton.js
  31. 1
    2
      react/features/remote-video-menu/components/AbstractGrantModeratorButton.js
  32. 1
    2
      react/features/remote-video-menu/components/AbstractKickButton.js
  33. 1
    4
      react/features/remote-video-menu/components/AbstractMuteButton.js
  34. 1
    1
      react/features/remote-video-menu/components/native/PinButton.js
  35. 1
    1
      react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js
  36. 1
    2
      react/features/room-lock/components/RoomLockButton.js
  37. 1
    1
      react/features/security/components/security-dialog/SecurityDialogButton.js
  38. 1
    2
      react/features/settings/components/web/SettingsButton.js
  39. 1
    1
      react/features/subtitles/components/AbstractClosedCaptionButton.js
  40. 2
    2
      react/features/toolbox/components/AudioMuteButton.js
  41. 1
    1
      react/features/toolbox/components/DownloadButton.js
  42. 2
    2
      react/features/toolbox/components/HangupButton.js
  43. 1
    1
      react/features/toolbox/components/HelpButton.js
  44. 2
    2
      react/features/toolbox/components/VideoMuteButton.js
  45. 1
    2
      react/features/toolbox/components/native/AudioOnlyButton.js
  46. 1
    2
      react/features/toolbox/components/native/MoreOptionsButton.js
  47. 1
    1
      react/features/toolbox/components/native/OverflowMenu.js
  48. 1
    2
      react/features/toolbox/components/native/OverflowMenuButton.js
  49. 1
    2
      react/features/toolbox/components/native/RaiseHandButton.js
  50. 1
    2
      react/features/toolbox/components/native/ToggleCameraButton.js
  51. 1
    1
      react/features/toolbox/components/web/AudioSettingsButton.js
  52. 1
    1
      react/features/toolbox/components/web/MuteEveryoneButton.js
  53. 1
    1
      react/features/toolbox/components/web/Toolbox.js
  54. 1
    1
      react/features/toolbox/components/web/VideoSettingsButton.js
  55. 0
    4
      react/features/toolbox/index.js
  56. 1
    4
      react/features/video-layout/components/TileViewButton.js
  57. 1
    1
      react/features/video-layout/functions.js
  58. 1
    2
      react/features/youtube-player/components/VideoShareButton.js
  59. 0
    7
      react/features/youtube-player/index.js

+ 1
- 1
modules/UI/UI.js Целия файл

@@ -15,7 +15,7 @@ import {
15 15
     dockToolbox,
16 16
     setToolboxEnabled,
17 17
     showToolbox
18
-} from '../../react/features/toolbox';
18
+} from '../../react/features/toolbox/actions.web';
19 19
 import UIEvents from '../../service/UI/UIEvents';
20 20
 
21 21
 import EtherpadManager from './etherpad/Etherpad';

+ 1
- 1
modules/UI/etherpad/Etherpad.js Целия файл

@@ -1,7 +1,7 @@
1 1
 /* global $, APP, interfaceConfig */
2 2
 
3 3
 import { getSharedDocumentUrl, setDocumentEditingState } from '../../../react/features/etherpad';
4
-import { getToolboxHeight } from '../../../react/features/toolbox';
4
+import { getToolboxHeight } from '../../../react/features/toolbox/functions.web';
5 5
 import Filmstrip from '../videolayout/Filmstrip';
6 6
 import LargeContainer from '../videolayout/LargeContainer';
7 7
 import VideoLayout from '../videolayout/VideoLayout';

+ 3
- 6
modules/UI/shared_video/SharedVideo.js Целия файл

@@ -12,12 +12,9 @@ import {
12 12
     participantLeft,
13 13
     pinParticipant
14 14
 } from '../../../react/features/base/participants';
15
-import {
16
-    dockToolbox,
17
-    getToolboxHeight,
18
-    showToolbox
19
-} from '../../../react/features/toolbox';
20
-import { YOUTUBE_PARTICIPANT_NAME } from '../../../react/features/youtube-player';
15
+import { dockToolbox, showToolbox } from '../../../react/features/toolbox/actions.web';
16
+import { getToolboxHeight } from '../../../react/features/toolbox/functions.web';
17
+import { YOUTUBE_PARTICIPANT_NAME } from '../../../react/features/youtube-player/constants';
21 18
 import UIEvents from '../../../service/UI/UIEvents';
22 19
 import UIUtil from '../util/UIUtil';
23 20
 import Filmstrip from '../videolayout/Filmstrip';

+ 1
- 1
react/features/base/participants/components/ParticipantView.native.js Целия файл

@@ -3,7 +3,7 @@
3 3
 import React, { Component } from 'react';
4 4
 import { Text, View } from 'react-native';
5 5
 
6
-import { YoutubeLargeVideo } from '../../../youtube-player';
6
+import { YoutubeLargeVideo } from '../../../youtube-player/components';
7 7
 import { Avatar } from '../../avatar';
8 8
 import { translate } from '../../i18n';
9 9
 import { JitsiParticipantConnectionStatus } from '../../lib-jitsi-meet';

+ 1
- 1
react/features/base/premeeting/components/web/PreMeetingScreen.js Целия файл

@@ -2,7 +2,7 @@
2 2
 
3 3
 import React, { PureComponent } from 'react';
4 4
 
5
-import { AudioSettingsButton, VideoSettingsButton } from '../../../../toolbox';
5
+import { AudioSettingsButton, VideoSettingsButton } from '../../../../toolbox/components/web';
6 6
 
7 7
 import CopyMeetingUrl from './CopyMeetingUrl';
8 8
 import Preview from './Preview';

+ 0
- 3
react/features/base/toolbox/index.js Целия файл

@@ -1,3 +0,0 @@
1
-// @flow
2
-
3
-export * from './components';

+ 2
- 2
react/features/blur/components/VideoBlurButton.js Целия файл

@@ -6,8 +6,8 @@ import { createVideoBlurEvent, sendAnalytics } from '../../analytics';
6 6
 import { translate } from '../../base/i18n';
7 7
 import { IconBlurBackground } from '../../base/icons';
8 8
 import { connect } from '../../base/redux';
9
-import { AbstractButton, BetaTag } from '../../base/toolbox';
10
-import type { AbstractButtonProps } from '../../base/toolbox';
9
+import { AbstractButton, BetaTag } from '../../base/toolbox/components';
10
+import type { AbstractButtonProps } from '../../base/toolbox/components';
11 11
 import { toggleBlurEffect } from '../actions';
12 12
 
13 13
 /**

+ 1
- 1
react/features/chat/components/PrivateMessageButton.js Целия файл

@@ -4,7 +4,7 @@ import { translate } from '../../base/i18n';
4 4
 import { IconMessage, IconReply } from '../../base/icons';
5 5
 import { getParticipantById } from '../../base/participants';
6 6
 import { connect } from '../../base/redux';
7
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
8 8
 import { setPrivateMessageRecipient } from '../actions';
9 9
 
10 10
 export type Props = AbstractButtonProps & {

+ 1
- 1
react/features/chat/components/native/ChatButton.js Целия файл

@@ -8,7 +8,7 @@ import { connect } from '../../../base/redux';
8 8
 import {
9 9
     AbstractButton,
10 10
     type AbstractButtonProps
11
-} from '../../../base/toolbox';
11
+} from '../../../base/toolbox/components';
12 12
 import { openDisplayNamePrompt } from '../../../display-name';
13 13
 import { CHAT_VIEW_MODAL_ID } from '../../constants';
14 14
 import { getUnreadCount } from '../../functions';

+ 2
- 1
react/features/chat/middleware.js Целия файл

@@ -18,7 +18,8 @@ import {
18 18
 } from '../base/participants';
19 19
 import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
20 20
 import { playSound, registerSound, unregisterSound } from '../base/sounds';
21
-import { isButtonEnabled, showToolbox } from '../toolbox';
21
+import { showToolbox } from '../toolbox/actions';
22
+import { isButtonEnabled } from '../toolbox/functions';
22 23
 
23 24
 import { SEND_MESSAGE, SET_PRIVATE_MESSAGE_RECIPIENT } from './actionTypes';
24 25
 import { addMessage, clearMessages, toggleChat } from './actions';

+ 3
- 1
react/features/conference/components/native/Conference.js Целия файл

@@ -25,7 +25,9 @@ import { LargeVideo } from '../../../large-video';
25 25
 import { KnockingParticipantList } from '../../../lobby';
26 26
 import { BackButtonRegistry } from '../../../mobile/back-button';
27 27
 import { Captions } from '../../../subtitles';
28
-import { isToolboxVisible, setToolboxVisible, Toolbox } from '../../../toolbox';
28
+import { setToolboxVisible } from '../../../toolbox/actions';
29
+import { Toolbox } from '../../../toolbox/components/native';
30
+import { isToolboxVisible } from '../../../toolbox/functions';
29 31
 import {
30 32
     AbstractConference,
31 33
     abstractMapStateToProps

+ 1
- 1
react/features/conference/components/native/NavigationBar.js Целия файл

@@ -8,7 +8,7 @@ import { getConferenceName } from '../../../base/conference';
8 8
 import { getFeatureFlag, CONFERENCE_TIMER_ENABLED, MEETING_NAME_ENABLED } from '../../../base/flags';
9 9
 import { connect } from '../../../base/redux';
10 10
 import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
11
-import { isToolboxVisible } from '../../../toolbox';
11
+import { isToolboxVisible } from '../../../toolbox/functions.native';
12 12
 import ConferenceTimer from '../ConferenceTimer';
13 13
 
14 14
 import styles, { NAVBAR_GRADIENT_COLORS } from './styles';

+ 2
- 6
react/features/conference/components/web/Conference.js Целия файл

@@ -14,12 +14,8 @@ import { CalleeInfoContainer } from '../../../invite';
14 14
 import { LargeVideo } from '../../../large-video';
15 15
 import { KnockingParticipantList, LobbyScreen } from '../../../lobby';
16 16
 import { Prejoin, isPrejoinPageVisible } from '../../../prejoin';
17
-import {
18
-    Toolbox,
19
-    fullScreenChanged,
20
-    setToolboxAlwaysVisible,
21
-    showToolbox
22
-} from '../../../toolbox';
17
+import { fullScreenChanged, setToolboxAlwaysVisible, showToolbox } from '../../../toolbox/actions.web';
18
+import { Toolbox } from '../../../toolbox/components/web';
23 19
 import { LAYOUTS, getCurrentLayout } from '../../../video-layout';
24 20
 import { maybeShowSuboptimalExperienceNotification } from '../../functions';
25 21
 import {

+ 1
- 4
react/features/conference/components/web/InviteMore.js Целия файл

@@ -7,10 +7,7 @@ import { Icon, IconInviteMore } from '../../../base/icons';
7 7
 import { getParticipantCount } from '../../../base/participants';
8 8
 import { connect } from '../../../base/redux';
9 9
 import { beginAddPeople } from '../../../invite';
10
-import {
11
-    isButtonEnabled,
12
-    isToolboxVisible
13
-} from '../../../toolbox';
10
+import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web';
14 11
 import { shouldDisplayTileView } from '../../../video-layout/functions';
15 12
 
16 13
 declare var interfaceConfig: Object;

+ 1
- 1
react/features/conference/components/web/Subject.js Целия файл

@@ -5,7 +5,7 @@ import React, { Component } from 'react';
5 5
 import { getConferenceName } from '../../../base/conference/functions';
6 6
 import { getParticipantCount } from '../../../base/participants/functions';
7 7
 import { connect } from '../../../base/redux';
8
-import { isToolboxVisible } from '../../../toolbox';
8
+import { isToolboxVisible } from '../../../toolbox/functions.web';
9 9
 import ConferenceTimer from '../ConferenceTimer';
10 10
 
11 11
 import ParticipantsCount from './ParticipantsCount';

+ 1
- 1
react/features/conference/middleware.js Целия файл

@@ -13,7 +13,7 @@ import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
13 13
 import { SET_REDUCED_UI } from '../base/responsive-ui';
14 14
 import { FeedbackDialog } from '../feedback';
15 15
 import { setFilmstripEnabled } from '../filmstrip';
16
-import { setToolboxEnabled } from '../toolbox';
16
+import { setToolboxEnabled } from '../toolbox/actions';
17 17
 
18 18
 import { notifyKickedOut } from './actions';
19 19
 

+ 1
- 1
react/features/etherpad/components/SharedDocumentButton.js Целия файл

@@ -6,7 +6,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';
6 6
 import { translate } from '../../base/i18n';
7 7
 import { IconShareDoc } from '../../base/icons';
8 8
 import { connect } from '../../base/redux';
9
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
9
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
10 10
 import { toggleDocument } from '../actions';
11 11
 
12 12
 

+ 1
- 1
react/features/filmstrip/components/native/Thumbnail.js Целия файл

@@ -21,7 +21,7 @@ import { getTrackByMediaTypeAndParticipant } from '../../../base/tracks';
21 21
 import { ConnectionIndicator } from '../../../connection-indicator';
22 22
 import { DisplayNameLabel } from '../../../display-name';
23 23
 import { RemoteVideoMenu } from '../../../remote-video-menu';
24
-import { toggleToolboxVisible } from '../../../toolbox';
24
+import { toggleToolboxVisible } from '../../../toolbox/actions.native';
25 25
 
26 26
 import AudioMutedIndicator from './AudioMutedIndicator';
27 27
 import DominantSpeakerIndicator from './DominantSpeakerIndicator';

+ 1
- 1
react/features/filmstrip/components/web/Filmstrip.js Целия файл

@@ -12,7 +12,7 @@ import {
12 12
 import { translate } from '../../../base/i18n';
13 13
 import { Icon, IconMenuDown, IconMenuUp } from '../../../base/icons';
14 14
 import { connect } from '../../../base/redux';
15
-import { dockToolbox } from '../../../toolbox';
15
+import { dockToolbox } from '../../../toolbox/actions.web';
16 16
 import { getCurrentLayout, LAYOUTS } from '../../../video-layout';
17 17
 import { setFilmstripHovered, setFilmstripVisible } from '../../actions';
18 18
 import { shouldRemoteVideosBeVisible } from '../../functions';

+ 1
- 1
react/features/filmstrip/components/web/Toolbar.js Целия файл

@@ -8,7 +8,7 @@ import {
8 8
     AudioMuteButton,
9 9
     HangupButton,
10 10
     VideoMuteButton
11
-} from '../../../toolbox';
11
+} from '../../../toolbox/components';
12 12
 
13 13
 declare var interfaceConfig: Object;
14 14
 

+ 1
- 2
react/features/invite/components/add-people-dialog/native/InviteButton.js Целия файл

@@ -6,8 +6,7 @@ import { getFeatureFlag, INVITE_ENABLED } from '../../../../base/flags';
6 6
 import { translate } from '../../../../base/i18n';
7 7
 import { IconAddPeople } from '../../../../base/icons';
8 8
 import { connect } from '../../../../base/redux';
9
-import { AbstractButton } from '../../../../base/toolbox';
10
-import type { AbstractButtonProps } from '../../../../base/toolbox';
9
+import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';
11 10
 import { doInvitePeople } from '../../../actions.native';
12 11
 
13 12
 type Props = AbstractButtonProps & {

+ 1
- 1
react/features/lobby/components/web/KnockingParticipantList.js Целия файл

@@ -5,7 +5,7 @@ import React from 'react';
5 5
 import { Avatar } from '../../../base/avatar';
6 6
 import { translate } from '../../../base/i18n';
7 7
 import { connect } from '../../../base/redux';
8
-import { isToolboxVisible } from '../../../toolbox';
8
+import { isToolboxVisible } from '../../../toolbox/functions.web';
9 9
 import AbstractKnockingParticipantList, {
10 10
     mapStateToProps as abstractMapStateToProps,
11 11
     type Props as AbstractProps

+ 0
- 0
react/features/local-recording/components/LocalRecordingButton.native.js Целия файл


react/features/local-recording/components/LocalRecordingButton.js → react/features/local-recording/components/LocalRecordingButton.web.js Целия файл

@@ -4,7 +4,7 @@ import React, { Component } from 'react';
4 4
 
5 5
 import { translate } from '../../base/i18n';
6 6
 import { IconRec } from '../../base/icons';
7
-import { ToolbarButton } from '../../toolbox';
7
+import { ToolbarButton } from '../../toolbox/components/web';
8 8
 
9 9
 /**
10 10
  * The type of the React {@code Component} state of

+ 1
- 2
react/features/mobile/audio-mode/components/AudioRouteButton.js Целия файл

@@ -4,8 +4,7 @@ import { openDialog } from '../../../base/dialog';
4 4
 import { translate } from '../../../base/i18n';
5 5
 import { IconAudioRoute } from '../../../base/icons';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton } from '../../../base/toolbox';
8
-import type { AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
9 8
 
10 9
 import AudioRoutePickerDialog from './AudioRoutePickerDialog';
11 10
 

+ 1
- 2
react/features/mobile/incoming-call/components/AnswerButton.js Целия файл

@@ -3,8 +3,7 @@
3 3
 import { translate } from '../../../base/i18n';
4 4
 import { IconHangup } from '../../../base/icons';
5 5
 import { connect } from '../../../base/redux';
6
-import { AbstractButton } from '../../../base/toolbox';
7
-import type { AbstractButtonProps } from '../../../base/toolbox';
6
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
8 7
 import { incomingCallAnswered } from '../actions';
9 8
 
10 9
 /**

+ 1
- 2
react/features/mobile/incoming-call/components/DeclineButton.js Целия файл

@@ -3,8 +3,7 @@
3 3
 import { translate } from '../../../base/i18n';
4 4
 import { IconHangup } from '../../../base/icons';
5 5
 import { connect } from '../../../base/redux';
6
-import { AbstractButton } from '../../../base/toolbox';
7
-import type { AbstractButtonProps } from '../../../base/toolbox';
6
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
8 7
 import { incomingCallDeclined } from '../actions';
9 8
 
10 9
 /**

+ 1
- 2
react/features/mobile/picture-in-picture/components/PictureInPictureButton.js Целия файл

@@ -6,8 +6,7 @@ import { PIP_ENABLED, getFeatureFlag } from '../../../base/flags';
6 6
 import { translate } from '../../../base/i18n';
7 7
 import { IconMenuDown } from '../../../base/icons';
8 8
 import { connect } from '../../../base/redux';
9
-import { AbstractButton } from '../../../base/toolbox';
10
-import type { AbstractButtonProps } from '../../../base/toolbox';
9
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
11 10
 import { enterPictureInPicture } from '../actions';
12 11
 
13 12
 type Props = AbstractButtonProps & {

+ 1
- 4
react/features/recording/components/LiveStream/AbstractLiveStreamButton.js Целия файл

@@ -4,10 +4,7 @@ import { openDialog } from '../../../base/dialog';
4 4
 import { IconLiveStreaming } from '../../../base/icons';
5 5
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
6 6
 import { getLocalParticipant } from '../../../base/participants';
7
-import {
8
-    AbstractButton,
9
-    type AbstractButtonProps
10
-} from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
11 8
 import { getActiveSession } from '../../functions';
12 9
 
13 10
 import {

+ 1
- 4
react/features/recording/components/Recording/AbstractRecordButton.js Целия файл

@@ -11,10 +11,7 @@ import {
11 11
     getLocalParticipant,
12 12
     isLocalParticipantModerator
13 13
 } from '../../../base/participants';
14
-import {
15
-    AbstractButton,
16
-    type AbstractButtonProps
17
-} from '../../../base/toolbox';
14
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
18 15
 import { getActiveSession } from '../../functions';
19 16
 
20 17
 import { StartRecordingDialog, StopRecordingDialog } from './_';

+ 1
- 2
react/features/remote-video-menu/components/AbstractGrantModeratorButton.js Целия файл

@@ -8,8 +8,7 @@ import {
8 8
     isParticipantModerator,
9 9
     PARTICIPANT_ROLE
10 10
 } from '../../base/participants';
11
-import { AbstractButton } from '../../base/toolbox';
12
-import type { AbstractButtonProps } from '../../base/toolbox';
11
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
13 12
 
14 13
 import { GrantModeratorDialog } from '.';
15 14
 

+ 1
- 2
react/features/remote-video-menu/components/AbstractKickButton.js Целия файл

@@ -2,8 +2,7 @@
2 2
 
3 3
 import { openDialog } from '../../base/dialog';
4 4
 import { IconKick } from '../../base/icons';
5
-import { AbstractButton } from '../../base/toolbox';
6
-import type { AbstractButtonProps } from '../../base/toolbox';
5
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
7 6
 
8 7
 import { KickRemoteParticipantDialog } from '.';
9 8
 

+ 1
- 4
react/features/remote-video-menu/components/AbstractMuteButton.js Целия файл

@@ -7,10 +7,7 @@ import {
7 7
 import { openDialog } from '../../base/dialog';
8 8
 import { IconMicDisabled } from '../../base/icons';
9 9
 import { MEDIA_TYPE } from '../../base/media';
10
-import {
11
-    AbstractButton,
12
-    type AbstractButtonProps
13
-} from '../../base/toolbox';
10
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
14 11
 import { isRemoteTrackMuted } from '../../base/tracks';
15 12
 
16 13
 import { MuteRemoteParticipantDialog } from '.';

+ 1
- 1
react/features/remote-video-menu/components/native/PinButton.js Целия файл

@@ -4,7 +4,7 @@ import { translate } from '../../../base/i18n';
4 4
 import { IconPin } from '../../../base/icons';
5 5
 import { pinParticipant } from '../../../base/participants';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
8 8
 import { shouldDisplayTileView } from '../../../video-layout/functions';
9 9
 
10 10
 export type Props = AbstractButtonProps & {

+ 1
- 1
react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js Целия файл

@@ -10,7 +10,7 @@ import {
10 10
     _mapStateToProps as _abstractMapStateToProps,
11 11
     type Props as AbstractProps
12 12
 } from '../../../chat/components/PrivateMessageButton';
13
-import { isButtonEnabled } from '../../../toolbox';
13
+import { isButtonEnabled } from '../../../toolbox/functions.web';
14 14
 
15 15
 import RemoteVideoMenuButton from './RemoteVideoMenuButton';
16 16
 

+ 1
- 2
react/features/room-lock/components/RoomLockButton.js Целия файл

@@ -5,8 +5,7 @@ import { translate } from '../../base/i18n';
5 5
 import { IconRoomLock, IconRoomUnlock } from '../../base/icons';
6 6
 import { isLocalParticipantModerator } from '../../base/participants';
7 7
 import { connect } from '../../base/redux';
8
-import { AbstractButton } from '../../base/toolbox';
9
-import type { AbstractButtonProps } from '../../base/toolbox';
8
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
10 9
 import { beginRoomLockRequest, unlockRoom } from '../actions';
11 10
 
12 11
 type Props = AbstractButtonProps & {

+ 1
- 1
react/features/security/components/security-dialog/SecurityDialogButton.js Целия файл

@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../../analytics';
4 4
 import { translate } from '../../../base/i18n';
5 5
 import { IconSecurityOff, IconSecurityOn } from '../../../base/icons';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
8 8
 import { toggleSecurityDialog } from '../../actions';
9 9
 
10 10
 

+ 1
- 2
react/features/settings/components/web/SettingsButton.js Целия файл

@@ -4,8 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../../analytics';
4 4
 import { translate } from '../../../base/i18n';
5 5
 import { IconSettings } from '../../../base/icons';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton } from '../../../base/toolbox';
8
-import type { AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
9 8
 import { openDeviceSelectionPopup } from '../../../device-selection';
10 9
 import { openSettingsDialog } from '../../actions';
11 10
 import { SETTINGS_TABS } from '../../constants';

+ 1
- 1
react/features/subtitles/components/AbstractClosedCaptionButton.js Целия файл

@@ -2,7 +2,7 @@
2 2
 
3 3
 import { createToolbarEvent, sendAnalytics } from '../../analytics';
4 4
 import { isLocalParticipantModerator } from '../../base/participants';
5
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
5
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
6 6
 import { toggleRequestingSubtitles } from '../actions';
7 7
 
8 8
 export type AbstractProps = AbstractButtonProps & {

+ 2
- 2
react/features/toolbox/components/AudioMuteButton.js Целия файл

@@ -9,8 +9,8 @@ import {
9 9
 import { translate } from '../../base/i18n';
10 10
 import { MEDIA_TYPE } from '../../base/media';
11 11
 import { connect } from '../../base/redux';
12
-import { AbstractAudioMuteButton } from '../../base/toolbox';
13
-import type { AbstractButtonProps } from '../../base/toolbox';
12
+import { AbstractAudioMuteButton } from '../../base/toolbox/components';
13
+import type { AbstractButtonProps } from '../../base/toolbox/components';
14 14
 import { isLocalTrackMuted } from '../../base/tracks';
15 15
 import { muteLocal } from '../../remote-video-menu/actions';
16 16
 

+ 1
- 1
react/features/toolbox/components/DownloadButton.js Целия файл

@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';
4 4
 import { translate } from '../../base/i18n';
5 5
 import { IconDownload } from '../../base/icons';
6 6
 import { connect } from '../../base/redux';
7
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
8 8
 import { openURLInBrowser } from '../../base/util';
9 9
 
10 10
 

+ 2
- 2
react/features/toolbox/components/HangupButton.js Целия файл

@@ -7,8 +7,8 @@ import { appNavigate } from '../../app/actions';
7 7
 import { disconnect } from '../../base/connection';
8 8
 import { translate } from '../../base/i18n';
9 9
 import { connect } from '../../base/redux';
10
-import { AbstractHangupButton } from '../../base/toolbox';
11
-import type { AbstractButtonProps } from '../../base/toolbox';
10
+import { AbstractHangupButton } from '../../base/toolbox/components';
11
+import type { AbstractButtonProps } from '../../base/toolbox/components';
12 12
 
13 13
 /**
14 14
  * The type of the React {@code Component} props of {@link HangupButton}.

+ 1
- 1
react/features/toolbox/components/HelpButton.js Целия файл

@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';
4 4
 import { translate } from '../../base/i18n';
5 5
 import { IconHelp } from '../../base/icons';
6 6
 import { connect } from '../../base/redux';
7
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
8 8
 import { openURLInBrowser } from '../../base/util';
9 9
 
10 10
 

+ 2
- 2
react/features/toolbox/components/VideoMuteButton.js Целия файл

@@ -16,8 +16,8 @@ import {
16 16
     setVideoMuted
17 17
 } from '../../base/media';
18 18
 import { connect } from '../../base/redux';
19
-import { AbstractVideoMuteButton } from '../../base/toolbox';
20
-import type { AbstractButtonProps } from '../../base/toolbox';
19
+import { AbstractVideoMuteButton } from '../../base/toolbox/components';
20
+import type { AbstractButtonProps } from '../../base/toolbox/components';
21 21
 import { getLocalVideoType, isLocalVideoTrackMuted } from '../../base/tracks';
22 22
 
23 23
 declare var APP: Object;

+ 1
- 2
react/features/toolbox/components/native/AudioOnlyButton.js Целия файл

@@ -4,8 +4,7 @@ import { toggleAudioOnly } from '../../../base/audio-only';
4 4
 import { translate } from '../../../base/i18n';
5 5
 import { IconAudioOnly, IconAudioOnlyOff } from '../../../base/icons';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton } from '../../../base/toolbox';
8
-import type { AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
9 8
 
10 9
 /**
11 10
  * The type of the React {@code Component} props of {@link AudioOnlyButton}.

+ 1
- 2
react/features/toolbox/components/native/MoreOptionsButton.js Целия файл

@@ -2,8 +2,7 @@
2 2
 
3 3
 import { translate } from '../../../base/i18n';
4 4
 import { IconMenu } from '../../../base/icons';
5
-import { AbstractButton } from '../../../base/toolbox';
6
-import type { AbstractButtonProps } from '../../../base/toolbox';
5
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
7 6
 
8 7
 
9 8
 type Props = AbstractButtonProps;

+ 1
- 1
react/features/toolbox/components/native/OverflowMenu.js Целия файл

@@ -17,7 +17,7 @@ import { LiveStreamButton, RecordButton } from '../../../recording';
17 17
 import { RoomLockButton } from '../../../room-lock';
18 18
 import { ClosedCaptionButton } from '../../../subtitles';
19 19
 import { TileViewButton } from '../../../video-layout';
20
-import { VideoShareButton } from '../../../youtube-player';
20
+import { VideoShareButton } from '../../../youtube-player/components';
21 21
 import HelpButton from '../HelpButton';
22 22
 
23 23
 import AudioOnlyButton from './AudioOnlyButton';

+ 1
- 2
react/features/toolbox/components/native/OverflowMenuButton.js Целия файл

@@ -4,8 +4,7 @@ import { openDialog } from '../../../base/dialog';
4 4
 import { translate } from '../../../base/i18n';
5 5
 import { IconMenuThumb } from '../../../base/icons';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton } from '../../../base/toolbox';
8
-import type { AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
9 8
 
10 9
 import OverflowMenu from './OverflowMenu';
11 10
 

+ 1
- 2
react/features/toolbox/components/native/RaiseHandButton.js Целия файл

@@ -14,8 +14,7 @@ import {
14 14
     participantUpdated
15 15
 } from '../../../base/participants';
16 16
 import { connect } from '../../../base/redux';
17
-import { AbstractButton } from '../../../base/toolbox';
18
-import type { AbstractButtonProps } from '../../../base/toolbox';
17
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
19 18
 
20 19
 /**
21 20
  * The type of the React {@code Component} props of {@link RaiseHandButton}.

+ 1
- 2
react/features/toolbox/components/native/ToggleCameraButton.js Целия файл

@@ -4,8 +4,7 @@ import { translate } from '../../../base/i18n';
4 4
 import { IconSwitchCamera } from '../../../base/icons';
5 5
 import { MEDIA_TYPE, toggleCameraFacingMode } from '../../../base/media';
6 6
 import { connect } from '../../../base/redux';
7
-import { AbstractButton } from '../../../base/toolbox';
8
-import type { AbstractButtonProps } from '../../../base/toolbox';
7
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
9 8
 import { isLocalTrackMuted } from '../../../base/tracks';
10 9
 
11 10
 /**

+ 1
- 1
react/features/toolbox/components/web/AudioSettingsButton.js Целия файл

@@ -6,7 +6,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';
6 6
 import { IconArrowDown } from '../../../base/icons';
7 7
 import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
8 8
 import { connect } from '../../../base/redux';
9
-import { ToolboxButtonWithIcon } from '../../../base/toolbox';
9
+import { ToolboxButtonWithIcon } from '../../../base/toolbox/components';
10 10
 import { getMediaPermissionPromptVisibility } from '../../../overlay';
11 11
 import { AudioSettingsPopup, toggleAudioSettings } from '../../../settings';
12 12
 import { isAudioSettingsButtonDisabled } from '../../functions';

+ 1
- 1
react/features/toolbox/components/web/MuteEveryoneButton.js Целия файл

@@ -6,7 +6,7 @@ import { translate } from '../../../base/i18n';
6 6
 import { IconMuteEveryone } from '../../../base/icons';
7 7
 import { getLocalParticipant, PARTICIPANT_ROLE } from '../../../base/participants';
8 8
 import { connect } from '../../../base/redux';
9
-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';
9
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
10 10
 import { MuteEveryoneDialog } from '../../../remote-video-menu';
11 11
 
12 12
 type Props = AbstractButtonProps & {

+ 1
- 1
react/features/toolbox/components/web/Toolbox.js Целия файл

@@ -30,7 +30,7 @@ import {
30 30
     participantUpdated
31 31
 } from '../../../base/participants';
32 32
 import { connect, equals } from '../../../base/redux';
33
-import { OverflowMenuItem } from '../../../base/toolbox';
33
+import { OverflowMenuItem } from '../../../base/toolbox/components';
34 34
 import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks';
35 35
 import { VideoBlurButton } from '../../../blur';
36 36
 import { CHAT_SIZE, ChatCounter, toggleChat } from '../../../chat';

+ 1
- 1
react/features/toolbox/components/web/VideoSettingsButton.js Целия файл

@@ -6,7 +6,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';
6 6
 import { IconArrowDown } from '../../../base/icons';
7 7
 import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
8 8
 import { connect } from '../../../base/redux';
9
-import { ToolboxButtonWithIcon } from '../../../base/toolbox';
9
+import { ToolboxButtonWithIcon } from '../../../base/toolbox/components';
10 10
 import { getLocalJitsiVideoTrack } from '../../../base/tracks';
11 11
 import { getMediaPermissionPromptVisibility } from '../../../overlay';
12 12
 import { toggleVideoSettings, VideoSettingsPopup } from '../../../settings';

+ 0
- 4
react/features/toolbox/index.js Целия файл

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

+ 1
- 4
react/features/video-layout/components/TileViewButton.js Целия файл

@@ -11,10 +11,7 @@ import { translate } from '../../base/i18n';
11 11
 import { IconTileView } from '../../base/icons';
12 12
 import { getParticipantCount } from '../../base/participants';
13 13
 import { connect } from '../../base/redux';
14
-import {
15
-    AbstractButton,
16
-    type AbstractButtonProps
17
-} from '../../base/toolbox';
14
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
18 15
 import { setTileView } from '../actions';
19 16
 import { shouldDisplayTileView } from '../functions';
20 17
 import logger from '../logger';

+ 1
- 1
react/features/video-layout/functions.js Целия файл

@@ -1,7 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import { getPinnedParticipant, getParticipantCount } from '../base/participants';
4
-import { isYoutubeVideoPlaying } from '../youtube-player';
4
+import { isYoutubeVideoPlaying } from '../youtube-player/functions';
5 5
 
6 6
 import { LAYOUTS } from './constants';
7 7
 

+ 1
- 2
react/features/youtube-player/components/VideoShareButton.js Целия файл

@@ -7,8 +7,7 @@ import { translate } from '../../base/i18n';
7 7
 import { IconShareVideo } from '../../base/icons';
8 8
 import { getLocalParticipant } from '../../base/participants';
9 9
 import { connect } from '../../base/redux';
10
-import { AbstractButton } from '../../base/toolbox';
11
-import type { AbstractButtonProps } from '../../base/toolbox';
10
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
12 11
 import { toggleSharedVideo } from '../actions';
13 12
 
14 13
 /**

+ 0
- 7
react/features/youtube-player/index.js Целия файл

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

Loading…
Отказ
Запис