From 162a67fe8b55c675abb9335113fcd9556720420d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 4 Nov 2021 22:10:43 +0100 Subject: [PATCH] chore(lint) tame the (uppdated) linter --- .eslintignore | 3 + conference.js | 2 +- modules/API/constants.js | 2 +- modules/API/external/external_api.js | 9 +- package-lock.json | 12 +-- react/.eslintrc.js | 6 +- react/features/always-on-top/AlwaysOnTop.js | 2 +- react/features/always-on-top/Toolbar.js | 2 +- react/features/analytics/AnalyticsEvents.js | 2 + .../analytics/handlers/AbstractHandler.js | 2 +- react/features/app/components/App.native.js | 2 +- react/features/app/components/App.web.js | 2 +- .../components/AudioLevelIndicator.js | 2 +- .../components/native/LoginDialog.js | 2 +- .../components/web/LoginDialog.js | 2 +- react/features/base/app/components/BaseApp.js | 2 +- react/features/base/app/reducer.js | 7 -- .../features/base/avatar/components/Avatar.js | 4 +- .../components/native/StatelessAvatar.js | 2 +- .../avatar/components/web/StatelessAvatar.js | 4 +- react/features/base/buttons/CopyButton.js | 14 +-- .../components/buttons/QuickActionButton.js | 2 +- .../components/context-menu/ContextMenu.js | 8 +- .../context-menu/ContextMenuItemGroup.js | 2 +- .../particpants-pane-list/ListItem.js | 2 +- .../base/config/extraConfigWhitelist.js | 2 +- .../dialog/components/native/AlertDialog.js | 2 +- .../dialog/components/native/BaseDialog.js | 2 +- .../components/native/BaseSubmitDialog.js | 10 +- .../dialog/components/native/BottomSheet.js | 2 +- .../dialog/components/native/ConfirmDialog.js | 2 +- .../components/native/DialogContainer.js | 2 +- .../dialog/components/native/InputDialog.js | 2 +- .../components/web/AbstractDialogTab.js | 2 +- .../base/dialog/components/web/Dialog.js | 2 +- .../dialog/components/web/DialogContainer.js | 2 +- .../dialog/components/web/DialogWithTabs.js | 2 +- .../base/dialog/components/web/ModalHeader.js | 5 +- .../dialog/components/web/StatelessDialog.js | 6 +- .../dialog/components/web/ThemedDialog.js | 8 +- react/features/base/dialog/constants.js | 2 +- react/features/base/flags/constants.js | 6 +- react/features/base/icons/components/Icon.js | 24 ++--- .../label/components/ExpandedLabel.native.js | 4 +- .../base/label/components/Label.native.js | 4 +- .../base/label/components/Label.web.js | 2 +- .../logging/JitsiMeetInMemoryLogStorage.js | 1 + .../base/logging/JitsiMeetLogStorage.js | 1 + .../base/media/components/AbstractAudio.js | 2 +- .../media/components/native/VideoTrack.js | 2 +- .../media/components/native/VideoTransform.js | 20 ++-- .../base/media/components/web/Video.js | 34 +++---- .../base/media/components/web/VideoTrack.js | 34 +++---- .../components/ParticipantView.native.js | 4 +- .../base/participants/components/styles.js | 2 +- react/features/base/participants/constants.js | 2 + react/features/base/participants/reducer.js | 1 + .../base/popover/components/Popover.web.js | 2 +- .../premeeting/components/web/ActionButton.js | 10 +- .../premeeting/components/web/InputField.js | 2 +- .../components/web/PreMeetingScreen.js | 4 +- .../base/premeeting/components/web/Preview.js | 2 +- react/features/base/premeeting/functions.js | 6 +- react/features/base/react/Types.js | 24 ++--- .../react/components/AbstractContainer.js | 4 +- .../react/components/NavigateSectionList.js | 2 +- .../react/components/native/AvatarListItem.js | 2 +- .../react/components/native/BackButton.js | 2 +- .../base/react/components/native/Button.js | 2 +- .../base/react/components/native/Container.js | 2 +- .../react/components/native/ForwardButton.js | 2 +- .../base/react/components/native/Header.js | 4 +- .../react/components/native/HeaderLabel.js | 2 +- .../components/native/HeaderWithNavigation.js | 2 +- .../base/react/components/native/Image.js | 4 +- .../base/react/components/native/Modal.js | 2 +- .../NavigateSectionListEmptyComponent.js | 4 +- .../native/NavigateSectionListItem.js | 6 +- .../NavigateSectionListSectionHeader.js | 6 +- .../base/react/components/native/PagedList.js | 2 +- .../base/react/components/native/Pressable.js | 2 +- .../react/components/native/SectionList.js | 10 +- .../react/components/native/SlidingView.js | 2 +- .../react/components/native/headerstyles.js | 2 +- .../react/components/web/BaseIndicator.js | 2 +- .../base/react/components/web/Container.js | 2 +- .../base/react/components/web/Image.js | 2 +- .../components/web/InlineDialogFailure.js | 2 +- .../base/react/components/web/MeetingsList.js | 4 +- .../components/web/MultiSelectAutocomplete.js | 4 +- .../components/web/NavigateSectionListItem.js | 9 +- .../web/NavigateSectionListSectionHeader.js | 6 +- .../base/react/components/web/SectionList.js | 12 +-- .../base/react/components/web/Switch.js | 2 +- .../base/react/components/web/Text.js | 2 +- .../base/redux/StateListenerRegistry.js | 2 +- react/features/base/settings/functions.any.js | 16 ++-- .../testing/components/AbstractTestHint.js | 2 +- .../testing/components/TestConnectionInfo.js | 2 +- .../base/toolbox/components/AbstractButton.js | 2 +- .../base/toolbox/components/BetaTag.js | 2 +- .../components/web/OverflowMenuItem.js | 2 +- .../components/web/ToolboxButtonWithIcon.js | 12 +-- react/features/base/tracks/functions.js | 2 +- react/features/base/tracks/reducer.js | 4 +- react/features/base/util/parseURLParams.js | 1 + .../components/AddMeetingUrlButton.native.js | 2 +- .../components/AddMeetingUrlButton.web.js | 2 +- .../components/JoinButton.native.js | 2 +- .../components/JoinButton.web.js | 2 +- .../components/MicrosoftSignInButton.web.js | 2 +- .../calendar-sync/web/microsoftCalendar.js | 2 +- .../components/AbstractMessageContainer.js | 2 +- react/features/chat/components/native/Chat.js | 6 +- .../components/native/ChatMessageGroup.js | 2 +- .../components/native/MessageContainer.js | 2 +- .../chat/components/web/ChatButton.js | 6 +- .../chat/components/web/ChatCounter.js | 2 +- .../features/chat/components/web/ChatInput.js | 2 +- .../chat/components/web/ChatMessageGroup.js | 2 +- .../chat/components/web/DisplayNameForm.js | 2 +- .../chat/components/web/MessageContainer.js | 2 +- .../chat/components/web/SmileysPanel.js | 2 +- react/features/chat/middleware.js | 4 +- .../components/ChromeExtensionBanner.web.js | 7 +- .../components/AbstractConference.js | 2 +- .../conference/components/ConferenceTimer.js | 6 +- .../components/native/Conference.js | 2 +- .../native/HeaderNavigationButton.js | 2 +- .../conference/components/native/Labels.js | 2 +- .../conference/components/native/styles.js | 2 +- .../conference/components/web/Conference.js | 4 +- .../components/web/ConferenceInfo.js | 4 +- .../components/AbstractConnectionIndicator.js | 4 +- .../components/web/ConnectionIndicator.js | 2 +- .../web/ConnectionIndicatorContent.js | 6 +- .../connection-indicator/statsEmitter.js | 2 +- .../components/ConnectionStatsTable.js | 12 +-- .../components/DesktopPicker.js | 2 +- .../components/DesktopPickerPane.js | 2 +- .../components/DesktopSourcePreview.js | 2 +- .../components/AudioOutputPreview.js | 2 +- .../components/DeviceSelection.js | 4 +- .../components/DeviceSelector.web.js | 4 +- .../components/VideoInputPreview.js | 2 +- .../components/web/DisplayName.js | 2 +- .../components/web/DisplayNamePrompt.js | 2 +- react/features/dynamic-branding/reducer.js | 2 +- react/features/e2ee/components/E2EELabel.js | 2 +- react/features/e2ee/components/E2EESection.js | 2 +- .../components/EmbedMeetingTrigger.js | 4 +- .../components/SharedDocumentButton.js | 6 +- .../components/native/SharedDocument.js | 2 +- react/features/etherpad/middleware.js | 2 +- .../feedback/components/FeedbackDialog.web.js | 4 +- .../components/AbstractRaisedHandIndicator.js | 2 +- .../filmstrip/components/native/Filmstrip.js | 4 +- .../components/native/RaisedHandIndicator.js | 2 +- .../filmstrip/components/native/Thumbnail.js | 2 +- .../filmstrip/components/native/TileView.js | 2 +- .../filmstrip/components/native/styles.js | 2 +- .../components/web/AudioMutedIndicator.js | 2 +- .../web/DominantSpeakerIndicator.js | 2 +- .../filmstrip/components/web/Filmstrip.js | 2 +- .../components/web/ModeratorIndicator.js | 2 +- .../components/web/RaisedHandIndicator.js | 2 +- .../components/web/StatusIndicators.js | 2 +- .../filmstrip/components/web/Thumbnail.js | 4 +- .../components/web/VideoMutedIndicator.js | 2 +- react/features/filmstrip/constants.js | 7 ++ react/features/follow-me/middleware.js | 2 +- react/features/follow-me/subscriber.js | 4 +- .../components/AbstractGoogleSignInButton.js | 2 +- .../components/GoogleSignInButton.native.js | 2 +- .../components/GoogleSignInButton.web.js | 2 +- .../features/google-api/components/styles.js | 2 +- .../native/AddPeopleDialog.js | 22 ++--- .../add-people-dialog/web/AddPeopleDialog.js | 2 +- .../add-people-dialog/web/DialInNumber.js | 2 +- .../add-people-dialog/web/DialInSection.js | 2 +- .../web/InviteByEmailSection.js | 2 + .../web/InviteContactsForm.js | 4 +- .../web/LiveStreamSection.js | 2 + .../components/callee-info/CalleeInfo.js | 2 +- .../callee-info/CalleeInfoContainer.js | 2 +- .../dial-in-info-page/NoRoomError.web.js | 2 +- .../dial-in-summary/web/ConferenceID.js | 2 +- .../dial-in-summary/web/DialInSummary.js | 2 +- .../dial-in-summary/web/NumbersList.js | 2 +- react/features/invite/constants.js | 2 +- react/features/jaas/constants.js | 6 +- react/features/jaas/reducer.js | 4 +- .../components/KeyboardShortcutsDialog.web.js | 2 +- .../components/LargeVideo.native.js | 6 +- .../large-video/components/LargeVideo.web.js | 14 +-- .../components/LargeVideoBackground.web.js | 2 +- .../lobby/components/AbstractLobbyScreen.js | 6 +- react/features/lobby/constants.js | 3 +- .../components/LocalRecordingInfoDialog.js | 2 +- .../components/LocalRecordingLabel.web.js | 2 +- .../controller/RecordingController.js | 4 +- .../local-recording/recording/OggAdapter.js | 3 + .../recording/flac/flacEncodeWorker.js | 8 +- .../recording/flac/messageTypes.js | 2 +- .../local-recording/session/SessionManager.js | 10 +- .../components/AudioRoutePickerDialog.js | 2 +- .../mobile/back-button/BackButtonRegistry.js | 2 +- .../components/IncomingCallApp.js | 2 +- .../no-audio-signal/components/DialInLink.js | 2 +- react/features/no-audio-signal/reducer.js | 2 +- react/features/noise-detection/reducer.js | 2 +- .../components/AbstractNotification.js | 6 +- .../components/native/Notification.js | 2 +- .../native/NotificationsContainer.js | 2 +- .../components/web/Notification.js | 10 +- .../components/web/NotificationsContainer.js | 2 +- .../OldElectronAPPNotificationDescription.js | 2 +- .../components/AbstractPageReloadOverlay.js | 2 +- .../components/native/PageReloadOverlay.js | 4 +- .../components/web/AbstractSlowGUMOverlay.js | 2 +- .../components/web/PageReloadOverlay.js | 4 +- .../overlay/components/web/SlowGUMOverlay.js | 2 +- .../ContextMenuLobbyParticipantReject.js | 2 +- .../components/native/LobbyParticipantItem.js | 2 +- .../components/native/ParticipantItem.js | 6 +- .../components/web/ClearableInput.js | 2 +- .../components/web/FooterButton.js | 4 +- .../components/web/LobbyParticipantItem.js | 2 +- .../web/LobbyParticipantQuickAction.js | 2 +- .../components/web/LobbyParticipants.js | 92 +++++++++---------- .../web/MeetingParticipantContextMenu.js | 10 +- .../components/web/MeetingParticipantItem.js | 6 +- .../components/web/MeetingParticipantItems.js | 4 +- .../components/web/MeetingParticipants.js | 11 ++- .../components/web/ParticipantItem.js | 12 +-- .../web/ParticipantPaneBaseButton.js | 2 +- .../components/web/ParticipantsPane.js | 2 +- react/features/participants-pane/reducer.js | 4 +- .../polls/components/AbstractPollResults.js | 2 +- .../polls/components/native/PollItem.js | 2 +- .../polls/components/native/PollResults.js | 5 +- .../polls/components/native/PollsList.js | 20 ++-- .../features/polls/components/web/PollItem.js | 4 +- .../polls/components/web/PollsList.js | 30 +++--- react/features/polls/types.js | 20 ++-- .../features/prejoin/components/PrejoinApp.js | 2 +- .../components/dialogs/DialInDialog.js | 2 +- .../components/dialogs/JoinByPhoneDialog.js | 4 +- react/features/prejoin/reducer.js | 4 +- .../components/PresenceLabel.js | 2 +- .../components/native/RaiseHandButton.js | 2 +- .../components/native/ReactionButton.js | 14 +-- .../components/web/ReactionButton.js | 4 +- .../reactions/components/web/ReactionEmoji.js | 2 +- .../reactions/components/web/ReactionsMenu.js | 6 +- .../components/web/ReactionsMenuButton.js | 12 +-- .../components/web/ReactionsMenuPopup.js | 12 +-- react/features/reactions/constants.js | 2 +- react/features/reactions/reducer.js | 4 +- .../components/AbstractRecentList.js | 2 +- .../components/RecentList.native.js | 2 +- .../recent-list/components/RecentList.web.js | 2 +- .../features/recent-list/functions.native.js | 2 +- react/features/recent-list/middleware.js | 6 +- .../components/AbstractRecordingLabel.js | 4 +- .../AbstractStopLiveStreamDialog.js | 2 +- .../LiveStream/AbstractStreamKeyForm.js | 6 +- .../LiveStream/native/GoogleSigninForm.js | 10 +- .../native/StartLiveStreamDialog.js | 6 +- .../LiveStream/native/StopLiveStreamDialog.js | 4 +- .../LiveStream/native/StreamKeyForm.js | 6 +- .../LiveStream/native/StreamKeyPicker.js | 2 +- .../LiveStream/web/StartLiveStreamDialog.js | 4 +- .../LiveStream/web/StopLiveStreamDialog.js | 2 +- .../LiveStream/web/StreamKeyForm.js | 8 +- .../LiveStream/web/StreamKeyPicker.js | 2 +- .../Recording/AbstractStartRecordingDialog.js | 4 +- .../Recording/AbstractStopRecordingDialog.js | 2 +- .../Recording/StartRecordingDialogContent.js | 4 +- .../Recording/native/StartRecordingDialog.js | 4 +- .../Recording/native/StopRecordingDialog.js | 4 +- .../Recording/web/StartRecordingDialog.js | 2 +- .../Recording/web/StopRecordingDialog.js | 4 +- .../components/native/RecordingLabel.js | 4 +- .../components/web/RecordingLabel.js | 4 +- react/features/remote-control/constants.js | 12 ++- react/features/remote-control/keycodes.js | 7 +- react/features/remote-control/reducer.js | 2 +- .../components/ShareScreenWarningDialog.js | 3 +- .../features/screenshot-capture/constants.js | 10 +- .../security-dialog/web/PasswordForm.js | 2 +- .../security-dialog/web/PasswordSection.js | 3 +- .../settings/components/native/FormRow.js | 2 +- .../components/native/FormSectionAccordion.js | 14 +-- .../components/native/SettingsView.js | 2 +- .../settings/components/web/CalendarTab.js | 2 +- .../settings/components/web/MoreTab.js | 2 +- .../settings/components/web/ProfileTab.js | 2 +- .../settings/components/web/SettingsDialog.js | 2 +- .../settings/components/web/SoundsTab.js | 2 +- .../web/audio/AudioSettingsContent.js | 6 +- .../components/web/audio/MicrophoneEntry.js | 2 +- .../components/web/audio/SpeakerEntry.js | 2 +- .../components/web/audio/TestButton.js | 2 +- .../web/video/VideoSettingsContent.js | 2 +- react/features/shared-video/actions.any.js | 13 ++- .../components/native/AbstractVideoManager.js | 27 +++--- .../components/native/SharedVideo.js | 12 +-- .../components/native/SharedVideoButton.js | 2 +- .../components/web/AbstractVideoManager.js | 45 ++++----- .../components/web/SharedVideo.js | 12 +-- .../components/web/SharedVideoButton.js | 6 +- .../components/web/YoutubeVideoManager.js | 4 +- react/features/shared-video/constants.js | 5 +- react/features/shared-video/middleware.any.js | 2 +- .../speaker-stats/components/SpeakerStats.js | 2 +- .../components/SpeakerStatsItem.js | 2 +- .../components/SpeakerStatsLabels.js | 2 +- .../speaker-stats/components/TimeElapsed.js | 2 +- react/features/speaker-stats/reducer.js | 6 +- .../audio-mixer/AudioMixerEffect.js | 2 +- .../stream-effects/presenter/TimeWorker.js | 10 +- .../virtual-background/TimerWorker.js | 10 +- .../subtitles/components/AbstractCaptions.js | 2 +- react/features/subtitles/reducer.js | 2 +- .../components/AbstractToolbarButton.js | 2 +- .../toolbox/components/AudioMuteButton.js | 2 +- .../toolbox/components/HangupButton.js | 2 +- .../toolbox/components/MuteEveryoneButton.js | 2 +- .../components/MuteEveryonesVideoButton.js | 2 +- .../toolbox/components/VideoMuteButton.js | 2 +- .../native/ScreenSharingIosButton.js | 76 +++++++-------- .../components/web/AudioSettingsButton.js | 4 +- .../components/web/FullscreenButton.js | 14 +-- .../components/web/OverflowMenuButton.js | 2 +- .../toolbox/components/web/ProfileButton.js | 12 +-- .../components/web/ProfileButtonAvatar.js | 2 +- .../components/web/ShareDesktopButton.js | 8 +- .../toolbox/components/web/ToolbarButton.js | 4 +- .../toolbox/components/web/Toolbox.js | 2 +- .../components/web/VideoSettingsButton.js | 8 +- react/features/toolbox/constants.js | 2 +- react/features/toolbox/middleware.js | 28 +++--- .../components/TranscribingLabel.native.js | 2 +- .../components/TranscribingLabel.web.js | 2 +- react/features/transcribing/reducer.js | 8 +- .../video-layout/components/TileViewButton.js | 2 +- .../AbstractGrantModeratorButton.js | 16 ++-- .../components/AbstractMuteEveryoneDialog.js | 2 +- .../AbstractMuteEveryonesVideoDialog.js | 2 +- .../AbstractMuteRemoteParticipantDialog.js | 2 +- ...stractMuteRemoteParticipantsVideoDialog.js | 2 +- .../components/native/MuteEveryoneDialog.js | 2 +- .../native/MuteEveryonesVideoDialog.js | 2 +- .../components/web/FlipLocalVideoButton.js | 2 +- .../components/web/GrantModeratorButton.js | 2 +- .../video-menu/components/web/KickButton.js | 2 +- .../web/LocalVideoMenuTriggerButton.js | 2 +- .../video-menu/components/web/MuteButton.js | 2 +- .../components/web/MuteEveryoneDialog.js | 2 +- .../components/web/MuteEveryoneElseButton.js | 2 +- .../web/MuteEveryoneElsesVideoButton.js | 2 +- .../web/MuteEveryonesVideoDialog.js | 2 +- .../web/MuteRemoteParticipantsVideoDialog.js | 2 +- .../components/web/MuteVideoButton.js | 2 +- .../components/web/RemoteControlButton.js | 2 +- .../web/RemoteVideoMenuTriggerButton.js | 2 +- .../components/web/VideoMenuButton.js | 2 +- .../video-menu/components/web/VolumeSlider.js | 2 +- .../components/VideoQualityButton.web.js | 2 +- .../components/VideoQualityDialog.web.js | 2 +- .../components/VideoQualityLabel.web.js | 4 +- .../components/VideoQualitySlider.web.js | 2 +- react/features/video-quality/constants.js | 2 + react/features/videosipgw/middleware.js | 4 +- .../components/VirtualBackgroundPreview.js | 2 +- .../features/virtual-background/middleware.js | 2 +- .../welcome/components/AbstractWelcomePage.js | 4 +- react/features/welcome/components/Tab.js | 2 +- react/features/welcome/components/Tabs.js | 2 +- .../welcome/components/WelcomePage.native.js | 2 +- .../welcome/components/WelcomePage.web.js | 3 +- .../components/WelcomePageSideBar.native.js | 2 +- react/index.native.js | 2 +- .../prosody-plugins/mod_reservations.lua | 2 - 385 files changed, 933 insertions(+), 900 deletions(-) diff --git a/.eslintignore b/.eslintignore index d19de9fbb..08aee0992 100644 --- a/.eslintignore +++ b/.eslintignore @@ -13,3 +13,6 @@ load-test/* # not seem to be a reason why we will want to risk being inconsistent with our # remaining JavaScript source code. !.eslintrc.js + +# Not worth it. +actionTypes.js diff --git a/conference.js b/conference.js index a6cb84671..17b3c621d 100644 --- a/conference.js +++ b/conference.js @@ -760,7 +760,7 @@ export default { // XXX The API will take care of disconnecting from the XMPP // server (and, thus, leaving the room) on unload. return new Promise((resolve, reject) => { - (new ConferenceConnector(resolve, reject)).connect(); + new ConferenceConnector(resolve, reject).connect(); }); }, diff --git a/modules/API/constants.js b/modules/API/constants.js index 4d5213719..9212979ca 100644 --- a/modules/API/constants.js +++ b/modules/API/constants.js @@ -12,6 +12,6 @@ import { parseURLParams } from '../../react/features/base/util/parseURLParams'; export const API_ID = parseURLParams(window.location).jitsi_meet_external_api_id; /** - * The payload name for the datachannel/endpoint text message event + * The payload name for the datachannel/endpoint text message event. */ export const ENDPOINT_TEXT_MESSAGE_NAME = 'endpoint-text-message'; diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js index 140376bc5..43967b203 100644 --- a/modules/API/external/external_api.js +++ b/modules/API/external/external_api.js @@ -24,7 +24,7 @@ const ALWAYS_ON_TOP_FILENAMES = [ /** * Maps the names of the commands expected by the API with the name of the - * commands expected by jitsi-meet + * commands expected by jitsi-meet. */ const commands = { answerKnockingParticipant: 'answer-knocking-participant', @@ -75,7 +75,7 @@ const commands = { /** * Maps the names of the events expected by the API with the name of the - * events expected by jitsi-meet + * events expected by jitsi-meet. */ const events = { 'avatar-changed': 'avatarChanged', @@ -129,7 +129,8 @@ const events = { }; /** - * Last id of api object + * Last id of api object. + * * @type {number} */ let id = 0; @@ -387,7 +388,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter { } return ALWAYS_ON_TOP_FILENAMES.map( - filename => (new URL(filename, baseURL)).href + filename => new URL(filename, baseURL).href ); } diff --git a/package-lock.json b/package-lock.json index b378599b5..55c3500fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,7 +60,7 @@ "jquery-i18next": "1.2.1", "js-md5": "0.6.1", "jwt-decode": "2.2.0", - "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#e6b330186fbf667d1f8a7fa48410772cd2526e9d", + "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#03bc5278dab9283b9eceee9e7b6d9b48511e3d53", "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d", "lodash": "4.17.21", "moment": "2.29.1", @@ -12405,8 +12405,8 @@ }, "node_modules/lib-jitsi-meet": { "version": "0.0.0", - "resolved": "git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#e6b330186fbf667d1f8a7fa48410772cd2526e9d", - "integrity": "sha512-9dGkPk5cvhIeo9USMH9vqXk0dgbfF5rmhFFu8Zrr0I93HxmHd7hWdnwlTaOuSQc6E0q/NZTOxGn3TStNp5VN7Q==", + "resolved": "git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#03bc5278dab9283b9eceee9e7b6d9b48511e3d53", + "integrity": "sha512-PrmwypA0wTjSXswh29tnNFng505+NhLpvSNhJRa82L+bfhCCAI1c/Z2BaKFUf4FpM7s/fsU4w5yE//WZ6MpNMQ==", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -29724,9 +29724,9 @@ } }, "lib-jitsi-meet": { - "version": "git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#e6b330186fbf667d1f8a7fa48410772cd2526e9d", - "integrity": "sha512-9dGkPk5cvhIeo9USMH9vqXk0dgbfF5rmhFFu8Zrr0I93HxmHd7hWdnwlTaOuSQc6E0q/NZTOxGn3TStNp5VN7Q==", - "from": "lib-jitsi-meet@github:jitsi/lib-jitsi-meet#e6b330186fbf667d1f8a7fa48410772cd2526e9d", + "version": "git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#03bc5278dab9283b9eceee9e7b6d9b48511e3d53", + "integrity": "sha512-PrmwypA0wTjSXswh29tnNFng505+NhLpvSNhJRa82L+bfhCCAI1c/Z2BaKFUf4FpM7s/fsU4w5yE//WZ6MpNMQ==", + "from": "lib-jitsi-meet@github:jitsi/lib-jitsi-meet#03bc5278dab9283b9eceee9e7b6d9b48511e3d53", "requires": { "@jitsi/js-utils": "2.0.0", "@jitsi/sdp-interop": "github:jitsi/sdp-interop#4669790bb9020cc8f10c1d1f3823c26b08497547", diff --git a/react/.eslintrc.js b/react/.eslintrc.js index 2f816715e..419e27dc2 100644 --- a/react/.eslintrc.js +++ b/react/.eslintrc.js @@ -5,5 +5,9 @@ module.exports = { 'eslint-config-jitsi/jsdoc', 'eslint-config-jitsi/react', '.eslintrc-react-native.js' - ] + ], + 'rules': { + // XXX remove this eventually. + 'react/jsx-indent-props': 0 + } }; diff --git a/react/features/always-on-top/AlwaysOnTop.js b/react/features/always-on-top/AlwaysOnTop.js index 6fd843b37..b34037de4 100644 --- a/react/features/always-on-top/AlwaysOnTop.js +++ b/react/features/always-on-top/AlwaysOnTop.js @@ -33,7 +33,7 @@ type State = { * Represents the always on top page. * * @class AlwaysOnTop - * @extends Component + * @augments Component */ export default class AlwaysOnTop extends Component<*, State> { _hovered: boolean; diff --git a/react/features/always-on-top/Toolbar.js b/react/features/always-on-top/Toolbar.js index 80b6b103c..8594bbd1b 100644 --- a/react/features/always-on-top/Toolbar.js +++ b/react/features/always-on-top/Toolbar.js @@ -30,7 +30,7 @@ type Props = { /** * Represents the toolbar in the Always On Top window. * - * @extends Component + * @augments Component */ export default class Toolbar extends Component { /** diff --git a/react/features/analytics/AnalyticsEvents.js b/react/features/analytics/AnalyticsEvents.js index 566948939..bc638a9fa 100644 --- a/react/features/analytics/AnalyticsEvents.js +++ b/react/features/analytics/AnalyticsEvents.js @@ -2,6 +2,7 @@ * The constant for the event type 'track'. * TODO: keep these constants in a single place. Can we import them from * lib-jitsi-meet's AnalyticsEvents somehow? + * * @type {string} */ const TYPE_TRACK = 'track'; @@ -10,6 +11,7 @@ const TYPE_TRACK = 'track'; * The constant for the event type 'UI' (User Interaction). * TODO: keep these constants in a single place. Can we import them from * lib-jitsi-meet's AnalyticsEvents somehow? + * * @type {string} */ const TYPE_UI = 'ui'; diff --git a/react/features/analytics/handlers/AbstractHandler.js b/react/features/analytics/handlers/AbstractHandler.js index f77783a31..2d9b768df 100644 --- a/react/features/analytics/handlers/AbstractHandler.js +++ b/react/features/analytics/handlers/AbstractHandler.js @@ -1,5 +1,5 @@ /** - * Abstract implementation of analytics handler + * Abstract implementation of analytics handler. */ export default class AbstractHandler { /** diff --git a/react/features/app/components/App.native.js b/react/features/app/components/App.native.js index 0c4f689c7..9272427df 100644 --- a/react/features/app/components/App.native.js +++ b/react/features/app/components/App.native.js @@ -51,7 +51,7 @@ type Props = AbstractAppProps & { /** * Root app {@code Component} on mobile/React Native. * - * @extends AbstractApp + * @augments AbstractApp */ export class App extends AbstractApp { _init: Promise<*>; diff --git a/react/features/app/components/App.web.js b/react/features/app/components/App.web.js index ffc6aa9d5..43547e824 100644 --- a/react/features/app/components/App.web.js +++ b/react/features/app/components/App.web.js @@ -17,7 +17,7 @@ import '../reducers'; /** * Root app {@code Component} on Web/React. * - * @extends AbstractApp + * @augments AbstractApp */ export class App extends AbstractApp { /** diff --git a/react/features/audio-level-indicator/components/AudioLevelIndicator.js b/react/features/audio-level-indicator/components/AudioLevelIndicator.js index 9d059d3c9..6a2acc0cc 100644 --- a/react/features/audio-level-indicator/components/AudioLevelIndicator.js +++ b/react/features/audio-level-indicator/components/AudioLevelIndicator.js @@ -29,7 +29,7 @@ type Props = { /** * Creates a ReactElement responsible for drawing audio levels. * - * @extends {Component} + * @augments {Component} */ class AudioLevelIndicator extends Component { /** diff --git a/react/features/authentication/components/native/LoginDialog.js b/react/features/authentication/components/native/LoginDialog.js index 5d394e61c..105982f3b 100644 --- a/react/features/authentication/components/native/LoginDialog.js +++ b/react/features/authentication/components/native/LoginDialog.js @@ -29,7 +29,7 @@ import './styles'; type Props = { /** - * {@link JitsiConference} that needs authentication - will hold a valid + * {@link JitsiConference} That needs authentication - will hold a valid * value in XMPP login + guest access mode. */ _conference: Object, diff --git a/react/features/authentication/components/web/LoginDialog.js b/react/features/authentication/components/web/LoginDialog.js index 4be9661e3..775da1a37 100644 --- a/react/features/authentication/components/web/LoginDialog.js +++ b/react/features/authentication/components/web/LoginDialog.js @@ -21,7 +21,7 @@ import { type Props = { /** - * {@link JitsiConference} that needs authentication - will hold a valid + * {@link JitsiConference} That needs authentication - will hold a valid * value in XMPP login + guest access mode. */ _conference: Object, diff --git a/react/features/base/app/components/BaseApp.js b/react/features/base/app/components/BaseApp.js index 6a567be10..f34233f50 100644 --- a/react/features/base/app/components/BaseApp.js +++ b/react/features/base/app/components/BaseApp.js @@ -259,5 +259,5 @@ export default class BaseApp extends Component<*, State> { * * @returns {React$Element} */ - _renderDialogContainer: () => React$Element<*> + _renderDialogContainer: () => React$Element<*>; } diff --git a/react/features/base/app/reducer.js b/react/features/base/app/reducer.js index 2badd0c96..e099c5d67 100644 --- a/react/features/base/app/reducer.js +++ b/react/features/base/app/reducer.js @@ -12,13 +12,6 @@ ReducerRegistry.register('features/base/app', (state = {}, action) => { if (state.app !== app) { return { ...state, - - /** - * The one and only (i.e. singleton) {@link BaseApp} instance - * which is currently mounted. - * - * @type {BaseApp} - */ app }; } diff --git a/react/features/base/avatar/components/Avatar.js b/react/features/base/avatar/components/Avatar.js index 31bbe85b7..47834a9b9 100644 --- a/react/features/base/avatar/components/Avatar.js +++ b/react/features/base/avatar/components/Avatar.js @@ -38,12 +38,12 @@ export type Props = { /** * Display name of the entity to render an avatar for (if any). This is handy when we need - * an avatar for a non-participasnt entity (e.g. a recent list item). + * an avatar for a non-participasnt entity (e.g. A recent list item). */ displayName?: string, /** - * Whether or not to update the background color of the avatar + * Whether or not to update the background color of the avatar. */ dynamicColor?: Boolean, diff --git a/react/features/base/avatar/components/native/StatelessAvatar.js b/react/features/base/avatar/components/native/StatelessAvatar.js index 1d50fcab8..e108693ec 100644 --- a/react/features/base/avatar/components/native/StatelessAvatar.js +++ b/react/features/base/avatar/components/native/StatelessAvatar.js @@ -63,7 +63,7 @@ export default class StatelessAvatar extends AbstractStatelessAvatar { ); } - _isIcon: (?string | ?Object) => boolean + _isIcon: (?string | ?Object) => boolean; /** * Renders a badge representing the avatar status. diff --git a/react/features/base/avatar/components/web/StatelessAvatar.js b/react/features/base/avatar/components/web/StatelessAvatar.js index 6e509c566..57a1b8b17 100644 --- a/react/features/base/avatar/components/web/StatelessAvatar.js +++ b/react/features/base/avatar/components/web/StatelessAvatar.js @@ -13,7 +13,7 @@ type Props = AbstractProps & { className?: string, /** - * The default avatar URL if we want to override the app bundled one (e.g. AlwaysOnTop) + * The default avatar URL if we want to override the app bundled one (e.g. AlwaysOnTop). */ defaultAvatar?: string, @@ -157,5 +157,5 @@ export default class StatelessAvatar extends AbstractStatelessAvatar { return ''; } - _isIcon: (?string | ?Object) => boolean + _isIcon: (?string | ?Object) => boolean; } diff --git a/react/features/base/buttons/CopyButton.js b/react/features/base/buttons/CopyButton.js index c81e2a540..b1d2188cb 100644 --- a/react/features/base/buttons/CopyButton.js +++ b/react/features/base/buttons/CopyButton.js @@ -1,5 +1,7 @@ // @flow +/* eslint-disable react/jsx-no-bind */ + import React, { useState } from 'react'; import { Icon, IconCheck, IconCopy } from '../../base/icons'; @@ -9,32 +11,32 @@ import { copyText } from '../util'; type Props = { /** - * Css class to apply on container + * Css class to apply on container. */ className: string, /** - * The displayed text + * The displayed text. */ displayedText: string, /** - * The text that needs to be copied (might differ from the displayedText) + * The text that needs to be copied (might differ from the displayedText). */ textToCopy: string, /** - * The text displayed on mouse hover + * The text displayed on mouse hover. */ textOnHover: string, /** - * The text displayed on copy success + * The text displayed on copy success. */ textOnCopySuccess: string, /** - * The id of the button + * The id of the button. */ id?: string, }; diff --git a/react/features/base/components/buttons/QuickActionButton.js b/react/features/base/components/buttons/QuickActionButton.js index b8e377c56..3334a29eb 100644 --- a/react/features/base/components/buttons/QuickActionButton.js +++ b/react/features/base/components/buttons/QuickActionButton.js @@ -21,7 +21,7 @@ type Props = { children: string | React$Node, /** - * Click handler + * Click handler. */ onClick: Function, diff --git a/react/features/base/components/context-menu/ContextMenu.js b/react/features/base/components/context-menu/ContextMenu.js index 9855b91f1..0aee6d45d 100644 --- a/react/features/base/components/context-menu/ContextMenu.js +++ b/react/features/base/components/context-menu/ContextMenu.js @@ -37,12 +37,12 @@ type Props = { isDrawerOpen: boolean, /** - * Target elements against which positioning calculations are made + * Target elements against which positioning calculations are made. */ offsetTarget?: HTMLElement, /** - * Callback for click on an item in the menu + * Callback for click on an item in the menu. */ onClick?: Function, @@ -52,12 +52,12 @@ type Props = { onDrawerClose: Function, /** - * Callback for the mouse entering the component + * Callback for the mouse entering the component. */ onMouseEnter?: Function, /** - * Callback for the mouse leaving the component + * Callback for the mouse leaving the component. */ onMouseLeave: Function }; diff --git a/react/features/base/components/context-menu/ContextMenuItemGroup.js b/react/features/base/components/context-menu/ContextMenuItemGroup.js index ac97a4f39..eb6d37a09 100644 --- a/react/features/base/components/context-menu/ContextMenuItemGroup.js +++ b/react/features/base/components/context-menu/ContextMenuItemGroup.js @@ -54,7 +54,7 @@ type Props = { actions?: Array, /** - * The children of the component + * The children of the component. */ children?: React$Node, }; diff --git a/react/features/base/components/particpants-pane-list/ListItem.js b/react/features/base/components/particpants-pane-list/ListItem.js index ff26ce818..ec0869e01 100644 --- a/react/features/base/components/particpants-pane-list/ListItem.js +++ b/react/features/base/components/particpants-pane-list/ListItem.js @@ -14,7 +14,7 @@ type Props = { actions: React$Node, /** - * Icon to be displayed on the list item. (Avatar for participants) + * Icon to be displayed on the list item. (Avatar for participants). */ icon: React$Node, diff --git a/react/features/base/config/extraConfigWhitelist.js b/react/features/base/config/extraConfigWhitelist.js index d66fc0ae3..dda7c05b6 100644 --- a/react/features/base/config/extraConfigWhitelist.js +++ b/react/features/base/config/extraConfigWhitelist.js @@ -1,4 +1,4 @@ /** - * Deploy-specific configuration whitelists + * Deploy-specific configuration whitelists. */ export default []; diff --git a/react/features/base/dialog/components/native/AlertDialog.js b/react/features/base/dialog/components/native/AlertDialog.js index f732e73b6..c75a073f9 100644 --- a/react/features/base/dialog/components/native/AlertDialog.js +++ b/react/features/base/dialog/components/native/AlertDialog.js @@ -45,7 +45,7 @@ class AlertDialog extends BaseSubmitDialog { ); } - _renderHTML: string => Object | string + _renderHTML: string => Object | string; } export default translate(connect(_abstractMapStateToProps)(AlertDialog)); diff --git a/react/features/base/dialog/components/native/BaseDialog.js b/react/features/base/dialog/components/native/BaseDialog.js index 4e782f642..5356feb9a 100644 --- a/react/features/base/dialog/components/native/BaseDialog.js +++ b/react/features/base/dialog/components/native/BaseDialog.js @@ -93,7 +93,7 @@ class BaseDialog extends AbstractDialog { * * @returns {ReactElement} */ - _renderContent: () => Object + _renderContent: () => Object; /** * Renders a specific {@code string} which may contain HTML. diff --git a/react/features/base/dialog/components/native/BaseSubmitDialog.js b/react/features/base/dialog/components/native/BaseSubmitDialog.js index 1c4189eb9..cd94d262c 100644 --- a/react/features/base/dialog/components/native/BaseSubmitDialog.js +++ b/react/features/base/dialog/components/native/BaseSubmitDialog.js @@ -21,7 +21,7 @@ type Props = BaseProps & { } /** - * Abstract dialog to submit something. E.g. a confirmation or a form. + * Abstract dialog to submit something. E.g. A confirmation or a form. */ class BaseSubmitDialog extends BaseDialog { /** @@ -84,16 +84,16 @@ class BaseSubmitDialog extends BaseDialog { _onSubmit: () => boolean; - _renderHTML: string => Object | string + _renderHTML: string => Object | string; - /** + /** . * Renders the actual content of the dialog defining what is about to be - * submitted. E.g. a simple confirmation (text, properly wrapped) or a + * submitted. E.g. A simple confirmation (text, properly wrapped) or a * complex form. * * @returns {Object} */ - _renderSubmittable: () => Object + _renderSubmittable: () => Object; } export default BaseSubmitDialog; diff --git a/react/features/base/dialog/components/native/BottomSheet.js b/react/features/base/dialog/components/native/BottomSheet.js index 8ec9a453e..9fc917e4e 100644 --- a/react/features/base/dialog/components/native/BottomSheet.js +++ b/react/features/base/dialog/components/native/BottomSheet.js @@ -72,7 +72,7 @@ type Props = { showSlidingView?: boolean, /** - * The component's external style + * The component's external style. */ style: Object }; diff --git a/react/features/base/dialog/components/native/ConfirmDialog.js b/react/features/base/dialog/components/native/ConfirmDialog.js index f827f27c4..98ba5d2a4 100644 --- a/react/features/base/dialog/components/native/ConfirmDialog.js +++ b/react/features/base/dialog/components/native/ConfirmDialog.js @@ -101,7 +101,7 @@ class ConfirmDialog extends BaseSubmitDialog { ); } - _renderHTML: string => Object | string + _renderHTML: string => Object | string; } export default translate(connect(_abstractMapStateToProps)(ConfirmDialog)); diff --git a/react/features/base/dialog/components/native/DialogContainer.js b/react/features/base/dialog/components/native/DialogContainer.js index 224504385..d9bff38c7 100644 --- a/react/features/base/dialog/components/native/DialogContainer.js +++ b/react/features/base/dialog/components/native/DialogContainer.js @@ -12,7 +12,7 @@ import AbstractDialogContainer, { * need a separate container so we can handle multiple dialogs by showing them * simultaneously or queueing them. * - * @extends AbstractDialogContainer + * @augments AbstractDialogContainer */ class DialogContainer extends AbstractDialogContainer { diff --git a/react/features/base/dialog/components/native/InputDialog.js b/react/features/base/dialog/components/native/InputDialog.js index 5541d49a9..59f1f6e93 100644 --- a/react/features/base/dialog/components/native/InputDialog.js +++ b/react/features/base/dialog/components/native/InputDialog.js @@ -34,7 +34,7 @@ type Props = BaseProps & { initialValue?: ?string, /** - * A message key to be shown for the user (e.g. an error that is defined after submitting the form). + * A message key to be shown for the user (e.g. An error that is defined after submitting the form). */ messageKey?: string, diff --git a/react/features/base/dialog/components/web/AbstractDialogTab.js b/react/features/base/dialog/components/web/AbstractDialogTab.js index 0f1d29488..9e8ea0041 100644 --- a/react/features/base/dialog/components/web/AbstractDialogTab.js +++ b/react/features/base/dialog/components/web/AbstractDialogTab.js @@ -27,7 +27,7 @@ export type Props = { /** * Abstract React {@code Component} for tabs of the DialogWithTabs component. * - * @extends Component + * @augments Component */ class AbstractDialogTab extends Component { /** diff --git a/react/features/base/dialog/components/web/Dialog.js b/react/features/base/dialog/components/web/Dialog.js index 1610b77e8..b268d8aa3 100644 --- a/react/features/base/dialog/components/web/Dialog.js +++ b/react/features/base/dialog/components/web/Dialog.js @@ -34,7 +34,7 @@ type Props = AbstractDialogProps & { * - 'small' (400px), 'medium' (600px), 'large' (800px), * 'x-large' (968px) * - integer value for pixel width - * - string value for percentage + * - string value for percentage. */ width: string }; diff --git a/react/features/base/dialog/components/web/DialogContainer.js b/react/features/base/dialog/components/web/DialogContainer.js index 4aa5c3bc2..f54958af0 100644 --- a/react/features/base/dialog/components/web/DialogContainer.js +++ b/react/features/base/dialog/components/web/DialogContainer.js @@ -10,7 +10,7 @@ import AbstractDialogContainer, { * Implements a DialogContainer responsible for showing all dialogs. Necessary * for supporting @atlaskit's modal animations. * - * @extends AbstractDialogContainer + * @augments AbstractDialogContainer */ class DialogContainer extends AbstractDialogContainer { /** diff --git a/react/features/base/dialog/components/web/DialogWithTabs.js b/react/features/base/dialog/components/web/DialogWithTabs.js index 35282fb14..421c810f3 100644 --- a/react/features/base/dialog/components/web/DialogWithTabs.js +++ b/react/features/base/dialog/components/web/DialogWithTabs.js @@ -77,7 +77,7 @@ type State = { /** * A React {@code Component} for displaying a dialog with tabs. * - * @extends Component + * @augments Component */ class DialogWithTabs extends Component { /** diff --git a/react/features/base/dialog/components/web/ModalHeader.js b/react/features/base/dialog/components/web/ModalHeader.js index fd702bbb2..e0d30b4dc 100644 --- a/react/features/base/dialog/components/web/ModalHeader.js +++ b/react/features/base/dialog/components/web/ModalHeader.js @@ -77,11 +77,10 @@ const styles = theme => { /** - * A default header for modal-dialog components + * A default header for modal-dialog components. * - * @export * @class ModalHeader - * @extends {React.Component} + * @augments {React.Component} */ class ModalHeader extends React.Component { static defaultProps = { diff --git a/react/features/base/dialog/components/web/StatelessDialog.js b/react/features/base/dialog/components/web/StatelessDialog.js index 62571388d..94ca399d2 100644 --- a/react/features/base/dialog/components/web/StatelessDialog.js +++ b/react/features/base/dialog/components/web/StatelessDialog.js @@ -14,12 +14,14 @@ import ModalHeader from './ModalHeader'; /** * The ID to be used for the cancel button if enabled. + * * @type {string} */ const CANCEL_BUTTON_ID = 'modal-dialog-cancel-button'; /** * The ID to be used for the ok button if enabled. + * * @type {string} */ const OK_BUTTON_ID = 'modal-dialog-ok-button'; @@ -102,7 +104,7 @@ type Props = DialogProps & { * - 'small' (400px), 'medium' (600px), 'large' (800px), * 'x-large' (968px) * - integer value for pixel width - * - string value for percentage + * - string value for percentage. */ width: string }; @@ -131,7 +133,7 @@ class StatelessDialog extends Component { /** * The functional component to be used for rendering the modal footer. */ - _Footer: ?Function + _Footer: ?Function; _dialogElement: ?HTMLElement; diff --git a/react/features/base/dialog/components/web/ThemedDialog.js b/react/features/base/dialog/components/web/ThemedDialog.js index 4bca07894..dff884922 100644 --- a/react/features/base/dialog/components/web/ThemedDialog.js +++ b/react/features/base/dialog/components/web/ThemedDialog.js @@ -1,3 +1,5 @@ +// @flow + import { Dialog, FillScreen, @@ -10,7 +12,11 @@ import { N0, DN50 } from '@atlaskit/theme/colors'; import { themed } from '@atlaskit/theme/components'; import React from 'react'; -const ThemedDialog = props => { +type Props = { + isChromeless: boolean +} + +const ThemedDialog = (props: Props) => { const style = { backgroundColor: props.isChromeless ? 'transparent' : themed({ light: N0, dark: DN50 })({ theme: { mode: 'dark' } }) }; diff --git a/react/features/base/dialog/constants.js b/react/features/base/dialog/constants.js index 5ec6da131..2a58111df 100644 --- a/react/features/base/dialog/constants.js +++ b/react/features/base/dialog/constants.js @@ -52,7 +52,7 @@ export type DialogProps = { /** * The string to use as a title instead of {@code titleKey}. If a truthy * value is specified, it takes precedence over {@code titleKey} i.e. - * the latter is unused. + * The latter is unused. */ titleString: ?string }; diff --git a/react/features/base/flags/constants.js b/react/features/base/flags/constants.js index 104b6d303..f34e3a0e2 100644 --- a/react/features/base/flags/constants.js +++ b/react/features/base/flags/constants.js @@ -9,7 +9,7 @@ export const ADD_PEOPLE_ENABLED = 'add-people.enabled'; /** * Flag indicating if the SDK should not require the audio focus. * Used by apps that do not use Jitsi audio. - * Default: disabled (false) + * Default: disabled (false). */ export const AUDIO_FOCUS_DISABLED = 'audio-focus.disabled'; @@ -181,13 +181,13 @@ export const RESOLUTION = 'resolution'; /** * Flag indicating if the security options button should be enabled. - * Default: enabled (true) + * Default: enabled (true). */ export const SECURITY_OPTIONS_ENABLED = 'security-options.enabled'; /** * Flag indicating if server URL change is enabled. - * Default: enabled (true) + * Default: enabled (true). */ export const SERVER_URL_CHANGE_ENABLED = 'server-url-change.enabled'; diff --git a/react/features/base/icons/components/Icon.js b/react/features/base/icons/components/Icon.js index 4aa49fa99..2d9baffef 100644 --- a/react/features/base/icons/components/Icon.js +++ b/react/features/base/icons/components/Icon.js @@ -23,7 +23,7 @@ type Props = { id?: string, /** - * Id of the icon container + * Id of the icon container. */ containerId?: string, @@ -48,57 +48,57 @@ type Props = { style?: Object, /** - * aria disabled flag for the Icon. + * Aria disabled flag for the Icon. */ ariaDisabled?: boolean, /** - * aria label for the Icon. + * Aria label for the Icon. */ ariaLabel?: string, /** - * whether the element has a popup + * Whether the element has a popup. */ ariaHasPopup?: boolean, /** - * whether the element has a pressed + * Whether the element has a pressed. */ ariaPressed?: boolean, /** - * id of description label + * Id of description label. */ ariaDescribedBy?: string, /** - * whether the element popup is expanded + * Whether the element popup is expanded. */ ariaExpanded?: boolean, /** - * The id of the element this button icon controls + * The id of the element this button icon controls. */ ariaControls?: string, /** - * tabIndex for the Icon. + * TabIndex for the Icon. */ tabIndex?: number, /** - * role for the Icon. + * Role for the Icon. */ role?: string, /** - * keypress handler. + * Keypress handler. */ onKeyPress?: Function, /** - * keydown handler. + * Keydown handler. */ onKeyDown?: Function } diff --git a/react/features/base/label/components/ExpandedLabel.native.js b/react/features/base/label/components/ExpandedLabel.native.js index f822ce8e2..f95a04894 100644 --- a/react/features/base/label/components/ExpandedLabel.native.js +++ b/react/features/base/label/components/ExpandedLabel.native.js @@ -79,9 +79,9 @@ export default class ExpandedLabel extends Component { * * @returns {string} */ - _getLabel: () => string + _getLabel: () => string; - _getColor: () => string + _getColor: () => string; /** * Defines the color of the expanded label. This function returns a default diff --git a/react/features/base/label/components/Label.native.js b/react/features/base/label/components/Label.native.js index ce2fe1519..01f9ca1a9 100644 --- a/react/features/base/label/components/Label.native.js +++ b/react/features/base/label/components/Label.native.js @@ -24,8 +24,8 @@ type Props = AbstractProps & { /** * Status of the label. This prop adds some additional styles based on its - * value. E.g. if status = off, it will render the label symbolising that - * the thing it displays (e.g. recording) is off. + * value. E.g. If status = off, it will render the label symbolising that + * the thing it displays (e.g. Recording) is off. */ status: ('in_progress' | 'off' | 'on'), diff --git a/react/features/base/label/components/Label.web.js b/react/features/base/label/components/Label.web.js index 4e0fcb955..ef818dcf2 100644 --- a/react/features/base/label/components/Label.web.js +++ b/react/features/base/label/components/Label.web.js @@ -89,7 +89,7 @@ const styles = theme => { /** * React Component for showing short text in a circle. * - * @extends Component + * @augments Component */ class Label extends AbstractLabel { /** diff --git a/react/features/base/logging/JitsiMeetInMemoryLogStorage.js b/react/features/base/logging/JitsiMeetInMemoryLogStorage.js index 2e86387a1..cc2a49ef1 100644 --- a/react/features/base/logging/JitsiMeetInMemoryLogStorage.js +++ b/react/features/base/logging/JitsiMeetInMemoryLogStorage.js @@ -10,6 +10,7 @@ export default class JitsiMeetInMemoryLogStorage { constructor() { /** * Array of the log entries to keep. + * * @type {array} */ this.logs = []; diff --git a/react/features/base/logging/JitsiMeetLogStorage.js b/react/features/base/logging/JitsiMeetLogStorage.js index 4931c798f..72487fa65 100644 --- a/react/features/base/logging/JitsiMeetLogStorage.js +++ b/react/features/base/logging/JitsiMeetLogStorage.js @@ -15,6 +15,7 @@ export default class JitsiMeetLogStorage { constructor(getState) { /** * Counts each log entry, increases on every batch log entry stored. + * * @type {number} */ this.counter = 1; diff --git a/react/features/base/media/components/AbstractAudio.js b/react/features/base/media/components/AbstractAudio.js index dc2778d93..26f395e6c 100644 --- a/react/features/base/media/components/AbstractAudio.js +++ b/react/features/base/media/components/AbstractAudio.js @@ -17,7 +17,7 @@ export type AudioElement = { }; /** - * {@code AbstractAudio} component's property types. + * {@code AbstractAudio} Component's property types. */ type Props = { diff --git a/react/features/base/media/components/native/VideoTrack.js b/react/features/base/media/components/native/VideoTrack.js index d32e91e18..da19700f9 100644 --- a/react/features/base/media/components/native/VideoTrack.js +++ b/react/features/base/media/components/native/VideoTrack.js @@ -12,7 +12,7 @@ import styles from './styles'; /** * Component that renders video element for a specified video track. * - * @extends AbstractVideoTrack + * @augments AbstractVideoTrack */ class VideoTrack extends AbstractVideoTrack { /** diff --git a/react/features/base/media/components/native/VideoTransform.js b/react/features/base/media/components/native/VideoTransform.js index 6c838b732..cb7250128 100644 --- a/react/features/base/media/components/native/VideoTransform.js +++ b/react/features/base/media/components/native/VideoTransform.js @@ -272,7 +272,7 @@ class VideoTransform extends Component { }; } - _didMove: Object => boolean + _didMove: Object => boolean; /** * Determines if there was large enough movement to be handled. @@ -315,7 +315,7 @@ class VideoTransform extends Component { return Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); } - _getTouchPosition: Object => Object + _getTouchPosition: Object => Object; /** * Calculates the position of the touch event. @@ -331,7 +331,7 @@ class VideoTransform extends Component { }; } - _getTransformStyle: () => Object + _getTransformStyle: () => Object; /** * Generates a transform style object to be used on the component. @@ -460,7 +460,7 @@ class VideoTransform extends Component { } } - _onGesture: (string, ?Object | number) => void + _onGesture: (string, ?Object | number) => void; /** * Handles gestures and converts them to transforms. @@ -515,7 +515,7 @@ class VideoTransform extends Component { this.lastTap = 0; } - _onLayout: Object => void + _onLayout: Object => void; /** * Callback for the onLayout of the component. @@ -535,7 +535,7 @@ class VideoTransform extends Component { }); } - _onMoveShouldSetPanResponder: (Object, Object) => boolean + _onMoveShouldSetPanResponder: (Object, Object) => boolean; /** * Function to decide whether the responder should respond to a move event. @@ -551,7 +551,7 @@ class VideoTransform extends Component { || gestureState.numberActiveTouches === 2); } - _onPanResponderGrant: (Object, Object) => void + _onPanResponderGrant: (Object, Object) => void; /** * Calculates the initial touch distance. @@ -571,7 +571,7 @@ class VideoTransform extends Component { } } - _onPanResponderMove: (Object, Object) => void + _onPanResponderMove: (Object, Object) => void; /** * Handles the PanResponder move (touch move) event. @@ -615,7 +615,7 @@ class VideoTransform extends Component { } } - _onPanResponderRelease: () => void + _onPanResponderRelease: () => void; /** * Handles the PanResponder gesture end event. @@ -631,7 +631,7 @@ class VideoTransform extends Component { delete this.initialPosition; } - _onStartShouldSetPanResponder: () => boolean + _onStartShouldSetPanResponder: () => boolean; /** * Function to decide whether the responder should respond to a start diff --git a/react/features/base/media/components/web/Video.js b/react/features/base/media/components/web/Video.js index da0e3859a..d5ec1ddc7 100644 --- a/react/features/base/media/components/web/Video.js +++ b/react/features/base/media/components/web/Video.js @@ -46,82 +46,82 @@ type Props = { eventHandlers?: {| /** - * onAbort event handler. + * OnAbort event handler. */ onAbort?: ?Function, /** - * onCanPlay event handler. + * OnCanPlay event handler. */ onCanPlay?: ?Function, /** - * onCanPlayThrough event handler. + * OnCanPlayThrough event handler. */ onCanPlayThrough?: ?Function, /** - * onEmptied event handler. + * OnEmptied event handler. */ onEmptied?: ?Function, /** - * onEnded event handler. + * OnEnded event handler. */ onEnded?: ?Function, /** - * onError event handler. + * OnError event handler. */ onError?: ?Function, /** - * onLoadedData event handler. + * OnLoadedData event handler. */ onLoadedData?: ?Function, /** - * onLoadedMetadata event handler. + * OnLoadedMetadata event handler. */ onLoadedMetadata?: ?Function, /** - * onLoadStart event handler. + * OnLoadStart event handler. */ onLoadStart?: ?Function, /** - * onPause event handler. + * OnPause event handler. */ onPause?: ?Function, /** - * onPlay event handler. + * OnPlay event handler. */ onPlay?: ?Function, /** - * onPlaying event handler. + * OnPlaying event handler. */ onPlaying?: ?Function, /** - * onRateChange event handler. + * OnRateChange event handler. */ onRateChange?: ?Function, /** - * onStalled event handler. + * OnStalled event handler. */ onStalled?: ?Function, /** - * onSuspend event handler. + * OnSuspend event handler. */ onSuspend?: ?Function, /** - * onWaiting event handler. + * OnWaiting event handler. */ onWaiting?: ?Function |}, @@ -140,7 +140,7 @@ type Props = { /** * Component that renders a video element for a passed in video track. * - * @extends Component + * @augments Component */ class Video extends Component { _videoElement: ?Object; diff --git a/react/features/base/media/components/web/VideoTrack.js b/react/features/base/media/components/web/VideoTrack.js index ffd417c35..f40217aa0 100644 --- a/react/features/base/media/components/web/VideoTrack.js +++ b/react/features/base/media/components/web/VideoTrack.js @@ -37,82 +37,82 @@ type Props = AbstractVideoTrackProps & { eventHandlers?: {| /** - * onAbort event handler. + * OnAbort event handler. */ onAbort?: ?Function, /** - * onCanPlay event handler. + * OnCanPlay event handler. */ onCanPlay?: ?Function, /** - * onCanPlayThrough event handler. + * OnCanPlayThrough event handler. */ onCanPlayThrough?: ?Function, /** - * onEmptied event handler. + * OnEmptied event handler. */ onEmptied?: ?Function, /** - * onEnded event handler. + * OnEnded event handler. */ onEnded?: ?Function, /** - * onError event handler. + * OnError event handler. */ onError?: ?Function, /** - * onLoadedData event handler. + * OnLoadedData event handler. */ onLoadedData?: ?Function, /** - * onLoadedMetadata event handler. + * OnLoadedMetadata event handler. */ onLoadedMetadata?: ?Function, /** - * onLoadStart event handler. + * OnLoadStart event handler. */ onLoadStart?: ?Function, /** - * onPause event handler. + * OnPause event handler. */ onPause?: ?Function, /** - * onPlay event handler. + * OnPlay event handler. */ onPlay?: ?Function, /** - * onPlaying event handler. + * OnPlaying event handler. */ onPlaying?: ?Function, /** - * onRateChange event handler. + * OnRateChange event handler. */ onRateChange?: ?Function, /** - * onStalled event handler. + * OnStalled event handler. */ onStalled?: ?Function, /** - * onSuspend event handler. + * OnSuspend event handler. */ onSuspend?: ?Function, /** - * onWaiting event handler. + * OnWaiting event handler. */ onWaiting?: ?Function, |}, @@ -132,7 +132,7 @@ type Props = AbstractVideoTrackProps & { * Component that renders a video element for a passed in video track and * notifies the store when the video has started playing. * - * @extends AbstractVideoTrack + * @augments AbstractVideoTrack */ class VideoTrack extends AbstractVideoTrack { /** diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.js index 268365b72..0528f39ef 100644 --- a/react/features/base/participants/components/ParticipantView.native.js +++ b/react/features/base/participants/components/ParticipantView.native.js @@ -106,7 +106,7 @@ type Props = { * The test hint id which can be used to locate the {@code ParticipantView} * on the jitsi-meet-torture side. If not provided, the * {@code participantId} with the following format will be used: - * {@code `org.jitsi.meet.Participant#${participantId}`} + * {@code `org.jitsi.meet.Participant#${participantId}`}. */ testHintId: ?string, @@ -133,7 +133,7 @@ type Props = { * Implements a React Component which depicts a specific participant's avatar * and video. * - * @extends Component + * @augments Component */ class ParticipantView extends Component { diff --git a/react/features/base/participants/components/styles.js b/react/features/base/participants/components/styles.js index cff2ca027..0ba974713 100644 --- a/react/features/base/participants/components/styles.js +++ b/react/features/base/participants/components/styles.js @@ -37,7 +37,7 @@ export default { }, /** - * {@code ParticipantView} style. + * {@code ParticipantView} Style. */ participantView: { alignItems: 'stretch', diff --git a/react/features/base/participants/constants.js b/react/features/base/participants/constants.js index b19a43c3f..952112b24 100644 --- a/react/features/base/participants/constants.js +++ b/react/features/base/participants/constants.js @@ -47,6 +47,7 @@ export const MAX_DISPLAY_NAME_LENGTH = 50; /** * The identifier of the sound to be played when new remote participant joins * the room. + * * @type {string} */ export const PARTICIPANT_JOINED_SOUND_ID = 'PARTICIPANT_JOINED_SOUND'; @@ -54,6 +55,7 @@ export const PARTICIPANT_JOINED_SOUND_ID = 'PARTICIPANT_JOINED_SOUND'; /** * The identifier of the sound to be played when remote participant leaves * the room. + * * @type {string} */ export const PARTICIPANT_LEFT_SOUND_ID = 'PARTICIPANT_LEFT_SOUND'; diff --git a/react/features/base/participants/reducer.js b/react/features/base/participants/reducer.js index f94bed66f..d3c76f493 100644 --- a/react/features/base/participants/reducer.js +++ b/react/features/base/participants/reducer.js @@ -20,6 +20,7 @@ declare var interfaceConfig: Object; /** * Participant object. + * * @typedef {Object} Participant * @property {string} id - Participant ID. * @property {string} name - Participant name. diff --git a/react/features/base/popover/components/Popover.web.js b/react/features/base/popover/components/Popover.web.js index 2e11f59da..e49b325d8 100644 --- a/react/features/base/popover/components/Popover.web.js +++ b/react/features/base/popover/components/Popover.web.js @@ -86,7 +86,7 @@ type State = { * Implements a React {@code Component} for showing an {@code InlineDialog} on * mouseenter of the trigger and contents, and hiding the dialog on mouseleave. * - * @extends Component + * @augments Component */ class Popover extends Component { /** diff --git a/react/features/base/premeeting/components/web/ActionButton.js b/react/features/base/premeeting/components/web/ActionButton.js index 3d380115d..80ba7d468 100644 --- a/react/features/base/premeeting/components/web/ActionButton.js +++ b/react/features/base/premeeting/components/web/ActionButton.js @@ -53,27 +53,27 @@ type Props = { onOptionsClick?: Function, /** - * to navigate with the keyboard. + * To navigate with the keyboard. */ tabIndex?: number, /** - * to give a role to the icon. + * To give a role to the icon. */ role?: string, /** - * to give a aria-pressed to the icon. + * To give a aria-pressed to the icon. */ ariaPressed?: boolean, /** - * The Label of the current element + * The Label of the current element. */ ariaLabel?: string, /** - * The Label of the child element + * The Label of the child element. */ ariaDropDownLabel?: string }; diff --git a/react/features/base/premeeting/components/web/InputField.js b/react/features/base/premeeting/components/web/InputField.js index 0744b257d..2d034e222 100644 --- a/react/features/base/premeeting/components/web/InputField.js +++ b/react/features/base/premeeting/components/web/InputField.js @@ -42,7 +42,7 @@ type Props = { readOnly?: boolean, /** - * The field type (e.g. text, password...etc). + * The field type (e.g. Text, password...etc). */ type: string, diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.js b/react/features/base/premeeting/components/web/PreMeetingScreen.js index 3daafdbb0..6d7c3f42b 100644 --- a/react/features/base/premeeting/components/web/PreMeetingScreen.js +++ b/react/features/base/premeeting/components/web/PreMeetingScreen.js @@ -38,12 +38,12 @@ type Props = { name?: string, /** - * Indicates whether the copy url button should be shown + * Indicates whether the copy url button should be shown. */ showCopyUrlButton: boolean, /** - * Indicates whether the device status should be shown + * Indicates whether the device status should be shown. */ showDeviceStatus: boolean, diff --git a/react/features/base/premeeting/components/web/Preview.js b/react/features/base/premeeting/components/web/Preview.js index 394f8fea9..eff136d5b 100644 --- a/react/features/base/premeeting/components/web/Preview.js +++ b/react/features/base/premeeting/components/web/Preview.js @@ -12,7 +12,7 @@ import { getLocalVideoTrack } from '../../../tracks'; export type Props = { /** - * Local participant id + * Local participant id. */ _participantId: string, diff --git a/react/features/base/premeeting/functions.js b/react/features/base/premeeting/functions.js index 88f7de2dc..ddedbb7e8 100644 --- a/react/features/base/premeeting/functions.js +++ b/react/features/base/premeeting/functions.js @@ -115,10 +115,8 @@ function _getLevel(thresholds, value, descending = true) { /** * Returns the connection details from the test results. * - * @param {{ - * fractionalLoss: number, - * throughput: number - * }} testResults - The state of the app. + * @param {number} testResults.fractionalLoss - Factional loss. + * @param {number} testResults.throughput - Throughput. * * @returns {{ * connectionType: string, diff --git a/react/features/base/react/Types.js b/react/features/base/react/Types.js index 29ccabac4..c2e07b5d4 100644 --- a/react/features/base/react/Types.js +++ b/react/features/base/react/Types.js @@ -13,7 +13,7 @@ export type Item = { avatar: ?string, /** - * the color base of the avatar + * The color base of the avatar. */ colorBase: string, @@ -28,46 +28,46 @@ export type Item = { id: Object | string, /** - * Item title + * Item title. */ title: string, /** - * Item url + * Item url. */ url: string, /** - * lines[0] - date + * Lines[0] - date * lines[1] - duration - * lines[2] - server name + * lines[2] - server name. */ lines: Array } /** - * web implementation of section data for NavigateSectionList + * Web implementation of section data for NavigateSectionList. */ export type Section = { /** - * section title + * Section title. */ title: string, /** - * unique key for the section + * Unique key for the section. */ key?: string, /** - * Array of items in the section + * Array of items in the section. */ data: $ReadOnlyArray, /** * Optional properties added only to fix some flow errors thrown by React - * SectionList + * SectionList. */ ItemSeparatorComponent?: ?ComponentType, @@ -78,12 +78,12 @@ export type Section = { } /** - * native implementation of section data for NavigateSectionList + * Native implementation of section data for NavigateSectionList. * * When react-native's SectionList component parses through an array of sections * it passes the section nested within the section property of another object * to the renderSection method (on web for our own implementation of SectionList - * this nesting is not implemented as there is no need for nesting) + * this nesting is not implemented as there is no need for nesting). */ export type SetionListSection = { section: Section diff --git a/react/features/base/react/components/AbstractContainer.js b/react/features/base/react/components/AbstractContainer.js index cb3fe4f38..8f20b77b9 100644 --- a/react/features/base/react/components/AbstractContainer.js +++ b/react/features/base/react/components/AbstractContainer.js @@ -5,7 +5,7 @@ import React, { Component } from 'react'; import { getFixedPlatformStyle } from '../../styles'; /** - * {@code AbstractContainer} component's property types. + * {@code AbstractContainer} Component's property types. */ export type Props = { @@ -69,7 +69,7 @@ export type Props = { * Abstract (base) class for container of React {@link Component} children with * a style. * - * @extends Component + * @augments Component */ export default class AbstractContainer extends Component

{ /** diff --git a/react/features/base/react/components/NavigateSectionList.js b/react/features/base/react/components/NavigateSectionList.js index 75bc37f23..eb8bb1511 100644 --- a/react/features/base/react/components/NavigateSectionList.js +++ b/react/features/base/react/components/NavigateSectionList.js @@ -47,7 +47,7 @@ type Props = { renderListEmptyComponent: Function, /** - * An array of sections + * An array of sections. */ sections: Array

}; diff --git a/react/features/base/react/components/native/AvatarListItem.js b/react/features/base/react/components/native/AvatarListItem.js index 22298cd0c..f6c27ec96 100644 --- a/react/features/base/react/components/native/AvatarListItem.js +++ b/react/features/base/react/components/native/AvatarListItem.js @@ -43,7 +43,7 @@ type Props = { children?: React$Node, /** - * item containing data to be rendered + * Item containing data to be rendered. */ item: Item, diff --git a/react/features/base/react/components/native/BackButton.js b/react/features/base/react/components/native/BackButton.js index 4afa6279d..2af9d8894 100644 --- a/react/features/base/react/components/native/BackButton.js +++ b/react/features/base/react/components/native/BackButton.js @@ -8,7 +8,7 @@ import { Icon, IconArrowBack } from '../../../icons'; import { connect } from '../../../redux'; /** - * The type of the React {@code Component} props of {@link BackButton} + * The type of the React {@code Component} props of {@link BackButton}. */ type Props = { diff --git a/react/features/base/react/components/native/Button.js b/react/features/base/react/components/native/Button.js index ccb4ffc32..ebcb90738 100644 --- a/react/features/base/react/components/native/Button.js +++ b/react/features/base/react/components/native/Button.js @@ -16,7 +16,7 @@ type Props = { onValueChange: Function, /** - * The component's external style + * The component's external style. */ style: Object }; diff --git a/react/features/base/react/components/native/Container.js b/react/features/base/react/components/native/Container.js index 9880bcd31..488f603f1 100644 --- a/react/features/base/react/components/native/Container.js +++ b/react/features/base/react/components/native/Container.js @@ -22,7 +22,7 @@ type Props = AbstractProps & { /** * Represents a container of React Native/mobile {@link Component} children. * - * @extends AbstractContainer + * @augments AbstractContainer */ export default class Container extends AbstractContainer

{ /** diff --git a/react/features/base/react/components/native/ForwardButton.js b/react/features/base/react/components/native/ForwardButton.js index 066b9e20b..15d2683e3 100644 --- a/react/features/base/react/components/native/ForwardButton.js +++ b/react/features/base/react/components/native/ForwardButton.js @@ -8,7 +8,7 @@ import { translate } from '../../../i18n'; import { connect } from '../../../redux'; /** - * The type of the React {@code Component} props of {@link ForwardButton} + * The type of the React {@code Component} props of {@link ForwardButton}. */ type Props = { diff --git a/react/features/base/react/components/native/Header.js b/react/features/base/react/components/native/Header.js index 60487ce98..6e6455228 100644 --- a/react/features/base/react/components/native/Header.js +++ b/react/features/base/react/components/native/Header.js @@ -17,7 +17,7 @@ const STATUSBAR_DARK = 'dark-content'; const STATUSBAR_LIGHT = 'light-content'; /** - * The type of the React {@code Component} props of {@link Header} + * The type of the React {@code Component} props of {@link Header}. */ type Props = { @@ -27,7 +27,7 @@ type Props = { children: Node, /** - * The component's external style + * The component's external style. */ style: Object, diff --git a/react/features/base/react/components/native/HeaderLabel.js b/react/features/base/react/components/native/HeaderLabel.js index da93e62a1..1530f7f71 100644 --- a/react/features/base/react/components/native/HeaderLabel.js +++ b/react/features/base/react/components/native/HeaderLabel.js @@ -8,7 +8,7 @@ import { translate } from '../../../i18n'; import { connect } from '../../../redux'; /** - * The type of the React {@code Component} props of {@link HeaderLabel} + * The type of the React {@code Component} props of {@link HeaderLabel}. */ type Props = { diff --git a/react/features/base/react/components/native/HeaderWithNavigation.js b/react/features/base/react/components/native/HeaderWithNavigation.js index 1b69a3e34..271277749 100644 --- a/react/features/base/react/components/native/HeaderWithNavigation.js +++ b/react/features/base/react/components/native/HeaderWithNavigation.js @@ -23,7 +23,7 @@ type Props = { forwardLabelKey: ?string, /** - * The i18n key of the header label (title) + * The i18n key of the header label (title). */ headerLabelKey: ?string, diff --git a/react/features/base/react/components/native/Image.js b/react/features/base/react/components/native/Image.js index 71a23e4e5..410f529e6 100644 --- a/react/features/base/react/components/native/Image.js +++ b/react/features/base/react/components/native/Image.js @@ -14,7 +14,7 @@ type Props = { src: Object, /** - * The component's external style + * The component's external style. */ style: Object }; @@ -22,7 +22,7 @@ type Props = { /** * A component rendering aN IMAGE. * - * @extends Component + * @augments Component */ export default class ImageImpl extends Component { /** diff --git a/react/features/base/react/components/native/Modal.js b/react/features/base/react/components/native/Modal.js index 13c12e18e..22c50e60c 100644 --- a/react/features/base/react/components/native/Modal.js +++ b/react/features/base/react/components/native/Modal.js @@ -19,7 +19,7 @@ type Props = { * be an unnecessary duplication and probably an unmaintained list after a * while. * - * See list: https://facebook.github.io/react-native/docs/modal + * See list: https://facebook.github.io/react-native/docs/modal. */ }; diff --git a/react/features/base/react/components/native/NavigateSectionListEmptyComponent.js b/react/features/base/react/components/native/NavigateSectionListEmptyComponent.js index 1f8254993..d967bd5e9 100644 --- a/react/features/base/react/components/native/NavigateSectionListEmptyComponent.js +++ b/react/features/base/react/components/native/NavigateSectionListEmptyComponent.js @@ -18,9 +18,9 @@ type Props = { /** * Implements a React Native {@link Component} that is to be displayed when the - * list is empty + * list is empty. * - * @extends Component + * @augments Component */ class NavigateSectionListEmptyComponent extends Component { /** diff --git a/react/features/base/react/components/native/NavigateSectionListItem.js b/react/features/base/react/components/native/NavigateSectionListItem.js index 4f15c65e7..509a452a8 100644 --- a/react/features/base/react/components/native/NavigateSectionListItem.js +++ b/react/features/base/react/components/native/NavigateSectionListItem.js @@ -12,7 +12,7 @@ import styles from './styles'; type Props = { /** - * item containing data to be rendered + * Item containing data to be rendered. */ item: Item, @@ -34,9 +34,9 @@ type Props = { /** * Implements a React/Native {@link Component} that renders the Navigate Section - * List Item + * List Item. * - * @extends Component + * @augments Component */ export default class NavigateSectionListItem extends Component { /** diff --git a/react/features/base/react/components/native/NavigateSectionListSectionHeader.js b/react/features/base/react/components/native/NavigateSectionListSectionHeader.js index 258eef23b..5874ef010 100644 --- a/react/features/base/react/components/native/NavigateSectionListSectionHeader.js +++ b/react/features/base/react/components/native/NavigateSectionListSectionHeader.js @@ -11,16 +11,16 @@ import styles from './styles'; type Props = { /** - * A section containing the data to be rendered + * A section containing the data to be rendered. */ section: SetionListSection } /** * Implements a React/Native {@link Component} that renders the section header - * of the list + * of the list. * - * @extends Component + * @augments Component */ export default class NavigateSectionListSectionHeader extends Component { /** diff --git a/react/features/base/react/components/native/PagedList.js b/react/features/base/react/components/native/PagedList.js index b57f7d4b5..7b54d8a54 100644 --- a/react/features/base/react/components/native/PagedList.js +++ b/react/features/base/react/components/native/PagedList.js @@ -63,7 +63,7 @@ type State = { /** * A component that renders a paged list. * - * @extends PagedList + * @augments PagedList */ class PagedList extends Component { diff --git a/react/features/base/react/components/native/Pressable.js b/react/features/base/react/components/native/Pressable.js index 339c8b933..db7c7a1b8 100644 --- a/react/features/base/react/components/native/Pressable.js +++ b/react/features/base/react/components/native/Pressable.js @@ -10,7 +10,7 @@ type Props = { children: React$Node, /** - * Called when the touch is released, but not if cancelled (e.g. by a scroll + * Called when the touch is released, but not if cancelled (e.g. By a scroll * that steals the responder lock). */ onPress: Function diff --git a/react/features/base/react/components/native/SectionList.js b/react/features/base/react/components/native/SectionList.js index 708b19820..6305cba06 100644 --- a/react/features/base/react/components/native/SectionList.js +++ b/react/features/base/react/components/native/SectionList.js @@ -11,7 +11,7 @@ import type { Section } from '../../Types'; import styles from './styles'; /** - * The type of the React {@code Component} props of {@link SectionList} + * The type of the React {@code Component} props of {@link SectionList}. */ type Props = { @@ -30,7 +30,7 @@ type Props = { /** * - * Functions that defines what happens when the list is pulled for refresh + * Functions that defines what happens when the list is pulled for refresh. */ onRefresh: Function, @@ -54,7 +54,7 @@ type Props = { renderSectionHeader: Object, /** - * An array of sections + * An array of sections. */ sections: Array

}; @@ -62,9 +62,9 @@ type Props = { /** * Implements a React Native {@link Component} that wraps the React Native * SectionList component in a SafeAreaView so that it renders the sectionlist - * within the safe area of the device + * within the safe area of the device. * - * @extends Component + * @augments Component */ export default class SectionList extends Component { /** diff --git a/react/features/base/react/components/native/SlidingView.js b/react/features/base/react/components/native/SlidingView.js index ffc5fc812..dd31fa9bb 100644 --- a/react/features/base/react/components/native/SlidingView.js +++ b/react/features/base/react/components/native/SlidingView.js @@ -31,7 +31,7 @@ type Props = { /** * Position of the SlidingView: 'left', 'right', 'top', 'bottom'. - * later). + * Later). */ position: string, diff --git a/react/features/base/react/components/native/headerstyles.js b/react/features/base/react/components/native/headerstyles.js index 98b4286ea..0cf4d8a83 100644 --- a/react/features/base/react/components/native/headerstyles.js +++ b/react/features/base/react/components/native/headerstyles.js @@ -19,7 +19,7 @@ ColorSchemeRegistry.register('Header', { }, /** - * Platform specific header button (e.g. back, menu, etc). + * Platform specific header button (e.g. Back, menu, etc). */ headerButtonIcon: { alignSelf: 'center', diff --git a/react/features/base/react/components/web/BaseIndicator.js b/react/features/base/react/components/web/BaseIndicator.js index efd417ab2..96a50fac3 100644 --- a/react/features/base/react/components/web/BaseIndicator.js +++ b/react/features/base/react/components/web/BaseIndicator.js @@ -62,7 +62,7 @@ type Props = { /** * React {@code Component} for showing an icon with a tooltip. * - * @extends Component + * @augments Component */ class BaseIndicator extends Component { /** diff --git a/react/features/base/react/components/web/Container.js b/react/features/base/react/components/web/Container.js index 0576736f4..1350ae599 100644 --- a/react/features/base/react/components/web/Container.js +++ b/react/features/base/react/components/web/Container.js @@ -6,7 +6,7 @@ import type { Props } from '../AbstractContainer'; /** * Represents a container of React/Web {@link Component} children with a style. * - * @extends AbstractContainer + * @augments AbstractContainer */ export default class Container extends AbstractContainer

{ /** diff --git a/react/features/base/react/components/web/Image.js b/react/features/base/react/components/web/Image.js index 7298b9f2b..c2468599f 100644 --- a/react/features/base/react/components/web/Image.js +++ b/react/features/base/react/components/web/Image.js @@ -4,7 +4,7 @@ import React, { Component } from 'react'; * Implements a React/Web {@link Component} for displaying image * in order to facilitate cross-platform source code. * - * @extends Component + * @augments Component */ export default class Image extends Component { /** diff --git a/react/features/base/react/components/web/InlineDialogFailure.js b/react/features/base/react/components/web/InlineDialogFailure.js index 5ea57bd2e..5b8b4e2d7 100644 --- a/react/features/base/react/components/web/InlineDialogFailure.js +++ b/react/features/base/react/components/web/InlineDialogFailure.js @@ -23,7 +23,7 @@ type Props = { t: Function, /** - * Indicates whether the support link should be shown in case of an error + * Indicates whether the support link should be shown in case of an error. */ showSupportLink: Boolean, }; diff --git a/react/features/base/react/components/web/MeetingsList.js b/react/features/base/react/components/web/MeetingsList.js index 65cf01be8..4d89443ad 100644 --- a/react/features/base/react/components/web/MeetingsList.js +++ b/react/features/base/react/components/web/MeetingsList.js @@ -84,7 +84,7 @@ function _toTimeString(times) { * Implements a React/Web {@link Component} for displaying a list with * meetings. * - * @extends Component + * @augments Component */ class MeetingsList extends Component { /** @@ -108,7 +108,7 @@ class MeetingsList extends Component { const { listEmptyComponent, meetings, t } = this.props; /** - * If there are no recent meetings we don't want to display anything + * If there are no recent meetings we don't want to display anything. */ if (meetings) { return ( diff --git a/react/features/base/react/components/web/MultiSelectAutocomplete.js b/react/features/base/react/components/web/MultiSelectAutocomplete.js index cdf29ee5e..ce1b8fd06 100644 --- a/react/features/base/react/components/web/MultiSelectAutocomplete.js +++ b/react/features/base/react/components/web/MultiSelectAutocomplete.js @@ -22,7 +22,7 @@ type Props = { /** * Optional footer to show as a last element in the results. - * Should be of type {content: } + * Should be of type {content: }. */ footer: Object, @@ -73,7 +73,7 @@ type Props = { shouldFocus: boolean, /** - * Indicates whether the support link should be shown in case of an error + * Indicates whether the support link should be shown in case of an error. */ showSupportLink: Boolean, }; diff --git a/react/features/base/react/components/web/NavigateSectionListItem.js b/react/features/base/react/components/web/NavigateSectionListItem.js index 0c1021cc0..ba99e28d1 100644 --- a/react/features/base/react/components/web/NavigateSectionListItem.js +++ b/react/features/base/react/components/web/NavigateSectionListItem.js @@ -19,16 +19,16 @@ type Props = { onPress: ?Function, /** - * A item containing data to be rendered + * A item containing data to be rendered. */ item: Item }; /** * Implements a React/Web {@link Component} for displaying an item in a - * NavigateSectionList + * NavigateSectionList. * - * @extends Component + * @augments Component */ export default class NavigateSectionListItem extends Component

{ @@ -46,7 +46,8 @@ export default class NavigateSectionListItem * Initializes the date and duration of the conference to the an empty * string in case for some reason there is an error where the item data * lines doesn't contain one or both of those values (even though this - * unlikely the app shouldn't break because of it) + * unlikely the app shouldn't break because of it). + * * @type {string} */ let date = ''; diff --git a/react/features/base/react/components/web/NavigateSectionListSectionHeader.js b/react/features/base/react/components/web/NavigateSectionListSectionHeader.js index 06c7a454b..372fe47c2 100644 --- a/react/features/base/react/components/web/NavigateSectionListSectionHeader.js +++ b/react/features/base/react/components/web/NavigateSectionListSectionHeader.js @@ -9,16 +9,16 @@ import Text from './Text'; type Props = { /** - * A section containing the data to be rendered + * A section containing the data to be rendered. */ section: Section } /** * Implements a React/Web {@link Component} that renders the section header of - * the list + * the list. * - * @extends Component + * @augments Component */ export default class NavigateSectionListSectionHeader extends Component { /** diff --git a/react/features/base/react/components/web/SectionList.js b/react/features/base/react/components/web/SectionList.js index 5a3a33566..337b74051 100644 --- a/react/features/base/react/components/web/SectionList.js +++ b/react/features/base/react/components/web/SectionList.js @@ -20,22 +20,22 @@ type Props = { keyExtractor: Function, /** - * Returns a React component that renders each Item in the list + * Returns a React component that renders each Item in the list. */ renderItem: Function, /** - * Returns a React component that renders the header for every section + * Returns a React component that renders the header for every section. */ renderSectionHeader: Function, /** - * An array of sections + * An array of sections. */ sections: Array

, /** - * defines what happens when an item in the section list is clicked + * Defines what happens when an item in the section list is clicked. */ onItemClick: Function }; @@ -45,7 +45,7 @@ type Props = { * sections similar to React Native's {@code SectionList} in order to * facilitate cross-platform source code. * - * @extends Component + * @augments Component */ export default class SectionList extends Component { /** @@ -63,7 +63,7 @@ export default class SectionList extends Component { } = this.props; /** - * If there are no recent items we don't want to display anything + * If there are no recent items we don't want to display anything. */ if (sections) { return ( diff --git a/react/features/base/react/components/web/Switch.js b/react/features/base/react/components/web/Switch.js index 76e192f6c..112cdae5e 100644 --- a/react/features/base/react/components/web/Switch.js +++ b/react/features/base/react/components/web/Switch.js @@ -6,7 +6,7 @@ import React, { Component } from 'react'; type Props = { /** - * ID of the toggle + * ID of the toggle. */ id: string, diff --git a/react/features/base/react/components/web/Text.js b/react/features/base/react/components/web/Text.js index 063741a9e..65cfddd21 100644 --- a/react/features/base/react/components/web/Text.js +++ b/react/features/base/react/components/web/Text.js @@ -4,7 +4,7 @@ import React, { Component } from 'react'; * Implements a React/Web {@link Component} for displaying text similar to React * Native's {@code Text} in order to facilitate cross-platform source code. * - * @extends Component + * @augments Component */ export default class Text extends Component { /** diff --git a/react/features/base/redux/StateListenerRegistry.js b/react/features/base/redux/StateListenerRegistry.js index 6ae1abf3c..a3e0da36a 100644 --- a/react/features/base/redux/StateListenerRegistry.js +++ b/react/features/base/redux/StateListenerRegistry.js @@ -44,7 +44,7 @@ type Selector = (state: Object, prevSelection: any) => any; type RegistrationOptions = { /** - * @property {boolean} [deepEquals=false] - whether or not a deep equals check should be performed on the selection + * @property {boolean} [deepEquals=false] - Whether or not a deep equals check should be performed on the selection * returned by {@link Selector}. */ deepEquals: ?boolean diff --git a/react/features/base/settings/functions.any.js b/react/features/base/settings/functions.any.js index 9eda3ff64..3c9f2b188 100644 --- a/react/features/base/settings/functions.any.js +++ b/react/features/base/settings/functions.any.js @@ -10,17 +10,15 @@ import { DEFAULT_SERVER_URL } from './constants'; * a precedence among the values specified by JWT, URL, settings, * and config. * - * @param {Object|Function} stateful - The redux state object or - * {@code getState} function. + * @param {Object|Function} stateful - The redux state object or {@code getState} function. * @param {string} propertyName - The name of the * configuration/preference/setting (property) to retrieve. - * @param {{ - * config: boolean, - * jwt: boolean, - * settings: boolean, - * urlParams: boolean - * }} [sources] - A set/structure of {@code boolean} flags indicating the - * configuration/preference/setting sources to consider/retrieve values from. + * @param {Object} sources - Flags indicating the configuration/preference/setting sources to + * consider/retrieve values from. + * @param {boolean} sources.config - Config. + * @param {boolean} jwt - JWT. + * @param {boolean} settings - Settings. + * @param {boolean} urlParams - URL parameters. * @returns {any} */ export function getPropertyValue( diff --git a/react/features/base/testing/components/AbstractTestHint.js b/react/features/base/testing/components/AbstractTestHint.js index 230c35cea..a5e23d8f4 100644 --- a/react/features/base/testing/components/AbstractTestHint.js +++ b/react/features/base/testing/components/AbstractTestHint.js @@ -14,7 +14,7 @@ export type TestHintProps = { /** * The indicator which determines whether the test mode is enabled. - * {@link TestHint} components are rendered only if this flag is set to + * {@link TestHint} Components are rendered only if this flag is set to * {@code true}. */ _testModeEnabled: boolean, diff --git a/react/features/base/testing/components/TestConnectionInfo.js b/react/features/base/testing/components/TestConnectionInfo.js index 4bdca030e..263be090f 100644 --- a/react/features/base/testing/components/TestConnectionInfo.js +++ b/react/features/base/testing/components/TestConnectionInfo.js @@ -20,7 +20,7 @@ type Props = { * are the possible values: * 'conference.connectionEstablished' * 'conference.connectionInterrupted' - * 'conference.connectionRestored' + * 'conference.connectionRestored'. */ _conferenceConnectionState: string, diff --git a/react/features/base/toolbox/components/AbstractButton.js b/react/features/base/toolbox/components/AbstractButton.js index 27d21bd06..47a90991b 100644 --- a/react/features/base/toolbox/components/AbstractButton.js +++ b/react/features/base/toolbox/components/AbstractButton.js @@ -16,7 +16,7 @@ export type Props = { /** * Extra styles which will be applied in conjunction with `styles` or - * `toggledStyles` when the button is disabled; + * `toggledStyles` when the button is disabled;. */ disabledStyles: ?Styles, diff --git a/react/features/base/toolbox/components/BetaTag.js b/react/features/base/toolbox/components/BetaTag.js index 432bb757a..0fd80b3c5 100644 --- a/react/features/base/toolbox/components/BetaTag.js +++ b/react/features/base/toolbox/components/BetaTag.js @@ -16,7 +16,7 @@ type Props = { /** * Creates a ReactElement for showing a ToolboxItem is for a beta feature. * - * @extends {Component} + * @augments {Component} */ class BetaTag extends Component { diff --git a/react/features/base/toolbox/components/web/OverflowMenuItem.js b/react/features/base/toolbox/components/web/OverflowMenuItem.js index a89f79b1a..a38c1147d 100644 --- a/react/features/base/toolbox/components/web/OverflowMenuItem.js +++ b/react/features/base/toolbox/components/web/OverflowMenuItem.js @@ -61,7 +61,7 @@ type Props = { * A React {@code Component} for displaying a link to interact with other * features of the application. * - * @extends Component + * @augments Component */ class OverflowMenuItem extends Component { /** diff --git a/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.js b/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.js index cd4c36bce..24c24669e 100644 --- a/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.js +++ b/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.js @@ -38,32 +38,32 @@ type Props = { styles?: Object, /** - * aria label for the Icon. + * Aria label for the Icon. */ ariaLabel?: string, /** - * whether the element has a popup + * Whether the element has a popup. */ ariaHasPopup?: boolean, /** - * whether the element popup is expanded + * Whether the element popup is expanded. */ ariaExpanded?: boolean, /** - * The id of the element this button icon controls + * The id of the element this button icon controls. */ ariaControls?: string, /** - * keydown handler for icon. + * Keydown handler for icon. */ onIconKeyDown?: Function, /** - * The ID of the icon button + * The ID of the icon button. */ iconId: string }; diff --git a/react/features/base/tracks/functions.js b/react/features/base/tracks/functions.js index 9cc66a0d1..7bdcc5b47 100644 --- a/react/features/base/tracks/functions.js +++ b/react/features/base/tracks/functions.js @@ -199,7 +199,7 @@ export function createLocalTracksF(options = {}, store) { * * @returns {Promise} * - * @todo Refactor to not use APP + * @todo Refactor to not use APP. */ export function createPrejoinTracks() { const errors = {}; diff --git a/react/features/base/tracks/reducer.js b/react/features/base/tracks/reducer.js index 35dcf6d38..128d5812f 100644 --- a/react/features/base/tracks/reducer.js +++ b/react/features/base/tracks/reducer.js @@ -114,7 +114,7 @@ function track(state, action) { } /** - * Listen for actions that mutate (e.g. add, remove) local and remote tracks. + * Listen for actions that mutate (e.g. Add, remove) local and remote tracks. */ ReducerRegistry.register('features/base/tracks', (state = [], action) => { switch (action.type) { @@ -153,7 +153,7 @@ ReducerRegistry.register('features/base/tracks', (state = [], action) => { }); /** - * Listen for actions that mutate the no-src-data state, like the current notification id + * Listen for actions that mutate the no-src-data state, like the current notification id. */ ReducerRegistry.register('features/base/no-src-data', (state = {}, action) => { switch (action.type) { diff --git a/react/features/base/util/parseURLParams.js b/react/features/base/util/parseURLParams.js index ff22ef2a0..56f1fb4ac 100644 --- a/react/features/base/util/parseURLParams.js +++ b/react/features/base/util/parseURLParams.js @@ -6,6 +6,7 @@ import { reportError } from './helpers'; /** * A list if keys to ignore when parsing. + * * @type {string[]} */ const blacklist = [ '__proto__', 'constructor', 'prototype' ]; diff --git a/react/features/calendar-sync/components/AddMeetingUrlButton.native.js b/react/features/calendar-sync/components/AddMeetingUrlButton.native.js index ceb721497..51bae070b 100644 --- a/react/features/calendar-sync/components/AddMeetingUrlButton.native.js +++ b/react/features/calendar-sync/components/AddMeetingUrlButton.native.js @@ -5,7 +5,7 @@ import { Component } from 'react'; /** * A React Component for adding a meeting URL to an existing calendar meeting. * - * @extends Component + * @augments Component */ class AddMeetingUrlButton extends Component<*> { /** diff --git a/react/features/calendar-sync/components/AddMeetingUrlButton.web.js b/react/features/calendar-sync/components/AddMeetingUrlButton.web.js index 08b6d6e1e..77820b00d 100644 --- a/react/features/calendar-sync/components/AddMeetingUrlButton.web.js +++ b/react/features/calendar-sync/components/AddMeetingUrlButton.web.js @@ -42,7 +42,7 @@ type Props = { /** * A React Component for adding a meeting URL to an existing calendar event. * - * @extends Component + * @augments Component */ class AddMeetingUrlButton extends Component { /** diff --git a/react/features/calendar-sync/components/JoinButton.native.js b/react/features/calendar-sync/components/JoinButton.native.js index 16e82531a..3f8be7e65 100644 --- a/react/features/calendar-sync/components/JoinButton.native.js +++ b/react/features/calendar-sync/components/JoinButton.native.js @@ -5,7 +5,7 @@ import { Component } from 'react'; /** * A React Component for joining an existing calendar meeting. * - * @extends Component + * @augments Component */ class JoinButton extends Component<*> { /** diff --git a/react/features/calendar-sync/components/JoinButton.web.js b/react/features/calendar-sync/components/JoinButton.web.js index 0da6ade24..341e62795 100644 --- a/react/features/calendar-sync/components/JoinButton.web.js +++ b/react/features/calendar-sync/components/JoinButton.web.js @@ -30,7 +30,7 @@ type Props = { /** * A React Component for joining an existing calendar meeting. * - * @extends Component + * @augments Component */ class JoinButton extends Component { diff --git a/react/features/calendar-sync/components/MicrosoftSignInButton.web.js b/react/features/calendar-sync/components/MicrosoftSignInButton.web.js index 932aef40c..de8241163 100644 --- a/react/features/calendar-sync/components/MicrosoftSignInButton.web.js +++ b/react/features/calendar-sync/components/MicrosoftSignInButton.web.js @@ -30,7 +30,7 @@ type Props = { /** * A React Component showing a button to sign in with Microsoft. * - * @extends Component + * @augments Component */ class MicrosoftSignInButton extends Component { /** diff --git a/react/features/calendar-sync/web/microsoftCalendar.js b/react/features/calendar-sync/web/microsoftCalendar.js index aac9101b5..23d45e774 100644 --- a/react/features/calendar-sync/web/microsoftCalendar.js +++ b/react/features/calendar-sync/web/microsoftCalendar.js @@ -20,6 +20,7 @@ import { setCalendarAPIAuthState } from '../actions'; const MS_API_CONFIGURATION = { /** * The URL to use when authenticating using Microsoft API. + * * @type {string} */ AUTH_ENDPOINT: @@ -40,7 +41,6 @@ const MS_API_CONFIGURATION = { * needed for passing in the proper domain_hint value when trying to refresh * a token silently. * - * * @type {string} */ MS_CONSUMER_TENANT: '9188040d-6c67-4c5b-b112-36a304b66dad', diff --git a/react/features/chat/components/AbstractMessageContainer.js b/react/features/chat/components/AbstractMessageContainer.js index 91843075e..4500e3d0c 100644 --- a/react/features/chat/components/AbstractMessageContainer.js +++ b/react/features/chat/components/AbstractMessageContainer.js @@ -13,7 +13,7 @@ export type Props = { /** * Abstract component to display a list of chat messages, grouped by sender. * - * @extends PureComponent + * @augments PureComponent */ export default class AbstractMessageContainer extends PureComponent

{ static defaultProps = { diff --git a/react/features/chat/components/native/Chat.js b/react/features/chat/components/native/Chat.js index a8af2c422..6a22c9a02 100644 --- a/react/features/chat/components/native/Chat.js +++ b/react/features/chat/components/native/Chat.js @@ -22,17 +22,17 @@ import styles from './styles'; type Props = AbstractProps & { /** - * Is this screen focused or not(React Navigation) + * Is this screen focused or not(React Navigation). */ isChatScreenFocused: boolean, /** - * Default prop for navigating between screen components(React Navigation) + * Default prop for navigating between screen components(React Navigation). */ navigation: Object, /** - * Default prop for navigating between screen components(React Navigation) + * Default prop for navigating between screen components(React Navigation). */ route: Object }; diff --git a/react/features/chat/components/native/ChatMessageGroup.js b/react/features/chat/components/native/ChatMessageGroup.js index 9edd5a004..51835d187 100644 --- a/react/features/chat/components/native/ChatMessageGroup.js +++ b/react/features/chat/components/native/ChatMessageGroup.js @@ -48,7 +48,7 @@ export default class ChatMessageGroup extends Component { ); } - _keyExtractor: Object => string + _keyExtractor: Object => string; /** * Key extractor for the flatlist. diff --git a/react/features/chat/components/native/MessageContainer.js b/react/features/chat/components/native/MessageContainer.js index dbbf38b12..6d153bec1 100644 --- a/react/features/chat/components/native/MessageContainer.js +++ b/react/features/chat/components/native/MessageContainer.js @@ -68,7 +68,7 @@ class MessageContainer extends AbstractMessageContainer { _getMessagesGroupedBySender: () => Array>; - _keyExtractor: Object => string + _keyExtractor: Object => string; /** * Key extractor for the flatlist. diff --git a/react/features/chat/components/web/ChatButton.js b/react/features/chat/components/web/ChatButton.js index 83f79e51f..8db700bc7 100644 --- a/react/features/chat/components/web/ChatButton.js +++ b/react/features/chat/components/web/ChatButton.js @@ -43,10 +43,10 @@ class ChatButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The value. */ - set tooltip(value) { - return value; + set tooltip(_value) { + // Unused. } /** diff --git a/react/features/chat/components/web/ChatCounter.js b/react/features/chat/components/web/ChatCounter.js index f482b2651..8869a3cbd 100644 --- a/react/features/chat/components/web/ChatCounter.js +++ b/react/features/chat/components/web/ChatCounter.js @@ -26,7 +26,7 @@ type Props = { * Implements a React {@link Component} which displays a count of the number of * unread chat messages. * - * @extends Component + * @augments Component */ class ChatCounter extends Component { diff --git a/react/features/chat/components/web/ChatInput.js b/react/features/chat/components/web/ChatInput.js index d2d436d9d..a21593d51 100644 --- a/react/features/chat/components/web/ChatInput.js +++ b/react/features/chat/components/web/ChatInput.js @@ -64,7 +64,7 @@ type State = { /** * Implements a React Component for drafting and submitting a chat message. * - * @extends Component + * @augments Component */ class ChatInput extends Component { _textArea: ?HTMLTextAreaElement; diff --git a/react/features/chat/components/web/ChatMessageGroup.js b/react/features/chat/components/web/ChatMessageGroup.js index 34feffd80..49295c459 100644 --- a/react/features/chat/components/web/ChatMessageGroup.js +++ b/react/features/chat/components/web/ChatMessageGroup.js @@ -21,7 +21,7 @@ type Props = { * Displays a list of chat messages. Will show only the display name for the * first chat message and the timestamp for the last chat message. * - * @extends React.Component + * @augments React.Component */ class ChatMessageGroup extends Component { static defaultProps = { diff --git a/react/features/chat/components/web/DisplayNameForm.js b/react/features/chat/components/web/DisplayNameForm.js index 718d05a11..b5a159cb9 100644 --- a/react/features/chat/components/web/DisplayNameForm.js +++ b/react/features/chat/components/web/DisplayNameForm.js @@ -45,7 +45,7 @@ type State = { /** * React Component for requesting the local participant to set a display name. * - * @extends Component + * @augments Component */ class DisplayNameForm extends Component { state = { diff --git a/react/features/chat/components/web/MessageContainer.js b/react/features/chat/components/web/MessageContainer.js index 8146c3973..607a62c0f 100644 --- a/react/features/chat/components/web/MessageContainer.js +++ b/react/features/chat/components/web/MessageContainer.js @@ -11,7 +11,7 @@ import ChatMessageGroup from './ChatMessageGroup'; /** * Displays all received chat messages, grouped by sender. * - * @extends AbstractMessageContainer + * @augments AbstractMessageContainer */ export default class MessageContainer extends AbstractMessageContainer { /** diff --git a/react/features/chat/components/web/SmileysPanel.js b/react/features/chat/components/web/SmileysPanel.js index 305bcdaf6..05a095c8b 100644 --- a/react/features/chat/components/web/SmileysPanel.js +++ b/react/features/chat/components/web/SmileysPanel.js @@ -20,7 +20,7 @@ type Props = { /** * Implements a React Component showing smileys that can be be shown in chat. * - * @extends Component + * @augments Component */ class SmileysPanel extends PureComponent { /** diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js index aa68c62cc..92180bef8 100644 --- a/react/features/chat/middleware.js +++ b/react/features/chat/middleware.js @@ -47,7 +47,7 @@ declare var interfaceConfig : Object; /** * Timeout for when to show the privacy notice after a private message was received. * - * E.g. if this value is 20 secs (20000ms), then we show the privacy notice when sending a non private + * E.g. If this value is 20 secs (20000ms), then we show the privacy notice when sending a non private * message after we have received a private message in the last 20 seconds. */ const PRIVACY_NOTICE_TIMEOUT = 20 * 1000; @@ -168,7 +168,7 @@ MiddlewareRegistry.register(store => next => action => { /** * Set up state change listener to perform maintenance tasks when the conference - * is left or failed, e.g. clear messages or close the chat modal if it's left + * is left or failed, e.g. Clear messages or close the chat modal if it's left * open. */ StateListenerRegistry.register( diff --git a/react/features/chrome-extension-banner/components/ChromeExtensionBanner.web.js b/react/features/chrome-extension-banner/components/ChromeExtensionBanner.web.js index f37e5ba96..0264b251f 100644 --- a/react/features/chrome-extension-banner/components/ChromeExtensionBanner.web.js +++ b/react/features/chrome-extension-banner/components/ChromeExtensionBanner.web.js @@ -42,7 +42,7 @@ type Props = { bannerCfg: Object, /** - * Conference data, if any + * Conference data, if any. */ conference: Object, @@ -68,7 +68,7 @@ type Props = { type State = { /** - * Keeps the current value of dont show again checkbox + * Keeps the current value of dont show again checkbox. */ dontShowAgainChecked: boolean, @@ -85,8 +85,9 @@ type State = { /** * Implements a React {@link PureComponent} which displays a banner having a link to the chrome extension. + * * @class ChromeExtensionBanner - * @extends PureComponent + * @augments PureComponent */ class ChromeExtensionBanner extends PureComponent { /** diff --git a/react/features/conference/components/AbstractConference.js b/react/features/conference/components/AbstractConference.js index e87e81951..df4c04a47 100644 --- a/react/features/conference/components/AbstractConference.js +++ b/react/features/conference/components/AbstractConference.js @@ -40,7 +40,7 @@ export type AbstractProps = { * A container to hold video status labels, including recording status and * current large video quality. * - * @extends Component + * @augments Component */ export class AbstractConference extends Component { diff --git a/react/features/conference/components/ConferenceTimer.js b/react/features/conference/components/ConferenceTimer.js index 80b8f99df..0c8583cea 100644 --- a/react/features/conference/components/ConferenceTimer.js +++ b/react/features/conference/components/ConferenceTimer.js @@ -43,7 +43,7 @@ type State = { * ConferenceTimer react component. * * @class ConferenceTimer - * @extends Component + * @augments Component */ class ConferenceTimer extends Component { @@ -136,10 +136,10 @@ class ConferenceTimer extends Component { */ _startTimer() { if (!this._interval) { - this._setStateFromUTC(this.props._startTimestamp, (new Date()).getTime()); + this._setStateFromUTC(this.props._startTimestamp, new Date().getTime()); this._interval = setInterval(() => { - this._setStateFromUTC(this.props._startTimestamp, (new Date()).getTime()); + this._setStateFromUTC(this.props._startTimestamp, new Date().getTime()); }, 1000); } } diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.js index 1075b720b..6365193ef 100644 --- a/react/features/conference/components/native/Conference.js +++ b/react/features/conference/components/native/Conference.js @@ -78,7 +78,7 @@ type Props = AbstractProps & { _isParticipantsPaneOpen: boolean, /** - * The ID of the participant currently on stage (if any) + * The ID of the participant currently on stage (if any). */ _largeVideoParticipantId: string, diff --git a/react/features/conference/components/native/HeaderNavigationButton.js b/react/features/conference/components/native/HeaderNavigationButton.js index 39a356b5c..1c26ba179 100644 --- a/react/features/conference/components/native/HeaderNavigationButton.js +++ b/react/features/conference/components/native/HeaderNavigationButton.js @@ -20,7 +20,7 @@ type Props = { src: Object, /** - * The component's external style + * The component's external style. */ style: Object } diff --git a/react/features/conference/components/native/Labels.js b/react/features/conference/components/native/Labels.js index abe49c532..c50627a02 100644 --- a/react/features/conference/components/native/Labels.js +++ b/react/features/conference/components/native/Labels.js @@ -19,7 +19,7 @@ type State = { /** * String to show which {@code ExpandedLabel} to be shown. (Equals to the - * label IDs below.) + * label IDs below.). */ visibleExpandedLabel: ?string } diff --git a/react/features/conference/components/native/styles.js b/react/features/conference/components/native/styles.js index c2bf959cf..46dfd0d0a 100644 --- a/react/features/conference/components/native/styles.js +++ b/react/features/conference/components/native/styles.js @@ -11,7 +11,7 @@ const NAVBAR_BUTTON_SIZE = 24; export default { /** - * {@code Conference} style. + * {@code Conference} Style. */ conference: fixAndroidViewClipping({ alignSelf: 'stretch', diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.js index 650177408..344550f90 100644 --- a/react/features/conference/components/web/Conference.js +++ b/react/features/conference/components/web/Conference.js @@ -68,7 +68,7 @@ const LAYOUT_CLASSNAMES = { type Props = AbstractProps & { /** - * The alpha(opacity) of the background + * The alpha(opacity) of the background. */ _backgroundAlpha: number, @@ -84,7 +84,7 @@ type Props = AbstractProps & { _layoutClassName: string, /** - * The config specified interval for triggering mouseMoved iframe api events + * The config specified interval for triggering mouseMoved iframe api events. */ _mouseMoveCallbackInterval: number, diff --git a/react/features/conference/components/web/ConferenceInfo.js b/react/features/conference/components/web/ConferenceInfo.js index 8bf200346..260385ebf 100644 --- a/react/features/conference/components/web/ConferenceInfo.js +++ b/react/features/conference/components/web/ConferenceInfo.js @@ -1,4 +1,6 @@ -/* @flow */ +// @flow + +/* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; diff --git a/react/features/connection-indicator/components/AbstractConnectionIndicator.js b/react/features/connection-indicator/components/AbstractConnectionIndicator.js index 1d36ce398..1490b1dfb 100644 --- a/react/features/connection-indicator/components/AbstractConnectionIndicator.js +++ b/react/features/connection-indicator/components/AbstractConnectionIndicator.js @@ -57,13 +57,13 @@ export type State = { * Implements a React {@link Component} which displays the current connection * quality. * - * @extends {Component} + * @augments {Component} */ class AbstractConnectionIndicator extends Component { /** * The timeout for automatically hiding the indicator. */ - autoHideTimeout: ?TimeoutID + autoHideTimeout: ?TimeoutID; /** * Initializes a new {@code ConnectionIndicator} instance. diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.js b/react/features/connection-indicator/components/web/ConnectionIndicator.js index dafe3f114..a79262d36 100644 --- a/react/features/connection-indicator/components/web/ConnectionIndicator.js +++ b/react/features/connection-indicator/components/web/ConnectionIndicator.js @@ -126,7 +126,7 @@ type State = AbstractState & { * Implements a React {@link Component} which displays the current connection * quality percentage and has a popover to show more detailed connection stats. * - * @extends {Component} + * @augments {Component} */ class ConnectionIndicator extends AbstractConnectionIndicator { /** diff --git a/react/features/connection-indicator/components/web/ConnectionIndicatorContent.js b/react/features/connection-indicator/components/web/ConnectionIndicatorContent.js index 857bd29ec..995d1a273 100644 --- a/react/features/connection-indicator/components/web/ConnectionIndicatorContent.js +++ b/react/features/connection-indicator/components/web/ConnectionIndicatorContent.js @@ -97,7 +97,7 @@ type Props = AbstractProps & { _videoSsrc: number, /** - * Css class to apply on container + * Css class to apply on container. */ className: string, @@ -107,7 +107,7 @@ type Props = AbstractProps & { dispatch: Dispatch, /** - * Optional param for passing existing connection stats on component instantiation + * Optional param for passing existing connection stats on component instantiation. */ inheritedStats: Object, @@ -132,7 +132,7 @@ type State = AbstractState & { * Implements a React {@link Component} which displays the current connection * quality percentage and has a popover to show more detailed connection stats. * - * @extends {Component} + * @augments {Component} */ class ConnectionIndicatorContent extends AbstractConnectionIndicator { /** diff --git a/react/features/connection-indicator/statsEmitter.js b/react/features/connection-indicator/statsEmitter.js index 7e54837ca..47612ee53 100644 --- a/react/features/connection-indicator/statsEmitter.js +++ b/react/features/connection-indicator/statsEmitter.js @@ -12,7 +12,7 @@ import { * * { * userId: Function[] - * } + * }. */ const subscribers = {}; diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.js index 35d96ce94..110c2e3fd 100644 --- a/react/features/connection-stats/components/ConnectionStatsTable.js +++ b/react/features/connection-stats/components/ConnectionStatsTable.js @@ -21,7 +21,7 @@ type Props = { * {{ * download: Number, * upload: Number - * }} + * }}. */ bandwidth: Object, @@ -30,7 +30,7 @@ type Props = { * {{ * download: Number, * upload: Number - * }} + * }}. */ bitrate: Object, @@ -74,7 +74,7 @@ type Props = { * Statistics related to frame rates for each ssrc. * {{ * [ ssrc ]: Number - * }} + * }}. */ framerate: Object, @@ -104,7 +104,7 @@ type Props = { * {{ * download: Number, * upload: Number - * }} + * }}. */ packetLoss: Object, @@ -120,7 +120,7 @@ type Props = { * height: Number, * width: Number * } - * }} + * }}. */ resolution: Object, @@ -166,7 +166,7 @@ function onClick(event) { /** * React {@code Component} for displaying connection statistics. * - * @extends Component + * @augments Component */ class ConnectionStatsTable extends Component { /** diff --git a/react/features/desktop-picker/components/DesktopPicker.js b/react/features/desktop-picker/components/DesktopPicker.js index d5c35a234..a89f10e37 100644 --- a/react/features/desktop-picker/components/DesktopPicker.js +++ b/react/features/desktop-picker/components/DesktopPicker.js @@ -104,7 +104,7 @@ type State = { /** * React component for DesktopPicker. * - * @extends Component + * @augments Component */ class DesktopPicker extends PureComponent { /** diff --git a/react/features/desktop-picker/components/DesktopPickerPane.js b/react/features/desktop-picker/components/DesktopPickerPane.js index 872754177..41fe297ef 100644 --- a/react/features/desktop-picker/components/DesktopPickerPane.js +++ b/react/features/desktop-picker/components/DesktopPickerPane.js @@ -53,7 +53,7 @@ type Props = { /** * React component for showing a grid of DesktopSourcePreviews. * - * @extends Component + * @augments Component */ class DesktopPickerPane extends Component { diff --git a/react/features/desktop-picker/components/DesktopSourcePreview.js b/react/features/desktop-picker/components/DesktopSourcePreview.js index 62584558b..b7e249772 100644 --- a/react/features/desktop-picker/components/DesktopSourcePreview.js +++ b/react/features/desktop-picker/components/DesktopSourcePreview.js @@ -49,7 +49,7 @@ type Props = { /** * React component for displaying a preview of a DesktopCapturerSource. * - * @extends Component + * @augments Component */ class DesktopSourcePreview extends Component { /** diff --git a/react/features/device-selection/components/AudioOutputPreview.js b/react/features/device-selection/components/AudioOutputPreview.js index 66c010f6e..dbc6f47b8 100644 --- a/react/features/device-selection/components/AudioOutputPreview.js +++ b/react/features/device-selection/components/AudioOutputPreview.js @@ -26,7 +26,7 @@ type Props = { /** * React component for playing a test sound through a specified audio device. * - * @extends Component + * @augments Component */ class AudioOutputPreview extends Component { _audioElement: ?Object; diff --git a/react/features/device-selection/components/DeviceSelection.js b/react/features/device-selection/components/DeviceSelection.js index 385a08334..bafef6742 100644 --- a/react/features/device-selection/components/DeviceSelection.js +++ b/react/features/device-selection/components/DeviceSelection.js @@ -77,7 +77,7 @@ export type Props = { /** * Whether video input preview should be displayed or not. - * (In the case of iOS Safari) + * (In the case of iOS Safari). */ hideVideoInputPreview: boolean, @@ -132,7 +132,7 @@ type State = { /** * React {@code Component} for previewing audio and video input/output devices. * - * @extends Component + * @augments Component */ class DeviceSelection extends AbstractDialogTab { diff --git a/react/features/device-selection/components/DeviceSelector.web.js b/react/features/device-selection/components/DeviceSelector.web.js index 257a52c8b..45847132f 100644 --- a/react/features/device-selection/components/DeviceSelector.web.js +++ b/react/features/device-selection/components/DeviceSelector.web.js @@ -54,7 +54,7 @@ type Props = { t: Function, /** - * The id of the dropdown element + * The id of the dropdown element. */ id: string }; @@ -63,7 +63,7 @@ type Props = { * React component for selecting a device from a select element. Wraps * AKDropdownMenu with device selection specific logic. * - * @extends Component + * @augments Component */ class DeviceSelector extends Component { /** diff --git a/react/features/device-selection/components/VideoInputPreview.js b/react/features/device-selection/components/VideoInputPreview.js index 760eb22a0..3a916f7df 100644 --- a/react/features/device-selection/components/VideoInputPreview.js +++ b/react/features/device-selection/components/VideoInputPreview.js @@ -27,7 +27,7 @@ type Props = { * React component for displaying video. This component defers to lib-jitsi-meet * logic for rendering the video. * - * @extends Component + * @augments Component */ class VideoInputPreview extends Component { /** diff --git a/react/features/display-name/components/web/DisplayName.js b/react/features/display-name/components/web/DisplayName.js index 7588e7cd1..b71f12f1a 100644 --- a/react/features/display-name/components/web/DisplayName.js +++ b/react/features/display-name/components/web/DisplayName.js @@ -79,7 +79,7 @@ type State = { /** * React {@code Component} for displaying and editing a participant's name. * - * @extends Component + * @augments Component */ class DisplayName extends Component { _nameInput: ?HTMLInputElement; diff --git a/react/features/display-name/components/web/DisplayNamePrompt.js b/react/features/display-name/components/web/DisplayNamePrompt.js index f3b9450cd..73e6c7230 100644 --- a/react/features/display-name/components/web/DisplayNamePrompt.js +++ b/react/features/display-name/components/web/DisplayNamePrompt.js @@ -25,7 +25,7 @@ type State = { * Implements a React {@code Component} for displaying a dialog with an field * for setting the local participant's display name. * - * @extends Component + * @augments Component */ class DisplayNamePrompt extends AbstractDisplayNamePrompt { /** diff --git a/react/features/dynamic-branding/reducer.js b/react/features/dynamic-branding/reducer.js index ee0a9c5bc..7817ccc4b 100644 --- a/react/features/dynamic-branding/reducer.js +++ b/react/features/dynamic-branding/reducer.js @@ -109,7 +109,7 @@ const DEFAULT_STATE = { premeetingBackground: '', /** - * Flag used to signal if the app should use a custom logo or not + * Flag used to signal if the app should use a custom logo or not. * * @public * @type {boolean} diff --git a/react/features/e2ee/components/E2EELabel.js b/react/features/e2ee/components/E2EELabel.js index 2ee97f016..3d68e6c5b 100644 --- a/react/features/e2ee/components/E2EELabel.js +++ b/react/features/e2ee/components/E2EELabel.js @@ -15,7 +15,7 @@ import { _mapStateToProps, type Props } from './AbstractE2EELabel'; /** * React {@code Component} for displaying a label when everyone has E2EE enabled in a conferene. * - * @extends Component + * @augments Component */ class E2EELabel extends Component { diff --git a/react/features/e2ee/components/E2EESection.js b/react/features/e2ee/components/E2EESection.js index bbc902140..6cd06c274 100644 --- a/react/features/e2ee/components/E2EESection.js +++ b/react/features/e2ee/components/E2EESection.js @@ -61,7 +61,7 @@ type State = { * Implements a React {@code Component} for displaying a security dialog section with a field * for setting the E2EE key. * - * @extends Component + * @augments Component */ class E2EESection extends Component { /** diff --git a/react/features/embed-meeting/components/EmbedMeetingTrigger.js b/react/features/embed-meeting/components/EmbedMeetingTrigger.js index bb535992f..612da4d07 100644 --- a/react/features/embed-meeting/components/EmbedMeetingTrigger.js +++ b/react/features/embed-meeting/components/EmbedMeetingTrigger.js @@ -1,5 +1,7 @@ // @flow +/* eslint-disable react/jsx-no-bind */ + import React from 'react'; import { connect } from 'react-redux'; @@ -11,7 +13,7 @@ import EmbedMeetingDialog from './EmbedMeetingDialog'; type Props = { /** - * Open the embed meeting dialog + * Open the embed meeting dialog. */ openEmbedDialog: Function, diff --git a/react/features/etherpad/components/SharedDocumentButton.js b/react/features/etherpad/components/SharedDocumentButton.js index f73d8d31f..94a19ba1c 100644 --- a/react/features/etherpad/components/SharedDocumentButton.js +++ b/react/features/etherpad/components/SharedDocumentButton.js @@ -40,10 +40,10 @@ class SharedDocumentButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The value. */ - set tooltip(value) { - return value; + set tooltip(_value) { + // Unused. } /** diff --git a/react/features/etherpad/components/native/SharedDocument.js b/react/features/etherpad/components/native/SharedDocument.js index f01630a7c..8a64e23dd 100644 --- a/react/features/etherpad/components/native/SharedDocument.js +++ b/react/features/etherpad/components/native/SharedDocument.js @@ -33,7 +33,7 @@ type Props = { _headerStyles: Object, /** - * Default prop for navigation between screen components(React Navigation) + * Default prop for navigation between screen components(React Navigation). */ navigation: Object, diff --git a/react/features/etherpad/middleware.js b/react/features/etherpad/middleware.js index 3d07f3749..501c8889e 100644 --- a/react/features/etherpad/middleware.js +++ b/react/features/etherpad/middleware.js @@ -46,7 +46,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => { /** * Set up state change listener to perform maintenance tasks when the conference - * is left or failed, e.g. clear messages or close the chat modal if it's left + * is left or failed, e.g. Clear messages or close the chat modal if it's left * open. */ StateListenerRegistry.register( diff --git a/react/features/feedback/components/FeedbackDialog.web.js b/react/features/feedback/components/FeedbackDialog.web.js index abeeaa296..50eed3497 100644 --- a/react/features/feedback/components/FeedbackDialog.web.js +++ b/react/features/feedback/components/FeedbackDialog.web.js @@ -25,8 +25,6 @@ const scoreAnimationClass /** * The scores to display for selecting. The score is the index in the array and * the value of the index is a translation key used for display in the dialog. - * - * @types {string[]} */ const SCORES = [ 'feedback.veryBad', @@ -109,7 +107,7 @@ type State = { * conference quality, write a message describing the experience, and submit * the feedback. * - * @extends Component + * @augments Component */ class FeedbackDialog extends Component { /** diff --git a/react/features/filmstrip/components/AbstractRaisedHandIndicator.js b/react/features/filmstrip/components/AbstractRaisedHandIndicator.js index 6c95801f4..69e2cdb7f 100644 --- a/react/features/filmstrip/components/AbstractRaisedHandIndicator.js +++ b/react/features/filmstrip/components/AbstractRaisedHandIndicator.js @@ -42,7 +42,7 @@ export default class AbstractRaisedHandIndicator * * @returns {React$Element<*>} */ - _renderIndicator: () => React$Element<*> + _renderIndicator: () => React$Element<*>; } diff --git a/react/features/filmstrip/components/native/Filmstrip.js b/react/features/filmstrip/components/native/Filmstrip.js index 354aa3b4e..3f02a549b 100644 --- a/react/features/filmstrip/components/native/Filmstrip.js +++ b/react/features/filmstrip/components/native/Filmstrip.js @@ -53,12 +53,12 @@ type Props = { * Implements a React {@link Component} which represents the filmstrip on * mobile/React Native. * - * @extends Component + * @augments Component */ class Filmstrip extends PureComponent { /** * Whether the local participant should be rendered separately from the - * remote participants i.e. outside of their {@link ScrollView}. + * remote participants ie outside of their {@link ScrollView}. */ _separateLocalThumbnail: boolean; diff --git a/react/features/filmstrip/components/native/RaisedHandIndicator.js b/react/features/filmstrip/components/native/RaisedHandIndicator.js index 1c1272c82..6008be583 100644 --- a/react/features/filmstrip/components/native/RaisedHandIndicator.js +++ b/react/features/filmstrip/components/native/RaisedHandIndicator.js @@ -14,7 +14,7 @@ import AbstractRaisedHandIndicator, { /** * Thumbnail badge showing that the participant would like to speak. * - * @extends Component + * @augments Component */ class RaisedHandIndicator extends AbstractRaisedHandIndicator { /** diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js index 7046d9ae0..f82dd92cd 100644 --- a/react/features/filmstrip/components/native/Thumbnail.js +++ b/react/features/filmstrip/components/native/Thumbnail.js @@ -132,7 +132,7 @@ type Props = { renderDisplayName: ?boolean, /** - * If true, it tells the thumbnail that it needs to behave differently. E.g. react differently to a single tap. + * If true, it tells the thumbnail that it needs to behave differently. E.g. React differently to a single tap. */ tileView?: boolean }; diff --git a/react/features/filmstrip/components/native/TileView.js b/react/features/filmstrip/components/native/TileView.js index 9422df3c9..8822fbae8 100644 --- a/react/features/filmstrip/components/native/TileView.js +++ b/react/features/filmstrip/components/native/TileView.js @@ -81,7 +81,7 @@ const EMPTY_ARRAY = []; * Implements a React {@link PureComponent} which displays thumbnails in a two * dimensional grid. * - * @extends PureComponent + * @augments PureComponent */ class TileView extends PureComponent { diff --git a/react/features/filmstrip/components/native/styles.js b/react/features/filmstrip/components/native/styles.js index 45f6c8564..7d24c2549 100644 --- a/react/features/filmstrip/components/native/styles.js +++ b/react/features/filmstrip/components/native/styles.js @@ -15,7 +15,7 @@ export const AVATAR_SIZE = 50; export default { /** - * The FlatList content container styles + * The FlatList content container styles. */ contentContainer: { alignItems: 'center', diff --git a/react/features/filmstrip/components/web/AudioMutedIndicator.js b/react/features/filmstrip/components/web/AudioMutedIndicator.js index 1f7f49303..e6fdb8af7 100644 --- a/react/features/filmstrip/components/web/AudioMutedIndicator.js +++ b/react/features/filmstrip/components/web/AudioMutedIndicator.js @@ -19,7 +19,7 @@ type Props = { /** * React {@code Component} for showing an audio muted icon with a tooltip. * - * @extends Component + * @augments Component */ class AudioMutedIndicator extends Component { /** diff --git a/react/features/filmstrip/components/web/DominantSpeakerIndicator.js b/react/features/filmstrip/components/web/DominantSpeakerIndicator.js index a1e16c35c..bd576685f 100644 --- a/react/features/filmstrip/components/web/DominantSpeakerIndicator.js +++ b/react/features/filmstrip/components/web/DominantSpeakerIndicator.js @@ -26,7 +26,7 @@ type Props = { * Thumbnail badge showing that the participant is the dominant speaker in * the conference. * - * @extends Component + * @augments Component */ class DominantSpeakerIndicator extends Component { /** diff --git a/react/features/filmstrip/components/web/Filmstrip.js b/react/features/filmstrip/components/web/Filmstrip.js index c2f9fc88c..77ad566d2 100644 --- a/react/features/filmstrip/components/web/Filmstrip.js +++ b/react/features/filmstrip/components/web/Filmstrip.js @@ -134,7 +134,7 @@ type Props = { * Implements a React {@link Component} which represents the filmstrip on * Web/React. * - * @extends Component + * @augments Component */ class Filmstrip extends PureComponent { diff --git a/react/features/filmstrip/components/web/ModeratorIndicator.js b/react/features/filmstrip/components/web/ModeratorIndicator.js index 0f6b88baf..aa802d4ec 100644 --- a/react/features/filmstrip/components/web/ModeratorIndicator.js +++ b/react/features/filmstrip/components/web/ModeratorIndicator.js @@ -19,7 +19,7 @@ type Props = { /** * React {@code Component} for showing a moderator icon with a tooltip. * - * @extends Component + * @augments Component */ class ModeratorIndicator extends Component { /** diff --git a/react/features/filmstrip/components/web/RaisedHandIndicator.js b/react/features/filmstrip/components/web/RaisedHandIndicator.js index 53d4aaa85..848f81b7f 100644 --- a/react/features/filmstrip/components/web/RaisedHandIndicator.js +++ b/react/features/filmstrip/components/web/RaisedHandIndicator.js @@ -29,7 +29,7 @@ type Props = AbstractProps & { /** * Thumbnail badge showing that the participant would like to speak. * - * @extends Component + * @augments Component */ class RaisedHandIndicator extends AbstractRaisedHandIndicator { /** diff --git a/react/features/filmstrip/components/web/StatusIndicators.js b/react/features/filmstrip/components/web/StatusIndicators.js index f2edfe215..387725f3c 100644 --- a/react/features/filmstrip/components/web/StatusIndicators.js +++ b/react/features/filmstrip/components/web/StatusIndicators.js @@ -54,7 +54,7 @@ type Props = { /** * React {@code Component} for showing the status bar in a thumbnail. * - * @extends Component + * @augments Component */ class StatusIndicators extends Component { /** diff --git a/react/features/filmstrip/components/web/Thumbnail.js b/react/features/filmstrip/components/web/Thumbnail.js index 41bd2a586..201440ed8 100644 --- a/react/features/filmstrip/components/web/Thumbnail.js +++ b/react/features/filmstrip/components/web/Thumbnail.js @@ -250,7 +250,7 @@ function onClick(event) { /** * Implements a thumbnail. * - * @extends Component + * @augments Component */ class Thumbnail extends Component { /** @@ -451,7 +451,7 @@ class Thumbnail extends Component { this._stopListeningForAudioUpdates(this.props._audioTrack); } - _clearDoubleClickTimeout: () => void + _clearDoubleClickTimeout: () => void; /** * Clears the first click timeout. diff --git a/react/features/filmstrip/components/web/VideoMutedIndicator.js b/react/features/filmstrip/components/web/VideoMutedIndicator.js index 54775a2ed..88c104d78 100644 --- a/react/features/filmstrip/components/web/VideoMutedIndicator.js +++ b/react/features/filmstrip/components/web/VideoMutedIndicator.js @@ -19,7 +19,7 @@ type Props = { /** * React {@code Component} for showing a video muted icon with a tooltip. * - * @extends Component + * @augments Component */ class VideoMutedIndicator extends Component { /** diff --git a/react/features/filmstrip/constants.js b/react/features/filmstrip/constants.js index 596e4167f..4be05f119 100644 --- a/react/features/filmstrip/constants.js +++ b/react/features/filmstrip/constants.js @@ -81,6 +81,7 @@ export const VIDEO_TEST_EVENTS = [ /** * Display mode constant used when video is being displayed on the small video. + * * @type {number} * @constant */ @@ -89,6 +90,7 @@ export const DISPLAY_VIDEO = 0; /** * Display mode constant used when the user's avatar is being displayed on * the small video. + * * @type {number} * @constant */ @@ -97,6 +99,7 @@ export const DISPLAY_AVATAR = 1; /** * Display mode constant used when neither video nor avatar is being displayed * on the small video. And we just show the display name. + * * @type {number} * @constant */ @@ -105,6 +108,7 @@ export const DISPLAY_BLACKNESS_WITH_NAME = 2; /** * Display mode constant used when video is displayed and display name * at the same time. + * * @type {number} * @constant */ @@ -113,6 +117,7 @@ export const DISPLAY_VIDEO_WITH_NAME = 3; /** * Display mode constant used when neither video nor avatar is being displayed * on the small video. And we just show the display name. + * * @type {number} * @constant */ @@ -120,6 +125,7 @@ export const DISPLAY_AVATAR_WITH_NAME = 4; /** * Maps the display modes to class name that will be applied on the thumbnail container. + * * @type {Array} * @constant */ @@ -133,6 +139,7 @@ export const DISPLAY_MODE_TO_CLASS_NAME = [ /** * Maps the display modes to string. + * * @type {Array} * @constant */ diff --git a/react/features/follow-me/middleware.js b/react/features/follow-me/middleware.js index 48997c20f..44b4a4ed1 100644 --- a/react/features/follow-me/middleware.js +++ b/react/features/follow-me/middleware.js @@ -53,7 +53,7 @@ let nextOnStageTimer = 0; /** * Represents "Follow Me" feature which enables a moderator to (partially) - * control the user experience/interface (e.g. filmstrip visibility) of (other) + * control the user experience/interface (e.g. Filmstrip visibility) of (other) * non-moderator participant. */ MiddlewareRegistry.register(store => next => action => { diff --git a/react/features/follow-me/subscriber.js b/react/features/follow-me/subscriber.js index 9f8dc4725..0ab7b9267 100644 --- a/react/features/follow-me/subscriber.js +++ b/react/features/follow-me/subscriber.js @@ -36,8 +36,8 @@ StateListenerRegistry.register( * Subscribes to changes to the shared document (etherpad) visibility in the * user interface of the local participant. * - * @param sharedDocumentVisible {Boolean} {true} if the shared document was - * shown (as a result of the toggle) or {false} if it was hidden + * @param sharedDocumentVisible - {Boolean} {true} If the shared document was + * shown (as a result of the toggle) or {false} if it was hidden. */ StateListenerRegistry.register( /* selector */ state => state['features/etherpad'].editing, diff --git a/react/features/google-api/components/AbstractGoogleSignInButton.js b/react/features/google-api/components/AbstractGoogleSignInButton.js index 50dec27d8..05d8e2194 100644 --- a/react/features/google-api/components/AbstractGoogleSignInButton.js +++ b/react/features/google-api/components/AbstractGoogleSignInButton.js @@ -3,7 +3,7 @@ import { Component } from 'react'; /** - * {@code AbstractGoogleSignInButton} component's property types. + * {@code AbstractGoogleSignInButton} Component's property types. */ type Props = { diff --git a/react/features/google-api/components/GoogleSignInButton.native.js b/react/features/google-api/components/GoogleSignInButton.native.js index 9b5cc1bf8..a0525e343 100644 --- a/react/features/google-api/components/GoogleSignInButton.native.js +++ b/react/features/google-api/components/GoogleSignInButton.native.js @@ -22,7 +22,7 @@ const GOOGLE_BRAND_IMAGE = require('../../../../images/btn_google_signin_dark_no /** * A React Component showing a button to sign in with Google. * - * @extends Component + * @augments Component */ class GoogleSignInButton extends AbstractGoogleSignInButton { diff --git a/react/features/google-api/components/GoogleSignInButton.web.js b/react/features/google-api/components/GoogleSignInButton.web.js index 4945162db..b4a03cbd7 100644 --- a/react/features/google-api/components/GoogleSignInButton.web.js +++ b/react/features/google-api/components/GoogleSignInButton.web.js @@ -9,7 +9,7 @@ import AbstractGoogleSignInButton from './AbstractGoogleSignInButton'; /** * A React Component showing a button to sign in with Google. * - * @extends Component + * @augments Component */ class GoogleSignInButton extends AbstractGoogleSignInButton { diff --git a/react/features/google-api/components/styles.js b/react/features/google-api/components/styles.js index 446722e9d..2e10d4884 100644 --- a/react/features/google-api/components/styles.js +++ b/react/features/google-api/components/styles.js @@ -4,7 +4,7 @@ import { ColorPalette, createStyleSheet } from '../../base/styles'; /** * For styling explanations, see: - * https://developers.google.com/identity/branding-guidelines + * https://developers.google.com/identity/branding-guidelines. */ const BUTTON_HEIGHT = 40; diff --git a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js index 702cc3d65..a05842d5b 100644 --- a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js +++ b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js @@ -48,7 +48,7 @@ type Props = AbstractProps & { _isVisible: boolean, /** - * Default prop for navigation between screen components(React Navigation) + * Default prop for navigation between screen components(React Navigation). */ navigation: Object, @@ -290,11 +290,11 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { } } - _invite: Array => Promise> + _invite: Array => Promise>; _isAddDisabled: () => boolean; - _keyExtractor: Object => string + _keyExtractor: Object => string; /** * Key extractor for the flatlist. @@ -307,7 +307,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { return item.type === INVITE_TYPES.USER ? item.id || item.user_id : item.number; } - _onClearField: () => void + _onClearField: () => void; /** * Callback to clear the text field. @@ -323,7 +323,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { this._onTypeQuery(''); } - _onInvite: () => void + _onInvite: () => void; /** * Invites the selected entries. @@ -342,7 +342,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { }); } - _onPressItem: Item => Function + _onPressItem: Item => Function; /** * Function to prepare a callback for the onPress event of the touchable. @@ -373,7 +373,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { }; } - _onShareMeeting: () => void + _onShareMeeting: () => void; /** * Shows the system share sheet to share the meeting information. @@ -389,7 +389,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { } } - _onTypeQuery: string => void + _onTypeQuery: string => void; /** * Handles the typing event of the text field on the dialog and performs the @@ -434,7 +434,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { _query: (string) => Promise>; - _renderInvitedItem: Object => React$Element | null + _renderInvitedItem: Object => React$Element | null; /** * Renders a single item in the invited {@code FlatList}. @@ -471,7 +471,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { ); } - _renderItem: Object => React$Element | null + _renderItem: Object => React$Element | null; /** * Renders a single item in the search result {@code FlatList}. @@ -526,7 +526,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog { ); } - _renderSeparator: () => React$Element<*> | null + _renderSeparator: () => React$Element<*> | null; /** * Renders the item separator. diff --git a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js index c7e7b3d4e..a80301128 100644 --- a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js +++ b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js @@ -65,7 +65,7 @@ type Props = { /** * The custom no new-lines meeting invitation text for iOS default email. - * Needed because of this mailto: iOS issue: https://developer.apple.com/forums/thread/681023 + * Needed because of this mailto: iOS issue: https://developer.apple.com/forums/thread/681023. */ _invitationTextiOS: string, diff --git a/react/features/invite/components/add-people-dialog/web/DialInNumber.js b/react/features/invite/components/add-people-dialog/web/DialInNumber.js index 18488f583..49d2aff49 100644 --- a/react/features/invite/components/add-people-dialog/web/DialInNumber.js +++ b/react/features/invite/components/add-people-dialog/web/DialInNumber.js @@ -34,7 +34,7 @@ type Props = { * React {@code Component} responsible for displaying a telephone number and * conference ID for dialing into a conference. * - * @extends Component + * @augments Component */ class DialInNumber extends Component { diff --git a/react/features/invite/components/add-people-dialog/web/DialInSection.js b/react/features/invite/components/add-people-dialog/web/DialInSection.js index f56d70372..8bcb97a57 100644 --- a/react/features/invite/components/add-people-dialog/web/DialInSection.js +++ b/react/features/invite/components/add-people-dialog/web/DialInSection.js @@ -22,7 +22,7 @@ type Props = { _dialInfoPageUrl: string, /** - * If multiple dial-in numbers are available + * If multiple dial-in numbers are available. */ _hasMultipleNumbers: boolean; diff --git a/react/features/invite/components/add-people-dialog/web/InviteByEmailSection.js b/react/features/invite/components/add-people-dialog/web/InviteByEmailSection.js index cde47d2fe..85866d456 100644 --- a/react/features/invite/components/add-people-dialog/web/InviteByEmailSection.js +++ b/react/features/invite/components/add-people-dialog/web/InviteByEmailSection.js @@ -1,5 +1,7 @@ // @flow +/* eslint-disable react/jsx-no-bind */ + import React, { useState } from 'react'; import { isIosMobileBrowser } from '../../../../base/environment/utils'; diff --git a/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js b/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js index 3dc61f9a2..fde493818 100644 --- a/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js +++ b/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js @@ -34,7 +34,7 @@ type Props = AbstractProps & { _footerTextEnabled: boolean, /** - * Whether the meeting belongs to JaaS user + * Whether the meeting belongs to JaaS user. */ _isVpaas: boolean, @@ -180,7 +180,7 @@ class InviteContactsForm extends AbstractAddPeopleDialog { ); } - _invite: Array => Promise<*> + _invite: Array => Promise<*>; _isAddDisabled: () => boolean; diff --git a/react/features/invite/components/add-people-dialog/web/LiveStreamSection.js b/react/features/invite/components/add-people-dialog/web/LiveStreamSection.js index 172eaf5d8..5e8bc3fe3 100644 --- a/react/features/invite/components/add-people-dialog/web/LiveStreamSection.js +++ b/react/features/invite/components/add-people-dialog/web/LiveStreamSection.js @@ -1,5 +1,7 @@ // @flow +/* eslint-disable react/jsx-no-bind */ + import React, { useState } from 'react'; import { translate } from '../../../../base/i18n'; diff --git a/react/features/invite/components/callee-info/CalleeInfo.js b/react/features/invite/components/callee-info/CalleeInfo.js index 6f5c62cc2..be56bbe6e 100644 --- a/react/features/invite/components/callee-info/CalleeInfo.js +++ b/react/features/invite/components/callee-info/CalleeInfo.js @@ -34,7 +34,7 @@ type Props = { * Implements a React {@link Component} which depicts the establishment of a * call with a specific remote callee. * - * @extends Component + * @augments Component */ class CalleeInfo extends Component { /** diff --git a/react/features/invite/components/callee-info/CalleeInfoContainer.js b/react/features/invite/components/callee-info/CalleeInfoContainer.js index bdfc7f7fd..fdf6060bb 100644 --- a/react/features/invite/components/callee-info/CalleeInfoContainer.js +++ b/react/features/invite/components/callee-info/CalleeInfoContainer.js @@ -24,7 +24,7 @@ type Props = { * Implements a React {@link Component} which depicts the establishment of a * call with a specific remote callee if there is such a remote callee. * - * @extends Component + * @augments Component */ class CalleeInfoContainer extends Component { /** diff --git a/react/features/invite/components/dial-in-info-page/NoRoomError.web.js b/react/features/invite/components/dial-in-info-page/NoRoomError.web.js index e468c4567..5d9fd970d 100644 --- a/react/features/invite/components/dial-in-info-page/NoRoomError.web.js +++ b/react/features/invite/components/dial-in-info-page/NoRoomError.web.js @@ -24,7 +24,7 @@ type Props = { * Displays an error message stating no room name was specified to fetch dial-in * numbers for. * - * @extends Component + * @augments Component */ class NoRoomError extends Component { /** diff --git a/react/features/invite/components/dial-in-summary/web/ConferenceID.js b/react/features/invite/components/dial-in-summary/web/ConferenceID.js index 81fe83976..328957919 100644 --- a/react/features/invite/components/dial-in-summary/web/ConferenceID.js +++ b/react/features/invite/components/dial-in-summary/web/ConferenceID.js @@ -29,7 +29,7 @@ type Props = { /** * Displays a conference ID used as a pin for dialing into a conference. * - * @extends Component + * @augments Component */ class ConferenceID extends Component { /** diff --git a/react/features/invite/components/dial-in-summary/web/DialInSummary.js b/react/features/invite/components/dial-in-summary/web/DialInSummary.js index 6feb54df2..d30a422bb 100644 --- a/react/features/invite/components/dial-in-summary/web/DialInSummary.js +++ b/react/features/invite/components/dial-in-summary/web/DialInSummary.js @@ -71,7 +71,7 @@ type State = { * Displays a page listing numbers for dialing into a conference and pin to * the a specific conference. * - * @extends Component + * @augments Component */ class DialInSummary extends Component { state = { diff --git a/react/features/invite/components/dial-in-summary/web/NumbersList.js b/react/features/invite/components/dial-in-summary/web/NumbersList.js index c644555a2..fb64a7caa 100644 --- a/react/features/invite/components/dial-in-summary/web/NumbersList.js +++ b/react/features/invite/components/dial-in-summary/web/NumbersList.js @@ -32,7 +32,7 @@ type Props = { /** * Displays a table with phone numbers to dial in to a conference. * - * @extends Component + * @augments Component */ class NumbersList extends Component { /** diff --git a/react/features/invite/constants.js b/react/features/invite/constants.js index 7c9c12430..a2f8a3167 100644 --- a/react/features/invite/constants.js +++ b/react/features/invite/constants.js @@ -45,7 +45,7 @@ export const OUTGOING_CALL_START_SOUND_ID = 'OUTGOING_CALL_START_SOUND'; export const SIP_ADDRESS_REGEX = /^[+a-zA-Z0-9]+(?:([^\s>:@]+)(?::([^\s@>]+))?@)?([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/; /** - * Different invite types mapping + * Different invite types mapping. */ export const INVITE_TYPES = { PHONE: 'phone', diff --git a/react/features/jaas/constants.js b/react/features/jaas/constants.js index c2319ee0f..cd727411e 100644 --- a/react/features/jaas/constants.js +++ b/react/features/jaas/constants.js @@ -1,5 +1,5 @@ /** - * JaaS customer statuses which represent their account state + * JaaS customer statuses which represent their account state. */ export const STATUSES = { ACTIVE: 'ACTIVE', @@ -7,7 +7,7 @@ export const STATUSES = { }; /** - * Service features for JaaS users + * Service features for JaaS users. */ export const FEATURES = { INBOUND_CALL: 'inbound-call', @@ -20,7 +20,7 @@ export const FEATURES = { }; /** - * URL for displaying JaaS upgrade options + * URL for displaying JaaS upgrade options. */ export const JAAS_UPGRADE_URL = 'https://jaas.8x8.vc/#/plan/upgrade'; diff --git a/react/features/jaas/reducer.js b/react/features/jaas/reducer.js index c6c36ea89..b15cdd356 100644 --- a/react/features/jaas/reducer.js +++ b/react/features/jaas/reducer.js @@ -11,7 +11,7 @@ const DEFAULT_STATE = { }; /** - * Listen for actions that mutate the billing-counter state + * Listen for actions that mutate the billing-counter state. */ ReducerRegistry.register( 'features/jaas', (state = DEFAULT_STATE, action) => { @@ -24,5 +24,5 @@ ReducerRegistry.register( default: return state; } - }, + } ); diff --git a/react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js b/react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js index 670f6947d..10851c13b 100644 --- a/react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js +++ b/react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js @@ -27,7 +27,7 @@ type Props = { * Implements a React {@link Component} which displays a dialog describing * registered keyboard shortcuts. * - * @extends Component + * @augments Component */ class KeyboardShortcutsDialog extends Component { /** diff --git a/react/features/large-video/components/LargeVideo.native.js b/react/features/large-video/components/LargeVideo.native.js index 38b51bf78..078df3f4d 100644 --- a/react/features/large-video/components/LargeVideo.native.js +++ b/react/features/large-video/components/LargeVideo.native.js @@ -71,11 +71,11 @@ const DEFAULT_STATE = { useConnectivityInfoLabel: true }; -/** +/** . * Implements a React {@link Component} which represents the large video (a.k.a. - * the conference participant who is on the local stage) on mobile/React Native. + * The conference participant who is on the local stage) on mobile/React Native. * - * @extends Component + * @augments Component */ class LargeVideo extends PureComponent { state = { diff --git a/react/features/large-video/components/LargeVideo.web.js b/react/features/large-video/components/LargeVideo.web.js index 7e8e213bb..8b4f003ce 100644 --- a/react/features/large-video/components/LargeVideo.web.js +++ b/react/features/large-video/components/LargeVideo.web.js @@ -14,7 +14,7 @@ declare var interfaceConfig: Object; type Props = { /** - * The alpha(opacity) of the background + * The alpha(opacity) of the background. */ _backgroundAlpha: number, @@ -45,14 +45,14 @@ type Props = { dispatch: Function } -/** +/** . * Implements a React {@link Component} which represents the large video (a.k.a. - * the conference participant who is on the local stage) on Web/React. + * The conference participant who is on the local stage) on Web/React. * - * @extends Component + * @augments Component */ class LargeVideo extends Component { - _tappedTimeout: ?TimeoutID + _tappedTimeout: ?TimeoutID; /** * Constructor of the component. @@ -126,7 +126,7 @@ class LargeVideo extends Component { ); } - _clearTapTimeout: () => void + _clearTapTimeout: () => void; /** * Clears the '_tappedTimout'. @@ -165,7 +165,7 @@ class LargeVideo extends Component { return styles; } - _onDoubleTap: () => void + _onDoubleTap: () => void; /** * Sets view to tile view on double tap. diff --git a/react/features/large-video/components/LargeVideoBackground.web.js b/react/features/large-video/components/LargeVideoBackground.web.js index 74ffa4b6c..f7dce643a 100644 --- a/react/features/large-video/components/LargeVideoBackground.web.js +++ b/react/features/large-video/components/LargeVideoBackground.web.js @@ -65,7 +65,7 @@ type Props = { * Implements a React Component which shows a video element intended to be used * as a background to fill the empty space of container with another video. * - * @extends Component + * @augments Component */ export class LargeVideoBackground extends Component { _canvasEl: Object; diff --git a/react/features/lobby/components/AbstractLobbyScreen.js b/react/features/lobby/components/AbstractLobbyScreen.js index e51909326..350bfa47d 100644 --- a/react/features/lobby/components/AbstractLobbyScreen.js +++ b/react/features/lobby/components/AbstractLobbyScreen.js @@ -34,7 +34,7 @@ export type Props = { _meetingName: string, /** - * The members only conference if any, + * The members only conference if any,. */ _membersOnlyConference: Object, @@ -69,7 +69,7 @@ export type Props = { dispatch: Function, /** - * Indicates whether the copy url button should be shown + * Indicates whether the copy url button should be shown. */ showCopyUrlButton: boolean, @@ -102,7 +102,7 @@ type State = { passwordJoinFailed: boolean, /** - * The state of the screen. One of {@code SCREEN_STATES[*]} + * The state of the screen. One of {@code SCREEN_STATES[*]}. */ screenState: number } diff --git a/react/features/lobby/constants.js b/react/features/lobby/constants.js index 475e1995a..4fa5e84c3 100644 --- a/react/features/lobby/constants.js +++ b/react/features/lobby/constants.js @@ -1,10 +1,11 @@ /** - * Hide these emails when trying to join a lobby + * Hide these emails when trying to join a lobby. */ export const HIDDEN_EMAILS = [ 'inbound-sip-jibri@jitsi.net', 'outbound-sip-jibri@jitsi.net' ]; /** * The identifier of the sound to be played when a participant joins lobby. + * * @type {string} */ export const KNOCKING_PARTICIPANT_SOUND_ID = 'KNOCKING_PARTICIPANT_SOUND'; diff --git a/react/features/local-recording/components/LocalRecordingInfoDialog.js b/react/features/local-recording/components/LocalRecordingInfoDialog.js index c3351d250..3078872fb 100644 --- a/react/features/local-recording/components/LocalRecordingInfoDialog.js +++ b/react/features/local-recording/components/LocalRecordingInfoDialog.js @@ -75,7 +75,7 @@ type State = { * local recording. For users with moderator rights, this is also the "control * panel" for starting/stopping local recording on all clients. * - * @extends Component + * @augments Component */ class LocalRecordingInfoDialog extends Component { diff --git a/react/features/local-recording/components/LocalRecordingLabel.web.js b/react/features/local-recording/components/LocalRecordingLabel.web.js index b4642db0c..aeda48000 100644 --- a/react/features/local-recording/components/LocalRecordingLabel.web.js +++ b/react/features/local-recording/components/LocalRecordingLabel.web.js @@ -32,7 +32,7 @@ type Props = { /** * React Component for displaying a label when local recording is engaged. * - * @extends Component + * @augments Component */ class LocalRecordingLabel extends Component { diff --git a/react/features/local-recording/controller/RecordingController.js b/react/features/local-recording/controller/RecordingController.js index 2f5e7f956..2065a5647 100644 --- a/react/features/local-recording/controller/RecordingController.js +++ b/react/features/local-recording/controller/RecordingController.js @@ -99,12 +99,12 @@ type RecordingStats = { isRecording: boolean, /** - * Total recorded bytes. (Reserved for future use.) + * Total recorded bytes. (Reserved for future use.). */ recordedBytes: number, /** - * Total recording duration. (Reserved for future use.) + * Total recording duration. (Reserved for future use.). */ recordedLength: number } diff --git a/react/features/local-recording/recording/OggAdapter.js b/react/features/local-recording/recording/OggAdapter.js index 5f381b143..9fdfaa702 100644 --- a/react/features/local-recording/recording/OggAdapter.js +++ b/react/features/local-recording/recording/OggAdapter.js @@ -10,18 +10,21 @@ export class OggAdapter extends RecordingAdapter { /** * Instance of MediaRecorder. + * * @private */ _mediaRecorder = null; /** * Initialization promise. + * * @private */ _initPromise = null; /** * The recorded audio file. + * * @private */ _recordedData = null; diff --git a/react/features/local-recording/recording/flac/flacEncodeWorker.js b/react/features/local-recording/recording/flac/flacEncodeWorker.js index c817501da..8d724a306 100644 --- a/react/features/local-recording/recording/flac/flacEncodeWorker.js +++ b/react/features/local-recording/recording/flac/flacEncodeWorker.js @@ -8,7 +8,7 @@ import { } from './messageTypes'; /** - * WebWorker that does FLAC encoding using libflac.js + * WebWorker that does FLAC encoding using libflac.js. */ self.FLAC_SCRIPT_LOCATION = '/libs/'; @@ -115,24 +115,28 @@ class Encoder { /** * Flac encoder instance ID. (As per libflac.js API). + * * @private */ _encoderId = 0; /** * Sample rate. + * * @private */ _sampleRate; /** * Bit depth (bits per sample). + * * @private */ _bitDepth; /** * Buffer size. + * * @private */ _bufferSize; @@ -337,7 +341,7 @@ class Encoder { */ _onMetadataAvailable = () => { // reserved for future use - } + }; } diff --git a/react/features/local-recording/recording/flac/messageTypes.js b/react/features/local-recording/recording/flac/messageTypes.js index 431cdead8..5b288001b 100644 --- a/react/features/local-recording/recording/flac/messageTypes.js +++ b/react/features/local-recording/recording/flac/messageTypes.js @@ -1,6 +1,6 @@ /** * Types of messages that are passed between the main thread and the WebWorker - * ({@code flacEncodeWorker}) + * ({@code flacEncodeWorker}). */ // Messages sent by the main thread diff --git a/react/features/local-recording/session/SessionManager.js b/react/features/local-recording/session/SessionManager.js index e2dea0729..4b6e7a09e 100644 --- a/react/features/local-recording/session/SessionManager.js +++ b/react/features/local-recording/session/SessionManager.js @@ -72,13 +72,13 @@ type SegmentInfo = { /** * The length of gap before this segment, in milliseconds. - * mull if unknown. + * Mull if unknown. */ gapBefore?: ?number, /** * The duration of this segment, in milliseconds. - * null if unknown or the segment is not finished. + * Null if unknown or the segment is not finished. */ duration?: ?number, @@ -89,8 +89,8 @@ type SegmentInfo = { /** * The end time, in milliseconds. - * null if unknown, the segment is not finished, or the recording is - * interrupted (e.g. browser reload). + * Null if unknown, the segment is not finished, or the recording is + * interrupted (e.g. Browser reload). */ end?: ?number }; @@ -122,7 +122,7 @@ type SessionInfo = { } /** - * {@code localStorage} key. + * {@code localStorage} Key. */ const LOCAL_STORAGE_KEY = 'localRecordingMetadataVersion1'; diff --git a/react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js b/react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js index 8eae352f8..a247fdc51 100644 --- a/react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js +++ b/react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js @@ -64,7 +64,7 @@ type RawDevice = { name: ?string, /** - * is this device selected? + * Is this device selected? */ selected: boolean, diff --git a/react/features/mobile/back-button/BackButtonRegistry.js b/react/features/mobile/back-button/BackButtonRegistry.js index 9b526751d..77114aaf2 100644 --- a/react/features/mobile/back-button/BackButtonRegistry.js +++ b/react/features/mobile/back-button/BackButtonRegistry.js @@ -43,7 +43,7 @@ class BackButtonRegistry { this._listeners = this._listeners.filter(f => f !== listener); } - onHardwareBackPress: () => boolean + onHardwareBackPress: () => boolean; /** * Callback for the back button press event. diff --git a/react/features/mobile/incoming-call/components/IncomingCallApp.js b/react/features/mobile/incoming-call/components/IncomingCallApp.js index f17e8f26e..b15ab2101 100644 --- a/react/features/mobile/incoming-call/components/IncomingCallApp.js +++ b/react/features/mobile/incoming-call/components/IncomingCallApp.js @@ -29,7 +29,7 @@ type Props = { /** * Root application component for incoming call. * - * @extends BaseApp + * @augments BaseApp */ export default class IncomingCallApp extends BaseApp { _init: Promise<*>; diff --git a/react/features/no-audio-signal/components/DialInLink.js b/react/features/no-audio-signal/components/DialInLink.js index 4b30652b6..2a4e02cb4 100644 --- a/react/features/no-audio-signal/components/DialInLink.js +++ b/react/features/no-audio-signal/components/DialInLink.js @@ -31,7 +31,7 @@ type Props = { * React {@code Component} responsible for displaying a telephone number and * conference ID for dialing into a conference. * - * @extends Component + * @augments Component */ class DialInLink extends Component { /** diff --git a/react/features/no-audio-signal/reducer.js b/react/features/no-audio-signal/reducer.js index 7fa2d1a15..11706057e 100644 --- a/react/features/no-audio-signal/reducer.js +++ b/react/features/no-audio-signal/reducer.js @@ -5,7 +5,7 @@ import { ReducerRegistry, set } from '../base/redux'; import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes'; /** - * Reduces the redux actions of the feature no audio signal + * Reduces the redux actions of the feature no audio signal. */ ReducerRegistry.register('features/no-audio-signal', (state = {}, action) => { switch (action.type) { diff --git a/react/features/noise-detection/reducer.js b/react/features/noise-detection/reducer.js index 5fbc2ecc7..d7a2b7a97 100644 --- a/react/features/noise-detection/reducer.js +++ b/react/features/noise-detection/reducer.js @@ -5,7 +5,7 @@ import { ReducerRegistry, set } from '../base/redux'; import { SET_NOISY_AUDIO_INPUT_NOTIFICATION_UID } from './actionTypes'; /** - * Reduces the redux actions of noise detection feature + * Reduces the redux actions of noise detection feature. */ ReducerRegistry.register('features/noise-detection', (state = {}, action) => { switch (action.type) { diff --git a/react/features/notifications/components/AbstractNotification.js b/react/features/notifications/components/AbstractNotification.js index a4d049853..8215ca5d7 100644 --- a/react/features/notifications/components/AbstractNotification.js +++ b/react/features/notifications/components/AbstractNotification.js @@ -101,7 +101,7 @@ export type Props = { /** * Abstract class for {@code Notification} component. * - * @extends Component + * @augments Component */ export default class AbstractNotification extends Component

{ /** @@ -127,7 +127,7 @@ export default class AbstractNotification extends Component

{ this._onDismissed = this._onDismissed.bind(this); } - _getDescription: () => Array + _getDescription: () => Array; /** * Returns the description array to be displayed. @@ -153,7 +153,7 @@ export default class AbstractNotification extends Component

{ return descriptionArray; } - _getDescriptionKey: () => string + _getDescriptionKey: () => string; /** * Returns the description key that was used if any. diff --git a/react/features/notifications/components/native/Notification.js b/react/features/notifications/components/native/Notification.js index 6988d911f..37d287419 100644 --- a/react/features/notifications/components/native/Notification.js +++ b/react/features/notifications/components/native/Notification.js @@ -21,7 +21,7 @@ const DEFAULT_MAX_LINES = 1; /** * Implements a React {@link Component} to display a notification. * - * @extends Component + * @augments Component */ class Notification extends AbstractNotification { /** diff --git a/react/features/notifications/components/native/NotificationsContainer.js b/react/features/notifications/components/native/NotificationsContainer.js index b4a747f0a..b9f6bded0 100644 --- a/react/features/notifications/components/native/NotificationsContainer.js +++ b/react/features/notifications/components/native/NotificationsContainer.js @@ -34,7 +34,7 @@ type Props = { * automatic dismissmal after a notification is shown for a defined timeout * period. * - * @extends {Component} + * @augments {Component} */ class NotificationsContainer extends Component { diff --git a/react/features/notifications/components/web/Notification.js b/react/features/notifications/components/web/Notification.js index df02db073..19ee1e439 100644 --- a/react/features/notifications/components/web/Notification.js +++ b/react/features/notifications/components/web/Notification.js @@ -27,7 +27,7 @@ const ICON_COLOR = { /** * Implements a React {@link Component} to display a notification. * - * @extends Component + * @augments Component */ class Notification extends AbstractNotification { /** @@ -57,9 +57,9 @@ class Notification extends AbstractNotification { ); } - _getDescription: () => Array + _getDescription: () => Array; - _getDescriptionKey: () => string + _getDescriptionKey: () => string; _onDismissed: () => void; @@ -157,13 +157,13 @@ class Notification extends AbstractNotification { const secIconColor = ICON_COLOR[this.props.appearance]; const iconSize = 'medium'; - return <> + return (<>

- ; + ); } } diff --git a/react/features/notifications/components/web/NotificationsContainer.js b/react/features/notifications/components/web/NotificationsContainer.js index 769182f96..29f71eadc 100644 --- a/react/features/notifications/components/web/NotificationsContainer.js +++ b/react/features/notifications/components/web/NotificationsContainer.js @@ -123,7 +123,7 @@ const useStyles = theme => { * automatic dismissal after a notification is shown for a defined timeout * period. * - * @extends {Component} + * @augments {Component} */ class NotificationsContainer extends Component { _api: Object; diff --git a/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.js b/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.js index 697b2a1f0..43f3d1178 100644 --- a/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.js +++ b/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.js @@ -18,7 +18,7 @@ type Props = { /** * A component that renders the description of the notification for old Jitsi Meet Electron clients. * - * @extends AbstractApp + * @augments AbstractApp */ export class OldElectronAPPNotificationDescription extends Component { /** diff --git a/react/features/overlay/components/AbstractPageReloadOverlay.js b/react/features/overlay/components/AbstractPageReloadOverlay.js index 68384468e..0d3628bd0 100644 --- a/react/features/overlay/components/AbstractPageReloadOverlay.js +++ b/react/features/overlay/components/AbstractPageReloadOverlay.js @@ -27,7 +27,7 @@ export type Props = { /** * The details is an object containing more information about the connection - * failed (shard changes, was the computer suspended, etc.) + * failed (shard changes, was the computer suspended, etc.). */ details: Object, diff --git a/react/features/overlay/components/native/PageReloadOverlay.js b/react/features/overlay/components/native/PageReloadOverlay.js index 0796470fc..a71d213a2 100644 --- a/react/features/overlay/components/native/PageReloadOverlay.js +++ b/react/features/overlay/components/native/PageReloadOverlay.js @@ -47,7 +47,7 @@ class PageReloadOverlay extends AbstractPageReloadOverlay { this._onReloadNow = this._onReloadNow.bind(this); } - _onCancel: () => void + _onCancel: () => void; /** * Handle clicking of the "Cancel" button. It will navigate back to the @@ -62,7 +62,7 @@ class PageReloadOverlay extends AbstractPageReloadOverlay { this.props.dispatch(appNavigate(undefined)); } - _onReloadNow: () => void + _onReloadNow: () => void; /** * Handle clicking on the "Reload Now" button. It will navigate to the same diff --git a/react/features/overlay/components/web/AbstractSlowGUMOverlay.js b/react/features/overlay/components/web/AbstractSlowGUMOverlay.js index a6f35c333..736caa82c 100644 --- a/react/features/overlay/components/web/AbstractSlowGUMOverlay.js +++ b/react/features/overlay/components/web/AbstractSlowGUMOverlay.js @@ -16,7 +16,7 @@ type Props = { /** * Implements a React {@link Component} for slow gUM overlay. Shown when - * a slow gUM promise resolution is detected + * a slow gUM promise resolution is detected. */ export default class AbstractSlowGUMOverlay extends Component { /** diff --git a/react/features/overlay/components/web/PageReloadOverlay.js b/react/features/overlay/components/web/PageReloadOverlay.js index 12cc179ae..5fd42df34 100644 --- a/react/features/overlay/components/web/PageReloadOverlay.js +++ b/react/features/overlay/components/web/PageReloadOverlay.js @@ -52,9 +52,9 @@ class PageReloadOverlay extends AbstractPageReloadOverlay { ); } - _renderButton: () => React$Element<*> + _renderButton: () => React$Element<*>; - _renderProgressBar: () => React$Element<*> + _renderProgressBar: () => React$Element<*>; } export default translate(connect(abstractMapStateToProps)(PageReloadOverlay)); diff --git a/react/features/overlay/components/web/SlowGUMOverlay.js b/react/features/overlay/components/web/SlowGUMOverlay.js index 08baf953a..f4af83eee 100644 --- a/react/features/overlay/components/web/SlowGUMOverlay.js +++ b/react/features/overlay/components/web/SlowGUMOverlay.js @@ -9,7 +9,7 @@ import OverlayFrame from './OverlayFrame'; /** * Implements a React {@link Component} for slow gUM overlay. Shown when - * a slow gUM promise resolution is detected + * a slow gUM promise resolution is detected. */ class SlowGUMOverlay extends AbstractSlowGUMOverlay { /** diff --git a/react/features/participants-pane/components/native/ContextMenuLobbyParticipantReject.js b/react/features/participants-pane/components/native/ContextMenuLobbyParticipantReject.js index dde6c0747..b92850f92 100644 --- a/react/features/participants-pane/components/native/ContextMenuLobbyParticipantReject.js +++ b/react/features/participants-pane/components/native/ContextMenuLobbyParticipantReject.js @@ -19,7 +19,7 @@ import styles from './styles'; type Props = { /** - * Participant reference + * Participant reference. */ participant: Object }; diff --git a/react/features/participants-pane/components/native/LobbyParticipantItem.js b/react/features/participants-pane/components/native/LobbyParticipantItem.js index 43bcc16c1..94e2c1a41 100644 --- a/react/features/participants-pane/components/native/LobbyParticipantItem.js +++ b/react/features/participants-pane/components/native/LobbyParticipantItem.js @@ -16,7 +16,7 @@ import styles from './styles'; type Props = { /** - * Participant reference + * Participant reference. */ participant: Object }; diff --git a/react/features/participants-pane/components/native/ParticipantItem.js b/react/features/participants-pane/components/native/ParticipantItem.js index 4d6e03374..85aa5cb73 100644 --- a/react/features/participants-pane/components/native/ParticipantItem.js +++ b/react/features/participants-pane/components/native/ParticipantItem.js @@ -15,12 +15,12 @@ import styles from './styles'; type Props = { /** - * Media state for audio + * Media state for audio. */ audioMediaState: MediaState, /** - * React children + * React children. */ children?: Node, @@ -65,7 +65,7 @@ type Props = { raisedHand: boolean, /** - * Media state for video + * Media state for video. */ videoMediaState: MediaState } diff --git a/react/features/participants-pane/components/web/ClearableInput.js b/react/features/participants-pane/components/web/ClearableInput.js index 8673ca59a..f02332a73 100644 --- a/react/features/participants-pane/components/web/ClearableInput.js +++ b/react/features/participants-pane/components/web/ClearableInput.js @@ -43,7 +43,7 @@ type Props = { placeholder: string, /** - * The field type (e.g. text, password...etc). + * The field type (e.g. Text, password...etc). */ type?: string, diff --git a/react/features/participants-pane/components/web/FooterButton.js b/react/features/participants-pane/components/web/FooterButton.js index 302d74aa4..540650b31 100644 --- a/react/features/participants-pane/components/web/FooterButton.js +++ b/react/features/participants-pane/components/web/FooterButton.js @@ -18,7 +18,7 @@ type Props = { children: string | React$Node, /** - * button id. + * Button id. */ id?: string, @@ -28,7 +28,7 @@ type Props = { isIconButton?: boolean, /** - * Click handler + * Click handler. */ onClick: Function } diff --git a/react/features/participants-pane/components/web/LobbyParticipantItem.js b/react/features/participants-pane/components/web/LobbyParticipantItem.js index 1fdfac17c..dd2109e77 100644 --- a/react/features/participants-pane/components/web/LobbyParticipantItem.js +++ b/react/features/participants-pane/components/web/LobbyParticipantItem.js @@ -24,7 +24,7 @@ type Props = { openDrawerForParticipant: Function, /** - * Participant reference + * Participant reference. */ participant: Object }; diff --git a/react/features/participants-pane/components/web/LobbyParticipantQuickAction.js b/react/features/participants-pane/components/web/LobbyParticipantQuickAction.js index 54878a374..7535fcb80 100644 --- a/react/features/participants-pane/components/web/LobbyParticipantQuickAction.js +++ b/react/features/participants-pane/components/web/LobbyParticipantQuickAction.js @@ -13,7 +13,7 @@ type Props = { accessibilityLabel: string, /** - * Component children + * Component children. */ children: string, diff --git a/react/features/participants-pane/components/web/LobbyParticipants.js b/react/features/participants-pane/components/web/LobbyParticipants.js index f99e6b8b5..f237f724b 100644 --- a/react/features/participants-pane/components/web/LobbyParticipants.js +++ b/react/features/participants-pane/components/web/LobbyParticipants.js @@ -83,52 +83,52 @@ export default function LobbyParticipants() { } return ( - <> -
-
- {t('participantsPane.headings.lobby', { count: participants.length })} + <> +
+
+ {t('participantsPane.headings.lobby', { count: participants.length })} +
+
{t('lobby.admitAll')}
-
{t('lobby.admitAll')}
-
- - - -
    -
  • - - { drawerParticipant && drawerParticipant.displayName } -
  • -
  • - - { t('lobby.admit') } -
  • -
  • - - { t('lobby.reject')} -
  • -
-
-
- + + + +
    +
  • + + { drawerParticipant && drawerParticipant.displayName } +
  • +
  • + + { t('lobby.admit') } +
  • +
  • + + { t('lobby.reject')} +
  • +
+
+
+ ); } diff --git a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js index eac6a6597..e142fa66f 100644 --- a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js +++ b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js @@ -78,7 +78,7 @@ type Props = { _localVideoOwner: boolean, /** - * Participant reference + * Participant reference. */ _participant: Object, @@ -115,22 +115,22 @@ type Props = { muteAudio: Function, /** - * Target elements against which positioning calculations are made + * Target elements against which positioning calculations are made. */ offsetTarget: HTMLElement, /** - * Callback for the mouse entering the component + * Callback for the mouse entering the component. */ onEnter: Function, /** - * Callback for the mouse leaving the component + * Callback for the mouse leaving the component. */ onLeave: Function, /** - * Callback for making a selection in the menu + * Callback for making a selection in the menu. */ onSelect: Function, diff --git a/react/features/participants-pane/components/web/MeetingParticipantItem.js b/react/features/participants-pane/components/web/MeetingParticipantItem.js index 59d1a60b9..84ee6ea4a 100644 --- a/react/features/participants-pane/components/web/MeetingParticipantItem.js +++ b/react/features/participants-pane/components/web/MeetingParticipantItem.js @@ -113,7 +113,7 @@ type Props = { askUnmuteText: string, /** - * Is this item highlighted + * Is this item highlighted. */ isHighlighted: boolean, @@ -128,12 +128,12 @@ type Props = { muteParticipantButtonText: string, /** - * Callback for the activation of this item's context menu + * Callback for the activation of this item's context menu. */ onContextMenu: Function, /** - * Callback for the mouse leaving this item + * Callback for the mouse leaving this item. */ onLeave: Function, diff --git a/react/features/participants-pane/components/web/MeetingParticipantItems.js b/react/features/participants-pane/components/web/MeetingParticipantItems.js index afebbb0b2..1138bef38 100644 --- a/react/features/participants-pane/components/web/MeetingParticipantItems.js +++ b/react/features/participants-pane/components/web/MeetingParticipantItems.js @@ -12,12 +12,12 @@ type Props = { askUnmuteText: string, /** - * Callback for the mouse leaving this item + * Callback for the mouse leaving this item. */ lowerMenu: Function, /** - * Callback for the activation of this item's context menu + * Callback for the activation of this item's context menu. */ toggleMenu: Function, diff --git a/react/features/participants-pane/components/web/MeetingParticipants.js b/react/features/participants-pane/components/web/MeetingParticipants.js index 62973e8a1..ae8c68f56 100644 --- a/react/features/participants-pane/components/web/MeetingParticipants.js +++ b/react/features/participants-pane/components/web/MeetingParticipants.js @@ -60,6 +60,13 @@ const useStyles = makeStyles(theme => { }; }); +type P = { + participantsCount: number, + showInviteButton: boolean, + overflowDrawer: boolean, + sortedParticipantIds: Array +}; + /** * Renders the MeetingParticipantList component. * NOTE: This component is not using useSelector on purpose. The child components MeetingParticipantItem @@ -70,7 +77,7 @@ const useStyles = makeStyles(theme => { * * @returns {ReactNode} - The component. */ -function MeetingParticipants({ participantsCount, showInviteButton, overflowDrawer, sortedParticipantIds = [] }) { +function MeetingParticipants({ participantsCount, showInviteButton, overflowDrawer, sortedParticipantIds = [] }: P) { const dispatch = useDispatch(); const isMouseOverMenu = useRef(false); @@ -83,7 +90,7 @@ function MeetingParticipants({ participantsCount, showInviteButton, overflowDraw * We are tracking mouse movement over the active participant item and * the context menu. Due to the order of enter/leave events, we need to * defer checking if the mouse is over the context menu with - * queueMicrotask + * queueMicrotask. */ window.queueMicrotask(() => { if (isMouseOverMenu.current) { diff --git a/react/features/participants-pane/components/web/ParticipantItem.js b/react/features/participants-pane/components/web/ParticipantItem.js index 1b5fe842b..00ac407c0 100644 --- a/react/features/participants-pane/components/web/ParticipantItem.js +++ b/react/features/participants-pane/components/web/ParticipantItem.js @@ -20,17 +20,17 @@ import { RaisedHandIndicator } from './RaisedHandIndicator'; type Props = { /** - * Type of trigger for the participant actions + * Type of trigger for the participant actions. */ actionsTrigger: ActionTrigger, /** - * Media state for audio + * Media state for audio. */ audioMediaState: MediaState, /** - * React children + * React children. */ children: Node, @@ -45,7 +45,7 @@ type Props = { displayName: string, /** - * Is this item highlighted/raised + * Is this item highlighted/raised. */ isHighlighted?: boolean, @@ -65,7 +65,7 @@ type Props = { openDrawerForParticipant: Function, /** - * Callback for when the mouse leaves this component + * Callback for when the mouse leaves this component. */ onLeave?: Function, @@ -85,7 +85,7 @@ type Props = { raisedHand: boolean, /** - * Media state for video + * Media state for video. */ videoMediaState: MediaState, diff --git a/react/features/participants-pane/components/web/ParticipantPaneBaseButton.js b/react/features/participants-pane/components/web/ParticipantPaneBaseButton.js index b43571893..c11631a4b 100644 --- a/react/features/participants-pane/components/web/ParticipantPaneBaseButton.js +++ b/react/features/participants-pane/components/web/ParticipantPaneBaseButton.js @@ -28,7 +28,7 @@ type Props = { id?: string, /** - * Click handler + * Click handler. */ onClick: Function, diff --git a/react/features/participants-pane/components/web/ParticipantsPane.js b/react/features/participants-pane/components/web/ParticipantsPane.js index 79fae3f6e..7f289249e 100644 --- a/react/features/participants-pane/components/web/ParticipantsPane.js +++ b/react/features/participants-pane/components/web/ParticipantsPane.js @@ -251,7 +251,7 @@ class ParticipantsPane extends Component { this.props.dispatch(close()); } - _onDrawerClose: () => void + _onDrawerClose: () => void; /** * Callback for closing the drawer. diff --git a/react/features/participants-pane/reducer.js b/react/features/participants-pane/reducer.js index abe2839fb..ce788cd02 100644 --- a/react/features/participants-pane/reducer.js +++ b/react/features/participants-pane/reducer.js @@ -13,7 +13,7 @@ const DEFAULT_STATE = { }; /** - * Listen for actions that mutate the participants pane state + * Listen for actions that mutate the participants pane state. */ ReducerRegistry.register( REDUCER_KEY, (state = DEFAULT_STATE, action) => { @@ -43,5 +43,5 @@ ReducerRegistry.register( default: return state; } - }, + } ); diff --git a/react/features/polls/components/AbstractPollResults.js b/react/features/polls/components/AbstractPollResults.js index 9dd939d96..f9b64e421 100644 --- a/react/features/polls/components/AbstractPollResults.js +++ b/react/features/polls/components/AbstractPollResults.js @@ -17,7 +17,7 @@ import { getPoll } from '../functions'; type InputProps = { /** - * ID of the poll to display + * ID of the poll to display. */ pollId: string, }; diff --git a/react/features/polls/components/native/PollItem.js b/react/features/polls/components/native/PollItem.js index 50fbeea2e..64a73cb89 100644 --- a/react/features/polls/components/native/PollItem.js +++ b/react/features/polls/components/native/PollItem.js @@ -13,7 +13,7 @@ import { PollAnswer, PollResults } from '.'; type Props = { /** - * Id of the poll + * Id of the poll. */ pollId: string, diff --git a/react/features/polls/components/native/PollResults.js b/react/features/polls/components/native/PollResults.js index c41897b9c..d29f91adb 100644 --- a/react/features/polls/components/native/PollResults.js +++ b/react/features/polls/components/native/PollResults.js @@ -50,8 +50,9 @@ const PollResults = (props: AbstractProps) => { ); /** - * Render voters of and answer - * @param {AnswerInfo} answer - the answer info + * Render voters of and answer. + * + * @param {AnswerInfo} answer - The answer info. * @returns {React.Node} */ const renderRow = useCallback((answer: AnswerInfo) => { diff --git a/react/features/polls/components/native/PollsList.js b/react/features/polls/components/native/PollsList.js index bf86471fb..499b64445 100644 --- a/react/features/polls/components/native/PollsList.js +++ b/react/features/polls/components/native/PollsList.js @@ -32,19 +32,19 @@ const PollsList = () => { }, [ polls ]); return ( - <> - {listPolls.length === 0 + <> + {listPolls.length === 0 && {t('polls.results.empty')} } - index.toString() } - ref = { flatlistRef } - renderItem = { renderItem } /> - + index.toString() } + ref = { flatlistRef } + renderItem = { renderItem } /> + ); }; diff --git a/react/features/polls/components/web/PollItem.js b/react/features/polls/components/web/PollItem.js index ff8842eff..9ba5468a3 100644 --- a/react/features/polls/components/web/PollItem.js +++ b/react/features/polls/components/web/PollItem.js @@ -10,13 +10,13 @@ import { shouldShowResults } from '../../functions'; type Props = { /** - * Id of the poll + * Id of the poll. */ pollId: string, } -const PollItem = React.forwardRef(({ pollId }, ref) => { +const PollItem = React.forwardRef(({ pollId }: Props, ref) => { const showResults = useSelector(shouldShowResults(pollId)); return ( diff --git a/react/features/polls/components/web/PollsList.js b/react/features/polls/components/web/PollsList.js index dad632718..536d3e8cd 100644 --- a/react/features/polls/components/web/PollsList.js +++ b/react/features/polls/components/web/PollsList.js @@ -27,21 +27,21 @@ const PollsList = () => { const listPolls = Object.keys(polls); return ( - <> - {listPolls.length === 0 - ?
- - {t('polls.results.empty')} -
- : listPolls.map((id, index) => ( - - ))} - + <> + {listPolls.length === 0 + ?
+ + {t('polls.results.empty')} +
+ : listPolls.map((id, index) => ( + + ))} + ); }; diff --git a/react/features/polls/types.js b/react/features/polls/types.js index 14500f345..65f36e1cb 100644 --- a/react/features/polls/types.js +++ b/react/features/polls/types.js @@ -3,22 +3,22 @@ export type Answer = { /** - * ID of the voter for this answer + * ID of the voter for this answer. */ voterId: string, /** - * Name of the voter + * Name of the voter. */ voterName: string, /** - * ID of the parent Poll of this answer + * ID of the parent Poll of this answer. */ pollId: string, /** - * An array of boolean: true if the answer was chosen by the responder, else false + * An array of boolean: true if the answer was chosen by the responder, else false. */ answers: Array }; @@ -31,36 +31,36 @@ export type Poll = { changingVote: boolean, /** - * ID of the sender of this poll + * ID of the sender of this poll. */ senderId: string, /** * Name of the sender of this poll - * Store poll sender name in case they exit the call + * Store poll sender name in case they exit the call. */ senderName: string, /** - * Whether the results should be shown instead of the answer form + * Whether the results should be shown instead of the answer form. */ showResults: boolean, /** * The last sent votes for this poll, or null if voting was skipped - * Note: This is reset when voting/skipping, not when clicking "Change vote" + * Note: This is reset when voting/skipping, not when clicking "Change vote". */ lastVote: Array | null, /** - * The question asked by this poll + * The question asked by this poll. */ question: string, /** * An array of answers: - * the name of the answer name and a map of ids and names of voters voting for this option + * the name of the answer name and a map of ids and names of voters voting for this option. */ answers: Array<{ name: string, voters: Map }>, }; diff --git a/react/features/prejoin/components/PrejoinApp.js b/react/features/prejoin/components/PrejoinApp.js index afdb94573..9181b4f3d 100644 --- a/react/features/prejoin/components/PrejoinApp.js +++ b/react/features/prejoin/components/PrejoinApp.js @@ -25,7 +25,7 @@ type Props = { /** * Wrapper application for prejoin. * - * @extends BaseApp + * @augments BaseApp */ export default class PrejoinApp extends BaseApp { _init: Promise<*>; diff --git a/react/features/prejoin/components/dialogs/DialInDialog.js b/react/features/prejoin/components/dialogs/DialInDialog.js index 9c54efceb..a0e5e6ef5 100644 --- a/react/features/prejoin/components/dialogs/DialInDialog.js +++ b/react/features/prejoin/components/dialogs/DialInDialog.js @@ -64,7 +64,7 @@ function DialinDialog(props: Props) { t } = props; const flagClassName = `prejoin-dialog-flag iti-flag ${getCountryCodeFromPhone( - number, + number )}`; return ( diff --git a/react/features/prejoin/components/dialogs/JoinByPhoneDialog.js b/react/features/prejoin/components/dialogs/JoinByPhoneDialog.js index 46d1db43b..6e7b82ceb 100644 --- a/react/features/prejoin/components/dialogs/JoinByPhoneDialog.js +++ b/react/features/prejoin/components/dialogs/JoinByPhoneDialog.js @@ -42,7 +42,7 @@ type Props = { dialOutNumber: string, /** - * Fetches conference dial in numbers & conference id + * Fetches conference dial in numbers & conference id. */ fetchConferenceDetails: Function, @@ -70,7 +70,7 @@ type Props = { type State = { /** - * The dialout call is ongoing, 'CallingDialog' is shown; + * The dialout call is ongoing, 'CallingDialog' is shown;. */ isCalling: boolean, diff --git a/react/features/prejoin/reducer.js b/react/features/prejoin/reducer.js index 73af3f5a4..c8891d166 100644 --- a/react/features/prejoin/reducer.js +++ b/react/features/prejoin/reducer.js @@ -49,7 +49,7 @@ PersistenceRegistry.register(STORE_NAME, { }, DEFAULT_STATE); /** - * Listen for actions that mutate the prejoin state + * Listen for actions that mutate the prejoin state. */ ReducerRegistry.register( 'features/prejoin', (state = DEFAULT_STATE, action) => { @@ -142,7 +142,7 @@ ReducerRegistry.register( default: return state; } - }, + } ); /** diff --git a/react/features/presence-status/components/PresenceLabel.js b/react/features/presence-status/components/PresenceLabel.js index f480ea52e..3ffed94ae 100644 --- a/react/features/presence-status/components/PresenceLabel.js +++ b/react/features/presence-status/components/PresenceLabel.js @@ -51,7 +51,7 @@ type Props = { * React {@code Component} for displaying the current presence status of a * participant. * - * @extends Component + * @augments Component */ class PresenceLabel extends Component { /** diff --git a/react/features/reactions/components/native/RaiseHandButton.js b/react/features/reactions/components/native/RaiseHandButton.js index 085d7b276..f8c618cac 100644 --- a/react/features/reactions/components/native/RaiseHandButton.js +++ b/react/features/reactions/components/native/RaiseHandButton.js @@ -41,7 +41,7 @@ type Props = AbstractButtonProps & { dispatch: Dispatch, /** - * Used for translation + * Used for translation. */ t: Function, diff --git a/react/features/reactions/components/native/ReactionButton.js b/react/features/reactions/components/native/ReactionButton.js index 3125fe367..1e39afe4f 100644 --- a/react/features/reactions/components/native/ReactionButton.js +++ b/react/features/reactions/components/native/ReactionButton.js @@ -1,6 +1,6 @@ // @flow -import React from 'react'; +import React, { useCallback } from 'react'; import { Text, TouchableHighlight } from 'react-native'; import { useDispatch } from 'react-redux'; @@ -51,7 +51,7 @@ type Props = { styles: ReactionStyles, /** - * The reaction to be sent + * The reaction to be sent. */ reaction: string, @@ -72,16 +72,10 @@ function ReactionButton({ t }: Props) { const dispatch = useDispatch(); - - /** - * Handles clicking / pressing the button. - * - * @returns {void} - */ - function _onClick() { + const _onClick = useCallback(() => { dispatch(addReactionToBuffer(reaction)); sendAnalytics(createReactionMenuEvent(reaction)); - } + }, [ reaction ]); return ( { /** diff --git a/react/features/reactions/components/web/ReactionEmoji.js b/react/features/reactions/components/web/ReactionEmoji.js index deba0907d..a04c68f3e 100644 --- a/react/features/reactions/components/web/ReactionEmoji.js +++ b/react/features/reactions/components/web/ReactionEmoji.js @@ -92,5 +92,5 @@ const mapDispatchToProps = { export default connect( null, - mapDispatchToProps, + mapDispatchToProps )(ReactionEmoji); diff --git a/react/features/reactions/components/web/ReactionsMenu.js b/react/features/reactions/components/web/ReactionsMenu.js index e26946f57..7e5b45eaa 100644 --- a/react/features/reactions/components/web/ReactionsMenu.js +++ b/react/features/reactions/components/web/ReactionsMenu.js @@ -1,5 +1,7 @@ // @flow +/* eslint-disable react/jsx-no-bind */ + import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; @@ -22,7 +24,7 @@ import ReactionButton from './ReactionButton'; type Props = { /** - * Docks the toolbox + * Docks the toolbox. */ _dockToolbox: Function, @@ -230,5 +232,5 @@ function mapDispatchToProps(dispatch) { export default translate(connect( mapStateToProps, - mapDispatchToProps, + mapDispatchToProps )(ReactionsMenu)); diff --git a/react/features/reactions/components/web/ReactionsMenuButton.js b/react/features/reactions/components/web/ReactionsMenuButton.js index 569b4ca6e..e28f71b89 100644 --- a/react/features/reactions/components/web/ReactionsMenuButton.js +++ b/react/features/reactions/components/web/ReactionsMenuButton.js @@ -1,6 +1,6 @@ // @flow -import React from 'react'; +import React, { useCallback } from 'react'; import { isMobileBrowser } from '../../../base/environment/utils'; import { translate } from '../../../base/i18n'; @@ -78,15 +78,9 @@ function ReactionsMenuButton({ reactionsQueue, t }: Props) { - - /** - * Toggles the reactions menu visibility. - * - * @returns {void} - */ - function toggleReactionsMenu() { + const toggleReactionsMenu = useCallback(() => { dispatch(toggleReactionsMenuVisibility()); - } + }, [ dispatch ]); const raiseHandButton = ( getReactionsMenuVisibility(state)); const dispatch = useDispatch(); - - /** - * Toggles reactions menu visibility. - * - * @returns {void} - */ - function onClose() { + const onClose = useCallback(() => { dispatch(toggleReactionsMenuVisibility()); - } + }); return (
diff --git a/react/features/reactions/constants.js b/react/features/reactions/constants.js index 5f0c3fd19..eb8a41469 100644 --- a/react/features/reactions/constants.js +++ b/react/features/reactions/constants.js @@ -10,7 +10,7 @@ import { } from './sounds'; /** - * The payload name for the datachannel/endpoint reaction event + * The payload name for the datachannel/endpoint reaction event. */ export const ENDPOINT_REACTION_NAME = 'endpoint-reaction'; diff --git a/react/features/reactions/reducer.js b/react/features/reactions/reducer.js index 851c1ed39..4147ac171 100644 --- a/react/features/reactions/reducer.js +++ b/react/features/reactions/reducer.js @@ -47,14 +47,14 @@ function _getInitialState() { timeoutID: null, /** - * The array of reactions to animate + * The array of reactions to animate. * * @type {Array} */ queue: [], /** - * Whether or not the disable reaction sounds notification was shown + * Whether or not the disable reaction sounds notification was shown. */ notificationDisplayed: false }; diff --git a/react/features/recent-list/components/AbstractRecentList.js b/react/features/recent-list/components/AbstractRecentList.js index 9f7004efb..7ac435eca 100644 --- a/react/features/recent-list/components/AbstractRecentList.js +++ b/react/features/recent-list/components/AbstractRecentList.js @@ -18,7 +18,7 @@ import { import styles from './styles'; /** - * The type of the React {@code Component} props of {@link AbstractRecentList} + * The type of the React {@code Component} props of {@link AbstractRecentList}. */ type Props = { diff --git a/react/features/recent-list/components/RecentList.native.js b/react/features/recent-list/components/RecentList.native.js index 774d863cc..0f3a0ec78 100644 --- a/react/features/recent-list/components/RecentList.native.js +++ b/react/features/recent-list/components/RecentList.native.js @@ -14,7 +14,7 @@ import AbstractRecentList from './AbstractRecentList'; import RecentListItemMenu from './RecentListItemMenu.native'; /** - * The type of the React {@code Component} props of {@link RecentList} + * The type of the React {@code Component} props of {@link RecentList}. */ type Props = { diff --git a/react/features/recent-list/components/RecentList.web.js b/react/features/recent-list/components/RecentList.web.js index 1f68c4428..940f176ae 100644 --- a/react/features/recent-list/components/RecentList.web.js +++ b/react/features/recent-list/components/RecentList.web.js @@ -12,7 +12,7 @@ import { isRecentListEnabled, toDisplayableList } from '../functions'; import AbstractRecentList from './AbstractRecentList'; /** - * The type of the React {@code Component} props of {@link RecentList} + * The type of the React {@code Component} props of {@link RecentList}. */ type Props = { diff --git a/react/features/recent-list/functions.native.js b/react/features/recent-list/functions.native.js index 2ed1aa55c..c4c538c86 100644 --- a/react/features/recent-list/functions.native.js +++ b/react/features/recent-list/functions.native.js @@ -64,7 +64,7 @@ function _toDateString(itemDate, t) { const date = new Date(itemDate); const dateInMs = date.getTime(); const now = new Date(); - const todayInMs = (new Date()).setHours(0, 0, 0, 0); + const todayInMs = new Date().setHours(0, 0, 0, 0); const yesterdayInMs = todayInMs - 86400000; // 1 day = 86400000ms if (dateInMs >= todayInMs) { diff --git a/react/features/recent-list/middleware.js b/react/features/recent-list/middleware.js index e0bc5c98d..53e509d94 100644 --- a/react/features/recent-list/middleware.js +++ b/react/features/recent-list/middleware.js @@ -95,12 +95,12 @@ function _conferenceWillLeave({ dispatch, getState }, next, action) { * FIXME: * It is better to use action.conference[JITSI_CONFERENCE_URL_KEY] * in order to make sure we get the url the conference is leaving - * from (i.e. the room we are leaving from) because if the order of events + * from (i.e. The room we are leaving from) because if the order of events * is different, we cannot be guaranteed that the location URL in base - * connection is the url we are leaving from... not the one we are going to + * connection is the url we are leaving from... Not the one we are going to * (the latter happens on mobile -- if we use the web implementation); * however, the conference object on web does not have - * JITSI_CONFERENCE_URL_KEY so we cannot call it and must use the other way + * JITSI_CONFERENCE_URL_KEY so we cannot call it and must use the other way. */ if (typeof APP === 'undefined') { locationURL = action.conference[JITSI_CONFERENCE_URL_KEY]; diff --git a/react/features/recording/components/AbstractRecordingLabel.js b/react/features/recording/components/AbstractRecordingLabel.js index 4c710ef29..d3e1da6a6 100644 --- a/react/features/recording/components/AbstractRecordingLabel.js +++ b/react/features/recording/components/AbstractRecordingLabel.js @@ -109,7 +109,7 @@ export default class AbstractRecordingLabel ? this._renderLabel() : null; } - _getLabelKey: () => ?string + _getLabelKey: () => ?string; /** * Returns the label key that this indicator should render. @@ -135,7 +135,7 @@ export default class AbstractRecordingLabel * @protected * @returns {React$Element} */ - _renderLabel: () => React$Element<*> + _renderLabel: () => React$Element<*>; /** * Updates the stale status of the label on a prop change. A label is stale diff --git a/react/features/recording/components/LiveStream/AbstractStopLiveStreamDialog.js b/react/features/recording/components/LiveStream/AbstractStopLiveStreamDialog.js index dd0c186f5..46eca5002 100644 --- a/react/features/recording/components/LiveStream/AbstractStopLiveStreamDialog.js +++ b/react/features/recording/components/LiveStream/AbstractStopLiveStreamDialog.js @@ -35,7 +35,7 @@ type Props = { * A React Component for confirming the participant wishes to stop the currently * active live stream of the conference. * - * @extends Component + * @augments Component */ export default class AbstractStopLiveStreamDialog extends Component { /** diff --git a/react/features/recording/components/LiveStream/AbstractStreamKeyForm.js b/react/features/recording/components/LiveStream/AbstractStreamKeyForm.js index 944f1b1dd..636e4a22a 100644 --- a/react/features/recording/components/LiveStream/AbstractStreamKeyForm.js +++ b/react/features/recording/components/LiveStream/AbstractStreamKeyForm.js @@ -9,7 +9,7 @@ declare var interfaceConfig: Object; * The live streaming help link to display. On web it comes from * interfaceConfig, but we don't have that on mobile. * - * FIXME: This is in props now to prepare for the Redux-based interfaceConfig + * FIXME: This is in props now to prepare for the Redux-based interfaceConfig. */ const LIVE_STREAMING_HELP_LINK = 'https://jitsi.org/live'; @@ -50,7 +50,7 @@ type State = { * An abstract React Component for entering a key for starting a YouTube live * stream. * - * @extends Component + * @augments Component */ export default class AbstractStreamKeyForm extends Component { @@ -104,7 +104,7 @@ export default class AbstractStreamKeyForm this._debouncedUpdateValidationErrorVisibility.cancel(); } - _onInputChange: Object => void + _onInputChange: Object => void; /** * Callback invoked when the value of the input field has updated through diff --git a/react/features/recording/components/LiveStream/native/GoogleSigninForm.js b/react/features/recording/components/LiveStream/native/GoogleSigninForm.js index 50aca6c72..31fb2c813 100644 --- a/react/features/recording/components/LiveStream/native/GoogleSigninForm.js +++ b/react/features/recording/components/LiveStream/native/GoogleSigninForm.js @@ -58,7 +58,7 @@ type Props = { /** * Class to render a google sign in form, or a google stream picker dialog. * - * @extends Component + * @augments Component */ class GoogleSigninForm extends Component { /** @@ -142,7 +142,7 @@ class GoogleSigninForm extends Component { ); } - _logGoogleError: Object => void + _logGoogleError: Object => void; /** * A helper function to log developer related errors. @@ -157,7 +157,7 @@ class GoogleSigninForm extends Component { logger.error('Google API error. Possible cause: bad config.', error); } - _onGoogleButtonPress: () => void + _onGoogleButtonPress: () => void; /** * Callback to be invoked when the user presses the Google button, @@ -177,7 +177,7 @@ class GoogleSigninForm extends Component { } } - _onSignIn: () => void + _onSignIn: () => void; /** * Initiates a sign in if the user is not signed in yet. @@ -191,7 +191,7 @@ class GoogleSigninForm extends Component { }, this._logGoogleError); } - _onSignOut: () => void + _onSignOut: () => void; /** * Initiates a sign out if the user is signed in. diff --git a/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js b/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js index 810e35f3f..b45edd71c 100644 --- a/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js +++ b/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js @@ -67,7 +67,7 @@ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog { _onSubmit: () => boolean; - _onStreamKeyChange: string => void + _onStreamKeyChange: string => void; _onStreamKeyChangeNative: string => void; @@ -88,7 +88,7 @@ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog { this._onStreamKeyChange(streamKey); } - _onStreamKeyPick: string => void + _onStreamKeyPick: string => void; /** * Callback to be invoked when the user selects a stream from the picker. @@ -103,7 +103,7 @@ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog { }); } - _onUserChanged: Object => void + _onUserChanged: Object => void; /** * A callback to be invoked when an authenticated user changes, so diff --git a/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js b/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js index 19170434b..53386d277 100644 --- a/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js +++ b/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js @@ -13,7 +13,7 @@ import AbstractStopLiveStreamDialog, { * A React Component for confirming the participant wishes to stop the currently * active live stream of the conference. * - * @extends Component + * @augments Component */ class StopLiveStreamDialog extends AbstractStopLiveStreamDialog { @@ -31,7 +31,7 @@ class StopLiveStreamDialog extends AbstractStopLiveStreamDialog { ); } - _onSubmit: () => boolean + _onSubmit: () => boolean; } export default translate(connect(_mapStateToProps)(StopLiveStreamDialog)); diff --git a/react/features/recording/components/LiveStream/native/StreamKeyForm.js b/react/features/recording/components/LiveStream/native/StreamKeyForm.js index 29a73a28d..792a87b1d 100644 --- a/react/features/recording/components/LiveStream/native/StreamKeyForm.js +++ b/react/features/recording/components/LiveStream/native/StreamKeyForm.js @@ -25,7 +25,7 @@ import styles, { PLACEHOLDER_COLOR } from './styles'; /** * A React Component for entering a key for starting a YouTube live stream. * - * @extends Component + * @augments Component */ class StreamKeyForm extends AbstractStreamKeyForm { /** @@ -136,7 +136,7 @@ class StreamKeyForm extends AbstractStreamKeyForm { ); } - _onInputChange: Object => void + _onInputChange: Object => void; _onOpenGooglePrivacyPolicy: () => void; @@ -150,7 +150,7 @@ class StreamKeyForm extends AbstractStreamKeyForm { Linking.openURL(GOOGLE_PRIVACY_POLICY); } - _onOpenHelp: () => void + _onOpenHelp: () => void; /** * Opens the information link on how to manually locate a YouTube broadcast diff --git a/react/features/recording/components/LiveStream/native/StreamKeyPicker.js b/react/features/recording/components/LiveStream/native/StreamKeyPicker.js index ed07d9436..dd3cf6fde 100644 --- a/react/features/recording/components/LiveStream/native/StreamKeyPicker.js +++ b/react/features/recording/components/LiveStream/native/StreamKeyPicker.js @@ -155,7 +155,7 @@ class StreamKeyPicker extends Component { Linking.openURL(YOUTUBE_LIVE_DASHBOARD_URL); } - _onStreamPick: string => Function + _onStreamPick: string => Function; /** * Callback to be invoked when the user picks a stream from the list. diff --git a/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js b/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js index b46a02590..e9c27060b 100644 --- a/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js +++ b/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js @@ -37,7 +37,7 @@ type Props = AbstractProps & { * A React Component for requesting a YouTube stream key to use for live * streaming of the current conference. * - * @extends Component + * @augments Component */ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog { @@ -341,7 +341,7 @@ class StartLiveStreamDialog ); } - _setStateIfMounted: Object => void + _setStateIfMounted: Object => void; /** * Returns the error message to display for the current error state. diff --git a/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js b/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js index 0f4feb54d..4b5645738 100644 --- a/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js +++ b/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js @@ -13,7 +13,7 @@ import AbstractStopLiveStreamDialog, { * A React Component for confirming the participant wishes to stop the currently * active live stream of the conference. * - * @extends Component + * @augments Component */ class StopLiveStreamDialog extends AbstractStopLiveStreamDialog { diff --git a/react/features/recording/components/LiveStream/web/StreamKeyForm.js b/react/features/recording/components/LiveStream/web/StreamKeyForm.js index 61921bb02..61b79cff9 100644 --- a/react/features/recording/components/LiveStream/web/StreamKeyForm.js +++ b/react/features/recording/components/LiveStream/web/StreamKeyForm.js @@ -12,7 +12,7 @@ import { GOOGLE_PRIVACY_POLICY, YOUTUBE_TERMS_URL } from '../constants'; /** * A React Component for entering a key for starting a YouTube live stream. * - * @extends Component + * @augments Component */ class StreamKeyForm extends AbstractStreamKeyForm { @@ -94,9 +94,9 @@ class StreamKeyForm extends AbstractStreamKeyForm { ); } - _onInputChange: Object => void + _onInputChange: Object => void; - _onOpenHelp: () => void + _onOpenHelp: () => void; /** * Opens a new tab with information on how to manually locate a YouTube @@ -109,7 +109,7 @@ class StreamKeyForm extends AbstractStreamKeyForm { window.open(this.helpURL, '_blank', 'noopener'); } - _onOpenHelpKeyPress: () => void + _onOpenHelpKeyPress: () => void; /** * Opens a new tab with information on how to manually locate a YouTube diff --git a/react/features/recording/components/LiveStream/web/StreamKeyPicker.js b/react/features/recording/components/LiveStream/web/StreamKeyPicker.js index 9d98c1be8..1c4ed8ff1 100644 --- a/react/features/recording/components/LiveStream/web/StreamKeyPicker.js +++ b/react/features/recording/components/LiveStream/web/StreamKeyPicker.js @@ -54,7 +54,7 @@ type State = { /** * A dropdown to select a YouTube broadcast. * - * @extends Component + * @augments Component */ class StreamKeyPicker extends PureComponent { /** diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialog.js b/react/features/recording/components/Recording/AbstractStartRecordingDialog.js index feb2ec36f..d93976bbf 100644 --- a/react/features/recording/components/Recording/AbstractStartRecordingDialog.js +++ b/react/features/recording/components/Recording/AbstractStartRecordingDialog.js @@ -42,7 +42,7 @@ type Props = { _fileRecordingsServiceEnabled: boolean, /** - * Whether to show the possibility to share file recording with other people (e.g. meeting participants), based on + * Whether to show the possibility to share file recording with other people (e.g. Meeting participants), based on * the actual implementation on the backend. */ _fileRecordingsServiceSharingEnabled: boolean, @@ -333,7 +333,7 @@ class AbstractStartRecordingDialog extends Component { * @protected * @returns {React$Component} */ - _renderDialogContent: () => React$Component<*> + _renderDialogContent: () => React$Component<*>; } /** diff --git a/react/features/recording/components/Recording/AbstractStopRecordingDialog.js b/react/features/recording/components/Recording/AbstractStopRecordingDialog.js index bc74a7407..95ad56c09 100644 --- a/react/features/recording/components/Recording/AbstractStopRecordingDialog.js +++ b/react/features/recording/components/Recording/AbstractStopRecordingDialog.js @@ -35,7 +35,7 @@ export type Props = { * Abstract React Component for getting confirmation to stop a file recording * session in progress. * - * @extends Component + * @augments Component */ export default class AbstractStopRecordingDialog extends Component

{ diff --git a/react/features/recording/components/Recording/StartRecordingDialogContent.js b/react/features/recording/components/Recording/StartRecordingDialogContent.js index 1db16ae5c..a4e20686f 100644 --- a/react/features/recording/components/Recording/StartRecordingDialogContent.js +++ b/react/features/recording/components/Recording/StartRecordingDialogContent.js @@ -52,7 +52,7 @@ type Props = { fileRecordingsServiceEnabled: boolean, /** - * Whether to show the possibility to share file recording with other people (e.g. meeting participants), based on + * Whether to show the possibility to share file recording with other people (e.g. Meeting participants), based on * the actual implementation on the backend. */ fileRecordingsServiceSharingEnabled: boolean, @@ -117,7 +117,7 @@ type Props = { /** * React Component for getting confirmation to start a file recording session. * - * @extends Component + * @augments Component */ class StartRecordingDialogContent extends Component { /** diff --git a/react/features/recording/components/Recording/native/StartRecordingDialog.js b/react/features/recording/components/Recording/native/StartRecordingDialog.js index 5ccf1d5e2..16d40748f 100644 --- a/react/features/recording/components/Recording/native/StartRecordingDialog.js +++ b/react/features/recording/components/Recording/native/StartRecordingDialog.js @@ -14,7 +14,7 @@ import StartRecordingDialogContent from '../StartRecordingDialogContent'; * React Component for getting confirmation to start a file recording session in * progress. * - * @extends Component + * @augments Component */ class StartRecordingDialog extends AbstractStartRecordingDialog { /** @@ -66,7 +66,7 @@ class StartRecordingDialog extends AbstractStartRecordingDialog { } _areIntegrationsEnabled: () => boolean; - _onSubmit: () => boolean + _onSubmit: () => boolean; _onSelectedRecordingServiceChanged: (string) => void; _onSharingSettingChanged: () => void; } diff --git a/react/features/recording/components/Recording/native/StopRecordingDialog.js b/react/features/recording/components/Recording/native/StopRecordingDialog.js index a66581bd8..fcbb82b2f 100644 --- a/react/features/recording/components/Recording/native/StopRecordingDialog.js +++ b/react/features/recording/components/Recording/native/StopRecordingDialog.js @@ -14,7 +14,7 @@ import AbstractStopRecordingDialog, { * React Component for getting confirmation to stop a file recording session in * progress. * - * @extends Component + * @augments Component */ class StopRecordingDialog extends AbstractStopRecordingDialog { @@ -31,7 +31,7 @@ class StopRecordingDialog extends AbstractStopRecordingDialog { ); } - _onSubmit: () => boolean + _onSubmit: () => boolean; } export default translate(connect(_mapStateToProps)(StopRecordingDialog)); diff --git a/react/features/recording/components/Recording/web/StartRecordingDialog.js b/react/features/recording/components/Recording/web/StartRecordingDialog.js index b762a6e6a..a1e65d504 100644 --- a/react/features/recording/components/Recording/web/StartRecordingDialog.js +++ b/react/features/recording/components/Recording/web/StartRecordingDialog.js @@ -14,7 +14,7 @@ import StartRecordingDialogContent from '../StartRecordingDialogContent'; * React Component for getting confirmation to start a file recording session in * progress. * - * @extends Component + * @augments Component */ class StartRecordingDialog extends AbstractStartRecordingDialog { /** diff --git a/react/features/recording/components/Recording/web/StopRecordingDialog.js b/react/features/recording/components/Recording/web/StopRecordingDialog.js index 20a3647ff..67ffa7dd0 100644 --- a/react/features/recording/components/Recording/web/StopRecordingDialog.js +++ b/react/features/recording/components/Recording/web/StopRecordingDialog.js @@ -14,7 +14,7 @@ import AbstractStopRecordingDialog, { * React Component for getting confirmation to stop a file recording session in * progress. * - * @extends Component + * @augments Component */ class StopRecordingDialog extends AbstractStopRecordingDialog { /** @@ -37,7 +37,7 @@ class StopRecordingDialog extends AbstractStopRecordingDialog { ); } - _onSubmit: () => boolean + _onSubmit: () => boolean; } export default translate(connect(_mapStateToProps)(StopRecordingDialog)); diff --git a/react/features/recording/components/native/RecordingLabel.js b/react/features/recording/components/native/RecordingLabel.js index 1c9f38a5f..90d2bf250 100644 --- a/react/features/recording/components/native/RecordingLabel.js +++ b/react/features/recording/components/native/RecordingLabel.js @@ -16,7 +16,7 @@ import styles from './styles'; * Implements a React {@link Component} which displays the current state of * conference recording. * - * @extends {Component} + * @augments {Component} */ class RecordingLabel extends AbstractRecordingLabel { @@ -59,7 +59,7 @@ class RecordingLabel extends AbstractRecordingLabel { ); } - _getLabelKey: () => ?string + _getLabelKey: () => ?string; } export default translate(connect(_mapStateToProps)(RecordingLabel)); diff --git a/react/features/recording/components/web/RecordingLabel.js b/react/features/recording/components/web/RecordingLabel.js index a44903ef6..db78959a0 100644 --- a/react/features/recording/components/web/RecordingLabel.js +++ b/react/features/recording/components/web/RecordingLabel.js @@ -33,7 +33,7 @@ const styles = theme => { * Implements a React {@link Component} which displays the current state of * conference recording. * - * @extends {Component} + * @augments {Component} */ class RecordingLabel extends AbstractRecordingLabel { /** @@ -59,7 +59,7 @@ class RecordingLabel extends AbstractRecordingLabel { ); } - _getLabelKey: () => ?string + _getLabelKey: () => ?string; } export default withStyles(styles)(translate(connect(_mapStateToProps)(RecordingLabel))); diff --git a/react/features/remote-control/constants.js b/react/features/remote-control/constants.js index 02fca7e4a..c083dae3f 100644 --- a/react/features/remote-control/constants.js +++ b/react/features/remote-control/constants.js @@ -10,13 +10,14 @@ export const DISCO_REMOTE_CONTROL_FEATURE = 'http://jitsi.org/meet/remotecontrol /** * The remote control event. + * * @typedef {object} RemoteControlEvent - * @property {EVENTS | REQUESTS} type - the type of the message - * @property {number} x - avaibale for type === mousemove only. The new x - * coordinate of the mouse + * @property {EVENTS | REQUESTS} type - The type of the message. + * @property {number} x - Avaibale for type === mousemove only. The new x + * coordinate of the mouse. * @property {number} y - For mousemove type - the new y * coordinate of the mouse and for mousescroll - represents the vertical - * scrolling diff value + * scrolling diff value. * @property {number} button - 1(left), 2(middle) or 3 (right). Supported by * mousedown, mouseup and mousedblclick types. * @property {KEYS} key - Represents the key related to the event. Supported by @@ -39,6 +40,7 @@ export const DISCO_REMOTE_CONTROL_FEATURE = 'http://jitsi.org/meet/remotecontrol /** * Types of remote-control events. + * * @readonly * @enum {string} */ @@ -58,6 +60,7 @@ export const EVENTS = { /** * Types of remote-control requests. + * * @readonly * @enum {string} */ @@ -67,6 +70,7 @@ export const REQUESTS = { /** * Actions for the remote control permission events. + * * @readonly * @enum {string} */ diff --git a/react/features/remote-control/keycodes.js b/react/features/remote-control/keycodes.js index 1d657d750..ad4716d9d 100644 --- a/react/features/remote-control/keycodes.js +++ b/react/features/remote-control/keycodes.js @@ -1,6 +1,7 @@ /** * Enumerates the supported keys. * NOTE: The maps represents physical keys on the keyboard, not chars. + * * @readonly * @enum {string} */ @@ -71,7 +72,7 @@ export const KEYS = { /** * Mapping between the key codes and keys defined in KEYS. * The mappings are based on - * https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#Specifications + * https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#Specifications. */ /* eslint-enable max-len */ const keyCodeToKey = { @@ -141,14 +142,14 @@ const keyCodeToKey = { }; /** - * Generate codes for digit keys (0-9) + * Generate codes for digit keys (0-9). */ for (let i = 0; i < 10; i++) { keyCodeToKey[i + 48] = `${i}`; } /** - * Generate codes for letter keys (a-z) + * Generate codes for letter keys (a-z). */ for (let i = 0; i < 26; i++) { const keyCode = i + 65; diff --git a/react/features/remote-control/reducer.js b/react/features/remote-control/reducer.js index 60a2fe27e..cd48e62a3 100644 --- a/react/features/remote-control/reducer.js +++ b/react/features/remote-control/reducer.js @@ -64,5 +64,5 @@ ReducerRegistry.register( } return state; - }, + } ); diff --git a/react/features/screen-share/components/ShareScreenWarningDialog.js b/react/features/screen-share/components/ShareScreenWarningDialog.js index 12ff5e700..86e0d3fb3 100644 --- a/react/features/screen-share/components/ShareScreenWarningDialog.js +++ b/react/features/screen-share/components/ShareScreenWarningDialog.js @@ -60,7 +60,8 @@ class ShareScreenWarningDialog extends Component { /** * Implements {@Component#render}. - *§ + *§. + * * @inheritdoc */ render() { diff --git a/react/features/screenshot-capture/constants.js b/react/features/screenshot-capture/constants.js index 9db81c077..5daa1ffea 100644 --- a/react/features/screenshot-capture/constants.js +++ b/react/features/screenshot-capture/constants.js @@ -12,13 +12,13 @@ export const POLL_INTERVAL = 2000; /** * SET_INTERVAL constant is used to set interval and it is set in - * the id property of the request.data property. timeMs property must - * also be set. request.data example: + * the id property of the request.data property. TimeMs property must + * also be set. Request.data example: * * { * id: SET_INTERVAL, * timeMs: 33 - * } + * }. */ export const SET_INTERVAL = 1; @@ -28,7 +28,7 @@ export const SET_INTERVAL = 1; * * { * id: CLEAR_INTERVAL - * } + * }. */ export const CLEAR_INTERVAL = 2; @@ -37,6 +37,6 @@ export const CLEAR_INTERVAL = 2; * * { * id: INTERVAL_TIMEOUT - * } + * }. */ export const INTERVAL_TIMEOUT = 3; diff --git a/react/features/security/components/security-dialog/web/PasswordForm.js b/react/features/security/components/security-dialog/web/PasswordForm.js index b02b9dedc..475461679 100644 --- a/react/features/security/components/security-dialog/web/PasswordForm.js +++ b/react/features/security/components/security-dialog/web/PasswordForm.js @@ -57,7 +57,7 @@ type State = { /** * React {@code Component} for displaying and editing the conference password. * - * @extends Component + * @augments Component */ class PasswordForm extends Component { /** diff --git a/react/features/security/components/security-dialog/web/PasswordSection.js b/react/features/security/components/security-dialog/web/PasswordSection.js index a77ac2ad4..4b4c05179 100644 --- a/react/features/security/components/security-dialog/web/PasswordSection.js +++ b/react/features/security/components/security-dialog/web/PasswordSection.js @@ -1,6 +1,7 @@ -/* eslint-disable react/no-multi-comp */ // @flow +/* eslint-disable react/no-multi-comp, react/jsx-no-bind */ + import React, { useRef } from 'react'; import { translate } from '../../../../base/i18n'; diff --git a/react/features/settings/components/native/FormRow.js b/react/features/settings/components/native/FormRow.js index fb7a0c500..a91c4d5d5 100644 --- a/react/features/settings/components/native/FormRow.js +++ b/react/features/settings/components/native/FormRow.js @@ -8,7 +8,7 @@ import { translate } from '../../../base/i18n'; import styles, { ANDROID_UNDERLINE_COLOR, PLACEHOLDER_COLOR } from './styles'; /** - * The type of the React {@code Component} props of {@link FormRow} + * The type of the React {@code Component} props of {@link FormRow}. */ type Props = { diff --git a/react/features/settings/components/native/FormSectionAccordion.js b/react/features/settings/components/native/FormSectionAccordion.js index 0fc2d7e4a..7997196c5 100644 --- a/react/features/settings/components/native/FormSectionAccordion.js +++ b/react/features/settings/components/native/FormSectionAccordion.js @@ -1,6 +1,6 @@ // @flow -import React, { useState } from 'react'; +import React, { useCallback, useState } from 'react'; import { List } from 'react-native-paper'; import { translate } from '../../../base/i18n'; @@ -9,7 +9,7 @@ import { Icon, IconArrowDown, IconArrowUp } from '../../../base/icons'; import styles from './styles'; /** - * The type of the React {@code Component} props of {@link FormSectionAccordion} + * The type of the React {@code Component} props of {@link FormSectionAccordion}. */ type Props = { @@ -51,15 +51,9 @@ type Props = { */ function FormSectionAccordion({ accordion, children, expandable, label, style, t }: Props) { const [ expandSection, setExpandSection ] = useState(false); - - /** - * Press handler for expanding form section. - * - * @returns {void} - */ - function onPress() { + const onPress = useCallback(() => { setExpandSection(!expandSection); - } + }); return ( { _urlField: Object; diff --git a/react/features/settings/components/web/CalendarTab.js b/react/features/settings/components/web/CalendarTab.js index 8451fbb19..2c7405775 100644 --- a/react/features/settings/components/web/CalendarTab.js +++ b/react/features/settings/components/web/CalendarTab.js @@ -74,7 +74,7 @@ type State = { /** * React {@code Component} for modifying calendar integration. * - * @extends Component + * @augments Component */ class CalendarTab extends Component { /** diff --git a/react/features/settings/components/web/MoreTab.js b/react/features/settings/components/web/MoreTab.js index 3f037285e..25f867222 100644 --- a/react/features/settings/components/web/MoreTab.js +++ b/react/features/settings/components/web/MoreTab.js @@ -107,7 +107,7 @@ type State = { /** * React {@code Component} for modifying language and moderator settings. * - * @extends Component + * @augments Component */ class MoreTab extends AbstractDialogTab { /** diff --git a/react/features/settings/components/web/ProfileTab.js b/react/features/settings/components/web/ProfileTab.js index 681d8d67e..0af6ec5ad 100644 --- a/react/features/settings/components/web/ProfileTab.js +++ b/react/features/settings/components/web/ProfileTab.js @@ -56,7 +56,7 @@ export type Props = { /** * React {@code Component} for modifying the local user's profile. * - * @extends Component + * @augments Component */ class ProfileTab extends AbstractDialogTab { static defaultProps = { diff --git a/react/features/settings/components/web/SettingsDialog.js b/react/features/settings/components/web/SettingsDialog.js index 1126da3e3..cd68a0779 100644 --- a/react/features/settings/components/web/SettingsDialog.js +++ b/react/features/settings/components/web/SettingsDialog.js @@ -51,7 +51,7 @@ type Props = { * and conference-wide (moderator) settings. This version is connected to * redux to get the current settings. * - * @extends Component + * @augments Component */ class SettingsDialog extends Component { /** diff --git a/react/features/settings/components/web/SoundsTab.js b/react/features/settings/components/web/SoundsTab.js index 520a5b77d..39a0184d4 100644 --- a/react/features/settings/components/web/SoundsTab.js +++ b/react/features/settings/components/web/SoundsTab.js @@ -54,7 +54,7 @@ export type Props = { /** * React {@code Component} for modifying the local user's sound settings. * - * @extends Component + * @augments Component */ class SoundsTab extends AbstractDialogTab { /** diff --git a/react/features/settings/components/web/audio/AudioSettingsContent.js b/react/features/settings/components/web/audio/AudioSettingsContent.js index 65cb4ac1b..c066e84cb 100644 --- a/react/features/settings/components/web/audio/AudioSettingsContent.js +++ b/react/features/settings/components/web/audio/AudioSettingsContent.js @@ -81,7 +81,7 @@ type State = { * Implements a React {@link Component} which displays a list of all * the audio input & output devices to choose from. * - * @extends Component + * @augments Component */ class AudioSettingsContent extends Component { _componentWasUnmounted: boolean; @@ -313,7 +313,7 @@ class AudioSettingsContent extends Component { role = 'radiogroup' tabIndex = '-1'> {this.state.audioTracks.map((data, i) => - this._renderMicrophoneEntry(data, i, this.state.audioTracks.length, t), + this._renderMicrophoneEntry(data, i, this.state.audioTracks.length, t) )}

@@ -330,7 +330,7 @@ class AudioSettingsContent extends Component { role = 'radiogroup' tabIndex = '-1'> { outputDevices.map((data, i) => - this._renderSpeakerEntry(data, i, outputDevices.length, t), + this._renderSpeakerEntry(data, i, outputDevices.length, t) )}
) diff --git a/react/features/settings/components/web/audio/MicrophoneEntry.js b/react/features/settings/components/web/audio/MicrophoneEntry.js index 295ab8a5d..8ec9c6a15 100644 --- a/react/features/settings/components/web/audio/MicrophoneEntry.js +++ b/react/features/settings/components/web/audio/MicrophoneEntry.js @@ -32,7 +32,7 @@ type Props = AudioSettingsEntryProps & { jitsiTrack: Object, /** - * The length of the microphone list + * The length of the microphone list. */ length: number, diff --git a/react/features/settings/components/web/audio/SpeakerEntry.js b/react/features/settings/components/web/audio/SpeakerEntry.js index 21c0eb2d1..bc5bbb596 100644 --- a/react/features/settings/components/web/audio/SpeakerEntry.js +++ b/react/features/settings/components/web/audio/SpeakerEntry.js @@ -51,7 +51,7 @@ type Props = { * Implements a React {@link Component} which displays an audio * output settings entry. The user can click and play a test sound. * - * @extends Component + * @augments Component */ export default class SpeakerEntry extends Component { /** diff --git a/react/features/settings/components/web/audio/TestButton.js b/react/features/settings/components/web/audio/TestButton.js index 912b7d5d1..3a2f341cc 100644 --- a/react/features/settings/components/web/audio/TestButton.js +++ b/react/features/settings/components/web/audio/TestButton.js @@ -10,7 +10,7 @@ type Props = { onClick: Function, /** - * keypress handler for the button. + * Keypress handler for the button. */ onKeyPress: Function, }; diff --git a/react/features/settings/components/web/video/VideoSettingsContent.js b/react/features/settings/components/web/video/VideoSettingsContent.js index 6adc597b4..ca62e9c40 100644 --- a/react/features/settings/components/web/video/VideoSettingsContent.js +++ b/react/features/settings/components/web/video/VideoSettingsContent.js @@ -56,7 +56,7 @@ type State = { * Implements a React {@link Component} which displays a list of video * previews to choose from. * - * @extends Component + * @augments Component */ class VideoSettingsContent extends Component { _componentWasUnmounted: boolean; diff --git a/react/features/shared-video/actions.any.js b/react/features/shared-video/actions.any.js index 58ee71c87..3e967243d 100644 --- a/react/features/shared-video/actions.any.js +++ b/react/features/shared-video/actions.any.js @@ -21,13 +21,12 @@ export function resetSharedVideoStatus() { /** * Updates the current known status of the shared video. * - * @param {{ - * muted: boolean, - * ownerId: string, - * status: string, - * time: number, - * videoUrl: string - * }} options - The options. + * @param {Object} options - The options. + * @param {boolean} options.muted - Is video muted. + * @param {boolean} options.ownerId - Participant ID of the owner. + * @param {boolean} options.status - Sharing status. + * @param {boolean} options.time - Playback timestamp. + * @param {boolean} options.videoUrl - URL of the shared video. * * @returns {{ * type: SET_SHARED_VIDEO_STATUS, diff --git a/react/features/shared-video/components/native/AbstractVideoManager.js b/react/features/shared-video/components/native/AbstractVideoManager.js index 07f12f36a..3bd121e85 100644 --- a/react/features/shared-video/components/native/AbstractVideoManager.js +++ b/react/features/shared-video/components/native/AbstractVideoManager.js @@ -27,7 +27,7 @@ function shouldSeekToPosition(newTime, previousTime) { export type Props = { /** - * The current coference + * The current coference. */ _conference: Object, @@ -39,12 +39,12 @@ export type Props = { _isOwner: boolean, /** - * The shared video owner id + * The shared video owner id. */ _ownerId: string, /** - * The shared video status + * The shared video status. */ _status: string, @@ -55,7 +55,7 @@ export type Props = { _time: number, /** - * The video url + * The video url. */ _videoUrl: string, @@ -65,17 +65,17 @@ export type Props = { dispatch: Function, /** - * The player's height + * The player's height. */ height: number, /** - * The video id + * The video id. */ videoId: string, /** - * The player's width + * The player's width. */ width: number } @@ -206,33 +206,34 @@ class AbstractVideoManager extends PureComponent { } /** - * Seeks video to provided time + * Seeks video to provided time. + * * @param {number} time */ seek: (time: number) => void; /** - * Indicates the playback state of the video + * Indicates the playback state of the video. */ getPlaybackStatus: () => boolean; /** - * Plays video + * Plays video. */ play: () => void; /** - * Pauses video + * Pauses video. */ pause: () => void; /** - * Retrieves current time + * Retrieves current time. */ getTime: () => number; /** - * Disposes current video player + * Disposes current video player. */ dispose: () => void; } diff --git a/react/features/shared-video/components/native/SharedVideo.js b/react/features/shared-video/components/native/SharedVideo.js index b8f05630e..2cc1df5fc 100644 --- a/react/features/shared-video/components/native/SharedVideo.js +++ b/react/features/shared-video/components/native/SharedVideo.js @@ -34,26 +34,26 @@ type Props = { isWideScreen: boolean, /** - * The available player width + * The available player width. */ playerHeight: number, /** - * The available player width + * The available player width. */ playerWidth: number, /** - * The shared video url + * The shared video url. */ videoUrl: string, } -/** +/** . * Implements a React {@link Component} which represents the large video (a.k.a. - * the conference participant who is on the local stage) on Web/React. + * The conference participant who is on the local stage) on Web/React. * - * @extends Component + * @augments Component */ class SharedVideo extends Component { /** diff --git a/react/features/shared-video/components/native/SharedVideoButton.js b/react/features/shared-video/components/native/SharedVideoButton.js index 175b33468..dc65d262f 100644 --- a/react/features/shared-video/components/native/SharedVideoButton.js +++ b/react/features/shared-video/components/native/SharedVideoButton.js @@ -35,7 +35,7 @@ type Props = AbstractButtonProps & { /** * Component that renders a toolbar button for toggling the tile layout view. * - * @extends AbstractButton + * @augments AbstractButton */ class VideoShareButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.sharedvideo'; diff --git a/react/features/shared-video/components/web/AbstractVideoManager.js b/react/features/shared-video/components/web/AbstractVideoManager.js index a56ec2986..e86403048 100644 --- a/react/features/shared-video/components/web/AbstractVideoManager.js +++ b/react/features/shared-video/components/web/AbstractVideoManager.js @@ -35,27 +35,27 @@ function shouldSeekToPosition(newTime, previousTime) { export type Props = { /** - * The current coference + * The current coference. */ _conference: Object, /** - * Warning that indicates an incorect video url + * Warning that indicates an incorect video url. */ _displayWarning: Function, /** - * Docks the toolbox + * Docks the toolbox. */ _dockToolbox: Function, /** - * Action to stop video sharing + * Action to stop video sharing. */ _stopSharedVideo: Function, /** - * Indicates whether the local audio is muted + * Indicates whether the local audio is muted. */ _isLocalAudioMuted: boolean, @@ -67,27 +67,27 @@ export type Props = { _isOwner: boolean, /** - * Store flag for muted state + * Store flag for muted state. */ _muted: boolean, /** - * Mutes local audio track + * Mutes local audio track. */ _muteLocal: Function, /** - * The shared video owner id + * The shared video owner id. */ _ownerId: string, /** - * Updates the shared video status + * Updates the shared video status. */ _setSharedVideoStatus: Function, /** - * The shared video status + * The shared video status. */ _status: string, @@ -98,12 +98,12 @@ export type Props = { _time: number, /** - * The video url + * The video url. */ _videoUrl: string, /** - * The video id + * The video id. */ videoId: string } @@ -335,53 +335,54 @@ class AbstractVideoManager extends PureComponent { } /** - * Seeks video to provided time + * Seeks video to provided time. + * * @param {number} time */ seek: (time: number) => void; /** - * Indicates the playback state of the video + * Indicates the playback state of the video. */ getPlaybackStatus: () => boolean; /** - * Indicates whether the video is muted + * Indicates whether the video is muted. */ isMuted: () => boolean; /** - * Retrieves current volume + * Retrieves current volume. */ getVolume: () => number; /** - * Plays video + * Plays video. */ play: () => void; /** - * Pauses video + * Pauses video. */ pause: () => void; /** - * Mutes video + * Mutes video. */ mute: () => void; /** - * Unmutes video + * Unmutes video. */ unMute: () => void; /** - * Retrieves current time + * Retrieves current time. */ getTime: () => number; /** - * Disposes current video player + * Disposes current video player. */ dispose: () => void; } diff --git a/react/features/shared-video/components/web/SharedVideo.js b/react/features/shared-video/components/web/SharedVideo.js index 8375db0b9..6f3dcfdc8 100644 --- a/react/features/shared-video/components/web/SharedVideo.js +++ b/react/features/shared-video/components/web/SharedVideo.js @@ -15,12 +15,12 @@ declare var interfaceConfig: Object; type Props = { /** - * The available client width + * The available client width. */ clientHeight: number, /** - * The available client width + * The available client width. */ clientWidth: number, @@ -37,16 +37,16 @@ type Props = { isOwner: boolean, /** - * The shared video url + * The shared video url. */ videoUrl: string, } -/** +/** . * Implements a React {@link Component} which represents the large video (a.k.a. - * the conference participant who is on the local stage) on Web/React. + * The conference participant who is on the local stage) on Web/React. * - * @extends Component + * @augments Component */ class SharedVideo extends Component { /** diff --git a/react/features/shared-video/components/web/SharedVideoButton.js b/react/features/shared-video/components/web/SharedVideoButton.js index c226b5d50..08910afd1 100644 --- a/react/features/shared-video/components/web/SharedVideoButton.js +++ b/react/features/shared-video/components/web/SharedVideoButton.js @@ -53,10 +53,10 @@ class SharedVideoButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The icon value. */ - set tooltip(value) { - return value; + set tooltip(_value) { + // Unused. } /** diff --git a/react/features/shared-video/components/web/YoutubeVideoManager.js b/react/features/shared-video/components/web/YoutubeVideoManager.js index f9b62cf77..97e394bde 100644 --- a/react/features/shared-video/components/web/YoutubeVideoManager.js +++ b/react/features/shared-video/components/web/YoutubeVideoManager.js @@ -153,7 +153,7 @@ class YoutubeVideoManager extends AbstractVideoManager { } else if (event.data === YouTube.PlayerState.PAUSED) { this.onPause(); } - } + }; /** * Fired when youtube player is ready. @@ -208,7 +208,7 @@ class YoutubeVideoManager extends AbstractVideoManager { }; return options; - } + }; /** * Implements React Component's render. diff --git a/react/features/shared-video/constants.js b/react/features/shared-video/constants.js index 0b12360df..f3d15410d 100644 --- a/react/features/shared-video/constants.js +++ b/react/features/shared-video/constants.js @@ -2,12 +2,14 @@ /** * Fixed name of the video player fake participant. + * * @type {string} */ export const VIDEO_PLAYER_PARTICIPANT_NAME = 'Video'; /** * Fixed name of the youtube player fake participant. + * * @type {string} */ export const YOUTUBE_PLAYER_PARTICIPANT_NAME = 'YouTube'; @@ -15,12 +17,13 @@ export const YOUTUBE_PLAYER_PARTICIPANT_NAME = 'YouTube'; /** * Shared video command. + * * @type {string} */ export const SHARED_VIDEO = 'shared-video'; /** - * Available playback statuses + * Available playback statuses. */ export const PLAYBACK_STATUSES = { PLAYING: 'playing', diff --git a/react/features/shared-video/middleware.any.js b/react/features/shared-video/middleware.any.js index def1aabd8..f28a1d9c8 100644 --- a/react/features/shared-video/middleware.any.js +++ b/react/features/shared-video/middleware.any.js @@ -80,7 +80,7 @@ MiddlewareRegistry.register(store => next => action => { /** * Set up state change listener to perform maintenance tasks when the conference - * is left or failed, e.g. clear messages or close the chat modal if it's left + * is left or failed, e.g. Clear messages or close the chat modal if it's left * open. */ StateListenerRegistry.register( diff --git a/react/features/speaker-stats/components/SpeakerStats.js b/react/features/speaker-stats/components/SpeakerStats.js index d3342883c..ff74d38c9 100644 --- a/react/features/speaker-stats/components/SpeakerStats.js +++ b/react/features/speaker-stats/components/SpeakerStats.js @@ -57,7 +57,7 @@ type Props = { /** * React component for displaying a list of speaker stats. * - * @extends Component + * @augments Component */ class SpeakerStats extends Component { _updateInterval: IntervalID; diff --git a/react/features/speaker-stats/components/SpeakerStatsItem.js b/react/features/speaker-stats/components/SpeakerStatsItem.js index efb3b021b..53aa3781d 100644 --- a/react/features/speaker-stats/components/SpeakerStatsItem.js +++ b/react/features/speaker-stats/components/SpeakerStatsItem.js @@ -40,7 +40,7 @@ type Props = { /** * React component for display an individual user's speaker stats. * - * @extends Component + * @augments Component */ class SpeakerStatsItem extends Component { /** diff --git a/react/features/speaker-stats/components/SpeakerStatsLabels.js b/react/features/speaker-stats/components/SpeakerStatsLabels.js index 3e2e467b6..354124f0f 100644 --- a/react/features/speaker-stats/components/SpeakerStatsLabels.js +++ b/react/features/speaker-stats/components/SpeakerStatsLabels.js @@ -18,7 +18,7 @@ type Props = { /** * React component for labeling speaker stats column items. * - * @extends Component + * @augments Component */ class SpeakerStatsLabels extends Component { /** diff --git a/react/features/speaker-stats/components/TimeElapsed.js b/react/features/speaker-stats/components/TimeElapsed.js index 44a439a10..670183091 100644 --- a/react/features/speaker-stats/components/TimeElapsed.js +++ b/react/features/speaker-stats/components/TimeElapsed.js @@ -25,7 +25,7 @@ type Props = { * milliseconds into a more humanized form: "# hours, # minutes, # seconds". * With a time of 0, "0s" will be displayed. * - * @extends Component + * @augments Component */ class TimeElapsed extends Component { /** diff --git a/react/features/speaker-stats/reducer.js b/react/features/speaker-stats/reducer.js index bfd163d5b..1b9b9e187 100644 --- a/react/features/speaker-stats/reducer.js +++ b/react/features/speaker-stats/reducer.js @@ -56,7 +56,7 @@ function _updateCriteria(state, { criteria }) { return _.assign( {}, state, - { criteria }, + { criteria } ); } @@ -98,7 +98,7 @@ function _updateStats(state, { stats }) { { stats: { ...finalStats }, pendingReorder: false - }, + } ); } @@ -114,6 +114,6 @@ function _initReorderStats(state) { return _.assign( {}, state, - { pendingReorder: true }, + { pendingReorder: true } ); } diff --git a/react/features/stream-effects/audio-mixer/AudioMixerEffect.js b/react/features/stream-effects/audio-mixer/AudioMixerEffect.js index 64664028b..914b4c6d3 100644 --- a/react/features/stream-effects/audio-mixer/AudioMixerEffect.js +++ b/react/features/stream-effects/audio-mixer/AudioMixerEffect.js @@ -35,7 +35,7 @@ export class AudioMixerEffect { _originalTrack: Object; /** - * lib-jitsi-meet AudioMixer. + * Lib-jitsi-meet AudioMixer. */ _audioMixer: Object; diff --git a/react/features/stream-effects/presenter/TimeWorker.js b/react/features/stream-effects/presenter/TimeWorker.js index 14cf50328..68adc3611 100644 --- a/react/features/stream-effects/presenter/TimeWorker.js +++ b/react/features/stream-effects/presenter/TimeWorker.js @@ -2,13 +2,13 @@ /** * SET_INTERVAL constant is used to set interval and it is set in - * the id property of the request.data property. timeMs property must - * also be set. request.data example: + * the id property of the request.data property. TimeMs property must + * also be set. Request.data example: * * { * id: SET_INTERVAL, * timeMs: 33 - * } + * }. */ export const SET_INTERVAL = 1; @@ -18,7 +18,7 @@ export const SET_INTERVAL = 1; * * { * id: CLEAR_INTERVAL - * } + * }. */ export const CLEAR_INTERVAL = 2; @@ -28,7 +28,7 @@ export const CLEAR_INTERVAL = 2; * * { * id: INTERVAL_TIMEOUT - * } + * }. */ export const INTERVAL_TIMEOUT = 3; diff --git a/react/features/stream-effects/virtual-background/TimerWorker.js b/react/features/stream-effects/virtual-background/TimerWorker.js index 543be798d..b794ee0bd 100644 --- a/react/features/stream-effects/virtual-background/TimerWorker.js +++ b/react/features/stream-effects/virtual-background/TimerWorker.js @@ -1,13 +1,13 @@ /** * SET_TIMEOUT constant is used to set interval and it is set in - * the id property of the request.data property. timeMs property must - * also be set. request.data example: + * the id property of the request.data property. TimeMs property must + * also be set. Request.data example: * * { * id: SET_TIMEOUT, * timeMs: 33 - * } + * }. */ export const SET_TIMEOUT = 1; @@ -17,7 +17,7 @@ export const SET_TIMEOUT = 1; * * { * id: CLEAR_TIMEOUT - * } + * }. */ export const CLEAR_TIMEOUT = 2; @@ -26,7 +26,7 @@ export const CLEAR_TIMEOUT = 2; * * { * id: TIMEOUT_TICK - * } + * }. */ export const TIMEOUT_TICK = 3; diff --git a/react/features/subtitles/components/AbstractCaptions.js b/react/features/subtitles/components/AbstractCaptions.js index 4e0d13c7f..5b0516f0d 100644 --- a/react/features/subtitles/components/AbstractCaptions.js +++ b/react/features/subtitles/components/AbstractCaptions.js @@ -3,7 +3,7 @@ import { Component } from 'react'; /** - * {@code AbstractCaptions} properties. + * {@code AbstractCaptions} Properties. */ export type AbstractCaptionsProps = { diff --git a/react/features/subtitles/reducer.js b/react/features/subtitles/reducer.js index c6162a850..d4d238121 100644 --- a/react/features/subtitles/reducer.js +++ b/react/features/subtitles/reducer.js @@ -6,7 +6,7 @@ import { } from './actionTypes'; /** - * Default State for 'features/transcription' feature + * Default State for 'features/transcription' feature. */ const defaultState = { _transcriptMessages: new Map(), diff --git a/react/features/toolbox/components/AbstractToolbarButton.js b/react/features/toolbox/components/AbstractToolbarButton.js index 5187c56d4..551805c48 100644 --- a/react/features/toolbox/components/AbstractToolbarButton.js +++ b/react/features/toolbox/components/AbstractToolbarButton.js @@ -30,7 +30,7 @@ export type Props = { onClick: Function, /** - * {@code AbstractToolbarButton} styles. + * {@code AbstractToolbarButton} Styles. */ style?: Array | Object, diff --git a/react/features/toolbox/components/AudioMuteButton.js b/react/features/toolbox/components/AudioMuteButton.js index e26b98e22..2a6d0aa8e 100644 --- a/react/features/toolbox/components/AudioMuteButton.js +++ b/react/features/toolbox/components/AudioMuteButton.js @@ -41,7 +41,7 @@ type Props = AbstractButtonProps & { /** * Component that renders a toolbar button for toggling audio mute. * - * @extends AbstractAudioMuteButton + * @augments AbstractAudioMuteButton */ class AudioMuteButton extends AbstractAudioMuteButton { accessibilityLabel = 'toolbar.accessibilityLabel.mute'; diff --git a/react/features/toolbox/components/HangupButton.js b/react/features/toolbox/components/HangupButton.js index aecca7ff6..0f47fefbe 100644 --- a/react/features/toolbox/components/HangupButton.js +++ b/react/features/toolbox/components/HangupButton.js @@ -24,7 +24,7 @@ type Props = AbstractButtonProps & { /** * Component that renders a toolbar button for leaving the current conference. * - * @extends AbstractHangupButton + * @augments AbstractHangupButton */ class HangupButton extends AbstractHangupButton { _hangup: Function; diff --git a/react/features/toolbox/components/MuteEveryoneButton.js b/react/features/toolbox/components/MuteEveryoneButton.js index a93aec13e..f087c80aa 100644 --- a/react/features/toolbox/components/MuteEveryoneButton.js +++ b/react/features/toolbox/components/MuteEveryoneButton.js @@ -24,7 +24,7 @@ type Props = AbstractButtonProps & { /** * Implements a React {@link Component} which displays a button for audio muting - * every participant (except the local one) + * every participant (except the local one). */ class MuteEveryoneButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.muteEveryone'; diff --git a/react/features/toolbox/components/MuteEveryonesVideoButton.js b/react/features/toolbox/components/MuteEveryonesVideoButton.js index 209b1a6bd..c0f79a99d 100644 --- a/react/features/toolbox/components/MuteEveryonesVideoButton.js +++ b/react/features/toolbox/components/MuteEveryonesVideoButton.js @@ -24,7 +24,7 @@ type Props = AbstractButtonProps & { /** * Implements a React {@link Component} which displays a button for disabling the camera of - * every participant (except the local one) + * every participant (except the local one). */ class MuteEveryonesVideoButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.muteEveryonesVideo'; diff --git a/react/features/toolbox/components/VideoMuteButton.js b/react/features/toolbox/components/VideoMuteButton.js index aab6a1880..093213ccc 100644 --- a/react/features/toolbox/components/VideoMuteButton.js +++ b/react/features/toolbox/components/VideoMuteButton.js @@ -57,7 +57,7 @@ type Props = AbstractButtonProps & { /** * Component that renders a toolbar button for toggling video mute. * - * @extends AbstractVideoMuteButton + * @augments AbstractVideoMuteButton */ class VideoMuteButton extends AbstractVideoMuteButton { accessibilityLabel = 'toolbar.accessibilityLabel.videomute'; diff --git a/react/features/toolbox/components/native/ScreenSharingIosButton.js b/react/features/toolbox/components/native/ScreenSharingIosButton.js index 2bcb90ac0..da1a526bb 100644 --- a/react/features/toolbox/components/native/ScreenSharingIosButton.js +++ b/react/features/toolbox/components/native/ScreenSharingIosButton.js @@ -42,88 +42,88 @@ const styles = { * An implementation of a button for toggling screen sharing on iOS. */ class ScreenSharingIosButton extends AbstractButton { - _nativeComponent: ?Object; - _setNativeComponent: Function; + _nativeComponent: ?Object; + _setNativeComponent: Function; - accessibilityLabel = 'toolbar.accessibilityLabel.shareYourScreen'; - icon = IconShareDesktop; - label = 'toolbar.startScreenSharing'; - toggledLabel = 'toolbar.stopScreenSharing'; + accessibilityLabel = 'toolbar.accessibilityLabel.shareYourScreen'; + icon = IconShareDesktop; + label = 'toolbar.startScreenSharing'; + toggledLabel = 'toolbar.stopScreenSharing'; - /** + /** * Initializes a new {@code ScreenSharingIosButton} instance. * * @param {Object} props - The React {@code Component} props to initialize * the new {@code ScreenSharingIosButton} instance with. */ - constructor(props) { - super(props); + constructor(props) { + super(props); - this._nativeComponent = null; + this._nativeComponent = null; - // Bind event handlers so they are only bound once per instance. - this._setNativeComponent = this._setNativeComponent.bind(this); - } + // Bind event handlers so they are only bound once per instance. + this._setNativeComponent = this._setNativeComponent.bind(this); + } - /** + /** * Sets the internal reference to the React Component wrapping the * {@code RPSystemBroadcastPickerView} component. * * @param {ReactComponent} component - React Component. * @returns {void} */ - _setNativeComponent(component) { - this._nativeComponent = component; - } + _setNativeComponent(component) { + this._nativeComponent = component; + } - /** + /** * Handles clicking / pressing the button. * * @override * @protected * @returns {void} */ - _handleClick() { - const handle = findNodeHandle(this._nativeComponent); + _handleClick() { + const handle = findNodeHandle(this._nativeComponent); - NativeModules.ScreenCapturePickerViewManager.show(handle); - } + NativeModules.ScreenCapturePickerViewManager.show(handle); + } - /** + /** * Returns a boolean value indicating if this button is disabled or not. * * @protected * @returns {boolean} */ - _isDisabled() { - return this.props._disabled; - } + _isDisabled() { + return this.props._disabled; + } - /** + /** * Indicates whether this button is in toggled state or not. * * @override * @protected * @returns {boolean} */ - _isToggled() { - return this.props._screensharing; - } + _isToggled() { + return this.props._screensharing; + } - /** + /** * Helper function to be implemented by subclasses, which may return a * new React Element to be appended at the end of the button. * * @protected * @returns {ReactElement|null} */ - _getElementAfter() { - return ( - - ); - } + _getElementAfter() { + return ( + + ); + } } /** diff --git a/react/features/toolbox/components/web/AudioSettingsButton.js b/react/features/toolbox/components/web/AudioSettingsButton.js index aad64df32..2a8d49079 100644 --- a/react/features/toolbox/components/web/AudioSettingsButton.js +++ b/react/features/toolbox/components/web/AudioSettingsButton.js @@ -47,7 +47,7 @@ type Props = { visible: boolean, /** - * Defines is popup is open + * Defines is popup is open. */ isOpen: boolean, }; @@ -159,5 +159,5 @@ const mapDispatchToProps = { export default translate(connect( mapStateToProps, - mapDispatchToProps, + mapDispatchToProps )(AudioSettingsButton)); diff --git a/react/features/toolbox/components/web/FullscreenButton.js b/react/features/toolbox/components/web/FullscreenButton.js index 6c8547253..51be2aa5d 100644 --- a/react/features/toolbox/components/web/FullscreenButton.js +++ b/react/features/toolbox/components/web/FullscreenButton.js @@ -19,7 +19,7 @@ type Props = AbstractButtonProps & { class FullscreenButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.fullScreen'; label = 'toolbar.enterFullScreen'; - toggledLabel = 'toolbar.exitFullScreen' + toggledLabel = 'toolbar.exitFullScreen'; /** * Retrieves icon dynamically. @@ -35,10 +35,10 @@ class FullscreenButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The value. */ - set icon(value) { - return value; + set icon(_value) { + // Unused. } /** @@ -55,10 +55,10 @@ class FullscreenButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The value. */ - set tooltip(value) { - return value; + set tooltip(_value) { + // Unused. } /** diff --git a/react/features/toolbox/components/web/OverflowMenuButton.js b/react/features/toolbox/components/web/OverflowMenuButton.js index a7aa6a074..1b23f1a27 100644 --- a/react/features/toolbox/components/web/OverflowMenuButton.js +++ b/react/features/toolbox/components/web/OverflowMenuButton.js @@ -64,7 +64,7 @@ type Props = { /** * A React {@code Component} for opening or closing the {@code OverflowMenu}. * - * @extends Component + * @augments Component */ class OverflowMenuButton extends Component { /** diff --git a/react/features/toolbox/components/web/ProfileButton.js b/react/features/toolbox/components/web/ProfileButton.js index 55c0ff463..ae256c802 100644 --- a/react/features/toolbox/components/web/ProfileButton.js +++ b/react/features/toolbox/components/web/ProfileButton.js @@ -58,10 +58,10 @@ class ProfileButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The value. */ - set label(value) { - return value; + set label(_value) { + // Unused. } /** @@ -74,10 +74,10 @@ class ProfileButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The value. + * @param {string} _value - The value. */ - set tooltip(value) { - return value; + set tooltip(_value) { + // Unused. } /** diff --git a/react/features/toolbox/components/web/ProfileButtonAvatar.js b/react/features/toolbox/components/web/ProfileButtonAvatar.js index b4b57f491..1171639e3 100644 --- a/react/features/toolbox/components/web/ProfileButtonAvatar.js +++ b/react/features/toolbox/components/web/ProfileButtonAvatar.js @@ -24,7 +24,7 @@ type Props = { * A React {@code Component} for displaying a profile avatar as an * icon. * - * @extends Component + * @augments Component */ class ProfileButtonAvatar extends Component { /** diff --git a/react/features/toolbox/components/web/ShareDesktopButton.js b/react/features/toolbox/components/web/ShareDesktopButton.js index 3208ba454..27631cb5d 100644 --- a/react/features/toolbox/components/web/ShareDesktopButton.js +++ b/react/features/toolbox/components/web/ShareDesktopButton.js @@ -38,7 +38,7 @@ class ShareDesktopButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.shareYourScreen'; label = 'toolbar.startScreenSharing'; icon = IconShareDesktop; - toggledLabel = 'toolbar.stopScreenSharing' + toggledLabel = 'toolbar.stopScreenSharing'; tooltip = 'toolbar.accessibilityLabel.shareYourScreen'; /** @@ -61,10 +61,10 @@ class ShareDesktopButton extends AbstractButton { /** * Required by linter due to AbstractButton overwritten prop being writable. * - * @param {string} value - The icon value. + * @param {string} _value - The icon value. */ - set tooltip(value) { - return value; + set tooltip(_value) { + // Unused. } /** diff --git a/react/features/toolbox/components/web/ToolbarButton.js b/react/features/toolbox/components/web/ToolbarButton.js index cec25b2ca..4dfd01c66 100644 --- a/react/features/toolbox/components/web/ToolbarButton.js +++ b/react/features/toolbox/components/web/ToolbarButton.js @@ -25,7 +25,7 @@ export type Props = AbstractToolbarButtonProps & { tooltipPosition: string, /** - * keyDown handler + * KeyDown handler. */ onKeyDown?: Function }; @@ -33,7 +33,7 @@ export type Props = AbstractToolbarButtonProps & { /** * Represents a button in the toolbar. * - * @extends AbstractToolbarButton + * @augments AbstractToolbarButton */ class ToolbarButton extends AbstractToolbarButton { /** diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index c82ac4345..2eae03937 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -251,7 +251,7 @@ declare var APP: Object; /** * Implements the conference toolbox on React/Web. * - * @extends Component + * @augments Component */ class Toolbox extends Component { /** diff --git a/react/features/toolbox/components/web/VideoSettingsButton.js b/react/features/toolbox/components/web/VideoSettingsButton.js index 5a7e330c8..cbd0015d0 100644 --- a/react/features/toolbox/components/web/VideoSettingsButton.js +++ b/react/features/toolbox/components/web/VideoSettingsButton.js @@ -37,7 +37,7 @@ type Props = { hasVideoTrack: boolean, /** - * If the button should be disabled + * If the button should be disabled. */ isDisabled: boolean, @@ -50,12 +50,12 @@ type Props = { visible: boolean, /** - * Used for translation + * Used for translation. */ t: Function, /** - * Defines is popup is open + * Defines is popup is open. */ isOpen: boolean }; @@ -175,5 +175,5 @@ const mapDispatchToProps = { export default translate(connect( mapStateToProps, - mapDispatchToProps, + mapDispatchToProps )(VideoSettingsButton)); diff --git a/react/features/toolbox/constants.js b/react/features/toolbox/constants.js index 5a58bcd8f..b375061fa 100644 --- a/react/features/toolbox/constants.js +++ b/react/features/toolbox/constants.js @@ -1,5 +1,5 @@ /** - * Thresholds for displaying toolbox buttons + * Thresholds for displaying toolbox buttons. */ export const THRESHOLDS = [ { diff --git a/react/features/toolbox/middleware.js b/react/features/toolbox/middleware.js index e43cb7b97..a2b6429f9 100644 --- a/react/features/toolbox/middleware.js +++ b/react/features/toolbox/middleware.js @@ -62,6 +62,8 @@ type DocumentElement = { * @returns {Object} The value returned by {@code next(action)}. */ function _setFullScreen(next, action) { + const result = next(action); + if (typeof APP === 'object') { const { fullScreen } = action; @@ -78,25 +80,23 @@ function _setFullScreen(next, action) { typeof documentElement.webkitRequestFullscreen === 'function') { documentElement.webkitRequestFullscreen(); } - } else { - /* eslint-disable no-lonely-if */ - // $FlowFixMe - if (typeof document.exitFullscreen === 'function') { - document.exitFullscreen(); + return result; + } - // $FlowFixMe - } else if (typeof document.mozCancelFullScreen === 'function') { - document.mozCancelFullScreen(); + // $FlowFixMe + if (typeof document.exitFullscreen === 'function') { + document.exitFullscreen(); - // $FlowFixMe - } else if (typeof document.webkitExitFullscreen === 'function') { - document.webkitExitFullscreen(); - } + // $FlowFixMe + } else if (typeof document.mozCancelFullScreen === 'function') { + document.mozCancelFullScreen(); - /* eslint-enable no-loney-if */ + // $FlowFixMe + } else if (typeof document.webkitExitFullscreen === 'function') { + document.webkitExitFullscreen(); } } - return next(action); + return result; } diff --git a/react/features/transcribing/components/TranscribingLabel.native.js b/react/features/transcribing/components/TranscribingLabel.native.js index 33cffd98f..71bc61e15 100644 --- a/react/features/transcribing/components/TranscribingLabel.native.js +++ b/react/features/transcribing/components/TranscribingLabel.native.js @@ -12,7 +12,7 @@ import { _mapStateToProps, type Props } from './AbstractTranscribingLabel'; * React {@code Component} for displaying a label when a transcriber is in the * conference. * - * @extends Component + * @augments Component */ class TranscribingLabel extends Component { diff --git a/react/features/transcribing/components/TranscribingLabel.web.js b/react/features/transcribing/components/TranscribingLabel.web.js index 06ad5ad71..c07ec38bd 100644 --- a/react/features/transcribing/components/TranscribingLabel.web.js +++ b/react/features/transcribing/components/TranscribingLabel.web.js @@ -13,7 +13,7 @@ import { _mapStateToProps, type Props } from './AbstractTranscribingLabel'; * React {@code Component} for displaying a label when a transcriber is in the * conference. * - * @extends Component + * @augments Component */ class TranscribingLabel extends Component { diff --git a/react/features/transcribing/reducer.js b/react/features/transcribing/reducer.js index 056307932..6efa38927 100644 --- a/react/features/transcribing/reducer.js +++ b/react/features/transcribing/reducer.js @@ -21,7 +21,7 @@ function _getInitialState() { return { /** * Indicates whether there is currently an active transcriber in the - * room + * room. * * @type {boolean} */ @@ -29,7 +29,7 @@ function _getInitialState() { /** * Indicates whether the transcriber has been dialed into the room and - * we're currently awaiting successful joining or failure of joining + * we're currently awaiting successful joining or failure of joining. * * @type {boolean} */ @@ -42,14 +42,14 @@ function _getInitialState() { isTerminating: false, /** - * The JID of the active transcriber + * The JID of the active transcriber. * * @type { string } */ transcriberJID: null, /** - * A list containing potential JID's of transcriber participants + * A list containing potential JID's of transcriber participants. * * @type { Array } */ diff --git a/react/features/video-layout/components/TileViewButton.js b/react/features/video-layout/components/TileViewButton.js index 18a46d966..1fa465601 100644 --- a/react/features/video-layout/components/TileViewButton.js +++ b/react/features/video-layout/components/TileViewButton.js @@ -35,7 +35,7 @@ type Props = AbstractButtonProps & { /** * Component that renders a toolbar button for toggling the tile layout view. * - * @extends AbstractButton + * @augments AbstractButton */ class TileViewButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.tileView'; diff --git a/react/features/video-menu/components/AbstractGrantModeratorButton.js b/react/features/video-menu/components/AbstractGrantModeratorButton.js index d3e2f663d..fdf4ad0e8 100644 --- a/react/features/video-menu/components/AbstractGrantModeratorButton.js +++ b/react/features/video-menu/components/AbstractGrantModeratorButton.js @@ -34,21 +34,21 @@ export type Props = AbstractButtonProps & { * An abstract remote video menu button which kicks the remote participant. */ export default class AbstractGrantModeratorButton extends AbstractButton { - accessibilityLabel = 'toolbar.accessibilityLabel.grantModerator'; - icon = IconCrown; - label = 'videothumbnail.grantModerator'; + accessibilityLabel = 'toolbar.accessibilityLabel.grantModerator'; + icon = IconCrown; + label = 'videothumbnail.grantModerator'; - /** + /** * Handles clicking / pressing the button, and kicks the participant. * * @private * @returns {void} */ - _handleClick() { - const { dispatch, participantID } = this.props; + _handleClick() { + const { dispatch, participantID } = this.props; - dispatch(openDialog(GrantModeratorDialog, { participantID })); - } + dispatch(openDialog(GrantModeratorDialog, { participantID })); + } } /** diff --git a/react/features/video-menu/components/AbstractMuteEveryoneDialog.js b/react/features/video-menu/components/AbstractMuteEveryoneDialog.js index 53c35d9ae..dd501d88f 100644 --- a/react/features/video-menu/components/AbstractMuteEveryoneDialog.js +++ b/react/features/video-menu/components/AbstractMuteEveryoneDialog.js @@ -37,7 +37,7 @@ type State = { * An abstract Component with the contents for a dialog that asks for confirmation * from the user before muting all remote participants. * - * @extends AbstractMuteRemoteParticipantDialog + * @augments AbstractMuteRemoteParticipantDialog */ export default class AbstractMuteEveryoneDialog extends AbstractMuteRemoteParticipantDialog { static defaultProps = { diff --git a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js index d1fb8cf95..d106a83a9 100644 --- a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js +++ b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js @@ -37,7 +37,7 @@ type State = { * An abstract Component with the contents for a dialog that asks for confirmation * from the user before disabling all remote participants cameras. * - * @extends AbstractMuteRemoteParticipantsVideoDialog + * @augments AbstractMuteRemoteParticipantsVideoDialog */ export default class AbstractMuteEveryonesVideoDialog extends AbstractMuteRemoteParticipantsVideoDialog { diff --git a/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.js b/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.js index af70110d1..6254e11db 100644 --- a/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.js +++ b/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.js @@ -30,7 +30,7 @@ export type Props = { /** * Abstract dialog to confirm a remote participant mute action. * - * @extends Component + * @augments Component */ export default class AbstractMuteRemoteParticipantDialog extends Component { diff --git a/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.js b/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.js index f26b07f35..eac67246a 100644 --- a/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.js +++ b/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.js @@ -37,7 +37,7 @@ export type Props = { /** * Abstract dialog to confirm a remote participant video ute action. * - * @extends Component + * @augments Component */ export default class AbstractMuteRemoteParticipantsVideoDialog extends Component { diff --git a/react/features/video-menu/components/native/MuteEveryoneDialog.js b/react/features/video-menu/components/native/MuteEveryoneDialog.js index 0ba55894e..8115a86ee 100644 --- a/react/features/video-menu/components/native/MuteEveryoneDialog.js +++ b/react/features/video-menu/components/native/MuteEveryoneDialog.js @@ -27,7 +27,7 @@ type Props = AbstractProps & { * A React Component with the contents for a dialog that asks for confirmation * from the user before muting all remote participants. * - * @extends AbstractMuteEveryoneDialog + * @augments AbstractMuteEveryoneDialog */ class MuteEveryoneDialog extends AbstractMuteEveryoneDialog { diff --git a/react/features/video-menu/components/native/MuteEveryonesVideoDialog.js b/react/features/video-menu/components/native/MuteEveryonesVideoDialog.js index 770958de0..ac82cd4a0 100644 --- a/react/features/video-menu/components/native/MuteEveryonesVideoDialog.js +++ b/react/features/video-menu/components/native/MuteEveryonesVideoDialog.js @@ -27,7 +27,7 @@ type Props = AbstractProps & { * A React Component with the contents for a dialog that asks for confirmation * from the user before muting all remote participants. * - * @extends AbstractMuteEveryonesVideoDialog + * @augments AbstractMuteEveryonesVideoDialog */ class MuteEveryonesVideoDialog extends AbstractMuteEveryonesVideoDialog { diff --git a/react/features/video-menu/components/web/FlipLocalVideoButton.js b/react/features/video-menu/components/web/FlipLocalVideoButton.js index a6f130317..1f86d1500 100644 --- a/react/features/video-menu/components/web/FlipLocalVideoButton.js +++ b/react/features/video-menu/components/web/FlipLocalVideoButton.js @@ -37,7 +37,7 @@ type Props = { /** * Implements a React {@link Component} which displays a button for flipping the local viedo. * - * @extends Component + * @augments Component */ class FlipLocalVideoButton extends PureComponent { /** diff --git a/react/features/video-menu/components/web/GrantModeratorButton.js b/react/features/video-menu/components/web/GrantModeratorButton.js index b7707e789..a30b91089 100644 --- a/react/features/video-menu/components/web/GrantModeratorButton.js +++ b/react/features/video-menu/components/web/GrantModeratorButton.js @@ -54,7 +54,7 @@ class GrantModeratorButton extends AbstractGrantModeratorButton { ); } - _handleClick: () => void + _handleClick: () => void; } export default translate(connect(_mapStateToProps)(GrantModeratorButton)); diff --git a/react/features/video-menu/components/web/KickButton.js b/react/features/video-menu/components/web/KickButton.js index 5e4ff84e4..17fa8fd80 100644 --- a/react/features/video-menu/components/web/KickButton.js +++ b/react/features/video-menu/components/web/KickButton.js @@ -53,6 +53,6 @@ class KickButton extends AbstractKickButton { ); } - _handleClick: () => void + _handleClick: () => void; } export default translate(connect()(KickButton)); diff --git a/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js b/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js index ca0967564..c30038c8e 100644 --- a/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js +++ b/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js @@ -90,7 +90,7 @@ type Props = { * React Component for displaying an icon associated with opening the * the video menu for the local participant. * - * @extends {Component} + * @augments {Component} */ class LocalVideoMenuTriggerButton extends Component { diff --git a/react/features/video-menu/components/web/MuteButton.js b/react/features/video-menu/components/web/MuteButton.js index 734f085d9..76f07da26 100644 --- a/react/features/video-menu/components/web/MuteButton.js +++ b/react/features/video-menu/components/web/MuteButton.js @@ -61,7 +61,7 @@ class MuteButton extends AbstractMuteButton { ); } - _handleClick: () => void + _handleClick: () => void; } export default translate(connect(_mapStateToProps)(MuteButton)); diff --git a/react/features/video-menu/components/web/MuteEveryoneDialog.js b/react/features/video-menu/components/web/MuteEveryoneDialog.js index 6afb7a86f..46b47e1ae 100644 --- a/react/features/video-menu/components/web/MuteEveryoneDialog.js +++ b/react/features/video-menu/components/web/MuteEveryoneDialog.js @@ -13,7 +13,7 @@ import AbstractMuteEveryoneDialog, { abstractMapStateToProps, type Props } * A React Component with the contents for a dialog that asks for confirmation * from the user before muting all remote participants. * - * @extends AbstractMuteEveryoneDialog + * @augments AbstractMuteEveryoneDialog */ class MuteEveryoneDialog extends AbstractMuteEveryoneDialog { diff --git a/react/features/video-menu/components/web/MuteEveryoneElseButton.js b/react/features/video-menu/components/web/MuteEveryoneElseButton.js index 7cb8ebcf4..f62608efd 100644 --- a/react/features/video-menu/components/web/MuteEveryoneElseButton.js +++ b/react/features/video-menu/components/web/MuteEveryoneElseButton.js @@ -14,7 +14,7 @@ import VideoMenuButton from './VideoMenuButton'; /** * Implements a React {@link Component} which displays a button for audio muting * every participant in the conference except the one with the given - * participantID + * participantID. */ class MuteEveryoneElseButton extends AbstractMuteEveryoneElseButton { /** diff --git a/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.js b/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.js index 1ea36db8c..165a69fb9 100644 --- a/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.js +++ b/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.js @@ -14,7 +14,7 @@ import VideoMenuButton from './VideoMenuButton'; /** * Implements a React {@link Component} which displays a button for audio muting * every participant in the conference except the one with the given - * participantID + * participantID. */ class MuteEveryoneElsesVideoButton extends AbstractMuteEveryoneElsesVideoButton { /** diff --git a/react/features/video-menu/components/web/MuteEveryonesVideoDialog.js b/react/features/video-menu/components/web/MuteEveryonesVideoDialog.js index 2bb76b176..af75d04ad 100644 --- a/react/features/video-menu/components/web/MuteEveryonesVideoDialog.js +++ b/react/features/video-menu/components/web/MuteEveryonesVideoDialog.js @@ -13,7 +13,7 @@ import AbstractMuteEveryonesVideoDialog, { abstractMapStateToProps, type Props } * A React Component with the contents for a dialog that asks for confirmation * from the user before disabling all remote participants cameras. * - * @extends AbstractMuteEveryonesVideoDialog + * @augments AbstractMuteEveryonesVideoDialog */ class MuteEveryonesVideoDialog extends AbstractMuteEveryonesVideoDialog { diff --git a/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js b/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js index 764ffb5ac..d8b3feab3 100644 --- a/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js +++ b/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js @@ -13,7 +13,7 @@ import AbstractMuteRemoteParticipantsVideoDialog, { * A React Component with the contents for a dialog that asks for confirmation * from the user before disabling a remote participants camera. * - * @extends Component + * @augments Component */ class MuteRemoteParticipantsVideoDialog extends AbstractMuteRemoteParticipantsVideoDialog { /** diff --git a/react/features/video-menu/components/web/MuteVideoButton.js b/react/features/video-menu/components/web/MuteVideoButton.js index 21976fd35..5a688ce33 100644 --- a/react/features/video-menu/components/web/MuteVideoButton.js +++ b/react/features/video-menu/components/web/MuteVideoButton.js @@ -61,7 +61,7 @@ class MuteVideoButton extends AbstractMuteVideoButton { ); } - _handleClick: () => void + _handleClick: () => void; } export default translate(connect(_mapStateToProps)(MuteVideoButton)); diff --git a/react/features/video-menu/components/web/RemoteControlButton.js b/react/features/video-menu/components/web/RemoteControlButton.js index ae12676aa..9602d0d23 100644 --- a/react/features/video-menu/components/web/RemoteControlButton.js +++ b/react/features/video-menu/components/web/RemoteControlButton.js @@ -52,7 +52,7 @@ type Props = { * current state of remote control for a participant and can start or stop a * remote control session. * - * @extends Component + * @augments Component */ class RemoteControlButton extends Component { /** diff --git a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js index 48f2bcd66..2e77a937f 100644 --- a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js +++ b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js @@ -141,7 +141,7 @@ type Props = { * React {@code Component} for displaying an icon associated with opening the * the {@code VideoMenu}. * - * @extends {Component} + * @augments {Component} */ class RemoteVideoMenuTriggerButton extends Component { diff --git a/react/features/video-menu/components/web/VideoMenuButton.js b/react/features/video-menu/components/web/VideoMenuButton.js index 6d4685e13..2e32ad3c0 100644 --- a/react/features/video-menu/components/web/VideoMenuButton.js +++ b/react/features/video-menu/components/web/VideoMenuButton.js @@ -40,7 +40,7 @@ type Props = { /** * React {@code Component} for displaying an action in {@code VideoMenuButton}. * - * @extends {Component} + * @augments {Component} */ export default class VideoMenuButton extends Component { /** diff --git a/react/features/video-menu/components/web/VolumeSlider.js b/react/features/video-menu/components/web/VolumeSlider.js index 518891340..92e6564b0 100644 --- a/react/features/video-menu/components/web/VolumeSlider.js +++ b/react/features/video-menu/components/web/VolumeSlider.js @@ -45,7 +45,7 @@ type State = { * Implements a React {@link Component} which displays an input slider for * adjusting the local volume of a remote participant. * - * @extends Component + * @augments Component */ class VolumeSlider extends Component { /** diff --git a/react/features/video-quality/components/VideoQualityButton.web.js b/react/features/video-quality/components/VideoQualityButton.web.js index 7c0ffe4cb..e979752d1 100644 --- a/react/features/video-quality/components/VideoQualityButton.web.js +++ b/react/features/video-quality/components/VideoQualityButton.web.js @@ -32,7 +32,7 @@ type Props = AbstractButtonProps & { * menu of the toolbar, including an icon showing the currently selected * max receive quality. * - * @extends Component + * @augments Component */ class VideoQualityButton extends AbstractButton { accessibilityLabel = 'toolbar.accessibilityLabel.callQuality'; diff --git a/react/features/video-quality/components/VideoQualityDialog.web.js b/react/features/video-quality/components/VideoQualityDialog.web.js index 47b63112a..e32eafffd 100644 --- a/react/features/video-quality/components/VideoQualityDialog.web.js +++ b/react/features/video-quality/components/VideoQualityDialog.web.js @@ -8,7 +8,7 @@ import VideoQualitySlider from './VideoQualitySlider'; * Implements a React {@link Component} which displays the component * {@code VideoQualitySlider} in a dialog. * - * @extends Component + * @augments Component */ export default class VideoQualityDialog extends Component { /** diff --git a/react/features/video-quality/components/VideoQualityLabel.web.js b/react/features/video-quality/components/VideoQualityLabel.web.js index 80ade1aad..fd9f95feb 100644 --- a/react/features/video-quality/components/VideoQualityLabel.web.js +++ b/react/features/video-quality/components/VideoQualityLabel.web.js @@ -39,8 +39,8 @@ type Props = AbstractProps & { /** * React {@code Component} responsible for displaying a label that indicates * the displayed video state of the current conference. {@code AudioOnlyLabel} - * will display when the conference is in audio only mode. {@code HDVideoLabel} - * will display if not in audio only mode and a high-definition large video is + * Will display when the conference is in audio only mode. {@code HDVideoLabel} + * Will display if not in audio only mode and a high-definition large video is * being displayed. */ export class VideoQualityLabel extends AbstractVideoQualityLabel { diff --git a/react/features/video-quality/components/VideoQualitySlider.web.js b/react/features/video-quality/components/VideoQualitySlider.web.js index 465e73b1e..dbe7c1922 100644 --- a/react/features/video-quality/components/VideoQualitySlider.web.js +++ b/react/features/video-quality/components/VideoQualitySlider.web.js @@ -117,7 +117,7 @@ const styles = theme => { * Implements a React {@link Component} which displays a slider for selecting a * new receive video quality. * - * @extends Component + * @augments Component */ class VideoQualitySlider extends Component { _sliderOptions: Array; diff --git a/react/features/video-quality/constants.js b/react/features/video-quality/constants.js index dec544f75..b7b29e78c 100644 --- a/react/features/video-quality/constants.js +++ b/react/features/video-quality/constants.js @@ -1,5 +1,6 @@ /** * Default last-n value used to be used for "HD" video quality setting when no channelLastN value is specified. + * * @type {number} */ export const DEFAULT_LAST_N = 20; @@ -21,6 +22,7 @@ export const VIDEO_QUALITY_LEVELS = { /** * Maps quality level names used in the config.videoQuality.minHeightForQualityLvl to the quality level constants used * by the application. + * * @type {Object} */ export const CFG_LVL_TO_APP_QUALITY_LVL = { diff --git a/react/features/videosipgw/middleware.js b/react/features/videosipgw/middleware.js index 6789a2f9c..8624ce39d 100644 --- a/react/features/videosipgw/middleware.js +++ b/react/features/videosipgw/middleware.js @@ -136,9 +136,7 @@ function _inviteRooms(rooms, conference, dispatch) { * Signals that a session we created has a change in its status. * * @param {string} event - The event describing the session state change. - * @returns {{ - * type: SHOW_NOTIFICATION - * }}|null + * @returns {Object|null} - A notification action. * @private */ function _sessionStateChanged( diff --git a/react/features/virtual-background/components/VirtualBackgroundPreview.js b/react/features/virtual-background/components/VirtualBackgroundPreview.js index 38931aeb6..e1cf1e91b 100644 --- a/react/features/virtual-background/components/VirtualBackgroundPreview.js +++ b/react/features/virtual-background/components/VirtualBackgroundPreview.js @@ -74,7 +74,7 @@ type State = { * Implements a React {@link PureComponent} which displays the virtual * background preview. * - * @extends PureComponent + * @augments PureComponent */ class VirtualBackgroundPreview extends PureComponent { _componentWasUnmounted: boolean; diff --git a/react/features/virtual-background/middleware.js b/react/features/virtual-background/middleware.js index 1d8107904..42b7779cc 100644 --- a/react/features/virtual-background/middleware.js +++ b/react/features/virtual-background/middleware.js @@ -10,7 +10,7 @@ import { localTrackStopped } from './functions'; /** * Middleware which intercepts the desktop video type on * virtual background. If the user stops the screen share - * then the default virtual background is set to 'none' option + * then the default virtual background is set to 'none' option. * * @param {Store} store - The redux store. * @returns {Function} diff --git a/react/features/welcome/components/AbstractWelcomePage.js b/react/features/welcome/components/AbstractWelcomePage.js index 2d1706207..48372d7b2 100644 --- a/react/features/welcome/components/AbstractWelcomePage.js +++ b/react/features/welcome/components/AbstractWelcomePage.js @@ -31,7 +31,7 @@ type Props = { _moderatedRoomServiceUrl: ?string, /** - * Whether the recent list is enabled + * Whether the recent list is enabled. */ _recentListEnabled: Boolean, @@ -228,7 +228,7 @@ export class AbstractWelcomePage extends Component { }); } - _renderInsecureRoomNameWarning: () => React$Component;; + _renderInsecureRoomNameWarning: () => React$Component; /** * Renders the insecure room name warning if needed. diff --git a/react/features/welcome/components/Tab.js b/react/features/welcome/components/Tab.js index 3e22df3ab..c38a15429 100644 --- a/react/features/welcome/components/Tab.js +++ b/react/features/welcome/components/Tab.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; /** - * The type of the React {@code Component} props of {@link Tab} + * The type of the React {@code Component} props of {@link Tab}. */ type Props = { diff --git a/react/features/welcome/components/Tabs.js b/react/features/welcome/components/Tabs.js index 5a3d47952..e6cd3c129 100644 --- a/react/features/welcome/components/Tabs.js +++ b/react/features/welcome/components/Tabs.js @@ -4,7 +4,7 @@ import React, { Component } from 'react'; import Tab from './Tab'; /** - * The type of the React {@code Component} props of {@link Tabs} + * The type of the React {@code Component} props of {@link Tabs}. */ type Props = { diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.js index ad90df2a4..cb2924cce 100644 --- a/react/features/welcome/components/WelcomePage.native.js +++ b/react/features/welcome/components/WelcomePage.native.js @@ -40,7 +40,7 @@ import styles, { PLACEHOLDER_TEXT_COLOR } from './styles'; /** * The native container rendering the welcome page. * - * @extends AbstractWelcomePage + * @augments AbstractWelcomePage */ class WelcomePage extends AbstractWelcomePage { /** diff --git a/react/features/welcome/components/WelcomePage.web.js b/react/features/welcome/components/WelcomePage.web.js index ad420f3d0..52f213bb2 100644 --- a/react/features/welcome/components/WelcomePage.web.js +++ b/react/features/welcome/components/WelcomePage.web.js @@ -16,6 +16,7 @@ import Tabs from './Tabs'; /** * The pattern used to validate room name. + * * @type {string} */ export const ROOM_NAME_VALIDATE_PATTERN_STR = '^[^?&:\u0022\u0027%#]+$'; @@ -23,7 +24,7 @@ export const ROOM_NAME_VALIDATE_PATTERN_STR = '^[^?&:\u0022\u0027%#]+$'; /** * The Web container rendering the welcome page. * - * @extends AbstractWelcomePage + * @augments AbstractWelcomePage */ class WelcomePage extends AbstractWelcomePage { /** diff --git a/react/features/welcome/components/WelcomePageSideBar.native.js b/react/features/welcome/components/WelcomePageSideBar.native.js index ac5fb9d35..26f5ed348 100644 --- a/react/features/welcome/components/WelcomePageSideBar.native.js +++ b/react/features/welcome/components/WelcomePageSideBar.native.js @@ -35,7 +35,7 @@ const TERMS_URL = 'https://jitsi.org/meet/terms'; type Props = { /** - * Redux dispatch action + * Redux dispatch action. */ dispatch: Function, diff --git a/react/index.native.js b/react/index.native.js index 4062b770c..995ae41f8 100644 --- a/react/index.native.js +++ b/react/index.native.js @@ -31,7 +31,7 @@ type Props = { * the JS/JSX source code). So create a wrapper React Component (class) around * features/app's App instead. * - * @extends Component + * @augments Component */ class Root extends PureComponent { /** diff --git a/resources/prosody-plugins/mod_reservations.lua b/resources/prosody-plugins/mod_reservations.lua index 042502ff7..7f711f536 100644 --- a/resources/prosody-plugins/mod_reservations.lua +++ b/resources/prosody-plugins/mod_reservations.lua @@ -37,9 +37,7 @@ -- Example config: -- -- VirtualHost "jitmeet.example.com" --- -- .... -- modules_enabled = { --- -- .... -- "reservations"; -- } -- reservations_api_prefix = "http://reservation.example.com"