diff --git a/react/features/analytics/handlers/AmplitudeHandler.ts b/react/features/analytics/handlers/AmplitudeHandler.ts index e0086dc56..6411b5576 100644 --- a/react/features/analytics/handlers/AmplitudeHandler.ts +++ b/react/features/analytics/handlers/AmplitudeHandler.ts @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import logger from '../logger'; import AbstractHandler, { IEvent } from './AbstractHandler'; @@ -103,8 +101,10 @@ export default class AmplitudeHandler extends AbstractHandler { return { sessionId: amplitude.getInstance().getSessionId(), + // @ts-ignore deviceId: amplitude.getInstance().options.deviceId, + // @ts-ignore userId: amplitude.getInstance().options.userId }; diff --git a/react/features/base/conference/actions.ts b/react/features/base/conference/actions.ts index aca2eb747..3932b3803 100644 --- a/react/features/base/conference/actions.ts +++ b/react/features/base/conference/actions.ts @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { createStartMutedConfigurationEvent } from '../../analytics/AnalyticsEvents'; import { sendAnalytics } from '../../analytics/functions'; import { appNavigate } from '../../app/actions'; @@ -111,6 +110,7 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[ JitsiConferenceEvents.CONFERENCE_LEFT, (...args: any[]) => { dispatch(conferenceTimestampChanged(0)); + // @ts-ignore dispatch(conferenceLeft(conference, ...args)); }); diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.ts index a7ac7d9e6..8ee510c12 100644 --- a/react/features/base/config/functions.any.ts +++ b/react/features/base/config/functions.any.ts @@ -1,6 +1,6 @@ -/* eslint-disable lines-around-comment */ // @ts-ignore import Bourne from '@hapi/bourne'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { jitsiLocalStorage } from '@jitsi/js-utils'; import _ from 'lodash'; diff --git a/react/features/base/icons/components/Icon.tsx b/react/features/base/icons/components/Icon.tsx index cf78639ab..a826e823f 100644 --- a/react/features/base/icons/components/Icon.tsx +++ b/react/features/base/icons/components/Icon.tsx @@ -1,8 +1,8 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; // @ts-ignore import { Container } from '../../react/base'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { styleTypeToObject } from '../../styles'; diff --git a/react/features/base/participants/functions.ts b/react/features/base/participants/functions.ts index 6c7774d82..dffbc1236 100644 --- a/react/features/base/participants/functions.ts +++ b/react/features/base/participants/functions.ts @@ -1,9 +1,7 @@ -/* eslint-disable lines-around-comment */ // @ts-ignore import { getGravatarURL } from '@jitsi/js-utils/avatar'; import { IReduxState, IStore } from '../../app/types'; -// @ts-ignore import { isStageFilmstripAvailable } from '../../filmstrip/functions'; import { IStateful } from '../app/types'; import { GRAVATAR_BASE_URL } from '../avatar/constants'; @@ -20,6 +18,7 @@ import { PARTICIPANT_ROLE, WHITEBOARD_PARTICIPANT_ICON } from './constants'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { preloadImage } from './preloadImage'; import { FakeParticipant, IParticipant } from './types'; diff --git a/react/features/base/settings/components/native/SettingsButton.tsx b/react/features/base/settings/components/native/SettingsButton.tsx index 52c9ff51a..48d6221ae 100644 --- a/react/features/base/settings/components/native/SettingsButton.tsx +++ b/react/features/base/settings/components/native/SettingsButton.tsx @@ -10,8 +10,8 @@ import { navigate } from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef'; // @ts-ignore import { screen } from '../../../../mobile/navigation/routes'; -// @ts-ignore -import { SETTINGS_ENABLED, getFeatureFlag } from '../../../flags'; +import { SETTINGS_ENABLED } from '../../../flags/constants'; +import { getFeatureFlag } from '../../../flags/functions'; import { connect } from '../../../redux/functions'; /** diff --git a/react/features/base/settings/middleware.any.ts b/react/features/base/settings/middleware.any.ts index dde49607b..3583772ed 100644 --- a/react/features/base/settings/middleware.any.ts +++ b/react/features/base/settings/middleware.any.ts @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import _ from 'lodash'; import { AnyAction } from 'redux'; diff --git a/react/features/base/tracks/actions.native.ts b/react/features/base/tracks/actions.native.ts index d94f72849..06cdd4e28 100644 --- a/react/features/base/tracks/actions.native.ts +++ b/react/features/base/tracks/actions.native.ts @@ -1,6 +1,5 @@ -/* eslint-disable lines-around-comment */ - import { IReduxState, IStore } from '../../app/types'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { setPictureInPictureEnabled } from '../../mobile/picture-in-picture/functions'; import { setAudioOnly } from '../audio-only/actions'; @@ -8,7 +7,6 @@ import JitsiMeetJS from '../lib-jitsi-meet'; import { destroyLocalDesktopTrackIfExists, replaceLocalTrack } from './actions.any'; import { getLocalVideoTrack, isLocalVideoTrackDesktop } from './functions'; -/* eslint-enable lines-around-comment */ export * from './actions.any'; diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.ts index 46da62366..dfaada8fb 100644 --- a/react/features/base/tracks/actions.web.ts +++ b/react/features/base/tracks/actions.web.ts @@ -8,7 +8,6 @@ import { showNotification } from '../../notifications/actions'; import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants'; // @ts-ignore import { stopReceiver } from '../../remote-control/actions'; -// @ts-ignore import { setScreenAudioShareState, setScreenshareAudioTrack } from '../../screen-share/actions'; import { isAudioOnlySharing, isScreenVideoShared } from '../../screen-share/functions'; // @ts-ignore diff --git a/react/features/base/ui/components/native/Button.tsx b/react/features/base/ui/components/native/Button.tsx index 97221e41d..a48bb6e53 100644 --- a/react/features/base/ui/components/native/Button.tsx +++ b/react/features/base/ui/components/native/Button.tsx @@ -1,4 +1,3 @@ -// @ts-ignore import React from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/react/features/base/ui/components/native/IconButton.tsx b/react/features/base/ui/components/native/IconButton.tsx index df1060a7a..622f1e23d 100644 --- a/react/features/base/ui/components/native/IconButton.tsx +++ b/react/features/base/ui/components/native/IconButton.tsx @@ -1,8 +1,8 @@ -/* eslint-disable lines-around-comment */ import React from 'react'; import { TouchableRipple } from 'react-native-paper'; import Icon from '../../../icons/components/Icon'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import styles from '../../../react/components/native/styles'; import { IIconButtonProps } from '../../../react/types'; diff --git a/react/features/chat/middleware.ts b/react/features/chat/middleware.ts index c34aed1ec..741f24cf4 100644 --- a/react/features/chat/middleware.ts +++ b/react/features/chat/middleware.ts @@ -47,6 +47,7 @@ import { } from './constants'; import { getUnreadCount } from './functions'; import { INCOMING_MSG_SOUND_FILE } from './sounds'; +/* eslint-enable lines-around-comment */ /** * Timeout for when to show the privacy notice after a private message was received. diff --git a/react/features/conference/components/native/carmode/EndMeetingButton.tsx b/react/features/conference/components/native/carmode/EndMeetingButton.tsx index a22d9ae82..7cfa3bfdb 100644 --- a/react/features/conference/components/native/carmode/EndMeetingButton.tsx +++ b/react/features/conference/components/native/carmode/EndMeetingButton.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { useDispatch } from 'react-redux'; @@ -9,6 +8,7 @@ import Button from '../../../../base/ui/components/native/Button'; import { BUTTON_TYPES } from '../../../../base/ui/constants.native'; import EndMeetingIcon from './EndMeetingIcon'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import styles from './styles'; diff --git a/react/features/conference/components/native/carmode/MicrophoneButton.tsx b/react/features/conference/components/native/carmode/MicrophoneButton.tsx index 699f30e65..f8dbe737d 100644 --- a/react/features/conference/components/native/carmode/MicrophoneButton.tsx +++ b/react/features/conference/components/native/carmode/MicrophoneButton.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback, useState } from 'react'; import { TouchableOpacity, View } from 'react-native'; import { useDispatch, useSelector } from 'react-redux'; @@ -17,7 +16,6 @@ import { IconMic, IconMicSlash } from '../../../../base/icons/svg'; import { MEDIA_TYPE } from '../../../../base/media/constants'; import { isLocalTrackMuted } from '../../../../base/tracks/functions'; import { isAudioMuteButtonDisabled } from '../../../../toolbox/functions.any'; -// @ts-ignore import { muteLocal } from '../../../../video-menu/actions'; // @ts-ignore diff --git a/react/features/conference/components/web/ToggleTopPanelLabel.tsx b/react/features/conference/components/web/ToggleTopPanelLabel.tsx index f14ec3cae..d1b5df7bb 100644 --- a/react/features/conference/components/web/ToggleTopPanelLabel.tsx +++ b/react/features/conference/components/web/ToggleTopPanelLabel.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; @@ -6,9 +5,9 @@ import { useDispatch, useSelector } from 'react-redux'; import { IReduxState } from '../../../app/types'; import { IconArrowDown } from '../../../base/icons/svg/index'; import Label from '../../../base/label/components/web/Label'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { Tooltip } from '../../../base/tooltip'; -// @ts-ignore import { setTopPanelVisible } from '../../../filmstrip/actions.web'; const ToggleTopPanelLabel = () => { diff --git a/react/features/connection-indicator/components/native/styles.ts b/react/features/connection-indicator/components/native/styles.ts index fe561f4b4..699d32a66 100644 --- a/react/features/connection-indicator/components/native/styles.ts +++ b/react/features/connection-indicator/components/native/styles.ts @@ -1,6 +1,5 @@ -/* eslint-disable lines-around-comment */ - import BaseTheme from '../../../base/ui/components/BaseTheme.native'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { INDICATOR_DISPLAY_THRESHOLD } from '../AbstractConnectionIndicator'; diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.tsx b/react/features/connection-indicator/components/web/ConnectionIndicator.tsx index 83709c835..5480ea171 100644 --- a/react/features/connection-indicator/components/web/ConnectionIndicator.tsx +++ b/react/features/connection-indicator/components/web/ConnectionIndicator.tsx @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import { Theme } from '@mui/material'; import { withStyles } from '@mui/styles'; import clsx from 'clsx'; @@ -29,11 +27,13 @@ import AbstractConnectionIndicator, { type State as AbstractState, INDICATOR_DISPLAY_THRESHOLD, mapStateToProps as _abstractMapStateToProps + // @ts-ignore } from '../AbstractConnectionIndicator'; // @ts-ignore import ConnectionIndicatorContent from './ConnectionIndicatorContent'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { ConnectionIndicatorIcon } from './ConnectionIndicatorIcon'; @@ -228,6 +228,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator { } @@ -236,6 +237,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator { onPopoverClose = { this._onHidePopover } onPopoverOpen = { this._onShowPopover } position = { statsPopoverPosition } + // @ts-ignore visible = { this.state.popoverVisible }> { this._renderIndicator() } @@ -259,6 +261,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator { _isConnectionStatusInactive, _isConnectionStatusInterrupted, _connectionIndicatorInactiveDisabled + // @ts-ignore } = this.props; @@ -305,6 +308,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator { // @ts-ignore return this.state.showIndicator + // @ts-ignore || this.props.alwaysVisible || _isConnectionStatusInterrupted @@ -348,6 +352,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator { _videoTrack, classes, iconSize + // @ts-ignore } = this.props; @@ -399,5 +404,6 @@ export function _mapStateToProps(state: IReduxState, ownProps: Props) { } export default translate(connect(_mapStateToProps)( + // @ts-ignore withStyles(styles)(ConnectionIndicator))); diff --git a/react/features/desktop-picker/components/DesktopPicker.tsx b/react/features/desktop-picker/components/DesktopPicker.tsx index f249352c4..454b9f551 100644 --- a/react/features/desktop-picker/components/DesktopPicker.tsx +++ b/react/features/desktop-picker/components/DesktopPicker.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import Tabs from '@atlaskit/tabs'; import React, { PureComponent } from 'react'; import { WithTranslation } from 'react-i18next'; @@ -8,6 +7,7 @@ import { hideDialog } from '../../base/dialog/actions'; import { translate } from '../../base/i18n/functions'; import { connect } from '../../base/redux/functions'; import Dialog from '../../base/ui/components/web/Dialog'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { obtainDesktopSources } from '../functions'; diff --git a/react/features/display-name/components/web/DisplayName.tsx b/react/features/display-name/components/web/DisplayName.tsx index 32168b683..1d2d23803 100644 --- a/react/features/display-name/components/web/DisplayName.tsx +++ b/react/features/display-name/components/web/DisplayName.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback, useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; @@ -11,9 +10,9 @@ import { } from '../../../base/participants/functions'; import { updateSettings } from '../../../base/settings/actions'; import { withPixelLineHeight } from '../../../base/styles/functions.web'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { Tooltip } from '../../../base/tooltip'; -// @ts-ignore import { getIndicatorsTooltipPosition } from '../../../filmstrip/functions.web'; import { appendSuffix } from '../../functions'; diff --git a/react/features/display-name/components/web/StageParticipantNameLabel.tsx b/react/features/display-name/components/web/StageParticipantNameLabel.tsx index 6e574366b..f8b12f5df 100644 --- a/react/features/display-name/components/web/StageParticipantNameLabel.tsx +++ b/react/features/display-name/components/web/StageParticipantNameLabel.tsx @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import React from 'react'; import { useSelector } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; @@ -12,11 +10,9 @@ import { isWhiteboardParticipant } from '../../../base/participants/functions'; import { withPixelLineHeight } from '../../../base/styles/functions.web'; -// @ts-ignore import { getLargeVideoParticipant } from '../../../large-video/functions'; import { isToolboxVisible } from '../../../toolbox/functions.web'; -// @ts-ignore -import { isLayoutTileView } from '../../../video-layout'; +import { isLayoutTileView } from '../../../video-layout/functions.web'; import DisplayNameBadge from './DisplayNameBadge'; diff --git a/react/features/dropbox/actions.ts b/react/features/dropbox/actions.ts index 3e7a609eb..1f1acfbfe 100644 --- a/react/features/dropbox/actions.ts +++ b/react/features/dropbox/actions.ts @@ -43,7 +43,7 @@ export function authorizeDropbox() { * expireDate: number * }} */ -export function updateDropboxToken(token: string, rToken: string, expireDate: number) { +export function updateDropboxToken(token?: string, rToken?: string, expireDate?: number) { return { type: UPDATE_DROPBOX_TOKEN, token, diff --git a/react/features/filmstrip/components/web/Filmstrip.tsx b/react/features/filmstrip/components/web/Filmstrip.tsx index e6316cc46..fa387ce8b 100644 --- a/react/features/filmstrip/components/web/Filmstrip.tsx +++ b/react/features/filmstrip/components/web/Filmstrip.tsx @@ -17,12 +17,10 @@ import { IconArrowDown, IconArrowUp } from '../../../base/icons/svg'; import { IParticipant } from '../../../base/participants/types'; import { connect } from '../../../base/redux/functions'; import { shouldHideSelfView } from '../../../base/settings/functions.web'; -// @ts-ignore import { showToolbox } from '../../../toolbox/actions.web'; import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web'; -// @ts-ignore -import { getCurrentLayout } from '../../../video-layout'; import { LAYOUTS } from '../../../video-layout/constants'; +import { getCurrentLayout } from '../../../video-layout/functions.web'; import { setFilmstripVisible, setTopPanelVisible, @@ -30,7 +28,6 @@ import { setUserFilmstripWidth, setUserIsResizing, setVisibleRemoteParticipants - // @ts-ignore } from '../../actions'; import { ASPECT_RATIO_BREAKPOINT, @@ -46,7 +43,6 @@ import { getVerticalViewMaxWidth, isStageFilmstripTopPanel, shouldRemoteVideosBeVisible - // @ts-ignore } from '../../functions'; // @ts-ignore diff --git a/react/features/filmstrip/components/web/PinnedIndicator.tsx b/react/features/filmstrip/components/web/PinnedIndicator.tsx index 60f449bd1..6c667e77a 100644 --- a/react/features/filmstrip/components/web/PinnedIndicator.tsx +++ b/react/features/filmstrip/components/web/PinnedIndicator.tsx @@ -6,8 +6,6 @@ import { IReduxState } from '../../../app/types'; import { IconPin } from '../../../base/icons/svg'; import { getParticipantById } from '../../../base/participants/functions'; import BaseIndicator from '../../../base/react/components/web/BaseIndicator'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { getPinnedActiveParticipants, isStageFilmstripAvailable } from '../../functions.web'; /** diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsx index a8d16541e..5c103b145 100644 --- a/react/features/filmstrip/components/web/Thumbnail.tsx +++ b/react/features/filmstrip/components/web/Thumbnail.tsx @@ -39,10 +39,8 @@ import { hideGif, showGif } from '../../../gifs/actions'; import { getGifDisplayMode, getGifForParticipant } from '../../../gifs/functions'; // @ts-ignore import { PresenceLabel } from '../../../presence-status'; -// @ts-ignore -import { getCurrentLayout } from '../../../video-layout'; import { LAYOUTS } from '../../../video-layout/constants'; -// @ts-ignore +import { getCurrentLayout } from '../../../video-layout/functions.web'; import { togglePinStageParticipant } from '../../actions'; import { DISPLAY_MODE_TO_CLASS_NAME, @@ -60,7 +58,6 @@ import { isStageFilmstripAvailable, isVideoPlayable, showGridInVerticalView - // @ts-ignore } from '../../functions'; // @ts-ignore @@ -1188,7 +1185,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object { const _audioTrack = isLocal ? getLocalAudioTrack(tracks) : getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.AUDIO, id); - const _currentLayout = getCurrentLayout(state); + const _currentLayout = getCurrentLayout(state) ?? ''; let size: any = {}; let _isMobilePortrait = false; const { diff --git a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx index 97e14d5c1..bfc43a0e4 100644 --- a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx +++ b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import React from 'react'; import { useSelector } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; diff --git a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx index ff57a4960..6a89ca15c 100644 --- a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx +++ b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import React from 'react'; import { useSelector } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; @@ -9,11 +7,11 @@ import { isMobileBrowser } from '../../../base/environment/utils'; import { isScreenShareParticipantById } from '../../../base/participants/functions'; import ConnectionIndicator from '../../../connection-indicator/components/web/ConnectionIndicator'; import { STATS_POPOVER_POSITION, THUMBNAIL_TYPE } from '../../constants'; -// @ts-ignore import { getIndicatorsTooltipPosition } from '../../functions.web'; import PinnedIndicator from './PinnedIndicator'; import RaisedHandIndicator from './RaisedHandIndicator'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import StatusIndicators from './StatusIndicators'; import VideoMenuTriggerButton from './VideoMenuTriggerButton'; diff --git a/react/features/filmstrip/subscriber.web.ts b/react/features/filmstrip/subscriber.web.ts index aa5824de5..10cff348f 100644 --- a/react/features/filmstrip/subscriber.web.ts +++ b/react/features/filmstrip/subscriber.web.ts @@ -4,8 +4,6 @@ import { getParticipantCountWithFake } from '../base/participants/functions'; import StateListenerRegistry from '../base/redux/StateListenerRegistry'; import { clientResized } from '../base/responsive-ui/actions'; import { shouldHideSelfView } from '../base/settings/functions.web'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { selectParticipantInLargeVideo } from '../large-video/actions.any'; import { getParticipantsPaneOpen } from '../participants-pane/functions'; import { setOverflowDrawer } from '../toolbox/actions.web'; diff --git a/react/features/gifs/components/web/GifsMenu.tsx b/react/features/gifs/components/web/GifsMenu.tsx index 58b62078e..0a869f1dc 100644 --- a/react/features/gifs/components/web/GifsMenu.tsx +++ b/react/features/gifs/components/web/GifsMenu.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { GiphyFetch, TrendingOptions } from '@giphy/js-fetch-api'; import { Grid } from '@giphy/react-components'; import React, { useCallback, useEffect, useState } from 'react'; @@ -13,8 +12,8 @@ import Input from '../../../base/ui/components/web/Input'; import { sendMessage } from '../../../chat/actions.any'; import { SCROLL_SIZE } from '../../../filmstrip/constants'; import { toggleReactionsMenuVisibility } from '../../../reactions/actions.web'; -// @ts-ignore import { setOverflowMenuVisible } from '../../../toolbox/actions.web'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { Drawer, JitsiPortal } from '../../../toolbox/components/web'; import { showOverflowDrawer } from '../../../toolbox/functions.web'; diff --git a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.tsx b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.tsx index e3f5af7b6..35963c406 100644 --- a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.tsx +++ b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.tsx @@ -12,8 +12,7 @@ import { connect } from '../../../../base/redux/functions'; import Dialog from '../../../../base/ui/components/web/Dialog'; import { isDynamicBrandingDataLoaded } from '../../../../dynamic-branding/functions.any'; import { isVpaasMeeting } from '../../../../jaas/functions'; -// @ts-ignore -import { getActiveSession } from '../../../../recording'; +import { getActiveSession } from '../../../../recording/functions'; // @ts-ignore import { updateDialInNumbers } from '../../../actions'; import { diff --git a/react/features/large-video/components/ScreenSharePlaceholder.web.tsx b/react/features/large-video/components/ScreenSharePlaceholder.web.tsx index 5899694fc..cb32fad62 100644 --- a/react/features/large-video/components/ScreenSharePlaceholder.web.tsx +++ b/react/features/large-video/components/ScreenSharePlaceholder.web.tsx @@ -4,8 +4,6 @@ import { useStore } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; import { translate } from '../../base/i18n/functions'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { setSeeWhatIsBeingShared } from '../actions.web'; const useStyles = makeStyles()(theme => { diff --git a/react/features/lobby/components/web/LobbySection.tsx b/react/features/lobby/components/web/LobbySection.tsx index 88a014acd..82aff88fb 100644 --- a/react/features/lobby/components/web/LobbySection.tsx +++ b/react/features/lobby/components/web/LobbySection.tsx @@ -7,8 +7,6 @@ import { isLocalParticipantModerator } from '../../../base/participants/function import { connect } from '../../../base/redux/functions'; import Switch from '../../../base/ui/components/web/Switch'; import { isInBreakoutRoom } from '../../../breakout-rooms/functions'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { toggleLobbyMode } from '../../actions'; interface IProps extends WithTranslation { diff --git a/react/features/mobile/call-integration/reducer.ts b/react/features/mobile/call-integration/reducer.ts index b8c87a82e..37b982fd0 100644 --- a/react/features/mobile/call-integration/reducer.ts +++ b/react/features/mobile/call-integration/reducer.ts @@ -1,9 +1,9 @@ -/* eslint-disable lines-around-comment */ import ReducerRegistry from '../../base/redux/ReducerRegistry'; import { set } from '../../base/redux/functions'; // @ts-ignore import CallKit from './CallKit'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import ConnectionService from './ConnectionService'; import { _SET_CALL_INTEGRATION_SUBSCRIPTIONS } from './actionTypes'; diff --git a/react/features/noise-suppression/components/NoiseSuppressionButton.tsx b/react/features/noise-suppression/components/NoiseSuppressionButton.tsx index 8fb257273..cb3ee2285 100644 --- a/react/features/noise-suppression/components/NoiseSuppressionButton.tsx +++ b/react/features/noise-suppression/components/NoiseSuppressionButton.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { IReduxState } from '../../app/types'; import { translate } from '../../base/i18n/functions'; import { @@ -9,9 +8,9 @@ import { connect } from '../../base/redux/functions'; import { AbstractButton, type AbstractButtonProps + // @ts-ignore } from '../../base/toolbox/components'; -// @ts-ignore import { setOverflowMenuVisible } from '../../toolbox/actions'; import { toggleNoiseSuppression } from '../actions'; import { isNoiseSuppressionEnabled } from '../functions'; diff --git a/react/features/participants-pane/components/breakout-rooms/components/native/LeaveBreakoutRoomButton.tsx b/react/features/participants-pane/components/breakout-rooms/components/native/LeaveBreakoutRoomButton.tsx index 7df519336..613c8d00f 100644 --- a/react/features/participants-pane/components/breakout-rooms/components/native/LeaveBreakoutRoomButton.tsx +++ b/react/features/participants-pane/components/breakout-rooms/components/native/LeaveBreakoutRoomButton.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { useDispatch } from 'react-redux'; 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 ddd0db433..8affa5e4a 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 @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; @@ -11,6 +10,7 @@ import ContextMenu from '../../../../../base/ui/components/web/ContextMenu'; import ContextMenuItemGroup from '../../../../../base/ui/components/web/ContextMenuItemGroup'; import { getBreakoutRooms } from '../../../../../breakout-rooms/functions'; import { showOverflowDrawer } from '../../../../../toolbox/functions.web'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import SendToRoomButton from '../../../../../video-menu/components/web/SendToRoomButton'; import { AVATAR_SIZE } from '../../../../constants'; diff --git a/react/features/participants-pane/components/web/FooterContextMenu.tsx b/react/features/participants-pane/components/web/FooterContextMenu.tsx index 088103339..297e91603 100644 --- a/react/features/participants-pane/components/web/FooterContextMenu.tsx +++ b/react/features/participants-pane/components/web/FooterContextMenu.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; @@ -29,14 +28,10 @@ import { import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import { isInBreakoutRoom } from '../../../breakout-rooms/functions'; -import { - openSettingsDialog, - shouldShowModeratorSettings - // @ts-ignore -} from '../../../settings'; +import { openSettingsDialog } from '../../../settings/actions'; import { SETTINGS_TABS } from '../../../settings/constants'; -// @ts-ignore -import { MuteEveryonesVideoDialog } from '../../../video-menu/components'; +import { shouldShowModeratorSettings } from '../../../settings/functions.web'; +import MuteEveryonesVideoDialog from '../../../video-menu/components/web/MuteEveryonesVideoDialog'; const useStyles = makeStyles()(theme => { return { diff --git a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx b/react/features/participants-pane/components/web/LobbyParticipantItem.tsx index bd106764c..4d8c84853 100644 --- a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx +++ b/react/features/participants-pane/components/web/LobbyParticipantItem.tsx @@ -1,5 +1,3 @@ -// eslint-disable-next-line lines-around-comment - import React, { useCallback, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; @@ -12,8 +10,6 @@ import Button from '../../../base/ui/components/web/Button'; import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import { BUTTON_TYPES } from '../../../base/ui/constants.web'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { showLobbyChatButton } from '../../../lobby/functions'; import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants'; import { useLobbyActions } from '../../hooks'; diff --git a/react/features/participants-pane/components/web/LobbyParticipants.tsx b/react/features/participants-pane/components/web/LobbyParticipants.tsx index b1399a706..58adaea14 100644 --- a/react/features/participants-pane/components/web/LobbyParticipants.tsx +++ b/react/features/participants-pane/components/web/LobbyParticipants.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; @@ -11,6 +10,7 @@ import { IconCheck, IconCloseLarge } from '../../../base/icons/svg'; import { withPixelLineHeight } from '../../../base/styles/functions.web'; import { admitMultiple } from '../../../lobby/actions.web'; import { getKnockingParticipants, getLobbyEnabled } from '../../../lobby/functions'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { Drawer, JitsiPortal } from '../../../toolbox/components/web'; import { showOverflowDrawer } from '../../../toolbox/functions.web'; diff --git a/react/features/participants-pane/components/web/MeetingParticipants.tsx b/react/features/participants-pane/components/web/MeetingParticipants.tsx index 1bfe634dd..3934a4786 100644 --- a/react/features/participants-pane/components/web/MeetingParticipants.tsx +++ b/react/features/participants-pane/components/web/MeetingParticipants.tsx @@ -1,5 +1,4 @@ /* eslint-disable lines-around-comment */ - import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; @@ -18,8 +17,7 @@ import useContextMenu from '../../../base/ui/hooks/useContextMenu.web'; import { normalizeAccents } from '../../../base/util/strings.web'; import { getBreakoutRooms, getCurrentRoomId, isInBreakoutRoom } from '../../../breakout-rooms/functions'; import { showOverflowDrawer } from '../../../toolbox/functions.web'; -// @ts-ignore -import { muteRemote } from '../../../video-menu/actions.any'; +import { muteRemote } from '../../../video-menu/actions.web'; import { getSortedParticipantIds, shouldRenderInviteButton } from '../../functions'; import { useParticipantDrawer } from '../../hooks'; diff --git a/react/features/participants-pane/components/web/ParticipantsPane.tsx b/react/features/participants-pane/components/web/ParticipantsPane.tsx index 54f2dadf2..0a24223c5 100644 --- a/react/features/participants-pane/components/web/ParticipantsPane.tsx +++ b/react/features/participants-pane/components/web/ParticipantsPane.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; @@ -14,8 +13,7 @@ import ClickableIcon from '../../../base/ui/components/web/ClickableIcon'; import { BUTTON_TYPES } from '../../../base/ui/constants.web'; import { findAncestorByClass } from '../../../base/ui/functions.web'; import { isAddBreakoutRoomButtonVisible } from '../../../breakout-rooms/functions'; -// @ts-ignore -import { MuteEveryoneDialog } from '../../../video-menu/components/'; +import MuteEveryoneDialog from '../../../video-menu/components/web/MuteEveryoneDialog'; import { close } from '../../actions.web'; import { getParticipantsPaneOpen, @@ -23,6 +21,7 @@ import { isMuteAllVisible } from '../../functions'; import { AddBreakoutRoomButton } from '../breakout-rooms/components/web/AddBreakoutRoomButton'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { RoomList } from '../breakout-rooms/components/web/RoomList'; diff --git a/react/features/polls/components/native/PollAnswer.tsx b/react/features/polls/components/native/PollAnswer.tsx index 4eaa6cce4..63738751f 100644 --- a/react/features/polls/components/native/PollAnswer.tsx +++ b/react/features/polls/components/native/PollAnswer.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React from 'react'; import { Text, View } from 'react-native'; import { useSelector } from 'react-redux'; diff --git a/react/features/polls/components/web/PollsPane.tsx b/react/features/polls/components/web/PollsPane.tsx index 978a14181..cc9e60b9b 100644 --- a/react/features/polls/components/web/PollsPane.tsx +++ b/react/features/polls/components/web/PollsPane.tsx @@ -1,5 +1,4 @@ /* eslint-disable lines-around-comment */ -// @ts-ignore import React from 'react'; import Button from '../../../base/ui/components/web/Button'; diff --git a/react/features/prejoin/actions.web.ts b/react/features/prejoin/actions.web.ts index 98c20334f..c2faef3a8 100644 --- a/react/features/prejoin/actions.web.ts +++ b/react/features/prejoin/actions.web.ts @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { v4 as uuidv4 } from 'uuid'; import { IStore } from '../app/types'; @@ -17,6 +16,7 @@ import { getLocalVideoTrack } from '../base/tracks/functions'; import { openURLInBrowser } from '../base/util/openURLInBrowser'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { executeDialOutRequest, executeDialOutStatusRequest, getDialInfoPageURL } from '../invite/functions'; import { showErrorNotification } from '../notifications/actions'; diff --git a/react/features/prejoin/components/web/dialogs/CallingDialog.tsx b/react/features/prejoin/components/web/dialogs/CallingDialog.tsx index 526d7d919..ece85806c 100644 --- a/react/features/prejoin/components/web/dialogs/CallingDialog.tsx +++ b/react/features/prejoin/components/web/dialogs/CallingDialog.tsx @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import React from 'react'; import { WithTranslation } from 'react-i18next'; import { makeStyles } from 'tss-react/mui'; @@ -9,6 +7,7 @@ import { Avatar } from '../../../../base/avatar'; import { translate } from '../../../../base/i18n/functions'; import Icon from '../../../../base/icons/components/Icon'; import { IconCloseLarge } from '../../../../base/icons/svg'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import Label from '../Label'; diff --git a/react/features/reactions/components/web/ReactionsMenu.tsx b/react/features/reactions/components/web/ReactionsMenu.tsx index 6630ea78e..85cca476b 100644 --- a/react/features/reactions/components/web/ReactionsMenu.tsx +++ b/react/features/reactions/components/web/ReactionsMenu.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { Theme } from '@mui/material'; import { ClassNameMap, withStyles } from '@mui/styles'; import clsx from 'clsx'; @@ -14,10 +13,10 @@ import { translate } from '../../../base/i18n/functions'; import { raiseHand } from '../../../base/participants/actions'; import { getLocalParticipant, hasRaisedHand } from '../../../base/participants/functions'; import GifsMenu from '../../../gifs/components/web/GifsMenu'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import GifsMenuButton from '../../../gifs/components/web/GifsMenuButton'; import { isGifEnabled, isGifsMenuOpen } from '../../../gifs/functions'; -// @ts-ignore import { dockToolbox } from '../../../toolbox/actions.web'; import { addReactionToBuffer } from '../../actions.any'; import { toggleReactionsMenuVisibility } from '../../actions.web'; diff --git a/react/features/reactions/components/web/ReactionsMenuButton.tsx b/react/features/reactions/components/web/ReactionsMenuButton.tsx index 509f593fd..8732a5785 100644 --- a/react/features/reactions/components/web/ReactionsMenuButton.tsx +++ b/react/features/reactions/components/web/ReactionsMenuButton.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { WithTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; @@ -8,6 +7,7 @@ import { isMobileBrowser } from '../../../base/environment/utils'; import { translate } from '../../../base/i18n/functions'; import { IconArrowUp } from '../../../base/icons/svg'; import { connect } from '../../../base/redux/functions'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import ToolboxButtonWithIconPopup from '../../../base/toolbox/components/web/ToolboxButtonWithIconPopup'; import { toggleReactionsMenuVisibility } from '../../actions.web'; diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx b/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx index 307c0647a..23d89b995 100644 --- a/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx +++ b/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx @@ -14,11 +14,9 @@ import { } from '../../../base/dialog'; // @ts-ignore import { StyleType } from '../../../base/styles'; -// @ts-ignore -import { authorizeDropbox, updateDropboxToken } from '../../../dropbox'; +import { authorizeDropbox, updateDropboxToken } from '../../../dropbox/actions'; import { isVpaasMeeting } from '../../../jaas/functions'; import { RECORDING_TYPES } from '../../constants'; -// @ts-ignore import { supportsLocalRecording } from '../../functions'; /** diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts index fd96658e2..41a0df139 100644 --- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts +++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts @@ -7,8 +7,6 @@ import { getRoomName } from '../../../base/conference/functions'; import { MEDIA_TYPE } from '../../../base/media/constants'; import { getLocalTrack, getTrackState } from '../../../base/tracks/functions'; import { inIframe } from '../../../base/util/iframeUtils'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { stopLocalVideoRecording } from '../../actions.any'; interface ISelfRecording { diff --git a/react/features/recording/components/Recording/web/HighlightButton.tsx b/react/features/recording/components/Recording/web/HighlightButton.tsx index 913565740..6a0f534e5 100644 --- a/react/features/recording/components/Recording/web/HighlightButton.tsx +++ b/react/features/recording/components/Recording/web/HighlightButton.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { Theme } from '@mui/material'; import { withStyles } from '@mui/styles'; import React from 'react'; @@ -11,14 +10,15 @@ import { IconHighlight } from '../../../../base/icons/svg'; import { MEET_FEATURES } from '../../../../base/jwt/constants'; import Label from '../../../../base/label/components/web/Label'; import { connect } from '../../../../base/redux/functions'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { Tooltip } from '../../../../base/tooltip'; import BaseTheme from '../../../../base/ui/components/BaseTheme.web'; -// @ts-ignore import { maybeShowPremiumFeatureDialog } from '../../../../jaas/actions'; import AbstractHighlightButton, { type Props as AbstractProps, _abstractMapStateToProps + // @ts-ignore } from '../AbstractHighlightButton'; @@ -193,6 +193,7 @@ export class HighlightButton extends AbstractHighlightButton { _visible, classes, t + // @ts-ignore } = this.props; diff --git a/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx b/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx index 703e6bad6..995571768 100644 --- a/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx +++ b/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx @@ -14,7 +14,6 @@ import Button from '../../../../base/ui/components/web/Button'; import Switch from '../../../../base/ui/components/web/Switch'; import { BUTTON_TYPES } from '../../../../base/ui/constants.web'; import { RECORDING_TYPES } from '../../../constants'; -// @ts-ignore import { getRecordingDurationEstimation } from '../../../functions'; import AbstractStartRecordingDialogContent, { IProps, diff --git a/react/features/salesforce/components/web/SalesforceLinkDialog.tsx b/react/features/salesforce/components/web/SalesforceLinkDialog.tsx index 999802027..4c703f8d4 100644 --- a/react/features/salesforce/components/web/SalesforceLinkDialog.tsx +++ b/react/features/salesforce/components/web/SalesforceLinkDialog.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import Spinner from '@atlaskit/spinner'; import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; @@ -102,6 +101,7 @@ const useStyles = makeStyles()(theme => { border: '1px solid', borderColor: theme.palette.ui05, backgroundColor: theme.palette.field01, + // @ts-ignore color: theme.palette.field02, borderRadius: theme.shape.borderRadius, @@ -151,6 +151,7 @@ function SalesforceLinkDialog() { const renderSpinner = () => (
diff --git a/react/features/settings/components/web/ModeratorTab.tsx b/react/features/settings/components/web/ModeratorTab.tsx index 63e403781..e52136e56 100644 --- a/react/features/settings/components/web/ModeratorTab.tsx +++ b/react/features/settings/components/web/ModeratorTab.tsx @@ -1,9 +1,9 @@ -/* eslint-disable lines-around-comment */ import React from 'react'; import { WithTranslation } from 'react-i18next'; // @ts-ignore import { AbstractDialogTab } from '../../../base/dialog'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import type { Props as AbstractDialogTabProps } from '../../../base/dialog'; import { translate } from '../../../base/i18n/functions'; diff --git a/react/features/settings/components/web/ProfileTab.tsx b/react/features/settings/components/web/ProfileTab.tsx index 9a01c2493..30d737d3a 100644 --- a/react/features/settings/components/web/ProfileTab.tsx +++ b/react/features/settings/components/web/ProfileTab.tsx @@ -13,7 +13,6 @@ import type { Props as AbstractDialogTabProps } from '../../../base/dialog'; import { translate } from '../../../base/i18n/functions'; import Button from '../../../base/ui/components/web/Button'; import Input from '../../../base/ui/components/web/Input'; -// @ts-ignore import { openLogoutDialog } from '../../actions'; /** diff --git a/react/features/settings/components/web/SettingsDialog.tsx b/react/features/settings/components/web/SettingsDialog.tsx index c23e1052b..99e8e01f4 100644 --- a/react/features/settings/components/web/SettingsDialog.tsx +++ b/react/features/settings/components/web/SettingsDialog.tsx @@ -23,7 +23,6 @@ import { submitMoreTab, submitProfileTab, submitSoundsTab - // @ts-ignore } from '../../actions'; import { SETTINGS_TABS } from '../../constants'; import { @@ -31,7 +30,6 @@ import { getMoreTabProps, getProfileTabProps, getSoundsTabProps - // @ts-ignore } from '../../functions'; // @ts-ignore diff --git a/react/features/settings/components/web/SoundsTab.tsx b/react/features/settings/components/web/SoundsTab.tsx index edb160555..a868f1275 100644 --- a/react/features/settings/components/web/SoundsTab.tsx +++ b/react/features/settings/components/web/SoundsTab.tsx @@ -1,9 +1,9 @@ -/* eslint-disable lines-around-comment */ import React from 'react'; import { WithTranslation } from 'react-i18next'; // @ts-ignore import { AbstractDialogTab } from '../../../base/dialog'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import type { Props as AbstractDialogTabProps } from '../../../base/dialog'; import { translate } from '../../../base/i18n/functions'; diff --git a/react/features/settings/functions.any.ts b/react/features/settings/functions.any.ts index 01df467f9..678b5c6c8 100644 --- a/react/features/settings/functions.any.ts +++ b/react/features/settings/functions.any.ts @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { IReduxState } from '../app/types'; import { IStateful } from '../base/app/types'; import { isNameReadOnly } from '../base/config/functions'; @@ -12,10 +11,8 @@ import { import { toState } from '../base/redux/functions'; import { getHideSelfView } from '../base/settings/functions'; import { parseStandardURIString } from '../base/util/uri'; -// @ts-ignore import { isStageFilmstripEnabled } from '../filmstrip/functions'; -// @ts-ignore -import { isFollowMeActive } from '../follow-me'; +import { isFollowMeActive } from '../follow-me/functions'; import { getParticipantsPaneConfig } from '../participants-pane/functions'; import { isReactionsEnabled } from '../reactions/functions.any'; diff --git a/react/features/shared-video/components/AbstractSharedVideoDialog.tsx b/react/features/shared-video/components/AbstractSharedVideoDialog.tsx index 1c5802a26..ff78904a7 100644 --- a/react/features/shared-video/components/AbstractSharedVideoDialog.tsx +++ b/react/features/shared-video/components/AbstractSharedVideoDialog.tsx @@ -2,8 +2,6 @@ import { Component } from 'react'; import { WithTranslation } from 'react-i18next'; import { IStore } from '../../app/types'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { extractYoutubeIdOrURL } from '../functions'; /** diff --git a/react/features/speaker-stats/components/web/SpeakerStatsList.tsx b/react/features/speaker-stats/components/web/SpeakerStatsList.tsx index bd7d5b2db..107843bb5 100644 --- a/react/features/speaker-stats/components/web/SpeakerStatsList.tsx +++ b/react/features/speaker-stats/components/web/SpeakerStatsList.tsx @@ -1,9 +1,9 @@ -/* eslint-disable lines-around-comment */ import React from 'react'; import { makeStyles } from 'tss-react/mui'; import { withPixelLineHeight } from '../../../base/styles/functions.web'; import { MOBILE_BREAKPOINT } from '../../constants'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import abstractSpeakerStatsList from '../AbstractSpeakerStatsList'; diff --git a/react/features/subtitles/components/LanguageSelectorDialog.web.tsx b/react/features/subtitles/components/LanguageSelectorDialog.web.tsx index cb6999256..8ff5451b9 100644 --- a/react/features/subtitles/components/LanguageSelectorDialog.web.tsx +++ b/react/features/subtitles/components/LanguageSelectorDialog.web.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import i18next from 'i18next'; import React, { useCallback, useEffect, useState } from 'react'; import { WithTranslation } from 'react-i18next'; @@ -6,15 +5,14 @@ import { useDispatch } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; import { IReduxState } from '../../app/types'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { TRANSLATION_LANGUAGES, TRANSLATION_LANGUAGES_HEAD } from '../../base/i18n'; import { translate, translateToHTML } from '../../base/i18n/functions'; import { connect } from '../../base/redux/functions'; import Dialog from '../../base/ui/components/web/Dialog'; -// @ts-ignore import { openSettingsDialog } from '../../settings/actions'; import { SETTINGS_TABS } from '../../settings/constants'; -// @ts-ignore import { setRequestingSubtitles, toggleLanguageSelectorDialog, updateTranslationLanguage } from '../actions'; import LanguageList from './LanguageList.web'; @@ -62,6 +60,7 @@ const LanguageSelectorDialog = ({ const [ language, setLanguage ] = useState(off); const languagesHead = _translationLanguagesHead.map((lang: string) => `translation-languages:${lang}`); + // The off and the head languages are always on the top of the list. But once you are selecting // a language from the translationLanguages, that language is moved under the fixedItems list, // until a new languages is selected. FixedItems keep their positions. diff --git a/react/features/toolbox/components/web/HangupToggleButton.tsx b/react/features/toolbox/components/web/HangupToggleButton.tsx index 526ea028a..07384224b 100644 --- a/react/features/toolbox/components/web/HangupToggleButton.tsx +++ b/react/features/toolbox/components/web/HangupToggleButton.tsx @@ -1,7 +1,7 @@ -/* eslint-disable lines-around-comment */ // @ts-ignore import { translate } from '../../../base/i18n'; import { IconCloseLarge, IconHangup } from '../../../base/icons/svg'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components'; diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsx index e93410626..e1e6f479b 100644 --- a/react/features/toolbox/components/web/Toolbox.tsx +++ b/react/features/toolbox/components/web/Toolbox.tsx @@ -6,7 +6,6 @@ import { batch } from 'react-redux'; // @ts-expect-error import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut'; -// @ts-ignore import { isSpeakerStatsDisabled } from '../../../../features/speaker-stats/functions'; import { ACTION_SHORTCUT_TRIGGERED, createShortcutEvent, createToolbarEvent } from '../../../analytics/AnalyticsEvents'; import { sendAnalytics } from '../../../analytics/functions'; @@ -65,7 +64,6 @@ import { RecordButton // @ts-ignore } from '../../../recording'; -// @ts-ignore import { isSalesforceEnabled } from '../../../salesforce/functions'; import { startScreenShareFlow @@ -107,7 +105,6 @@ import { setOverflowMenuVisible, setToolbarHovered, showToolbox - // @ts-ignore } from '../../actions'; import { NOTIFY_CLICK_MODE, NOT_APPLICABLE, THRESHOLDS } from '../../constants'; import { isDesktopShareButtonDisabled, isToolboxVisible } from '../../functions'; diff --git a/react/features/video-layout/functions.any.ts b/react/features/video-layout/functions.any.ts index 14ece6141..90d926ea6 100644 --- a/react/features/video-layout/functions.any.ts +++ b/react/features/video-layout/functions.any.ts @@ -4,8 +4,6 @@ import { getFeatureFlag } from '../base/flags/functions'; import { pinParticipant } from '../base/participants/actions'; import { getParticipantCount, getPinnedParticipant } from '../base/participants/functions'; import { FakeParticipant } from '../base/participants/types'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { isStageFilmstripAvailable } from '../filmstrip/functions'; import { isVideoPlaying } from '../shared-video/functions'; import { VIDEO_QUALITY_LEVELS } from '../video-quality/constants'; diff --git a/react/features/video-layout/functions.web.ts b/react/features/video-layout/functions.web.ts index 1606ff2a0..ddbefe1f0 100644 --- a/react/features/video-layout/functions.web.ts +++ b/react/features/video-layout/functions.web.ts @@ -8,8 +8,6 @@ import { getNumberOfPartipantsForTileView, getThumbnailMinHeight, getTileDefaultAspectRatio - - // @ts-ignore } from '../filmstrip/functions.web'; export * from './functions.any'; diff --git a/react/features/video-layout/middleware.any.ts b/react/features/video-layout/middleware.any.ts index 288265a92..60fbb109b 100644 --- a/react/features/video-layout/middleware.any.ts +++ b/react/features/video-layout/middleware.any.ts @@ -8,8 +8,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry'; import StateListenerRegistry from '../base/redux/StateListenerRegistry'; import { TRACK_REMOVED } from '../base/tracks/actionTypes'; import { SET_DOCUMENT_EDITING_STATUS } from '../etherpad/actionTypes'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { isStageFilmstripEnabled } from '../filmstrip/functions'; import { isFollowMeActive } from '../follow-me/functions'; diff --git a/react/features/video-layout/middleware.native.ts b/react/features/video-layout/middleware.native.ts index 8329a8020..495d91006 100644 --- a/react/features/video-layout/middleware.native.ts +++ b/react/features/video-layout/middleware.native.ts @@ -2,8 +2,6 @@ import { setVideoMuted } from '../base/media/actions'; import { MEDIA_TYPE, VIDEO_MUTISM_AUTHORITY } from '../base/media/constants'; import MiddlewareRegistry from '../base/redux/MiddlewareRegistry'; import { CLIENT_RESIZED } from '../base/responsive-ui/actionTypes'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { setLargeVideoDimensions } from '../large-video/actions.any'; import { SET_CAR_MODE } from './actionTypes'; diff --git a/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts b/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts index 1753b0dc9..0a8b6bd5d 100644 --- a/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts +++ b/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts @@ -5,8 +5,6 @@ import { requestDisableAudioModeration, requestEnableAudioModeration } from '../ import { isEnabledFromState, isSupported } from '../../av-moderation/functions'; import { MEDIA_TYPE } from '../../base/media/constants'; import { getLocalParticipant, getParticipantDisplayName } from '../../base/participants/functions'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { muteAllParticipants } from '../actions'; import AbstractMuteRemoteParticipantDialog, { diff --git a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts index c8ebe74f8..4787ea4b1 100644 --- a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts +++ b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts @@ -5,8 +5,6 @@ import { requestDisableVideoModeration, requestEnableVideoModeration } from '../ import { isEnabledFromState, isSupported } from '../../av-moderation/functions'; import { MEDIA_TYPE } from '../../base/media/constants'; import { getLocalParticipant, getParticipantDisplayName } from '../../base/participants/functions'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { muteAllParticipants } from '../actions'; import AbstractMuteRemoteParticipantsVideoDialog, { diff --git a/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.ts b/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.ts index 4698547b7..8fa4da917 100644 --- a/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.ts +++ b/react/features/video-menu/components/AbstractMuteRemoteParticipantDialog.ts @@ -1,8 +1,6 @@ import { Component } from 'react'; import { MEDIA_TYPE } from '../../base/media/constants'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { muteRemote } from '../actions'; /** diff --git a/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.ts b/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.ts index c46a25238..87fea6a67 100644 --- a/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.ts +++ b/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.ts @@ -4,8 +4,6 @@ import { IReduxState } from '../../app/types'; import { rejectParticipantVideo } from '../../av-moderation/actions'; import { isEnabledFromState } from '../../av-moderation/functions'; import { MEDIA_TYPE } from '../../base/media/constants'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { muteRemote } from '../actions'; /** diff --git a/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx b/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx index df6cf2769..c839c8595 100644 --- a/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx +++ b/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx @@ -1,11 +1,10 @@ -/* eslint-disable lines-around-comment */ - import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; // @ts-ignore import TogglePinToStageButton from '../../../../features/video-menu/components/web/TogglePinToStageButton'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { Avatar } from '../../../base/avatar'; import { IconPlay } from '../../../base/icons/svg'; @@ -13,7 +12,6 @@ import { isWhiteboardParticipant } from '../../../base/participants/functions'; import { IParticipant } from '../../../base/participants/types'; import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; -// @ts-ignore import { stopSharedVideo } from '../../../shared-video/actions.any'; import { showOverflowDrawer } from '../../../toolbox/functions.web'; import { setWhiteboardOpen } from '../../../whiteboard/actions'; diff --git a/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx b/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx index dd461dbf2..1ccf58bc9 100644 --- a/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx +++ b/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx @@ -19,9 +19,7 @@ import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuIte // @ts-ignore import ConnectionIndicatorContent from '../../../connection-indicator/components/web/ConnectionIndicatorContent'; import { THUMBNAIL_TYPE } from '../../../filmstrip/constants'; -// @ts-ignore import { isStageFilmstripAvailable } from '../../../filmstrip/functions.web'; -// @ts-ignore import { renderConnectionStatus } from '../../actions.web'; // @ts-ignore diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.tsx b/react/features/video-menu/components/web/ParticipantContextMenu.tsx index e28cb4c5f..1fab81580 100644 --- a/react/features/video-menu/components/web/ParticipantContextMenu.tsx +++ b/react/features/video-menu/components/web/ParticipantContextMenu.tsx @@ -18,9 +18,7 @@ import { isParticipantAudioMuted } from '../../../base/tracks/functions'; import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import { getBreakoutRooms, getCurrentRoomId, isInBreakoutRoom } from '../../../breakout-rooms/functions'; -// @ts-ignore import { setVolume } from '../../../filmstrip/actions.web'; -// @ts-ignore import { isStageFilmstripAvailable } from '../../../filmstrip/functions.web'; import { isForceMuted } from '../../../participants-pane/functions'; // @ts-ignore diff --git a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx index 6303e15d0..e28a4f7e5 100644 --- a/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx +++ b/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx @@ -17,7 +17,6 @@ import ConnectionIndicatorContent from // @ts-ignore '../../../connection-indicator/components/web/ConnectionIndicatorContent'; import { THUMBNAIL_TYPE } from '../../../filmstrip/constants'; -// @ts-ignore import { renderConnectionStatus } from '../../actions.web'; import FakeParticipantContextMenu from './FakeParticipantContextMenu'; diff --git a/react/features/video-quality/components/VideoQualitySlider.web.tsx b/react/features/video-quality/components/VideoQualitySlider.web.tsx index 70297a760..9f8446034 100644 --- a/react/features/video-quality/components/VideoQualitySlider.web.tsx +++ b/react/features/video-quality/components/VideoQualitySlider.web.tsx @@ -13,8 +13,6 @@ import { setLastN } from '../../base/lastn/actions'; import { getLastNForQualityLevel } from '../../base/lastn/functions'; import { connect } from '../../base/redux/functions'; import { withPixelLineHeight } from '../../base/styles/functions.web'; -// eslint-disable-next-line lines-around-comment -// @ts-ignore import { setPreferredVideoQuality } from '../actions'; import { DEFAULT_LAST_N, VIDEO_QUALITY_LEVELS } from '../constants'; import logger from '../logger'; diff --git a/react/features/video-quality/reducer.ts b/react/features/video-quality/reducer.ts index 8d32b53b2..4c46dfb0e 100644 --- a/react/features/video-quality/reducer.ts +++ b/react/features/video-quality/reducer.ts @@ -13,8 +13,6 @@ import { SET_PREFERRED_VIDEO_QUALITY } from './actionTypes'; import { VIDEO_QUALITY_LEVELS } from './constants'; -/* eslint-disable-next-line lines-around-comment */ -// @ts-ignore import { validateMinHeightForQualityLvl } from './functions'; import logger from './logger'; diff --git a/react/features/video-quality/subscriber.ts b/react/features/video-quality/subscriber.ts index 46d3a8d90..11a74da87 100644 --- a/react/features/video-quality/subscriber.ts +++ b/react/features/video-quality/subscriber.ts @@ -11,8 +11,6 @@ import { getActiveParticipantsIds, getScreenshareFilmstripParticipantId, isTopPanelEnabled - - // @ts-ignore } from '../filmstrip/functions'; import { LAYOUTS } from '../video-layout/constants'; import { diff --git a/react/features/welcome/constants.tsx b/react/features/welcome/constants.tsx index 083e251d2..84613dfe8 100644 --- a/react/features/welcome/constants.tsx +++ b/react/features/welcome/constants.tsx @@ -1,5 +1,3 @@ -/* eslint-disable lines-around-comment */ - import React from 'react'; import { IconCalendar, IconGear, IconRestore } from '../base/icons/svg'; diff --git a/react/features/whiteboard/components/web/Whiteboard.tsx b/react/features/whiteboard/components/web/Whiteboard.tsx index 433eba6af..d42b1f2dc 100644 --- a/react/features/whiteboard/components/web/Whiteboard.tsx +++ b/react/features/whiteboard/components/web/Whiteboard.tsx @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { ExcalidrawApp } from '@jitsi/excalidraw'; import clsx from 'clsx'; import React, { useCallback, useEffect, useRef } from 'react'; @@ -8,10 +7,8 @@ import { useSelector } from 'react-redux'; import Filmstrip from '../../../../../modules/UI/videolayout/Filmstrip'; import { IReduxState } from '../../../app/types'; import { getLocalParticipant } from '../../../base/participants/functions'; -// @ts-ignore import { getVerticalViewMaxWidth } from '../../../filmstrip/functions.web'; import { getToolboxHeight } from '../../../toolbox/functions.web'; -// @ts-ignore import { shouldDisplayTileView } from '../../../video-layout/functions.any'; import { WHITEBOARD_UI_OPTIONS } from '../../constants'; import { @@ -121,6 +118,7 @@ const Whiteboard: () => JSX.Element = () => { collabServerUrl = { collabServerUrl } excalidraw = {{ isCollaborating: true, + // @ts-ignore ref: excalidrawRef, theme: 'light', diff --git a/react/features/whiteboard/components/web/WhiteboardButton.tsx b/react/features/whiteboard/components/web/WhiteboardButton.tsx index 272a11264..97a1738dd 100644 --- a/react/features/whiteboard/components/web/WhiteboardButton.tsx +++ b/react/features/whiteboard/components/web/WhiteboardButton.tsx @@ -1,11 +1,10 @@ -/* eslint-disable lines-around-comment */ import { IReduxState, IStore } from '../../../app/types'; import { translate } from '../../../base/i18n/functions'; import { IconWhiteboard, IconWhiteboardHide } from '../../../base/icons/svg'; import { connect } from '../../../base/redux/functions'; +// eslint-disable-next-line lines-around-comment // @ts-ignore import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components'; -// @ts-ignore import { setOverflowMenuVisible } from '../../../toolbox/actions.web'; import { setWhiteboardOpen } from '../../actions'; import { isWhiteboardVisible } from '../../functions'; diff --git a/react/features/whiteboard/middleware.ts b/react/features/whiteboard/middleware.ts index 96a13d3fa..9d3ad28ce 100644 --- a/react/features/whiteboard/middleware.ts +++ b/react/features/whiteboard/middleware.ts @@ -1,4 +1,3 @@ -/* eslint-disable lines-around-comment */ import { generateCollaborationLinkData } from '@jitsi/excalidraw'; import { IStore } from '../app/types'; @@ -10,7 +9,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry'; import StateListenerRegistry from '../base/redux/StateListenerRegistry'; import { getCurrentRoomId } from '../breakout-rooms/functions'; import { addStageParticipant } from '../filmstrip/actions.web'; -// @ts-ignore import { isStageFilmstripAvailable } from '../filmstrip/functions'; import { RESET_WHITEBOARD, SET_WHITEBOARD_OPEN } from './actionTypes';