Skip to content

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

ref(eslint) Use new TypeScript ESlint config (#12143)

Robert Pintilii10bb186c13c8
diff --git a/package-lock.json b/package-lock.json
index a0b317a47f..d3d281155c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -137,7 +137,7 @@
"@babel/preset-flow": "7.16.0",
"@babel/preset-react": "7.16.0",
"@babel/runtime": "7.16.0",
- "@jitsi/eslint-config": "4.0.0",
+ "@jitsi/eslint-config": "4.1.2",
"@types/js-md5": "0.4.3",
"@types/lodash": "4.14.182",
"@types/react": "17.0.14",
@@ -3447,9 +3447,9 @@
}
},
"node_modules/@jitsi/eslint-config": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-4.0.0.tgz",
- "integrity": "sha512-DGk6HiaYUDWM5YNLuzPZ0oxFzI1BvgbS7ogi1KR6nUB1pdoQY2dFL73J3hm7QgNZbc7+x/xhXwnNk9f2aAaVTQ==",
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-4.1.2.tgz",
+ "integrity": "sha512-kAkCLEKSWdwqj8L026T/5+FttvPLmNkPPETfgzG4SxWdkIVsW8wqFN/RypUZp2H7NmL5AgVL+QkXQXoEoQgW8A==",
"dev": true,
"peerDependencies": {
"@babel/eslint-parser": ">= 7",
@@ -22389,9 +22389,9 @@
}
},
"@jitsi/eslint-config": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-4.0.0.tgz",
- "integrity": "sha512-DGk6HiaYUDWM5YNLuzPZ0oxFzI1BvgbS7ogi1KR6nUB1pdoQY2dFL73J3hm7QgNZbc7+x/xhXwnNk9f2aAaVTQ==",
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-4.1.2.tgz",
+ "integrity": "sha512-kAkCLEKSWdwqj8L026T/5+FttvPLmNkPPETfgzG4SxWdkIVsW8wqFN/RypUZp2H7NmL5AgVL+QkXQXoEoQgW8A==",
"dev": true
},
"@jitsi/js-utils": {
diff --git a/package.json b/package.json
index f291bb6d44..e03d11a050 100644
--- a/package.json
+++ b/package.json
@@ -142,7 +142,7 @@
"@babel/preset-flow": "7.16.0",
"@babel/preset-react": "7.16.0",
"@babel/runtime": "7.16.0",
- "@jitsi/eslint-config": "4.0.0",
+ "@jitsi/eslint-config": "4.1.2",
"@types/js-md5": "0.4.3",
"@types/lodash": "4.14.182",
"@types/react": "17.0.14",
diff --git a/react/.eslintrc.js b/react/.eslintrc.js
index 6d053587cd..c8f83e891d 100644
--- a/react/.eslintrc.js
+++ b/react/.eslintrc.js
@@ -9,27 +9,7 @@ module.exports = {
'overrides': [
{
'files': [ '*.ts', '*.tsx' ],
- parser: '@typescript-eslint/parser',
- rules: {
- 'no-undef': 'off',
- 'no-use-before-define': 'off',
- '@typescript-eslint/ban-ts-comment': 'off',
- '@typescript-eslint/no-empty-function': 'off',
- '@typescript-eslint/ban-types': 'off',
- '@typescript-eslint/no-explicit-any': 'off',
- 'no-prototype-builtins': 'off',
- 'no-shadow': 'off',
- '@typescript-eslint/no-shadow': [ 'error' ],
- 'typescript-sort-keys/interface': 'error',
- 'typescript-sort-keys/string-enum': 'error',
- 'object-curly-spacing': 'off',
- '@typescript-eslint/object-curly-spacing': [ 'error', 'always' ]
- },
- 'plugins': [ '@typescript-eslint', 'typescript-sort-keys' ],
- 'extends': [
- 'plugin:@typescript-eslint/eslint-recommended',
- 'plugin:@typescript-eslint/recommended'
- ]
+ extends: [ '@jitsi/eslint-config/typescript' ]
}
],
'rules': {
diff --git a/react/features/analytics/AnalyticsEvents.ts b/react/features/analytics/AnalyticsEvents.ts
index f60b6e87b7..20217f243e 100644
--- a/react/features/analytics/AnalyticsEvents.ts
+++ b/react/features/analytics/AnalyticsEvents.ts
@@ -311,7 +311,7 @@ export function createInviteDialogEvent(
* @returns {Object}
*/
export function createNetworkInfoEvent({ isOnline, networkType, details }:
- { details?: Object, isOnline: boolean, networkType?: string }) {
+ { details?: Object; isOnline: boolean; networkType?: string; }) {
const attributes: {
details?: Object;
isOnline: boolean;
@@ -471,11 +471,11 @@ export function createLiveStreamingDialogEvent(dialogName: string, buttonName: s
* sendAnalytics.
*/
export function createLocalTracksDurationEvent(duration: {
- audio: { value: number };
- conference: { value: number };
+ audio: { value: number; };
+ conference: { value: number; };
video: {
- camera: { value: number };
- desktop: { value: number };
+ camera: { value: number; };
+ desktop: { value: number; };
};
}) {
const { audio, video, conference } = duration;
diff --git a/react/features/analytics/functions.ts b/react/features/analytics/functions.ts
index 0b5f6fdc2c..a2a5b36891 100644
--- a/react/features/analytics/functions.ts
+++ b/react/features/analytics/functions.ts
@@ -67,7 +67,7 @@ export function resetAnalytics() {
* @param {Store} store - The redux store in which the specified {@code action} is being dispatched.
* @returns {Promise} Resolves with the handlers that have been successfully loaded.
*/
-export async function createHandlers({ getState }: { getState: Function }) {
+export async function createHandlers({ getState }: { getState: Function; }) {
getJitsiMeetGlobalNS().analyticsHandlers = [];
if (!isAnalyticsEnabled(getState)) {
@@ -98,15 +98,15 @@ export async function createHandlers({ getState }: { getState: Function }) {
const handlerConstructorOptions = {
amplitudeAPPKey,
blackListedEvents,
- envType: (deploymentInfo && deploymentInfo.envType) || 'dev',
+ envType: deploymentInfo?.envType || 'dev',
googleAnalyticsTrackingId,
matomoEndpoint,
matomoSiteID,
group,
host,
- product: deploymentInfo && deploymentInfo.product,
- subproduct: deploymentInfo && deploymentInfo.environment,
- user: user && user.id,
+ product: deploymentInfo?.product,
+ subproduct: deploymentInfo?.environment,
+ user: user?.id,
version: JitsiMeetJS.version,
whiteListedEvents
};
diff --git a/react/features/analytics/handlers/AbstractHandler.ts b/react/features/analytics/handlers/AbstractHandler.ts
index e3b46b7d75..fea82b382d 100644
--- a/react/features/analytics/handlers/AbstractHandler.ts
+++ b/react/features/analytics/handlers/AbstractHandler.ts
@@ -2,8 +2,8 @@ export interface IEvent {
action?: string;
actionSubject?: string;
attributes?: {
- [key: string]: string|undefined;
- },
+ [key: string]: string | undefined;
+ };
name?: string;
source?: string;
type?: string;
@@ -30,8 +30,8 @@ interface Options {
*/
export default class AbstractHandler {
_enabled: boolean;
- _whiteListedEvents: Array<string>|undefined;
- _blackListedEvents: Array<string>|undefined;
+ _whiteListedEvents: Array<string> | undefined;
+ _blackListedEvents: Array<string> | undefined;
/**
* Creates new instance.
diff --git a/react/features/analytics/handlers/GoogleAnalyticsHandler.ts b/react/features/analytics/handlers/GoogleAnalyticsHandler.ts
index 9a85968b28..adb64cae1f 100644
--- a/react/features/analytics/handlers/GoogleAnalyticsHandler.ts
+++ b/react/features/analytics/handlers/GoogleAnalyticsHandler.ts
@@ -67,7 +67,7 @@ class GoogleAnalyticsHandler extends AbstractHandler {
* @private
*/
_extractValue(event: IEvent) {
- let value: string|number|undefined = event && event.attributes && event.attributes.value;
+ let value: string | number | undefined = event?.attributes?.value;
// Try to extract an integer from the "value" attribute.
value = Math.round(parseFloat(value ?? ''));
diff --git a/react/features/analytics/handlers/MatomoHandler.ts b/react/features/analytics/handlers/MatomoHandler.ts
index 0a40ef8709..1f749934bd 100644
--- a/react/features/analytics/handlers/MatomoHandler.ts
+++ b/react/features/analytics/handlers/MatomoHandler.ts
@@ -88,7 +88,7 @@ export default class MatomoHandler extends AbstractHandler {
* @private
*/
_extractValue(event: IEvent) {
- const value = event && event.attributes && event.attributes.value;
+ const value = event?.attributes?.value;
// Try to extract an integer from the 'value' attribute.
return Math.round(parseFloat(value ?? ''));
@@ -152,7 +152,8 @@ export default class MatomoHandler extends AbstractHandler {
}
const value = this._extractValue(event);
- const matomoEvent: Array<string|number|undefined> = [ 'trackEvent', 'jitsi-meet', this._extractName(event) ];
+ const matomoEvent: Array<string | number | undefined> = [
+ 'trackEvent', 'jitsi-meet', this._extractName(event) ];
if (!isNaN(value)) {
matomoEvent.push(value);
diff --git a/react/features/analytics/reducer.ts b/react/features/analytics/reducer.ts
index e77a26c50a..36949f5796 100644
--- a/react/features/analytics/reducer.ts
+++ b/react/features/analytics/reducer.ts
@@ -29,19 +29,19 @@ const DEFAULT_STATE = {
};
interface Value {
- startedTime: number,
- value: number
+ startedTime: number;
+ value: number;
}
export interface IAnalyticsState {
localTracksDuration: {
- audio: Value,
- conference: Value,
+ audio: Value;
+ conference: Value;
video: {
- camera: Value,
- desktop: Value
- }
- }
+ camera: Value;
+ desktop: Value;
+ };
+ };
}
/**
diff --git a/react/features/app/types.ts b/react/features/app/types.ts
index 4ad499fc3a..9e789b5a21 100644
--- a/react/features/app/types.ts
+++ b/react/features/app/types.ts
@@ -73,86 +73,86 @@ import { IVideoSipGW } from '../videosipgw/reducer';
import { IVirtualBackground } from '../virtual-background/reducer';
export interface IStore {
- dispatch: Function,
+ dispatch: Function;
getState: () => IState;
}
export interface IState {
- 'features/analytics': IAnalyticsState,
- 'features/authentication': IAuthenticationState,
- 'features/av-moderation': IAVModerationState,
- 'features/background': IBackgroundState,
- 'features/base/app': IAppState,
- 'features/base/audio-only': IAudioOnlyState,
- 'features/base/conference': IConferenceState,
- 'features/base/config': IConfigState,
- 'features/base/connection': IConnectionState,
- 'features/base/devices': IDevicesState,
- 'features/base/dialog': IDialogState,
- 'features/base/flags': IFlagsState,
- 'features/base/jwt': IJwtState,
- 'features/base/known-domains': IKnownDomainsState,
- 'features/base/lastn': ILastNState,
- 'features/base/lib-jitsi-meet': ILibJitsiMeetState,
- 'features/base/logging': ILoggingState,
- 'features/base/media': IMediaState,
- 'features/base/net-info': INetInfoState,
- 'features/base/no-src-data': INoSrcDataState,
- 'features/base/participants': IParticipantsState,
- 'features/base/responsive-ui': IResponsiveUIState,
- 'features/base/settings': ISettingsState,
- 'features/base/sounds': ISoundsState,
- 'features/base/tracks': ITracksState,
- 'features/base/user-interaction': IUserInteractionState,
- 'features/breakout-rooms': IBreakoutRoomsState,
- 'features/calendar-sync': ICalendarSyncState,
- 'features/call-integration': ICallIntegrationState,
- 'features/chat': IChatState,
- 'features/deep-linking': IDeepLinkingState,
- 'features/dropbox': IDropboxState,
- 'features/dynamic-branding': IDynamicBrandingState,
- 'features/e2ee': IE2EEState,
- 'features/etherpad': IEtherpadState,
- 'features/face-landmarks': IFaceLandmarksState,
- 'features/feedback': IFeedbackState,
- 'features/filmstrip': IFilmstripState,
- 'features/follow-me': IFollowMeState,
- 'features/full-screen': IFullScreenState,
- 'features/gifs': IGifsState,
- 'features/google-api': IGoogleApiState,
- 'features/invite': IInviteState,
- 'features/jaas': IJaaSState,
- 'features/large-video': ILargeVideoState,
- 'features/lobby': ILobbyState,
- 'features/mobile/audio-mode': IMobileAudioModeState,
- 'features/mobile/external-api': IMobileExternalApiState,
- 'features/mobile/watchos': IMobileWatchOSState,
- 'features/no-audio-signal': INoAudioSignalState,
- 'features/noise-detection': INoiseDetectionState,
- 'features/noise-suppression': INoiseSuppressionState,
- 'features/notifications': INotificationsState,
- 'features/overlay': IOverlayState,
- 'features/participants-pane': IParticipantsState,
- 'features/polls': IPollsState,
- 'features/power-monitor': IPowerMonitorState,
- 'features/prejoin': IPrejoinState,
- 'features/reactions': IReactionsState,
- 'features/recent-list': IRecentListState,
- 'features/recording': IRecordingState,
- 'features/remote-control': IRemoteControlState,
- 'features/screen-share': IScreenShareState,
- 'features/screenshot-capture': IScreenshotCaptureState,
- 'features/settings': ISettingsState,
- 'features/shared-video': ISharedVideoState,
- 'features/speaker-stats': ISpeakerStatsState,
- 'features/subtitles': ISubtitlesState,
- 'features/talk-while-muted': ITalkWhileMutedState,
- 'features/testing': ITestingState,
- 'features/toolbox': IToolboxState,
- 'features/transcribing': ITranscribingState,
- 'features/video-layout': IVideoLayoutState,
- 'features/video-quality': IVideoQualityState,
- 'features/video-quality-persistent-storage': IVideoQualityPersistedState,
- 'features/videosipgw': IVideoSipGW,
- 'features/virtual-background': IVirtualBackground
+ 'features/analytics': IAnalyticsState;
+ 'features/authentication': IAuthenticationState;
+ 'features/av-moderation': IAVModerationState;
+ 'features/background': IBackgroundState;
+ 'features/base/app': IAppState;
+ 'features/base/audio-only': IAudioOnlyState;
+ 'features/base/conference': IConferenceState;
+ 'features/base/config': IConfigState;
+ 'features/base/connection': IConnectionState;
+ 'features/base/devices': IDevicesState;
+ 'features/base/dialog': IDialogState;
+ 'features/base/flags': IFlagsState;
+ 'features/base/jwt': IJwtState;
+ 'features/base/known-domains': IKnownDomainsState;
+ 'features/base/lastn': ILastNState;
+ 'features/base/lib-jitsi-meet': ILibJitsiMeetState;
+ 'features/base/logging': ILoggingState;
+ 'features/base/media': IMediaState;
+ 'features/base/net-info': INetInfoState;
+ 'features/base/no-src-data': INoSrcDataState;
+ 'features/base/participants': IParticipantsState;
+ 'features/base/responsive-ui': IResponsiveUIState;
+ 'features/base/settings': ISettingsState;
+ 'features/base/sounds': ISoundsState;
+ 'features/base/tracks': ITracksState;
+ 'features/base/user-interaction': IUserInteractionState;
+ 'features/breakout-rooms': IBreakoutRoomsState;
+ 'features/calendar-sync': ICalendarSyncState;
+ 'features/call-integration': ICallIntegrationState;
+ 'features/chat': IChatState;
+ 'features/deep-linking': IDeepLinkingState;
+ 'features/dropbox': IDropboxState;
+ 'features/dynamic-branding': IDynamicBrandingState;
+ 'features/e2ee': IE2EEState;
+ 'features/etherpad': IEtherpadState;
+ 'features/face-landmarks': IFaceLandmarksState;
+ 'features/feedback': IFeedbackState;
+ 'features/filmstrip': IFilmstripState;
+ 'features/follow-me': IFollowMeState;
+ 'features/full-screen': IFullScreenState;
+ 'features/gifs': IGifsState;
+ 'features/google-api': IGoogleApiState;
+ 'features/invite': IInviteState;
+ 'features/jaas': IJaaSState;
+ 'features/large-video': ILargeVideoState;
+ 'features/lobby': ILobbyState;
+ 'features/mobile/audio-mode': IMobileAudioModeState;
+ 'features/mobile/external-api': IMobileExternalApiState;
+ 'features/mobile/watchos': IMobileWatchOSState;
+ 'features/no-audio-signal': INoAudioSignalState;
+ 'features/noise-detection': INoiseDetectionState;
+ 'features/noise-suppression': INoiseSuppressionState;
+ 'features/notifications': INotificationsState;
+ 'features/overlay': IOverlayState;
+ 'features/participants-pane': IParticipantsState;
+ 'features/polls': IPollsState;
+ 'features/power-monitor': IPowerMonitorState;
+ 'features/prejoin': IPrejoinState;
+ 'features/reactions': IReactionsState;
+ 'features/recent-list': IRecentListState;
+ 'features/recording': IRecordingState;
+ 'features/remote-control': IRemoteControlState;
+ 'features/screen-share': IScreenShareState;
+ 'features/screenshot-capture': IScreenshotCaptureState;
+ 'features/settings': ISettingsState;
+ 'features/shared-video': ISharedVideoState;
+ 'features/speaker-stats': ISpeakerStatsState;
+ 'features/subtitles': ISubtitlesState;
+ 'features/talk-while-muted': ITalkWhileMutedState;
+ 'features/testing': ITestingState;
+ 'features/toolbox': IToolboxState;
+ 'features/transcribing': ITranscribingState;
+ 'features/video-layout': IVideoLayoutState;
+ 'features/video-quality': IVideoQualityState;
+ 'features/video-quality-persistent-storage': IVideoQualityPersistedState;
+ 'features/videosipgw': IVideoSipGW;
+ 'features/virtual-background': IVirtualBackground;
}
diff --git a/react/features/authentication/components/web/LoginDialog.tsx b/react/features/authentication/components/web/LoginDialog.tsx
index b8ab4df10b..cef839c6a0 100644
--- a/react/features/authentication/components/web/LoginDialog.tsx
+++ b/react/features/authentication/components/web/LoginDialog.tsx
@@ -31,43 +31,43 @@ interface Props extends WithTranslation {
* {@link JitsiConference} That needs authentication - will hold a valid
* value in XMPP login + guest access mode.
*/
- _conference: Object,
+ _conference: Object;
/**
* The server hosts specified in the global config.
*/
- _configHosts: IConfig['hosts'],
+ _configHosts: IConfig['hosts'];
/**
* Indicates if the dialog should display "connecting" status message.
*/
- _connecting: boolean,
+ _connecting: boolean;
/**
* The error which occurred during login/authentication.
*/
- _error: any,
+ _error: any;
/**
* The progress in the floating range between 0 and 1 of the authenticating
* and upgrading the role of the local participant/user.
*/
- _progress: number,
+ _progress: number;
/**
* Redux store dispatch method.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* Invoked when username and password are submitted.
*/
- onSuccess: Function,
+ onSuccess: Function;
/**
* Conference room name.
*/
- roomName: string
+ roomName: string;
}
/**
@@ -78,18 +78,18 @@ type State = {
/**
* Authentication process starts before joining the conference room.
*/
- loginStarted: boolean,
+ loginStarted: boolean;
/**
* The user entered password for the conference.
*/
- password: string,
+ password: string;
/**
* The user entered local participant name.
*/
- username: string
-}
+ username: string;
+};
/**
* Component that renders the login in conference dialog.
@@ -156,7 +156,7 @@ class LoginDialog extends Component<Props, State> {
connect(jid, password, roomName)
.then((connection: any) => {
- onSuccess && onSuccess(connection);
+ onSuccess?.(connection);
})
.catch(() => {
this.setState({
diff --git a/react/features/authentication/reducer.ts b/react/features/authentication/reducer.ts
index 58e45ef51c..4dafd2d1ee 100644
--- a/react/features/authentication/reducer.ts
+++ b/react/features/authentication/reducer.ts
@@ -10,9 +10,9 @@ import {
} from './actionTypes';
export interface IAuthenticationState {
- error?: Object|undefined;
- progress?: number|undefined;
- thenableWithCancel?: Object|undefined;
+ error?: Object | undefined;
+ progress?: number | undefined;
+ thenableWithCancel?: Object | undefined;
waitForOwnerTimeoutID?: number;
}
diff --git a/react/features/av-moderation/constants.ts b/react/features/av-moderation/constants.ts
index f0da9e9385..4af98a6795 100644
--- a/react/features/av-moderation/constants.ts
+++ b/react/features/av-moderation/constants.ts
@@ -3,7 +3,7 @@ import { MEDIA_TYPE } from '../base/media/constants';
/**
* Mapping between a media type and the witelist reducer key.
*/
-export const MEDIA_TYPE_TO_WHITELIST_STORE_KEY: { [key: string]: string } = {
+export const MEDIA_TYPE_TO_WHITELIST_STORE_KEY: { [key: string]: string; } = {
[MEDIA_TYPE.AUDIO]: 'audioWhitelist',
[MEDIA_TYPE.VIDEO]: 'videoWhitelist'
};
@@ -11,7 +11,7 @@ export const MEDIA_TYPE_TO_WHITELIST_STORE_KEY: { [key: string]: string } = {
/**
* Mapping between a media type and the pending reducer key.
*/
-export const MEDIA_TYPE_TO_PENDING_STORE_KEY: { [key: string]: 'pendingAudio' | 'pendingVideo' } = {
+export const MEDIA_TYPE_TO_PENDING_STORE_KEY: { [key: string]: 'pendingAudio' | 'pendingVideo'; } = {
[MEDIA_TYPE.AUDIO]: 'pendingAudio',
[MEDIA_TYPE.VIDEO]: 'pendingVideo'
};
diff --git a/react/features/av-moderation/reducer.ts b/react/features/av-moderation/reducer.ts
index 111df2d2a3..6ef9544bdb 100644
--- a/react/features/av-moderation/reducer.ts
+++ b/react/features/av-moderation/reducer.ts
@@ -30,13 +30,13 @@ const initialState = {
export interface IAVModerationState {
audioModerationEnabled: boolean;
- audioUnmuteApproved?: boolean|undefined;
- audioWhitelist: { [id: string]: boolean };
- pendingAudio: Array<{ id: string }>;
- pendingVideo: Array<{ id: string }>;
+ audioUnmuteApproved?: boolean | undefined;
+ audioWhitelist: { [id: string]: boolean; };
+ pendingAudio: Array<{ id: string; }>;
+ pendingVideo: Array<{ id: string; }>;
videoModerationEnabled: boolean;
- videoUnmuteApproved?: boolean|undefined;
- videoWhitelist: { [id: string]: boolean };
+ videoUnmuteApproved?: boolean | undefined;
+ videoWhitelist: { [id: string]: boolean; };
}
/**
@@ -52,7 +52,7 @@ function _updatePendingParticipant(mediaType: MediaType, participant: Participan
let arrayItemChanged = false;
const storeKey = MEDIA_TYPE_TO_PENDING_STORE_KEY[mediaType];
const arr = state[storeKey];
- const newArr = arr.map((pending: { id: string }) => {
+ const newArr = arr.map((pending: { id: string; }) => {
if (pending.id === participant.id) {
arrayItemChanged = true;
diff --git a/react/features/base/app/reducer.ts b/react/features/base/app/reducer.ts
index baea437e01..892e2748cb 100644
--- a/react/features/base/app/reducer.ts
+++ b/react/features/base/app/reducer.ts
@@ -3,7 +3,7 @@ import ReducerRegistry from '../redux/ReducerRegistry';
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes';
export interface IAppState {
- app?: Object|undefined;
+ app?: Object | undefined;
}
ReducerRegistry.register<IAppState>('features/base/app', (state = {}, action): IAppState => {
diff --git a/react/features/base/audio-only/reducer.ts b/react/features/base/audio-only/reducer.ts
index 93d1351ea6..81f3490750 100644
--- a/react/features/base/audio-only/reducer.ts
+++ b/react/features/base/audio-only/reducer.ts
@@ -3,7 +3,7 @@ import ReducerRegistry from '../redux/ReducerRegistry';
import { SET_AUDIO_ONLY } from './actionTypes';
export interface IAudioOnlyState {
- enabled: boolean
+ enabled: boolean;
}
const DEFAULT_STATE = {
diff --git a/react/features/base/avatar/components/AbstractStatelessAvatar.tsx b/react/features/base/avatar/components/AbstractStatelessAvatar.tsx
index 3a8562cd18..c1c22a7c36 100644
--- a/react/features/base/avatar/components/AbstractStatelessAvatar.tsx
+++ b/react/features/base/avatar/components/AbstractStatelessAvatar.tsx
@@ -5,22 +5,22 @@ export type Props = {
/**
* Color of the (initials based) avatar, if needed.
*/
- color?: string,
+ color?: string;
/**
* Initials to be used to render the initials based avatars.
*/
- initials?: string,
+ initials?: string;
/**
* Callback to signal the failure of the loading of the URL.
*/
- onAvatarLoadError?: Function,
+ onAvatarLoadError?: Function;
/**
* Additional parameters to be passed to onAvatarLoadError function.
*/
- onAvatarLoadErrorParams?: Object,
+ onAvatarLoadErrorParams?: Object;
/**
* Expected size of the avatar.
@@ -30,7 +30,7 @@ export type Props = {
/**
* The URL of the avatar to render.
*/
- url?: string|Function
+ url?: string | Function;
};
/**
diff --git a/react/features/base/avatar/components/web/StatelessAvatar.tsx b/react/features/base/avatar/components/web/StatelessAvatar.tsx
index 418e287415..12eadf44c5 100644
--- a/react/features/base/avatar/components/web/StatelessAvatar.tsx
+++ b/react/features/base/avatar/components/web/StatelessAvatar.tsx
@@ -11,37 +11,37 @@ type Props = AbstractProps & {
/**
* External class name passed through props.
*/
- className?: string,
+ className?: string;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The default avatar URL if we want to override the app bundled one (e.g. AlwaysOnTop).
*/
- defaultAvatar?: string,
+ defaultAvatar?: string;
/**
* ID of the component to be rendered.
*/
- id?: string,
+ id?: string;
/**
* One of the expected status strings (e.g. 'available') to render a badge on the avatar, if necessary.
*/
- status?: string,
+ status?: string;
/**
* TestId of the element, if any.
*/
- testId?: string,
+ testId?: string;
/**
* Indicates whether to load the avatar using CORS or not.
*/
- useCORS?: boolean
+ useCORS?: boolean;
};
/**
diff --git a/react/features/base/avatar/functions.ts b/react/features/base/avatar/functions.ts
index a5bf39be0c..07fd05e1d2 100644
--- a/react/features/base/avatar/functions.ts
+++ b/react/features/base/avatar/functions.ts
@@ -22,8 +22,8 @@ const splitter = new GraphemeSplitter();
* @param {Array<string>} customAvatarBackgrounds - Custom avatar background values.
* @returns {string}
*/
-export function getAvatarColor(initials: string|undefined, customAvatarBackgrounds: Array<string>) {
- const hasCustomAvatarBackgronds = customAvatarBackgrounds && customAvatarBackgrounds.length;
+export function getAvatarColor(initials: string | undefined, customAvatarBackgrounds: Array<string>) {
+ const hasCustomAvatarBackgronds = customAvatarBackgrounds?.length;
const colorsBase = hasCustomAvatarBackgronds ? customAvatarBackgrounds : AVATAR_COLORS;
let colorIndex = 0;
diff --git a/react/features/base/buttons/CopyButton.tsx b/react/features/base/buttons/CopyButton.tsx
index 4a96923cf4..c1c8b1f6fe 100644
--- a/react/features/base/buttons/CopyButton.tsx
+++ b/react/features/base/buttons/CopyButton.tsx
@@ -59,37 +59,37 @@ type Props = {
/**
* Css class to apply on container.
*/
- className: string,
+ className: string;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The displayed text.
*/
- displayedText: string,
+ displayedText: string;
/**
* The id of the button.
*/
- id?: string,
+ id?: string;
/**
* The text displayed on copy success.
*/
- textOnCopySuccess: string,
+ textOnCopySuccess: string;
/**
* The text displayed on mouse hover.
*/
- textOnHover: string,
+ textOnHover: string;
/**
* The text that needs to be copied (might differ from the displayedText).
*/
- textToCopy: string
+ textToCopy: string;
};
/**
diff --git a/react/features/base/components/context-menu/ContextMenu.tsx b/react/features/base/components/context-menu/ContextMenu.tsx
index 9daebbe219..b8a3a72d23 100644
--- a/react/features/base/components/context-menu/ContextMenu.tsx
+++ b/react/features/base/components/context-menu/ContextMenu.tsx
@@ -17,67 +17,67 @@ type Props = {
/**
* Accessibility label for menu container.
*/
- accessibilityLabel?: string,
+ accessibilityLabel?: string;
/**
* Children of the context menu.
*/
- children: ReactNode,
+ children: ReactNode;
/**
* Class name for context menu. Used to overwrite default styles.
*/
- className?: string,
+ className?: string;
/**
* The entity for which the context menu is displayed.
*/
- entity?: Object,
+ entity?: Object;
/**
* Whether or not the menu is hidden. Used to overwrite the internal isHidden.
*/
- hidden?: boolean,
+ hidden?: boolean;
/**
* Whether or not the menu is already in a drawer.
*/
- inDrawer?: boolean,
+ inDrawer?: boolean;
/**
* Whether or not drawer should be open.
*/
- isDrawerOpen?: boolean,
+ isDrawerOpen?: boolean;
/**
* Target elements against which positioning calculations are made.
*/
- offsetTarget?: HTMLElement,
+ offsetTarget?: HTMLElement;
/**
* Callback for click on an item in the menu.
*/
- onClick?: (e?: React.MouseEvent) => void,
+ onClick?: (e?: React.MouseEvent) => void;
/**
* Callback for drawer close.
*/
- onDrawerClose?: (e?: React.MouseEvent) => void,
+ onDrawerClose?: (e?: React.MouseEvent) => void;
/**
* Keydown handler.
*/
- onKeyDown?: (e?: React.KeyboardEvent) => void,
+ onKeyDown?: (e?: React.KeyboardEvent) => void;
/**
* Callback for the mouse entering the component.
*/
- onMouseEnter?: (e?: React.MouseEvent) => void,
+ onMouseEnter?: (e?: React.MouseEvent) => void;
/**
* Callback for the mouse leaving the component.
*/
- onMouseLeave?: (e?: React.MouseEvent) => void
+ onMouseLeave?: (e?: React.MouseEvent) => void;
};
const MAX_HEIGHT = 400;
diff --git a/react/features/base/components/context-menu/ContextMenuItem.tsx b/react/features/base/components/context-menu/ContextMenuItem.tsx
index 7c032c5c3f..0af21884fa 100644
--- a/react/features/base/components/context-menu/ContextMenuItem.tsx
+++ b/react/features/base/components/context-menu/ContextMenuItem.tsx
@@ -12,64 +12,64 @@ export type Props = {
/**
* Label used for accessibility.
*/
- accessibilityLabel: string,
+ accessibilityLabel: string;
/**
* CSS class name used for custom styles.
*/
- className?: string,
+ className?: string;
/**
* Custom icon. If used, the icon prop is ignored.
* Used to allow custom children instead of just the default icons.
*/
- customIcon?: ReactNode,
+ customIcon?: ReactNode;
/**
* Whether or not the action is disabled.
*/
- disabled?: boolean,
+ disabled?: boolean;
/**
* Default icon for action.
*/
- icon?: Function,
+ icon?: Function;
/**
* Id of the action container.
*/
- id?: string,
+ id?: string;
/**
* Click handler.
*/
- onClick?: (e?: React.MouseEvent) => void,
+ onClick?: (e?: React.MouseEvent) => void;
/**
* Keydown handler.
*/
- onKeyDown?: (e?: React.KeyboardEvent) => void,
+ onKeyDown?: (e?: React.KeyboardEvent) => void;
/**
* Keypress handler.
*/
- onKeyPress?: (e?: React.KeyboardEvent) => void,
+ onKeyPress?: (e?: React.KeyboardEvent) => void;
/**
* TestId of the element, if any.
*/
- testId?: string,
+ testId?: string;
/**
* Action text.
*/
- text: string,
+ text: string;
/**
* Class name for the text.
*/
- textClassName?: string
-}
+ textClassName?: string;
+};
const useStyles = makeStyles((theme: any) => {
return {
diff --git a/react/features/base/components/context-menu/ContextMenuItemGroup.tsx b/react/features/base/components/context-menu/ContextMenuItemGroup.tsx
index 20f2d96190..77af70b459 100644
--- a/react/features/base/components/context-menu/ContextMenuItemGroup.tsx
+++ b/react/features/base/components/context-menu/ContextMenuItemGroup.tsx
@@ -9,12 +9,12 @@ type Props = {
/**
* List of actions in this group.
*/
- actions?: Array<ItemProps>,
+ actions?: Array<ItemProps>;
/**
* The children of the component.
*/
- children?: ReactNode,
+ children?: ReactNode;
};
const useStyles = makeStyles((theme: any) => {
@@ -40,7 +40,7 @@ const ContextMenuItemGroup = ({
return (
<div className = { styles.contextMenuItemGroup }>
{children}
- {actions && actions.map(actionProps => (
+ {actions?.map(actionProps => (
<ContextMenuItem
key = { actionProps.text }
{ ...actionProps } />
diff --git a/react/features/base/components/participants-pane-list/ListItem.tsx b/react/features/base/components/participants-pane-list/ListItem.tsx
index 2378852d76..9c55a5a9b4 100644
--- a/react/features/base/components/participants-pane-list/ListItem.tsx
+++ b/react/features/base/components/participants-pane-list/ListItem.tsx
@@ -11,69 +11,69 @@ type Props = {
/**
* List item actions.
*/
- actions: ReactNode,
+ actions: ReactNode;
/**
* List item container class name.
*/
- className?: string,
+ className?: string;
/**
* Whether or not the actions should be hidden.
*/
- hideActions?: boolean,
+ hideActions?: boolean;
/**
* Icon to be displayed on the list item. (Avatar for participants).
*/
- icon: ReactNode,
+ icon: ReactNode;
/**
* Id of the container.
*/
- id?: string,
+ id?: string;
/**
* Indicators to be displayed on the list item.
*/
- indicators?: ReactNode,
+ indicators?: ReactNode;
/**
* Whether or not the item is highlighted.
*/
- isHighlighted?: boolean,
+ isHighlighted?: boolean;
/**
* Click handler.
*/
- onClick?: (e?: React.MouseEvent) => void,
+ onClick?: (e?: React.MouseEvent) => void;
/**
* Long press handler.
*/
- onLongPress?: (e?: EventTarget) => void,
+ onLongPress?: (e?: EventTarget) => void;
/**
* Mouse leave handler.
*/
- onMouseLeave?: (e?: React.MouseEvent) => void,
+ onMouseLeave?: (e?: React.MouseEvent) => void;
/**
* Data test id.
*/
- testId?: string,
+ testId?: string;
/**
* Text children to be displayed on the list item.
*/
- textChildren: ReactNode | string,
+ textChildren: ReactNode | string;
/**
* The actions trigger. Can be Hover or Permanent.
*/
- trigger: string
+ trigger: string;
-}
+};
const useStyles = makeStyles((theme: any) => {
return {
diff --git a/react/features/base/conference/reducer.ts b/react/features/base/conference/reducer.ts
index 2b289a7279..c955c0af4d 100644
--- a/react/features/base/conference/reducer.ts
+++ b/react/features/base/conference/reducer.ts
@@ -154,7 +154,7 @@ ReducerRegistry.register<IConferenceState>('features/base/conference',
* reduction of the specified action.
*/
function _authStatusChanged(state: IConferenceState,
- { authEnabled, authLogin }: { authEnabled: boolean, authLogin: string }) {
+ { authEnabled, authLogin }: { authEnabled: boolean; authLogin: string; }) {
return assign(state, {
authEnabled,
authLogin
@@ -171,7 +171,7 @@ function _authStatusChanged(state: IConferenceState,
* @returns {Object} The new state of the feature base/conference after the
* reduction of the specified action.
*/
-function _conferenceFailed(state: IConferenceState, { conference, error }: { conference: Object, error: Error }) {
+function _conferenceFailed(state: IConferenceState, { conference, error }: { conference: Object; error: Error; }) {
// The current (similar to getCurrentConference in
// base/conference/functions.any.js) conference which is joining or joined:
const conference_ = state.conference || state.joining;
@@ -237,13 +237,13 @@ function _conferenceFailed(state: IConferenceState, { conference, error }: { con
* @returns {Object} The new state of the feature base/conference after the
* reduction of the specified action.
*/
-function _conferenceJoined(state: IConferenceState, { conference }: { conference: any }) {
+function _conferenceJoined(state: IConferenceState, { conference }: { conference: any; }) {
// FIXME The indicator which determines whether a JitsiConference is locked
// i.e. password-protected is private to lib-jitsi-meet. However, the
// library does not fire LOCK_STATE_CHANGED upon joining a JitsiConference
// with a password.
// FIXME Technically JitsiConference.room is a private field.
- const locked = conference.room && conference.room.locked ? LOCKED_REMOTELY : undefined;
+ const locked = conference.room?.locked ? LOCKED_REMOTELY : undefined;
return assign(state, {
authRequired: undefined,
@@ -284,7 +284,7 @@ function _conferenceJoined(state: IConferenceState, { conference }: { conference
* reduction of the specified action.
*/
function _conferenceLeftOrWillLeave(state: IConferenceState, { conference, type }:
- { conference: Object, type: string }) {
+ { conference: Object; type: string; }) {
const nextState = { ...state };
// The redux action CONFERENCE_LEFT is the last time that we should be
@@ -338,7 +338,7 @@ function _conferenceLeftOrWillLeave(state: IConferenceState, { conference, type
* @returns {Object} The new state of the feature base/conference after the
* reduction of the specified action.
*/
-function _conferenceWillJoin(state: IConferenceState, { conference }: { conference: Object }) {
+function _conferenceWillJoin(state: IConferenceState, { conference }: { conference: Object; }) {
return assign(state, {
error: undefined,
joining: conference
@@ -355,7 +355,7 @@ function _conferenceWillJoin(state: IConferenceState, { conference }: { conferen
* @returns {Object} The new state of the feature base/conference after the
* reduction of the specified action.
*/
-function _lockStateChanged(state: IConferenceState, { conference, locked }: { conference: Object, locked: boolean }) {
+function _lockStateChanged(state: IConferenceState, { conference, locked }: { conference: Object; locked: boolean; }) {
if (state.conference !== conference) {
return state;
}
@@ -389,8 +389,8 @@ function _p2pStatusChanged(state: IConferenceState, action: any) {
* @returns {Object} The new state of the feature base/conference after the
* reduction of the specified action.
*/
-function _setPassword(state: IConferenceState, { conference, method, password }
- : { conference: any, method: Object, password: string }) {
+function _setPassword(state: IConferenceState, { conference, method, password }: {
+ conference: any; method: Object; password: string; }) {
switch (method) {
case conference.join:
return assign(state, {
diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts
index dd76755047..bfe56a3c43 100644
--- a/react/features/base/config/configType.ts
+++ b/react/features/base/config/configType.ts
@@ -107,7 +107,7 @@ export interface IConfig {
apiLogLevels?: Array<'warn' | 'log' | 'error' | 'info' | 'debug'>;
audioLevelsInterval?: number;
audioQuality?: {
- opusMaxAverageBitrate?: number|null;
+ opusMaxAverageBitrate?: number | null;
stereo?: boolean;
};
autoCaptionOnRecord?: boolean;
@@ -120,7 +120,10 @@ export interface IConfig {
hideAutoAssignButton?: boolean;
hideJoinRoomButton?: boolean;
};
- buttonsWithNotifyClick?: Array<ButtonsWithNotifyClick | { key: ButtonsWithNotifyClick; preventExecution: boolean }>;
+ buttonsWithNotifyClick?: Array<ButtonsWithNotifyClick | {
+ key: ButtonsWithNotifyClick;
+ preventExecution: boolean;
+ }>;
callStatsConfigParams?: {
additionalIDs?: {
customerID?: string;
@@ -144,7 +147,7 @@ export interface IConfig {
callStatsSecret?: string;
channelLastN?: number;
chromeExtensionBanner?: {
- chromeExtensionsInfo?: Array<{ id: string; path: string }>;
+ chromeExtensionsInfo?: Array<{ id: string; path: string; }>;
edgeUrl?: string;
url?: string;
};
@@ -165,8 +168,8 @@ export interface IConfig {
ideal?: number;
max?: number;
min?: number;
- }
- }
+ };
+ };
};
corsAvatarURLs?: Array<string>;
defaultLanguage?: string;
@@ -188,7 +191,7 @@ export interface IConfig {
};
dialInConfCodeUrl?: string;
dialInNumbersUrl?: string;
- disable1On1Mode?: boolean|null;
+ disable1On1Mode?: boolean | null;
disableAddingBackgroundImages?: boolean;
disableAudioLevels?: boolean;
disableBeforeUnloadHandlers?: boolean;
@@ -333,7 +336,7 @@ export interface IConfig {
};
iAmRecorder?: boolean;
iAmSipGateway?: boolean;
- inviteAppName?: string|null;
+ inviteAppName?: string | null;
lastNLimits?: {
[key: number]: number;
};
@@ -373,7 +376,7 @@ export interface IConfig {
iceTransportPolicy?: string;
preferH264?: boolean;
preferredCodec?: string;
- stunServers?: Array<{ urls: string }>;
+ stunServers?: Array<{ urls: string; }>;
};
participantsPane?: {
hideModeratorSettingsTab?: boolean;
@@ -414,7 +417,7 @@ export interface IConfig {
enabled?: boolean;
mode?: 'always' | 'recording';
};
- speakerStatsOrder?: Array<'role'|'name'|'hasLeft'>;
+ speakerStatsOrder?: Array<'role' | 'name' | 'hasLeft'>;
startAudioMuted?: boolean;
startAudioOnly?: boolean;
startLastN?: number;
@@ -466,7 +469,7 @@ export interface IConfig {
high?: number;
low?: number;
standard?: number;
- }
+ };
};
minHeightForQualityLvl: {
[key: number]: string;
diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.ts
index 7c785e8ff7..13476cb81e 100644
--- a/react/features/base/config/reducer.ts
+++ b/react/features/base/config/reducer.ts
@@ -150,7 +150,7 @@ function _getInitialState() {
* @private
* @returns {Object} The new state after the reduction of the specified action.
*/
-function _setConfig(state: IConfig, { config }: { config: IConfig }) {
+function _setConfig(state: IConfig, { config }: { config: IConfig; }) {
// eslint-disable-next-line no-param-reassign
config = _translateLegacyConfig(config);
@@ -457,7 +457,7 @@ function _translateLegacyConfig(oldValue: IConfig) {
* @private
* @returns {Object} The new state after the reduction of the specified action.
*/
-function _updateConfig(state: IConfig, { config }: { config: IConfig }) {
+function _updateConfig(state: IConfig, { config }: { config: IConfig; }) {
const newState = _.merge({}, state, config);
_cleanupConfig(newState);
diff --git a/react/features/base/connection/reducer.ts b/react/features/base/connection/reducer.ts
index 170357d202..6584a5cfa3 100644
--- a/react/features/base/connection/reducer.ts
+++ b/react/features/base/connection/reducer.ts
@@ -72,7 +72,7 @@ ReducerRegistry.register<IConnectionState>(
*/
function _connectionDisconnected(
state: IConnectionState,
- { connection }: { connection: Object }) {
+ { connection }: { connection: Object; }) {
const connection_ = _getCurrentConnection(state);
if (connection_ !== connection) {
@@ -99,8 +99,8 @@ function _connectionDisconnected(
function _connectionEstablished(
state: IConnectionState,
{ connection, timeEstablished }: {
- connection: any,
- timeEstablished: number
+ connection: any;
+ timeEstablished: number;
}) {
return assign(state, {
connecting: undefined,
@@ -124,8 +124,8 @@ function _connectionEstablished(
function _connectionFailed(
state: IConnectionState,
{ connection, error }: {
- connection: Object,
- error: ConnectionFailedError
+ connection: Object;
+ error: ConnectionFailedError;
}) {
const connection_ = _getCurrentConnection(state);
@@ -155,7 +155,7 @@ function _connectionFailed(
*/
function _connectionWillConnect(
state: IConnectionState,
- { connection }: { connection: Object }) {
+ { connection }: { connection: Object; }) {
return assign(state, {
connecting: connection,
@@ -178,7 +178,7 @@ function _connectionWillConnect(
* @returns {JitsiConnection} - The current {@code JitsiConnection} if any.
* @private
*/
-function _getCurrentConnection(baseConnectionState: IConnectionState): IConnectionState|undefined {
+function _getCurrentConnection(baseConnectionState: IConnectionState): IConnectionState | undefined {
return baseConnectionState.connection || baseConnectionState.connecting;
}
@@ -194,7 +194,7 @@ function _getCurrentConnection(baseConnectionState: IConnectionState): IConnecti
*/
function _setLocationURL(
state: IConnectionState,
- { locationURL }: { locationURL?: URL }) {
+ { locationURL }: { locationURL?: URL; }) {
return set(state, 'locationURL', locationURL);
}
@@ -226,6 +226,6 @@ function _setRoom(state: IConnectionState) {
*/
function _setShowConnectionInfo(
state: IConnectionState,
- { showConnectionInfo }: { showConnectionInfo: boolean }) {
+ { showConnectionInfo }: { showConnectionInfo: boolean; }) {
return set(state, 'showConnectionInfo', showConnectionInfo);
}
diff --git a/react/features/base/devices/reducer.ts b/react/features/base/devices/reducer.ts
index 7737c2718b..293240c8c5 100644
--- a/react/features/base/devices/reducer.ts
+++ b/react/features/base/devices/reducer.ts
@@ -37,7 +37,7 @@ export interface IDevicesState {
permissions: {
audio: boolean;
video: boolean;
- }
+ };
}
/**
diff --git a/react/features/base/dialog/components/native/BottomSheetContainer.tsx b/react/features/base/dialog/components/native/BottomSheetContainer.tsx
index a6445541a8..e90ef112a6 100644
--- a/react/features/base/dialog/components/native/BottomSheetContainer.tsx
+++ b/react/features/base/dialog/components/native/BottomSheetContainer.tsx
@@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
import { IState } from '../../../../app/types';
-const BottomSheetContainer: () => JSX.Element|null = (): JSX.Element|null => {
+const BottomSheetContainer: () => JSX.Element | null = (): JSX.Element | null => {
const { sheet, sheetProps } = useSelector((state: IState) => state['features/base/dialog']);
const { reducedUI } = useSelector((state: IState) => state['features/base/responsive-ui']);
diff --git a/react/features/base/dialog/components/web/ModalHeader.tsx b/react/features/base/dialog/components/web/ModalHeader.tsx
index e4670c8873..6841721840 100644
--- a/react/features/base/dialog/components/web/ModalHeader.tsx
+++ b/react/features/base/dialog/components/web/ModalHeader.tsx
@@ -19,7 +19,7 @@ import { withPixelLineHeight } from '../../../styles/functions.web';
import Button from '../../../ui/components/web/Button';
import { BUTTON_TYPES } from '../../../ui/constants';
-const TitleIcon = ({ appearance }: { appearance?: 'danger' | 'warning' }) => {
+const TitleIcon = ({ appearance }: { appearance?: 'danger' | 'warning'; }) => {
if (!appearance) {
return null;
}
@@ -34,15 +34,15 @@ const TitleIcon = ({ appearance }: { appearance?: 'danger' | 'warning' }) => {
};
interface Props extends WithTranslation {
- appearance?: 'danger' | 'warning',
- classes: any,
- heading: string,
- hideCloseIconButton: boolean,
- id?: string,
- isHeadingMultiline: boolean,
- onClose: (e?: any) => void,
- showKeyline: boolean,
- testId?: string
+ appearance?: 'danger' | 'warning';
+ classes: any;
+ heading: string;
+ hideCloseIconButton: boolean;
+ id?: string;
+ isHeadingMultiline: boolean;
+ onClose: (e?: any) => void;
+ showKeyline: boolean;
+ testId?: string;
}
/**
diff --git a/react/features/base/dialog/components/web/StatelessDialog.tsx b/react/features/base/dialog/components/web/StatelessDialog.tsx
index 6162b07cde..5980abd995 100644
--- a/react/features/base/dialog/components/web/StatelessDialog.tsx
+++ b/react/features/base/dialog/components/web/StatelessDialog.tsx
@@ -35,61 +35,61 @@ interface Props extends DialogProps, WithTranslation {
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* Custom dialog header that replaces the standard heading.
*/
- customHeader?: ReactElement<any> | Function,
+ customHeader?: ReactElement<any> | Function;
/**
* Disables dismissing the dialog when the blanket is clicked. Enabled
* by default.
*/
- disableBlanketClickDismiss: boolean,
+ disableBlanketClickDismiss: boolean;
/*
* True if listening for the Enter key should be disabled.
*/
- disableEnter: boolean,
+ disableEnter: boolean;
/**
* If true, no footer will be displayed.
*/
- disableFooter?: boolean,
+ disableFooter?: boolean;
/**
* If true, the cancel button will not display but cancel actions, like
* clicking the blanket, will cancel.
*/
- hideCancelButton: boolean,
+ hideCancelButton: boolean;
/**
* If true, the close icon button will not be displayed.
*/
- hideCloseIconButton: boolean,
+ hideCloseIconButton: boolean;
/**
* Whether the dialog is modal. This means clicking on the blanket will
* leave the dialog open. No cancel button.
*/
- isModal: boolean,
+ isModal: boolean;
/**
* The handler for the event when clicking the 'confirmNo' button.
* Defaults to onCancel if absent.
*/
- onDecline?: () => void,
+ onDecline?: () => void;
/**
* Callback invoked when setting the ref of the Dialog.
*/
- onDialogRef?: Function,
+ onDialogRef?: Function;
/**
* Disables rendering of the submit button.
*/
- submitDisabled: boolean,
+ submitDisabled: boolean;
/**
* Width of the dialog, can be:
@@ -98,7 +98,7 @@ interface Props extends DialogProps, WithTranslation {
* - integer value for pixel width
* - string value for percentage.
*/
- width: string
+ width: string;
}
/**
@@ -246,7 +246,7 @@ class StatelessDialog extends Component<Props> {
if (!this.props.isModal) {
const { onCancel } = this.props;
- onCancel && onCancel();
+ onCancel?.();
}
}
@@ -271,7 +271,7 @@ class StatelessDialog extends Component<Props> {
_onSubmit(value?: any) {
const { onSubmit } = this.props;
- onSubmit && onSubmit(value);
+ onSubmit?.(value);
}
/**
@@ -342,7 +342,7 @@ class StatelessDialog extends Component<Props> {
* @returns {void}
*/
_onDialogRef(element?: any) {
- this.props.onDialogRef && this.props.onDialogRef(element && element.parentNode);
+ this.props.onDialogRef?.(element?.parentNode);
}
/**
diff --git a/react/features/base/dialog/constants.ts b/react/features/base/dialog/constants.ts
index 3c53e48a01..a592e6540d 100644
--- a/react/features/base/dialog/constants.ts
+++ b/react/features/base/dialog/constants.ts
@@ -5,56 +5,56 @@ export type DialogProps = {
/**
* Whether cancel button is disabled. Enabled by default.
*/
- cancelDisabled?: boolean,
+ cancelDisabled?: boolean;
/**
* Optional i18n key to change the cancel button title.
*/
- cancelKey?: string,
+ cancelKey?: string;
/**
* The React {@code Component} children which represents the dialog's body.
*/
- children?: ReactNode,
+ children?: ReactNode;
/**
* Is ok button enabled/disabled. Enabled by default.
*/
- okDisabled?: boolean,
+ okDisabled?: boolean;
/**
* Optional i18n key to change the ok button title.
*/
- okKey?: string,
+ okKey?: string;
/**
* The handler for onCancel event.
*/
- onCancel: Function,
+ onCancel: Function;
/**
* The handler for the event when submitting the dialog.
*/
- onSubmit: Function,
+ onSubmit: Function;
/**
* Additional style to be applied on the dialog.
*
* NOTE: Not all dialog types support this!
*/
- style?: Object,
+ style?: Object;
/**
* Key to use for showing a title.
*/
- titleKey?: string,
+ titleKey?: string;
/**
* 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.
*/
- titleString?: string
+ titleString?: string;
};
/**
diff --git a/react/features/base/icons/components/Icon.tsx b/react/features/base/icons/components/Icon.tsx
index 77a1115b86..7d720f5b72 100644
--- a/react/features/base/icons/components/Icon.tsx
+++ b/react/features/base/icons/components/Icon.tsx
@@ -11,98 +11,98 @@ type Props = {
/**
* The id of the element this button icon controls.
*/
- ariaControls?: string,
+ ariaControls?: string;
/**
* Id of description label.
*/
- ariaDescribedBy?: string,
+ ariaDescribedBy?: string;
/**
* Aria disabled flag for the Icon.
*/
- ariaDisabled?: boolean,
+ ariaDisabled?: boolean;
/**
* Whether the element popup is expanded.
*/
- ariaExpanded?: boolean,
+ ariaExpanded?: boolean;
/**
* Whether the element has a popup.
*/
- ariaHasPopup?: boolean,
+ ariaHasPopup?: boolean;
/**
* Aria label for the Icon.
*/
- ariaLabel?: string,
+ ariaLabel?: string;
/**
* Whether the element has a pressed.
*/
- ariaPressed?: boolean,
+ ariaPressed?: boolean;
/**
* Class name for the web platform, if any.
*/
- className?: string,
+ className?: string;
/**
* Color of the icon (if not provided by the style object).
*/
- color?: string,
+ color?: string;
/**
* Id of the icon container.
*/
- containerId?: string,
+ containerId?: string;
/**
* Id prop (mainly for autotests).
*/
- id?: string,
+ id?: string;
/**
* Function to invoke on click.
*/
- onClick?: Function,
+ onClick?: Function;
/**
* Keydown handler.
*/
- onKeyDown?: Function,
+ onKeyDown?: Function;
/**
* Keypress handler.
*/
- onKeyPress?: Function,
+ onKeyPress?: Function;
/**
* Role for the Icon.
*/
- role?: string,
+ role?: string;
/**
* The size of the icon (if not provided by the style object).
*/
- size?: number | string,
+ size?: number | string;
/**
* The preloaded icon component to render.
*/
- src: Function,
+ src: Function;
/**
* Style object to be applied.
*/
- style?: Object,
+ style?: Object;
/**
* TabIndex for the Icon.
*/
- tabIndex?: number
-}
+ tabIndex?: number;
+};
export const DEFAULT_COLOR = navigator.product === 'ReactNative' ? 'white' : undefined;
export const DEFAULT_SIZE = navigator.product === 'ReactNative' ? 36 : 22;
diff --git a/react/features/base/label/components/AbstractLabel.tsx b/react/features/base/label/components/AbstractLabel.tsx
index 817ccad7fc..fe93817526 100644
--- a/react/features/base/label/components/AbstractLabel.tsx
+++ b/react/features/base/label/components/AbstractLabel.tsx
@@ -5,12 +5,12 @@ export type Props = {
/**
* An SVG icon to be rendered as the content of the label.
*/
- icon?: Function,
+ icon?: Function;
/**
* String or component that will be rendered as the label itself.
*/
- text?: string
+ text?: string;
};
/**
diff --git a/react/features/base/label/components/web/Label.tsx b/react/features/base/label/components/web/Label.tsx
index 611e64e7ca..a83f7399c1 100644
--- a/react/features/base/label/components/web/Label.tsx
+++ b/react/features/base/label/components/web/Label.tsx
@@ -14,33 +14,33 @@ type Props = AbstractProps & {
/**
* Own CSS class name.
*/
- className?: string,
+ className?: string;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The color of the label.
*/
- color?: string,
+ color?: string;
/**
* Color for the icon.
*/
- iconColor?: string,
+ iconColor?: string;
/**
* HTML ID attribute to add to the root of {@code Label}.
*/
- id?: string,
+ id?: string;
/**
* Click handler if any.
*/
- onClick?: (e?: React.MouseEvent) => void,
+ onClick?: (e?: React.MouseEvent) => void;
};
diff --git a/react/features/base/lastn/reducer.ts b/react/features/base/lastn/reducer.ts
index e1980c2645..f75c27172c 100644
--- a/react/features/base/lastn/reducer.ts
+++ b/react/features/base/lastn/reducer.ts
@@ -42,6 +42,6 @@ ReducerRegistry.register<ILastNState>('features/base/lastn', (state = {}, action
* @private
* @returns {Object} The new state after the reduction of the specified action.
*/
-function _setConfig(state: ILastNState, { config }: { config: IConfig }) {
+function _setConfig(state: ILastNState, { config }: { config: IConfig; }) {
return set(state, 'lastNLimits', validateLastNLimits(config.lastNLimits));
}
diff --git a/react/features/base/logging/JitsiMeetInMemoryLogStorage.ts b/react/features/base/logging/JitsiMeetInMemoryLogStorage.ts
index 91c035233a..fbbe99aead 100644
--- a/react/features/base/logging/JitsiMeetInMemoryLogStorage.ts
+++ b/react/features/base/logging/JitsiMeetInMemoryLogStorage.ts
@@ -35,7 +35,7 @@ export default class JitsiMeetInMemoryLogStorage {
* representing log lines or aggregated lines objects.
* @returns {void}
*/
- storeLogs(logEntries: (string|{ text: string })[]) {
+ storeLogs(logEntries: (string | { text: string; })[]) {
for (let i = 0, len = logEntries.length; i < len; i++) {
const logEntry = logEntries[i];
diff --git a/react/features/base/logging/JitsiMeetLogStorage.ts b/react/features/base/logging/JitsiMeetLogStorage.ts
index 6d82e5976e..348195b8cd 100644
--- a/react/features/base/logging/JitsiMeetLogStorage.ts
+++ b/react/features/base/logging/JitsiMeetLogStorage.ts
@@ -90,7 +90,7 @@ export default class JitsiMeetLogStorage {
* representing log lines or aggregated lines objects.
* @returns {void}
*/
- storeLogs(logEntries: Array<string|any>) {
+ storeLogs(logEntries: Array<string | any>) {
if (this.canStoreLogsCallstats()) {
this.storeLogsCallstats(logEntries);
@@ -107,7 +107,7 @@ export default class JitsiMeetLogStorage {
* @param {Array<string|any>} logEntries - The log entries to send to the rtcstats server.
* @returns {void}
*/
- storeLogsCallstats(logEntries: Array<string|any>) {
+ storeLogsCallstats(logEntries: Array<string | any>) {
const conference = getCurrentConference(this.getState());
if (!conference || !conference.isCallstatsEnabled()) {
diff --git a/react/features/base/logging/reducer.ts b/react/features/base/logging/reducer.ts
index ed9f7cf187..32b7a2f218 100644
--- a/react/features/base/logging/reducer.ts
+++ b/react/features/base/logging/reducer.ts
@@ -60,7 +60,7 @@ export interface ILoggingState {
disableLogCollector?: boolean;
loggers: {
[key: string]: LogLevel;
- }
+ };
};
logCollector?: {
flush: () => void;
diff --git a/react/features/base/media/constants.ts b/react/features/base/media/constants.ts
index 7c65163787..d9bda4a584 100644
--- a/react/features/base/media/constants.ts
+++ b/react/features/base/media/constants.ts
@@ -15,7 +15,7 @@ export type MediaType = 'audio' | 'video' | 'presenter' | 'screenshare';
*
* @enum {string}
*/
-export const MEDIA_TYPE: { [key: string]: MediaType } = {
+export const MEDIA_TYPE: { [key: string]: MediaType; } = {
AUDIO: 'audio',
PRESENTER: 'presenter',
SCREENSHARE: 'screenshare',
diff --git a/react/features/base/media/reducer.ts b/react/features/base/media/reducer.ts
index 499a1e79eb..010d8535f5 100644
--- a/react/features/base/media/reducer.ts
+++ b/react/features/base/media/reducer.ts
@@ -280,7 +280,7 @@ function _clearAllVideoTransforms(state: IVideoState) {
* @private
* @returns {Object}
*/
-function _storeVideoTransform(state: IVideoState, { streamId, transform }: { streamId: string, transform: string }) {
+function _storeVideoTransform(state: IVideoState, { streamId, transform }: { streamId: string; transform: string; }) {
return {
...state,
transforms: {
@@ -299,7 +299,7 @@ function _storeVideoTransform(state: IVideoState, { streamId, transform }: { str
* @private
* @returns {Object}
*/
-function _trackRemoved(state: IVideoState, { track: { jitsiTrack } } : { track: { jitsiTrack: any } }) {
+function _trackRemoved(state: IVideoState, { track: { jitsiTrack } }: { track: { jitsiTrack: any; }; }) {
if (jitsiTrack) {
const streamId = jitsiTrack.getStreamId();
diff --git a/react/features/base/participants/actions.ts b/react/features/base/participants/actions.ts
index f3cce87eea..3c8b2c368c 100644
--- a/react/features/base/participants/actions.ts
+++ b/react/features/base/participants/actions.ts
@@ -559,7 +559,7 @@ export function participantKicked(kicker: any, kicked: any) {
kicker: kicker?.getId()
});
- if (kicked.isReplaced && kicked.isReplaced()) {
+ if (kicked.isReplaced?.()) {
return;
}
@@ -587,7 +587,7 @@ export function participantKicked(kicker: any, kicked: any) {
* }
* }}
*/
-export function pinParticipant(id: string|null) {
+export function pinParticipant(id: string | null) {
return {
type: PIN_PARTICIPANT,
participant: {
diff --git a/react/features/base/participants/functions.ts b/react/features/base/participants/functions.ts
index f211864f25..a076fb11bb 100644
--- a/react/features/base/participants/functions.ts
+++ b/react/features/base/participants/functions.ts
@@ -32,16 +32,16 @@ const AVATAR_CHECKED_URLS = new Map();
/* eslint-disable arrow-body-style, no-unused-vars */
const AVATAR_CHECKER_FUNCTIONS = [
(participant: Participant) => {
- return participant && participant.isJigasi ? JIGASI_PARTICIPANT_ICON : null;
+ return participant?.isJigasi ? JIGASI_PARTICIPANT_ICON : null;
},
(participant: Participant) => {
- return participant && participant.avatarURL ? participant.avatarURL : null;
+ return participant?.avatarURL ? participant.avatarURL : null;
},
(participant: Participant, store: IStore) => {
const config = store.getState()['features/base/config'];
const isGravatarDisabled = config.gravatar?.disabled;
- if (participant && participant.email && !isGravatarDisabled) {
+ if (participant?.email && !isGravatarDisabled) {
const gravatarBaseURL = config.gravatar?.baseUrl
|| config.gravatarBaseURL
|| GRAVATAR_BASE_URL;
@@ -224,7 +224,7 @@ export function getNormalizedDisplayName(name: string) {
* @private
* @returns {(Participant|undefined)}
*/
-export function getParticipantById(stateful: IStateful, id: string): Participant|undefined {
+export function getParticipantById(stateful: IStateful, id: string): Participant | undefined {
const state = toState(stateful)['features/base/participants'];
const { local, localScreenShare, remote } = state;
diff --git a/react/features/base/participants/reducer.ts b/react/features/base/participants/reducer.ts
index 12852dc398..d84f783d36 100644
--- a/react/features/base/participants/reducer.ts
+++ b/react/features/base/participants/reducer.ts
@@ -196,7 +196,7 @@ ReducerRegistry.register<IParticipantsState>('features/base/participants',
id = LOCAL_PARTICIPANT_DEFAULT_ID;
}
- let newParticipant: Participant|null = null;
+ let newParticipant: Participant | null = null;
if (state.remote.has(id)) {
newParticipant = _participant(state.remote.get(id), action);
@@ -466,7 +466,7 @@ function _isEveryoneModerator(state: IParticipantsState) {
* @private
* @returns {Participant}
*/
-function _participant(state: Participant|LocalParticipant = { id: '' }, action: any): Participant|LocalParticipant {
+function _participant(state: Participant | LocalParticipant = { id: '' }, action: any): Participant | LocalParticipant {
switch (action.type) {
case SET_LOADABLE_AVATAR_URL:
case PARTICIPANT_UPDATED: {
@@ -502,7 +502,7 @@ function _participant(state: Participant|LocalParticipant = { id: '' }, action:
* base/participants after the reduction of the specified
* {@code action}.
*/
-function _participantJoined({ participant }: { participant: Participant }) {
+function _participantJoined({ participant }: { participant: Participant; }) {
const {
avatarURL,
botType,
diff --git a/react/features/base/premeeting/components/web/ActionButton.tsx b/react/features/base/premeeting/components/web/ActionButton.tsx
index 8dda268b89..027639cd88 100644
--- a/react/features/base/premeeting/components/web/ActionButton.tsx
+++ b/react/features/base/premeeting/components/web/ActionButton.tsx
@@ -11,78 +11,78 @@ type Props = {
/**
* Icon to display in the options section.
*/
- OptionsIcon?: Function,
+ OptionsIcon?: Function;
/**
* The Label of the child element.
*/
- ariaDropDownLabel?: string,
+ ariaDropDownLabel?: string;
/**
* The Label of the current element.
*/
- ariaLabel?: string,
+ ariaLabel?: string;
/**
* To give a aria-pressed to the icon.
*/
- ariaPressed?: boolean,
+ ariaPressed?: boolean;
/**
* Text of the button.
*/
- children: ReactNode,
+ children: ReactNode;
/**
* Text css class of the button.
*/
- className?: string,
+ className?: string;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* If the button is disabled or not.
*/
- disabled?: boolean,
+ disabled?: boolean;
/**
* If the button has options.
*/
- hasOptions?: boolean,
+ hasOptions?: boolean;
/**
* OnClick button handler.
*/
- onClick?: (e?: React.MouseEvent) => void,
+ onClick?: (e?: React.MouseEvent) => void;
/**
* Click handler for options.
*/
- onOptionsClick?: (e?: React.KeyboardEvent | React.MouseEvent) => void,
+ onOptionsClick?: (e?: React.KeyboardEvent | React.MouseEvent) => void;
/**
* To give a role to the icon.
*/
- role?: string,
+ role?: string;
/**
* To navigate with the keyboard.
*/
- tabIndex?: number,
+ tabIndex?: number;
/**
* TestId of the button. Can be used to locate element when testing UI.
*/
- testId?: string,
+ testId?: string;
/**
* The type of th button: primary, secondary, text.
*/
- type: string
+ type: string;
};
/**
diff --git a/react/features/base/premeeting/components/web/ConnectionStatus.tsx b/react/features/base/premeeting/components/web/ConnectionStatus.tsx
index 38abfeb07c..d050df2d6b 100644
--- a/react/features/base/premeeting/components/web/ConnectionStatus.tsx
+++ b/react/features/base/premeeting/components/web/ConnectionStatus.tsx
@@ -18,12 +18,12 @@ interface Props extends WithTranslation {
/**
* List of strings with details about the connection.
*/
- connectionDetails: string[],
+ connectionDetails: string[];
/**
* The type of the connection. Can be: 'none', 'poor', 'nonOptimal' or 'good'.
*/
- connectionType: string
+ connectionType: string;
}
const useStyles = makeStyles((theme: any) => {
@@ -124,7 +124,7 @@ const CONNECTION_TYPE_MAP: {
connectionClass: string;
connectionText: string;
icon: Function;
- }
+ };
} = {
[CONNECTION_TYPE.POOR]: {
connectionClass: 'con-status--poor',
diff --git a/react/features/base/react/components/web/BaseIndicator.tsx b/react/features/base/react/components/web/BaseIndicator.tsx
index 8d2e19154b..8d01a533ec 100644
--- a/react/features/base/react/components/web/BaseIndicator.tsx
+++ b/react/features/base/react/components/web/BaseIndicator.tsx
@@ -16,49 +16,49 @@ interface Props extends WithTranslation {
/**
* Additional CSS class name.
*/
- className?: string,
+ className?: string;
/**
* The icon component to use.
*/
- icon: Function,
+ icon: Function;
/**
* The CSS classnames to set on the icon element of the component.
*/
- iconClassName?: string,
+ iconClassName?: string;
/**
* The color of the icon.
*/
- iconColor?: string,
+ iconColor?: string;
/**
* Id of the icon to be rendered.
*/
- iconId?: string,
+ iconId?: string;
/**
* The font size for the icon.
*/
- iconSize: string,
+ iconSize: string;
/**
* The ID attribute to set on the root element of the component.
*/
- id?: string,
+ id?: string;
/**
* The translation key to use for displaying a tooltip when hovering over
* the component.
*/
- tooltipKey: string,
+ tooltipKey: string;
/**
* From which side of the indicator the tooltip should appear from,
* defaulting to "top".
*/
- tooltipPosition: string
+ tooltipPosition: string;
}
const useStyles = makeStyles(() => {
diff --git a/react/features/base/react/components/web/Switch.tsx b/react/features/base/react/components/web/Switch.tsx
index cdb0821932..cc5867304c 100644
--- a/react/features/base/react/components/web/Switch.tsx
+++ b/react/features/base/react/components/web/Switch.tsx
@@ -7,27 +7,27 @@ type Props = {
/**
* CSS class name.
*/
- className: string,
+ className: string;
/**
* Indicates whether the switch is disabled or not.
*/
- disabled: boolean,
+ disabled: boolean;
/**
* ID of the toggle.
*/
- id: string,
+ id: string;
/**
* Handler called when the user presses the switch.
*/
- onValueChange: (checked?: boolean) => void,
+ onValueChange: (checked?: boolean) => void;
/**
* The current value.
*/
- value: boolean
+ value: boolean;
};
/**
diff --git a/react/features/base/react/types.ts b/react/features/base/react/types.ts
index aed6bda950..a855028a32 100644
--- a/react/features/base/react/types.ts
+++ b/react/features/base/react/types.ts
@@ -3,9 +3,9 @@ export interface IconButtonProps {
color?: string;
disabled?: boolean;
onPress?: Function;
- size?: number|string;
+ size?: number | string;
src: Function;
- style?: Object|undefined;
+ style?: Object | undefined;
tapColor?: string;
type?: string;
}
diff --git a/react/features/base/redux/PersistenceRegistry.ts b/react/features/base/redux/PersistenceRegistry.ts
index 16a359a13a..981705ed2a 100644
--- a/react/features/base/redux/PersistenceRegistry.ts
+++ b/react/features/base/redux/PersistenceRegistry.ts
@@ -19,7 +19,7 @@ declare type ElementConfig = boolean | Object;
/**
* The type of the name-config pairs stored in {@code PersistenceRegistry}.
*/
-declare type PersistencyConfigMap = { [name: string]: ElementConfig };
+declare type PersistencyConfigMap = { [name: string]: ElementConfig; };
/**
* A registry to allow features to register their redux store subtree to be
@@ -27,7 +27,7 @@ declare type PersistencyConfigMap = { [name: string]: ElementConfig };
*/
class PersistenceRegistry {
_checksum = '';
- _defaultStates: { [name: string ]: Object|undefined } = {};
+ _defaultStates: { [name: string ]: Object | undefined; } = {};
_elements: PersistencyConfigMap = {};
/**
diff --git a/react/features/base/redux/ReducerRegistry.ts b/react/features/base/redux/ReducerRegistry.ts
index 900b212cec..7cd18470ef 100644
--- a/react/features/base/redux/ReducerRegistry.ts
+++ b/react/features/base/redux/ReducerRegistry.ts
@@ -5,7 +5,7 @@ import type { Reducer } from 'redux';
* The type of the dictionary/map which associates a reducer (function) with the
* name of he Redux state property managed by the reducer.
*/
-type NameReducerMap<S> = { [name: string]: Reducer<S, Action<any>> };
+type NameReducerMap<S> = { [name: string]: Reducer<S, Action<any>>; };
/**
* A registry for Redux reducers, allowing features to register themselves
diff --git a/react/features/base/redux/StateListenerRegistry.ts b/react/features/base/redux/StateListenerRegistry.ts
index 83357f4480..883e7a2cf2 100644
--- a/react/features/base/redux/StateListenerRegistry.ts
+++ b/react/features/base/redux/StateListenerRegistry.ts
@@ -45,8 +45,8 @@ type RegistrationOptions = {
* @property {boolean} [deepEquals=false] - Whether or not a deep equals check should be performed on the selection
* returned by {@link Selector}.
*/
- deepEquals?: boolean
-}
+ deepEquals?: boolean;
+};
/**
* A type of a {@link Selector}-{@link Listener} association in which the
@@ -59,18 +59,18 @@ type SelectorListener = {
* The {@code Listener} which listens to changes in the values selected by
* {@link selector}.
*/
- listener: Listener,
+ listener: Listener;
/**
* The {@link RegistrationOptions} passed during the registration to be applied on the listener.
*/
- options?: RegistrationOptions,
+ options?: RegistrationOptions;
/**
* The {@code Selector} which selects values whose changes are listened to
* by {@link listener}.
*/
- selector: Selector
+ selector: Selector;
};
/**
@@ -94,8 +94,8 @@ class StateListenerRegistry {
* @returns {void}
*/
_listener({ prevSelections, store }: {
- prevSelections: Map<SelectorListener, any>,
- store: Store<any, any>
+ prevSelections: Map<SelectorListener, any>;
+ store: Store<any, any>;
}) {
for (const selectorListener of this._selectorListeners) {
const prevSelection = prevSelections.get(selectorListener);
diff --git a/react/features/base/redux/functions.ts b/react/features/base/redux/functions.ts
index 1873fc0703..d7dd9ae120 100644
--- a/react/features/base/redux/functions.ts
+++ b/react/features/base/redux/functions.ts
@@ -35,7 +35,7 @@ export function assign<T extends Object>(target: T, source: Partial<T>): T {
* @returns {Connector}
*/
export function connect(
- mapStateToProps?: any, mapDispatchToProps?: Function|Object) {
+ mapStateToProps?: any, mapDispatchToProps?: Function | Object) {
return reduxConnect(mapStateToProps, mapDispatchToProps);
}
diff --git a/react/features/base/responsive-ui/reducer.ts b/react/features/base/responsive-ui/reducer.ts
index 4433b83fce..b2d7fa1361 100644
--- a/react/features/base/responsive-ui/reducer.ts
+++ b/react/features/base/responsive-ui/reducer.ts
@@ -37,7 +37,7 @@ export interface IResponsiveUIState {
left: number;
right: number;
top: number;
- }
+ };
}
ReducerRegistry.register<IResponsiveUIState>('features/base/responsive-ui',
diff --git a/react/features/base/settings/reducer.ts b/react/features/base/settings/reducer.ts
index 1e773601cd..f496465529 100644
--- a/react/features/base/settings/reducer.ts
+++ b/react/features/base/settings/reducer.ts
@@ -51,19 +51,19 @@ const DEFAULT_STATE: ISettingsState = {
};
export interface ISettingsState {
- audioOutputDeviceId?: string|boolean;
- avatarURL?: string|boolean;
- cameraDeviceId?: string|boolean;
+ audioOutputDeviceId?: string | boolean;
+ avatarURL?: string | boolean;
+ cameraDeviceId?: string | boolean;
disableCallIntegration?: boolean;
disableCrashReporting?: boolean;
disableP2P?: boolean;
disableSelfView?: boolean;
- displayName?: string|boolean;
- email?: string|boolean;
+ displayName?: string | boolean;
+ email?: string | boolean;
hideShareAudioHelper?: boolean;
localFlipX?: boolean;
- micDeviceId?: string|boolean;
- serverURL?: string|boolean;
+ micDeviceId?: string | boolean;
+ serverURL?: string | boolean;
soundsIncomingMessage?: boolean;
soundsParticipantJoined?: boolean;
soundsParticipantKnocking?: boolean;
@@ -73,15 +73,15 @@ export interface ISettingsState {
startAudioOnly?: boolean;
startWithAudioMuted?: boolean;
startWithVideoMuted?: boolean;
- userSelectedAudioOutputDeviceId?: string|boolean;
- userSelectedAudioOutputDeviceLabel?: string|boolean;
- userSelectedCameraDeviceId?: string|boolean;
- userSelectedCameraDeviceLabel?: string|boolean;
- userSelectedMicDeviceId?: string|boolean;
- userSelectedMicDeviceLabel?: string|boolean;
+ userSelectedAudioOutputDeviceId?: string | boolean;
+ userSelectedAudioOutputDeviceLabel?: string | boolean;
+ userSelectedCameraDeviceId?: string | boolean;
+ userSelectedCameraDeviceLabel?: string | boolean;
+ userSelectedMicDeviceId?: string | boolean;
+ userSelectedMicDeviceLabel?: string | boolean;
userSelectedNotifications?: {
[key: string]: boolean;
- }|boolean,
+ } | boolean;
userSelectedSkipPrejoin?: boolean;
visible?: boolean;
}
diff --git a/react/features/base/sounds/reducer.ts b/react/features/base/sounds/reducer.ts
index ffd452d322..3e57a5b425 100644
--- a/react/features/base/sounds/reducer.ts
+++ b/react/features/base/sounds/reducer.ts
@@ -23,20 +23,20 @@ export type Sound = {
* Becomes available once the sound resource gets loaded and the sound can
* not be played until that happens.
*/
- audioElement?: AudioElement,
+ audioElement?: AudioElement;
/**
* This field is container for all optional parameters related to the sound.
*/
- options?: Object,
+ options?: Object;
/**
* This field describes the source of the audio resource to be played. It
* can be either a path to the file or an object depending on the platform
* (native vs web).
*/
- src?: Object | string
-}
+ src?: Object | string;
+};
/**
* Initial/default state of the feature {@code base/sounds}. It is a {@code Map}
diff --git a/react/features/base/tracks/reducer.ts b/react/features/base/tracks/reducer.ts
index 81a203e48f..0b8d5b4ad0 100644
--- a/react/features/base/tracks/reducer.ts
+++ b/react/features/base/tracks/reducer.ts
@@ -25,7 +25,7 @@ interface ITrack {
participantId: string;
streamingStatus?: string;
videoStarted: boolean;
- videoType?: string|null;
+ videoType?: string | null;
}
/**
@@ -173,7 +173,7 @@ ReducerRegistry.register<ITracksState>('features/base/tracks', (state = [], acti
});
export interface INoSrcDataState {
- noSrcDataNotificationUid?: string|number;
+ noSrcDataNotificationUid?: string | number;
}
/**
diff --git a/react/features/base/ui/components/JitsiThemeProvider.web.tsx b/react/features/base/ui/components/JitsiThemeProvider.web.tsx
index 8d05cf2d46..a4dcdd35ce 100644
--- a/react/features/base/ui/components/JitsiThemeProvider.web.tsx
+++ b/react/features/base/ui/components/JitsiThemeProvider.web.tsx
@@ -11,13 +11,13 @@ type Props = {
/**
* The default theme or theme set through advanced branding.
*/
- _theme: Object,
+ _theme: Object;
/**
* The children of the component.
*/
- children: React.ReactNode
-}
+ children: React.ReactNode;
+};
/**
* The theme provider for the web app.
diff --git a/react/features/base/ui/components/web/Button.tsx b/react/features/base/ui/components/web/Button.tsx
index 95654bae50..c68e8c85e5 100644
--- a/react/features/base/ui/components/web/Button.tsx
+++ b/react/features/base/ui/components/web/Button.tsx
@@ -14,12 +14,12 @@ interface IButtonProps extends ButtonProps {
/**
* Class name used for additional styles.
*/
- className?: string,
+ className?: string;
/**
* Whether or not the button should be full width.
*/
- fullWidth?: boolean,
+ fullWidth?: boolean;
/**
* The id of the button.
diff --git a/react/features/base/ui/components/web/Input.tsx b/react/features/base/ui/components/web/Input.tsx
index 9f328cd681..cbea535c73 100644
--- a/react/features/base/ui/components/web/Input.tsx
+++ b/react/features/base/ui/components/web/Input.tsx
@@ -154,7 +154,7 @@ const Input = React.forwardRef<any, IInputProps>(({
const styles = useStyles();
const isMobile = isMobileBrowser();
- const handleChange = useCallback((e: React.ChangeEvent<HTMLInputElement|HTMLTextAreaElement>) =>
+ const handleChange = useCallback((e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) =>
onChange(e.target.value), []);
const clearInput = useCallback(() => onChange(''), []);
diff --git a/react/features/base/ui/constants.ts b/react/features/base/ui/constants.ts
index b8bd8876dc..cf88875510 100644
--- a/react/features/base/ui/constants.ts
+++ b/react/features/base/ui/constants.ts
@@ -14,7 +14,7 @@ export enum BUTTON_TYPES {
* The modes of the buttons.
*/
export const BUTTON_MODES: {
- CONTAINED: 'contained'
+ CONTAINED: 'contained';
} = {
CONTAINED: 'contained'
};
diff --git a/react/features/base/ui/types.ts b/react/features/base/ui/types.ts
index 6a91a5d7b9..a7ea0ad57b 100644
--- a/react/features/base/ui/types.ts
+++ b/react/features/base/ui/types.ts
@@ -7,9 +7,9 @@ interface TypographyType {
export interface Theme {
breakpoints: {
- down: (value: number|string) => string;
- up: (value: number|string) => string;
- },
+ down: (value: number | string) => string;
+ up: (value: number | string) => string;
+ };
palette: {
action01: string;
action01Active: string;
diff --git a/react/features/base/user-interaction/middleware.ts b/react/features/base/user-interaction/middleware.ts
index f0d48670ff..c4ddb9c41f 100644
--- a/react/features/base/user-interaction/middleware.ts
+++ b/react/features/base/user-interaction/middleware.ts
@@ -9,7 +9,7 @@ import { USER_INTERACTION_RECEIVED } from './actionTypes';
*
* @type {Function|null}
*/
-let userInteractionListener: Function|null = null;
+let userInteractionListener: Function | null = null;
/**
* Implements the entry point of the middleware of the feature base/user-interaction.
@@ -56,7 +56,7 @@ function _onUserInteractionReceived(dispatch: Function, event: any) {
* @private
* @returns {void}
*/
-function _startListeningForUserInteraction({ dispatch }: { dispatch: Function }) {
+function _startListeningForUserInteraction({ dispatch }: { dispatch: Function; }) {
_stopListeningForUserInteraction();
userInteractionListener = _onUserInteractionReceived.bind(null, dispatch);
diff --git a/react/features/base/util/helpers.ts b/react/features/base/util/helpers.ts
index 13838430b0..f2455023ef 100644
--- a/react/features/base/util/helpers.ts
+++ b/react/features/base/util/helpers.ts
@@ -85,7 +85,7 @@ export function getBaseUrl(w: Window = window) {
const doc = w.document;
const base = doc.querySelector('base');
- if (base && base.href) {
+ if (base?.href) {
return base.href;
}
@@ -127,7 +127,7 @@ export function getJitsiMeetGlobalNS() {
*/
export function reportError(e: Error, msg = '') {
console.error(msg, e);
- window.onerror && window.onerror(msg, undefined, undefined, undefined, e);
+ window.onerror?.(msg, undefined, undefined, undefined, e);
}
/**
diff --git a/react/features/base/util/parseURLParams.ts b/react/features/base/util/parseURLParams.ts
index e67bc22192..de43b503b5 100644
--- a/react/features/base/util/parseURLParams.ts
+++ b/react/features/base/util/parseURLParams.ts
@@ -31,7 +31,7 @@ export function parseURLParams(
}
const paramStr = source === 'search' ? url.search : url.hash;
const params: any = {};
- const paramParts = (paramStr && paramStr.substr(1).split('&')) || [];
+ const paramParts = paramStr?.substr(1).split('&') || [];
// Detect and ignore hash params for hash routers.
if (source === 'hash' && paramParts.length === 1) {
diff --git a/react/features/base/util/uri.ts b/react/features/base/util/uri.ts
index 7a3e0eb441..02f1fecad7 100644
--- a/react/features/base/util/uri.ts
+++ b/react/features/base/util/uri.ts
@@ -107,7 +107,7 @@ function _fixURIStringScheme(uri: string) {
* @param {string?} path - The path to convert.
* @returns {string?}
*/
-export function getBackendSafePath(path?: string): string|undefined {
+export function getBackendSafePath(path?: string): string | undefined {
if (!path) {
return path;
}
@@ -124,7 +124,7 @@ export function getBackendSafePath(path?: string): string|undefined {
* @param {string?} room - The room name to convert.
* @returns {string?}
*/
-export function getBackendSafeRoomName(room?: string): string|undefined {
+export function getBackendSafeRoomName(room?: string): string | undefined {
if (!room) {
return room;
}
@@ -168,7 +168,7 @@ export function getBackendSafeRoomName(room?: string): string|undefined {
* @returns {string} - The (Web application) context root defined by the
* specified {@code location} (URI).
*/
-export function getLocationContextRoot({ pathname }: { pathname: string }) {
+export function getLocationContextRoot({ pathname }: { pathname: string; }) {
const contextRootEndIndex = pathname.lastIndexOf('/');
return (
@@ -221,7 +221,7 @@ function _objectToURLParamsArray(obj = {}) {
export function parseStandardURIString(str: string) {
/* eslint-disable no-param-reassign */
- const obj: { [key: string]: any } = {
+ const obj: { [key: string]: any; } = {
toString: _standardURIToString
};
@@ -277,7 +277,7 @@ export function parseStandardURIString(str: string) {
regex = new RegExp(`^${_URI_PATH_PATTERN}`, 'gi');
match = regex.exec(str);
- let pathname: string|undefined;
+ let pathname: string | undefined;
if (match) {
pathname = match[1];
@@ -375,7 +375,7 @@ export function parseURIString(uri?: string) {
*/
function _standardURIToString(thiz?: Object) {
// @ts-ignore
- // eslint-disable-next-line no-invalid-this
+ // eslint-disable-next-line @typescript-eslint/no-invalid-this
const { hash, host, pathname, protocol, search } = thiz || this;
let str = '';
@@ -421,7 +421,7 @@ export function safeDecodeURIComponent(text: string) {
* @returns {string} - A {@code String} representation of the specified
* {@code obj} which is supposed to represent a URL.
*/
-export function toURLString(obj?: (Object | string)): string|undefined|null {
+export function toURLString(obj?: (Object | string)): string | undefined | null {
let str;
switch (typeof obj) {
@@ -452,7 +452,7 @@ export function toURLString(obj?: (Object | string)): string|undefined|null {
* @returns {string} - A {@code String} representation of the specified
* {@code Object}.
*/
-export function urlObjectToString(o: { [key: string]: any }): string|undefined {
+export function urlObjectToString(o: { [key: string]: any; }): string | undefined {
// First normalize the given url. It come as o.url or split into o.serverURL
// and o.room.
let tmp;
@@ -469,7 +469,7 @@ export function urlObjectToString(o: { [key: string]: any }): string|undefined {
// protocol
if (!url.protocol) {
- let protocol: string|undefined = o.protocol || o.scheme;
+ let protocol: string | undefined = o.protocol || o.scheme;
if (protocol) {
// Protocol is supposed to be the scheme and the final ':'. Anyway,
@@ -487,7 +487,7 @@ export function urlObjectToString(o: { [key: string]: any }): string|undefined {
//
// It may be host/hostname and pathname with the latter denoting the
// tenant.
- const domain: string|undefined = o.domain || o.host || o.hostname;
+ const domain: string | undefined = o.domain || o.host || o.hostname;
if (domain) {
const { host, hostname, pathname: contextRoot, port }
diff --git a/react/features/breakout-rooms/reducer.ts b/react/features/breakout-rooms/reducer.ts
index c2308dd28a..a30bc48955 100644
--- a/react/features/breakout-rooms/reducer.ts
+++ b/react/features/breakout-rooms/reducer.ts
@@ -25,9 +25,9 @@ export interface IBreakoutRoomsState {
displayName: string;
jid: string;
role: string;
- }
- }
- }
+ };
+ };
+ };
};
}
diff --git a/react/features/chat/components/AbstractMessageContainer.ts b/react/features/chat/components/AbstractMessageContainer.ts
index c8bb6b7958..9d69b63748 100644
--- a/react/features/chat/components/AbstractMessageContainer.ts
+++ b/react/features/chat/components/AbstractMessageContainer.ts
@@ -7,7 +7,7 @@ export interface Props {
/**
* The messages array to render.
*/
- messages: IMessage[]
+ messages: IMessage[];
}
/**
diff --git a/react/features/chat/components/web/ChatInput.tsx b/react/features/chat/components/web/ChatInput.tsx
index d2bf6e14b9..abf13412cd 100644
--- a/react/features/chat/components/web/ChatInput.tsx
+++ b/react/features/chat/components/web/ChatInput.tsx
@@ -24,17 +24,17 @@ interface Props extends WithTranslation {
/**
* Whether chat emoticons are disabled.
*/
- _areSmileysDisabled: boolean,
+ _areSmileysDisabled: boolean;
/**
* Invoked to send chat messages.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* Callback to invoke on message send.
*/
- onSend: Function
+ onSend: Function;
}
/**
@@ -45,12 +45,12 @@ type State = {
/**
* User provided nickname when the input text is provided in the view.
*/
- message: string,
+ message: string;
/**
* Whether or not the smiley selector is visible.
*/
- showSmileysPanel: boolean
+ showSmileysPanel: boolean;
};
/**
diff --git a/react/features/chat/components/web/DisplayNameForm.tsx b/react/features/chat/components/web/DisplayNameForm.tsx
index 0b1db63da5..bb6d5cad56 100644
--- a/react/features/chat/components/web/DisplayNameForm.tsx
+++ b/react/features/chat/components/web/DisplayNameForm.tsx
@@ -21,12 +21,12 @@ interface Props extends WithTranslation {
/**
* Invoked to set the local participant display name.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* Whether the polls feature is enabled or not.
*/
- isPollsEnabled: boolean
+ isPollsEnabled: boolean;
}
/**
@@ -37,7 +37,7 @@ type State = {
/**
* User provided display name when the input text is provided in the view.
*/
- displayName: string
+ displayName: string;
};
/**
diff --git a/react/features/chat/components/web/GifMessage.tsx b/react/features/chat/components/web/GifMessage.tsx
index 65ba666088..457e19155c 100644
--- a/react/features/chat/components/web/GifMessage.tsx
+++ b/react/features/chat/components/web/GifMessage.tsx
@@ -6,8 +6,8 @@ type Props = {
/**
* URL of the GIF.
*/
- url: string
-}
+ url: string;
+};
const useStyles = makeStyles(() => {
return {
diff --git a/react/features/chat/components/web/MessageContainer.tsx b/react/features/chat/components/web/MessageContainer.tsx
index 4480dd1baa..0261b1d1f7 100644
--- a/react/features/chat/components/web/MessageContainer.tsx
+++ b/react/features/chat/components/web/MessageContainer.tsx
@@ -86,7 +86,7 @@ export default class MessageContainer extends AbstractMessageContainer<Props, St
render() {
const groupedMessages = this._getMessagesGroupedBySender();
const messages = groupedMessages.map((group, index) => {
- const messageType = group[0] && group[0].messageType;
+ const messageType = group[0]?.messageType;
return (
<ChatMessageGroup
diff --git a/react/features/chat/components/web/TouchmoveHack.tsx b/react/features/chat/components/web/TouchmoveHack.tsx
index 13eaab3eac..a0480a839a 100644
--- a/react/features/chat/components/web/TouchmoveHack.tsx
+++ b/react/features/chat/components/web/TouchmoveHack.tsx
@@ -9,17 +9,17 @@ type Props = {
/**
* The component(s) that need to be scrollable on mobile.
*/
- children: ReactElement,
+ children: ReactElement;
/**
* Whether the component should be flex container or not.
*/
- flex?: boolean,
+ flex?: boolean;
/**
* Whether the component is rendered within a modal.
*/
- isModal: boolean,
+ isModal: boolean;
};
@@ -62,12 +62,12 @@ function TouchmoveHack({ children, isModal, flex }: Props) {
}
useEffect(() => {
- if (touchMoveElementRef && touchMoveElementRef.current) {
+ if (touchMoveElementRef?.current) {
touchMoveElementRef.current.addEventListener('touchmove', handleTouchMove, true);
}
return () => {
- if (touchMoveElementRef && touchMoveElementRef.current) {
+ if (touchMoveElementRef?.current) {
touchMoveElementRef.current.removeEventListener('touchmove', handleTouchMove, true);
}
};
diff --git a/react/features/chat/reducer.ts b/react/features/chat/reducer.ts
index 364d1aaeac..f0e5511e0c 100644
--- a/react/features/chat/reducer.ts
+++ b/react/features/chat/reducer.ts
@@ -49,7 +49,7 @@ export interface IChatState {
lobbyMessageRecipient?: {
id: string;
name: string;
- } | LocalParticipant,
+ } | LocalParticipant;
messages: IMessage[];
nbUnreadMessages: number;
privateMessageRecipient?: Participant;
diff --git a/react/features/conference/components/native/carmode/AudioIcon.tsx b/react/features/conference/components/native/carmode/AudioIcon.tsx
index b4c780aab6..3716cc2266 100644
--- a/react/features/conference/components/native/carmode/AudioIcon.tsx
+++ b/react/features/conference/components/native/carmode/AudioIcon.tsx
@@ -11,7 +11,7 @@ import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
* @returns {JSX.Element} - The Audio icon.
*
*/
-const AudioIcon = () : JSX.Element => (<Icon
+const AudioIcon = (): JSX.Element => (<Icon
color = { BaseTheme.palette.text06 }
size = { 20 }
src = { IconVolumeEmpty } />);
diff --git a/react/features/conference/components/native/carmode/EndMeetingButton.tsx b/react/features/conference/components/native/carmode/EndMeetingButton.tsx
index 6b81c507b4..47eaf5c650 100644
--- a/react/features/conference/components/native/carmode/EndMeetingButton.tsx
+++ b/react/features/conference/components/native/carmode/EndMeetingButton.tsx
@@ -18,7 +18,7 @@ import styles from './styles';
*
* @returns {JSX.Element} - The end meeting button.
*/
-const EndMeetingButton = () : JSX.Element => {
+const EndMeetingButton = (): JSX.Element => {
const dispatch = useDispatch();
const onSelect = useCallback(() => {
diff --git a/react/features/conference/components/native/carmode/EndMeetingIcon.tsx b/react/features/conference/components/native/carmode/EndMeetingIcon.tsx
index 7a7aae7982..f5c3400305 100644
--- a/react/features/conference/components/native/carmode/EndMeetingIcon.tsx
+++ b/react/features/conference/components/native/carmode/EndMeetingIcon.tsx
@@ -9,7 +9,7 @@ import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
*
* @returns {JSX.Element} - The end meeting icon.
*/
-const EndMeetingIcon = () : JSX.Element => (<Icon
+const EndMeetingIcon = (): JSX.Element => (<Icon
color = { BaseTheme.palette.icon01 }
size = { 20 }
src = { IconHangup } />);
diff --git a/react/features/conference/components/native/carmode/MicrophoneButton.tsx b/react/features/conference/components/native/carmode/MicrophoneButton.tsx
index cfeb7ae0d3..248f519bfc 100644
--- a/react/features/conference/components/native/carmode/MicrophoneButton.tsx
+++ b/react/features/conference/components/native/carmode/MicrophoneButton.tsx
@@ -32,7 +32,7 @@ const LONG_PRESS = 'long.press';
*
* @returns {JSX.Element} - The audio mute round button.
*/
-const MicrophoneButton = () : JSX.Element|null => {
+const MicrophoneButton = (): JSX.Element | null => {
const dispatch = useDispatch();
const audioMuted = useSelector((state: IState) => isLocalTrackMuted(state['features/base/tracks'],
MEDIA_TYPE.AUDIO));
diff --git a/react/features/conference/components/native/carmode/SoundDeviceButton.tsx b/react/features/conference/components/native/carmode/SoundDeviceButton.tsx
index 0e6d4dcbe4..9f74529f0c 100644
--- a/react/features/conference/components/native/carmode/SoundDeviceButton.tsx
+++ b/react/features/conference/components/native/carmode/SoundDeviceButton.tsx
@@ -18,7 +18,7 @@ import styles from './styles';
*
* @returns {JSX.Element} - The sound device button.
*/
-const SelectSoundDevice = () : JSX.Element => {
+const SelectSoundDevice = (): JSX.Element => {
const dispatch = useDispatch();
const onSelect = useCallback(() =>
diff --git a/react/features/conference/components/native/carmode/TitleBar.tsx b/react/features/conference/components/native/carmode/TitleBar.tsx
index e1eefa2ef0..3970beaa65 100644
--- a/react/features/conference/components/native/carmode/TitleBar.tsx
+++ b/react/features/conference/components/native/carmode/TitleBar.tsx
@@ -28,12 +28,12 @@ type Props = {
/**
* Name of the meeting we're currently in.
*/
- _meetingName: string,
+ _meetingName: string;
/**
* Whether displaying the current meeting name is enabled or not.
*/
- _meetingNameEnabled: boolean,
+ _meetingNameEnabled: boolean;
};
@@ -44,7 +44,7 @@ type Props = {
* @param {Props} props - The React props passed to this component.
* @returns {JSX.Element}
*/
-const TitleBar = (props: Props) : JSX.Element => {
+const TitleBar = (props: Props): JSX.Element => {
const localParticipant = useSelector(getLocalParticipant);
const localParticipantId = localParticipant?.id;
diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.tsx b/react/features/connection-indicator/components/web/ConnectionIndicator.tsx
index d99cb84f56..6773f3ff09 100644
--- a/react/features/connection-indicator/components/web/ConnectionIndicator.tsx
+++ b/react/features/connection-indicator/components/web/ConnectionIndicator.tsx
@@ -82,67 +82,67 @@ type Props = AbstractProps & WithTranslation & {
/**
* Disable/enable inactive indicator.
*/
- _connectionIndicatorInactiveDisabled: boolean,
+ _connectionIndicatorInactiveDisabled: boolean;
/**
* The current condition of the user's connection, matching one of the
* enumerated values in the library.
*/
- _connectionStatus: string,
+ _connectionStatus: string;
/**
* Whether the indicator popover is disabled.
*/
- _popoverDisabled: boolean,
+ _popoverDisabled: boolean;
/**
* The source name of the track.
*/
- _sourceName: string,
+ _sourceName: string;
/**
* Whether source name signaling is enabled.
*/
- _sourceNameSignalingEnabled: boolean,
+ _sourceNameSignalingEnabled: boolean;
/**
* Whether or not the component should ignore setting a visibility class for
* hiding the component when the connection quality is not strong.
*/
- alwaysVisible: boolean,
+ alwaysVisible: boolean;
/**
* The audio SSRC of this client.
*/
- audioSsrc: number,
+ audioSsrc: number;
/**
* An object containing the CSS classes.
*/
- classes: Object,
+ classes: Object;
/**
* The Redux dispatch function.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* Whether or not clicking the indicator should display a popover for more
* details.
*/
- enableStatsDisplay: boolean,
+ enableStatsDisplay: boolean;
/**
* The font-size for the icon.
*/
- iconSize: number,
+ iconSize: number;
/**
* Relative to the icon from where the popover for more connection details
* should display.
*/
- statsPopoverPosition: string
+ statsPopoverPosition: string;
};
type State = AbstractState & {
@@ -150,8 +150,8 @@ type State = AbstractState & {
/**
* Whether popover is ivisible or not.
*/
- popoverVisible: boolean
-}
+ popoverVisible: boolean;
+};
const styles = (theme: any) => {
return {
diff --git a/react/features/connection-stats/components/ConnectionStatsTable.tsx b/react/features/connection-stats/components/ConnectionStatsTable.tsx
index 79f2a00d46..d6e959804b 100644
--- a/react/features/connection-stats/components/ConnectionStatsTable.tsx
+++ b/react/features/connection-stats/components/ConnectionStatsTable.tsx
@@ -10,7 +10,7 @@ import { translate } from '../../base/i18n/functions';
type DownloadUpload = {
download: number;
upload: number;
-}
+};
/**
* The type of the React {@code Component} props of
@@ -21,7 +21,7 @@ interface Props extends WithTranslation {
/**
* The audio SSRC of this client.
*/
- audioSsrc: number,
+ audioSsrc: number;
/**
* Statistics related to bandwidth.
@@ -30,7 +30,7 @@ interface Props extends WithTranslation {
* upload: Number
* }}.
*/
- bandwidth: DownloadUpload,
+ bandwidth: DownloadUpload;
/**
* Statistics related to bitrate.
@@ -39,18 +39,18 @@ interface Props extends WithTranslation {
* upload: Number
* }}.
*/
- bitrate: DownloadUpload,
+ bitrate: DownloadUpload;
/**
* The number of bridges (aka media servers) currently used in the
* conference.
*/
- bridgeCount: number,
+ bridgeCount: number;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* Audio/video codecs in use for the connection.
@@ -59,28 +59,28 @@ interface Props extends WithTranslation {
[key: string]: {
audio: string;
video: string;
- }
- },
+ };
+ };
/**
* A message describing the connection quality.
*/
- connectionSummary: string,
+ connectionSummary: string;
/**
* Whether or not should display the "Show More" link.
*/
- disableShowMoreStats: boolean,
+ disableShowMoreStats: boolean;
/**
* The end-to-end round-trip-time.
*/
- e2eRtt: number,
+ e2eRtt: number;
/**
* Whether or not should display the "Save Logs" link.
*/
- enableSaveLogs: boolean,
+ enableSaveLogs: boolean;
/**
* Statistics related to frame rates for each ssrc.
@@ -88,33 +88,33 @@ interface Props extends WithTranslation {
* [ ssrc ]: Number
* }}.
*/
- framerate: Object,
+ framerate: Object;
/**
* Whether or not the statistics are for local video.
*/
- isLocalVideo: boolean,
+ isLocalVideo: boolean;
/**
* Whether or not the statistics are for screen share.
*/
- isVirtualScreenshareParticipant: boolean,
+ isVirtualScreenshareParticipant: boolean;
/**
* The send-side max enabled resolution (aka the highest layer that is not
* suspended on the send-side).
*/
- maxEnabledResolution: number,
+ maxEnabledResolution: number;
/**
* Callback to invoke when the user clicks on the download logs link.
*/
- onSaveLogs: () => void,
+ onSaveLogs: () => void;
/**
* Callback to invoke when the show additional stats link is clicked.
*/
- onShowMore: (e?: React.MouseEvent) => void,
+ onShowMore: (e?: React.MouseEvent) => void;
/**
* Statistics related to packet loss.
@@ -123,17 +123,17 @@ interface Props extends WithTranslation {
* upload: Number
* }}.
*/
- packetLoss: DownloadUpload,
+ packetLoss: DownloadUpload;
/**
* The endpoint id of this client.
*/
- participantId: string,
+ participantId: string;
/**
* The region that we think the client is in.
*/
- region: string,
+ region: string;
/**
* Statistics related to display resolutions for each ssrc.
@@ -148,24 +148,24 @@ interface Props extends WithTranslation {
[ssrc: string]: {
height: number;
width: number;
- }
- },
+ };
+ };
/**
* The region of the media server that we are connected to.
*/
- serverRegion: string,
+ serverRegion: string;
/**
* Whether or not additional stats about bandwidth and transport should be
* displayed. Will not display even if true for remote participants.
*/
- shouldShowMore: boolean,
+ shouldShowMore: boolean;
/**
* Whether source name signaling is enabled.
*/
- sourceNameSignalingEnabled: boolean,
+ sourceNameSignalingEnabled: boolean;
/**
* Statistics related to transports.
@@ -178,12 +178,12 @@ interface Props extends WithTranslation {
remoteCandidateType: string;
transportType: string;
type: string;
- }>,
+ }>;
/**
* The video SSRC of this client.
*/
- videoSsrc: number
+ videoSsrc: number;
}
/**
@@ -809,11 +809,11 @@ class ConnectionStatsTable extends Component<Props> {
}
const data: {
- localIP: string[],
- localPort: string[],
- remoteIP: string[],
- remotePort: string[],
- transportType: string[]
+ localIP: string[];
+ localPort: string[];
+ remoteIP: string[];
+ remotePort: string[];
+ transportType: string[];
} = {
localIP: [],
localPort: [],
diff --git a/react/features/display-name/components/AbstractDisplayNamePrompt.tsx b/react/features/display-name/components/AbstractDisplayNamePrompt.tsx
index 0a2b805f19..e3bcbff876 100644
--- a/react/features/display-name/components/AbstractDisplayNamePrompt.tsx
+++ b/react/features/display-name/components/AbstractDisplayNamePrompt.tsx
@@ -14,12 +14,12 @@ export interface Props extends WithTranslation {
/**
* Invoked to update the local participant's display name.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* Function to be invoked after a successful display name change.
*/
- onPostSubmit?: Function
+ onPostSubmit?: Function;
}
/**
@@ -61,7 +61,7 @@ export default class AbstractDisplayNamePrompt<S>
displayName
}));
- onPostSubmit && onPostSubmit();
+ onPostSubmit?.();
return true;
}
diff --git a/react/features/display-name/components/native/DisplayNameLabel.tsx b/react/features/display-name/components/native/DisplayNameLabel.tsx
index c1e0df272d..564b3bc644 100644
--- a/react/features/display-name/components/native/DisplayNameLabel.tsx
+++ b/react/features/display-name/components/native/DisplayNameLabel.tsx
@@ -32,7 +32,7 @@ type Props = {
* The ID of the participant to render the label for.
*/
participantId: string;
-}
+};
/**
* Renders a label with the display name of the on-stage participant.
diff --git a/react/features/display-name/components/web/DisplayName.tsx b/react/features/display-name/components/web/DisplayName.tsx
index b4bc793fc1..c778134636 100644
--- a/react/features/display-name/components/web/DisplayName.tsx
+++ b/react/features/display-name/components/web/DisplayName.tsx
@@ -28,48 +28,48 @@ interface Props extends WithTranslation {
* The participant's current display name which should be shown when in
* edit mode. Can be different from what is shown when not editing.
*/
- _configuredDisplayName: string,
+ _configuredDisplayName: string;
/**
* The participant's current display name which should be shown.
*/
- _nameToDisplay: string,
+ _nameToDisplay: string;
/**
* Whether or not the display name should be editable on click.
*/
- allowEditing: boolean,
+ allowEditing: boolean;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* Invoked to update the participant's display name.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* A string to append to the displayName, if provided.
*/
- displayNameSuffix: string,
+ displayNameSuffix: string;
/**
* The ID attribute to add to the component. Useful for global querying for
* the component by legacy components and torture tests.
*/
- elementID: string,
+ elementID: string;
/**
* The ID of the participant whose name is being displayed.
*/
- participantID: string,
+ participantID: string;
/**
* The type of thumbnail.
*/
- thumbnailType: string
+ thumbnailType: string;
}
/**
@@ -80,12 +80,12 @@ type State = {
/**
* The current value of the display name in the edit field.
*/
- editDisplayNameValue: string,
+ editDisplayNameValue: string;
/**
* Whether or not the component should be displaying an editable input.
*/
- isEditing: boolean
+ isEditing: boolean;
};
const styles = (theme: any) => {
@@ -333,7 +333,7 @@ function _mapStateToProps(state: IState, ownProps: Partial<Props>) {
const participant = getParticipantById(state, participantID ?? '');
return {
- _configuredDisplayName: participant && participant.name,
+ _configuredDisplayName: participant?.name,
_nameToDisplay: getParticipantDisplayName(state, participantID ?? '')
};
}
diff --git a/react/features/display-name/components/web/DisplayNameBadge.tsx b/react/features/display-name/components/web/DisplayNameBadge.tsx
index 9ab650034b..5925ef8426 100644
--- a/react/features/display-name/components/web/DisplayNameBadge.tsx
+++ b/react/features/display-name/components/web/DisplayNameBadge.tsx
@@ -26,7 +26,7 @@ const useStyles = makeStyles((theme: Theme) => {
* @param {Props} props - The props of the component.
* @returns {ReactElement}
*/
-const DisplayNameBadge: React.FC<{ name: string }> = ({ name }) => {
+const DisplayNameBadge: React.FC<{ name: string; }> = ({ name }) => {
const classes = useStyles();
return (
diff --git a/react/features/display-name/components/web/DisplayNamePrompt.tsx b/react/features/display-name/components/web/DisplayNamePrompt.tsx
index 7a890245cc..609c5c8395 100644
--- a/react/features/display-name/components/web/DisplayNamePrompt.tsx
+++ b/react/features/display-name/components/web/DisplayNamePrompt.tsx
@@ -15,7 +15,7 @@ type State = {
/**
* The name to show in the display name text field.
*/
- displayName: string
+ displayName: string;
};
/**
diff --git a/react/features/dynamic-branding/functions.web.ts b/react/features/dynamic-branding/functions.web.ts
index a9dd66e718..c597b53be3 100644
--- a/react/features/dynamic-branding/functions.web.ts
+++ b/react/features/dynamic-branding/functions.web.ts
@@ -47,7 +47,7 @@ export function createMuiBrandingTheme(customTheme: any) {
let newSpacing = [ ...spacing ];
- if (customSpacing && customSpacing.length) {
+ if (customSpacing?.length) {
newSpacing = customSpacing;
}
diff --git a/react/features/dynamic-branding/reducer.ts b/react/features/dynamic-branding/reducer.ts
index 30fcef1f8d..3b6a454748 100644
--- a/react/features/dynamic-branding/reducer.ts
+++ b/react/features/dynamic-branding/reducer.ts
@@ -151,7 +151,7 @@ export interface IDynamicBrandingState {
defaultBranding: boolean;
didPageUrl: string;
inviteDomain: string;
- labels: Object|null;
+ labels: Object | null;
logoClickUrl: string;
logoImageUrl: string;
muiBrandedTheme?: boolean;
@@ -228,7 +228,7 @@ ReducerRegistry.register<IDynamicBrandingState>(STORE_NAME, (state = DEFAULT_STA
* @private
* @returns {{Props}}
*/
-function formatImages(images: Array<string> | Array<{ src: string; tooltip?: string }>): Array<Image> {
+function formatImages(images: Array<string> | Array<{ src: string; tooltip?: string; }>): Array<Image> {
return images.map((img, i) => {
let src;
let tooltip;
diff --git a/react/features/e2ee/components/E2EESection.tsx b/react/features/e2ee/components/E2EESection.tsx
index 7bfcea2c57..c0af3abfff 100644
--- a/react/features/e2ee/components/E2EESection.tsx
+++ b/react/features/e2ee/components/E2EESection.tsx
@@ -20,32 +20,32 @@ interface Props extends WithTranslation {
/**
* The resource for the description, computed based on the maxMode and whether the switch is toggled or not.
*/
- _descriptionResource: string,
+ _descriptionResource: string;
/**
* Custom e2ee labels.
*/
- _e2eeLabels: any,
+ _e2eeLabels: any;
/**
* Whether the switch is currently enabled or not.
*/
- _enabled: boolean,
+ _enabled: boolean;
/**
* Indicates whether all participants in the conference currently support E2EE.
*/
- _everyoneSupportE2EE: boolean,
+ _everyoneSupportE2EE: boolean;
/**
* Whether E2EE is currently enabled or not.
*/
- _toggled: boolean,
+ _toggled: boolean;
/**
* The redux {@code dispatch} function.
*/
- dispatch: Dispatch<any>
+ dispatch: Dispatch<any>;
}
type State = {
@@ -53,7 +53,7 @@ type State = {
/**
* True if the switch is toggled on.
*/
- toggled: boolean
+ toggled: boolean;
};
/**
@@ -161,7 +161,7 @@ function mapStateToProps(state: IState) {
const { enabled: e2eeEnabled, maxMode } = state['features/e2ee'];
const { e2eeLabels } = state['features/base/config'];
- let descriptionResource: string|undefined = '';
+ let descriptionResource: string | undefined = '';
if (e2eeLabels) {
// When e2eeLabels are present, the descriptionResouse is ignored.
diff --git a/react/features/face-landmarks/FaceLandmarksHelper.ts b/react/features/face-landmarks/FaceLandmarksHelper.ts
index 6b9acec312..fe054cbf6c 100644
--- a/react/features/face-landmarks/FaceLandmarksHelper.ts
+++ b/react/features/face-landmarks/FaceLandmarksHelper.ts
@@ -4,35 +4,35 @@ import { Human, Config, FaceResult } from '@vladmandic/human';
import { DETECTION_TYPES, FACE_DETECTION_SCORE_THRESHOLD, FACE_EXPRESSIONS_NAMING_MAPPING } from './constants';
type DetectInput = {
- image: ImageBitmap | ImageData,
- threshold: number
+ image: ImageBitmap | ImageData;
+ threshold: number;
};
type FaceBox = {
- left: number,
- right: number,
- width?: number
+ left: number;
+ right: number;
+ width?: number;
};
type InitInput = {
- baseUrl: string,
- detectionTypes: string[]
-}
+ baseUrl: string;
+ detectionTypes: string[];
+};
type DetectOutput = {
- faceBox?: FaceBox,
- faceCount: number,
- faceExpression?: string
+ faceBox?: FaceBox;
+ faceCount: number;
+ faceExpression?: string;
};
export interface FaceLandmarksHelper {
- detect({ image, threshold } : DetectInput): Promise<DetectOutput>;
- getDetectionInProgress(): boolean;
- getDetections(image: ImageBitmap | ImageData): Promise<Array<FaceResult>>;
- getFaceBox(detections: Array<FaceResult>, threshold: number): FaceBox | undefined;
- getFaceCount(detections : Array<FaceResult>): number;
- getFaceExpression(detections: Array<FaceResult>): string | undefined;
- init(): Promise<void>;
+ detect: ({ image, threshold }: DetectInput) => Promise<DetectOutput>;
+ getDetectionInProgress: () => boolean;
+ getDetections: (image: ImageBitmap | ImageData) => Promise<Array<FaceResult>>;
+ getFaceBox: (detections: Array<FaceResult>, threshold: number) => FaceBox | undefined;
+ getFaceCount: (detections: Array<FaceResult>) => number;
+ getFaceExpression: (detections: Array<FaceResult>) => string | undefined;
+ init: () => Promise<void>;
}
/**
@@ -217,7 +217,7 @@ export class HumanHelper implements FaceLandmarksHelper {
* @param {DetectInput} input - The input for the detections.
* @returns {Promise<DetectOutput>}
*/
- public async detect({ image, threshold } : DetectInput): Promise<DetectOutput> {
+ public async detect({ image, threshold }: DetectInput): Promise<DetectOutput> {
let faceExpression;
let faceBox;
diff --git a/react/features/filmstrip/components/web/Filmstrip.tsx b/react/features/filmstrip/components/web/Filmstrip.tsx
index 09b8c3b6c1..b784f8c7e5 100644
--- a/react/features/filmstrip/components/web/Filmstrip.tsx
+++ b/react/features/filmstrip/components/web/Filmstrip.tsx
@@ -71,172 +71,172 @@ interface Props extends WithTranslation {
/**
* Additional CSS class names top add to the root.
*/
- _className: string,
+ _className: string;
/**
* The number of columns in tile view.
*/
- _columns: number,
+ _columns: number;
/**
* The current layout of the filmstrip.
*/
- _currentLayout: string,
+ _currentLayout: string;
/**
* Whether or not to hide the self view.
*/
- _disableSelfView: boolean,
+ _disableSelfView: boolean;
/**
* The height of the filmstrip.
*/
- _filmstripHeight: number,
+ _filmstripHeight: number;
/**
* The width of the filmstrip.
*/
- _filmstripWidth: number,
+ _filmstripWidth: number;
/**
* Whether or not we have scroll on the filmstrip.
*/
- _hasScroll: boolean,
+ _hasScroll: boolean;
/**
* Whether this is a recorder or not.
*/
- _iAmRecorder: boolean,
+ _iAmRecorder: boolean;
/**
* Whether the filmstrip button is enabled.
*/
- _isFilmstripButtonEnabled: boolean,
+ _isFilmstripButtonEnabled: boolean;
/**
* Whether or not the toolbox is displayed.
*/
- _isToolboxVisible: Boolean,
+ _isToolboxVisible: Boolean;
/**
* Whether or not the current layout is vertical filmstrip.
*/
- _isVerticalFilmstrip: boolean,
+ _isVerticalFilmstrip: boolean;
/**
* The local screen share participant. This prop is behind the sourceNameSignaling feature flag.
*/
- _localScreenShare: Participant,
+ _localScreenShare: Participant;
/**
* Whether or not the filmstrip videos should currently be displayed.
*/
- _mainFilmstripVisible: boolean,
+ _mainFilmstripVisible: boolean;
/**
* The maximum width of the vertical filmstrip.
*/
- _maxFilmstripWidth: number,
+ _maxFilmstripWidth: number;
/**
* The maximum height of the top panel.
*/
- _maxTopPanelHeight: number,
+ _maxTopPanelHeight: number;
/**
* The participants in the call.
*/
- _remoteParticipants: Array<Object>,
+ _remoteParticipants: Array<Object>;
/**
* The length of the remote participants array.
*/
- _remoteParticipantsLength: number,
+ _remoteParticipantsLength: number;
/**
* Whether or not the filmstrip should be user-resizable.
*/
- _resizableFilmstrip: boolean,
+ _resizableFilmstrip: boolean;
/**
* The number of rows in tile view.
*/
- _rows: number,
+ _rows: number;
/**
* The height of the thumbnail.
*/
- _thumbnailHeight: number,
+ _thumbnailHeight: number;
/**
* The width of the thumbnail.
*/
- _thumbnailWidth: number,
+ _thumbnailWidth: number;
/**
* Flag that indicates whether the thumbnails will be reordered.
*/
- _thumbnailsReordered: Boolean,
+ _thumbnailsReordered: Boolean;
/**
* Whether or not the filmstrip is top panel.
*/
- _topPanelFilmstrip: boolean,
+ _topPanelFilmstrip: boolean;
/**
* The height of the top panel (user resized).
*/
- _topPanelHeight?: number,
+ _topPanelHeight?: number;
/**
* The max height of the top panel.
*/
- _topPanelMaxHeight: number,
+ _topPanelMaxHeight: number;
/**
* Whether or not the top panel is visible.
*/
- _topPanelVisible: boolean,
+ _topPanelVisible: boolean;
/**
* The width of the vertical filmstrip (user resized).
*/
- _verticalFilmstripWidth?: number,
+ _verticalFilmstripWidth?: number;
/**
* Whether or not the vertical filmstrip should have a background color.
*/
- _verticalViewBackground: boolean,
+ _verticalViewBackground: boolean;
/**
* Whether or not the vertical filmstrip should be displayed as grid.
*/
- _verticalViewGrid: boolean,
+ _verticalViewGrid: boolean;
/**
* The max width of the vertical filmstrip.
*/
- _verticalViewMaxWidth: number,
+ _verticalViewMaxWidth: number;
/**
* Additional CSS class names to add to the container of all the thumbnails.
*/
- _videosClassName: string,
+ _videosClassName: string;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The redux {@code dispatch} function.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* The type of filmstrip to be displayed.
*/
- filmstripType: string
+ filmstripType: string;
}
type State = {
@@ -244,23 +244,23 @@ type State = {
/**
* Initial top panel height on drag handle mouse down.
*/
- dragFilmstripHeight?: number,
+ dragFilmstripHeight?: number;
/**
* Initial filmstrip width on drag handle mouse down.
*/
- dragFilmstripWidth?: number|null,
+ dragFilmstripWidth?: number | null;
/**
* Whether or not the mouse is pressed.
*/
- isMouseDown: boolean,
+ isMouseDown: boolean;
/**
* Initial mouse position on drag handle mouse down.
*/
- mousePosition?: number|null
-}
+ mousePosition?: number | null;
+};
/**
* Implements a React {@link Component} which represents the filmstrip on
@@ -607,7 +607,7 @@ class Filmstrip extends PureComponent <Props, State> {
* @param {Object} data - An object with the indexes identifying the ThumbnailWrapper instance.
* @returns {string} - The key.
*/
- _gridItemKey({ columnIndex, rowIndex }: { columnIndex: number, rowIndex: number }) {
+ _gridItemKey({ columnIndex, rowIndex }: { columnIndex: number; rowIndex: number; }) {
const {
_disableSelfView,
_columns,
@@ -639,8 +639,8 @@ class Filmstrip extends PureComponent <Props, State> {
* @param {Object} data - Information about the rendered items.
* @returns {void}
*/
- _onListItemsRendered({ visibleStartIndex, visibleStopIndex }
- : { visibleStartIndex: number, visibleStopIndex: number }) {
+ _onListItemsRendered({ visibleStartIndex, visibleStopIndex }: {
+ visibleStartIndex: number; visibleStopIndex: number; }) {
const { dispatch } = this.props;
const { startIndex, stopIndex } = this._calculateIndices(visibleStartIndex, visibleStopIndex);
@@ -659,10 +659,10 @@ class Filmstrip extends PureComponent <Props, State> {
visibleRowStartIndex,
visibleRowStopIndex
}: {
- visibleColumnStartIndex: number,
- visibleColumnStopIndex: number,
- visibleRowStartIndex: number,
- visibleRowStopIndex: number
+ visibleColumnStartIndex: number;
+ visibleColumnStopIndex: number;
+ visibleRowStartIndex: number;
+ visibleRowStopIndex: number;
}) {
const { _columns, dispatch } = this.props;
const start = (visibleRowStartIndex * _columns) + visibleColumnStartIndex;
diff --git a/react/features/filmstrip/components/web/PinnedIndicator.tsx b/react/features/filmstrip/components/web/PinnedIndicator.tsx
index feb881b671..c10e6e3d47 100644
--- a/react/features/filmstrip/components/web/PinnedIndicator.tsx
+++ b/react/features/filmstrip/components/web/PinnedIndicator.tsx
@@ -18,18 +18,18 @@ type Props = {
/**
* The font-size for the icon.
*/
- iconSize: number,
+ iconSize: number;
/**
* The participant id who we want to render the raised hand indicator
* for.
*/
- participantId: string,
+ participantId: string;
/**
* From which side of the indicator the tooltip should appear from.
*/
- tooltipPosition: string
+ tooltipPosition: string;
};
const useStyles = makeStyles(() => {
@@ -57,7 +57,7 @@ const PinnedIndicator = ({
}: Props) => {
const stageFilmstrip = useSelector(isStageFilmstripAvailable);
const pinned = useSelector((state: IState) => getParticipantById(state, participantId))?.pinned;
- const activePinnedParticipants: Array<{ participantId: string; pinned: boolean }>
+ const activePinnedParticipants: Array<{ participantId: string; pinned: boolean; }>
= useSelector(getPinnedActiveParticipants);
const isPinned = activePinnedParticipants.find(p => p.participantId === participantId);
const styles = useStyles();
diff --git a/react/features/filmstrip/components/web/RaisedHandIndicator.tsx b/react/features/filmstrip/components/web/RaisedHandIndicator.tsx
index f950f04094..13323a2f1e 100644
--- a/react/features/filmstrip/components/web/RaisedHandIndicator.tsx
+++ b/react/features/filmstrip/components/web/RaisedHandIndicator.tsx
@@ -17,18 +17,18 @@ type Props = {
/**
* The font-size for the icon.
*/
- iconSize: number,
+ iconSize: number;
/**
* The participant id who we want to render the raised hand indicator
* for.
*/
- participantId: string,
+ participantId: string;
/**
* From which side of the indicator the tooltip should appear from.
*/
- tooltipPosition: string
+ tooltipPosition: string;
};
const useStyles = makeStyles((theme: any) => {
@@ -54,7 +54,7 @@ const RaisedHandIndicator = ({
participantId,
tooltipPosition
}: Props) => {
- const participant: Participant|undefined = useSelector((state: IState) =>
+ const participant: Participant | undefined = useSelector((state: IState) =>
getParticipantById(state, participantId));
const _raisedHand = hasRaisedHand(participant);
const styles = useStyles();
diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsx
index 939c7e6e8b..a00b495dfd 100644
--- a/react/features/filmstrip/components/web/Thumbnail.tsx
+++ b/react/features/filmstrip/components/web/Thumbnail.tsx
@@ -84,22 +84,22 @@ export type State = {
/**
* Indicates that the canplay event has been received.
*/
- canPlayEventReceived: boolean,
+ canPlayEventReceived: boolean;
/**
* The current display mode of the thumbnail.
*/
- displayMode: number,
+ displayMode: number;
/**
* Indicates whether the thumbnail is hovered or not.
*/
- isHovered: boolean,
+ isHovered: boolean;
/**
* Whether popover is visible or not.
*/
- popoverVisible: boolean
+ popoverVisible: boolean;
};
/**
@@ -110,172 +110,172 @@ export type Props = {
/**
* The audio track related to the participant.
*/
- _audioTrack?: Object,
+ _audioTrack?: Object;
/**
* Indicates whether the local video flip feature is disabled or not.
*/
- _disableLocalVideoFlip: boolean,
+ _disableLocalVideoFlip: boolean;
/**
* Indicates whether enlargement of tiles to fill the available space is disabled.
*/
- _disableTileEnlargement: boolean,
+ _disableTileEnlargement: boolean;
/**
* URL of GIF sent by this participant, null if there's none.
*/
- _gifSrc?: string,
+ _gifSrc?: string;
/**
* The height of the Thumbnail.
*/
- _height: number,
+ _height: number;
/**
* Whether or not the participant is displayed on the stage filmstrip.
* Used to hide the video from the vertical filmstrip.
*/
- _isActiveParticipant: boolean,
+ _isActiveParticipant: boolean;
/**
* Indicates whether audio only mode is enabled.
*/
- _isAudioOnly: boolean,
+ _isAudioOnly: boolean;
/**
* Indicates whether the participant associated with the thumbnail is displayed on the large video.
*/
- _isCurrentlyOnLargeVideo: boolean,
+ _isCurrentlyOnLargeVideo: boolean;
/**
* Disable/enable the dominant speaker indicator.
*/
- _isDominantSpeakerDisabled: boolean,
+ _isDominantSpeakerDisabled: boolean;
/**
* Indicates whether the thumbnail should be hidden or not.
*/
- _isHidden: boolean,
+ _isHidden: boolean;
/**
* Whether we are currently running in a mobile browser.
*/
- _isMobile: boolean,
+ _isMobile: boolean;
/**
* Whether we are currently running in a mobile browser in portrait orientation.
*/
- _isMobilePortrait: boolean,
+ _isMobilePortrait: boolean;
/**
* Indicates whether the participant is screen sharing.
*/
- _isScreenSharing: boolean,
+ _isScreenSharing: boolean;
/**
* Indicates whether testing mode is enabled.
*/
- _isTestModeEnabled: boolean,
+ _isTestModeEnabled: boolean;
/**
* Indicates whether the video associated with the thumbnail is playable.
*/
- _isVideoPlayable: boolean,
+ _isVideoPlayable: boolean;
/**
* Indicates whether the participant is a virtual screen share participant. This prop is behind the
* sourceNameSignaling feature flag.
*/
- _isVirtualScreenshareParticipant: boolean,
+ _isVirtualScreenshareParticipant: boolean;
/**
* The current local video flip setting.
*/
- _localFlipX: boolean,
+ _localFlipX: boolean;
/**
* An object with information about the participant related to the thumbnail.
*/
- _participant: Participant,
+ _participant: Participant;
/**
* Whether or not the participant has the hand raised.
*/
- _raisedHand: boolean,
+ _raisedHand: boolean;
/**
* Whether source name signaling is enabled.
*/
- _sourceNameSignalingEnabled: boolean,
+ _sourceNameSignalingEnabled: boolean;
/**
* Whether or not the current layout is stage filmstrip layout.
*/
- _stageFilmstripLayout: boolean,
+ _stageFilmstripLayout: boolean;
/**
* Whether or not the participants are displayed on stage.
* (and not screensharing or shared video; used to determine
* whether or not the display the participant video in the vertical filmstrip).
*/
- _stageParticipantsVisible: boolean,
+ _stageParticipantsVisible: boolean;
/**
* The type of thumbnail to display.
*/
- _thumbnailType: string,
+ _thumbnailType: string;
/**
* The video object position for the participant.
*/
- _videoObjectPosition: string,
+ _videoObjectPosition: string;
/**
* The video track that will be displayed in the thumbnail.
*/
- _videoTrack?: any,
+ _videoTrack?: any;
/**
* The width of the thumbnail.
*/
- _width: number,
+ _width: number;
/**
* An object containing CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The redux dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* The type of filmstrip the tile is displayed in.
*/
- filmstripType: string,
+ filmstripType: string;
/**
* The horizontal offset in px for the thumbnail. Used to center the thumbnails from the last row in tile view.
*/
- horizontalOffset: number,
+ horizontalOffset: number;
/**
* The ID of the participant related to the thumbnail.
*/
- participantID?: string,
+ participantID?: string;
/**
* Styles that will be set to the Thumbnail's main span element.
*/
- style?: any,
+ style?: any;
/**
* The width of the thumbnail. Used for expanding the width of the thumbnails on last row in case
* there is empty space.
*/
- width?: number
+ width?: number;
};
const defaultStyles = (theme: any) => {
@@ -658,12 +658,12 @@ class Thumbnail extends Component<Props, State> {
const isTileType = _thumbnailType === THUMBNAIL_TYPE.TILE;
const jitsiVideoTrack = _videoTrack?.jitsiTrack;
const track = jitsiVideoTrack?.track;
- const isPortraitVideo = ((track && track.getSettings()?.aspectRatio) || 1) < 1;
+ const isPortraitVideo = (track?.getSettings()?.aspectRatio || 1) < 1;
let styles: {
- avatar: Object,
- thumbnail: any,
- video: Object
+ avatar: Object;
+ thumbnail: any;
+ video: Object;
} = {
thumbnail: {},
avatar: {},
@@ -993,7 +993,7 @@ class Thumbnail extends Component<Props, State> {
const videoTrackClassName
= !_disableLocalVideoFlip && _videoTrack && !_isScreenSharing && _localFlipX ? 'flipVideoX' : '';
const jitsiVideoTrack = _videoTrack?.jitsiTrack;
- const videoTrackId = jitsiVideoTrack && jitsiVideoTrack.getId();
+ const videoTrackId = jitsiVideoTrack?.getId();
const videoEventListeners: any = {};
if (local) {
diff --git a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx
index 8415ef27ae..b72ac75c5e 100644
--- a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx
+++ b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx
@@ -23,33 +23,33 @@ type Props = {
/**
* Class name for indicators container.
*/
- className: string,
+ className: string;
/**
* Whether it is a virtual screenshare participant thumbnail.
*/
- isVirtualScreenshareParticipant: boolean,
+ isVirtualScreenshareParticipant: boolean;
/**
* Whether or not the indicators are for the local participant.
*/
- local: boolean,
+ local: boolean;
/**
* Id of the participant for which the component is displayed.
*/
- participantId: string,
+ participantId: string;
/**
* Whether or not to show the status indicators.
*/
- showStatusIndicators?: boolean,
+ showStatusIndicators?: boolean;
/**
* The type of thumbnail.
*/
- thumbnailType: string
-}
+ thumbnailType: string;
+};
const useStyles = makeStyles(() => {
return {
diff --git a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx
index 041e5a60b5..5faa0b89c2 100644
--- a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx
+++ b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx
@@ -29,48 +29,48 @@ type Props = {
/**
* Hide popover callback.
*/
- hidePopover: Function,
+ hidePopover: Function;
/**
* Class name for the status indicators container.
*/
- indicatorsClassName: string,
+ indicatorsClassName: string;
/**
* Whether or not the thumbnail is hovered.
*/
- isHovered: boolean,
+ isHovered: boolean;
/**
* Whether or not the thumbnail is a virtual screen share participant.
*/
- isVirtualScreenshareParticipant?: boolean,
+ isVirtualScreenshareParticipant?: boolean;
/**
* Whether or not the indicators are for the local participant.
*/
- local: boolean,
+ local: boolean;
/**
* Id of the participant for which the component is displayed.
*/
- participantId: string,
+ participantId: string;
/**
* Whether popover is visible or not.
*/
- popoverVisible: boolean,
+ popoverVisible: boolean;
/**
* Show popover callback.
*/
- showPopover: Function,
+ showPopover: Function;
/**
* The type of thumbnail.
*/
- thumbnailType: string
-}
+ thumbnailType: string;
+};
const useStyles = makeStyles(() => {
return {
diff --git a/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx b/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx
index f001bf28a3..b0d570beef 100644
--- a/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx
+++ b/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx
@@ -8,38 +8,38 @@ type Props = {
/**
* Hide popover callback.
*/
- hidePopover: Function,
+ hidePopover: Function;
/**
* Whether or not the button is for the local participant.
*/
- local: boolean,
+ local: boolean;
/**
* The id of the participant for which the button is.
*/
- participantId?: string,
+ participantId?: string;
/**
* Whether popover is visible or not.
*/
- popoverVisible: boolean,
+ popoverVisible: boolean;
/**
* Show popover callback.
*/
- showPopover: Function,
+ showPopover: Function;
/**
* The type of thumbnail.
*/
- thumbnailType: string,
+ thumbnailType: string;
/**
* Whether or not the component is visible.
*/
- visible: boolean
-}
+ visible: boolean;
+};
// eslint-disable-next-line no-confusing-arrow
const VideoMenuTriggerButton = ({
diff --git a/react/features/filmstrip/reducer.ts b/react/features/filmstrip/reducer.ts
index 5faa88832b..59ea04eddf 100644
--- a/react/features/filmstrip/reducer.ts
+++ b/react/features/filmstrip/reducer.ts
@@ -198,7 +198,7 @@ interface FilmstripDimensions {
gridDimensions?: {
columns: number;
rows: number;
- }
+ };
hasScroll?: boolean;
thumbnailSize?: Dimensions;
}
@@ -206,7 +206,7 @@ interface FilmstripDimensions {
export interface IFilmstripState {
activeParticipants: Array<{
participantId: string;
- pinned?: boolean
+ pinned?: boolean;
}>;
enabled: boolean;
horizontalViewDimensions: {
@@ -226,12 +226,12 @@ export interface IFilmstripState {
filmstripWidth?: number;
thumbnailSize?: Dimensions;
};
- screenshareFilmstripParticipantId?: string|null;
+ screenshareFilmstripParticipantId?: string | null;
stageFilmstripDimensions: FilmstripDimensions;
tileViewDimensions?: FilmstripDimensions;
topPanelHeight: {
- current: number|null;
- userSet: number|null;
+ current: number | null;
+ userSet: number | null;
};
topPanelVisible: boolean;
verticalViewDimensions: {
@@ -253,9 +253,9 @@ export interface IFilmstripState {
visibleParticipantsStartIndex: number;
visibleRemoteParticipants: Set<string>;
width: {
- current: number|null;
- userSet: number|null;
- }
+ current: number | null;
+ userSet: number | null;
+ };
}
ReducerRegistry.register<IFilmstripState>(
diff --git a/react/features/follow-me/reducer.ts b/react/features/follow-me/reducer.ts
index 82c83f3dfb..981b9cfde6 100644
--- a/react/features/follow-me/reducer.ts
+++ b/react/features/follow-me/reducer.ts
@@ -10,7 +10,7 @@ export interface IFollowMeState {
moderator?: string;
state?: {
[key: string]: string;
- }
+ };
}
/**
diff --git a/react/features/jaas/reducer.ts b/react/features/jaas/reducer.ts
index 486aee20bc..7ff1a703cd 100644
--- a/react/features/jaas/reducer.ts
+++ b/react/features/jaas/reducer.ts
@@ -11,7 +11,7 @@ const DEFAULT_STATE = {
};
export interface IJaaSState {
- [key: string]: any
+ [key: string]: any;
}
/**
diff --git a/react/features/keyboard-shortcuts/components/web/KeyboardShortcutsDialog.tsx b/react/features/keyboard-shortcuts/components/web/KeyboardShortcutsDialog.tsx
index e55d9f8432..74445c4ddb 100644
--- a/react/features/keyboard-shortcuts/components/web/KeyboardShortcutsDialog.tsx
+++ b/react/features/keyboard-shortcuts/components/web/KeyboardShortcutsDialog.tsx
@@ -16,12 +16,12 @@ interface Props extends WithTranslation {
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* A Map with keyboard keys as keys and translation keys as values.
*/
- shortcutDescriptions: Map<string, string>
+ shortcutDescriptions: Map<string, string>;
}
/**
diff --git a/react/features/lobby/components/web/LobbySection.tsx b/react/features/lobby/components/web/LobbySection.tsx
index 7f0305b690..7cd034b3be 100644
--- a/react/features/lobby/components/web/LobbySection.tsx
+++ b/react/features/lobby/components/web/LobbySection.tsx
@@ -17,17 +17,17 @@ interface Props extends WithTranslation {
/**
* True if lobby is currently enabled in the conference.
*/
- _lobbyEnabled: boolean,
+ _lobbyEnabled: boolean;
/**
* True if the section should be visible.
*/
- _visible: boolean,
+ _visible: boolean;
/**
* The Redux Dispatch function.
*/
- dispatch: Function
+ dispatch: Function;
}
type State = {
@@ -35,8 +35,8 @@ type State = {
/**
* True if the lobby switch is toggled on.
*/
- lobbyEnabled: boolean
-}
+ lobbyEnabled: boolean;
+};
/**
* Implements a security feature section to control lobby mode.
diff --git a/react/features/noise-suppression/actions.ts b/react/features/noise-suppression/actions.ts
index 2c70b0cef5..9f5653d639 100644
--- a/react/features/noise-suppression/actions.ts
+++ b/react/features/noise-suppression/actions.ts
@@ -21,7 +21,7 @@ import logger from './logger';
* enabled: boolean
* }}
*/
-export function setNoiseSuppressionEnabledState(enabled: boolean) : any {
+export function setNoiseSuppressionEnabledState(enabled: boolean): any {
return {
type: SET_NOISE_SUPPRESSION_ENABLED,
enabled
@@ -33,7 +33,7 @@ export function setNoiseSuppressionEnabledState(enabled: boolean) : any {
*
* @returns {Function}
*/
-export function toggleNoiseSuppression() : any {
+export function toggleNoiseSuppression(): any {
return (dispatch: Dispatch, getState: Function) => {
if (isNoiseSuppressionEnabled(getState())) {
dispatch(setNoiseSuppressionEnabled(false));
@@ -50,7 +50,7 @@ export function toggleNoiseSuppression() : any {
*
* @returns {Function}
*/
-export function setNoiseSuppressionEnabled(enabled: boolean) : any {
+export function setNoiseSuppressionEnabled(enabled: boolean): any {
return async (dispatch: Dispatch, getState: Function) => {
const state = getState();
diff --git a/react/features/noise-suppression/components/NoiseSuppressionButton.tsx b/react/features/noise-suppression/components/NoiseSuppressionButton.tsx
index fbd37af68c..df1516f339 100644
--- a/react/features/noise-suppression/components/NoiseSuppressionButton.tsx
+++ b/react/features/noise-suppression/components/NoiseSuppressionButton.tsx
@@ -23,7 +23,7 @@ type Props = AbstractButtonProps & {
*/
dispatch: Function;
-}
+};
/**
* Component that renders a toolbar button for toggling noise suppression.
diff --git a/react/features/noise-suppression/functions.ts b/react/features/noise-suppression/functions.ts
index aa225ebfa2..8b9f3af04c 100644
--- a/react/features/noise-suppression/functions.ts
+++ b/react/features/noise-suppression/functions.ts
@@ -24,7 +24,7 @@ export function isNoiseSuppressionEnabled(state: IState): boolean {
* @param {*} localAudio - Current local audio track.
* @returns {boolean}
*/
-export function canEnableNoiseSuppression(state: IState, dispatch: Function, localAudio: any) : boolean {
+export function canEnableNoiseSuppression(state: IState, dispatch: Function, localAudio: any): boolean {
if (!localAudio) {
dispatch(showWarningNotification({
titleKey: 'notify.noiseSuppressionFailedTitle',
diff --git a/react/features/noise-suppression/reducer.ts b/react/features/noise-suppression/reducer.ts
index 0fd8cd1b96..3c5b0ad751 100644
--- a/react/features/noise-suppression/reducer.ts
+++ b/react/features/noise-suppression/reducer.ts
@@ -5,7 +5,7 @@ import {
} from './actionTypes';
export interface INoiseSuppressionState {
- enabled: boolean
+ enabled: boolean;
}
const DEFAULT_STATE = {
diff --git a/react/features/notifications/components/web/NotificationsContainer.tsx b/react/features/notifications/components/web/NotificationsContainer.tsx
index 7df25a1e52..380c9d0309 100644
--- a/react/features/notifications/components/web/NotificationsContainer.tsx
+++ b/react/features/notifications/components/web/NotificationsContainer.tsx
@@ -23,12 +23,12 @@ interface Props extends WithTranslation {
/**
* Whether we are a SIP gateway or not.
*/
- _iAmSipGateway: boolean,
+ _iAmSipGateway: boolean;
/**
* Whether or not the chat is open.
*/
- _isChatOpen: boolean,
+ _isChatOpen: boolean;
/**
* The notifications to be displayed, with the first index being the
@@ -37,22 +37,22 @@ interface Props extends WithTranslation {
_notifications: Array<{
props: Object;
uid: number;
- }>,
+ }>;
/**
* JSS classes object.
*/
- classes: any,
+ classes: any;
/**
* Invoked to update the redux store in order to remove notifications.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Whether or not the notifications are displayed in a portal.
*/
- portal?: boolean
+ portal?: boolean;
}
const useStyles = (theme: any) => {
diff --git a/react/features/overlay/reducer.ts b/react/features/overlay/reducer.ts
index 42cad51452..924106b72e 100644
--- a/react/features/overlay/reducer.ts
+++ b/react/features/overlay/reducer.ts
@@ -55,7 +55,7 @@ ReducerRegistry.register<IOverlayState>('features/overlay', (state = {}, action)
*/
function _mediaPermissionPromptVisibilityChanged(
state: IOverlayState,
- { browser, isVisible }: { browser?: string, isVisible?: boolean }) {
+ { browser, isVisible }: { browser?: string; isVisible?: boolean; }) {
return assign(state, {
browser,
isMediaPermissionPromptVisible: isVisible
@@ -74,7 +74,7 @@ function _mediaPermissionPromptVisibilityChanged(
*/
function _toggleSlowGUMOverlay(
state: IOverlayState,
- { isVisible }: { isVisible?: boolean }) {
+ { isVisible }: { isVisible?: boolean; }) {
return assign(state, {
isSlowGUMOverlayVisible: isVisible
});
@@ -102,6 +102,6 @@ function _setShowLoadConfigOverlay(state: IOverlayState, show?: boolean) {
* @returns {Object}
* @private
*/
-function _setFatalError(state: IOverlayState, { fatalError }: { fatalError?: Error }) {
+function _setFatalError(state: IOverlayState, { fatalError }: { fatalError?: Error; }) {
return set(state, 'fatalError', fatalError);
}
diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx
index d0991bcc58..2046b56b22 100644
--- a/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx
+++ b/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx
@@ -23,39 +23,39 @@ type Props = {
/**
* Type of trigger for the breakout room actions.
*/
- actionsTrigger?: string,
+ actionsTrigger?: string;
/**
* React children.
*/
- children: ReactElement,
+ children: ReactElement;
/**
* Is this item highlighted/raised.
*/
- isHighlighted?: boolean,
+ isHighlighted?: boolean;
/**
* Callback for when the mouse leaves this component.
*/
- onLeave?: (e?: React.MouseEvent) => void,
+ onLeave?: (e?: React.MouseEvent) => void;
/**
* Callback to raise menu. Used to raise menu on mobile long press.
*/
- onRaiseMenu: Function,
+ onRaiseMenu: Function;
/**
* The raise context for the participant menu.
*/
participantContextEntity?: {
- jid: string
- },
+ jid: string;
+ };
/**
* Callback to raise participant context menu.
*/
- raiseParticipantContextMenu: Function,
+ raiseParticipantContextMenu: Function;
/**
* Room reference.
@@ -67,20 +67,20 @@ type Props = {
[jid: string]: {
displayName: string;
jid: string;
- }
+ };
};
- },
+ };
/**
* Participants search string.
*/
- searchString: string,
+ searchString: string;
/**
* Toggles the room participant context menu.
*/
- toggleParticipantMenu: Function
-}
+ toggleParticipantMenu: Function;
+};
const useStyles = makeStyles((theme: any) => {
return {
diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx
index e8f4e42936..88bf08ccc4 100644
--- a/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx
+++ b/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx
@@ -19,8 +19,8 @@ type Props = {
room: {
id: string;
jid: string;
- }
-}
+ };
+};
const useStyles = makeStyles((theme: Theme) => {
return {
diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx
index 017483be81..b07c700b77 100644
--- a/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx
+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx
@@ -10,7 +10,7 @@ type Props = {
* Click handler function.
*/
onClick: () => void;
-}
+};
const RoomActionEllipsis = ({ onClick }: Props) => {
const { t } = useTranslation();
diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
index 6dc6d743e4..4b780fd2af 100644
--- a/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
@@ -24,30 +24,30 @@ type Props = {
* Room and participant jid reference.
*/
entity: {
- jid: string,
- participantName: string,
- room: any
- },
+ jid: string;
+ participantName: string;
+ room: any;
+ };
/**
* Target elements against which positioning calculations are made.
*/
- offsetTarget: HTMLElement|undefined,
+ offsetTarget: HTMLElement | undefined;
/**
* Callback for the mouse entering the component.
*/
- onEnter: Function,
+ onEnter: Function;
/**
* Callback for the mouse leaving the component.
*/
- onLeave: Function,
+ onLeave: Function;
/**
* Callback for making a selection in the menu.
*/
- onSelect: Function
+ onSelect: Function;
};
const useStyles = makeStyles((theme: Theme) => {
diff --git a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
index c66d222c07..85565a48ef 100644
--- a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
+++ b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
@@ -29,27 +29,27 @@ interface Props extends WithTranslation {
/**
* The list of all breakout rooms.
*/
- _rooms: Array<any>,
+ _rooms: Array<any>;
/**
* The Redux dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* The jid of the selected participant.
*/
- participantJid: string,
+ participantJid: string;
/**
* The display name of the selected participant.
*/
- participantName: string,
+ participantName: string;
/**
* The room the participant is in.
*/
- room: any
+ room: any;
}
/**
diff --git a/react/features/participants-pane/components/web/FooterContextMenu.tsx b/react/features/participants-pane/components/web/FooterContextMenu.tsx
index 076e3911c3..51c5b317a3 100644
--- a/react/features/participants-pane/components/web/FooterContextMenu.tsx
+++ b/react/features/participants-pane/components/web/FooterContextMenu.tsx
@@ -75,17 +75,17 @@ type Props = {
/**
* Whether the menu is open.
*/
- isOpen: boolean,
+ isOpen: boolean;
/**
* Drawer close callback.
*/
- onDrawerClose: (e?: React.MouseEvent) => void,
+ onDrawerClose: (e?: React.MouseEvent) => void;
/**
* Callback for the mouse leaving this item.
*/
- onMouseLeave?: (e?: React.MouseEvent) => void
+ onMouseLeave?: (e?: React.MouseEvent) => void;
};
export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: Props) => {
diff --git a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx b/react/features/participants-pane/components/web/LobbyParticipantItem.tsx
index 9ac6117b28..c8148b9676 100644
--- a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx
+++ b/react/features/participants-pane/components/web/LobbyParticipantItem.tsx
@@ -24,17 +24,17 @@ type Props = {
/**
* Callback used to open a drawer with admit/reject actions.
*/
- openDrawerForParticipant: Function,
+ openDrawerForParticipant: Function;
/**
* If an overflow drawer should be displayed.
*/
- overflowDrawer: boolean,
+ overflowDrawer: boolean;
/**
* Participant reference.
*/
- participant: Participant
+ participant: Participant;
};
const useStyles = makeStyles((theme: any) => {
diff --git a/react/features/participants-pane/components/web/LobbyParticipants.tsx b/react/features/participants-pane/components/web/LobbyParticipants.tsx
index e28b11a1d8..ea26bb8d6c 100644
--- a/react/features/participants-pane/components/web/LobbyParticipants.tsx
+++ b/react/features/participants-pane/components/web/LobbyParticipants.tsx
@@ -114,9 +114,9 @@ export default function LobbyParticipants() {
<li className = { classes.drawerItem }>
<Avatar
className = { classes.icon }
- participantId = { drawerParticipant && drawerParticipant.participantID }
+ participantId = { drawerParticipant?.participantID }
size = { 20 } />
- <span>{ drawerParticipant && drawerParticipant.displayName }</span>
+ <span>{ drawerParticipant?.displayName }</span>
</li>
<li
className = { classes.drawerItem }
diff --git a/react/features/participants-pane/components/web/MeetingParticipants.tsx b/react/features/participants-pane/components/web/MeetingParticipants.tsx
index b6beed41fa..fb479840ce 100644
--- a/react/features/participants-pane/components/web/MeetingParticipants.tsx
+++ b/react/features/participants-pane/components/web/MeetingParticipants.tsx
@@ -58,13 +58,13 @@ const useStyles = makeStyles((theme: any) => {
});
type Props = {
- currentRoom?: { name: string },
- overflowDrawer?: boolean,
- participantsCount?: number,
- searchString: string,
- setSearchString: (newValue: string) => void,
- showInviteButton?: boolean,
- sortedParticipantIds?: Array<string>
+ currentRoom?: { name: string; };
+ overflowDrawer?: boolean;
+ participantsCount?: number;
+ searchString: string;
+ setSearchString: (newValue: string) => void;
+ showInviteButton?: boolean;
+ sortedParticipantIds?: Array<string>;
};
/**
diff --git a/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx b/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx
index d63594b956..1300d5f4bd 100644
--- a/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx
+++ b/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx
@@ -8,13 +8,13 @@ type Props = {
/**
* Label used for accessibility.
*/
- accessibilityLabel: string,
+ accessibilityLabel: string;
/**
* Click handler function.
*/
onClick: () => void;
-}
+};
const ParticipantActionEllipsis = ({ accessibilityLabel, onClick }: Props) => (
<Button
diff --git a/react/features/participants-pane/components/web/ParticipantItem.tsx b/react/features/participants-pane/components/web/ParticipantItem.tsx
index bd2dc11e52..c55761ffcb 100644
--- a/react/features/participants-pane/components/web/ParticipantItem.tsx
+++ b/react/features/participants-pane/components/web/ParticipantItem.tsx
@@ -23,77 +23,77 @@ interface Props extends WithTranslation {
/**
* Type of trigger for the participant actions.
*/
- actionsTrigger?: ActionTrigger,
+ actionsTrigger?: ActionTrigger;
/**
* Media state for audio.
*/
- audioMediaState?: MediaState,
+ audioMediaState?: MediaState;
/**
* React children.
*/
- children?: ReactElement|boolean,
+ children?: ReactElement | boolean;
/**
* Whether or not to disable the moderator indicator.
*/
- disableModeratorIndicator?: boolean,
+ disableModeratorIndicator?: boolean;
/**
* The name of the participant. Used for showing lobby names.
*/
- displayName?: string,
+ displayName?: string;
/**
* Is this item highlighted/raised.
*/
- isHighlighted?: boolean,
+ isHighlighted?: boolean;
/**
* Whether or not the participant is a moderator.
*/
- isModerator?: boolean,
+ isModerator?: boolean;
/**
* True if the participant is local.
*/
- local?: boolean,
+ local?: boolean;
/**
* Callback for when the mouse leaves this component.
*/
- onLeave?: (e?: React.MouseEvent) => void,
+ onLeave?: (e?: React.MouseEvent) => void;
/**
* Opens a drawer with participant actions.
*/
- openDrawerForParticipant?: Function,
+ openDrawerForParticipant?: Function;
/**
* If an overflow drawer can be opened.
*/
- overflowDrawer?: boolean,
+ overflowDrawer?: boolean;
/**
* The ID of the participant.
*/
- participantID: string,
+ participantID: string;
/**
* True if the participant have raised hand.
*/
- raisedHand?: boolean,
+ raisedHand?: boolean;
/**
* Media state for video.
*/
- videoMediaState?: MediaState,
+ videoMediaState?: MediaState;
/**
* The translated "you" text.
*/
- youText?: string
+ youText?: string;
}
const useStyles = makeStyles((theme: any) => {
@@ -143,7 +143,7 @@ function ParticipantItem({
youText
}: Props) {
const onClick = useCallback(
- () => openDrawerForParticipant && openDrawerForParticipant({
+ () => openDrawerForParticipant?.({
participantID,
displayName
}), []);
diff --git a/react/features/participants-pane/components/web/ParticipantQuickAction.tsx b/react/features/participants-pane/components/web/ParticipantQuickAction.tsx
index 70f1138597..d410b406cd 100644
--- a/react/features/participants-pane/components/web/ParticipantQuickAction.tsx
+++ b/react/features/participants-pane/components/web/ParticipantQuickAction.tsx
@@ -15,38 +15,38 @@ type Props = {
/**
* The translated ask unmute aria label.
*/
- ariaLabel?: boolean,
+ ariaLabel?: boolean;
/**
* The translated "ask unmute" text.
*/
- askUnmuteText: string,
+ askUnmuteText: string;
/**
* The type of button to be displayed.
*/
- buttonType: string,
+ buttonType: string;
/**
* Callback used to open a confirmation dialog for audio muting.
*/
- muteAudio: Function,
+ muteAudio: Function;
/**
* Label for mute participant button.
*/
- muteParticipantButtonText: string,
+ muteParticipantButtonText: string;
/**
* The ID of the participant.
*/
- participantID: string,
+ participantID: string;
/**
* The name of the participant.
*/
- participantName: string
-}
+ participantName: string;
+};
const useStyles = makeStyles((theme: Theme) => {
return {
diff --git a/react/features/participants-pane/components/web/ParticipantsPane.tsx b/react/features/participants-pane/components/web/ParticipantsPane.tsx
index 21ff5b8860..b7ca055d5a 100644
--- a/react/features/participants-pane/components/web/ParticipantsPane.tsx
+++ b/react/features/participants-pane/components/web/ParticipantsPane.tsx
@@ -45,47 +45,47 @@ interface Props extends WithTranslation {
/**
* Whether there is backend support for Breakout Rooms.
*/
- _isBreakoutRoomsSupported: Boolean,
+ _isBreakoutRoomsSupported: Boolean;
/**
* Whether to display the context menu as a drawer.
*/
- _overflowDrawer: boolean,
+ _overflowDrawer: boolean;
/**
* Is the participants pane open.
*/
- _paneOpen: boolean,
+ _paneOpen: boolean;
/**
* Should the add breakout room button be displayed?
*/
- _showAddRoomButton: boolean,
+ _showAddRoomButton: boolean;
/**
* Whether to show the footer menu.
*/
- _showFooter: boolean,
+ _showFooter: boolean;
/**
* Whether to show the more actions button.
*/
- _showMoreActionsButton: boolean,
+ _showMoreActionsButton: boolean;
/**
* Whether to show the mute all button.
*/
- _showMuteAllButton: boolean,
+ _showMuteAllButton: boolean;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The Redux dispatch function.
*/
- dispatch: Function
+ dispatch: Function;
}
/**
@@ -96,12 +96,12 @@ type State = {
/**
* Indicates if the footer context menu is open.
*/
- contextOpen: boolean,
+ contextOpen: boolean;
/**
* Participants search string.
*/
- searchString: string
+ searchString: string;
};
const styles = (theme: Theme) => {
diff --git a/react/features/participants-pane/constants.tsx b/react/features/participants-pane/constants.tsx
index 1218df2b44..681505738c 100644
--- a/react/features/participants-pane/constants.tsx
+++ b/react/features/participants-pane/constants.tsx
@@ -13,12 +13,12 @@ import {
*/
export const REDUCER_KEY = 'features/participants-pane';
-export type ActionTrigger = 'Hover' | 'Permanent'
+export type ActionTrigger = 'Hover' | 'Permanent';
/**
* Enum of possible participant action triggers.
*/
-export const ACTION_TRIGGER: { HOVER: ActionTrigger, PERMANENT: ActionTrigger } = {
+export const ACTION_TRIGGER: { HOVER: ActionTrigger; PERMANENT: ActionTrigger; } = {
HOVER: 'Hover',
PERMANENT: 'Permanent'
};
@@ -28,7 +28,7 @@ export type MediaState = 'DominantSpeaker' | 'Muted' | 'ForceMuted' | 'Unmuted'
/**
* Enum of possible participant media states.
*/
-export const MEDIA_STATE: { [key: string]: MediaState } = {
+export const MEDIA_STATE: { [key: string]: MediaState; } = {
DOMINANT_SPEAKER: 'DominantSpeaker',
MUTED: 'Muted',
FORCE_MUTED: 'ForceMuted',
@@ -42,9 +42,9 @@ export type QuickActionButtonType = 'Mute' | 'AskToUnmute' | 'None';
* Enum of possible participant mute button states.
*/
export const QUICK_ACTION_BUTTON: {
- ASK_TO_UNMUTE: QuickActionButtonType,
- MUTE: QuickActionButtonType,
- NONE: QuickActionButtonType
+ ASK_TO_UNMUTE: QuickActionButtonType;
+ MUTE: QuickActionButtonType;
+ NONE: QuickActionButtonType;
} = {
MUTE: 'Mute',
ASK_TO_UNMUTE: 'AskToUnmute',
diff --git a/react/features/participants-pane/middleware.ts b/react/features/participants-pane/middleware.ts
index f9453abb7f..bd6dde48f9 100644
--- a/react/features/participants-pane/middleware.ts
+++ b/react/features/participants-pane/middleware.ts
@@ -10,7 +10,7 @@ declare let APP: any;
* @param {IStore} store - The redux store.
* @returns {Function}
*/
-MiddlewareRegistry.register(() => (next:Function) => (action:any) => {
+MiddlewareRegistry.register(() => (next: Function) => (action: any) => {
switch (action.type) {
case PARTICIPANTS_PANE_OPEN:
if (typeof APP !== 'undefined') {
diff --git a/react/features/participants-pane/reducer.ts b/react/features/participants-pane/reducer.ts
index d0fecda03f..afd5318a89 100644
--- a/react/features/participants-pane/reducer.ts
+++ b/react/features/participants-pane/reducer.ts
@@ -11,7 +11,7 @@ export interface IParticipantsPane {
isOpen: boolean;
participantsVolume: {
[participantId: string]: number;
- }
+ };
}
const DEFAULT_STATE = {
diff --git a/react/features/polls/components/AbstractPollAnswer.tsx b/react/features/polls/components/AbstractPollAnswer.tsx
index e9fe5becac..99cbfb182a 100644
--- a/react/features/polls/components/AbstractPollAnswer.tsx
+++ b/react/features/polls/components/AbstractPollAnswer.tsx
@@ -17,7 +17,7 @@ import { Poll } from '../types';
* The type of the React {@code Component} props of inheriting component.
*/
type InputProps = {
- pollId: string,
+ pollId: string;
};
/*
@@ -25,14 +25,14 @@ type InputProps = {
* concrete implementations (web/native).
**/
export type AbstractProps = {
- checkBoxStates: boolean[],
- creatorName: string,
- poll: Poll,
- setCheckbox: Function,
- skipAnswer: () => void,
- skipChangeVote: () => void,
- submitAnswer: () => void,
- t: Function,
+ checkBoxStates: boolean[];
+ creatorName: string;
+ poll: Poll;
+ setCheckbox: Function;
+ skipAnswer: () => void;
+ skipChangeVote: () => void;
+ submitAnswer: () => void;
+ t: Function;
};
/**
diff --git a/react/features/polls/components/web/PollCreate.tsx b/react/features/polls/components/web/PollCreate.tsx
index cc9dfddb37..ad93eae372 100644
--- a/react/features/polls/components/web/PollCreate.tsx
+++ b/react/features/polls/components/web/PollCreate.tsx
@@ -58,7 +58,7 @@ const PollCreate = ({
* This state allows us to requestFocus asynchronously, without having to worry
* about whether a newly created input field has been rendered yet or not.
*/
- const [ lastFocus, requestFocus ] = useState<number|null>(null);
+ const [ lastFocus, requestFocus ] = useState<number | null>(null);
useEffect(() => {
if (lastFocus === null) {
diff --git a/react/features/polls/reducer.ts b/react/features/polls/reducer.ts
index 6f7b7b4535..68fdfef073 100644
--- a/react/features/polls/reducer.ts
+++ b/react/features/polls/reducer.ts
@@ -21,7 +21,7 @@ const INITIAL_STATE = {
export interface IPollsState {
nbUnreadPolls: number;
polls: {
- [pollId: string]: Poll
+ [pollId: string]: Poll;
};
}
@@ -71,7 +71,7 @@ ReducerRegistry.register<IPollsState>('features/polls', (state = INITIAL_STATE,
// The answer is added to an existing poll
case RECEIVE_ANSWER: {
- const { pollId, answer }: { answer: Answer, pollId: string; } = action;
+ const { pollId, answer }: { answer: Answer; pollId: string; } = action;
// if the poll doesn't exist
if (!(pollId in state.polls)) {
@@ -115,7 +115,7 @@ ReducerRegistry.register<IPollsState>('features/polls', (state = INITIAL_STATE,
}
case REGISTER_VOTE: {
- const { answers, pollId }: { answers: Array<boolean> | null; pollId: string } = action;
+ const { answers, pollId }: { answers: Array<boolean> | null; pollId: string; } = action;
return {
...state,
@@ -132,7 +132,7 @@ ReducerRegistry.register<IPollsState>('features/polls', (state = INITIAL_STATE,
}
case RETRACT_VOTE: {
- const { pollId }: { pollId: string } = action;
+ const { pollId }: { pollId: string; } = action;
return {
...state,
diff --git a/react/features/polls/types.ts b/react/features/polls/types.ts
index 45038ac3a9..18d37fbb03 100644
--- a/react/features/polls/types.ts
+++ b/react/features/polls/types.ts
@@ -3,22 +3,22 @@ export type Answer = {
/**
* An array of boolean: true if the answer was chosen by the responder, else false.
*/
- answers: Array<boolean>,
+ answers: Array<boolean>;
/**
* ID of the parent Poll of this answer.
*/
- pollId: string,
+ pollId: string;
/**
* ID of the voter for this answer.
*/
- voterId: string,
+ voterId: string;
/**
* Name of the voter.
*/
- voterName: string
+ voterName: string;
};
export type Poll = {
@@ -27,37 +27,37 @@ export type Poll = {
* An array of answers:
* 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> }>,
+ answers: Array<{ name: string; voters: Map<string, string>; }>;
/**
* Whether the poll vote is being edited/changed.
*/
- changingVote: boolean,
+ changingVote: 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".
*/
- lastVote: Array<boolean> | null,
+ lastVote: Array<boolean> | null;
/**
* The question asked by this poll.
*/
- question: string,
+ question: string;
/**
* ID of the sender of this poll.
*/
- senderId: string,
+ senderId: string;
/**
* Name of the sender of this poll
* Store poll sender name in case they exit the call.
*/
- senderName: string,
+ senderName: string;
/**
* Whether the results should be shown instead of the answer form.
*/
- showResults: boolean
+ showResults: boolean;
};
diff --git a/react/features/prejoin/components/DropdownButton.tsx b/react/features/prejoin/components/DropdownButton.tsx
index 6657768043..a14b9e84a0 100644
--- a/react/features/prejoin/components/DropdownButton.tsx
+++ b/react/features/prejoin/components/DropdownButton.tsx
@@ -8,32 +8,32 @@ type Props = {
/**
* The css classes generated from theme.
*/
- classes: any,
+ classes: any;
/**
* Attribute used in automated testing.
*/
- dataTestId: string,
+ dataTestId: string;
/**
* The button's icon.
*/
- icon: Function,
+ icon: Function;
/**
* The button's label.
*/
- label: string,
+ label: string;
/**
* Function to be called when button is clicked.
*/
- onButtonClick: (e?: React.MouseEvent) => void,
+ onButtonClick: (e?: React.MouseEvent) => void;
/**
* Function to be called on key pressed.
*/
- onKeyPressed: (e?: React.KeyboardEvent) => void
+ onKeyPressed: (e?: React.KeyboardEvent) => void;
};
/**
diff --git a/react/features/prejoin/components/dialogs/CallingDialog.tsx b/react/features/prejoin/components/dialogs/CallingDialog.tsx
index 197dd659c8..969f962d4c 100644
--- a/react/features/prejoin/components/dialogs/CallingDialog.tsx
+++ b/react/features/prejoin/components/dialogs/CallingDialog.tsx
@@ -16,22 +16,22 @@ interface Props extends WithTranslation {
/**
* The phone number that is being called.
*/
- number: string,
+ number: string;
/**
* Closes the dialog.
*/
- onClose: Function,
+ onClose: Function;
/**
* Handler used on hangup click.
*/
- onHangup: Function,
+ onHangup: Function;
/**
* The status of the call.
*/
- status: string
+ status: string;
}
const useStyles = makeStyles((theme: any) => {
diff --git a/react/features/prejoin/components/dialogs/DialInDialog.tsx b/react/features/prejoin/components/dialogs/DialInDialog.tsx
index 3a2b6db2ac..e89712f928 100644
--- a/react/features/prejoin/components/dialogs/DialInDialog.tsx
+++ b/react/features/prejoin/components/dialogs/DialInDialog.tsx
@@ -18,32 +18,32 @@ interface Props extends WithTranslation {
/**
* The number to call in order to join the conference.
*/
- number: string,
+ number: string;
/**
* Handler used when clicking the back button.
*/
- onBack: Function,
+ onBack: Function;
/**
* Click handler for primary button.
*/
- onPrimaryButtonClick: Function,
+ onPrimaryButtonClick: Function;
/**
* Click handler for the small additional text.
*/
- onSmallTextClick: (e?: React.MouseEvent) => void,
+ onSmallTextClick: (e?: React.MouseEvent) => void;
/**
* Click handler for the text button.
*/
- onTextButtonClick: (e?: React.MouseEvent) => void,
+ onTextButtonClick: (e?: React.MouseEvent) => void;
/**
* The passCode of the conference.
*/
- passCode: string
+ passCode: string;
}
const useStyles = makeStyles((theme: any) => {
diff --git a/react/features/prejoin/components/dialogs/DialOutDialog.tsx b/react/features/prejoin/components/dialogs/DialOutDialog.tsx
index b9ab9f4f4b..761c6c0dee 100644
--- a/react/features/prejoin/components/dialogs/DialOutDialog.tsx
+++ b/react/features/prejoin/components/dialogs/DialOutDialog.tsx
@@ -18,17 +18,17 @@ interface Props extends WithTranslation {
/**
* Closes a dialog.
*/
- onClose: Function,
+ onClose: Function;
/**
* Submit handler.
*/
- onSubmit: Function,
+ onSubmit: Function;
/**
* Handler for text button.
*/
- onTextButtonClick: Function
+ onTextButtonClick: Function;
}
const useStyles = makeStyles((theme: any) => {
diff --git a/react/features/prejoin/components/preview/DeviceStatus.tsx b/react/features/prejoin/components/preview/DeviceStatus.tsx
index 7aa58de991..0f01788c52 100644
--- a/react/features/prejoin/components/preview/DeviceStatus.tsx
+++ b/react/features/prejoin/components/preview/DeviceStatus.tsx
@@ -20,13 +20,13 @@ export interface Props extends WithTranslation {
/**
* The text to be displayed in relation to the status of the audio/video devices.
*/
- deviceStatusText: string,
+ deviceStatusText: string;
/**
* The type of status for current devices, controlling the background color of the text.
* Can be `ok` or `warning`.
*/
- deviceStatusType: string
+ deviceStatusType: string;
}
const useStyles = makeStyles((theme: any) => {
diff --git a/react/features/prejoin/reducer.ts b/react/features/prejoin/reducer.ts
index 1992d61051..7fb509c890 100644
--- a/react/features/prejoin/reducer.ts
+++ b/react/features/prejoin/reducer.ts
@@ -159,9 +159,9 @@ ReducerRegistry.register<IPrejoinState>(
* @returns {Object}
*/
function getStatusFromErrors(errors: {
- audioAndVideoError?: { message: string },
- audioOnlyError?: { message: string },
- videoOnlyError?: Object }
+ audioAndVideoError?: { message: string; };
+ audioOnlyError?: { message: string; };
+ videoOnlyError?: Object; }
) {
const { audioOnlyError, videoOnlyError, audioAndVideoError } = errors;
diff --git a/react/features/reactions/components/web/ReactionEmoji.tsx b/react/features/reactions/components/web/ReactionEmoji.tsx
index 3645495474..116136da46 100644
--- a/react/features/reactions/components/web/ReactionEmoji.tsx
+++ b/react/features/reactions/components/web/ReactionEmoji.tsx
@@ -10,22 +10,22 @@ type Props = {
/**
* Index of the reaction in the queue.
*/
- index: number,
+ index: number;
/**
* Reaction to be displayed.
*/
- reaction: string,
+ reaction: string;
/**
* Removes reaction from redux state.
*/
- reactionRemove: Function,
+ reactionRemove: Function;
/**
* Id of the reaction.
*/
- uid: string
+ uid: string;
};
type State = {
@@ -33,8 +33,8 @@ type State = {
/**
* Index of CSS animation. Number between 0-20.
*/
- index: number
-}
+ index: number;
+};
/**
diff --git a/react/features/reactions/components/web/ReactionsMenu.tsx b/react/features/reactions/components/web/ReactionsMenu.tsx
index 625b24a7f6..dbe71c63bd 100644
--- a/react/features/reactions/components/web/ReactionsMenu.tsx
+++ b/react/features/reactions/components/web/ReactionsMenu.tsx
@@ -29,7 +29,7 @@ import { REACTIONS, REACTIONS_MENU_HEIGHT } from '../../constants';
import ReactionButton from './ReactionButton';
interface Classes {
- overflow: string
+ overflow: string;
}
interface Props extends WithTranslation {
@@ -37,47 +37,47 @@ interface Props extends WithTranslation {
/**
* Docks the toolbox.
*/
- _dockToolbox: Function,
+ _dockToolbox: Function;
/**
* Whether or not the GIF feature is enabled.
*/
- _isGifEnabled: boolean,
+ _isGifEnabled: boolean;
/**
* Whether or not the GIF menu is visible.
*/
- _isGifMenuVisible: boolean,
+ _isGifMenuVisible: boolean;
/**
* Whether or not it's a mobile browser.
*/
- _isMobile: boolean,
+ _isMobile: boolean;
/**
* The ID of the local participant.
*/
- _localParticipantID: String,
+ _localParticipantID: String;
/**
* Whether or not the local participant's hand is raised.
*/
- _raisedHand: boolean,
+ _raisedHand: boolean;
/**
* An object containing the CSS classes.
*/
- classes: Classes,
+ classes: Classes;
/**
* The Redux Dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Whether or not it's displayed in the overflow menu.
*/
- overflowMenu: boolean
+ overflowMenu: boolean;
}
const styles = (theme: Theme) => {
diff --git a/react/features/reactions/components/web/ReactionsMenuButton.tsx b/react/features/reactions/components/web/ReactionsMenuButton.tsx
index 56a615fd19..0ba2de5d25 100644
--- a/react/features/reactions/components/web/ReactionsMenuButton.tsx
+++ b/react/features/reactions/components/web/ReactionsMenuButton.tsx
@@ -25,43 +25,43 @@ interface Props extends WithTranslation {
/**
* Whether or not reactions are enabled.
*/
- _reactionsEnabled: Boolean,
+ _reactionsEnabled: Boolean;
/**
* The button's key.
*/
- buttonKey?: string,
+ buttonKey?: string;
/**
* Redux dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Click handler for raise hand functionality.
*/
- handleClick: Function,
+ handleClick: Function;
/**
* Whether or not it's a mobile browser.
*/
- isMobile: boolean,
+ isMobile: boolean;
/**
* Whether or not the reactions menu is open.
*/
- isOpen: boolean,
+ isOpen: boolean;
/**
* Notify mode for `toolbarButtonClicked` event -
* whether to only notify or to also prevent button click routine.
*/
- notifyMode?: string,
+ notifyMode?: string;
/**
* The array of reactions to be displayed.
*/
- reactionsQueue: Array<ReactionEmojiProps>
+ reactionsQueue: Array<ReactionEmojiProps>;
}
/**
diff --git a/react/features/reactions/constants.ts b/react/features/reactions/constants.ts
index c83276a62a..981b76e2e6 100644
--- a/react/features/reactions/constants.ts
+++ b/react/features/reactions/constants.ts
@@ -90,12 +90,12 @@ export interface ReactionEmojiProps {
/**
* Reaction to be displayed.
*/
- reaction: string,
+ reaction: string;
/**
* Id of the reaction.
*/
- uid: string
+ uid: string;
}
export const SOUNDS_THRESHOLDS = [ 1, 4, 10 ];
@@ -107,7 +107,7 @@ interface IReactions {
shortcutChar: string;
soundFiles: string[];
soundId: string;
- }
+ };
}
export const REACTIONS: IReactions = {
@@ -156,9 +156,9 @@ export const REACTIONS: IReactions = {
};
export type ReactionThreshold = {
- reaction: string,
- threshold: number
-}
+ reaction: string;
+ threshold: number;
+};
export interface MuteCommandAttributes {
startReactionsMuted?: string;
diff --git a/react/features/reactions/middleware.ts b/react/features/reactions/middleware.ts
index cf74abf9c3..1ad570ab6c 100644
--- a/react/features/reactions/middleware.ts
+++ b/react/features/reactions/middleware.ts
@@ -67,7 +67,7 @@ import { RAISE_HAND_SOUND_FILE } from './sounds';
* @param {IStore} store - The redux store.
* @returns {Function}
*/
-MiddlewareRegistry.register((store: IStore) => (next: Function) => (action:any) => {
+MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: any) => {
const { dispatch, getState } = store;
switch (action.type) {
@@ -115,7 +115,7 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action:any)
const { conference } = action;
conference.addCommandListener(
- MUTE_REACTIONS_COMMAND, ({ attributes }: { attributes: MuteCommandAttributes }, id: any) => {
+ MUTE_REACTIONS_COMMAND, ({ attributes }: { attributes: MuteCommandAttributes; }, id: any) => {
_onMuteReactionsCommand(attributes, id, store);
});
break;
diff --git a/react/features/reactions/reducer.ts b/react/features/reactions/reducer.ts
index 68b6fadc82..b1e27cb7de 100644
--- a/react/features/reactions/reducer.ts
+++ b/react/features/reactions/reducer.ts
@@ -14,28 +14,28 @@ export interface IReactionsState {
/**
* An array that contains the reactions buffer to be sent.
*/
- buffer: Array<string>,
+ buffer: Array<string>;
/**
* Whether or not the disable reaction sounds notification was shown.
*/
- notificationDisplayed: boolean,
+ notificationDisplayed: boolean;
/**
* The array of reactions to animate.
*/
- queue: Array<ReactionEmojiProps>,
+ queue: Array<ReactionEmojiProps>;
/**
* A number, non-zero value which identifies the timer created by a call
* to setTimeout().
*/
- timeoutID: number|null,
+ timeoutID: number | null;
/**
* The indicator that determines whether the reactions menu is visible.
*/
- visible: boolean
+ visible: boolean;
}
export interface ReactionsAction extends Partial<IReactionsState> {
@@ -43,22 +43,22 @@ export interface ReactionsAction extends Partial<IReactionsState> {
/**
* The message to be added to the chat.
*/
- message?: string,
+ message?: string;
/**
* The reaction to be added to buffer.
*/
- reaction?: string,
+ reaction?: string;
/**
* The reactions to be added to the animation queue.
*/
- reactions?: Array<string>,
+ reactions?: Array<string>;
/**
* The action type.
*/
- type: string
+ type: string;
}
/**
diff --git a/react/features/recent-list/reducer.ts b/react/features/recent-list/reducer.ts
index 5c018bf881..380516e753 100644
--- a/react/features/recent-list/reducer.ts
+++ b/react/features/recent-list/reducer.ts
@@ -83,7 +83,7 @@ function _deleteRecentListEntry(
* @param {Object} action - The redux action.
* @returns {Object}
*/
-function _storeCurrentConference(state: IRecentListState, { locationURL }: { locationURL: { href: string } }) {
+function _storeCurrentConference(state: IRecentListState, { locationURL }: { locationURL: { href: string; }; }) {
const conference = locationURL.href;
// If the current conference is already in the list, we remove it to re-add
@@ -111,8 +111,8 @@ function _storeCurrentConference(state: IRecentListState, { locationURL }: { loc
* @param {Object} action - The redux action.
* @returns {Object} The next redux state of the feature {@code recent-list}.
*/
-function _updateConferenceDuration(state: IRecentListState, { locationURL }: { locationURL: { href: string } }) {
- if (locationURL && locationURL.href && state.length) {
+function _updateConferenceDuration(state: IRecentListState, { locationURL }: { locationURL: { href: string; }; }) {
+ if (locationURL?.href && state.length) {
const mostRecentIndex = state.length - 1;
const mostRecent = state[mostRecentIndex];
diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx b/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
index 4353e4fa74..84205e27c6 100644
--- a/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
+++ b/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
@@ -32,115 +32,115 @@ export interface Props extends WithTranslation {
/**
* Style of the dialogs feature.
*/
- _dialogStyles: StyleType,
+ _dialogStyles: StyleType;
/**
* Whether to hide the storage warning or not.
*/
- _hideStorageWarning: boolean,
+ _hideStorageWarning: boolean;
/**
* Whether local recording is available or not.
*/
- _localRecordingAvailable: boolean,
+ _localRecordingAvailable: boolean;
/**
* Whether local recording is enabled or not.
*/
- _localRecordingEnabled: boolean,
+ _localRecordingEnabled: boolean;
/**
* Whether we won't notify the other participants about the recording.
*/
- _localRecordingNoNotification: boolean,
+ _localRecordingNoNotification: boolean;
/**
* Whether self local recording is enabled or not.
*/
- _localRecordingSelfEnabled: boolean,
+ _localRecordingSelfEnabled: boolean;
/**
* The color-schemed stylesheet of this component.
*/
- _styles: StyleType,
+ _styles: StyleType;
/**
* The redux dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Whether to show file recordings service, even if integrations
* are enabled.
*/
- fileRecordingsServiceEnabled: boolean,
+ fileRecordingsServiceEnabled: boolean;
/**
* 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,
+ fileRecordingsServiceSharingEnabled: boolean;
/**
* If true the content related to the integrations will be shown.
*/
- integrationsEnabled: boolean,
+ integrationsEnabled: boolean;
/**
* <tt>true</tt> if we have valid oauth token.
*/
- isTokenValid: boolean,
+ isTokenValid: boolean;
/**
* <tt>true</tt> if we are in process of validating the oauth token.
*/
- isValidating: boolean,
+ isValidating: boolean;
/**
* Whether or not the current meeting is a vpaas one.
*/
- isVpaas: boolean,
+ isVpaas: boolean;
/**
* Whether or not we should only record the local streams.
*/
- localRecordingOnlySelf: boolean,
+ localRecordingOnlySelf: boolean;
/**
* The function will be called when there are changes related to the
* switches.
*/
- onChange: Function,
+ onChange: Function;
/**
* Callback to change the local recording only self setting.
*/
- onLocalRecordingSelfChange: Function,
+ onLocalRecordingSelfChange: Function;
/**
* Callback to be invoked on sharing setting change.
*/
- onSharingSettingChanged: () => void,
+ onSharingSettingChanged: () => void;
/**
* The currently selected recording service of type: RECORDING_TYPES.
*/
- selectedRecordingService: string | null,
+ selectedRecordingService: string | null;
/**
* Boolean to set file recording sharing on or off.
*/
- sharingSetting: boolean,
+ sharingSetting: boolean;
/**
* Number of MiB of available space in user's Dropbox account.
*/
- spaceLeft: number | null,
+ spaceLeft: number | null;
/**
* The display name of the user's Dropbox account.
*/
- userName: string | null
+ userName: string | null;
}
/**
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.native.ts b/react/features/recording/components/Recording/LocalRecordingManager.native.ts
index 5f2f55625e..ce3a1a121b 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.native.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.native.ts
@@ -14,14 +14,14 @@ const LocalRecordingManager: ILocalRecordingManager = {
* @param {MediaStreamTrack} track - Track to be added,.
* @returns {void}
*/
- addAudioTrackToLocalRecording() { },
+ addAudioTrackToLocalRecording() { }, // eslint-disable-line @typescript-eslint/no-empty-function
/**
* Stops local recording.
*
* @returns {void}
* */
- stopLocalRecording() { },
+ stopLocalRecording() { }, // eslint-disable-line @typescript-eslint/no-empty-function
/**
* Starts a local recording.
@@ -29,7 +29,7 @@ const LocalRecordingManager: ILocalRecordingManager = {
* @param {IStore} store - The Redux store.
* @returns {void}
*/
- async startLocalRecording() { },
+ async startLocalRecording() { }, // eslint-disable-line @typescript-eslint/no-empty-function
/**
* Whether or not we're currently recording locally.
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
index f12b33d2fb..2b3dc4db61 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
@@ -21,21 +21,21 @@ interface SelfRecording {
interface ILocalRecordingManager {
addAudioTrackToLocalRecording: (track: MediaStreamTrack) => void;
- audioContext: AudioContext|undefined;
- audioDestination: MediaStreamAudioDestinationNode|undefined;
+ audioContext: AudioContext | undefined;
+ audioDestination: MediaStreamAudioDestinationNode | undefined;
getFilename: () => string;
initializeAudioMixer: () => void;
isRecordingLocally: () => boolean;
mediaType: string;
mixAudioStream: (stream: MediaStream) => void;
- recorder: MediaRecorder|undefined;
+ recorder: MediaRecorder | undefined;
recordingData: Blob[];
roomName: string;
saveRecording: (recordingData: Blob[], filename: string) => void;
selfRecording: SelfRecording;
startLocalRecording: (store: IStore, onlySelf: boolean) => void;
stopLocalRecording: () => void;
- stream: MediaStream|undefined;
+ stream: MediaStream | undefined;
totalSize: number;
}
diff --git a/react/features/recording/components/Recording/web/HighlightButton.tsx b/react/features/recording/components/Recording/web/HighlightButton.tsx
index fea995ab41..eed0fd501c 100644
--- a/react/features/recording/components/Recording/web/HighlightButton.tsx
+++ b/react/features/recording/components/Recording/web/HighlightButton.tsx
@@ -23,17 +23,17 @@ import AbstractHighlightButton, {
} from '../AbstractHighlightButton';
type Props = AbstractProps & {
- _disabled: boolean,
+ _disabled: boolean;
/**
* The message to show within the label's tooltip.
*/
- _tooltipKey: string,
+ _tooltipKey: string;
/**
* Flag controlling visibility of the component.
*/
- _visible: boolean,
+ _visible: boolean;
};
/**
@@ -44,7 +44,7 @@ type State = {
/**
* Whether the notification which prompts for starting recording is open is not.
*/
- isNotificationOpen: boolean
+ isNotificationOpen: boolean;
};
/**
diff --git a/react/features/recording/components/web/RecordingLabel.tsx b/react/features/recording/components/web/RecordingLabel.tsx
index dba10383e4..f0393fc1fd 100644
--- a/react/features/recording/components/web/RecordingLabel.tsx
+++ b/react/features/recording/components/web/RecordingLabel.tsx
@@ -55,7 +55,7 @@ class RecordingLabel extends AbstractRecordingLabel {
return (
<div>
<Label
- className = { classes && classes[mode] }
+ className = { classes?.[mode] }
// @ts-ignore
text = { t(this._getLabelKey()) } />
</div>
diff --git a/react/features/recording/reducer.ts b/react/features/recording/reducer.ts
index 11a923a088..9e43ab12ab 100644
--- a/react/features/recording/reducer.ts
+++ b/react/features/recording/reducer.ts
@@ -30,7 +30,7 @@ interface SessionData {
export interface IRecordingState {
disableHighlightMeetingMoment: boolean;
pendingNotificationUids: {
- [key: string]: number|undefined;
+ [key: string]: number | undefined;
};
selectedRecordingService: string;
sessionDatas: Array<SessionData>;
diff --git a/react/features/remote-control/reducer.ts b/react/features/remote-control/reducer.ts
index 128689fab9..8f83751b00 100644
--- a/react/features/remote-control/reducer.ts
+++ b/react/features/remote-control/reducer.ts
@@ -35,7 +35,7 @@ export interface IRemoteControlState {
controller?: string;
enabled: boolean;
transport?: Object;
- }
+ };
}
/**
diff --git a/react/features/rtcstats/RTCStats.ts b/react/features/rtcstats/RTCStats.ts
index 86902f4557..460126fe74 100644
--- a/react/features/rtcstats/RTCStats.ts
+++ b/react/features/rtcstats/RTCStats.ts
@@ -24,7 +24,7 @@ import {
* @returns {boolean}
*/
function connectionFilter(config: any) {
- if (config && config.iceServers[0] && config.iceServers[0].urls) {
+ if (config?.iceServers[0] && config.iceServers[0].urls) {
for (const iceUrl of config.iceServers[0].urls) {
if (iceUrl.indexOf('callstats.io') >= 0) {
return true;
@@ -98,7 +98,7 @@ class RTCStats {
* @returns {void}
*/
sendIdentityData(identityData: any) {
- this.trace && this.trace.identity('identity', null, identityData);
+ this.trace?.identity('identity', null, identityData);
}
/**
@@ -107,8 +107,8 @@ class RTCStats {
* @param {Array<string|any>} logEntries - The log entries to send to the rtcstats server.
* @returns {void}
*/
- sendLogs(logEntries: Array<string|any>) {
- this.trace && this.trace.statsEntry('logs', null, logEntries);
+ sendLogs(logEntries: Array<string | any>) {
+ this.trace?.statsEntry('logs', null, logEntries);
}
/**
@@ -118,7 +118,7 @@ class RTCStats {
* @returns {void}
*/
sendDominantSpeakerData(dominantSpeakerData: DominantSpeakerData) {
- this.trace && this.trace.statsEntry('dominantSpeaker', null, dominantSpeakerData);
+ this.trace?.statsEntry('dominantSpeaker', null, dominantSpeakerData);
}
/**
@@ -128,7 +128,7 @@ class RTCStats {
* @returns {void}
*/
sendE2eRttData(e2eRttData: E2ERTTData) {
- this.trace && this.trace.statsEntry('e2eRtt', null, e2eRttData);
+ this.trace?.statsEntry('e2eRtt', null, e2eRttData);
}
/**
@@ -139,7 +139,7 @@ class RTCStats {
* @returns {void}
*/
sendConferenceTimestamp(timestamp: number) {
- this.trace && this.trace.statsEntry('conferenceStartTimestamp', null, timestamp);
+ this.trace?.statsEntry('conferenceStartTimestamp', null, timestamp);
}
/**
@@ -149,7 +149,7 @@ class RTCStats {
* @returns {void}
*/
sendVideoTypeData(videoTypeData: VideoTypeData) {
- this.trace && this.trace.statsEntry('setVideoType', null, videoTypeData);
+ this.trace?.statsEntry('setVideoType', null, videoTypeData);
}
/**
@@ -159,7 +159,7 @@ class RTCStats {
* @returns {void}
*/
sendFaceLandmarksData(faceLandmarksData: FaceLandmarksData) {
- this.trace && this.trace.statsEntry('faceLandmarks', null, faceLandmarksData);
+ this.trace?.statsEntry('faceLandmarks', null, faceLandmarksData);
}
/**
@@ -171,7 +171,7 @@ class RTCStats {
* @returns {void}
*/
connect(isBreakoutRoom: boolean) {
- this.trace && this.trace.connect(isBreakoutRoom);
+ this.trace?.connect(isBreakoutRoom);
}
/**
@@ -183,7 +183,7 @@ class RTCStats {
* @returns {void}
*/
close() {
- this.trace && this.trace.close();
+ this.trace?.close();
}
/**
diff --git a/react/features/rtcstats/functions.ts b/react/features/rtcstats/functions.ts
index 45f48ba597..411696f196 100644
--- a/react/features/rtcstats/functions.ts
+++ b/react/features/rtcstats/functions.ts
@@ -49,7 +49,7 @@ type Identity = {
// i.e. If all participants leave a meeting it will have a different value on the next join.
meetingUniqueId?: string;
roomId?: string;
-}
+};
/**
* Connects to the rtcstats service and sends the identity data.
diff --git a/react/features/rtcstats/middleware.ts b/react/features/rtcstats/middleware.ts
index 0a5363dcc4..67b81cef2d 100644
--- a/react/features/rtcstats/middleware.ts
+++ b/react/features/rtcstats/middleware.ts
@@ -96,7 +96,7 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: any)
// Unique identifier for a conference session, not to be confused with meeting name
// i.e. If all participants leave a meeting it will have a different value on the next join.
const { conference } = action;
- const meetingUniqueId = conference && conference.getMeetingUniqueId();
+ const meetingUniqueId = conference?.getMeetingUniqueId();
connectAndSendIdentity(
dispatch,
diff --git a/react/features/rtcstats/types.ts b/react/features/rtcstats/types.ts
index 2ebc497a33..a07a00dc2d 100644
--- a/react/features/rtcstats/types.ts
+++ b/react/features/rtcstats/types.ts
@@ -4,26 +4,26 @@ export type InitOptions = {
pollInterval: number;
sendSdp: boolean;
useLegacy: boolean;
-}
+};
export type VideoTypeData = {
ssrc: number;
videoType: string;
-}
+};
export type DominantSpeakerData = {
dominantSpeakerEndpoint: string;
previousSpeakers: string[];
-}
+};
export type E2ERTTData = {
remoteEndpointId: string;
remoteRegion: string;
rtt: number;
-}
+};
export type FaceLandmarksData = {
duration: number;
faceLandmarks: string;
timestamp: number;
-}
+};
diff --git a/react/features/salesforce/components/web/RecordItem.tsx b/react/features/salesforce/components/web/RecordItem.tsx
index e3d3b0c92b..a8c72ef93b 100644
--- a/react/features/salesforce/components/web/RecordItem.tsx
+++ b/react/features/salesforce/components/web/RecordItem.tsx
@@ -13,23 +13,23 @@ type Props = {
/**
* The id of the record.
*/
- id: string,
+ id: string;
/**
* The name of the record.
*/
- name: string,
+ name: string;
/**
* The handler for the click event.
*/
- onClick: (e?: React.MouseEvent) => void,
+ onClick: (e?: React.MouseEvent) => void;
/**
* The type of the record.
*/
- type: string
-}
+ type: string;
+};
const useStyles = makeStyles((theme: any) => {
return {
@@ -76,7 +76,7 @@ const useStyles = makeStyles((theme: any) => {
export const RecordItem = ({
id,
name,
- /* eslint-disable-next-line no-empty-function */
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
onClick = () => {},
type
}: Props) => {
diff --git a/react/features/screen-share/components/ShareAudioDialog.tsx b/react/features/screen-share/components/ShareAudioDialog.tsx
index c871c9599a..edbd2cbd25 100644
--- a/react/features/screen-share/components/ShareAudioDialog.tsx
+++ b/react/features/screen-share/components/ShareAudioDialog.tsx
@@ -24,12 +24,12 @@ export interface Props extends WithTranslation {
/**
* Boolean stored in local storage that determines whether or not the dialog will be displayed again.
*/
- _shouldHideShareAudioHelper: boolean,
+ _shouldHideShareAudioHelper: boolean;
/**
* The redux {@code dispatch} function.
*/
- dispatch: Dispatch<any>
+ dispatch: Dispatch<any>;
}
/**
diff --git a/react/features/security/components/security-dialog/web/PasswordForm.tsx b/react/features/security/components/security-dialog/web/PasswordForm.tsx
index beae933dc6..553f9e5538 100644
--- a/react/features/security/components/security-dialog/web/PasswordForm.tsx
+++ b/react/features/security/components/security-dialog/web/PasswordForm.tsx
@@ -15,29 +15,29 @@ interface Props extends WithTranslation {
/**
* Whether or not to show the password editing field.
*/
- editEnabled: boolean,
+ editEnabled: boolean;
/**
* The value for how the conference is locked (or undefined if not locked)
* as defined by room-lock constants.
*/
- locked: string,
+ locked: string;
/**
* Callback to invoke when the local participant is submitting a password
* set request.
*/
- onSubmit: Function,
+ onSubmit: Function;
/**
* The current known password for the JitsiConference.
*/
- password: string,
+ password: string;
/**
* The number of digits to be used in the password.
*/
- passwordNumberOfDigits?: number
+ passwordNumberOfDigits?: number;
}
/**
@@ -48,7 +48,7 @@ type State = {
/**
* The value of the password being entered by the local participant.
*/
- enteredPassword: string
+ enteredPassword: string;
};
/**
diff --git a/react/features/security/components/security-dialog/web/PasswordSection.tsx b/react/features/security/components/security-dialog/web/PasswordSection.tsx
index 29df61757c..f60ebd9395 100644
--- a/react/features/security/components/security-dialog/web/PasswordSection.tsx
+++ b/react/features/security/components/security-dialog/web/PasswordSection.tsx
@@ -17,49 +17,49 @@ interface Props extends WithTranslation {
/**
* Toolbar buttons which have their click exposed through the API.
*/
- buttonsWithNotifyClick: Array<string | NotifyClick>,
+ buttonsWithNotifyClick: Array<string | NotifyClick>;
/**
* Whether or not the current user can modify the current password.
*/
- canEditPassword: boolean,
+ canEditPassword: boolean;
/**
* The JitsiConference for which to display a lock state and change the
* password.
*/
- conference: any,
+ conference: any;
/**
* The value for how the conference is locked (or undefined if not locked)
* as defined by room-lock constants.
*/
- locked: string,
+ locked: string;
/**
* The current known password for the JitsiConference.
*/
- password: string,
+ password: string;
/**
* Whether or not to show the password in editing mode.
*/
- passwordEditEnabled: boolean,
+ passwordEditEnabled: boolean;
/**
* The number of digits to be used in the password.
*/
- passwordNumberOfDigits?: number,
+ passwordNumberOfDigits?: number;
/**
* Action that sets the conference password.
*/
- setPassword: Function,
+ setPassword: Function;
/**
* Method that sets whether the password editing is enabled or not.
*/
- setPasswordEditEnabled: Function
+ setPasswordEditEnabled: Function;
}
declare let APP: any;
diff --git a/react/features/security/components/security-dialog/web/SecurityDialog.tsx b/react/features/security/components/security-dialog/web/SecurityDialog.tsx
index e603da757f..6c98584c42 100644
--- a/react/features/security/components/security-dialog/web/SecurityDialog.tsx
+++ b/react/features/security/components/security-dialog/web/SecurityDialog.tsx
@@ -25,44 +25,44 @@ type Props = {
/**
* Toolbar buttons which have their click exposed through the API.
*/
- _buttonsWithNotifyClick: Array<string | NotifyClick>,
+ _buttonsWithNotifyClick: Array<string | NotifyClick>;
/**
* Whether or not the current user can modify the current password.
*/
- _canEditPassword: boolean,
+ _canEditPassword: boolean;
/**
* The JitsiConference for which to display a lock state and change the
* password.
*/
- _conference: Object,
+ _conference: Object;
/**
* The value for how the conference is locked (or undefined if not locked)
* as defined by room-lock constants.
*/
- _locked: string,
+ _locked: string;
/**
* The current known password for the JitsiConference.
*/
- _password: string,
+ _password: string;
/**
* The number of digits to be used in the password.
*/
- _passwordNumberOfDigits?: number,
+ _passwordNumberOfDigits?: number;
/**
* Indicates whether e2ee will be displayed or not.
*/
- _showE2ee: boolean,
+ _showE2ee: boolean;
/**
* Action that sets the conference password.
*/
- setPassword: Function
+ setPassword: Function;
};
/**
diff --git a/react/features/settings/components/native/HelpView.tsx b/react/features/settings/components/native/HelpView.tsx
index efba792863..e0bd3570a7 100644
--- a/react/features/settings/components/native/HelpView.tsx
+++ b/react/features/settings/components/native/HelpView.tsx
@@ -24,13 +24,13 @@ type Props = {
/**
* The URL to display in the Help Centre.
*/
- _url: string,
+ _url: string;
/**
* Default prop for navigating between screen components(React Navigation).
*/
- navigation: Object
-}
+ navigation: Object;
+};
/**
* Implements a page that renders the help content for the app.
diff --git a/react/features/settings/components/native/PrivacyView.tsx b/react/features/settings/components/native/PrivacyView.tsx
index eb893891e5..bea0b19ba0 100644
--- a/react/features/settings/components/native/PrivacyView.tsx
+++ b/react/features/settings/components/native/PrivacyView.tsx
@@ -20,8 +20,8 @@ type Props = {
/**
* Default prop for navigating between screen components(React Navigation).
*/
- navigation: Object
-}
+ navigation: Object;
+};
/**
* The URL at which the privacy policy is available to the user.
diff --git a/react/features/settings/components/native/SettingsView.tsx b/react/features/settings/components/native/SettingsView.tsx
index 74cd1effc1..838b625a75 100644
--- a/react/features/settings/components/native/SettingsView.tsx
+++ b/react/features/settings/components/native/SettingsView.tsx
@@ -56,47 +56,47 @@ interface State {
/**
* State variable for the disable call integration switch.
*/
- disableCallIntegration: boolean,
+ disableCallIntegration: boolean;
/**
* State variable for the disable crash reporting switch.
*/
- disableCrashReporting: boolean,
+ disableCrashReporting: boolean;
/**
* State variable for the disable p2p switch.
*/
- disableP2P: boolean,
+ disableP2P: boolean;
/**
* Whether the self view is disabled or not.
*/
- disableSelfView: boolean,
+ disableSelfView: boolean;
/**
* State variable for the display name field.
*/
- displayName: string,
+ displayName: string;
/**
* State variable for the email field.
*/
- email: string,
+ email: string;
/**
* State variable for the server URL field.
*/
- serverURL: string,
+ serverURL: string;
/**
* State variable for the start with audio muted switch.
*/
- startWithAudioMuted: boolean,
+ startWithAudioMuted: boolean;
/**
* State variable for the start with video muted switch.
*/
- startWithVideoMuted: boolean
+ startWithVideoMuted: boolean;
}
/**
@@ -108,21 +108,21 @@ interface Props extends WithTranslation {
/**
* The ID of the local participant.
*/
- _localParticipantId: string,
+ _localParticipantId: string;
/**
* The default URL for when there is no custom URL set in the settings.
*
* @protected
*/
- _serverURL: string,
+ _serverURL: string;
/**
* Flag indicating if URL can be changed by user.
*
* @protected
*/
- _serverURLChangeEnabled: boolean,
+ _serverURLChangeEnabled: boolean;
/**
* The current settings object.
@@ -137,29 +137,29 @@ interface Props extends WithTranslation {
serverURL: string;
startWithAudioMuted: boolean;
startWithVideoMuted: boolean;
- },
+ };
/**
* Whether {@link SettingsView} is visible.
*
* @protected
*/
- _visible: boolean,
+ _visible: boolean;
/**
* Redux store dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Default prop for navigating between screen components(React Navigation).
*/
- navigation: Object,
+ navigation: Object;
/**
* Callback to be invoked when settings screen is focused.
*/
- onSettingsScreenFocused: Function
+ onSettingsScreenFocused: Function;
}
/**
diff --git a/react/features/settings/components/native/TermsView.tsx b/react/features/settings/components/native/TermsView.tsx
index fab66c01d6..eb87f77b12 100644
--- a/react/features/settings/components/native/TermsView.tsx
+++ b/react/features/settings/components/native/TermsView.tsx
@@ -20,8 +20,8 @@ type Props = {
/**
* Default prop for navigating between screen components(React Navigation).
*/
- navigation: Object
-}
+ navigation: Object;
+};
/**
* The URL at which the terms (of service/use) are available to the user.
diff --git a/react/features/settings/components/web/ModeratorTab.tsx b/react/features/settings/components/web/ModeratorTab.tsx
index a95f98d64b..2c7936dddc 100644
--- a/react/features/settings/components/web/ModeratorTab.tsx
+++ b/react/features/settings/components/web/ModeratorTab.tsx
@@ -17,40 +17,40 @@ export type Props = AbstractDialogTabProps & WithTranslation & {
/**
* If set hides the reactions moderation setting.
*/
- disableReactionsModeration: boolean,
+ disableReactionsModeration: boolean;
/**
* Whether or not follow me is currently active (enabled by some other participant).
*/
- followMeActive: boolean,
+ followMeActive: boolean;
/**
* Whether or not the user has selected the Follow Me feature to be enabled.
*/
- followMeEnabled: boolean,
+ followMeEnabled: boolean;
/**
* Whether or not the user has selected the Start Audio Muted feature to be
* enabled.
*/
- startAudioMuted: boolean,
+ startAudioMuted: boolean;
/**
* Whether or not the user has selected the Start Reactions Muted feature to be
* enabled.
*/
- startReactionsMuted: boolean,
+ startReactionsMuted: boolean;
/**
* Whether or not the user has selected the Start Video Muted feature to be
* enabled.
*/
- startVideoMuted: boolean,
+ startVideoMuted: boolean;
/**
* Invoked to obtain translated strings.
*/
- t: Function
+ t: Function;
};
/**
diff --git a/react/features/settings/components/web/MoreTab.tsx b/react/features/settings/components/web/MoreTab.tsx
index 2ddfcaf0e8..f308cffb3c 100644
--- a/react/features/settings/components/web/MoreTab.tsx
+++ b/react/features/settings/components/web/MoreTab.tsx
@@ -28,73 +28,73 @@ export type Props = AbstractDialogTabProps & WithTranslation & {
/**
* The currently selected desktop share frame rate in the frame rate select dropdown.
*/
- currentFramerate: string,
+ currentFramerate: string;
/**
* The currently selected language to display in the language select
* dropdown.
*/
- currentLanguage: string,
+ currentLanguage: string;
/**
* All available desktop capture frame rates.
*/
- desktopShareFramerates: Array<number>,
+ desktopShareFramerates: Array<number>;
/**
* Whether to show hide self view setting.
*/
- disableHideSelfView: boolean,
+ disableHideSelfView: boolean;
/**
* The types of enabled notifications that can be configured and their specific visibility.
*/
- enabledNotifications: Object,
+ enabledNotifications: Object;
/**
* Whether or not follow me is currently active (enabled by some other participant).
*/
- followMeActive: boolean,
+ followMeActive: boolean;
/**
* Whether or not to hide self-view screen.
*/
- hideSelfView: boolean,
+ hideSelfView: boolean;
/**
* All available languages to display in the language select dropdown.
*/
- languages: Array<string>,
+ languages: Array<string>;
/**
* Whether or not to display the language select dropdown.
*/
- showLanguageSettings: boolean,
+ showLanguageSettings: boolean;
/**
* Whether or not to display moderator-only settings.
*/
- showModeratorSettings: boolean,
+ showModeratorSettings: boolean;
/**
* Whether or not to display notifications settings.
*/
- showNotificationsSettings: boolean,
+ showNotificationsSettings: boolean;
/**
* Whether or not to show prejoin screen.
*/
- showPrejoinPage: boolean,
+ showPrejoinPage: boolean;
/**
* Whether or not to display the prejoin settings section.
*/
- showPrejoinSettings: boolean,
+ showPrejoinSettings: boolean;
/**
* Invoked to obtain translated strings.
*/
- t: Function
+ t: Function;
};
/**
@@ -105,12 +105,12 @@ type State = {
/**
* Whether or not the desktop share frame rate select dropdown is open.
*/
- isFramerateSelectOpen: boolean,
+ isFramerateSelectOpen: boolean;
/**
* Whether or not the language select dropdown is open.
*/
- isLanguageSelectOpen: boolean
+ isLanguageSelectOpen: boolean;
};
/**
@@ -177,7 +177,7 @@ class MoreTab extends AbstractDialogTab<Props, State> {
* @private
* @returns {void}
*/
- _onFramerateDropdownOpenChange({ isOpen }: { isOpen: boolean }) {
+ _onFramerateDropdownOpenChange({ isOpen }: { isOpen: boolean; }) {
// @ts-ignore
this.setState({ isFramerateSelectOpen: isOpen });
}
@@ -202,7 +202,7 @@ class MoreTab extends AbstractDialogTab<Props, State> {
* @private
* @returns {void}
*/
- _onLanguageDropdownOpenChange({ isOpen }: { isOpen: boolean }) {
+ _onLanguageDropdownOpenChange({ isOpen }: { isOpen: boolean; }) {
// @ts-ignore
this.setState({ isLanguageSelectOpen: isOpen });
}
@@ -282,7 +282,7 @@ class MoreTab extends AbstractDialogTab<Props, State> {
* @private
* @returns {void}
*/
- _onMaxStageParticipantsOpenChange({ isOpen }: { isOpen: boolean }) {
+ _onMaxStageParticipantsOpenChange({ isOpen }: { isOpen: boolean; }) {
// @ts-ignore
this.setState({ isMaxStageParticipantsOpen: isOpen });
}
diff --git a/react/features/settings/components/web/ProfileTab.tsx b/react/features/settings/components/web/ProfileTab.tsx
index 63d9de547e..6c2ff3b2bc 100644
--- a/react/features/settings/components/web/ProfileTab.tsx
+++ b/react/features/settings/components/web/ProfileTab.tsx
@@ -26,38 +26,38 @@ export type Props = AbstractDialogTabProps & WithTranslation & {
/**
* Whether or not server-side authentication is available.
*/
- authEnabled: boolean,
+ authEnabled: boolean;
/**
* The name of the currently (server-side) authenticated user.
*/
- authLogin: string,
+ authLogin: string;
/**
* The display name to display for the local participant.
*/
- displayName: string,
+ displayName: string;
/**
* The email to display for the local participant.
*/
- email: string,
+ email: string;
/**
* Whether to hide the email input in the profile settings.
*/
- hideEmailInSettings?: boolean,
+ hideEmailInSettings?: boolean;
/**
* If the display name is read only.
*/
- readOnlyName: boolean,
+ readOnlyName: boolean;
/**
* Invoked to obtain translated strings.
*/
- t: Function
-}
+ t: Function;
+};
/**
* React {@code Component} for modifying the local user's profile.
diff --git a/react/features/settings/components/web/SettingsDialog.tsx b/react/features/settings/components/web/SettingsDialog.tsx
index d092c5ad1d..c621ea5c65 100644
--- a/react/features/settings/components/web/SettingsDialog.tsx
+++ b/react/features/settings/components/web/SettingsDialog.tsx
@@ -55,29 +55,29 @@ type Props = {
name: string;
onMount: () => void;
submit: () => void;
- }>,
+ }>;
/**
* An object containing the CSS classes.
*/
- classes: Object,
+ classes: Object;
/**
* Which settings tab should be initially displayed. If not defined then
* the first tab will be displayed.
*/
- defaultTab: string,
+ defaultTab: string;
/**
* Invoked to save changed settings.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Indicates whether the device selection dialog is displayed on the
* welcome page or not.
*/
- isDisplayedOnWelcomePage: boolean
+ isDisplayedOnWelcomePage: boolean;
};
/**
diff --git a/react/features/settings/components/web/SoundsTab.tsx b/react/features/settings/components/web/SoundsTab.tsx
index 0e7a60af32..edb160555a 100644
--- a/react/features/settings/components/web/SoundsTab.tsx
+++ b/react/features/settings/components/web/SoundsTab.tsx
@@ -17,48 +17,48 @@ export type Props = AbstractDialogTabProps & WithTranslation & {
/**
* Whether or not the reactions feature is enabled.
*/
- enableReactions: Boolean,
+ enableReactions: Boolean;
/**
* Whether or not moderator muted the sounds.
*/
- moderatorMutedSoundsReactions: Boolean,
+ moderatorMutedSoundsReactions: Boolean;
/**
* Whether or not the sound for the incoming message should play.
*/
- soundsIncomingMessage: Boolean,
+ soundsIncomingMessage: Boolean;
/**
* Whether or not the sound for the participant joined should play.
*/
- soundsParticipantJoined: Boolean,
+ soundsParticipantJoined: Boolean;
/**
* Whether or not the sound for the participant entering the lobby should play.
*/
- soundsParticipantKnocking: Boolean,
+ soundsParticipantKnocking: Boolean;
/**
* Whether or not the sound for the participant left should play.
*/
- soundsParticipantLeft: Boolean,
+ soundsParticipantLeft: Boolean;
/**
* Whether or not the sound for reactions should play.
*/
- soundsReactions: Boolean,
+ soundsReactions: Boolean;
/**
* Whether or not the sound for the talk while muted notification should play.
*/
- soundsTalkWhileMuted: Boolean,
+ soundsTalkWhileMuted: Boolean;
/**
* Invoked to obtain translated strings.
*/
- t: Function
-}
+ t: Function;
+};
/**
* React {@code Component} for modifying the local user's sound settings.
diff --git a/react/features/shared-video/components/AbstractSharedVideoDialog.tsx b/react/features/shared-video/components/AbstractSharedVideoDialog.tsx
index 43d46339f3..77ef6d4d82 100644
--- a/react/features/shared-video/components/AbstractSharedVideoDialog.tsx
+++ b/react/features/shared-video/components/AbstractSharedVideoDialog.tsx
@@ -14,12 +14,12 @@ export interface Props extends WithTranslation {
/**
* Invoked to update the shared video link.
*/
- dispatch: Dispatch<any>,
+ dispatch: Dispatch<any>;
/**
* Function to be invoked after typing a valid video.
*/
- onPostSubmit: Function
+ onPostSubmit: Function;
}
/**
diff --git a/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx b/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx
index 5b9b446d28..2cd462bbc7 100644
--- a/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx
+++ b/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx
@@ -29,12 +29,12 @@ type Props = {
/**
* The function to initiate the change in the speaker stats table.
*/
- onChange: (checked?: boolean) => void,
+ onChange: (checked?: boolean) => void;
/**
* The state of the button.
*/
- showFaceExpressions: boolean,
+ showFaceExpressions: boolean;
};
diff --git a/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx b/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx
index 3779ae2522..25feb48055 100644
--- a/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx
+++ b/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx
@@ -28,7 +28,7 @@ type Props = {
/**
* True if the face expressions detection is not disabled.
*/
- showFaceExpressions: boolean,
+ showFaceExpressions: boolean;
};
const SpeakerStatsLabels = (props: Props) => {
diff --git a/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx b/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx
index 1e5d2876cf..76784e6459 100644
--- a/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx
+++ b/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx
@@ -65,7 +65,7 @@ type Props = {
/**
* The function to initiate the change in the speaker stats table.
*/
- onSearch: Function,
+ onSearch: Function;
};
@@ -90,7 +90,7 @@ function SpeakerStatsSearch({ onSearch }: Props) {
const value = getFieldValue(evt);
setSearchValue(value);
- onSearch && onSearch(value);
+ onSearch?.(value);
}, []);
const preventDismiss = useCallback((evt: React.KeyboardEvent) => {
if (evt.key === 'Enter') {
diff --git a/react/features/speaker-stats/reducer.ts b/react/features/speaker-stats/reducer.ts
index e41b76dc4b..2d216e26ed 100644
--- a/react/features/speaker-stats/reducer.ts
+++ b/react/features/speaker-stats/reducer.ts
@@ -24,7 +24,7 @@ const INITIAL_STATE = {
};
export interface ISpeakerStatsState {
- criteria: string|null;
+ criteria: string | null;
isOpen: boolean;
pendingReorder: boolean;
showFaceExpressions: boolean;
@@ -62,7 +62,7 @@ ReducerRegistry.register<ISpeakerStatsState>('features/speaker-stats',
* @private
* @returns {Object} The new state after the reduction of the specified action.
*/
-function _updateCriteria(state: ISpeakerStatsState, { criteria }: { criteria: string|null }) {
+function _updateCriteria(state: ISpeakerStatsState, { criteria }: { criteria: string | null; }) {
return _.assign(
{},
state,
@@ -84,7 +84,7 @@ function _updateCriteria(state: ISpeakerStatsState, { criteria }: { criteria: st
* @private
* @returns {Object} - The new state after the reduction of the specified action.
*/
-function _updateStats(state: ISpeakerStatsState, { stats }: { stats: any }) {
+function _updateStats(state: ISpeakerStatsState, { stats }: { stats: any; }) {
const finalStats = state.pendingReorder ? stats : state.stats;
if (!state.pendingReorder) {
diff --git a/react/features/stream-effects/noise-suppression/NoiseSuppressionEffect.ts b/react/features/stream-effects/noise-suppression/NoiseSuppressionEffect.ts
index 94d90459b3..8fe8fe36bb 100644
--- a/react/features/stream-effects/noise-suppression/NoiseSuppressionEffect.ts
+++ b/react/features/stream-effects/noise-suppression/NoiseSuppressionEffect.ts
@@ -46,7 +46,7 @@ export class NoiseSuppressionEffect {
* @param {MediaStream} audioStream - Audio stream which will be mixed with _mixAudio.
* @returns {MediaStream} - MediaStream containing both audio tracks mixed together.
*/
- startEffect(audioStream: MediaStream) : MediaStream {
+ startEffect(audioStream: MediaStream): MediaStream {
this._originalMediaTrack = audioStream.getAudioTracks()[0];
this._audioContext = new AudioContext();
this._audioSource = this._audioContext.createMediaStreamSource(audioStream);
diff --git a/react/features/stream-effects/rnnoise/RnnoiseProcessor.ts b/react/features/stream-effects/rnnoise/RnnoiseProcessor.ts
index dffad4a7d0..1920d3dae1 100644
--- a/react/features/stream-effects/rnnoise/RnnoiseProcessor.ts
+++ b/react/features/stream-effects/rnnoise/RnnoiseProcessor.ts
@@ -1,9 +1,9 @@
/* eslint-disable no-bitwise */
interface RnnoiseModule extends EmscriptenModule {
- _rnnoise_create() : number;
- _rnnoise_destroy(context: number): void;
- _rnnoise_process_frame(context: number, input: number, output: number): number;
+ _rnnoise_create: () => number;
+ _rnnoise_destroy: (context: number) => void;
+ _rnnoise_process_frame: (context: number, input: number, output: number) => number;
}
/**
diff --git a/react/features/subtitles/components/LanguageList.tsx b/react/features/subtitles/components/LanguageList.tsx
index 2c8e77a1cc..f7816d5268 100644
--- a/react/features/subtitles/components/LanguageList.tsx
+++ b/react/features/subtitles/components/LanguageList.tsx
@@ -5,9 +5,9 @@ import React from 'react';
import LanguageListItem from './LanguageListItem';
interface ILanguageListProps {
- items: Array<LanguageItem>,
+ items: Array<LanguageItem>;
onLanguageSelected: (lang: string) => void;
- selectedLanguage: string
+ selectedLanguage: string;
}
const useStyles = makeStyles(() => {
@@ -21,9 +21,9 @@ const useStyles = makeStyles(() => {
interface LanguageItem {
- id: string,
- lang: string,
- selected: boolean,
+ id: string;
+ lang: string;
+ selected: boolean;
}
/**
diff --git a/react/features/subtitles/components/LanguageListItem.tsx b/react/features/subtitles/components/LanguageListItem.tsx
index 50fab55f87..128b49ba73 100644
--- a/react/features/subtitles/components/LanguageListItem.tsx
+++ b/react/features/subtitles/components/LanguageListItem.tsx
@@ -12,7 +12,7 @@ interface ILanguageListItemProps extends WithTranslation {
/**
* Whether or not the button should be full width.
*/
- lang: string,
+ lang: string;
/**
* Click callback.
diff --git a/react/features/subtitles/components/LanguageSelectorDialog.web.tsx b/react/features/subtitles/components/LanguageSelectorDialog.web.tsx
index 4f92b975ce..223e7d7edd 100644
--- a/react/features/subtitles/components/LanguageSelectorDialog.web.tsx
+++ b/react/features/subtitles/components/LanguageSelectorDialog.web.tsx
@@ -14,8 +14,8 @@ import { updateTranslationLanguage, setRequestingSubtitles, toggleLangugeSelecto
import LanguageList from './LanguageList';
interface ILanguageSelectorDialogProps {
- _language: string,
- t: Function,
+ _language: string;
+ t: Function;
}
/**
diff --git a/react/features/subtitles/reducer.ts b/react/features/subtitles/reducer.ts
index 0a4fb6d2d2..d3bb8c401e 100644
--- a/react/features/subtitles/reducer.ts
+++ b/react/features/subtitles/reducer.ts
@@ -55,7 +55,7 @@ ReducerRegistry.register<ISubtitlesState>('features/subtitles', (
* @returns {Object} The new state of the feature transcription after the
* reduction of the specified action.
*/
-function _removeTranscriptMessage(state: ISubtitlesState, { transcriptMessageID }: { transcriptMessageID: string }) {
+function _removeTranscriptMessage(state: ISubtitlesState, { transcriptMessageID }: { transcriptMessageID: string; }) {
const newTranscriptMessages = new Map(state._transcriptMessages);
// Deletes the key from Map once a final message arrives.
@@ -77,7 +77,7 @@ function _removeTranscriptMessage(state: ISubtitlesState, { transcriptMessageID
* reduction of the specified action.
*/
function _updateTranscriptMessage(state: ISubtitlesState, { transcriptMessageID, newTranscriptMessage }:
- { newTranscriptMessage: Object, transcriptMessageID: string }) {
+ { newTranscriptMessage: Object; transcriptMessageID: string; }) {
const newTranscriptMessages = new Map(state._transcriptMessages);
// Updates the new message for the given key in the Map.
diff --git a/react/features/toolbox/components/native/HangupMenuButton.tsx b/react/features/toolbox/components/native/HangupMenuButton.tsx
index e33aa92c78..80bbf3357b 100644
--- a/react/features/toolbox/components/native/HangupMenuButton.tsx
+++ b/react/features/toolbox/components/native/HangupMenuButton.tsx
@@ -16,7 +16,7 @@ import HangupMenu from './HangupMenu';
*
* @returns {JSX.Element} - The hangup menu button.
*/
-const HangupMenuButton = () : JSX.Element => {
+const HangupMenuButton = (): JSX.Element => {
const dispatch = useDispatch();
const onSelect = useCallback(() => {
diff --git a/react/features/toolbox/components/web/Drawer.tsx b/react/features/toolbox/components/web/Drawer.tsx
index 1d70a880ce..b8de4ce1a2 100644
--- a/react/features/toolbox/components/web/Drawer.tsx
+++ b/react/features/toolbox/components/web/Drawer.tsx
@@ -9,22 +9,22 @@ type Props = {
/**
* The component(s) to be displayed within the drawer menu.
*/
- children: ReactElement,
+ children: ReactElement;
/**
* Class name for custom styles.
*/
- className?: string,
+ className?: string;
/**
* Whether the drawer should be shown or not.
*/
- isOpen: boolean,
+ isOpen: boolean;
/**
* Function that hides the drawer.
*/
- onClose: Function
+ onClose: Function;
};
const useStyles = makeStyles((theme: any) => {
diff --git a/react/features/toolbox/components/web/HangupMenuButton.tsx b/react/features/toolbox/components/web/HangupMenuButton.tsx
index a137e5629d..90c7487b05 100644
--- a/react/features/toolbox/components/web/HangupMenuButton.tsx
+++ b/react/features/toolbox/components/web/HangupMenuButton.tsx
@@ -17,22 +17,22 @@ interface Props extends WithTranslation {
/**
* ID of the menu that is controlled by this button.
*/
- ariaControls: String,
+ ariaControls: String;
/**
* A child React Element to display within {@code InlineDialog}.
*/
- children: React.ReactNode,
+ children: React.ReactNode;
/**
* Whether or not the HangupMenu popover should display.
*/
- isOpen: boolean,
+ isOpen: boolean;
/**
* Callback to change the visibility of the hangup menu.
*/
- onVisibilityChange: Function
+ onVisibilityChange: Function;
}
/**
diff --git a/react/features/toolbox/components/web/HangupToggleButton.tsx b/react/features/toolbox/components/web/HangupToggleButton.tsx
index 4dc824d889..c425fcc09d 100644
--- a/react/features/toolbox/components/web/HangupToggleButton.tsx
+++ b/react/features/toolbox/components/web/HangupToggleButton.tsx
@@ -14,12 +14,12 @@ type Props = AbstractButtonProps & {
/**
* Whether the more options menu is open.
*/
- isOpen: boolean,
+ isOpen: boolean;
/**
* External handler for key down action.
*/
- onKeyDown: Function,
+ onKeyDown: Function;
};
/**
diff --git a/react/features/toolbox/components/web/OverflowMenuButton.tsx b/react/features/toolbox/components/web/OverflowMenuButton.tsx
index c4dea74df2..c60242bdc1 100644
--- a/react/features/toolbox/components/web/OverflowMenuButton.tsx
+++ b/react/features/toolbox/components/web/OverflowMenuButton.tsx
@@ -30,42 +30,42 @@ interface Props extends WithTranslation {
/**
* ID of the menu that is controlled by this button.
*/
- ariaControls: String,
+ ariaControls: String;
/**
* A child React Element to display within {@code InlineDialog}.
*/
- children: ReactElement,
+ children: ReactElement;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* Whether or not the OverflowMenu popover should display.
*/
- isOpen: boolean,
+ isOpen: boolean;
/**
* Callback to change the visibility of the overflow menu.
*/
- onVisibilityChange: Function,
+ onVisibilityChange: Function;
/**
* Whether to display the OverflowMenu as a drawer.
*/
- overflowDrawer: boolean,
+ overflowDrawer: boolean;
/**
* The array of reactions to be displayed.
*/
- reactionsQueue: Array<ReactionEmojiProps>,
+ reactionsQueue: Array<ReactionEmojiProps>;
/**
* Whether or not to display the reactions in the mobile menu.
*/
- showMobileReactions: boolean
+ showMobileReactions: boolean;
}
const styles = () => {
diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsx
index c5d0c75219..97d9656863 100644
--- a/react/features/toolbox/components/web/Toolbox.tsx
+++ b/react/features/toolbox/components/web/Toolbox.tsx
@@ -154,7 +154,7 @@ interface Props extends WithTranslation {
/**
* String showing if the virtual background type is desktop-share.
*/
- _backgroundType: String,
+ _backgroundType: String;
/**
* Toolbar buttons which have their click exposed through the API.
@@ -162,178 +162,178 @@ interface Props extends WithTranslation {
_buttonsWithNotifyClick: Array<string | {
key: string;
preventExecution: boolean;
- }>,
+ }>;
/**
* Whether or not the chat feature is currently displayed.
*/
- _chatOpen: boolean,
+ _chatOpen: boolean;
/**
* The width of the client.
*/
- _clientWidth: number,
+ _clientWidth: number;
/**
* The {@code JitsiConference} for the current conference.
*/
- _conference: Object,
+ _conference: Object;
/**
* Whether or not screensharing button is disabled.
*/
- _desktopSharingButtonDisabled: boolean,
+ _desktopSharingButtonDisabled: boolean;
/**
* Whether or not screensharing is initialized.
*/
- _desktopSharingEnabled: boolean,
+ _desktopSharingEnabled: boolean;
/**
* Whether or not a dialog is displayed.
*/
- _dialog: boolean,
+ _dialog: boolean;
/**
* Whether or not the toolbox is disabled. It is for recorders.
*/
- _disabled: boolean,
+ _disabled: boolean;
/**
* Whether the end conference feature is supported.
*/
- _endConferenceSupported: boolean,
+ _endConferenceSupported: boolean;
/**
* Whether or not call feedback can be sent.
*/
- _feedbackConfigured: boolean,
+ _feedbackConfigured: boolean;
/**
* Whether or not the app is currently in full screen.
*/
- _fullScreen: boolean,
+ _fullScreen: boolean;
/**
* Whether or not the GIFs feature is enabled.
*/
- _gifsEnabled: boolean,
+ _gifsEnabled: boolean;
/**
* Whether the hangup menu is visible.
*/
- _hangupMenuVisible: boolean,
+ _hangupMenuVisible: boolean;
/**
* Whether the app has Salesforce integration.
*/
- _hasSalesforce: boolean,
+ _hasSalesforce: boolean;
/**
* Whether or not the app is running in an ios mobile browser.
*/
- _isIosMobile: boolean,
+ _isIosMobile: boolean;
/**
* Whether or not the app is running in mobile browser.
*/
- _isMobile: boolean,
+ _isMobile: boolean;
/**
* Whether or not the profile is disabled.
*/
- _isProfileDisabled: boolean,
+ _isProfileDisabled: boolean;
/**
* Whether or not the current meeting belongs to a JaaS user.
*/
- _isVpaasMeeting: boolean,
+ _isVpaasMeeting: boolean;
/**
* The ID of the local participant.
*/
- _localParticipantID: String,
+ _localParticipantID: String;
/**
* The JitsiLocalTrack to display.
*/
- _localVideo: Object,
+ _localVideo: Object;
/**
* Whether or not multi-stream send support is enabled.
*/
- _multiStreamModeEnabled: boolean,
+ _multiStreamModeEnabled: boolean;
/**
* Whether or not the overflow menu is displayed in a drawer drawer.
*/
- _overflowDrawer: boolean,
+ _overflowDrawer: boolean;
/**
* Whether or not the overflow menu is visible.
*/
- _overflowMenuVisible: boolean,
+ _overflowMenuVisible: boolean;
/**
* Whether or not the participants pane is open.
*/
- _participantsPaneOpen: boolean,
+ _participantsPaneOpen: boolean;
/**
* Whether or not the local participant's hand is raised.
*/
- _raisedHand: boolean,
+ _raisedHand: boolean;
/**
* Whether or not reactions feature is enabled.
*/
- _reactionsEnabled: boolean,
+ _reactionsEnabled: boolean;
/**
* Whether or not the local participant is screenSharing.
*/
- _screenSharing: boolean,
+ _screenSharing: boolean;
/**
* Whether or not the local participant is sharing a YouTube video.
*/
- _sharingVideo: boolean,
+ _sharingVideo: boolean;
/**
* Whether or not the tile view is enabled.
*/
- _tileViewEnabled: boolean,
+ _tileViewEnabled: boolean;
/**
* The enabled buttons.
*/
- _toolbarButtons: Array<string>,
+ _toolbarButtons: Array<string>;
/**
* Returns the selected virtual source object.
*/
- _virtualSource: any,
+ _virtualSource: any;
/**
* Flag showing whether toolbar is visible.
*/
- _visible: boolean,
+ _visible: boolean;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* Invoked to active other features of the app.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Explicitly passed array with the buttons which this Toolbox should display.
*/
- toolbarButtons: Array<string>,
+ toolbarButtons: Array<string>;
}
declare let APP: any;
diff --git a/react/features/toolbox/reducer.ts b/react/features/toolbox/reducer.ts
index 8bdae3b892..ed85409b95 100644
--- a/react/features/toolbox/reducer.ts
+++ b/react/features/toolbox/reducer.ts
@@ -79,7 +79,7 @@ export interface IToolboxState {
hovered: boolean;
overflowDrawer: boolean;
overflowMenuVisible: boolean;
- timeoutID?: number|null;
+ timeoutID?: number | null;
visible: boolean;
}
diff --git a/react/features/transcribing/reducer.ts b/react/features/transcribing/reducer.ts
index 9cbcc4ec91..f3d110337f 100644
--- a/react/features/transcribing/reducer.ts
+++ b/react/features/transcribing/reducer.ts
@@ -64,7 +64,7 @@ export interface ITranscribingState {
isTranscribing: boolean;
pendingNotificationUid?: number;
potentialTranscriberJIDs: string[];
- transcriberJID?: string|null;
+ transcriberJID?: string | null;
}
/**
diff --git a/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx b/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx
index f9935d0b0b..6123b8106b 100644
--- a/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx
+++ b/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx
@@ -47,74 +47,74 @@ interface Props extends WithTranslation {
/**
* The id of the local participant.
*/
- _localParticipantId: string,
+ _localParticipantId: string;
/**
* The position relative to the trigger the local video menu should display
* from. Valid values are those supported by AtlasKit
* {@code InlineDialog}.
*/
- _menuPosition: string,
+ _menuPosition: string;
/**
* Whether to display the Popover as a drawer.
*/
- _overflowDrawer: boolean,
+ _overflowDrawer: boolean;
/**
* Whether to render the connection info pane.
*/
- _showConnectionInfo: boolean,
+ _showConnectionInfo: boolean;
/**
* Whether to render the hide self view button.
*/
- _showHideSelfViewButton: boolean,
+ _showHideSelfViewButton: boolean;
/**
* Shows/hides the local video flip button.
*/
- _showLocalVideoFlipButton: boolean,
+ _showLocalVideoFlipButton: boolean;
/**
* Whether to render the pin to stage button.
*/
- _showPinToStage: boolean,
+ _showPinToStage: boolean;
/**
* Whether or not the button should be visible.
*/
- buttonVisible: boolean,
+ buttonVisible: boolean;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The redux dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Hides popover.
*/
- hidePopover: Function,
+ hidePopover: Function;
/**
* Whether the popover is visible or not.
*/
- popoverVisible: boolean,
+ popoverVisible: boolean;
/**
* Shows popover.
*/
- showPopover: Function
+ showPopover: Function;
/**
* The type of the thumbnail.
*/
- thumbnailType: string
+ thumbnailType: string;
}
const styles = () => {
diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.tsx b/react/features/video-menu/components/web/ParticipantContextMenu.tsx
index fe8c25f41f..05a648c2d0 100644
--- a/react/features/video-menu/components/web/ParticipantContextMenu.tsx
+++ b/react/features/video-menu/components/web/ParticipantContextMenu.tsx
@@ -60,12 +60,12 @@ type Props = {
/**
* Class name for the context menu.
*/
- className?: string,
+ className?: string;
/**
* Closes a drawer if open.
*/
- closeDrawer?: () => void,
+ closeDrawer?: () => void;
/**
* The participant for which the drawer is open.
@@ -74,48 +74,48 @@ type Props = {
drawerParticipant?: {
displayName: string;
participantID: string;
- },
+ };
/**
* Shared video local participant owner.
*/
- localVideoOwner?: boolean,
+ localVideoOwner?: boolean;
/**
* Target elements against which positioning calculations are made.
*/
- offsetTarget?: HTMLElement,
+ offsetTarget?: HTMLElement;
/**
* Callback for the mouse entering the component.
*/
- onEnter?: (e?: React.MouseEvent) => void,
+ onEnter?: (e?: React.MouseEvent) => void;
/**
* Callback for the mouse leaving the component.
*/
- onLeave?: (e?: React.MouseEvent) => void,
+ onLeave?: (e?: React.MouseEvent) => void;
/**
* Callback for making a selection in the menu.
*/
- onSelect: (value?: boolean | React.MouseEvent) => void,
+ onSelect: (value?: boolean | React.MouseEvent) => void;
/**
* Participant reference.
*/
- participant: Participant,
+ participant: Participant;
/**
* The current state of the participant's remote control session.
*/
- remoteControlState?: number,
+ remoteControlState?: number;
/**
* Whether or not the menu is displayed in the thumbnail remote video menu.
*/
- thumbnailMenu?: boolean
-}
+ thumbnailMenu?: boolean;
+};
const useStyles = makeStyles((theme: any) => {
return {
@@ -167,7 +167,7 @@ const ParticipantContextMenu = ({
const stageFilmstrip = useSelector(isStageFilmstripAvailable);
const _currentRoomId = useSelector(getCurrentRoomId);
- const _rooms: Array<{ id: string }> = Object.values(useSelector(getBreakoutRooms));
+ const _rooms: Array<{ id: string; }> = Object.values(useSelector(getBreakoutRooms));
const _onVolumeChange = useCallback(value => {
dispatch(setVolume(participant.id, value));
diff --git a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx
index 7d237c4748..ec5b03fa64 100644
--- a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx
+++ b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx
@@ -37,79 +37,79 @@ interface Props extends WithTranslation {
/**
* Whether the remote video context menu is disabled.
*/
- _disabled: Boolean,
+ _disabled: Boolean;
/**
* The position relative to the trigger the remote menu should display
* from. Valid values are those supported by AtlasKit
* {@code InlineDialog}.
*/
- _menuPosition: string,
+ _menuPosition: string;
/**
* Whether to display the Popover as a drawer.
*/
- _overflowDrawer: boolean,
+ _overflowDrawer: boolean;
/**
* Participant reference.
*/
- _participant: Participant,
+ _participant: Participant;
/**
* The ID for the participant on which the remote video menu will act.
*/
- _participantDisplayName: string,
+ _participantDisplayName: string;
/**
* The current state of the participant's remote control session.
*/
- _remoteControlState: number,
+ _remoteControlState: number;
/**
* Whether the popover should render the Connection Info stats.
*/
- _showConnectionInfo: Boolean,
+ _showConnectionInfo: Boolean;
/**
* Whether or not the button should be visible.
*/
- buttonVisible: boolean,
+ buttonVisible: boolean;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The redux dispatch function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Hides popover.
*/
- hidePopover: Function,
+ hidePopover: Function;
/**
* The ID for the participant on which the remote video menu will act.
*/
- participantID: string,
+ participantID: string;
/**
* Whether the popover is visible or not.
*/
- popoverVisible: boolean,
+ popoverVisible: boolean;
/**
* Shows popover.
*/
- showPopover: Function,
+ showPopover: Function;
/**
* The type of the thumbnail.
*/
- thumbnailType: string
+ thumbnailType: string;
}
const styles = () => {
diff --git a/react/features/video-menu/components/web/VolumeSlider.tsx b/react/features/video-menu/components/web/VolumeSlider.tsx
index 990fe2e16f..b79eb01e73 100644
--- a/react/features/video-menu/components/web/VolumeSlider.tsx
+++ b/react/features/video-menu/components/web/VolumeSlider.tsx
@@ -18,19 +18,19 @@ interface Props extends WithTranslation {
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The value of the audio slider should display at when the component first
* mounts. Changes will be stored in state. The value should be a number
* between 0 and 1.
*/
- initialValue: number,
+ initialValue: number;
/**
* The callback to invoke when the audio slider value changes.
*/
- onChange: Function
+ onChange: Function;
}
/**
@@ -42,7 +42,7 @@ type State = {
* The volume of the participant's audio element. The value will
* be represented by a slider.
*/
- volumeLevel: number
+ volumeLevel: number;
};
const styles = (theme: any) => {
diff --git a/react/features/video-quality/components/Slider.tsx b/react/features/video-quality/components/Slider.tsx
index 4b0cef165e..0d1bef536a 100644
--- a/react/features/video-quality/components/Slider.tsx
+++ b/react/features/video-quality/components/Slider.tsx
@@ -9,33 +9,33 @@ type Props = {
/**
* The 'aria-label' text.
*/
- ariaLabel: string,
+ ariaLabel: string;
/**
* The maximum value for slider value.
*/
- max: number,
+ max: number;
/**
* The minimum value for slider value.
*/
- min: number,
+ min: number;
/**
* Callback invoked on change.
*/
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void,
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
/**
* The granularity that the value must adhere to.
*/
- step: number,
+ step: number;
/**
* The current value where the knob is positioned.
*/
- value: number
-}
+ value: number;
+};
const useStyles = makeStyles((theme: any) => {
// keep the same height for all elements:
diff --git a/react/features/video-quality/components/VideoQualitySlider.web.tsx b/react/features/video-quality/components/VideoQualitySlider.web.tsx
index e69eb10f4c..2a1c84143d 100644
--- a/react/features/video-quality/components/VideoQualitySlider.web.tsx
+++ b/react/features/video-quality/components/VideoQualitySlider.web.tsx
@@ -54,33 +54,33 @@ interface Props extends WithTranslation {
/**
* Whether or not the conference is in audio only mode.
*/
- _audioOnly: Boolean,
+ _audioOnly: Boolean;
/**
* The channelLastN value configured for the conference.
*/
- _channelLastN: Number,
+ _channelLastN: Number;
/**
* Whether or not the conference is in peer to peer mode.
*/
- _p2p: Boolean,
+ _p2p: Boolean;
/**
* The currently configured maximum quality resolution to be sent and
* received from the remote participants.
*/
- _sendrecvVideoQuality: Number,
+ _sendrecvVideoQuality: Number;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* Invoked to request toggling of audio only mode.
*/
- dispatch: Dispatch<any>
+ dispatch: Dispatch<any>;
}
/**
diff --git a/react/features/video-quality/reducer.ts b/react/features/video-quality/reducer.ts
index 8855813e4b..8d32b53b24 100644
--- a/react/features/video-quality/reducer.ts
+++ b/react/features/video-quality/reducer.ts
@@ -37,11 +37,11 @@ Object.values(VIDEO_QUALITY_LEVELS).sort()
});
export interface IVideoQualityState {
- maxReceiverVideoQualityForLargeVideo: number,
- maxReceiverVideoQualityForScreenSharingFilmstrip: number,
- maxReceiverVideoQualityForStageFilmstrip: number,
- maxReceiverVideoQualityForTileView: number,
- maxReceiverVideoQualityForVerticalFilmstrip: number,
+ maxReceiverVideoQualityForLargeVideo: number;
+ maxReceiverVideoQualityForScreenSharingFilmstrip: number;
+ maxReceiverVideoQualityForStageFilmstrip: number;
+ maxReceiverVideoQualityForTileView: number;
+ maxReceiverVideoQualityForVerticalFilmstrip: number;
minHeightForQualityLvl: Map<number, number>;
preferredVideoQuality: number;
}
@@ -120,7 +120,7 @@ ReducerRegistry.register<IVideoQualityState>('features/video-quality',
* @private
* @returns {Object} The new state after the reduction of the specified action.
*/
-function _setConfig(state: IVideoQualityState, { config }: { config: IConfig }) {
+function _setConfig(state: IVideoQualityState, { config }: { config: IConfig; }) {
const configuredMap = config?.videoQuality?.minHeightForQualityLvl;
const convertedMap = validateMinHeightForQualityLvl(configuredMap);
diff --git a/react/features/virtual-background/components/UploadImageButton.tsx b/react/features/virtual-background/components/UploadImageButton.tsx
index 50163d90db..ef34337a76 100644
--- a/react/features/virtual-background/components/UploadImageButton.tsx
+++ b/react/features/virtual-background/components/UploadImageButton.tsx
@@ -18,27 +18,27 @@ interface Props extends WithTranslation {
/**
* Callback used to set the 'loading' state of the parent component.
*/
- setLoading: Function,
+ setLoading: Function;
/**
* Callback used to set the options.
*/
- setOptions: Function,
+ setOptions: Function;
/**
* Callback used to set the storedImages array.
*/
- setStoredImages: Function,
+ setStoredImages: Function;
/**
* If a label should be displayed alongside the button.
*/
- showLabel: boolean,
+ showLabel: boolean;
/**
* A list of images locally stored.
*/
- storedImages: Array<Image>
+ storedImages: Array<Image>;
}
// @ts-ignore
diff --git a/react/features/virtual-background/components/VirtualBackgroundDialog.tsx b/react/features/virtual-background/components/VirtualBackgroundDialog.tsx
index 1854e48fbd..6b67f31175 100644
--- a/react/features/virtual-background/components/VirtualBackgroundDialog.tsx
+++ b/react/features/virtual-background/components/VirtualBackgroundDialog.tsx
@@ -49,42 +49,42 @@ interface Props extends WithTranslation {
/**
* The list of Images to choose from.
*/
- _images: Array<Image>,
+ _images: Array<Image>;
/**
* Returns the jitsi track that will have backgraund effect applied.
*/
- _jitsiTrack: Object,
+ _jitsiTrack: Object;
/**
* The current local flip x status.
*/
- _localFlipX: boolean,
+ _localFlipX: boolean;
/**
* Whether or not multi-stream send support is enabled.
*/
- _multiStreamModeEnabled: boolean,
+ _multiStreamModeEnabled: boolean;
/**
* Returns the selected thumbnail identifier.
*/
- _selectedThumbnail: string,
+ _selectedThumbnail: string;
/**
* If the upload button should be displayed or not.
*/
- _showUploadButton: boolean,
+ _showUploadButton: boolean;
/**
* Returns the selected virtual background object.
*/
- _virtualBackground: any,
+ _virtualBackground: any;
/**
* The redux {@code dispatch} function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* The initial options copied in the state for the {@code VirtualBackground} component.
@@ -92,7 +92,7 @@ interface Props extends WithTranslation {
* NOTE: currently used only for electron in order to open the dialog in the correct state after desktop sharing
* selection.
*/
- initialOptions: Object
+ initialOptions: Object;
}
const onError = (event: any) => {
diff --git a/react/features/virtual-background/components/VirtualBackgroundPreview.tsx b/react/features/virtual-background/components/VirtualBackgroundPreview.tsx
index 8cabb5dc67..a1d715652f 100644
--- a/react/features/virtual-background/components/VirtualBackgroundPreview.tsx
+++ b/react/features/virtual-background/components/VirtualBackgroundPreview.tsx
@@ -38,27 +38,27 @@ export type Props = WithTranslation & {
/**
* The deviceId of the camera device currently being used.
*/
- _currentCameraDeviceId: string,
+ _currentCameraDeviceId: string;
/**
* An object containing the CSS classes.
*/
- classes: any,
+ classes: any;
/**
* The redux {@code dispatch} function.
*/
- dispatch: Function,
+ dispatch: Function;
/**
* Dialog callback that indicates if the background preview was loaded.
*/
- loadedPreview: Function,
+ loadedPreview: Function;
/**
* Represents the virtual background set options.
*/
- options: any
+ options: any;
};
/**
@@ -69,17 +69,17 @@ type State = {
/**
* Activate the selected device camera only.
*/
- jitsiTrack: Object|null,
+ jitsiTrack: Object | null;
/**
* Loader activated on setting virtual background.
*/
- loading: boolean,
+ loading: boolean;
/**
* Flag that indicates if the local track was loaded.
*/
- localTrackLoaded: boolean
+ localTrackLoaded: boolean;
};
/**
diff --git a/react/features/virtual-background/constants.ts b/react/features/virtual-background/constants.ts
index cda33f3916..3470dffc5d 100644
--- a/react/features/virtual-background/constants.ts
+++ b/react/features/virtual-background/constants.ts
@@ -12,10 +12,10 @@ export const VIRTUAL_BACKGROUND_TYPE = {
export type Image = {
- id: string,
- src: string,
- tooltip?: string
-}
+ id: string;
+ src: string;
+ tooltip?: string;
+};
// The limit of virtual background uploads is 24. When the number
// of uploads is 25 we trigger the deleteStoredImage function to delete