ref(TS) Improve TS (#12612)

Remove unnecessary @ts-ignores
Remove unnecessary eslint-disable
This commit is contained in:
Robert Pintilii 2022-11-28 12:52:45 +02:00 committed by GitHub
parent cb3fb3ada9
commit 0ba033e07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
80 changed files with 62 additions and 160 deletions

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import logger from '../logger'; import logger from '../logger';
import AbstractHandler, { IEvent } from './AbstractHandler'; import AbstractHandler, { IEvent } from './AbstractHandler';
@ -103,8 +101,10 @@ export default class AmplitudeHandler extends AbstractHandler {
return { return {
sessionId: amplitude.getInstance().getSessionId(), sessionId: amplitude.getInstance().getSessionId(),
// @ts-ignore // @ts-ignore
deviceId: amplitude.getInstance().options.deviceId, deviceId: amplitude.getInstance().options.deviceId,
// @ts-ignore // @ts-ignore
userId: amplitude.getInstance().options.userId userId: amplitude.getInstance().options.userId
}; };

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { createStartMutedConfigurationEvent } from '../../analytics/AnalyticsEvents'; import { createStartMutedConfigurationEvent } from '../../analytics/AnalyticsEvents';
import { sendAnalytics } from '../../analytics/functions'; import { sendAnalytics } from '../../analytics/functions';
import { appNavigate } from '../../app/actions'; import { appNavigate } from '../../app/actions';
@ -111,6 +110,7 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[
JitsiConferenceEvents.CONFERENCE_LEFT, JitsiConferenceEvents.CONFERENCE_LEFT,
(...args: any[]) => { (...args: any[]) => {
dispatch(conferenceTimestampChanged(0)); dispatch(conferenceTimestampChanged(0));
// @ts-ignore // @ts-ignore
dispatch(conferenceLeft(conference, ...args)); dispatch(conferenceLeft(conference, ...args));
}); });

View File

@ -1,6 +1,6 @@
/* eslint-disable lines-around-comment */
// @ts-ignore // @ts-ignore
import Bourne from '@hapi/bourne'; import Bourne from '@hapi/bourne';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { jitsiLocalStorage } from '@jitsi/js-utils'; import { jitsiLocalStorage } from '@jitsi/js-utils';
import _ from 'lodash'; import _ from 'lodash';

View File

@ -1,8 +1,8 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
// @ts-ignore // @ts-ignore
import { Container } from '../../react/base'; import { Container } from '../../react/base';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { styleTypeToObject } from '../../styles'; import { styleTypeToObject } from '../../styles';

View File

@ -1,9 +1,7 @@
/* eslint-disable lines-around-comment */
// @ts-ignore // @ts-ignore
import { getGravatarURL } from '@jitsi/js-utils/avatar'; import { getGravatarURL } from '@jitsi/js-utils/avatar';
import { IReduxState, IStore } from '../../app/types'; import { IReduxState, IStore } from '../../app/types';
// @ts-ignore
import { isStageFilmstripAvailable } from '../../filmstrip/functions'; import { isStageFilmstripAvailable } from '../../filmstrip/functions';
import { IStateful } from '../app/types'; import { IStateful } from '../app/types';
import { GRAVATAR_BASE_URL } from '../avatar/constants'; import { GRAVATAR_BASE_URL } from '../avatar/constants';
@ -20,6 +18,7 @@ import {
PARTICIPANT_ROLE, PARTICIPANT_ROLE,
WHITEBOARD_PARTICIPANT_ICON WHITEBOARD_PARTICIPANT_ICON
} from './constants'; } from './constants';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { preloadImage } from './preloadImage'; import { preloadImage } from './preloadImage';
import { FakeParticipant, IParticipant } from './types'; import { FakeParticipant, IParticipant } from './types';

View File

@ -10,8 +10,8 @@ import { navigate }
from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef'; from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
// @ts-ignore // @ts-ignore
import { screen } from '../../../../mobile/navigation/routes'; import { screen } from '../../../../mobile/navigation/routes';
// @ts-ignore import { SETTINGS_ENABLED } from '../../../flags/constants';
import { SETTINGS_ENABLED, getFeatureFlag } from '../../../flags'; import { getFeatureFlag } from '../../../flags/functions';
import { connect } from '../../../redux/functions'; import { connect } from '../../../redux/functions';
/** /**

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import _ from 'lodash'; import _ from 'lodash';
import { AnyAction } from 'redux'; import { AnyAction } from 'redux';

View File

@ -1,6 +1,5 @@
/* eslint-disable lines-around-comment */
import { IReduxState, IStore } from '../../app/types'; import { IReduxState, IStore } from '../../app/types';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { setPictureInPictureEnabled } from '../../mobile/picture-in-picture/functions'; import { setPictureInPictureEnabled } from '../../mobile/picture-in-picture/functions';
import { setAudioOnly } from '../audio-only/actions'; import { setAudioOnly } from '../audio-only/actions';
@ -8,7 +7,6 @@ import JitsiMeetJS from '../lib-jitsi-meet';
import { destroyLocalDesktopTrackIfExists, replaceLocalTrack } from './actions.any'; import { destroyLocalDesktopTrackIfExists, replaceLocalTrack } from './actions.any';
import { getLocalVideoTrack, isLocalVideoTrackDesktop } from './functions'; import { getLocalVideoTrack, isLocalVideoTrackDesktop } from './functions';
/* eslint-enable lines-around-comment */
export * from './actions.any'; export * from './actions.any';

View File

@ -8,7 +8,6 @@ import { showNotification } from '../../notifications/actions';
import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants'; import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
// @ts-ignore // @ts-ignore
import { stopReceiver } from '../../remote-control/actions'; import { stopReceiver } from '../../remote-control/actions';
// @ts-ignore
import { setScreenAudioShareState, setScreenshareAudioTrack } from '../../screen-share/actions'; import { setScreenAudioShareState, setScreenshareAudioTrack } from '../../screen-share/actions';
import { isAudioOnlySharing, isScreenVideoShared } from '../../screen-share/functions'; import { isAudioOnlySharing, isScreenVideoShared } from '../../screen-share/functions';
// @ts-ignore // @ts-ignore

View File

