Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

chore(lint) tame the (uppdated) linter

Saúl Ibarra Corretgé162a67fe8b55
diff --git a/.eslintignore b/.eslintignore
index d19de9fbb0..08aee09926 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 a6cb846712..17b3c621dd 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 4d5213719c..9212979ca2 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 140376bc5a..43967b2034 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 b378599b51..55c3500fa6 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://[email protected]/jitsi/lib-jitsi-meet.git#e6b330186fbf667d1f8a7fa48410772cd2526e9d",
- "integrity": "sha512-9dGkPk5cvhIeo9USMH9vqXk0dgbfF5rmhFFu8Zrr0I93HxmHd7hWdnwlTaOuSQc6E0q/NZTOxGn3TStNp5VN7Q==",
+ "resolved": "git+ssh://[email protected]/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://[email protected]/jitsi/lib-jitsi-meet.git#e6b330186fbf667d1f8a7fa48410772cd2526e9d",
- "integrity": "sha512-9dGkPk5cvhIeo9USMH9vqXk0dgbfF5rmhFFu8Zrr0I93HxmHd7hWdnwlTaOuSQc6E0q/NZTOxGn3TStNp5VN7Q==",
- "from": "lib-jitsi-meet@github:jitsi/lib-jitsi-meet#e6b330186fbf667d1f8a7fa48410772cd2526e9d",
+ "version": "git+ssh://[email protected]/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 2f816715ed..419e27dc2c 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 6fd843b370..b34037de4b 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 80b6b103c5..8594bbd1b1 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<Props> {
/**
diff --git a/react/features/analytics/AnalyticsEvents.js b/react/features/analytics/AnalyticsEvents.js
index 566948939d..bc638a9fa0 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 f77783a310..2d9b768df6 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 0c4f689c74..9272427dfd 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 ffc6aa9d5b..43547e824e 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 9d059d3c99..6a2acc0ccc 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<Props> {
/**
diff --git a/react/features/authentication/components/native/LoginDialog.js b/react/features/authentication/components/native/LoginDialog.js
index 5d394e61ca..105982f3be 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 4be9661e38..775da1a370 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 6a567be100..f34233f50d 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 2badd0c96c..e099c5d679 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 31bbe85b7e..47834a9b91 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 1d50fcab8c..e108693ec3 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<Props> {
);
}
- _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 6e509c566c..57a1b8b17b 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<Props> {
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 c81e2a5406..b1d2188cba 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 b8e377c561..3334a29eb7 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 9855b91f1d..0aee6d45d4 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 ac97a4f398..eb6d37a095 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<Action>,
/**
- * 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 ff26ce818e..ec0869e013 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 d66fc0ae36..dda7c05b60 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 f732e73b6b..c75a073f98 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<Props, *> {
);
}
- _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 4e782f6423..5356feb9ad 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<P: Props, S: State> extends AbstractDialog<P, S> {
*
* @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 1c4189eb90..cd94d262c5 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<P: Props, S: *> extends BaseDialog<P, S> {
/**
@@ -84,16 +84,16 @@ class BaseSubmitDialog<P: Props, S: *> extends BaseDialog<P, S> {
_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 8ec9a453ea..9fc917e4e5 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 f827f27c4a..98ba5d2a4b 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<Props, *> {
);
}
- _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 2245043853..d9bff38c78 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 5541d49a90..59f1f6e93a 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 0f1d29488e..9e8ea00417 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<P: Props, S: *> extends Component<P, S> {
/**
diff --git a/react/features/base/dialog/components/web/Dialog.js b/react/features/base/dialog/components/web/Dialog.js
index 1610b77e84..b268d8aa39 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 4aa5c3bc21..f54958af05 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 35282fb14f..421c810f3e 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<Props, State> {
/**
diff --git a/react/features/base/dialog/components/web/ModalHeader.js b/react/features/base/dialog/components/web/ModalHeader.js
index fd702bbb23..e0d30b4dca 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<Props>}
+ * @augments {React.Component<Props>}
*/
class ModalHeader extends React.Component<Props> {
static defaultProps = {
diff --git a/react/features/base/dialog/components/web/StatelessDialog.js b/react/features/base/dialog/components/web/StatelessDialog.js
index 62571388df..94ca399d25 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<Props> {
/**
* 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 4bca078942..dff8849224 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 5ec6da131a..2a58111df4 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 104b6d303a..f34e3a0e22 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 4aa49fa999..2d9baffef0 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 f822ce8e23..f95a048942 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<P: Props> extends Component<P, State> {
*
* @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 ce2fe15196..01f9ca1a9b 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 4e0fcb9559..ef818dcf29 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<Props, *> {
/**
diff --git a/react/features/base/logging/JitsiMeetInMemoryLogStorage.js b/react/features/base/logging/JitsiMeetInMemoryLogStorage.js
index 2e86387a18..cc2a49ef11 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 4931c798f8..72487fa654 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 dc2778d939..26f395e6c8 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 d32e91e182..da19700f9d 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<Props> {
/**
diff --git a/react/features/base/media/components/native/VideoTransform.js b/react/features/base/media/components/native/VideoTransform.js
index 6c838b7323..cb7250128d 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<Props, State> {
};
}
- _didMove: Object => boolean
+ _didMove: Object => boolean;
/**
* Determines if there was large enough movement to be handled.
@@ -315,7 +315,7 @@ class VideoTransform extends Component<Props, State> {
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<Props, State> {
};
}
- _getTransformStyle: () => Object
+ _getTransformStyle: () => Object;
/**
* Generates a transform style object to be used on the component.
@@ -460,7 +460,7 @@ class VideoTransform extends Component<Props, State> {
}
}
- _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<Props, State> {
this.lastTap = 0;
}
- _onLayout: Object => void
+ _onLayout: Object => void;
/**
* Callback for the onLayout of the component.
@@ -535,7 +535,7 @@ class VideoTransform extends Component<Props, State> {
});
}
- _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<Props, State> {
|| gestureState.numberActiveTouches === 2);
}
- _onPanResponderGrant: (Object, Object) => void
+ _onPanResponderGrant: (Object, Object) => void;
/**
* Calculates the initial touch distance.
@@ -571,7 +571,7 @@ class VideoTransform extends Component<Props, State> {
}
}
- _onPanResponderMove: (Object, Object) => void
+ _onPanResponderMove: (Object, Object) => void;
/**
* Handles the PanResponder move (touch move) event.
@@ -615,7 +615,7 @@ class VideoTransform extends Component<Props, State> {
}
}
- _onPanResponderRelease: () => void
+ _onPanResponderRelease: () => void;
/**
* Handles the PanResponder gesture end event.
@@ -631,7 +631,7 @@ class VideoTransform extends Component<Props, State> {
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 da0e3859a9..d5ec1ddc79 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<Props> {
_videoElement: ?Object;
diff --git a/react/features/base/media/components/web/VideoTrack.js b/react/features/base/media/components/web/VideoTrack.js
index ffd417c351..f40217aa0b 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<Props> {
/**
diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.js
index 268365b726..0528f39ef8 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<Props> {
diff --git a/react/features/base/participants/components/styles.js b/react/features/base/participants/components/styles.js
index cff2ca0271..0ba9747131 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 b19a43c3fc..952112b249 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 f94bed66f8..d3c76f4935 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 2e11f59dab..e49b325d8a 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<Props, State> {
/**
diff --git a/react/features/base/premeeting/components/web/ActionButton.js b/react/features/base/premeeting/components/web/ActionButton.js
index 3d380115d4..80ba7d468e 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 0744b257db..2d034e2222 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 3daafdbb09..6d7c3f42b1 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 394f8fea9d..eff136d5b7 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 88f7de2dce..ddedbb7e8f 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 29ccabac46..c2e07b5d4f 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<string>
}
/**
- * 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<Item>,
/**
* Optional properties added only to fix some flow errors thrown by React
- * SectionList
+ * SectionList.
*/
ItemSeparatorComponent?: ?ComponentType<any>,
@@ -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 cb3fe4f389..8f20b77b9c 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<P: Props> extends Component<P> {
/**
diff --git a/react/features/base/react/components/NavigateSectionList.js b/react/features/base/react/components/NavigateSectionList.js
index 75bc37f233..eb8bb1511a 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<Section>
};
diff --git a/react/features/base/react/components/native/AvatarListItem.js b/react/features/base/react/components/native/AvatarListItem.js
index 22298cd0ca..f6c27ec968 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 4afa6279d8..2af9d88943 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 ccb4ffc32c..ebcb907385 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 9880bcd31e..488f603f1b 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<P: Props> extends AbstractContainer<P> {
/**
diff --git a/react/features/base/react/components/native/ForwardButton.js b/react/features/base/react/components/native/ForwardButton.js
index 066b9e20b3..15d2683e32 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 60487ce981..6e6455228f 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 da93e62a1f..1530f7f712 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 1b69a3e341..271277749a 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 71a23e4e54..410f529e6f 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<Props> {
/**
diff --git a/react/features/base/react/components/native/Modal.js b/react/features/base/react/components/native/Modal.js
index 13c12e18e7..22c50e60c4 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 1f8254993f..d967bd5e96 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<Props> {
/**
diff --git a/react/features/base/react/components/native/NavigateSectionListItem.js b/react/features/base/react/components/native/NavigateSectionListItem.js
index 4f15c65e7d..509a452a87 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<Props> {
/**
diff --git a/react/features/base/react/components/native/NavigateSectionListSectionHeader.js b/react/features/base/react/components/native/NavigateSectionListSectionHeader.js
index 258eef23b7..5874ef0108 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<Props> {
/**
diff --git a/react/features/base/react/components/native/PagedList.js b/react/features/base/react/components/native/PagedList.js
index b57f7d4b5e..7b54d8a544 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<Props, State> {
diff --git a/react/features/base/react/components/native/Pressable.js b/react/features/base/react/components/native/Pressable.js
index 339c8b933f..db7c7a1b8e 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 708b198204..6305cba06b 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<Section>
};
@@ -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<Props> {
/**
diff --git a/react/features/base/react/components/native/SlidingView.js b/react/features/base/react/components/native/SlidingView.js
index ffc5fc8125..dd31fa9bbe 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 98b4286ea8..0cf4d8a830 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 efd417ab21..96a50fac3d 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<Props> {
/**
diff --git a/react/features/base/react/components/web/Container.js b/react/features/base/react/components/web/Container.js
index 0576736f4b..1350ae5993 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<P: Props> extends AbstractContainer<P> {
/**
diff --git a/react/features/base/react/components/web/Image.js b/react/features/base/react/components/web/Image.js
index 7298b9f2ba..c2468599f8 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 5ea57bd2e5..5b8b4e2d7b 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 65cf01be80..4d89443ad9 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<Props> {
/**
@@ -108,7 +108,7 @@ class MeetingsList extends Component<Props> {
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 cdf29ee5e8..ce1b8fd063 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: <some content>}
+ * Should be of type {content: <some 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 0c1021cc09..ba99e28d1b 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<P: Props>
extends Component<P> {
@@ -46,7 +46,8 @@ export default class NavigateSectionListItem<P: Props>
* 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 06c7a454bd..372fe47c23 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<Props> {
/**
diff --git a/react/features/base/react/components/web/SectionList.js b/react/features/base/react/components/web/SectionList.js
index 5a3a335665..337b74051d 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<Section>,
/**
- * 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<Props> {
/**
@@ -63,7 +63,7 @@ export default class SectionList extends Component<Props> {
} = 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 76e192f6c5..112cdae5ed 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 063741a9eb..65cfddd21c 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 6ae1abf3c2..a3e0da36ab 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 9eda3ff640..3c9f2b1883 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 230c35cea6..a5e23d8f43 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 4bdca030ed..263be090f1 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 27d21bd063..47a90991b6 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 432bb757a4..0fd80b3c5c 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<Props> {
diff --git a/react/features/base/toolbox/components/web/OverflowMenuItem.js b/react/features/base/toolbox/components/web/OverflowMenuItem.js
index a89f79b1a5..a38c1147d8 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<Props> {
/**
diff --git a/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.js b/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.js
index cd4c36bcef..24c24669ef 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 9cc66a0d1d..7bdcc5b47a 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<JitsiLocalTrack>}
*
- * @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 35dcf6d387..128d5812f5 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 ff22ef2a01..56f1fb4ac8 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 ceb721497c..51bae070bd 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 08b6d6e1ea..77820b00d9 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<Props> {
/**
diff --git a/react/features/calendar-sync/components/JoinButton.native.js b/react/features/calendar-sync/components/JoinButton.native.js
index 16e82531a3..3f8be7e654 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 0da6ade242..341e62795f 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<Props> {
diff --git a/react/features/calendar-sync/components/MicrosoftSignInButton.web.js b/react/features/calendar-sync/components/MicrosoftSignInButton.web.js
index 932aef40ca..de82411638 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<Props> {
/**
diff --git a/react/features/calendar-sync/web/microsoftCalendar.js b/react/features/calendar-sync/web/microsoftCalendar.js
index aac9101b54..23d45e7743 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 91843075ed..4500e3d0c2 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<P: Props> extends PureComponent<P> {
static defaultProps = {
diff --git a/react/features/chat/components/native/Chat.js b/react/features/chat/components/native/Chat.js
index a8af2c422a..6a22c9a02d 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 9edd5a004a..51835d187f 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<Props> {
);
}
- _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 dbbf38b12d..6d153bec17 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<Props> {
_getMessagesGroupedBySender: () => Array<Array<Object>>;
- _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 83f79e51f5..8db700bc7a 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<Props, *> {
/**
* 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 f482b2651b..8869a3cbd0 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<Props> {
diff --git a/react/features/chat/components/web/ChatInput.js b/react/features/chat/components/web/ChatInput.js
index d2d436d9dc..a21593d51f 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<Props, State> {
_textArea: ?HTMLTextAreaElement;
diff --git a/react/features/chat/components/web/ChatMessageGroup.js b/react/features/chat/components/web/ChatMessageGroup.js
index 34feffd801..49295c459d 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<Props> {
static defaultProps = {
diff --git a/react/features/chat/components/web/DisplayNameForm.js b/react/features/chat/components/web/DisplayNameForm.js
index 718d05a11c..b5a159cb93 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<Props, State> {
state = {
diff --git a/react/features/chat/components/web/MessageContainer.js b/react/features/chat/components/web/MessageContainer.js
index 8146c3973e..607a62c0f8 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<Props> {
/**
diff --git a/react/features/chat/components/web/SmileysPanel.js b/react/features/chat/components/web/SmileysPanel.js
index 305bcdaf68..05a095c8b3 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<Props> {
/**
diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js
index aa68c62cc9..92180bef82 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 f37e5ba960..0264b251f9 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<Props, State> {
/**
diff --git a/react/features/conference/components/AbstractConference.js b/react/features/conference/components/AbstractConference.js
index e87e819516..df4c04a472 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<P: AbstractProps, S>
extends Component<P, S> {
diff --git a/react/features/conference/components/ConferenceTimer.js b/react/features/conference/components/ConferenceTimer.js
index 80b8f99df1..0c8583cea4 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<Props, State> {
@@ -136,10 +136,10 @@ class ConferenceTimer extends Component<Props, State> {
*/
_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 1075b720ba..6365193efb 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 39a356b5c1..1c26ba1795 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 abe49c5324..c50627a021 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 c2bf959cf5..46dfd0d0a7 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 650177408a..344550f90b 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 8bf200346b..260385ebf2 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 1d36ce3984..1490b1dfb3 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<P: Props, S: State> extends Component<P, S> {
/**
* 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 dafe3f1140..a79262d369 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<Props, State> {
/**
diff --git a/react/features/connection-indicator/components/web/ConnectionIndicatorContent.js b/react/features/connection-indicator/components/web/ConnectionIndicatorContent.js
index 857bd29ecb..995d1a273c 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<any>,
/**
- * 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<Props, State> {
/**
diff --git a/react/features/connection-indicator/statsEmitter.js b/react/features/connection-indicator/statsEmitter.js
index 7e54837cac..47612ee53a 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 35d96ce940..110c2e3fd7 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<Props> {
/**
diff --git a/react/features/desktop-picker/components/DesktopPicker.js b/react/features/desktop-picker/components/DesktopPicker.js
index d5c35a2349..a89f10e373 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<Props, State> {
/**
diff --git a/react/features/desktop-picker/components/DesktopPickerPane.js b/react/features/desktop-picker/components/DesktopPickerPane.js
index 8727541777..41fe297eff 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<Props> {
diff --git a/react/features/desktop-picker/components/DesktopSourcePreview.js b/react/features/desktop-picker/components/DesktopSourcePreview.js
index 62584558b2..b7e2497726 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<Props> {
/**
diff --git a/react/features/device-selection/components/AudioOutputPreview.js b/react/features/device-selection/components/AudioOutputPreview.js
index 66c010f6eb..dbc6f47b87 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<Props> {
_audioElement: ?Object;
diff --git a/react/features/device-selection/components/DeviceSelection.js b/react/features/device-selection/components/DeviceSelection.js
index 385a083344..bafef67429 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<Props, State> {
diff --git a/react/features/device-selection/components/DeviceSelector.web.js b/react/features/device-selection/components/DeviceSelector.web.js
index 257a52c8b9..45847132f1 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<Props> {
/**
diff --git a/react/features/device-selection/components/VideoInputPreview.js b/react/features/device-selection/components/VideoInputPreview.js
index 760eb22a0a..3a916f7dfd 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<Props> {
/**
diff --git a/react/features/display-name/components/web/DisplayName.js b/react/features/display-name/components/web/DisplayName.js
index 7588e7cd1d..b71f12f1af 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<Props, State> {
_nameInput: ?HTMLInputElement;
diff --git a/react/features/display-name/components/web/DisplayNamePrompt.js b/react/features/display-name/components/web/DisplayNamePrompt.js
index f3b9450cde..73e6c72307 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<State> {
/**
diff --git a/react/features/dynamic-branding/reducer.js b/react/features/dynamic-branding/reducer.js
index ee0a9c5bcf..7817ccc4bb 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 2ee97f016a..3d68e6c5b1 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<Props> {
diff --git a/react/features/e2ee/components/E2EESection.js b/react/features/e2ee/components/E2EESection.js
index bbc902140b..6cd06c274b 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<Props, State> {
/**
diff --git a/react/features/embed-meeting/components/EmbedMeetingTrigger.js b/react/features/embed-meeting/components/EmbedMeetingTrigger.js
index bb535992f8..612da4d071 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 f73d8d31f7..94a19ba1cd 100644
--- a/react/features/etherpad/components/SharedDocumentButton.js
+++ b/react/features/etherpad/components/SharedDocumentButton.js
@@ -40,10 +40,10 @@ class SharedDocumentButton extends AbstractButton<Props, *> {
/**
* 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 f01630a7cd..8a64e23dd6 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 3d07f37492..501c8889e7 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 abeeaa2961..50eed34970 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<Props, State> {
/**
diff --git a/react/features/filmstrip/components/AbstractRaisedHandIndicator.js b/react/features/filmstrip/components/AbstractRaisedHandIndicator.js
index 6c95801f4b..69e2cdb7f9 100644
--- a/react/features/filmstrip/components/AbstractRaisedHandIndicator.js
+++ b/react/features/filmstrip/components/AbstractRaisedHandIndicator.js
@@ -42,7 +42,7 @@ export default class AbstractRaisedHandIndicator<P: Props>
*
* @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 354aa3b4e0..3f02a549be 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<Props> {
/**
* 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 1c1272c825..6008be5830 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<Props> {
/**
diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js
index 7046d9ae0e..f82dd92cd5 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 9422df3c96..8822fbae8f 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<Props> {
diff --git a/react/features/filmstrip/components/native/styles.js b/react/features/filmstrip/components/native/styles.js
index 45f6c85649..7d24c25492 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 1f7f49303e..e6fdb8af76 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<Props> {
/**
diff --git a/react/features/filmstrip/components/web/DominantSpeakerIndicator.js b/react/features/filmstrip/components/web/DominantSpeakerIndicator.js
index a1e16c35c7..bd576685ff 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<Props> {
/**
diff --git a/react/features/filmstrip/components/web/Filmstrip.js b/react/features/filmstrip/components/web/Filmstrip.js
index c2f9fc88cd..77ad566d28 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 <Props> {
diff --git a/react/features/filmstrip/components/web/ModeratorIndicator.js b/react/features/filmstrip/components/web/ModeratorIndicator.js
index 0f6b88baf5..aa802d4ece 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<Props> {
/**
diff --git a/react/features/filmstrip/components/web/RaisedHandIndicator.js b/react/features/filmstrip/components/web/RaisedHandIndicator.js
index 53d4aaa856..848f81b7f0 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<Props> {
/**
diff --git a/react/features/filmstrip/components/web/StatusIndicators.js b/react/features/filmstrip/components/web/StatusIndicators.js
index f2edfe2157..387725f3c1 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<Props> {
/**
diff --git a/react/features/filmstrip/components/web/Thumbnail.js b/react/features/filmstrip/components/web/Thumbnail.js
index 41bd2a5864..201440ed8a 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<Props, State> {
/**
@@ -451,7 +451,7 @@ class Thumbnail extends Component<Props, State> {
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 54775a2edd..88c104d78e 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<Props> {
/**
diff --git a/react/features/filmstrip/constants.js b/react/features/filmstrip/constants.js
index 596e4167f7..4be05f1192 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<string>}
* @constant
*/
@@ -133,6 +139,7 @@ export const DISPLAY_MODE_TO_CLASS_NAME = [
/**
* Maps the display modes to string.
+ *
* @type {Array<string>}
* @constant
*/
diff --git a/react/features/follow-me/middleware.js b/react/features/follow-me/middleware.js
index 48997c20fd..44b4a4ed13 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 9f8dc47258..0ab7b92670 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 50dec27d8d..05d8e21947 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 9b5cc1bf8e..a0525e3434 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 4945162dbc..b4a03cbd70 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 446722e9dd..2e10d48846 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 702cc3d651..a05842d5bb 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<Props, State> {
}
}
- _invite: Array<Object> => Promise<Array<Object>>
+ _invite: Array<Object> => Promise<Array<Object>>;
_isAddDisabled: () => boolean;
- _keyExtractor: Object => string
+ _keyExtractor: Object => string;
/**
* Key extractor for the flatlist.
@@ -307,7 +307,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
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<Props, State> {
this._onTypeQuery('');
}
- _onInvite: () => void
+ _onInvite: () => void;
/**
* Invites the selected entries.
@@ -342,7 +342,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
});
}
- _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<Props, State> {
};
}
- _onShareMeeting: () => void
+ _onShareMeeting: () => void;
/**
* Shows the system share sheet to share the meeting information.
@@ -389,7 +389,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
}
}
- _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<Props, State> {
_query: (string) => Promise<Array<Object>>;
- _renderInvitedItem: Object => React$Element<any> | null
+ _renderInvitedItem: Object => React$Element<any> | null;
/**
* Renders a single item in the invited {@code FlatList}.
@@ -471,7 +471,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
);
}
- _renderItem: Object => React$Element<any> | null
+ _renderItem: Object => React$Element<any> | null;
/**
* Renders a single item in the search result {@code FlatList}.
@@ -526,7 +526,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
);
}
- _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 c7e7b3d4ea..a80301128a 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 18488f5837..49d2aff494 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<Props> {
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 f56d703720..8bcb97a570 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 cde47d2fee..85866d456c 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 3dc61f9a23..fde4938188 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<Props, State> {
);
}
- _invite: Array<Object> => Promise<*>
+ _invite: Array<Object> => 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 172eaf5d89..5e8bc3fe3d 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 6f5c62cc24..be56bbe6e8 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<Props> {
/**
diff --git a/react/features/invite/components/callee-info/CalleeInfoContainer.js b/react/features/invite/components/callee-info/CalleeInfoContainer.js
index bdfc7f7fdd..fdf6060bbe 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<Props> {
/**
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 e468c45674..5d9fd970d0 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<Props> {
/**
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 81fe83976d..328957919f 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<Props> {
/**
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 6feb54df25..d30a422bba 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<Props, State> {
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 c644555a29..fb64a7caa9 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<Props> {
/**
diff --git a/react/features/invite/constants.js b/react/features/invite/constants.js
index 7c9c124303..a2f8a31678 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 c2319ee0f0..cd727411e4 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 c6c36ea89a..b15cdd3560 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 670f6947db..10851c13b7 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<Props> {
/**
diff --git a/react/features/large-video/components/LargeVideo.native.js b/react/features/large-video/components/LargeVideo.native.js
index 38b51bf78c..078df3f4df 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<Props, State> {
state = {
diff --git a/react/features/large-video/components/LargeVideo.web.js b/react/features/large-video/components/LargeVideo.web.js
index 7e8e213bb4..8b4f003cef 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<Props> {
- _tappedTimeout: ?TimeoutID
+ _tappedTimeout: ?TimeoutID;
/**
* Constructor of the component.
@@ -126,7 +126,7 @@ class LargeVideo extends Component<Props> {
);
}
- _clearTapTimeout: () => void
+ _clearTapTimeout: () => void;
/**
* Clears the '_tappedTimout'.
@@ -165,7 +165,7 @@ class LargeVideo extends Component<Props> {
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 74ffa4b6c1..f7dce643ad 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<Props> {
_canvasEl: Object;
diff --git a/react/features/lobby/components/AbstractLobbyScreen.js b/react/features/lobby/components/AbstractLobbyScreen.js
index e519093267..350bfa47de 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 475e1995ae..4fa5e84c31 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 = [ '[email protected]', '[email protected]' ];
/**
* 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 c3351d2509..3078872fb3 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<Props, State> {
diff --git a/react/features/local-recording/components/LocalRecordingLabel.web.js b/react/features/local-recording/components/LocalRecordingLabel.web.js
index b4642db0ce..aeda480005 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<Props> {
diff --git a/react/features/local-recording/controller/RecordingController.js b/react/features/local-recording/controller/RecordingController.js
index 2f5e7f956c..2065a5647f 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 5f381b1434..9fdfaa7023 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 c817501da1..8d724a3067 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 431cdead87..5b288001b7 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 e2dea07294..4b6e7a09ef 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 8eae352f85..a247fdc51b 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 9b526751df..77114aaf21 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 f17e8f26e8..b15ab21013 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<Props> {
_init: Promise<*>;
diff --git a/react/features/no-audio-signal/components/DialInLink.js b/react/features/no-audio-signal/components/DialInLink.js
index 4b30652b62..2a4e02cb4a 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<Props> {
/**
diff --git a/react/features/no-audio-signal/reducer.js b/react/features/no-audio-signal/reducer.js
index 7fa2d1a152..11706057e5 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 5fbc2ecc78..d7a2b7a973 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 a4d049853f..8215ca5d7c 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<P: Props> extends Component<P> {
/**
@@ -127,7 +127,7 @@ export default class AbstractNotification<P: Props> extends Component<P> {
this._onDismissed = this._onDismissed.bind(this);
}
- _getDescription: () => Array<string>
+ _getDescription: () => Array<string>;
/**
* Returns the description array to be displayed.
@@ -153,7 +153,7 @@ export default class AbstractNotification<P: Props> extends Component<P> {
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 6988d911f8..37d2874193 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<Props> {
/**
diff --git a/react/features/notifications/components/native/NotificationsContainer.js b/react/features/notifications/components/native/NotificationsContainer.js
index b4a747f0ab..b9f6bded07 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<Props> {
diff --git a/react/features/notifications/components/web/Notification.js b/react/features/notifications/components/web/Notification.js
index df02db0731..19ee1e4396 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<Props> {
/**
@@ -57,9 +57,9 @@ class Notification extends AbstractNotification<Props> {
);
}
- _getDescription: () => Array<string>
+ _getDescription: () => Array<string>;
- _getDescriptionKey: () => string
+ _getDescriptionKey: () => string;
_onDismissed: () => void;
@@ -157,13 +157,13 @@ class Notification extends AbstractNotification<Props> {
const secIconColor = ICON_COLOR[this.props.appearance];
const iconSize = 'medium';
- return <>
+ return (<>
<div className = { `ribbon ${appearance}` } />
<EditorInfoIcon
label = { appearance }
secondaryColor = { secIconColor }
size = { iconSize } />
- </>;
+ </>);
}
}
diff --git a/react/features/notifications/components/web/NotificationsContainer.js b/react/features/notifications/components/web/NotificationsContainer.js
index 769182f960..29f71eadc9 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<Props> {
_api: Object;
diff --git a/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.js b/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.js
index 697b2a1f06..43f3d11789 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<Props> {
/**
diff --git a/react/features/overlay/components/AbstractPageReloadOverlay.js b/react/features/overlay/components/AbstractPageReloadOverlay.js
index 68384468e3..0d3628bd00 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 0796470fc0..a71d213a22 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<Props> {
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<Props> {
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 a6f35c3335..736caa82c7 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<Props> {
/**
diff --git a/react/features/overlay/components/web/PageReloadOverlay.js b/react/features/overlay/components/web/PageReloadOverlay.js
index 12cc179aee..5fd42df343 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<Props> {
);
}
- _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 08baf953aa..f4af83eeec 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 dde6c07478..b92850f926 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 43bcc16c10..94e2c1a417 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 4d6e033740..85aa5cb737 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 8673ca59a2..f02332a734 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 302d74aa48..540650b311 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 1fdfac17c4..dd2109e775 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 54878a3743..7535fcb80d 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 f99e6b8b5f..f237f724b2 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 (
- <>
- <div className = { classes.headingContainer }>
- <div className = { classes.heading }>
- {t('participantsPane.headings.lobby', { count: participants.length })}
+ <>
+ <div className = { classes.headingContainer }>
+ <div className = { classes.heading }>
+ {t('participantsPane.headings.lobby', { count: participants.length })}
+ </div>
+ <div
+ className = { classes.link }
+ onClick = { admitAll }>{t('lobby.admitAll')}</div>
</div>
- <div
- className = { classes.link }
- onClick = { admitAll }>{t('lobby.admitAll')}</div>
- </div>
- <LobbyParticipantItems
- openDrawerForParticipant = { openDrawerForParticipant }
- overflowDrawer = { overflowDrawer }
- participants = { participants } />
- <JitsiPortal>
- <Drawer
- isOpen = { Boolean(drawerParticipant && overflowDrawer) }
- onClose = { closeDrawer }>
- <ul className = { classes.drawerActions }>
- <li className = { classes.drawerItem }>
- <Avatar
- className = { classes.icon }
- participantId = { drawerParticipant && drawerParticipant.participantID }
- size = { 20 } />
- <span>{ drawerParticipant && drawerParticipant.displayName }</span>
- </li>
- <li
- className = { classes.drawerItem }
- onClick = { admit }>
- <Icon
- className = { classes.icon }
- size = { 20 }
- src = { IconCheck } />
- <span>{ t('lobby.admit') }</span>
- </li>
- <li
- className = { classes.drawerItem }
- onClick = { reject }>
- <Icon
- className = { classes.icon }
- size = { 20 }
- src = { IconClose } />
- <span>{ t('lobby.reject')}</span>
- </li>
- </ul>
- </Drawer>
- </JitsiPortal>
- </>
+ <LobbyParticipantItems
+ openDrawerForParticipant = { openDrawerForParticipant }
+ overflowDrawer = { overflowDrawer }
+ participants = { participants } />
+ <JitsiPortal>
+ <Drawer
+ isOpen = { Boolean(drawerParticipant && overflowDrawer) }
+ onClose = { closeDrawer }>
+ <ul className = { classes.drawerActions }>
+ <li className = { classes.drawerItem }>
+ <Avatar
+ className = { classes.icon }
+ participantId = { drawerParticipant && drawerParticipant.participantID }
+ size = { 20 } />
+ <span>{ drawerParticipant && drawerParticipant.displayName }</span>
+ </li>
+ <li
+ className = { classes.drawerItem }
+ onClick = { admit }>
+ <Icon
+ className = { classes.icon }
+ size = { 20 }
+ src = { IconCheck } />
+ <span>{ t('lobby.admit') }</span>
+ </li>
+ <li
+ className = { classes.drawerItem }
+ onClick = { reject }>
+ <Icon
+ className = { classes.icon }
+ size = { 20 }
+ src = { IconClose } />
+ <span>{ t('lobby.reject')}</span>
+ </li>
+ </ul>
+ </Drawer>
+ </JitsiPortal>
+ </>
);
}
diff --git a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
index eac6a65978..e142fa66f0 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 59d1a60b93..84ee6ea4a8 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 afebbb0b23..1138bef387 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 62973e8a1e..ae8c68f56b 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<string>
+};
+
/**
* 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 1b5fe842bd..00ac407c0e 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 b435718933..c11631a4b1 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 79fae3f6e1..7f289249ef 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<Props, State> {
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 abe2839fba..ce788cd02a 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 9dd939d967..f9b64e4214 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 50fbeea2ef..64a73cb89a 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 c41897b9c5..d29f91adb6 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 bf86471fbe..499b64445d 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
&& <Text style = { chatStyles.noPollText } >
{t('polls.results.empty')}
</Text>}
- <FlatList
- data = { listPolls }
- extraData = { listPolls }
- // eslint-disable-next-line react/jsx-no-bind
- keyExtractor = { (item, index) => index.toString() }
- ref = { flatlistRef }
- renderItem = { renderItem } />
- </>
+ <FlatList
+ data = { listPolls }
+ extraData = { listPolls }
+ // eslint-disable-next-line react/jsx-no-bind
+ keyExtractor = { (item, index) => 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 ff8842effa..9ba5468a3f 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<Props, HTMLElement>(({ pollId }, ref) => {
+const PollItem = React.forwardRef<Props, HTMLElement>(({ 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 dad6327189..536d3e8cd6 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
- ? <div className = 'pane-content'>
- <Icon
- className = 'empty-pane-icon'
- src = { IconChatUnread } />
- <span className = 'empty-pane-message'>{t('polls.results.empty')}</span>
- </div>
- : listPolls.map((id, index) => (
- <PollItem
- key = { id }
- pollId = { id }
- ref = { listPolls.length - 1 === index ? pollListEndRef : null } />
- ))}
- </>
+ <>
+ {listPolls.length === 0
+ ? <div className = 'pane-content'>
+ <Icon
+ className = 'empty-pane-icon'
+ src = { IconChatUnread } />
+ <span className = 'empty-pane-message'>{t('polls.results.empty')}</span>
+ </div>
+ : listPolls.map((id, index) => (
+ <PollItem
+ key = { id }
+ pollId = { id }
+ ref = { listPolls.length - 1 === index ? pollListEndRef : null } />
+ ))}
+ </>
);
};
diff --git a/react/features/polls/types.js b/react/features/polls/types.js
index 14500f3451..65f36e1cb2 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<boolean>
};
@@ -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<boolean> | 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<string, string> }>,
};
diff --git a/react/features/prejoin/components/PrejoinApp.js b/react/features/prejoin/components/PrejoinApp.js
index afdb945734..9181b4f3da 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<Props> {
_init: Promise<*>;
diff --git a/react/features/prejoin/components/dialogs/DialInDialog.js b/react/features/prejoin/components/dialogs/DialInDialog.js
index 9c54efceb4..a0e5e6ef5f 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 46d1db43b0..6e7b82ceb1 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 73af3f5a4e..c8891d1665 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 f480ea52e0..3ffed94ae4 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<Props> {
/**
diff --git a/react/features/reactions/components/native/RaiseHandButton.js b/react/features/reactions/components/native/RaiseHandButton.js
index 085d7b2765..f8c618cac4 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<any>,
/**
- * 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 3125fe3670..1e39afe4f1 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 (
<TouchableHighlight
diff --git a/react/features/reactions/components/web/ReactionButton.js b/react/features/reactions/components/web/ReactionButton.js
index 72d03bad11..d1fe384cdb 100644
--- a/react/features/reactions/components/web/ReactionButton.js
+++ b/react/features/reactions/components/web/ReactionButton.js
@@ -23,7 +23,7 @@ type Props = AbstractToolbarButtonProps & {
tooltipPosition: string,
/**
- * Optional label for the button
+ * Optional label for the button.
*/
label?: string
};
@@ -47,7 +47,7 @@ type State = {
/**
* Represents a button in the reactions menu.
*
- * @extends AbstractToolbarButton
+ * @augments AbstractToolbarButton
*/
class ReactionButton extends AbstractToolbarButton<Props, State> {
/**
diff --git a/react/features/reactions/components/web/ReactionEmoji.js b/react/features/reactions/components/web/ReactionEmoji.js
index deba0907d3..a04c68f3ed 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 e26946f578..7e5b45eaa0 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 569b4ca6eb..e28f71b893 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 = (<ToolbarButton
accessibilityLabel = { t('toolbar.accessibilityLabel.raiseHand') }
diff --git a/react/features/reactions/components/web/ReactionsMenuPopup.js b/react/features/reactions/components/web/ReactionsMenuPopup.js
index b328a71fd2..553847a303 100644
--- a/react/features/reactions/components/web/ReactionsMenuPopup.js
+++ b/react/features/reactions/components/web/ReactionsMenuPopup.js
@@ -1,7 +1,7 @@
// @flow
import InlineDialog from '@atlaskit/inline-dialog';
-import React from 'react';
+import React, { useCallback } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { toggleReactionsMenuVisibility } from '../../actions.web';
@@ -32,15 +32,9 @@ function ReactionsMenuPopup({
const isOpen = useSelector(state => getReactionsMenuVisibility(state));
const dispatch = useDispatch();
-
- /**
- * Toggles reactions menu visibility.
- *
- * @returns {void}
- */
- function onClose() {
+ const onClose = useCallback(() => {
dispatch(toggleReactionsMenuVisibility());
- }
+ });
return (
<div className = 'reactions-menu-popup'>
diff --git a/react/features/reactions/constants.js b/react/features/reactions/constants.js
index 5f0c3fd19a..eb8a41469a 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 851c1ed39c..4147ac1716 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 9f7004efb4..7ac435eca5 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 774d863cc2..0f3a0ec786 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 1f68c4428d..940f176aea 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 2ed1aa55cf..c4c538c86a 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 e0bc5c98d6..53e509d946 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 4c710ef29b..d3e1da6a6b 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 dd0c186f5f..46eca5002d 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<Props> {
/**
diff --git a/react/features/recording/components/LiveStream/AbstractStreamKeyForm.js b/react/features/recording/components/LiveStream/AbstractStreamKeyForm.js
index 944f1b1ddd..636e4a22a2 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<P: Props>
extends Component<P, State> {
@@ -104,7 +104,7 @@ export default class AbstractStreamKeyForm<P: Props>
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 50aca6c72c..31fb2c8131 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<Props> {
/**
@@ -142,7 +142,7 @@ class GoogleSigninForm extends Component<Props> {
);
}
- _logGoogleError: Object => void
+ _logGoogleError: Object => void;
/**
* A helper function to log developer related errors.
@@ -157,7 +157,7 @@ class GoogleSigninForm extends Component<Props> {
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<Props> {
}
}
- _onSignIn: () => void
+ _onSignIn: () => void;
/**
* Initiates a sign in if the user is not signed in yet.
@@ -191,7 +191,7 @@ class GoogleSigninForm extends Component<Props> {
}, 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 810e35f3fd..b45edd71c6 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<Props> {
_onSubmit: () => boolean;
- _onStreamKeyChange: string => void
+ _onStreamKeyChange: string => void;
_onStreamKeyChangeNative: string => void;
@@ -88,7 +88,7 @@ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog<Props> {
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<Props> {
});
}
- _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 19170434b0..53386d277c 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 29a73a28d5..792a87b1db 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<Props> {
/**
@@ -136,7 +136,7 @@ class StreamKeyForm extends AbstractStreamKeyForm<Props> {
);
}
- _onInputChange: Object => void
+ _onInputChange: Object => void;
_onOpenGooglePrivacyPolicy: () => void;
@@ -150,7 +150,7 @@ class StreamKeyForm extends AbstractStreamKeyForm<Props> {
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 ed07d94362..dd3cf6fdee 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<Props, State> {
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 b46a025902..e9c27060b1 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<Props> {
@@ -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 0f4feb54d3..4b5645738b 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 61921bb02e..61b79cff96 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<Props> {
@@ -94,9 +94,9 @@ class StreamKeyForm extends AbstractStreamKeyForm<Props> {
);
}
- _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<Props> {
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 9d98c1be87..1c4ed8ff19 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<Props, State> {
/**
diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialog.js b/react/features/recording/components/Recording/AbstractStartRecordingDialog.js
index feb2ec36ff..d93976bbf3 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<Props, State> {
* @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 bc74a74073..95ad56c096 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<P: Props>
extends Component<P> {
diff --git a/react/features/recording/components/Recording/StartRecordingDialogContent.js b/react/features/recording/components/Recording/StartRecordingDialogContent.js
index 1db16ae5cc..a4e20686ff 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<Props> {
/**
diff --git a/react/features/recording/components/Recording/native/StartRecordingDialog.js b/react/features/recording/components/Recording/native/StartRecordingDialog.js
index 5ccf1d5e29..16d40748fb 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 a66581bd85..fcbb82b2f1 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<Props> {
@@ -31,7 +31,7 @@ class StopRecordingDialog extends AbstractStopRecordingDialog<Props> {
);
}
- _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 b762a6e6af..a1e65d504f 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 20a3647ff6..67ffa7dd0e 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<Props> {
/**
@@ -37,7 +37,7 @@ class StopRecordingDialog extends AbstractStopRecordingDialog<Props> {
);
}
- _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 1c9f38a5f5..90d2bf2505 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 a44903ef6f..db78959a04 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 02fca7e4ad..c083dae3ff 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 1d657d7505..ad4716d9dd 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 60a2fe27e0..cd48e62a35 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 12ff5e7002..86e0d3fb31 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<Props> {
/**
* Implements {@Component#render}.
- *§
+ *§.
+ *
* @inheritdoc
*/
render() {
diff --git a/react/features/screenshot-capture/constants.js b/react/features/screenshot-capture/constants.js
index 9db81c0770..5daa1ffea1 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 b02b9dedc4..475461679e 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<Props, State> {
/**
diff --git a/react/features/security/components/security-dialog/web/PasswordSection.js b/react/features/security/components/security-dialog/web/PasswordSection.js
index a77ac2ad4f..4b4c051799 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 fb7a0c500d..a91c4d5d5f 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 0fc2d7e4ae..7997196c5a 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 (
<List.Accordion
diff --git a/react/features/settings/components/native/SettingsView.js b/react/features/settings/components/native/SettingsView.js
index ce6eeaa20e..2fa7b39531 100644
--- a/react/features/settings/components/native/SettingsView.js
+++ b/react/features/settings/components/native/SettingsView.js
@@ -89,7 +89,7 @@ type Props = AbstractProps & {
/**
* The native container rendering the app settings page.
*
- * @extends AbstractSettingsView
+ * @augments AbstractSettingsView
*/
class SettingsView extends AbstractSettingsView<Props, State> {
_urlField: Object;
diff --git a/react/features/settings/components/web/CalendarTab.js b/react/features/settings/components/web/CalendarTab.js
index 8451fbb192..2c74057750 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<Props, State> {
/**
diff --git a/react/features/settings/components/web/MoreTab.js b/react/features/settings/components/web/MoreTab.js
index 3f037285e6..25f867222c 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<Props, State> {
/**
diff --git a/react/features/settings/components/web/ProfileTab.js b/react/features/settings/components/web/ProfileTab.js
index 681d8d67ed..0af6ec5ad7 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<Props> {
static defaultProps = {
diff --git a/react/features/settings/components/web/SettingsDialog.js b/react/features/settings/components/web/SettingsDialog.js
index 1126da3e33..cd68a0779f 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<Props> {
/**
diff --git a/react/features/settings/components/web/SoundsTab.js b/react/features/settings/components/web/SoundsTab.js
index 520a5b77d2..39a0184d42 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<Props> {
/**
diff --git a/react/features/settings/components/web/audio/AudioSettingsContent.js b/react/features/settings/components/web/audio/AudioSettingsContent.js
index 65cb4ac1b6..c066e84cb5 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<Props, State> {
_componentWasUnmounted: boolean;
@@ -313,7 +313,7 @@ class AudioSettingsContent extends Component<Props, State> {
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)
)}
</ul>
</div>
@@ -330,7 +330,7 @@ class AudioSettingsContent extends Component<Props, State> {
role = 'radiogroup'
tabIndex = '-1'>
{ outputDevices.map((data, i) =>
- this._renderSpeakerEntry(data, i, outputDevices.length, t),
+ this._renderSpeakerEntry(data, i, outputDevices.length, t)
)}
</ul>
</div>)
diff --git a/react/features/settings/components/web/audio/MicrophoneEntry.js b/react/features/settings/components/web/audio/MicrophoneEntry.js
index 295ab8a5d3..8ec9c6a152 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 21c0eb2d16..bc5bbb596c 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<Props> {
/**
diff --git a/react/features/settings/components/web/audio/TestButton.js b/react/features/settings/components/web/audio/TestButton.js
index 912b7d5d13..3a2f341cc4 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 6adc597b4d..ca62e9c406 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<Props, State> {
_componentWasUnmounted: boolean;
diff --git a/react/features/shared-video/actions.any.js b/react/features/shared-video/actions.any.js
index 58ee71c87e..3e967243d0 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 07f12f36a3..3bd121e85c 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<Props> {
}
/**
- * 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 b8f05630ed..2cc1df5fc5 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<Props> {
/**
diff --git a/react/features/shared-video/components/native/SharedVideoButton.js b/react/features/shared-video/components/native/SharedVideoButton.js
index 175b334684..dc65d262f2 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<Props, *> {
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 a56ec2986a..e864030481 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<Props> {
}
/**
- * 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 8375db0b93..6f3dcfdc87 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<Props> {
/**
diff --git a/react/features/shared-video/components/web/SharedVideoButton.js b/react/features/shared-video/components/web/SharedVideoButton.js
index c226b5d503..08910afd1b 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<Props, *> {
/**
* 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 f9b62cf77d..97e394bde0 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<Props> {
} else if (event.data === YouTube.PlayerState.PAUSED) {
this.onPause();
}
- }
+ };
/**
* Fired when youtube player is ready.
@@ -208,7 +208,7 @@ class YoutubeVideoManager extends AbstractVideoManager<Props> {
};
return options;
- }
+ };
/**
* Implements React Component's render.
diff --git a/react/features/shared-video/constants.js b/react/features/shared-video/constants.js
index 0b12360df4..f3d15410d9 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 def1aabd83..f28a1d9c87 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 d3342883c3..ff74d38c97 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<Props> {
_updateInterval: IntervalID;
diff --git a/react/features/speaker-stats/components/SpeakerStatsItem.js b/react/features/speaker-stats/components/SpeakerStatsItem.js
index efb3b021b4..53aa3781d2 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<Props> {
/**
diff --git a/react/features/speaker-stats/components/SpeakerStatsLabels.js b/react/features/speaker-stats/components/SpeakerStatsLabels.js
index 3e2e467b6d..354124f0f5 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<Props> {
/**
diff --git a/react/features/speaker-stats/components/TimeElapsed.js b/react/features/speaker-stats/components/TimeElapsed.js
index 44a439a101..6701830911 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<Props> {
/**
diff --git a/react/features/speaker-stats/reducer.js b/react/features/speaker-stats/reducer.js
index bfd163d5b0..1b9b9e187e 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 64664028be..914b4c6d3a 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 14cf503289..68adc3611b 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 543be798de..b794ee0bd6 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 4e0d13c7f6..5b0516f0d4 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 c6162a8503..d4d2381210 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 5187c56d4a..551805c48d 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<string> | Object,
diff --git a/react/features/toolbox/components/AudioMuteButton.js b/react/features/toolbox/components/AudioMuteButton.js
index e26b98e224..2a6d0aa8ef 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<Props, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.mute';
diff --git a/react/features/toolbox/components/HangupButton.js b/react/features/toolbox/components/HangupButton.js
index aecca7ff69..0f47fefbea 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<Props, *> {
_hangup: Function;
diff --git a/react/features/toolbox/components/MuteEveryoneButton.js b/react/features/toolbox/components/MuteEveryoneButton.js
index a93aec13ea..f087c80aa2 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<Props, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.muteEveryone';
diff --git a/react/features/toolbox/components/MuteEveryonesVideoButton.js b/react/features/toolbox/components/MuteEveryonesVideoButton.js
index 209b1a6bd2..c0f79a99d3 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<Props, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.muteEveryonesVideo';
diff --git a/react/features/toolbox/components/VideoMuteButton.js b/react/features/toolbox/components/VideoMuteButton.js
index aab6a1880e..093213cccb 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<Props, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.videomute';
diff --git a/react/features/toolbox/components/native/ScreenSharingIosButton.js b/react/features/toolbox/components/native/ScreenSharingIosButton.js
index 2bcb90ac0c..da1a526bb9 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<Props, *> {
- _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 (
- <ScreenCapturePickerView
- ref = { this._setNativeComponent }
- style = { styles.screenCapturePickerView } />
- );
- }
+ _getElementAfter() {
+ return (
+ <ScreenCapturePickerView
+ ref = { this._setNativeComponent }
+ style = { styles.screenCapturePickerView } />
+ );
+ }
}
/**
diff --git a/react/features/toolbox/components/web/AudioSettingsButton.js b/react/features/toolbox/components/web/AudioSettingsButton.js
index aad64df32e..2a8d49079c 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 6c85472534..51be2aa5d0 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<Props, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.fullScreen';
label = 'toolbar.enterFullScreen';
- toggledLabel = 'toolbar.exitFullScreen'
+ toggledLabel = 'toolbar.exitFullScreen';
/**
* Retrieves icon dynamically.
@@ -35,10 +35,10 @@ class FullscreenButton extends AbstractButton<Props, *> {
/**
* 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<Props, *> {
/**
* 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 a7aa6a0744..1b23f1a276 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<Props> {
/**
diff --git a/react/features/toolbox/components/web/ProfileButton.js b/react/features/toolbox/components/web/ProfileButton.js
index 55c0ff463c..ae256c802f 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<Props, *> {
/**
* 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<Props, *> {
/**
* 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 b4b57f491d..1171639e3b 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<Props> {
/**
diff --git a/react/features/toolbox/components/web/ShareDesktopButton.js b/react/features/toolbox/components/web/ShareDesktopButton.js
index 3208ba4540..27631cb5db 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<Props, *> {
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<Props, *> {
/**
* 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 cec25b2cad..4dfd01c664 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<Props> {
/**
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index c82ac4345f..2eae039370 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<Props> {
/**
diff --git a/react/features/toolbox/components/web/VideoSettingsButton.js b/react/features/toolbox/components/web/VideoSettingsButton.js
index 5a7e330c89..cbd0015d0f 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 5a58bcd8f5..b375061fa3 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 e43cb7b97a..a2b6429f98 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 33cffd98fa..71bc61e159 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<Props> {
diff --git a/react/features/transcribing/components/TranscribingLabel.web.js b/react/features/transcribing/components/TranscribingLabel.web.js
index 06ad5ad716..c07ec38bd7 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<Props> {
diff --git a/react/features/transcribing/reducer.js b/react/features/transcribing/reducer.js
index 0563079326..6efa389274 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 18a46d966d..1fa4656016 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<P: Props> extends AbstractButton<P, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.tileView';
diff --git a/react/features/video-menu/components/AbstractGrantModeratorButton.js b/react/features/video-menu/components/AbstractGrantModeratorButton.js
index d3e2f663da..fdf4ad0e83 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<Props, *> {
- 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 53c35d9ae1..dd501d88f5 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<P: Props> extends AbstractMuteRemoteParticipantDialog<P, State> {
static defaultProps = {
diff --git a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js
index d1fb8cf956..d106a83a95 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<P: Props>
extends AbstractMuteRemoteParticipantsVideoDialog<P, State> {
diff --git a/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.js b/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.js
index af70110d1d..6254e11dba 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<P:Props = Props, State=void>
extends Component<P, State> {
diff --git a/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.js b/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.js
index f26b07f350..eac67246a5 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<P:Props = Props, State=void>
extends Component<P, State> {
diff --git a/react/features/video-menu/components/native/MuteEveryoneDialog.js b/react/features/video-menu/components/native/MuteEveryoneDialog.js
index 0ba55894e2..8115a86ee1 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<Props> {
diff --git a/react/features/video-menu/components/native/MuteEveryonesVideoDialog.js b/react/features/video-menu/components/native/MuteEveryonesVideoDialog.js
index 770958de08..ac82cd4a04 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<Props> {
diff --git a/react/features/video-menu/components/web/FlipLocalVideoButton.js b/react/features/video-menu/components/web/FlipLocalVideoButton.js
index a6f130317c..1f86d1500c 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<Props> {
/**
diff --git a/react/features/video-menu/components/web/GrantModeratorButton.js b/react/features/video-menu/components/web/GrantModeratorButton.js
index b7707e7892..a30b910896 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 5e4ff84e4e..17fa8fd808 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 ca0967564b..c30038c8ee 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<Props> {
diff --git a/react/features/video-menu/components/web/MuteButton.js b/react/features/video-menu/components/web/MuteButton.js
index 734f085d93..76f07da261 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 6afb7a86f5..46b47e1ae2 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<Props> {
diff --git a/react/features/video-menu/components/web/MuteEveryoneElseButton.js b/react/features/video-menu/components/web/MuteEveryoneElseButton.js
index 7cb8ebcf4b..f62608efd0 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 1ea36db8cd..165a69fb91 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 2bb76b1760..af75d04ad0 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<Props> {
diff --git a/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js b/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js
index 764ffb5ac1..d8b3feab3f 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 21976fd35b..5a688ce33b 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 ae12676aa2..9602d0d23f 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<Props> {
/**
diff --git a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js
index 48f2bcd66a..2e77a937f5 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<Props> {
diff --git a/react/features/video-menu/components/web/VideoMenuButton.js b/react/features/video-menu/components/web/VideoMenuButton.js
index 6d4685e139..2e32ad3c00 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<Props> {
/**
diff --git a/react/features/video-menu/components/web/VolumeSlider.js b/react/features/video-menu/components/web/VolumeSlider.js
index 518891340f..92e6564b04 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<Props, State> {
/**
diff --git a/react/features/video-quality/components/VideoQualityButton.web.js b/react/features/video-quality/components/VideoQualityButton.web.js
index 7c0ffe4cb8..e979752d17 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<Props, *> {
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 47b63112a5..e32eafffde 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 80ade1aadf..fd9f95feb0 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<Props> {
diff --git a/react/features/video-quality/components/VideoQualitySlider.web.js b/react/features/video-quality/components/VideoQualitySlider.web.js
index 465e73b1ea..dbe7c1922f 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<Props> {
_sliderOptions: Array<Object>;
diff --git a/react/features/video-quality/constants.js b/react/features/video-quality/constants.js
index dec544f750..b7b29e78c7 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 6789a2f9c6..8624ce39d6 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 38931aeb68..e1cf1e91ba 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<Props, State> {
_componentWasUnmounted: boolean;
diff --git a/react/features/virtual-background/middleware.js b/react/features/virtual-background/middleware.js
index 1d81079044..42b7779cc3 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 2d1706207c..48372d7b2c 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<Props, *> {
});
}
- _renderInsecureRoomNameWarning: () => React$Component<any>;;
+ _renderInsecureRoomNameWarning: () => React$Component<any>;
/**
* 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 3e22df3ab9..c38a15429e 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 5a3d479520..e6cd3c129b 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 ad90df2a48..cb2924cceb 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 ad420f3d06..52f213bb20 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 ac5fb9d35f..26f5ed348b 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 4062b770c7..995ae41f8d 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<Props> {
/**
diff --git a/resources/prosody-plugins/mod_reservations.lua b/resources/prosody-plugins/mod_reservations.lua
index 042502ff71..7f711f536f 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"