ref(TS) Convert constants tiles to TS (#12148)

Remove unnecessary ts-ignores
pull/12151/head jitsi-meet_7756
Robert Pintilii 2 years ago committed by GitHub
parent 10bb186c13
commit 247c54b6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      react/features/calendar-sync/constants.ts
  2. 0
      react/features/deep-linking/constants.ts
  3. 3
      react/features/filmstrip/components/web/Filmstrip.tsx
  4. 3
      react/features/filmstrip/components/web/Thumbnail.tsx
  5. 0
      react/features/follow-me/constants.ts
  6. 0
      react/features/gifs/constants.ts
  7. 2
      react/features/invite/constants.ts
  8. 0
      react/features/lobby/constants.ts
  9. 2
      react/features/mobile/watchos/constants.ts
  10. 0
      react/features/no-audio-signal/constants.ts
  11. 0
      react/features/noise-detection/constants.ts
  12. 2
      react/features/participants-pane/components/web/FooterContextMenu.tsx
  13. 0
      react/features/presence-status/constants.ts
  14. 1
      react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
  15. 1
      react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
  16. 1
      react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx
  17. 2
      react/features/recording/constants.ts
  18. 0
      react/features/remote-control/constants.ts
  19. 3
      react/features/salesforce/components/web/RecordItem.tsx
  20. 1
      react/features/salesforce/components/web/SalesforceLinkDialog.tsx
  21. 9
      react/features/salesforce/constants.ts
  22. 2
      react/features/screenshot-capture/constants.ts
  23. 1
      react/features/settings/components/web/SettingsDialog.tsx
  24. 0
      react/features/settings/constants.ts
  25. 2
      react/features/shared-video/constants.ts
  26. 1
      react/features/speaker-stats/components/web/SpeakerStats.tsx
  27. 1
      react/features/speaker-stats/components/web/SpeakerStatsList.tsx
  28. 1
      react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx
  29. 0
      react/features/speaker-stats/constants.ts
  30. 0
      react/features/talk-while-muted/constants.ts
  31. 0
      react/features/video-layout/constants.ts
  32. 1
      react/features/video-menu/components/web/VolumeSlider.tsx
  33. 2
      react/features/video-menu/constants.ts
  34. 13
      react/features/welcome/constants.tsx

@ -1,5 +1,3 @@
// @flow
/**
* An enumeration of support calendar integration types.
*

@ -25,7 +25,8 @@ import { showToolbox } from '../../../toolbox/actions.web';
// @ts-ignore
import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web';
// @ts-ignore
import { getCurrentLayout, LAYOUTS } from '../../../video-layout';
import { getCurrentLayout } from '../../../video-layout';
import { LAYOUTS } from '../../../video-layout/constants';
import {
setFilmstripVisible,
setUserFilmstripHeight,

@ -45,7 +45,8 @@ import { getGifDisplayMode, getGifForParticipant } from '../../../gifs/functions
// @ts-ignore
import { PresenceLabel } from '../../../presence-status';
// @ts-ignore
import { getCurrentLayout, LAYOUTS } from '../../../video-layout';
import { getCurrentLayout } from '../../../video-layout';
import { LAYOUTS } from '../../../video-layout/constants';
// @ts-ignore
import { togglePinStageParticipant } from '../../actions';
import {

@ -1,5 +1,3 @@
// @flow
/**
* The pathName for the dialInInfo page.
*

@ -1,5 +1,3 @@
// @flow
// NOTE When changing any of the commands make sure to update JitsiMeetCommands enum in the WatchKit extension code.
export const CMD_HANG_UP = 'hangup';

@ -33,11 +33,11 @@ import {
// @ts-ignore
import { isInBreakoutRoom } from '../../../breakout-rooms/functions';
import {
SETTINGS_TABS,
openSettingsDialog,
shouldShowModeratorSettings
// @ts-ignore
} from '../../../settings';
import { SETTINGS_TABS } from '../../../settings/constants';
// @ts-ignore
import { MuteEveryonesVideoDialog } from '../../../video-menu/components';

@ -18,7 +18,6 @@ import { StyleType } from '../../../base/styles';
import { authorizeDropbox, updateDropboxToken } from '../../../dropbox';
// @ts-ignore
import { isVpaasMeeting } from '../../../jaas/functions';
// @ts-ignore
import { RECORDING_TYPES } from '../../constants';
// @ts-ignore
import { supportsLocalRecording } from '../../functions';

@ -10,7 +10,6 @@ import { connect } from '../../../../base/redux/functions';
import Button from '../../../../base/ui/components/native/Button';
import Switch from '../../../../base/ui/components/native/Switch';
import { BUTTON_TYPES } from '../../../../base/ui/constants';
// @ts-ignore
import { RECORDING_TYPES } from '../../../constants';
// @ts-ignore
import { getRecordingDurationEstimation } from '../../../functions';

@ -13,7 +13,6 @@ import {
import { connect } from '../../../../base/redux/functions';
import Button from '../../../../base/ui/components/web/Button';
import { BUTTON_TYPES } from '../../../../base/ui/constants';
// @ts-ignore
import { RECORDING_TYPES } from '../../../constants';
// @ts-ignore
import { getRecordingDurationEstimation } from '../../../functions';

@ -1,5 +1,3 @@
// @flow
import { JitsiRecordingConstants } from '../base/lib-jitsi-meet';

@ -2,7 +2,6 @@ import { makeStyles } from '@material-ui/core';
import React from 'react';
import { useTranslation } from 'react-i18next';
// @ts-ignore
import { RECORD_TYPE } from '../../constants';
/**
@ -82,7 +81,7 @@ export const RecordItem = ({
}: Props) => {
const { t } = useTranslation();
const classes = useStyles();
const Icon = RECORD_TYPE[type].icon;
const Icon = RECORD_TYPE[type as keyof typeof RECORD_TYPE].icon;
return (
<li

@ -12,7 +12,6 @@ import { IconSearch } from '../../../base/icons/svg';
// @ts-ignore
import { getFieldValue } from '../../../base/react';
import BaseTheme from '../../../base/ui/components/BaseTheme.web';
// @ts-ignore
import { NOTES_MAX_LENGTH } from '../../constants';
// @ts-ignore
import { useSalesforceLinkDialog } from '../../useSalesforceLinkDialog';

@ -3,7 +3,7 @@ import {
IconRecordContact,
IconRecordLead,
IconRecordOpportunity
} from '../base/icons';
} from '../base/icons/svg';
export const NOTES_MAX_LENGTH = 255;
@ -13,7 +13,12 @@ export const CONTENT_HEIGHT_OFFSET = 200;
export const LIST_HEIGHT_OFFSET = 250;
export const RECORD_TYPE = {
export const RECORD_TYPE: {
[key: string]: {
icon?: Function;
label: string;
};
} = {
ACCOUNT: {
label: 'record.type.account',
icon: IconRecordAccount

@ -1,5 +1,3 @@
// @flow
/**
* Percent of pixels that signal if two images should be considered different.
*/

@ -23,7 +23,6 @@ import {
submitSoundsTab
// @ts-ignore
} from '../../actions';
// @ts-ignore
import { SETTINGS_TABS } from '../../constants';
import {
getModeratorTabProps,

@ -1,5 +1,3 @@
// @flow
/**
* Fixed name of the video player fake participant.
*

@ -13,7 +13,6 @@ import {
DISPLAY_SWITCH_BREAKPOINT,
MOBILE_BREAKPOINT,
RESIZE_SEARCH_SWITCH_CONTAINER_BREAKPOINT
// @ts-ignore
} from '../../constants';
import FaceExpressionsSwitch from './FaceExpressionsSwitch';

@ -2,7 +2,6 @@
import { makeStyles } from '@material-ui/core/styles';
import React from 'react';
// @ts-ignore
import { MOBILE_BREAKPOINT } from '../../constants';
// @ts-ignore
import abstractSpeakerStatsList from '../AbstractSpeakerStatsList';

@ -9,7 +9,6 @@ import { IconSearch } from '../../../base/icons/svg';
// @ts-ignore
import { getFieldValue } from '../../../base/react';
import BaseTheme from '../../../base/ui/components/BaseTheme.web';
// @ts-ignore
import { MOBILE_BREAKPOINT } from '../../constants';
// @ts-ignore
import { isSpeakerStatsSearchDisabled } from '../../functions';

@ -7,7 +7,6 @@ import { WithTranslation } from 'react-i18next';
import { translate } from '../../../base/i18n/functions';
import Icon from '../../../base/icons/components/Icon';
import { IconVolume } from '../../../base/icons/svg';
// @ts-ignore
import { VOLUME_SLIDER_SCALE } from '../../constants';
/**

@ -1,5 +1,3 @@
// @flow
/**
* Used to modify initialValue, which is expected to be a decimal value between
* 0 and 1, and converts it to a number representable by an input slider, which

@ -1,10 +1,11 @@
// @flow
/* eslint-disable lines-around-comment */
import React from 'react';
import { IconEventNote, IconRestore, IconSettings } from '../base/icons';
import { IconEventNote, IconRestore, IconSettings } from '../base/icons/svg';
// @ts-ignore
import BaseTheme from '../base/ui/components/BaseTheme';
// @ts-ignore
import TabIcon from './components/TabIcon';
export const INACTIVE_TAB_COLOR = BaseTheme.palette.tab01Disabled;
@ -21,7 +22,7 @@ export const tabBarOptions = {
};
export const recentListTabBarOptions = {
tabBarIcon: ({ focused }) => (
tabBarIcon: ({ focused }: { focused: boolean; }) => (
<TabIcon
focused = { focused }
src = { IconRestore } />
@ -29,7 +30,7 @@ export const recentListTabBarOptions = {
};
export const calendarListTabBarOptions = {
tabBarIcon: ({ focused }) => (
tabBarIcon: ({ focused }: { focused: boolean; }) => (
<TabIcon
focused = { focused }
src = { IconEventNote } />
@ -37,7 +38,7 @@ export const calendarListTabBarOptions = {
};
export const settingsTabBarOptions = {
tabBarIcon: ({ focused }) => (
tabBarIcon: ({ focused }: { focused: boolean; }) => (
<TabIcon
focused = { focused }
src = { IconSettings } />
Loading…
Cancel
Save