@ -1,4 +1,3 @@
// @ts-ignore
import React from 'react'; import React from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { import {

View File

@ -1,8 +1,8 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { TouchableRipple } from 'react-native-paper'; import { TouchableRipple } from 'react-native-paper';
import Icon from '../../../icons/components/Icon'; import Icon from '../../../icons/components/Icon';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import styles from '../../../react/components/native/styles'; import styles from '../../../react/components/native/styles';
import { IIconButtonProps } from '../../../react/types'; import { IIconButtonProps } from '../../../react/types';

View File

@ -47,6 +47,7 @@ import {
} from './constants'; } from './constants';
import { getUnreadCount } from './functions'; import { getUnreadCount } from './functions';
import { INCOMING_MSG_SOUND_FILE } from './sounds'; 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. * Timeout for when to show the privacy notice after a private message was received.

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useDispatch } from 'react-redux'; 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 { BUTTON_TYPES } from '../../../../base/ui/constants.native';
import EndMeetingIcon from './EndMeetingIcon'; import EndMeetingIcon from './EndMeetingIcon';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import styles from './styles'; import styles from './styles';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback, useState } from 'react'; import React, { useCallback, useState } from 'react';
import { TouchableOpacity, View } from 'react-native'; import { TouchableOpacity, View } from 'react-native';
import { useDispatch, useSelector } from 'react-redux'; 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 { MEDIA_TYPE } from '../../../../base/media/constants';
import { isLocalTrackMuted } from '../../../../base/tracks/functions'; import { isLocalTrackMuted } from '../../../../base/tracks/functions';
import { isAudioMuteButtonDisabled } from '../../../../toolbox/functions.any'; import { isAudioMuteButtonDisabled } from '../../../../toolbox/functions.any';
// @ts-ignore
import { muteLocal } from '../../../../video-menu/actions'; import { muteLocal } from '../../../../video-menu/actions';
// @ts-ignore // @ts-ignore

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
@ -6,9 +5,9 @@ import { useDispatch, useSelector } from 'react-redux';
import { IReduxState } from '../../../app/types'; import { IReduxState } from '../../../app/types';
import { IconArrowDown } from '../../../base/icons/svg/index'; import { IconArrowDown } from '../../../base/icons/svg/index';
import Label from '../../../base/label/components/web/Label'; import Label from '../../../base/label/components/web/Label';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { Tooltip } from '../../../base/tooltip'; import { Tooltip } from '../../../base/tooltip';
// @ts-ignore
import { setTopPanelVisible } from '../../../filmstrip/actions.web'; import { setTopPanelVisible } from '../../../filmstrip/actions.web';
const ToggleTopPanelLabel = () => { const ToggleTopPanelLabel = () => {

View File

@ -1,6 +1,5 @@
/* eslint-disable lines-around-comment */
import BaseTheme from '../../../base/ui/components/BaseTheme.native'; import BaseTheme from '../../../base/ui/components/BaseTheme.native';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { INDICATOR_DISPLAY_THRESHOLD } from '../AbstractConnectionIndicator'; import { INDICATOR_DISPLAY_THRESHOLD } from '../AbstractConnectionIndicator';

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import { Theme } from '@mui/material'; import { Theme } from '@mui/material';
import { withStyles } from '@mui/styles'; import { withStyles } from '@mui/styles';
import clsx from 'clsx'; import clsx from 'clsx';
@ -29,11 +27,13 @@ import AbstractConnectionIndicator, {
type State as AbstractState, type State as AbstractState,
INDICATOR_DISPLAY_THRESHOLD, INDICATOR_DISPLAY_THRESHOLD,
mapStateToProps as _abstractMapStateToProps mapStateToProps as _abstractMapStateToProps
// @ts-ignore // @ts-ignore
} from '../AbstractConnectionIndicator'; } from '../AbstractConnectionIndicator';
// @ts-ignore // @ts-ignore
import ConnectionIndicatorContent from './ConnectionIndicatorContent'; import ConnectionIndicatorContent from './ConnectionIndicatorContent';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { ConnectionIndicatorIcon } from './ConnectionIndicatorIcon'; import { ConnectionIndicatorIcon } from './ConnectionIndicatorIcon';
@ -228,6 +228,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, IState> {
<Popover <Popover
className = { clsx(classes.container, visibilityClass) } className = { clsx(classes.container, visibilityClass) }
content = { <ConnectionIndicatorContent content = { <ConnectionIndicatorContent
// @ts-ignore // @ts-ignore
inheritedStats = { this.state.stats } inheritedStats = { this.state.stats }
participantId = { participantId } /> } participantId = { participantId } /> }
@ -236,6 +237,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, IState> {
onPopoverClose = { this._onHidePopover } onPopoverClose = { this._onHidePopover }
onPopoverOpen = { this._onShowPopover } onPopoverOpen = { this._onShowPopover }
position = { statsPopoverPosition } position = { statsPopoverPosition }
// @ts-ignore // @ts-ignore
visible = { this.state.popoverVisible }> visible = { this.state.popoverVisible }>
{ this._renderIndicator() } { this._renderIndicator() }
@ -259,6 +261,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, IState> {
_isConnectionStatusInactive, _isConnectionStatusInactive,
_isConnectionStatusInterrupted, _isConnectionStatusInterrupted,
_connectionIndicatorInactiveDisabled _connectionIndicatorInactiveDisabled
// @ts-ignore // @ts-ignore
} = this.props; } = this.props;
@ -305,6 +308,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, IState> {
// @ts-ignore // @ts-ignore
return this.state.showIndicator return this.state.showIndicator
// @ts-ignore // @ts-ignore
|| this.props.alwaysVisible || this.props.alwaysVisible
|| _isConnectionStatusInterrupted || _isConnectionStatusInterrupted
@ -348,6 +352,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, IState> {
_videoTrack, _videoTrack,
classes, classes,
iconSize iconSize
// @ts-ignore // @ts-ignore
} = this.props; } = this.props;
@ -399,5 +404,6 @@ export function _mapStateToProps(state: IReduxState, ownProps: Props) {
} }
export default translate(connect(_mapStateToProps)( export default translate(connect(_mapStateToProps)(
// @ts-ignore // @ts-ignore
withStyles(styles)(ConnectionIndicator))); withStyles(styles)(ConnectionIndicator)));

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import Tabs from '@atlaskit/tabs'; import Tabs from '@atlaskit/tabs';
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
@ -8,6 +7,7 @@ import { hideDialog } from '../../base/dialog/actions';
import { translate } from '../../base/i18n/functions'; import { translate } from '../../base/i18n/functions';
import { connect } from '../../base/redux/functions'; import { connect } from '../../base/redux/functions';
import Dialog from '../../base/ui/components/web/Dialog'; import Dialog from '../../base/ui/components/web/Dialog';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { obtainDesktopSources } from '../functions'; import { obtainDesktopSources } from '../functions';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback, useEffect, useRef, useState } from 'react'; import React, { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
@ -11,9 +10,9 @@ import {
} from '../../../base/participants/functions'; } from '../../../base/participants/functions';
import { updateSettings } from '../../../base/settings/actions'; import { updateSettings } from '../../../base/settings/actions';
import { withPixelLineHeight } from '../../../base/styles/functions.web'; import { withPixelLineHeight } from '../../../base/styles/functions.web';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { Tooltip } from '../../../base/tooltip'; import { Tooltip } from '../../../base/tooltip';
// @ts-ignore
import { getIndicatorsTooltipPosition } from '../../../filmstrip/functions.web'; import { getIndicatorsTooltipPosition } from '../../../filmstrip/functions.web';
import { appendSuffix } from '../../functions'; import { appendSuffix } from '../../functions';

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';
@ -12,11 +10,9 @@ import {
isWhiteboardParticipant isWhiteboardParticipant
} from '../../../base/participants/functions'; } from '../../../base/participants/functions';
import { withPixelLineHeight } from '../../../base/styles/functions.web'; import { withPixelLineHeight } from '../../../base/styles/functions.web';
// @ts-ignore
import { getLargeVideoParticipant } from '../../../large-video/functions'; import { getLargeVideoParticipant } from '../../../large-video/functions';
import { isToolboxVisible } from '../../../toolbox/functions.web'; import { isToolboxVisible } from '../../../toolbox/functions.web';
// @ts-ignore import { isLayoutTileView } from '../../../video-layout/functions.web';
import { isLayoutTileView } from '../../../video-layout';
import DisplayNameBadge from './DisplayNameBadge'; import DisplayNameBadge from './DisplayNameBadge';

View File

@ -43,7 +43,7 @@ export function authorizeDropbox() {
* expireDate: number * expireDate: number
* }} * }}
*/ */
export function updateDropboxToken(token: string, rToken: string, expireDate: number) { export function updateDropboxToken(token?: string, rToken?: string, expireDate?: number) {
return { return {
type: UPDATE_DROPBOX_TOKEN, type: UPDATE_DROPBOX_TOKEN,
token, token,

View File

@ -17,12 +17,10 @@ import { IconArrowDown, IconArrowUp } from '../../../base/icons/svg';
import { IParticipant } from '../../../base/participants/types'; import { IParticipant } from '../../../base/participants/types';
import { connect } from '../../../base/redux/functions'; import { connect } from '../../../base/redux/functions';
import { shouldHideSelfView } from '../../../base/settings/functions.web'; import { shouldHideSelfView } from '../../../base/settings/functions.web';
// @ts-ignore
import { showToolbox } from '../../../toolbox/actions.web'; import { showToolbox } from '../../../toolbox/actions.web';
import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web'; import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web';
// @ts-ignore
import { getCurrentLayout } from '../../../video-layout';
import { LAYOUTS } from '../../../video-layout/constants'; import { LAYOUTS } from '../../../video-layout/constants';
import { getCurrentLayout } from '../../../video-layout/functions.web';
import { import {
setFilmstripVisible, setFilmstripVisible,
setTopPanelVisible, setTopPanelVisible,
@ -30,7 +28,6 @@ import {
setUserFilmstripWidth, setUserFilmstripWidth,
setUserIsResizing, setUserIsResizing,
setVisibleRemoteParticipants setVisibleRemoteParticipants
// @ts-ignore
} from '../../actions'; } from '../../actions';
import { import {
ASPECT_RATIO_BREAKPOINT, ASPECT_RATIO_BREAKPOINT,
@ -46,7 +43,6 @@ import {
getVerticalViewMaxWidth, getVerticalViewMaxWidth,
isStageFilmstripTopPanel, isStageFilmstripTopPanel,
shouldRemoteVideosBeVisible shouldRemoteVideosBeVisible
// @ts-ignore
} from '../../functions'; } from '../../functions';
// @ts-ignore // @ts-ignore

View File

@ -6,8 +6,6 @@ import { IReduxState } from '../../../app/types';
import { IconPin } from '../../../base/icons/svg'; import { IconPin } from '../../../base/icons/svg';
import { getParticipantById } from '../../../base/participants/functions'; import { getParticipantById } from '../../../base/participants/functions';
import BaseIndicator from '../../../base/react/components/web/BaseIndicator'; import BaseIndicator from '../../../base/react/components/web/BaseIndicator';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { getPinnedActiveParticipants, isStageFilmstripAvailable } from '../../functions.web'; import { getPinnedActiveParticipants, isStageFilmstripAvailable } from '../../functions.web';
/** /**

View File

@ -39,10 +39,8 @@ import { hideGif, showGif } from '../../../gifs/actions';
import { getGifDisplayMode, getGifForParticipant } from '../../../gifs/functions'; import { getGifDisplayMode, getGifForParticipant } from '../../../gifs/functions';
// @ts-ignore // @ts-ignore
import { PresenceLabel } from '../../../presence-status'; import { PresenceLabel } from '../../../presence-status';
// @ts-ignore
import { getCurrentLayout } from '../../../video-layout';
import { LAYOUTS } from '../../../video-layout/constants'; import { LAYOUTS } from '../../../video-layout/constants';
// @ts-ignore import { getCurrentLayout } from '../../../video-layout/functions.web';
import { togglePinStageParticipant } from '../../actions'; import { togglePinStageParticipant } from '../../actions';
import { import {
DISPLAY_MODE_TO_CLASS_NAME, DISPLAY_MODE_TO_CLASS_NAME,
@ -60,7 +58,6 @@ import {
isStageFilmstripAvailable, isStageFilmstripAvailable,
isVideoPlayable, isVideoPlayable,
showGridInVerticalView showGridInVerticalView
// @ts-ignore
} from '../../functions'; } from '../../functions';
// @ts-ignore // @ts-ignore
@ -1188,7 +1185,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {
const _audioTrack = isLocal const _audioTrack = isLocal
? getLocalAudioTrack(tracks) ? getLocalAudioTrack(tracks)
: getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.AUDIO, id); : getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.AUDIO, id);
const _currentLayout = getCurrentLayout(state); const _currentLayout = getCurrentLayout(state) ?? '';
let size: any = {}; let size: any = {};
let _isMobilePortrait = false; let _isMobilePortrait = false;
const { const {

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';
@ -9,11 +7,11 @@ import { isMobileBrowser } from '../../../base/environment/utils';
import { isScreenShareParticipantById } from '../../../base/participants/functions'; import { isScreenShareParticipantById } from '../../../base/participants/functions';
import ConnectionIndicator from '../../../connection-indicator/components/web/ConnectionIndicator'; import ConnectionIndicator from '../../../connection-indicator/components/web/ConnectionIndicator';
import { STATS_POPOVER_POSITION, THUMBNAIL_TYPE } from '../../constants'; import { STATS_POPOVER_POSITION, THUMBNAIL_TYPE } from '../../constants';
// @ts-ignore
import { getIndicatorsTooltipPosition } from '../../functions.web'; import { getIndicatorsTooltipPosition } from '../../functions.web';
import PinnedIndicator from './PinnedIndicator'; import PinnedIndicator from './PinnedIndicator';
import RaisedHandIndicator from './RaisedHandIndicator'; import RaisedHandIndicator from './RaisedHandIndicator';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import StatusIndicators from './StatusIndicators'; import StatusIndicators from './StatusIndicators';
import VideoMenuTriggerButton from './VideoMenuTriggerButton'; import VideoMenuTriggerButton from './VideoMenuTriggerButton';

View File

@ -4,8 +4,6 @@ import { getParticipantCountWithFake } from '../base/participants/functions';
import StateListenerRegistry from '../base/redux/StateListenerRegistry'; import StateListenerRegistry from '../base/redux/StateListenerRegistry';
import { clientResized } from '../base/responsive-ui/actions'; import { clientResized } from '../base/responsive-ui/actions';
import { shouldHideSelfView } from '../base/settings/functions.web'; import { shouldHideSelfView } from '../base/settings/functions.web';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { selectParticipantInLargeVideo } from '../large-video/actions.any'; import { selectParticipantInLargeVideo } from '../large-video/actions.any';
import { getParticipantsPaneOpen } from '../participants-pane/functions'; import { getParticipantsPaneOpen } from '../participants-pane/functions';
import { setOverflowDrawer } from '../toolbox/actions.web'; import { setOverflowDrawer } from '../toolbox/actions.web';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { GiphyFetch, TrendingOptions } from '@giphy/js-fetch-api'; import { GiphyFetch, TrendingOptions } from '@giphy/js-fetch-api';
import { Grid } from '@giphy/react-components'; import { Grid } from '@giphy/react-components';
import React, { useCallback, useEffect, useState } from 'react'; 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 { sendMessage } from '../../../chat/actions.any';
import { SCROLL_SIZE } from '../../../filmstrip/constants'; import { SCROLL_SIZE } from '../../../filmstrip/constants';
import { toggleReactionsMenuVisibility } from '../../../reactions/actions.web'; import { toggleReactionsMenuVisibility } from '../../../reactions/actions.web';
// @ts-ignore
import { setOverflowMenuVisible } from '../../../toolbox/actions.web'; import { setOverflowMenuVisible } from '../../../toolbox/actions.web';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { Drawer, JitsiPortal } from '../../../toolbox/components/web'; import { Drawer, JitsiPortal } from '../../../toolbox/components/web';
import { showOverflowDrawer } from '../../../toolbox/functions.web'; import { showOverflowDrawer } from '../../../toolbox/functions.web';

View File

@ -12,8 +12,7 @@ import { connect } from '../../../../base/redux/functions';
import Dialog from '../../../../base/ui/components/web/Dialog'; import Dialog from '../../../../base/ui/components/web/Dialog';
import { isDynamicBrandingDataLoaded } from '../../../../dynamic-branding/functions.any'; import { isDynamicBrandingDataLoaded } from '../../../../dynamic-branding/functions.any';
import { isVpaasMeeting } from '../../../../jaas/functions'; import { isVpaasMeeting } from '../../../../jaas/functions';
// @ts-ignore import { getActiveSession } from '../../../../recording/functions';
import { getActiveSession } from '../../../../recording';
// @ts-ignore // @ts-ignore
import { updateDialInNumbers } from '../../../actions'; import { updateDialInNumbers } from '../../../actions';
import { import {

View File

@ -4,8 +4,6 @@ import { useStore } from 'react-redux';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';
import { translate } from '../../base/i18n/functions'; import { translate } from '../../base/i18n/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { setSeeWhatIsBeingShared } from '../actions.web'; import { setSeeWhatIsBeingShared } from '../actions.web';
const useStyles = makeStyles()(theme => { const useStyles = makeStyles()(theme => {

View File

@ -7,8 +7,6 @@ import { isLocalParticipantModerator } from '../../../base/participants/function
import { connect } from '../../../base/redux/functions'; import { connect } from '../../../base/redux/functions';
import Switch from '../../../base/ui/components/web/Switch'; import Switch from '../../../base/ui/components/web/Switch';
import { isInBreakoutRoom } from '../../../breakout-rooms/functions'; import { isInBreakoutRoom } from '../../../breakout-rooms/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { toggleLobbyMode } from '../../actions'; import { toggleLobbyMode } from '../../actions';
interface IProps extends WithTranslation { interface IProps extends WithTranslation {

View File

@ -1,9 +1,9 @@
/* eslint-disable lines-around-comment */
import ReducerRegistry from '../../base/redux/ReducerRegistry'; import ReducerRegistry from '../../base/redux/ReducerRegistry';
import { set } from '../../base/redux/functions'; import { set } from '../../base/redux/functions';
// @ts-ignore // @ts-ignore
import CallKit from './CallKit'; import CallKit from './CallKit';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import ConnectionService from './ConnectionService'; import ConnectionService from './ConnectionService';
import { _SET_CALL_INTEGRATION_SUBSCRIPTIONS } from './actionTypes'; import { _SET_CALL_INTEGRATION_SUBSCRIPTIONS } from './actionTypes';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { IReduxState } from '../../app/types'; import { IReduxState } from '../../app/types';
import { translate } from '../../base/i18n/functions'; import { translate } from '../../base/i18n/functions';
import { import {
@ -9,9 +8,9 @@ import { connect } from '../../base/redux/functions';
import { import {
AbstractButton, AbstractButton,
type AbstractButtonProps type AbstractButtonProps
// @ts-ignore // @ts-ignore
} from '../../base/toolbox/components'; } from '../../base/toolbox/components';
// @ts-ignore
import { setOverflowMenuVisible } from '../../toolbox/actions'; import { setOverflowMenuVisible } from '../../toolbox/actions';
import { toggleNoiseSuppression } from '../actions'; import { toggleNoiseSuppression } from '../actions';
import { isNoiseSuppressionEnabled } from '../functions'; import { isNoiseSuppressionEnabled } from '../functions';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useDispatch } from 'react-redux'; import { useDispatch } from 'react-redux';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback, useMemo } from 'react'; import React, { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux'; 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 ContextMenuItemGroup from '../../../../../base/ui/components/web/ContextMenuItemGroup';
import { getBreakoutRooms } from '../../../../../breakout-rooms/functions'; import { getBreakoutRooms } from '../../../../../breakout-rooms/functions';
import { showOverflowDrawer } from '../../../../../toolbox/functions.web'; import { showOverflowDrawer } from '../../../../../toolbox/functions.web';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import SendToRoomButton from '../../../../../video-menu/components/web/SendToRoomButton'; import SendToRoomButton from '../../../../../video-menu/components/web/SendToRoomButton';
import { AVATAR_SIZE } from '../../../../constants'; import { AVATAR_SIZE } from '../../../../constants';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
@ -29,14 +28,10 @@ import {
import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenu from '../../../base/ui/components/web/ContextMenu';
import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup';
import { isInBreakoutRoom } from '../../../breakout-rooms/functions'; import { isInBreakoutRoom } from '../../../breakout-rooms/functions';
import { import { openSettingsDialog } from '../../../settings/actions';
openSettingsDialog,
shouldShowModeratorSettings
// @ts-ignore
} from '../../../settings';
import { SETTINGS_TABS } from '../../../settings/constants'; import { SETTINGS_TABS } from '../../../settings/constants';
// @ts-ignore import { shouldShowModeratorSettings } from '../../../settings/functions.web';
import { MuteEveryonesVideoDialog } from '../../../video-menu/components'; import MuteEveryonesVideoDialog from '../../../video-menu/components/web/MuteEveryonesVideoDialog';
const useStyles = makeStyles()(theme => { const useStyles = makeStyles()(theme => {
return { return {

View File

@ -1,5 +1,3 @@
// eslint-disable-next-line lines-around-comment
import React, { useCallback, useRef, useState } from 'react'; import React, { useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux'; 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 ContextMenu from '../../../base/ui/components/web/ContextMenu';
import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup';
import { BUTTON_TYPES } from '../../../base/ui/constants.web'; import { BUTTON_TYPES } from '../../../base/ui/constants.web';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { showLobbyChatButton } from '../../../lobby/functions'; import { showLobbyChatButton } from '../../../lobby/functions';
import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants'; import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants';
import { useLobbyActions } from '../../hooks'; import { useLobbyActions } from '../../hooks';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; 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 { withPixelLineHeight } from '../../../base/styles/functions.web';
import { admitMultiple } from '../../../lobby/actions.web'; import { admitMultiple } from '../../../lobby/actions.web';
import { getKnockingParticipants, getLobbyEnabled } from '../../../lobby/functions'; import { getKnockingParticipants, getLobbyEnabled } from '../../../lobby/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { Drawer, JitsiPortal } from '../../../toolbox/components/web'; import { Drawer, JitsiPortal } from '../../../toolbox/components/web';
import { showOverflowDrawer } from '../../../toolbox/functions.web'; import { showOverflowDrawer } from '../../../toolbox/functions.web';

View File

@ -1,5 +1,4 @@
/* eslint-disable lines-around-comment */ /* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; 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 { normalizeAccents } from '../../../base/util/strings.web';
import { getBreakoutRooms, getCurrentRoomId, isInBreakoutRoom } from '../../../breakout-rooms/functions'; import { getBreakoutRooms, getCurrentRoomId, isInBreakoutRoom } from '../../../breakout-rooms/functions';
import { showOverflowDrawer } from '../../../toolbox/functions.web'; import { showOverflowDrawer } from '../../../toolbox/functions.web';
// @ts-ignore import { muteRemote } from '../../../video-menu/actions.web';
import { muteRemote } from '../../../video-menu/actions.any';
import { getSortedParticipantIds, shouldRenderInviteButton } from '../../functions'; import { getSortedParticipantIds, shouldRenderInviteButton } from '../../functions';
import { useParticipantDrawer } from '../../hooks'; import { useParticipantDrawer } from '../../hooks';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback, useEffect, useState } from 'react'; import React, { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; 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 { BUTTON_TYPES } from '../../../base/ui/constants.web';
import { findAncestorByClass } from '../../../base/ui/functions.web'; import { findAncestorByClass } from '../../../base/ui/functions.web';
import { isAddBreakoutRoomButtonVisible } from '../../../breakout-rooms/functions'; import { isAddBreakoutRoomButtonVisible } from '../../../breakout-rooms/functions';
// @ts-ignore import MuteEveryoneDialog from '../../../video-menu/components/web/MuteEveryoneDialog';
import { MuteEveryoneDialog } from '../../../video-menu/components/';
import { close } from '../../actions.web'; import { close } from '../../actions.web';
import { import {
getParticipantsPaneOpen, getParticipantsPaneOpen,
@ -23,6 +21,7 @@ import {
isMuteAllVisible isMuteAllVisible
} from '../../functions'; } from '../../functions';
import { AddBreakoutRoomButton } from '../breakout-rooms/components/web/AddBreakoutRoomButton'; import { AddBreakoutRoomButton } from '../breakout-rooms/components/web/AddBreakoutRoomButton';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { RoomList } from '../breakout-rooms/components/web/RoomList'; import { RoomList } from '../breakout-rooms/components/web/RoomList';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { Text, View } from 'react-native'; import { Text, View } from 'react-native';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';

View File

@ -1,5 +1,4 @@
/* eslint-disable lines-around-comment */ /* eslint-disable lines-around-comment */
// @ts-ignore
import React from 'react'; import React from 'react';
import Button from '../../../base/ui/components/web/Button'; import Button from '../../../base/ui/components/web/Button';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import { IStore } from '../app/types'; import { IStore } from '../app/types';
@ -17,6 +16,7 @@ import {
getLocalVideoTrack getLocalVideoTrack
} from '../base/tracks/functions'; } from '../base/tracks/functions';
import { openURLInBrowser } from '../base/util/openURLInBrowser'; import { openURLInBrowser } from '../base/util/openURLInBrowser';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { executeDialOutRequest, executeDialOutStatusRequest, getDialInfoPageURL } from '../invite/functions'; import { executeDialOutRequest, executeDialOutStatusRequest, getDialInfoPageURL } from '../invite/functions';
import { showErrorNotification } from '../notifications/actions'; import { showErrorNotification } from '../notifications/actions';

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';
@ -9,6 +7,7 @@ import { Avatar } from '../../../../base/avatar';
import { translate } from '../../../../base/i18n/functions'; import { translate } from '../../../../base/i18n/functions';
import Icon from '../../../../base/icons/components/Icon'; import Icon from '../../../../base/icons/components/Icon';
import { IconCloseLarge } from '../../../../base/icons/svg'; import { IconCloseLarge } from '../../../../base/icons/svg';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import Label from '../Label'; import Label from '../Label';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { Theme } from '@mui/material'; import { Theme } from '@mui/material';
import { ClassNameMap, withStyles } from '@mui/styles'; import { ClassNameMap, withStyles } from '@mui/styles';
import clsx from 'clsx'; import clsx from 'clsx';
@ -14,10 +13,10 @@ import { translate } from '../../../base/i18n/functions';
import { raiseHand } from '../../../base/participants/actions'; import { raiseHand } from '../../../base/participants/actions';
import { getLocalParticipant, hasRaisedHand } from '../../../base/participants/functions'; import { getLocalParticipant, hasRaisedHand } from '../../../base/participants/functions';
import GifsMenu from '../../../gifs/components/web/GifsMenu'; import GifsMenu from '../../../gifs/components/web/GifsMenu';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import GifsMenuButton from '../../../gifs/components/web/GifsMenuButton'; import GifsMenuButton from '../../../gifs/components/web/GifsMenuButton';
import { isGifEnabled, isGifsMenuOpen } from '../../../gifs/functions'; import { isGifEnabled, isGifsMenuOpen } from '../../../gifs/functions';
// @ts-ignore
import { dockToolbox } from '../../../toolbox/actions.web'; import { dockToolbox } from '../../../toolbox/actions.web';
import { addReactionToBuffer } from '../../actions.any'; import { addReactionToBuffer } from '../../actions.any';
import { toggleReactionsMenuVisibility } from '../../actions.web'; import { toggleReactionsMenuVisibility } from '../../actions.web';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
@ -8,6 +7,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';
import { translate } from '../../../base/i18n/functions'; import { translate } from '../../../base/i18n/functions';
import { IconArrowUp } from '../../../base/icons/svg'; import { IconArrowUp } from '../../../base/icons/svg';
import { connect } from '../../../base/redux/functions'; import { connect } from '../../../base/redux/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import ToolboxButtonWithIconPopup from '../../../base/toolbox/components/web/ToolboxButtonWithIconPopup'; import ToolboxButtonWithIconPopup from '../../../base/toolbox/components/web/ToolboxButtonWithIconPopup';
import { toggleReactionsMenuVisibility } from '../../actions.web'; import { toggleReactionsMenuVisibility } from '../../actions.web';

View File

@ -14,11 +14,9 @@ import {
} from '../../../base/dialog'; } from '../../../base/dialog';
// @ts-ignore // @ts-ignore
import { StyleType } from '../../../base/styles'; import { StyleType } from '../../../base/styles';
// @ts-ignore import { authorizeDropbox, updateDropboxToken } from '../../../dropbox/actions';
import { authorizeDropbox, updateDropboxToken } from '../../../dropbox';
import { isVpaasMeeting } from '../../../jaas/functions'; import { isVpaasMeeting } from '../../../jaas/functions';
import { RECORDING_TYPES } from '../../constants'; import { RECORDING_TYPES } from '../../constants';
// @ts-ignore
import { supportsLocalRecording } from '../../functions'; import { supportsLocalRecording } from '../../functions';
/** /**

View File

@ -7,8 +7,6 @@ import { getRoomName } from '../../../base/conference/functions';
import { MEDIA_TYPE } from '../../../base/media/constants'; import { MEDIA_TYPE } from '../../../base/media/constants';
import { getLocalTrack, getTrackState } from '../../../base/tracks/functions'; import { getLocalTrack, getTrackState } from '../../../base/tracks/functions';
import { inIframe } from '../../../base/util/iframeUtils'; import { inIframe } from '../../../base/util/iframeUtils';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { stopLocalVideoRecording } from '../../actions.any'; import { stopLocalVideoRecording } from '../../actions.any';
interface ISelfRecording { interface ISelfRecording {

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { Theme } from '@mui/material'; import { Theme } from '@mui/material';
import { withStyles } from '@mui/styles'; import { withStyles } from '@mui/styles';
import React from 'react'; import React from 'react';
@ -11,14 +10,15 @@ import { IconHighlight } from '../../../../base/icons/svg';
import { MEET_FEATURES } from '../../../../base/jwt/constants'; import { MEET_FEATURES } from '../../../../base/jwt/constants';
import Label from '../../../../base/label/components/web/Label'; import Label from '../../../../base/label/components/web/Label';
import { connect } from '../../../../base/redux/functions'; import { connect } from '../../../../base/redux/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { Tooltip } from '../../../../base/tooltip'; import { Tooltip } from '../../../../base/tooltip';
import BaseTheme from '../../../../base/ui/components/BaseTheme.web'; import BaseTheme from '../../../../base/ui/components/BaseTheme.web';
// @ts-ignore
import { maybeShowPremiumFeatureDialog } from '../../../../jaas/actions'; import { maybeShowPremiumFeatureDialog } from '../../../../jaas/actions';
import AbstractHighlightButton, { import AbstractHighlightButton, {
type Props as AbstractProps, type Props as AbstractProps,
_abstractMapStateToProps _abstractMapStateToProps
// @ts-ignore // @ts-ignore
} from '../AbstractHighlightButton'; } from '../AbstractHighlightButton';
@ -193,6 +193,7 @@ export class HighlightButton extends AbstractHighlightButton<Props, IState> {
_visible, _visible,
classes, classes,
t t
// @ts-ignore // @ts-ignore
} = this.props; } = this.props;

View File

@ -14,7 +14,6 @@ import Button from '../../../../base/ui/components/web/Button';
import Switch from '../../../../base/ui/components/web/Switch'; import Switch from '../../../../base/ui/components/web/Switch';
import { BUTTON_TYPES } from '../../../../base/ui/constants.web'; import { BUTTON_TYPES } from '../../../../base/ui/constants.web';
import { RECORDING_TYPES } from '../../../constants'; import { RECORDING_TYPES } from '../../../constants';
// @ts-ignore
import { getRecordingDurationEstimation } from '../../../functions'; import { getRecordingDurationEstimation } from '../../../functions';
import AbstractStartRecordingDialogContent, { import AbstractStartRecordingDialogContent, {
IProps, IProps,

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import Spinner from '@atlaskit/spinner'; import Spinner from '@atlaskit/spinner';
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
@ -102,6 +101,7 @@ const useStyles = makeStyles()(theme => {
border: '1px solid', border: '1px solid',
borderColor: theme.palette.ui05, borderColor: theme.palette.ui05,
backgroundColor: theme.palette.field01, backgroundColor: theme.palette.field01,
// @ts-ignore // @ts-ignore
color: theme.palette.field02, color: theme.palette.field02,
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
@ -151,6 +151,7 @@ function SalesforceLinkDialog() {
const renderSpinner = () => ( const renderSpinner = () => (
<div className = { classes.spinner }> <div className = { classes.spinner }>
<Spinner <Spinner
// @ts-ignore // @ts-ignore
isCompleting = { false } isCompleting = { false }
size = 'medium' /> size = 'medium' />

View File

@ -1,9 +1,9 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
// @ts-ignore // @ts-ignore
import { AbstractDialogTab } from '../../../base/dialog'; import { AbstractDialogTab } from '../../../base/dialog';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import type { Props as AbstractDialogTabProps } from '../../../base/dialog'; import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
import { translate } from '../../../base/i18n/functions'; import { translate } from '../../../base/i18n/functions';

View File

@ -13,7 +13,6 @@ import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
import { translate } from '../../../base/i18n/functions'; import { translate } from '../../../base/i18n/functions';
import Button from '../../../base/ui/components/web/Button'; import Button from '../../../base/ui/components/web/Button';
import Input from '../../../base/ui/components/web/Input'; import Input from '../../../base/ui/components/web/Input';
// @ts-ignore
import { openLogoutDialog } from '../../actions'; import { openLogoutDialog } from '../../actions';
/** /**

View File

@ -23,7 +23,6 @@ import {
submitMoreTab, submitMoreTab,
submitProfileTab, submitProfileTab,
submitSoundsTab submitSoundsTab
// @ts-ignore
} from '../../actions'; } from '../../actions';
import { SETTINGS_TABS } from '../../constants'; import { SETTINGS_TABS } from '../../constants';
import { import {
@ -31,7 +30,6 @@ import {
getMoreTabProps, getMoreTabProps,
getProfileTabProps, getProfileTabProps,
getSoundsTabProps getSoundsTabProps
// @ts-ignore
} from '../../functions'; } from '../../functions';
// @ts-ignore // @ts-ignore

View File

@ -1,9 +1,9 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
// @ts-ignore // @ts-ignore
import { AbstractDialogTab } from '../../../base/dialog'; import { AbstractDialogTab } from '../../../base/dialog';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import type { Props as AbstractDialogTabProps } from '../../../base/dialog'; import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
import { translate } from '../../../base/i18n/functions'; import { translate } from '../../../base/i18n/functions';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { IReduxState } from '../app/types'; import { IReduxState } from '../app/types';
import { IStateful } from '../base/app/types'; import { IStateful } from '../base/app/types';
import { isNameReadOnly } from '../base/config/functions'; import { isNameReadOnly } from '../base/config/functions';
@ -12,10 +11,8 @@ import {
import { toState } from '../base/redux/functions'; import { toState } from '../base/redux/functions';
import { getHideSelfView } from '../base/settings/functions'; import { getHideSelfView } from '../base/settings/functions';
import { parseStandardURIString } from '../base/util/uri'; import { parseStandardURIString } from '../base/util/uri';
// @ts-ignore
import { isStageFilmstripEnabled } from '../filmstrip/functions'; import { isStageFilmstripEnabled } from '../filmstrip/functions';
// @ts-ignore import { isFollowMeActive } from '../follow-me/functions';
import { isFollowMeActive } from '../follow-me';
import { getParticipantsPaneConfig } from '../participants-pane/functions'; import { getParticipantsPaneConfig } from '../participants-pane/functions';
import { isReactionsEnabled } from '../reactions/functions.any'; import { isReactionsEnabled } from '../reactions/functions.any';

View File

@ -2,8 +2,6 @@ import { Component } from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
import { IStore } from '../../app/types'; import { IStore } from '../../app/types';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { extractYoutubeIdOrURL } from '../functions'; import { extractYoutubeIdOrURL } from '../functions';
/** /**

View File

@ -1,9 +1,9 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';
import { withPixelLineHeight } from '../../../base/styles/functions.web'; import { withPixelLineHeight } from '../../../base/styles/functions.web';
import { MOBILE_BREAKPOINT } from '../../constants'; import { MOBILE_BREAKPOINT } from '../../constants';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import abstractSpeakerStatsList from '../AbstractSpeakerStatsList'; import abstractSpeakerStatsList from '../AbstractSpeakerStatsList';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import i18next from 'i18next'; import i18next from 'i18next';
import React, { useCallback, useEffect, useState } from 'react'; import React, { useCallback, useEffect, useState } from 'react';
import { WithTranslation } from 'react-i18next'; import { WithTranslation } from 'react-i18next';
@ -6,15 +5,14 @@ import { useDispatch } from 'react-redux';
import { makeStyles } from 'tss-react/mui'; import { makeStyles } from 'tss-react/mui';
import { IReduxState } from '../../app/types'; import { IReduxState } from '../../app/types';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { TRANSLATION_LANGUAGES, TRANSLATION_LANGUAGES_HEAD } from '../../base/i18n'; import { TRANSLATION_LANGUAGES, TRANSLATION_LANGUAGES_HEAD } from '../../base/i18n';
import { translate, translateToHTML } from '../../base/i18n/functions'; import { translate, translateToHTML } from '../../base/i18n/functions';
import { connect } from '../../base/redux/functions'; import { connect } from '../../base/redux/functions';
import Dialog from '../../base/ui/components/web/Dialog'; import Dialog from '../../base/ui/components/web/Dialog';
// @ts-ignore
import { openSettingsDialog } from '../../settings/actions'; import { openSettingsDialog } from '../../settings/actions';
import { SETTINGS_TABS } from '../../settings/constants'; import { SETTINGS_TABS } from '../../settings/constants';
// @ts-ignore
import { setRequestingSubtitles, toggleLanguageSelectorDialog, updateTranslationLanguage } from '../actions'; import { setRequestingSubtitles, toggleLanguageSelectorDialog, updateTranslationLanguage } from '../actions';
import LanguageList from './LanguageList.web'; import LanguageList from './LanguageList.web';
@ -62,6 +60,7 @@ const LanguageSelectorDialog = ({
const [ language, setLanguage ] = useState(off); const [ language, setLanguage ] = useState(off);
const languagesHead = _translationLanguagesHead.map((lang: string) => `translation-languages:${lang}`); 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 // 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, // a language from the translationLanguages, that language is moved under the fixedItems list,
// until a new languages is selected. FixedItems keep their positions. // until a new languages is selected. FixedItems keep their positions.

View File

@ -1,7 +1,7 @@
/* eslint-disable lines-around-comment */
// @ts-ignore // @ts-ignore
import { translate } from '../../../base/i18n'; import { translate } from '../../../base/i18n';
import { IconCloseLarge, IconHangup } from '../../../base/icons/svg'; import { IconCloseLarge, IconHangup } from '../../../base/icons/svg';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components'; import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';

View File

@ -6,7 +6,6 @@ import { batch } from 'react-redux';
// @ts-expect-error // @ts-expect-error
import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut'; import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';
// @ts-ignore
import { isSpeakerStatsDisabled } from '../../../../features/speaker-stats/functions'; import { isSpeakerStatsDisabled } from '../../../../features/speaker-stats/functions';
import { ACTION_SHORTCUT_TRIGGERED, createShortcutEvent, createToolbarEvent } from '../../../analytics/AnalyticsEvents'; import { ACTION_SHORTCUT_TRIGGERED, createShortcutEvent, createToolbarEvent } from '../../../analytics/AnalyticsEvents';
import { sendAnalytics } from '../../../analytics/functions'; import { sendAnalytics } from '../../../analytics/functions';
@ -65,7 +64,6 @@ import {
RecordButton RecordButton
// @ts-ignore // @ts-ignore
} from '../../../recording'; } from '../../../recording';
// @ts-ignore
import { isSalesforceEnabled } from '../../../salesforce/functions'; import { isSalesforceEnabled } from '../../../salesforce/functions';
import { import {
startScreenShareFlow startScreenShareFlow
@ -107,7 +105,6 @@ import {
setOverflowMenuVisible, setOverflowMenuVisible,
setToolbarHovered, setToolbarHovered,
showToolbox showToolbox
// @ts-ignore
} from '../../actions'; } from '../../actions';
import { NOTIFY_CLICK_MODE, NOT_APPLICABLE, THRESHOLDS } from '../../constants'; import { NOTIFY_CLICK_MODE, NOT_APPLICABLE, THRESHOLDS } from '../../constants';
import { isDesktopShareButtonDisabled, isToolboxVisible } from '../../functions'; import { isDesktopShareButtonDisabled, isToolboxVisible } from '../../functions';

View File

@ -4,8 +4,6 @@ import { getFeatureFlag } from '../base/flags/functions';
import { pinParticipant } from '../base/participants/actions'; import { pinParticipant } from '../base/participants/actions';
import { getParticipantCount, getPinnedParticipant } from '../base/participants/functions'; import { getParticipantCount, getPinnedParticipant } from '../base/participants/functions';
import { FakeParticipant } from '../base/participants/types'; import { FakeParticipant } from '../base/participants/types';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { isStageFilmstripAvailable } from '../filmstrip/functions'; import { isStageFilmstripAvailable } from '../filmstrip/functions';
import { isVideoPlaying } from '../shared-video/functions'; import { isVideoPlaying } from '../shared-video/functions';
import { VIDEO_QUALITY_LEVELS } from '../video-quality/constants'; import { VIDEO_QUALITY_LEVELS } from '../video-quality/constants';

View File

@ -8,8 +8,6 @@ import {
getNumberOfPartipantsForTileView, getNumberOfPartipantsForTileView,
getThumbnailMinHeight, getThumbnailMinHeight,
getTileDefaultAspectRatio getTileDefaultAspectRatio
// @ts-ignore
} from '../filmstrip/functions.web'; } from '../filmstrip/functions.web';
export * from './functions.any'; export * from './functions.any';

View File

@ -8,8 +8,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
import StateListenerRegistry from '../base/redux/StateListenerRegistry'; import StateListenerRegistry from '../base/redux/StateListenerRegistry';
import { TRACK_REMOVED } from '../base/tracks/actionTypes'; import { TRACK_REMOVED } from '../base/tracks/actionTypes';
import { SET_DOCUMENT_EDITING_STATUS } from '../etherpad/actionTypes'; import { SET_DOCUMENT_EDITING_STATUS } from '../etherpad/actionTypes';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { isStageFilmstripEnabled } from '../filmstrip/functions'; import { isStageFilmstripEnabled } from '../filmstrip/functions';
import { isFollowMeActive } from '../follow-me/functions'; import { isFollowMeActive } from '../follow-me/functions';

View File

@ -2,8 +2,6 @@ import { setVideoMuted } from '../base/media/actions';
import { MEDIA_TYPE, VIDEO_MUTISM_AUTHORITY } from '../base/media/constants'; import { MEDIA_TYPE, VIDEO_MUTISM_AUTHORITY } from '../base/media/constants';
import MiddlewareRegistry from '../base/redux/MiddlewareRegistry'; import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
import { CLIENT_RESIZED } from '../base/responsive-ui/actionTypes'; 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 { setLargeVideoDimensions } from '../large-video/actions.any';
import { SET_CAR_MODE } from './actionTypes'; import { SET_CAR_MODE } from './actionTypes';

View File

@ -5,8 +5,6 @@ import { requestDisableAudioModeration, requestEnableAudioModeration } from '../
import { isEnabledFromState, isSupported } from '../../av-moderation/functions'; import { isEnabledFromState, isSupported } from '../../av-moderation/functions';
import { MEDIA_TYPE } from '../../base/media/constants'; import { MEDIA_TYPE } from '../../base/media/constants';
import { getLocalParticipant, getParticipantDisplayName } from '../../base/participants/functions'; import { getLocalParticipant, getParticipantDisplayName } from '../../base/participants/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { muteAllParticipants } from '../actions'; import { muteAllParticipants } from '../actions';
import AbstractMuteRemoteParticipantDialog, { import AbstractMuteRemoteParticipantDialog, {

View File

@ -5,8 +5,6 @@ import { requestDisableVideoModeration, requestEnableVideoModeration } from '../
import { isEnabledFromState, isSupported } from '../../av-moderation/functions'; import { isEnabledFromState, isSupported } from '../../av-moderation/functions';
import { MEDIA_TYPE } from '../../base/media/constants'; import { MEDIA_TYPE } from '../../base/media/constants';
import { getLocalParticipant, getParticipantDisplayName } from '../../base/participants/functions'; import { getLocalParticipant, getParticipantDisplayName } from '../../base/participants/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { muteAllParticipants } from '../actions'; import { muteAllParticipants } from '../actions';
import AbstractMuteRemoteParticipantsVideoDialog, { import AbstractMuteRemoteParticipantsVideoDialog, {

View File

@ -1,8 +1,6 @@
import { Component } from 'react'; import { Component } from 'react';
import { MEDIA_TYPE } from '../../base/media/constants'; import { MEDIA_TYPE } from '../../base/media/constants';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { muteRemote } from '../actions'; import { muteRemote } from '../actions';
/** /**

View File

@ -4,8 +4,6 @@ import { IReduxState } from '../../app/types';
import { rejectParticipantVideo } from '../../av-moderation/actions'; import { rejectParticipantVideo } from '../../av-moderation/actions';
import { isEnabledFromState } from '../../av-moderation/functions'; import { isEnabledFromState } from '../../av-moderation/functions';
import { MEDIA_TYPE } from '../../base/media/constants'; import { MEDIA_TYPE } from '../../base/media/constants';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { muteRemote } from '../actions'; import { muteRemote } from '../actions';
/** /**

View File

@ -1,11 +1,10 @@
/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
// @ts-ignore // @ts-ignore
import TogglePinToStageButton from '../../../../features/video-menu/components/web/TogglePinToStageButton'; import TogglePinToStageButton from '../../../../features/video-menu/components/web/TogglePinToStageButton';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { Avatar } from '../../../base/avatar'; import { Avatar } from '../../../base/avatar';
import { IconPlay } from '../../../base/icons/svg'; import { IconPlay } from '../../../base/icons/svg';
@ -13,7 +12,6 @@ import { isWhiteboardParticipant } from '../../../base/participants/functions';
import { IParticipant } from '../../../base/participants/types'; import { IParticipant } from '../../../base/participants/types';
import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenu from '../../../base/ui/components/web/ContextMenu';
import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup';
// @ts-ignore
import { stopSharedVideo } from '../../../shared-video/actions.any'; import { stopSharedVideo } from '../../../shared-video/actions.any';
import { showOverflowDrawer } from '../../../toolbox/functions.web'; import { showOverflowDrawer } from '../../../toolbox/functions.web';
import { setWhiteboardOpen } from '../../../whiteboard/actions'; import { setWhiteboardOpen } from '../../../whiteboard/actions';

View File

@ -19,9 +19,7 @@ import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuIte
// @ts-ignore // @ts-ignore
import ConnectionIndicatorContent from '../../../connection-indicator/components/web/ConnectionIndicatorContent'; import ConnectionIndicatorContent from '../../../connection-indicator/components/web/ConnectionIndicatorContent';
import { THUMBNAIL_TYPE } from '../../../filmstrip/constants'; import { THUMBNAIL_TYPE } from '../../../filmstrip/constants';
// @ts-ignore
import { isStageFilmstripAvailable } from '../../../filmstrip/functions.web'; import { isStageFilmstripAvailable } from '../../../filmstrip/functions.web';
// @ts-ignore
import { renderConnectionStatus } from '../../actions.web'; import { renderConnectionStatus } from '../../actions.web';
// @ts-ignore // @ts-ignore

View File

@ -18,9 +18,7 @@ import { isParticipantAudioMuted } from '../../../base/tracks/functions';
import ContextMenu from '../../../base/ui/components/web/ContextMenu'; import ContextMenu from '../../../base/ui/components/web/ContextMenu';
import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup'; import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup';
import { getBreakoutRooms, getCurrentRoomId, isInBreakoutRoom } from '../../../breakout-rooms/functions'; import { getBreakoutRooms, getCurrentRoomId, isInBreakoutRoom } from '../../../breakout-rooms/functions';
// @ts-ignore
import { setVolume } from '../../../filmstrip/actions.web'; import { setVolume } from '../../../filmstrip/actions.web';
// @ts-ignore
import { isStageFilmstripAvailable } from '../../../filmstrip/functions.web'; import { isStageFilmstripAvailable } from '../../../filmstrip/functions.web';
import { isForceMuted } from '../../../participants-pane/functions'; import { isForceMuted } from '../../../participants-pane/functions';
// @ts-ignore // @ts-ignore

View File

@ -17,7 +17,6 @@ import ConnectionIndicatorContent from
// @ts-ignore // @ts-ignore
'../../../connection-indicator/components/web/ConnectionIndicatorContent'; '../../../connection-indicator/components/web/ConnectionIndicatorContent';
import { THUMBNAIL_TYPE } from '../../../filmstrip/constants'; import { THUMBNAIL_TYPE } from '../../../filmstrip/constants';
// @ts-ignore
import { renderConnectionStatus } from '../../actions.web'; import { renderConnectionStatus } from '../../actions.web';
import FakeParticipantContextMenu from './FakeParticipantContextMenu'; import FakeParticipantContextMenu from './FakeParticipantContextMenu';

View File

@ -13,8 +13,6 @@ import { setLastN } from '../../base/lastn/actions';
import { getLastNForQualityLevel } from '../../base/lastn/functions'; import { getLastNForQualityLevel } from '../../base/lastn/functions';
import { connect } from '../../base/redux/functions'; import { connect } from '../../base/redux/functions';
import { withPixelLineHeight } from '../../base/styles/functions.web'; import { withPixelLineHeight } from '../../base/styles/functions.web';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
import { setPreferredVideoQuality } from '../actions'; import { setPreferredVideoQuality } from '../actions';
import { DEFAULT_LAST_N, VIDEO_QUALITY_LEVELS } from '../constants'; import { DEFAULT_LAST_N, VIDEO_QUALITY_LEVELS } from '../constants';
import logger from '../logger'; import logger from '../logger';

View File

@ -13,8 +13,6 @@ import {
SET_PREFERRED_VIDEO_QUALITY SET_PREFERRED_VIDEO_QUALITY
} from './actionTypes'; } from './actionTypes';
import { VIDEO_QUALITY_LEVELS } from './constants'; import { VIDEO_QUALITY_LEVELS } from './constants';
/* eslint-disable-next-line lines-around-comment */
// @ts-ignore
import { validateMinHeightForQualityLvl } from './functions'; import { validateMinHeightForQualityLvl } from './functions';
import logger from './logger'; import logger from './logger';

View File

@ -11,8 +11,6 @@ import {
getActiveParticipantsIds, getActiveParticipantsIds,
getScreenshareFilmstripParticipantId, getScreenshareFilmstripParticipantId,
isTopPanelEnabled isTopPanelEnabled
// @ts-ignore
} from '../filmstrip/functions'; } from '../filmstrip/functions';
import { LAYOUTS } from '../video-layout/constants'; import { LAYOUTS } from '../video-layout/constants';
import { import {

View File

@ -1,5 +1,3 @@
/* eslint-disable lines-around-comment */
import React from 'react'; import React from 'react';
import { IconCalendar, IconGear, IconRestore } from '../base/icons/svg'; import { IconCalendar, IconGear, IconRestore } from '../base/icons/svg';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { ExcalidrawApp } from '@jitsi/excalidraw'; import { ExcalidrawApp } from '@jitsi/excalidraw';
import clsx from 'clsx'; import clsx from 'clsx';
import React, { useCallback, useEffect, useRef } from 'react'; import React, { useCallback, useEffect, useRef } from 'react';
@ -8,10 +7,8 @@ import { useSelector } from 'react-redux';
import Filmstrip from '../../../../../modules/UI/videolayout/Filmstrip'; import Filmstrip from '../../../../../modules/UI/videolayout/Filmstrip';
import { IReduxState } from '../../../app/types'; import { IReduxState } from '../../../app/types';
import { getLocalParticipant } from '../../../base/participants/functions'; import { getLocalParticipant } from '../../../base/participants/functions';
// @ts-ignore
import { getVerticalViewMaxWidth } from '../../../filmstrip/functions.web'; import { getVerticalViewMaxWidth } from '../../../filmstrip/functions.web';
import { getToolboxHeight } from '../../../toolbox/functions.web'; import { getToolboxHeight } from '../../../toolbox/functions.web';
// @ts-ignore
import { shouldDisplayTileView } from '../../../video-layout/functions.any'; import { shouldDisplayTileView } from '../../../video-layout/functions.any';
import { WHITEBOARD_UI_OPTIONS } from '../../constants'; import { WHITEBOARD_UI_OPTIONS } from '../../constants';
import { import {
@ -121,6 +118,7 @@ const Whiteboard: () => JSX.Element = () => {
collabServerUrl = { collabServerUrl } collabServerUrl = { collabServerUrl }
excalidraw = {{ excalidraw = {{
isCollaborating: true, isCollaborating: true,
// @ts-ignore // @ts-ignore
ref: excalidrawRef, ref: excalidrawRef,
theme: 'light', theme: 'light',

View File

@ -1,11 +1,10 @@
/* eslint-disable lines-around-comment */
import { IReduxState, IStore } from '../../../app/types'; import { IReduxState, IStore } from '../../../app/types';
import { translate } from '../../../base/i18n/functions'; import { translate } from '../../../base/i18n/functions';
import { IconWhiteboard, IconWhiteboardHide } from '../../../base/icons/svg'; import { IconWhiteboard, IconWhiteboardHide } from '../../../base/icons/svg';
import { connect } from '../../../base/redux/functions'; import { connect } from '../../../base/redux/functions';
// eslint-disable-next-line lines-around-comment
// @ts-ignore // @ts-ignore
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components'; import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
// @ts-ignore
import { setOverflowMenuVisible } from '../../../toolbox/actions.web'; import { setOverflowMenuVisible } from '../../../toolbox/actions.web';
import { setWhiteboardOpen } from '../../actions'; import { setWhiteboardOpen } from '../../actions';
import { isWhiteboardVisible } from '../../functions'; import { isWhiteboardVisible } from '../../functions';

View File

@ -1,4 +1,3 @@
/* eslint-disable lines-around-comment */
import { generateCollaborationLinkData } from '@jitsi/excalidraw'; import { generateCollaborationLinkData } from '@jitsi/excalidraw';
import { IStore } from '../app/types'; import { IStore } from '../app/types';
@ -10,7 +9,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
import StateListenerRegistry from '../base/redux/StateListenerRegistry'; import StateListenerRegistry from '../base/redux/StateListenerRegistry';
import { getCurrentRoomId } from '../breakout-rooms/functions'; import { getCurrentRoomId } from '../breakout-rooms/functions';
import { addStageParticipant } from '../filmstrip/actions.web'; import { addStageParticipant } from '../filmstrip/actions.web';
// @ts-ignore
import { isStageFilmstripAvailable } from '../filmstrip/functions'; import { isStageFilmstripAvailable } from '../filmstrip/functions';
import { RESET_WHITEBOARD, SET_WHITEBOARD_OPEN } from './actionTypes'; import { RESET_WHITEBOARD, SET_WHITEBOARD_OPEN } from './actionTypes';