Step 1: Remove all usage of @replaceableComponent
This commit is contained in:
parent
af6bd63ac7
commit
997d6d40bf
291 changed files with 0 additions and 602 deletions
|
@ -22,7 +22,6 @@ import classNames from "classnames";
|
||||||
import FocusLock from "react-focus-lock";
|
import FocusLock from "react-focus-lock";
|
||||||
|
|
||||||
import { Writeable } from "../../@types/common";
|
import { Writeable } from "../../@types/common";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import UIStore from "../../stores/UIStore";
|
import UIStore from "../../stores/UIStore";
|
||||||
import { checkInputableElement, RovingTabIndexProvider } from "../../accessibility/RovingTabIndex";
|
import { checkInputableElement, RovingTabIndexProvider } from "../../accessibility/RovingTabIndex";
|
||||||
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
||||||
|
@ -105,7 +104,6 @@ interface IState {
|
||||||
// Generic ContextMenu Portal wrapper
|
// Generic ContextMenu Portal wrapper
|
||||||
// all options inside the menu should be of role=menuitem/menuitemcheckbox/menuitemradiobutton and have tabIndex={-1}
|
// all options inside the menu should be of role=menuitem/menuitemcheckbox/menuitemradiobutton and have tabIndex={-1}
|
||||||
// this will allow the ContextMenu to manage its own focus using arrow keys as per the ARIA guidelines.
|
// this will allow the ContextMenu to manage its own focus using arrow keys as per the ARIA guidelines.
|
||||||
@replaceableComponent("structures.ContextMenu")
|
|
||||||
export default class ContextMenu extends React.PureComponent<IProps, IState> {
|
export default class ContextMenu extends React.PureComponent<IProps, IState> {
|
||||||
private readonly initialFocus: HTMLElement;
|
private readonly initialFocus: HTMLElement;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ import EventIndexPeg from "../../indexing/EventIndexPeg";
|
||||||
import { _t } from '../../languageHandler';
|
import { _t } from '../../languageHandler';
|
||||||
import DesktopBuildsNotice, { WarningKind } from "../views/elements/DesktopBuildsNotice";
|
import DesktopBuildsNotice, { WarningKind } from "../views/elements/DesktopBuildsNotice";
|
||||||
import BaseCard from "../views/right_panel/BaseCard";
|
import BaseCard from "../views/right_panel/BaseCard";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import ResizeNotifier from '../../utils/ResizeNotifier';
|
import ResizeNotifier from '../../utils/ResizeNotifier';
|
||||||
import TimelinePanel from "./TimelinePanel";
|
import TimelinePanel from "./TimelinePanel";
|
||||||
import Spinner from "../views/elements/Spinner";
|
import Spinner from "../views/elements/Spinner";
|
||||||
|
@ -51,7 +50,6 @@ interface IState {
|
||||||
/*
|
/*
|
||||||
* Component which shows the filtered file using a TimelinePanel
|
* Component which shows the filtered file using a TimelinePanel
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("structures.FilePanel")
|
|
||||||
class FilePanel extends React.Component<IProps, IState> {
|
class FilePanel extends React.Component<IProps, IState> {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,11 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
title: React.ReactNode;
|
title: React.ReactNode;
|
||||||
message: React.ReactNode;
|
message: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.GenericErrorPage")
|
|
||||||
export default class GenericErrorPage extends React.PureComponent<IProps> {
|
export default class GenericErrorPage extends React.PureComponent<IProps> {
|
||||||
render() {
|
render() {
|
||||||
return <div className='mx_GenericErrorPage'>
|
return <div className='mx_GenericErrorPage'>
|
||||||
|
|
|
@ -23,7 +23,6 @@ import {
|
||||||
import { _t } from "../../languageHandler";
|
import { _t } from "../../languageHandler";
|
||||||
import { HostSignupStore } from "../../stores/HostSignupStore";
|
import { HostSignupStore } from "../../stores/HostSignupStore";
|
||||||
import SdkConfig from "../../SdkConfig";
|
import SdkConfig from "../../SdkConfig";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
onClick?(): void;
|
onClick?(): void;
|
||||||
|
@ -31,7 +30,6 @@ interface IProps {
|
||||||
|
|
||||||
interface IState {}
|
interface IState {}
|
||||||
|
|
||||||
@replaceableComponent("structures.HostSignupAction")
|
|
||||||
export default class HostSignupAction extends React.PureComponent<IProps, IState> {
|
export default class HostSignupAction extends React.PureComponent<IProps, IState> {
|
||||||
private openDialog = async () => {
|
private openDialog = async () => {
|
||||||
this.props.onClick?.();
|
this.props.onClick?.();
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React, { ComponentProps, createRef } from "react";
|
import React, { ComponentProps, createRef } from "react";
|
||||||
|
|
||||||
import AutoHideScrollbar from "./AutoHideScrollbar";
|
import AutoHideScrollbar from "./AutoHideScrollbar";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import UIStore, { UI_EVENTS } from "../../stores/UIStore";
|
import UIStore, { UI_EVENTS } from "../../stores/UIStore";
|
||||||
|
|
||||||
interface IProps extends Omit<ComponentProps<typeof AutoHideScrollbar>, "onWheel"> {
|
interface IProps extends Omit<ComponentProps<typeof AutoHideScrollbar>, "onWheel"> {
|
||||||
|
@ -40,7 +39,6 @@ interface IState {
|
||||||
rightIndicatorOffset: string;
|
rightIndicatorOffset: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.IndicatorScrollbar")
|
|
||||||
export default class IndicatorScrollbar extends React.Component<IProps, IState> {
|
export default class IndicatorScrollbar extends React.Component<IProps, IState> {
|
||||||
private autoHideScrollbar = createRef<AutoHideScrollbar>();
|
private autoHideScrollbar = createRef<AutoHideScrollbar>();
|
||||||
private scrollElement: HTMLDivElement;
|
private scrollElement: HTMLDivElement;
|
||||||
|
|
|
@ -28,7 +28,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import getEntryComponentForLoginType, { IStageComponent } from '../views/auth/InteractiveAuthEntryComponents';
|
import getEntryComponentForLoginType, { IStageComponent } from '../views/auth/InteractiveAuthEntryComponents';
|
||||||
import Spinner from "../views/elements/Spinner";
|
import Spinner from "../views/elements/Spinner";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
export const ERROR_USER_CANCELLED = new Error("User cancelled auth session");
|
export const ERROR_USER_CANCELLED = new Error("User cancelled auth session");
|
||||||
|
|
||||||
|
@ -89,7 +88,6 @@ interface IState {
|
||||||
submitButtonEnabled: boolean;
|
submitButtonEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.InteractiveAuthComponent")
|
|
||||||
export default class InteractiveAuthComponent extends React.Component<IProps, IState> {
|
export default class InteractiveAuthComponent extends React.Component<IProps, IState> {
|
||||||
private readonly authLogic: InteractiveAuth;
|
private readonly authLogic: InteractiveAuth;
|
||||||
private readonly intervalId: number = null;
|
private readonly intervalId: number = null;
|
||||||
|
|
|
@ -27,7 +27,6 @@ import { Action } from "../../dispatcher/actions";
|
||||||
import RoomSearch from "./RoomSearch";
|
import RoomSearch from "./RoomSearch";
|
||||||
import ResizeNotifier from "../../utils/ResizeNotifier";
|
import ResizeNotifier from "../../utils/ResizeNotifier";
|
||||||
import AccessibleTooltipButton from "../views/elements/AccessibleTooltipButton";
|
import AccessibleTooltipButton from "../views/elements/AccessibleTooltipButton";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import SpaceStore from "../../stores/spaces/SpaceStore";
|
import SpaceStore from "../../stores/spaces/SpaceStore";
|
||||||
import { MetaSpace, SpaceKey, UPDATE_SELECTED_SPACE } from "../../stores/spaces";
|
import { MetaSpace, SpaceKey, UPDATE_SELECTED_SPACE } from "../../stores/spaces";
|
||||||
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
||||||
|
@ -62,7 +61,6 @@ interface IState {
|
||||||
activeSpace: SpaceKey;
|
activeSpace: SpaceKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.LeftPanel")
|
|
||||||
export default class LeftPanel extends React.Component<IProps, IState> {
|
export default class LeftPanel extends React.Component<IProps, IState> {
|
||||||
private listContainerRef = createRef<HTMLDivElement>();
|
private listContainerRef = createRef<HTMLDivElement>();
|
||||||
private roomSearchRef = createRef<RoomSearch>();
|
private roomSearchRef = createRef<RoomSearch>();
|
||||||
|
|
|
@ -52,7 +52,6 @@ import HostSignupContainer from '../views/host_signup/HostSignupContainer';
|
||||||
import { getKeyBindingsManager } from '../../KeyBindingsManager';
|
import { getKeyBindingsManager } from '../../KeyBindingsManager';
|
||||||
import { IOpts } from "../../createRoom";
|
import { IOpts } from "../../createRoom";
|
||||||
import SpacePanel from "../views/spaces/SpacePanel";
|
import SpacePanel from "../views/spaces/SpacePanel";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import CallHandler, { CallHandlerEvent } from '../../CallHandler';
|
import CallHandler, { CallHandlerEvent } from '../../CallHandler';
|
||||||
import AudioFeedArrayForCall from '../views/voip/AudioFeedArrayForCall';
|
import AudioFeedArrayForCall from '../views/voip/AudioFeedArrayForCall';
|
||||||
import { OwnProfileStore } from '../../stores/OwnProfileStore';
|
import { OwnProfileStore } from '../../stores/OwnProfileStore';
|
||||||
|
@ -127,7 +126,6 @@ interface IState {
|
||||||
*
|
*
|
||||||
* Components mounted below us can access the matrix client via the react context.
|
* Components mounted below us can access the matrix client via the react context.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("structures.LoggedInView")
|
|
||||||
class LoggedInView extends React.Component<IProps, IState> {
|
class LoggedInView extends React.Component<IProps, IState> {
|
||||||
static displayName = 'LoggedInView';
|
static displayName = 'LoggedInView';
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ import React from 'react';
|
||||||
import { NumberSize, Resizable } from 're-resizable';
|
import { NumberSize, Resizable } from 're-resizable';
|
||||||
import { Direction } from "re-resizable/lib/resizer";
|
import { Direction } from "re-resizable/lib/resizer";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import ResizeNotifier from "../../utils/ResizeNotifier";
|
import ResizeNotifier from "../../utils/ResizeNotifier";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -28,7 +27,6 @@ interface IProps {
|
||||||
panel?: JSX.Element;
|
panel?: JSX.Element;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.MainSplit")
|
|
||||||
export default class MainSplit extends React.Component<IProps> {
|
export default class MainSplit extends React.Component<IProps> {
|
||||||
private onResizeStart = (): void => {
|
private onResizeStart = (): void => {
|
||||||
this.props.resizeNotifier.startResizing();
|
this.props.resizeNotifier.startResizing();
|
||||||
|
|
|
@ -89,7 +89,6 @@ import { UIFeature } from "../../settings/UIFeature";
|
||||||
import DialPadModal from "../views/voip/DialPadModal";
|
import DialPadModal from "../views/voip/DialPadModal";
|
||||||
import { showToast as showMobileGuideToast } from '../../toasts/MobileGuideToast';
|
import { showToast as showMobileGuideToast } from '../../toasts/MobileGuideToast';
|
||||||
import { shouldUseLoginForWelcome } from "../../utils/pages";
|
import { shouldUseLoginForWelcome } from "../../utils/pages";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import RoomListStore from "../../stores/room-list/RoomListStore";
|
import RoomListStore from "../../stores/room-list/RoomListStore";
|
||||||
import { RoomUpdateCause } from "../../stores/room-list/models";
|
import { RoomUpdateCause } from "../../stores/room-list/models";
|
||||||
import SecurityCustomisations from "../../customisations/Security";
|
import SecurityCustomisations from "../../customisations/Security";
|
||||||
|
@ -207,7 +206,6 @@ interface IState {
|
||||||
forceTimeline?: boolean; // see props
|
forceTimeline?: boolean; // see props
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.MatrixChat")
|
|
||||||
export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||||
static displayName = "MatrixChat";
|
static displayName = "MatrixChat";
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ import IRCTimelineProfileResizer from "../views/elements/IRCTimelineProfileResiz
|
||||||
import DMRoomMap from "../../utils/DMRoomMap";
|
import DMRoomMap from "../../utils/DMRoomMap";
|
||||||
import NewRoomIntro from "../views/rooms/NewRoomIntro";
|
import NewRoomIntro from "../views/rooms/NewRoomIntro";
|
||||||
import HistoryTile from "../views/rooms/HistoryTile";
|
import HistoryTile from "../views/rooms/HistoryTile";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import defaultDispatcher from '../../dispatcher/dispatcher';
|
import defaultDispatcher from '../../dispatcher/dispatcher';
|
||||||
import CallEventGrouper from "./CallEventGrouper";
|
import CallEventGrouper from "./CallEventGrouper";
|
||||||
import WhoIsTypingTile from '../views/rooms/WhoIsTypingTile';
|
import WhoIsTypingTile from '../views/rooms/WhoIsTypingTile';
|
||||||
|
@ -199,7 +198,6 @@ interface IReadReceiptForUser {
|
||||||
|
|
||||||
/* (almost) stateless UI component which builds the event tiles in the room timeline.
|
/* (almost) stateless UI component which builds the event tiles in the room timeline.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("structures.MessagePanel")
|
|
||||||
export default class MessagePanel extends React.Component<IProps, IState> {
|
export default class MessagePanel extends React.Component<IProps, IState> {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
public context!: React.ContextType<typeof RoomContext>;
|
public context!: React.ContextType<typeof RoomContext>;
|
||||||
|
|
|
@ -19,7 +19,6 @@ import * as React from "react";
|
||||||
import { ComponentClass } from "../../@types/common";
|
import { ComponentClass } from "../../@types/common";
|
||||||
import NonUrgentToastStore from "../../stores/NonUrgentToastStore";
|
import NonUrgentToastStore from "../../stores/NonUrgentToastStore";
|
||||||
import { UPDATE_EVENT } from "../../stores/AsyncStore";
|
import { UPDATE_EVENT } from "../../stores/AsyncStore";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
}
|
}
|
||||||
|
@ -28,7 +27,6 @@ interface IState {
|
||||||
toasts: ComponentClass[];
|
toasts: ComponentClass[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.NonUrgentToastContainer")
|
|
||||||
export default class NonUrgentToastContainer extends React.PureComponent<IProps, IState> {
|
export default class NonUrgentToastContainer extends React.PureComponent<IProps, IState> {
|
||||||
public constructor(props, context) {
|
public constructor(props, context) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
|
@ -20,7 +20,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
import { _t } from '../../languageHandler';
|
import { _t } from '../../languageHandler';
|
||||||
import { MatrixClientPeg } from "../../MatrixClientPeg";
|
import { MatrixClientPeg } from "../../MatrixClientPeg";
|
||||||
import BaseCard from "../views/right_panel/BaseCard";
|
import BaseCard from "../views/right_panel/BaseCard";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import TimelinePanel from "./TimelinePanel";
|
import TimelinePanel from "./TimelinePanel";
|
||||||
import Spinner from "../views/elements/Spinner";
|
import Spinner from "../views/elements/Spinner";
|
||||||
import { Layout } from "../../settings/enums/Layout";
|
import { Layout } from "../../settings/enums/Layout";
|
||||||
|
@ -38,7 +37,6 @@ interface IState {
|
||||||
/*
|
/*
|
||||||
* Component which shows the global notification list using a TimelinePanel
|
* Component which shows the global notification list using a TimelinePanel
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("structures.NotificationPanel")
|
|
||||||
export default class NotificationPanel extends React.PureComponent<IProps, IState> {
|
export default class NotificationPanel extends React.PureComponent<IProps, IState> {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ import RightPanelStore from "../../stores/right-panel/RightPanelStore";
|
||||||
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
||||||
import RoomSummaryCard from "../views/right_panel/RoomSummaryCard";
|
import RoomSummaryCard from "../views/right_panel/RoomSummaryCard";
|
||||||
import WidgetCard from "../views/right_panel/WidgetCard";
|
import WidgetCard from "../views/right_panel/WidgetCard";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import SettingsStore from "../../settings/SettingsStore";
|
import SettingsStore from "../../settings/SettingsStore";
|
||||||
import MemberList from "../views/rooms/MemberList";
|
import MemberList from "../views/rooms/MemberList";
|
||||||
import UserInfo from "../views/right_panel/UserInfo";
|
import UserInfo from "../views/right_panel/UserInfo";
|
||||||
|
@ -60,7 +59,6 @@ interface IState {
|
||||||
cardState?: IRightPanelCardState;
|
cardState?: IRightPanelCardState;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.RightPanel")
|
|
||||||
export default class RightPanel extends React.Component<IProps, IState> {
|
export default class RightPanel extends React.Component<IProps, IState> {
|
||||||
static contextType = MatrixClientContext;
|
static contextType = MatrixClientContext;
|
||||||
public context!: React.ContextType<typeof MatrixClientContext>;
|
public context!: React.ContextType<typeof MatrixClientContext>;
|
||||||
|
|
|
@ -31,7 +31,6 @@ import { instanceForInstanceId, protocolNameForInstanceId } from '../../utils/Di
|
||||||
import Analytics from '../../Analytics';
|
import Analytics from '../../Analytics';
|
||||||
import NetworkDropdown, { ALL_ROOMS, Protocols } from "../views/directory/NetworkDropdown";
|
import NetworkDropdown, { ALL_ROOMS, Protocols } from "../views/directory/NetworkDropdown";
|
||||||
import SettingsStore from "../../settings/SettingsStore";
|
import SettingsStore from "../../settings/SettingsStore";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import { mediaFromMxc } from "../../customisations/Media";
|
import { mediaFromMxc } from "../../customisations/Media";
|
||||||
import { IDialogProps } from "../views/dialogs/IDialogProps";
|
import { IDialogProps } from "../views/dialogs/IDialogProps";
|
||||||
import AccessibleButton, { ButtonEvent } from "../views/elements/AccessibleButton";
|
import AccessibleButton, { ButtonEvent } from "../views/elements/AccessibleButton";
|
||||||
|
@ -71,7 +70,6 @@ interface IState {
|
||||||
filterString: string;
|
filterString: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.RoomDirectory")
|
|
||||||
export default class RoomDirectory extends React.Component<IProps, IState> {
|
export default class RoomDirectory extends React.Component<IProps, IState> {
|
||||||
private unmounted = false;
|
private unmounted = false;
|
||||||
private nextBatch: string = null;
|
private nextBatch: string = null;
|
||||||
|
|
|
@ -26,7 +26,6 @@ import { Action } from "../../dispatcher/actions";
|
||||||
import RoomListStore from "../../stores/room-list/RoomListStore";
|
import RoomListStore from "../../stores/room-list/RoomListStore";
|
||||||
import { NameFilterCondition } from "../../stores/room-list/filters/NameFilterCondition";
|
import { NameFilterCondition } from "../../stores/room-list/filters/NameFilterCondition";
|
||||||
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import SpaceStore from "../../stores/spaces/SpaceStore";
|
import SpaceStore from "../../stores/spaces/SpaceStore";
|
||||||
import { UPDATE_SELECTED_SPACE } from "../../stores/spaces";
|
import { UPDATE_SELECTED_SPACE } from "../../stores/spaces";
|
||||||
import { isMac, Key } from "../../Keyboard";
|
import { isMac, Key } from "../../Keyboard";
|
||||||
|
@ -50,7 +49,6 @@ interface IState {
|
||||||
spotlightBetaEnabled: boolean;
|
spotlightBetaEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.RoomSearch")
|
|
||||||
export default class RoomSearch extends React.PureComponent<IProps, IState> {
|
export default class RoomSearch extends React.PureComponent<IProps, IState> {
|
||||||
private readonly dispatcherRef: string;
|
private readonly dispatcherRef: string;
|
||||||
private readonly betaRef: string;
|
private readonly betaRef: string;
|
||||||
|
|
|
@ -24,7 +24,6 @@ import Resend from '../../Resend';
|
||||||
import dis from '../../dispatcher/dispatcher';
|
import dis from '../../dispatcher/dispatcher';
|
||||||
import { messageForResourceLimitError } from '../../utils/ErrorUtils';
|
import { messageForResourceLimitError } from '../../utils/ErrorUtils';
|
||||||
import { Action } from "../../dispatcher/actions";
|
import { Action } from "../../dispatcher/actions";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import NotificationBadge from "../views/rooms/NotificationBadge";
|
import NotificationBadge from "../views/rooms/NotificationBadge";
|
||||||
import { StaticNotificationState } from "../../stores/notifications/StaticNotificationState";
|
import { StaticNotificationState } from "../../stores/notifications/StaticNotificationState";
|
||||||
import AccessibleButton from "../views/elements/AccessibleButton";
|
import AccessibleButton from "../views/elements/AccessibleButton";
|
||||||
|
@ -82,7 +81,6 @@ interface IState {
|
||||||
isResending: boolean;
|
isResending: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.RoomStatusBar")
|
|
||||||
export default class RoomStatusBar extends React.PureComponent<IProps, IState> {
|
export default class RoomStatusBar extends React.PureComponent<IProps, IState> {
|
||||||
private unmounted = false;
|
private unmounted = false;
|
||||||
public static contextType = MatrixClientContext;
|
public static contextType = MatrixClientContext;
|
||||||
|
|
|
@ -86,7 +86,6 @@ import { getKeyBindingsManager } from '../../KeyBindingsManager';
|
||||||
import { objectHasDiff } from "../../utils/objects";
|
import { objectHasDiff } from "../../utils/objects";
|
||||||
import SpaceRoomView from "./SpaceRoomView";
|
import SpaceRoomView from "./SpaceRoomView";
|
||||||
import { IOpts } from "../../createRoom";
|
import { IOpts } from "../../createRoom";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import EditorStateTransfer from "../../utils/EditorStateTransfer";
|
import EditorStateTransfer from "../../utils/EditorStateTransfer";
|
||||||
import ErrorDialog from '../views/dialogs/ErrorDialog';
|
import ErrorDialog from '../views/dialogs/ErrorDialog';
|
||||||
import SearchResultTile from '../views/rooms/SearchResultTile';
|
import SearchResultTile from '../views/rooms/SearchResultTile';
|
||||||
|
@ -220,7 +219,6 @@ export interface IRoomState {
|
||||||
narrow: boolean;
|
narrow: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.RoomView")
|
|
||||||
export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
||||||
private readonly dispatcherRef: string;
|
private readonly dispatcherRef: string;
|
||||||
private readonly roomStoreToken: EventSubscription;
|
private readonly roomStoreToken: EventSubscription;
|
||||||
|
|
|
@ -19,7 +19,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import Timer from '../../utils/Timer';
|
import Timer from '../../utils/Timer';
|
||||||
import AutoHideScrollbar from "./AutoHideScrollbar";
|
import AutoHideScrollbar from "./AutoHideScrollbar";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
||||||
import ResizeNotifier from "../../utils/ResizeNotifier";
|
import ResizeNotifier from "../../utils/ResizeNotifier";
|
||||||
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
||||||
|
@ -170,7 +169,6 @@ interface IPreventShrinkingState {
|
||||||
offsetNode: HTMLElement;
|
offsetNode: HTMLElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.ScrollPanel")
|
|
||||||
export default class ScrollPanel extends React.Component<IProps> {
|
export default class ScrollPanel extends React.Component<IProps> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
stickyBottom: true,
|
stickyBottom: true,
|
||||||
|
|
|
@ -20,7 +20,6 @@ import { throttle } from 'lodash';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
import AccessibleButton from '../../components/views/elements/AccessibleButton';
|
import AccessibleButton from '../../components/views/elements/AccessibleButton';
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
import { getKeyBindingsManager } from "../../KeyBindingsManager";
|
||||||
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
||||||
|
|
||||||
|
@ -43,7 +42,6 @@ interface IState {
|
||||||
blurred: boolean;
|
blurred: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.SearchBox")
|
|
||||||
export default class SearchBox extends React.Component<IProps, IState> {
|
export default class SearchBox extends React.Component<IProps, IState> {
|
||||||
private search = createRef<HTMLInputElement>();
|
private search = createRef<HTMLInputElement>();
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import { _t } from '../../languageHandler';
|
import { _t } from '../../languageHandler';
|
||||||
import AutoHideScrollbar from './AutoHideScrollbar';
|
import AutoHideScrollbar from './AutoHideScrollbar';
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import AccessibleButton from "../views/elements/AccessibleButton";
|
import AccessibleButton from "../views/elements/AccessibleButton";
|
||||||
import { PosthogScreenTracker, ScreenName } from "../../PosthogTrackers";
|
import { PosthogScreenTracker, ScreenName } from "../../PosthogTrackers";
|
||||||
|
|
||||||
|
@ -64,7 +63,6 @@ interface IState {
|
||||||
activeTabIndex: number;
|
activeTabIndex: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.TabbedView")
|
|
||||||
export default class TabbedView extends React.Component<IProps, IState> {
|
export default class TabbedView extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -25,7 +25,6 @@ import classNames from "classnames";
|
||||||
|
|
||||||
import BaseCard from "../views/right_panel/BaseCard";
|
import BaseCard from "../views/right_panel/BaseCard";
|
||||||
import { RightPanelPhases } from "../../stores/right-panel/RightPanelStorePhases";
|
import { RightPanelPhases } from "../../stores/right-panel/RightPanelStorePhases";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import ResizeNotifier from '../../utils/ResizeNotifier';
|
import ResizeNotifier from '../../utils/ResizeNotifier';
|
||||||
import MessageComposer from '../views/rooms/MessageComposer';
|
import MessageComposer from '../views/rooms/MessageComposer';
|
||||||
import { RoomPermalinkCreator } from '../../utils/permalinks/Permalinks';
|
import { RoomPermalinkCreator } from '../../utils/permalinks/Permalinks';
|
||||||
|
@ -72,7 +71,6 @@ interface IState {
|
||||||
narrow: boolean;
|
narrow: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.ThreadView")
|
|
||||||
export default class ThreadView extends React.Component<IProps, IState> {
|
export default class ThreadView extends React.Component<IProps, IState> {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
public context!: React.ContextType<typeof RoomContext>;
|
public context!: React.ContextType<typeof RoomContext>;
|
||||||
|
|
|
@ -41,7 +41,6 @@ import { Action } from '../../dispatcher/actions';
|
||||||
import Timer from '../../utils/Timer';
|
import Timer from '../../utils/Timer';
|
||||||
import shouldHideEvent from '../../shouldHideEvent';
|
import shouldHideEvent from '../../shouldHideEvent';
|
||||||
import { haveTileForEvent } from "../views/rooms/EventTile";
|
import { haveTileForEvent } from "../views/rooms/EventTile";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import { arrayFastClone } from "../../utils/arrays";
|
import { arrayFastClone } from "../../utils/arrays";
|
||||||
import MessagePanel from "./MessagePanel";
|
import MessagePanel from "./MessagePanel";
|
||||||
import { IScrollState } from "./ScrollPanel";
|
import { IScrollState } from "./ScrollPanel";
|
||||||
|
@ -211,7 +210,6 @@ interface IEventIndexOpts {
|
||||||
*
|
*
|
||||||
* Also responsible for handling and sending read receipts.
|
* Also responsible for handling and sending read receipts.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("structures.TimelinePanel")
|
|
||||||
class TimelinePanel extends React.Component<IProps, IState> {
|
class TimelinePanel extends React.Component<IProps, IState> {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
|
|
||||||
|
|
|
@ -18,14 +18,12 @@ import * as React from "react";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
||||||
import ToastStore, { IToast } from "../../stores/ToastStore";
|
import ToastStore, { IToast } from "../../stores/ToastStore";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
toasts: IToast<any>[];
|
toasts: IToast<any>[];
|
||||||
countSeen: number;
|
countSeen: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.ToastContainer")
|
|
||||||
export default class ToastContainer extends React.Component<{}, IState> {
|
export default class ToastContainer extends React.Component<{}, IState> {
|
||||||
constructor(props, context) {
|
constructor(props, context) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
|
@ -27,7 +27,6 @@ import { Action } from "../../dispatcher/actions";
|
||||||
import ProgressBar from "../views/elements/ProgressBar";
|
import ProgressBar from "../views/elements/ProgressBar";
|
||||||
import AccessibleButton from "../views/elements/AccessibleButton";
|
import AccessibleButton from "../views/elements/AccessibleButton";
|
||||||
import { IUpload } from "../../models/IUpload";
|
import { IUpload } from "../../models/IUpload";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -40,7 +39,6 @@ interface IState {
|
||||||
uploadsHere: IUpload[];
|
uploadsHere: IUpload[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.UploadBar")
|
|
||||||
export default class UploadBar extends React.Component<IProps, IState> {
|
export default class UploadBar extends React.Component<IProps, IState> {
|
||||||
static contextType = MatrixClientContext;
|
static contextType = MatrixClientContext;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ import { UIFeature } from "../../settings/UIFeature";
|
||||||
import HostSignupAction from "./HostSignupAction";
|
import HostSignupAction from "./HostSignupAction";
|
||||||
import SpaceStore from "../../stores/spaces/SpaceStore";
|
import SpaceStore from "../../stores/spaces/SpaceStore";
|
||||||
import { UPDATE_SELECTED_SPACE } from "../../stores/spaces";
|
import { UPDATE_SELECTED_SPACE } from "../../stores/spaces";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
||||||
import { SettingUpdatedPayload } from "../../dispatcher/payloads/SettingUpdatedPayload";
|
import { SettingUpdatedPayload } from "../../dispatcher/payloads/SettingUpdatedPayload";
|
||||||
import UserIdentifierCustomisations from "../../customisations/UserIdentifier";
|
import UserIdentifierCustomisations from "../../customisations/UserIdentifier";
|
||||||
|
@ -143,7 +142,6 @@ const below = (rect: PartialDOMRect) => {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@replaceableComponent("structures.UserMenu")
|
|
||||||
export default class UserMenu extends React.Component<IProps, IState> {
|
export default class UserMenu extends React.Component<IProps, IState> {
|
||||||
private dispatcherRef: string;
|
private dispatcherRef: string;
|
||||||
private themeWatcherRef: string;
|
private themeWatcherRef: string;
|
||||||
|
|
|
@ -23,7 +23,6 @@ import { MatrixClientPeg } from "../../MatrixClientPeg";
|
||||||
import Modal from '../../Modal';
|
import Modal from '../../Modal';
|
||||||
import { _t } from '../../languageHandler';
|
import { _t } from '../../languageHandler';
|
||||||
import HomePage from "./HomePage";
|
import HomePage from "./HomePage";
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import ErrorDialog from "../views/dialogs/ErrorDialog";
|
import ErrorDialog from "../views/dialogs/ErrorDialog";
|
||||||
import MainSplit from "./MainSplit";
|
import MainSplit from "./MainSplit";
|
||||||
import RightPanel from "./RightPanel";
|
import RightPanel from "./RightPanel";
|
||||||
|
@ -41,7 +40,6 @@ interface IState {
|
||||||
member?: RoomMember;
|
member?: RoomMember;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.UserView")
|
|
||||||
export default class UserView extends React.Component<IProps, IState> {
|
export default class UserView extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -24,7 +24,6 @@ import { _t } from "../../languageHandler";
|
||||||
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../contexts/MatrixClientContext";
|
||||||
import { canEditContent } from "../../utils/EventUtils";
|
import { canEditContent } from "../../utils/EventUtils";
|
||||||
import { MatrixClientPeg } from '../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../MatrixClientPeg';
|
||||||
import { replaceableComponent } from "../../utils/replaceableComponent";
|
|
||||||
import { IDialogProps } from "../views/dialogs/IDialogProps";
|
import { IDialogProps } from "../views/dialogs/IDialogProps";
|
||||||
import BaseDialog from "../views/dialogs/BaseDialog";
|
import BaseDialog from "../views/dialogs/BaseDialog";
|
||||||
import { DevtoolsContext } from "../views/dialogs/devtools/BaseTool";
|
import { DevtoolsContext } from "../views/dialogs/devtools/BaseTool";
|
||||||
|
@ -39,7 +38,6 @@ interface IState {
|
||||||
isEditing: boolean;
|
isEditing: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.ViewSource")
|
|
||||||
export default class ViewSource extends React.Component<IProps, IState> {
|
export default class ViewSource extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -19,7 +19,6 @@ import React from 'react';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore';
|
import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore';
|
||||||
import SetupEncryptionBody from "./SetupEncryptionBody";
|
import SetupEncryptionBody from "./SetupEncryptionBody";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import AccessibleButton from '../../views/elements/AccessibleButton';
|
import AccessibleButton from '../../views/elements/AccessibleButton';
|
||||||
import CompleteSecurityBody from "../../views/auth/CompleteSecurityBody";
|
import CompleteSecurityBody from "../../views/auth/CompleteSecurityBody";
|
||||||
import AuthPage from "../../views/auth/AuthPage";
|
import AuthPage from "../../views/auth/AuthPage";
|
||||||
|
@ -33,7 +32,6 @@ interface IState {
|
||||||
lostKeys: boolean;
|
lostKeys: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.CompleteSecurity")
|
|
||||||
export default class CompleteSecurity extends React.Component<IProps, IState> {
|
export default class CompleteSecurity extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -19,7 +19,6 @@ import React from 'react';
|
||||||
import AuthPage from '../../views/auth/AuthPage';
|
import AuthPage from '../../views/auth/AuthPage';
|
||||||
import CompleteSecurityBody from '../../views/auth/CompleteSecurityBody';
|
import CompleteSecurityBody from '../../views/auth/CompleteSecurityBody';
|
||||||
import CreateCrossSigningDialog from '../../views/dialogs/security/CreateCrossSigningDialog';
|
import CreateCrossSigningDialog from '../../views/dialogs/security/CreateCrossSigningDialog';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
onFinished: () => void;
|
onFinished: () => void;
|
||||||
|
@ -27,7 +26,6 @@ interface IProps {
|
||||||
tokenLogin?: boolean;
|
tokenLogin?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.E2eSetup")
|
|
||||||
export default class E2eSetup extends React.Component<IProps> {
|
export default class E2eSetup extends React.Component<IProps> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -28,7 +28,6 @@ import AuthPage from "../../views/auth/AuthPage";
|
||||||
import ServerPicker from "../../views/elements/ServerPicker";
|
import ServerPicker from "../../views/elements/ServerPicker";
|
||||||
import EmailField from "../../views/auth/EmailField";
|
import EmailField from "../../views/auth/EmailField";
|
||||||
import PassphraseField from '../../views/auth/PassphraseField';
|
import PassphraseField from '../../views/auth/PassphraseField';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { PASSWORD_MIN_SCORE } from '../../views/auth/RegistrationForm';
|
import { PASSWORD_MIN_SCORE } from '../../views/auth/RegistrationForm';
|
||||||
import InlineSpinner from '../../views/elements/InlineSpinner';
|
import InlineSpinner from '../../views/elements/InlineSpinner';
|
||||||
import Spinner from "../../views/elements/Spinner";
|
import Spinner from "../../views/elements/Spinner";
|
||||||
|
@ -81,7 +80,6 @@ enum ForgotPasswordField {
|
||||||
PasswordConfirm = 'field_password_confirm',
|
PasswordConfirm = 'field_password_confirm',
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.ForgotPassword")
|
|
||||||
export default class ForgotPassword extends React.Component<IProps, IState> {
|
export default class ForgotPassword extends React.Component<IProps, IState> {
|
||||||
private reset: PasswordReset;
|
private reset: PasswordReset;
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ import InlineSpinner from "../../views/elements/InlineSpinner";
|
||||||
import Spinner from "../../views/elements/Spinner";
|
import Spinner from "../../views/elements/Spinner";
|
||||||
import SSOButtons from "../../views/elements/SSOButtons";
|
import SSOButtons from "../../views/elements/SSOButtons";
|
||||||
import ServerPicker from "../../views/elements/ServerPicker";
|
import ServerPicker from "../../views/elements/ServerPicker";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import AuthBody from "../../views/auth/AuthBody";
|
import AuthBody from "../../views/auth/AuthBody";
|
||||||
import AuthHeader from "../../views/auth/AuthHeader";
|
import AuthHeader from "../../views/auth/AuthHeader";
|
||||||
import AccessibleButton from '../../views/elements/AccessibleButton';
|
import AccessibleButton from '../../views/elements/AccessibleButton';
|
||||||
|
@ -103,7 +102,6 @@ interface IState {
|
||||||
/*
|
/*
|
||||||
* A wire component which glues together login UI components and Login logic
|
* A wire component which glues together login UI components and Login logic
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("structures.auth.LoginComponent")
|
|
||||||
export default class LoginComponent extends React.PureComponent<IProps, IState> {
|
export default class LoginComponent extends React.PureComponent<IProps, IState> {
|
||||||
private unmounted = false;
|
private unmounted = false;
|
||||||
private loginLogic: Login;
|
private loginLogic: Login;
|
||||||
|
|
|
@ -30,7 +30,6 @@ import Login, { ISSOFlow } from "../../../Login";
|
||||||
import dis from "../../../dispatcher/dispatcher";
|
import dis from "../../../dispatcher/dispatcher";
|
||||||
import SSOButtons from "../../views/elements/SSOButtons";
|
import SSOButtons from "../../views/elements/SSOButtons";
|
||||||
import ServerPicker from '../../views/elements/ServerPicker';
|
import ServerPicker from '../../views/elements/ServerPicker';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import RegistrationForm from '../../views/auth/RegistrationForm';
|
import RegistrationForm from '../../views/auth/RegistrationForm';
|
||||||
import AccessibleButton from '../../views/elements/AccessibleButton';
|
import AccessibleButton from '../../views/elements/AccessibleButton';
|
||||||
import AuthBody from "../../views/auth/AuthBody";
|
import AuthBody from "../../views/auth/AuthBody";
|
||||||
|
@ -110,7 +109,6 @@ interface IState {
|
||||||
ssoFlow?: ISSOFlow;
|
ssoFlow?: ISSOFlow;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.Registration")
|
|
||||||
export default class Registration extends React.Component<IProps, IState> {
|
export default class Registration extends React.Component<IProps, IState> {
|
||||||
loginLogic: Login;
|
loginLogic: Login;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import VerificationRequestDialog from '../../views/dialogs/VerificationRequestDialog';
|
import VerificationRequestDialog from '../../views/dialogs/VerificationRequestDialog';
|
||||||
import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore';
|
import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import EncryptionPanel from "../../views/right_panel/EncryptionPanel";
|
import EncryptionPanel from "../../views/right_panel/EncryptionPanel";
|
||||||
import AccessibleButton from '../../views/elements/AccessibleButton';
|
import AccessibleButton from '../../views/elements/AccessibleButton';
|
||||||
import Spinner from '../../views/elements/Spinner';
|
import Spinner from '../../views/elements/Spinner';
|
||||||
|
@ -49,7 +48,6 @@ interface IState {
|
||||||
lostKeys: boolean;
|
lostKeys: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.SetupEncryptionBody")
|
|
||||||
export default class SetupEncryptionBody extends React.Component<IProps, IState> {
|
export default class SetupEncryptionBody extends React.Component<IProps, IState> {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -27,7 +27,6 @@ import { ISSOFlow, LoginFlow, sendLoginRequest } from "../../../Login";
|
||||||
import AuthPage from "../../views/auth/AuthPage";
|
import AuthPage from "../../views/auth/AuthPage";
|
||||||
import { SSO_HOMESERVER_URL_KEY, SSO_ID_SERVER_URL_KEY } from "../../../BasePlatform";
|
import { SSO_HOMESERVER_URL_KEY, SSO_ID_SERVER_URL_KEY } from "../../../BasePlatform";
|
||||||
import SSOButtons from "../../views/elements/SSOButtons";
|
import SSOButtons from "../../views/elements/SSOButtons";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import ConfirmWipeDeviceDialog from '../../views/dialogs/ConfirmWipeDeviceDialog';
|
import ConfirmWipeDeviceDialog from '../../views/dialogs/ConfirmWipeDeviceDialog';
|
||||||
import Field from '../../views/elements/Field';
|
import Field from '../../views/elements/Field';
|
||||||
import AccessibleButton from '../../views/elements/AccessibleButton';
|
import AccessibleButton from '../../views/elements/AccessibleButton';
|
||||||
|
@ -70,7 +69,6 @@ interface IState {
|
||||||
flows: LoginFlow[];
|
flows: LoginFlow[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.SoftLogout")
|
|
||||||
export default class SoftLogout extends React.Component<IProps, IState> {
|
export default class SoftLogout extends React.Component<IProps, IState> {
|
||||||
public constructor(props: IProps) {
|
public constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React, { createRef, ReactNode, RefObject } from "react";
|
import React, { createRef, ReactNode, RefObject } from "react";
|
||||||
|
|
||||||
import PlayPauseButton from "./PlayPauseButton";
|
import PlayPauseButton from "./PlayPauseButton";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { formatBytes } from "../../../utils/FormattingUtils";
|
import { formatBytes } from "../../../utils/FormattingUtils";
|
||||||
import DurationClock from "./DurationClock";
|
import DurationClock from "./DurationClock";
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
|
@ -27,7 +26,6 @@ import AudioPlayerBase from "./AudioPlayerBase";
|
||||||
import { getKeyBindingsManager } from "../../../KeyBindingsManager";
|
import { getKeyBindingsManager } from "../../../KeyBindingsManager";
|
||||||
import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts";
|
import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts";
|
||||||
|
|
||||||
@replaceableComponent("views.audio_messages.AudioPlayer")
|
|
||||||
export default class AudioPlayer extends AudioPlayerBase {
|
export default class AudioPlayer extends AudioPlayerBase {
|
||||||
private playPauseRef: RefObject<PlayPauseButton> = createRef();
|
private playPauseRef: RefObject<PlayPauseButton> = createRef();
|
||||||
private seekRef: RefObject<SeekBar> = createRef();
|
private seekRef: RefObject<SeekBar> = createRef();
|
||||||
|
|
|
@ -19,7 +19,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import { Playback, PlaybackState } from "../../../audio/Playback";
|
import { Playback, PlaybackState } from "../../../audio/Playback";
|
||||||
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -35,7 +34,6 @@ interface IState {
|
||||||
error?: boolean;
|
error?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.audio_messages.AudioPlayerBase")
|
|
||||||
export default abstract class AudioPlayerBase extends React.PureComponent<IProps, IState> {
|
export default abstract class AudioPlayerBase extends React.PureComponent<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React, { HTMLProps } from "react";
|
import React, { HTMLProps } from "react";
|
||||||
|
|
||||||
import { formatSeconds } from "../../../DateUtils";
|
import { formatSeconds } from "../../../DateUtils";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
export interface IProps extends Pick<HTMLProps<HTMLSpanElement>, "aria-live"> {
|
export interface IProps extends Pick<HTMLProps<HTMLSpanElement>, "aria-live"> {
|
||||||
seconds: number;
|
seconds: number;
|
||||||
|
@ -27,7 +26,6 @@ export interface IProps extends Pick<HTMLProps<HTMLSpanElement>, "aria-live"> {
|
||||||
* Simply converts seconds into minutes and seconds. Note that hours will not be
|
* Simply converts seconds into minutes and seconds. Note that hours will not be
|
||||||
* displayed, making it possible to see "82:29".
|
* displayed, making it possible to see "82:29".
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.Clock")
|
|
||||||
export default class Clock extends React.Component<IProps> {
|
export default class Clock extends React.Component<IProps> {
|
||||||
public constructor(props) {
|
public constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Clock from "./Clock";
|
import Clock from "./Clock";
|
||||||
import { Playback } from "../../../audio/Playback";
|
import { Playback } from "../../../audio/Playback";
|
||||||
|
|
||||||
|
@ -31,7 +30,6 @@ interface IState {
|
||||||
/**
|
/**
|
||||||
* A clock which shows a clip's maximum duration.
|
* A clock which shows a clip's maximum duration.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.DurationClock")
|
|
||||||
export default class DurationClock extends React.PureComponent<IProps, IState> {
|
export default class DurationClock extends React.PureComponent<IProps, IState> {
|
||||||
public constructor(props) {
|
public constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { IRecordingUpdate, VoiceRecording } from "../../../audio/VoiceRecording";
|
import { IRecordingUpdate, VoiceRecording } from "../../../audio/VoiceRecording";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Clock from "./Clock";
|
import Clock from "./Clock";
|
||||||
import { MarkedExecution } from "../../../utils/MarkedExecution";
|
import { MarkedExecution } from "../../../utils/MarkedExecution";
|
||||||
|
|
||||||
|
@ -32,7 +31,6 @@ interface IState {
|
||||||
/**
|
/**
|
||||||
* A clock for a live recording.
|
* A clock for a live recording.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.LiveRecordingClock")
|
|
||||||
export default class LiveRecordingClock extends React.PureComponent<IProps, IState> {
|
export default class LiveRecordingClock extends React.PureComponent<IProps, IState> {
|
||||||
private seconds = 0;
|
private seconds = 0;
|
||||||
private scheduledUpdate = new MarkedExecution(
|
private scheduledUpdate = new MarkedExecution(
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { IRecordingUpdate, RECORDING_PLAYBACK_SAMPLES, VoiceRecording } from "../../../audio/VoiceRecording";
|
import { IRecordingUpdate, RECORDING_PLAYBACK_SAMPLES, VoiceRecording } from "../../../audio/VoiceRecording";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { arrayFastResample, arraySeed } from "../../../utils/arrays";
|
import { arrayFastResample, arraySeed } from "../../../utils/arrays";
|
||||||
import Waveform from "./Waveform";
|
import Waveform from "./Waveform";
|
||||||
import { MarkedExecution } from "../../../utils/MarkedExecution";
|
import { MarkedExecution } from "../../../utils/MarkedExecution";
|
||||||
|
@ -33,7 +32,6 @@ interface IState {
|
||||||
/**
|
/**
|
||||||
* A waveform which shows the waveform of a live recording
|
* A waveform which shows the waveform of a live recording
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.LiveRecordingWaveform")
|
|
||||||
export default class LiveRecordingWaveform extends React.PureComponent<IProps, IState> {
|
export default class LiveRecordingWaveform extends React.PureComponent<IProps, IState> {
|
||||||
public static defaultProps = {
|
public static defaultProps = {
|
||||||
progress: 1,
|
progress: 1,
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React, { ReactNode } from "react";
|
import React, { ReactNode } from "react";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import { Playback, PlaybackState } from "../../../audio/Playback";
|
import { Playback, PlaybackState } from "../../../audio/Playback";
|
||||||
|
@ -35,7 +34,6 @@ interface IProps extends Omit<React.ComponentProps<typeof AccessibleTooltipButto
|
||||||
* Displays a play/pause button (activating the play/pause function of the recorder)
|
* Displays a play/pause button (activating the play/pause function of the recorder)
|
||||||
* to be displayed in reference to a recording.
|
* to be displayed in reference to a recording.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.PlayPauseButton")
|
|
||||||
export default class PlayPauseButton extends React.PureComponent<IProps> {
|
export default class PlayPauseButton extends React.PureComponent<IProps> {
|
||||||
public constructor(props) {
|
public constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Clock from "./Clock";
|
import Clock from "./Clock";
|
||||||
import { Playback, PlaybackState } from "../../../audio/Playback";
|
import { Playback, PlaybackState } from "../../../audio/Playback";
|
||||||
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
||||||
|
@ -39,7 +38,6 @@ interface IState {
|
||||||
/**
|
/**
|
||||||
* A clock for a playback of a recording.
|
* A clock for a playback of a recording.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.PlaybackClock")
|
|
||||||
export default class PlaybackClock extends React.PureComponent<IProps, IState> {
|
export default class PlaybackClock extends React.PureComponent<IProps, IState> {
|
||||||
public constructor(props) {
|
public constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { arraySeed, arrayTrimFill } from "../../../utils/arrays";
|
import { arraySeed, arrayTrimFill } from "../../../utils/arrays";
|
||||||
import Waveform from "./Waveform";
|
import Waveform from "./Waveform";
|
||||||
import { Playback, PLAYBACK_WAVEFORM_SAMPLES } from "../../../audio/Playback";
|
import { Playback, PLAYBACK_WAVEFORM_SAMPLES } from "../../../audio/Playback";
|
||||||
|
@ -34,7 +33,6 @@ interface IState {
|
||||||
/**
|
/**
|
||||||
* A waveform which shows the waveform of a previously recorded recording
|
* A waveform which shows the waveform of a previously recorded recording
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.PlaybackWaveform")
|
|
||||||
export default class PlaybackWaveform extends React.PureComponent<IProps, IState> {
|
export default class PlaybackWaveform extends React.PureComponent<IProps, IState> {
|
||||||
public constructor(props) {
|
public constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -18,12 +18,10 @@ import React, { ReactNode } from "react";
|
||||||
|
|
||||||
import PlayPauseButton from "./PlayPauseButton";
|
import PlayPauseButton from "./PlayPauseButton";
|
||||||
import PlaybackClock from "./PlaybackClock";
|
import PlaybackClock from "./PlaybackClock";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import PlaybackWaveform from "./PlaybackWaveform";
|
import PlaybackWaveform from "./PlaybackWaveform";
|
||||||
import AudioPlayerBase from "./AudioPlayerBase";
|
import AudioPlayerBase from "./AudioPlayerBase";
|
||||||
import RoomContext, { TimelineRenderingType } from "../../../contexts/RoomContext";
|
import RoomContext, { TimelineRenderingType } from "../../../contexts/RoomContext";
|
||||||
|
|
||||||
@replaceableComponent("views.audio_messages.RecordingPlayback")
|
|
||||||
export default class RecordingPlayback extends AudioPlayerBase {
|
export default class RecordingPlayback extends AudioPlayerBase {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
public context!: React.ContextType<typeof RoomContext>;
|
public context!: React.ContextType<typeof RoomContext>;
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React, { ChangeEvent, CSSProperties, ReactNode } from "react";
|
import React, { ChangeEvent, CSSProperties, ReactNode } from "react";
|
||||||
|
|
||||||
import { Playback, PlaybackState } from "../../../audio/Playback";
|
import { Playback, PlaybackState } from "../../../audio/Playback";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { MarkedExecution } from "../../../utils/MarkedExecution";
|
import { MarkedExecution } from "../../../utils/MarkedExecution";
|
||||||
import { percentageOf } from "../../../utils/numbers";
|
import { percentageOf } from "../../../utils/numbers";
|
||||||
|
|
||||||
|
@ -43,7 +42,6 @@ interface ISeekCSS extends CSSProperties {
|
||||||
|
|
||||||
const ARROW_SKIP_SECONDS = 5; // arbitrary
|
const ARROW_SKIP_SECONDS = 5; // arbitrary
|
||||||
|
|
||||||
@replaceableComponent("views.audio_messages.SeekBar")
|
|
||||||
export default class SeekBar extends React.PureComponent<IProps, IState> {
|
export default class SeekBar extends React.PureComponent<IProps, IState> {
|
||||||
// We use an animation frame request to avoid overly spamming prop updates, even if we aren't
|
// We use an animation frame request to avoid overly spamming prop updates, even if we aren't
|
||||||
// really using anything demanding on the CSS front.
|
// really using anything demanding on the CSS front.
|
||||||
|
|
|
@ -17,8 +17,6 @@ limitations under the License.
|
||||||
import React, { CSSProperties } from "react";
|
import React, { CSSProperties } from "react";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface WaveformCSSProperties extends CSSProperties {
|
interface WaveformCSSProperties extends CSSProperties {
|
||||||
'--barHeight': number;
|
'--barHeight': number;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +37,6 @@ interface IState {
|
||||||
* For CSS purposes, a mx_Waveform_bar_100pct class is added when the bar should be
|
* For CSS purposes, a mx_Waveform_bar_100pct class is added when the bar should be
|
||||||
* "filled", as a demonstration of the progress property.
|
* "filled", as a demonstration of the progress property.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.audio_messages.Waveform")
|
|
||||||
export default class Waveform extends React.PureComponent<IProps, IState> {
|
export default class Waveform extends React.PureComponent<IProps, IState> {
|
||||||
public static defaultProps = {
|
public static defaultProps = {
|
||||||
progress: 1,
|
progress: 1,
|
||||||
|
|
|
@ -16,9 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
@replaceableComponent("views.auth.AuthBody")
|
|
||||||
export default class AuthBody extends React.PureComponent {
|
export default class AuthBody extends React.PureComponent {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
return <div className="mx_AuthBody">
|
return <div className="mx_AuthBody">
|
||||||
|
|
|
@ -19,9 +19,7 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
@replaceableComponent("views.auth.AuthFooter")
|
|
||||||
export default class AuthFooter extends React.Component {
|
export default class AuthFooter extends React.Component {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import AuthHeaderLogo from "./AuthHeaderLogo";
|
import AuthHeaderLogo from "./AuthHeaderLogo";
|
||||||
import LanguageSelector from "./LanguageSelector";
|
import LanguageSelector from "./LanguageSelector";
|
||||||
|
|
||||||
|
@ -25,7 +24,6 @@ interface IProps {
|
||||||
disableLanguageSelector?: boolean;
|
disableLanguageSelector?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.AuthHeader")
|
|
||||||
export default class AuthHeader extends React.Component<IProps> {
|
export default class AuthHeader extends React.Component<IProps> {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -16,9 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
@replaceableComponent("views.auth.AuthHeaderLogo")
|
|
||||||
export default class AuthHeaderLogo extends React.PureComponent {
|
export default class AuthHeaderLogo extends React.PureComponent {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
return <div className="mx_AuthHeaderLogo">
|
return <div className="mx_AuthHeaderLogo">
|
||||||
|
|
|
@ -18,10 +18,8 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import AuthFooter from "./AuthFooter";
|
import AuthFooter from "./AuthFooter";
|
||||||
|
|
||||||
@replaceableComponent("views.auth.AuthPage")
|
|
||||||
export default class AuthPage extends React.PureComponent {
|
export default class AuthPage extends React.PureComponent {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -18,7 +18,6 @@ import React, { createRef } from 'react';
|
||||||
import { logger } from "matrix-js-sdk/src/logger";
|
import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
const DIV_ID = 'mx_recaptcha';
|
const DIV_ID = 'mx_recaptcha';
|
||||||
|
|
||||||
|
@ -35,7 +34,6 @@ interface ICaptchaFormState {
|
||||||
/**
|
/**
|
||||||
* A pure UI component which displays a captcha form.
|
* A pure UI component which displays a captcha form.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.auth.CaptchaForm")
|
|
||||||
export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICaptchaFormState> {
|
export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICaptchaFormState> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
onCaptchaResponse: () => {},
|
onCaptchaResponse: () => {},
|
||||||
|
|
|
@ -16,9 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
@replaceableComponent("views.auth.CompleteSecurityBody")
|
|
||||||
export default class CompleteSecurityBody extends React.PureComponent {
|
export default class CompleteSecurityBody extends React.PureComponent {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
return <div className="mx_CompleteSecurityBody">
|
return <div className="mx_CompleteSecurityBody">
|
||||||
|
|
|
@ -19,7 +19,6 @@ import React from 'react';
|
||||||
import { COUNTRIES, getEmojiFlag, PhoneNumberCountryDefinition } from '../../../phonenumber';
|
import { COUNTRIES, getEmojiFlag, PhoneNumberCountryDefinition } from '../../../phonenumber';
|
||||||
import SdkConfig from "../../../SdkConfig";
|
import SdkConfig from "../../../SdkConfig";
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Dropdown from "../elements/Dropdown";
|
import Dropdown from "../elements/Dropdown";
|
||||||
|
|
||||||
const COUNTRIES_BY_ISO2 = {};
|
const COUNTRIES_BY_ISO2 = {};
|
||||||
|
@ -53,7 +52,6 @@ interface IState {
|
||||||
defaultCountry: PhoneNumberCountryDefinition;
|
defaultCountry: PhoneNumberCountryDefinition;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.CountryDropdown")
|
|
||||||
export default class CountryDropdown extends React.Component<IProps, IState> {
|
export default class CountryDropdown extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React, { PureComponent, RefCallback, RefObject } from "react";
|
import React, { PureComponent, RefCallback, RefObject } from "react";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Field, { IInputProps } from "../elements/Field";
|
import Field, { IInputProps } from "../elements/Field";
|
||||||
import { _t, _td } from "../../../languageHandler";
|
import { _t, _td } from "../../../languageHandler";
|
||||||
import withValidation, { IFieldState, IValidationResult } from "../elements/Validation";
|
import withValidation, { IFieldState, IValidationResult } from "../elements/Validation";
|
||||||
|
@ -39,7 +38,6 @@ interface IProps extends Omit<IInputProps, "onValidate"> {
|
||||||
onValidate?(result: IValidationResult): void;
|
onValidate?(result: IValidationResult): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.EmailField")
|
|
||||||
class EmailField extends PureComponent<IProps> {
|
class EmailField extends PureComponent<IProps> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
label: _td("Email"),
|
label: _td("Email"),
|
||||||
|
|
|
@ -24,7 +24,6 @@ import { _t } from '../../../languageHandler';
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import AccessibleButton from "../elements/AccessibleButton";
|
import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import Spinner from "../elements/Spinner";
|
import Spinner from "../elements/Spinner";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { LocalisedPolicy, Policies } from '../../../Terms';
|
import { LocalisedPolicy, Policies } from '../../../Terms';
|
||||||
import Field from '../elements/Field';
|
import Field from '../elements/Field';
|
||||||
import CaptchaForm from "./CaptchaForm";
|
import CaptchaForm from "./CaptchaForm";
|
||||||
|
@ -93,7 +92,6 @@ interface IPasswordAuthEntryState {
|
||||||
password: string;
|
password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.PasswordAuthEntry")
|
|
||||||
export class PasswordAuthEntry extends React.Component<IAuthEntryProps, IPasswordAuthEntryState> {
|
export class PasswordAuthEntry extends React.Component<IAuthEntryProps, IPasswordAuthEntryState> {
|
||||||
static LOGIN_TYPE = AuthType.Password;
|
static LOGIN_TYPE = AuthType.Password;
|
||||||
|
|
||||||
|
@ -191,7 +189,6 @@ interface IRecaptchaAuthEntryProps extends IAuthEntryProps {
|
||||||
}
|
}
|
||||||
/* eslint-enable camelcase */
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
@replaceableComponent("views.auth.RecaptchaAuthEntry")
|
|
||||||
export class RecaptchaAuthEntry extends React.Component<IRecaptchaAuthEntryProps> {
|
export class RecaptchaAuthEntry extends React.Component<IRecaptchaAuthEntryProps> {
|
||||||
static LOGIN_TYPE = AuthType.Recaptcha;
|
static LOGIN_TYPE = AuthType.Recaptcha;
|
||||||
|
|
||||||
|
@ -262,7 +259,6 @@ interface ITermsAuthEntryState {
|
||||||
errorText?: string;
|
errorText?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.TermsAuthEntry")
|
|
||||||
export class TermsAuthEntry extends React.Component<ITermsAuthEntryProps, ITermsAuthEntryState> {
|
export class TermsAuthEntry extends React.Component<ITermsAuthEntryProps, ITermsAuthEntryState> {
|
||||||
static LOGIN_TYPE = AuthType.Terms;
|
static LOGIN_TYPE = AuthType.Terms;
|
||||||
|
|
||||||
|
@ -409,7 +405,6 @@ interface IEmailIdentityAuthEntryProps extends IAuthEntryProps {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.EmailIdentityAuthEntry")
|
|
||||||
export class EmailIdentityAuthEntry extends React.Component<IEmailIdentityAuthEntryProps> {
|
export class EmailIdentityAuthEntry extends React.Component<IEmailIdentityAuthEntryProps> {
|
||||||
static LOGIN_TYPE = AuthType.Email;
|
static LOGIN_TYPE = AuthType.Email;
|
||||||
|
|
||||||
|
@ -472,7 +467,6 @@ interface IMsisdnAuthEntryState {
|
||||||
errorText: string;
|
errorText: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.MsisdnAuthEntry")
|
|
||||||
export class MsisdnAuthEntry extends React.Component<IMsisdnAuthEntryProps, IMsisdnAuthEntryState> {
|
export class MsisdnAuthEntry extends React.Component<IMsisdnAuthEntryProps, IMsisdnAuthEntryState> {
|
||||||
static LOGIN_TYPE = AuthType.Msisdn;
|
static LOGIN_TYPE = AuthType.Msisdn;
|
||||||
|
|
||||||
|
@ -623,7 +617,6 @@ interface ISSOAuthEntryState {
|
||||||
attemptFailed: boolean;
|
attemptFailed: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.SSOAuthEntry")
|
|
||||||
export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEntryState> {
|
export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEntryState> {
|
||||||
static LOGIN_TYPE = AuthType.Sso;
|
static LOGIN_TYPE = AuthType.Sso;
|
||||||
static UNSTABLE_LOGIN_TYPE = AuthType.SsoUnstable;
|
static UNSTABLE_LOGIN_TYPE = AuthType.SsoUnstable;
|
||||||
|
@ -743,7 +736,6 @@ export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.FallbackAuthEntry")
|
|
||||||
export class FallbackAuthEntry extends React.Component<IAuthEntryProps> {
|
export class FallbackAuthEntry extends React.Component<IAuthEntryProps> {
|
||||||
private popupWindow: Window;
|
private popupWindow: Window;
|
||||||
private fallbackButton = createRef<HTMLButtonElement>();
|
private fallbackButton = createRef<HTMLButtonElement>();
|
||||||
|
|
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React, { PureComponent, RefCallback, RefObject } from "react";
|
import React, { PureComponent, RefCallback, RefObject } from "react";
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Field, { IInputProps } from "../elements/Field";
|
import Field, { IInputProps } from "../elements/Field";
|
||||||
import withValidation, { IFieldState, IValidationResult } from "../elements/Validation";
|
import withValidation, { IFieldState, IValidationResult } from "../elements/Validation";
|
||||||
import { _t, _td } from "../../../languageHandler";
|
import { _t, _td } from "../../../languageHandler";
|
||||||
|
@ -35,7 +34,6 @@ interface IProps extends Omit<IInputProps, "onValidate"> {
|
||||||
onValidate?(result: IValidationResult);
|
onValidate?(result: IValidationResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.EmailField")
|
|
||||||
class PassphraseConfirmField extends PureComponent<IProps> {
|
class PassphraseConfirmField extends PureComponent<IProps> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
label: _td("Confirm password"),
|
label: _td("Confirm password"),
|
||||||
|
|
|
@ -22,7 +22,6 @@ import SdkConfig from "../../../SdkConfig";
|
||||||
import withValidation, { IFieldState, IValidationResult } from "../elements/Validation";
|
import withValidation, { IFieldState, IValidationResult } from "../elements/Validation";
|
||||||
import { _t, _td } from "../../../languageHandler";
|
import { _t, _td } from "../../../languageHandler";
|
||||||
import Field, { IInputProps } from "../elements/Field";
|
import Field, { IInputProps } from "../elements/Field";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps extends Omit<IInputProps, "onValidate"> {
|
interface IProps extends Omit<IInputProps, "onValidate"> {
|
||||||
autoFocus?: boolean;
|
autoFocus?: boolean;
|
||||||
|
@ -41,7 +40,6 @@ interface IProps extends Omit<IInputProps, "onValidate"> {
|
||||||
onValidate?(result: IValidationResult);
|
onValidate?(result: IValidationResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.PassphraseField")
|
|
||||||
class PassphraseField extends PureComponent<IProps> {
|
class PassphraseField extends PureComponent<IProps> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
label: _td("Password"),
|
label: _td("Password"),
|
||||||
|
|
|
@ -24,7 +24,6 @@ import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import withValidation, { IValidationResult } from "../elements/Validation";
|
import withValidation, { IValidationResult } from "../elements/Validation";
|
||||||
import Field from "../elements/Field";
|
import Field from "../elements/Field";
|
||||||
import CountryDropdown from "./CountryDropdown";
|
import CountryDropdown from "./CountryDropdown";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import EmailField from "./EmailField";
|
import EmailField from "./EmailField";
|
||||||
|
|
||||||
// For validating phone numbers without country codes
|
// For validating phone numbers without country codes
|
||||||
|
@ -66,7 +65,6 @@ enum LoginField {
|
||||||
* A pure UI component which displays a username/password form.
|
* A pure UI component which displays a username/password form.
|
||||||
* The email/username/phone fields are fully-controlled, the password field is not.
|
* The email/username/phone fields are fully-controlled, the password field is not.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.auth.PasswordLogin")
|
|
||||||
export default class PasswordLogin extends React.PureComponent<IProps, IState> {
|
export default class PasswordLogin extends React.PureComponent<IProps, IState> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
onUsernameChanged: function() {},
|
onUsernameChanged: function() {},
|
||||||
|
|
|
@ -31,7 +31,6 @@ import EmailField from "./EmailField";
|
||||||
import PassphraseField from "./PassphraseField";
|
import PassphraseField from "./PassphraseField";
|
||||||
import Field from '../elements/Field';
|
import Field from '../elements/Field';
|
||||||
import RegistrationEmailPromptDialog from '../dialogs/RegistrationEmailPromptDialog';
|
import RegistrationEmailPromptDialog from '../dialogs/RegistrationEmailPromptDialog';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import CountryDropdown from "./CountryDropdown";
|
import CountryDropdown from "./CountryDropdown";
|
||||||
import PassphraseConfirmField from "./PassphraseConfirmField";
|
import PassphraseConfirmField from "./PassphraseConfirmField";
|
||||||
|
|
||||||
|
@ -92,7 +91,6 @@ interface IState {
|
||||||
/*
|
/*
|
||||||
* A pure UI component which displays a registration form.
|
* A pure UI component which displays a registration form.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.auth.RegistrationForm")
|
|
||||||
export default class RegistrationForm extends React.PureComponent<IProps, IState> {
|
export default class RegistrationForm extends React.PureComponent<IProps, IState> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
onValidationChange: logger.error,
|
onValidationChange: logger.error,
|
||||||
|
|
|
@ -23,7 +23,6 @@ import AuthPage from "./AuthPage";
|
||||||
import { _td } from "../../../languageHandler";
|
import { _td } from "../../../languageHandler";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import { UIFeature } from "../../../settings/UIFeature";
|
import { UIFeature } from "../../../settings/UIFeature";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import LanguageSelector from "./LanguageSelector";
|
import LanguageSelector from "./LanguageSelector";
|
||||||
|
|
||||||
// translatable strings for Welcome pages
|
// translatable strings for Welcome pages
|
||||||
|
@ -33,7 +32,6 @@ interface IProps {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.auth.Welcome")
|
|
||||||
export default class Welcome extends React.PureComponent<IProps> {
|
export default class Welcome extends React.PureComponent<IProps> {
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
// FIXME: Using an import will result in wrench-element-tests failures
|
// FIXME: Using an import will result in wrench-element-tests failures
|
||||||
|
|
|
@ -32,7 +32,6 @@ import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import TextWithTooltip from "../elements/TextWithTooltip";
|
import TextWithTooltip from "../elements/TextWithTooltip";
|
||||||
import DMRoomMap from "../../../utils/DMRoomMap";
|
import DMRoomMap from "../../../utils/DMRoomMap";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { IOOBData } from "../../../stores/ThreepidInviteStore";
|
import { IOOBData } from "../../../stores/ThreepidInviteStore";
|
||||||
import TooltipTarget from "../elements/TooltipTarget";
|
import TooltipTarget from "../elements/TooltipTarget";
|
||||||
|
|
||||||
|
@ -78,7 +77,6 @@ function tooltipText(variant: Icon) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.avatars.DecoratedRoomAvatar")
|
|
||||||
export default class DecoratedRoomAvatar extends React.PureComponent<IProps, IState> {
|
export default class DecoratedRoomAvatar extends React.PureComponent<IProps, IState> {
|
||||||
private _dmUser: User;
|
private _dmUser: User;
|
||||||
private isUnmounted = false;
|
private isUnmounted = false;
|
||||||
|
|
|
@ -23,7 +23,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
import dis from "../../../dispatcher/dispatcher";
|
import dis from "../../../dispatcher/dispatcher";
|
||||||
import { Action } from "../../../dispatcher/actions";
|
import { Action } from "../../../dispatcher/actions";
|
||||||
import BaseAvatar from "./BaseAvatar";
|
import BaseAvatar from "./BaseAvatar";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { mediaFromMxc } from "../../../customisations/Media";
|
import { mediaFromMxc } from "../../../customisations/Media";
|
||||||
import { CardContext } from '../right_panel/BaseCard';
|
import { CardContext } from '../right_panel/BaseCard';
|
||||||
import UserIdentifierCustomisations from '../../../customisations/UserIdentifier';
|
import UserIdentifierCustomisations from '../../../customisations/UserIdentifier';
|
||||||
|
@ -52,7 +51,6 @@ interface IState {
|
||||||
imageUrl?: string;
|
imageUrl?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.avatars.MemberAvatar")
|
|
||||||
export default class MemberAvatar extends React.PureComponent<IProps, IState> {
|
export default class MemberAvatar extends React.PureComponent<IProps, IState> {
|
||||||
public static defaultProps = {
|
public static defaultProps = {
|
||||||
width: 40,
|
width: 40,
|
||||||
|
|
|
@ -28,7 +28,6 @@ import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import * as Avatar from '../../../Avatar';
|
import * as Avatar from '../../../Avatar';
|
||||||
import DMRoomMap from "../../../utils/DMRoomMap";
|
import DMRoomMap from "../../../utils/DMRoomMap";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { mediaFromMxc } from "../../../customisations/Media";
|
import { mediaFromMxc } from "../../../customisations/Media";
|
||||||
import { IOOBData } from '../../../stores/ThreepidInviteStore';
|
import { IOOBData } from '../../../stores/ThreepidInviteStore';
|
||||||
|
|
||||||
|
@ -52,7 +51,6 @@ interface IState {
|
||||||
urls: string[];
|
urls: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.avatars.RoomAvatar")
|
|
||||||
export default class RoomAvatar extends React.Component<IProps, IState> {
|
export default class RoomAvatar extends React.Component<IProps, IState> {
|
||||||
public static defaultProps = {
|
public static defaultProps = {
|
||||||
width: 36,
|
width: 36,
|
||||||
|
|
|
@ -21,13 +21,11 @@ import { MatrixCall } from 'matrix-js-sdk/src/webrtc/call';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import ContextMenu, { IProps as IContextMenuProps, MenuItem } from '../../structures/ContextMenu';
|
import ContextMenu, { IProps as IContextMenuProps, MenuItem } from '../../structures/ContextMenu';
|
||||||
import CallHandler from '../../../CallHandler';
|
import CallHandler from '../../../CallHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps extends IContextMenuProps {
|
interface IProps extends IContextMenuProps {
|
||||||
call: MatrixCall;
|
call: MatrixCall;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.context_menus.CallContextMenu")
|
|
||||||
export default class CallContextMenu extends React.Component<IProps> {
|
export default class CallContextMenu extends React.Component<IProps> {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
// js-sdk User object. Not required because it might not exist.
|
// js-sdk User object. Not required because it might not exist.
|
||||||
|
|
|
@ -22,7 +22,6 @@ import AccessibleButton, { ButtonEvent } from "../elements/AccessibleButton";
|
||||||
import ContextMenu, { IProps as IContextMenuProps } from '../../structures/ContextMenu';
|
import ContextMenu, { IProps as IContextMenuProps } from '../../structures/ContextMenu';
|
||||||
import Field from "../elements/Field";
|
import Field from "../elements/Field";
|
||||||
import DialPad from '../voip/DialPad';
|
import DialPad from '../voip/DialPad';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps extends IContextMenuProps {
|
interface IProps extends IContextMenuProps {
|
||||||
call: MatrixCall;
|
call: MatrixCall;
|
||||||
|
@ -32,7 +31,6 @@ interface IState {
|
||||||
value: string;
|
value: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.context_menus.DialpadContextMenu")
|
|
||||||
export default class DialpadContextMenu extends React.Component<IProps, IState> {
|
export default class DialpadContextMenu extends React.Component<IProps, IState> {
|
||||||
private numberEntryFieldRef: React.RefObject<Field> = createRef();
|
private numberEntryFieldRef: React.RefObject<Field> = createRef();
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
element: React.ReactNode;
|
element: React.ReactNode;
|
||||||
// Function to be called when the parent window is resized
|
// Function to be called when the parent window is resized
|
||||||
|
@ -30,7 +28,6 @@ interface IProps {
|
||||||
* This component can be used to display generic HTML content in a contextual
|
* This component can be used to display generic HTML content in a contextual
|
||||||
* menu.
|
* menu.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.context_menus.GenericElementContextMenu")
|
|
||||||
export default class GenericElementContextMenu extends React.Component<IProps> {
|
export default class GenericElementContextMenu extends React.Component<IProps> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -16,13 +16,10 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
message: string;
|
message: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.context_menus.GenericTextContextMenu")
|
|
||||||
export default class GenericTextContextMenu extends React.Component<IProps> {
|
export default class GenericTextContextMenu extends React.Component<IProps> {
|
||||||
public render(): JSX.Element {
|
public render(): JSX.Element {
|
||||||
return <div className="mx_Tooltip mx_Tooltip_visible" style={{ display: "block" }}>
|
return <div className="mx_Tooltip mx_Tooltip_visible" style={{ display: "block" }}>
|
||||||
|
|
|
@ -32,7 +32,6 @@ import SettingsStore from '../../../settings/SettingsStore';
|
||||||
import { isUrlPermitted } from '../../../HtmlUtils';
|
import { isUrlPermitted } from '../../../HtmlUtils';
|
||||||
import { isContentActionable } from '../../../utils/EventUtils';
|
import { isContentActionable } from '../../../utils/EventUtils';
|
||||||
import IconizedContextMenu, { IconizedContextMenuOption, IconizedContextMenuOptionList } from './IconizedContextMenu';
|
import IconizedContextMenu, { IconizedContextMenuOption, IconizedContextMenuOptionList } from './IconizedContextMenu';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { ReadPinsEventId } from "../right_panel/PinnedMessagesCard";
|
import { ReadPinsEventId } from "../right_panel/PinnedMessagesCard";
|
||||||
import ForwardDialog from "../dialogs/ForwardDialog";
|
import ForwardDialog from "../dialogs/ForwardDialog";
|
||||||
import { Action } from "../../../dispatcher/actions";
|
import { Action } from "../../../dispatcher/actions";
|
||||||
|
@ -88,7 +87,6 @@ interface IState {
|
||||||
canPin: boolean;
|
canPin: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.context_menus.MessageContextMenu")
|
|
||||||
export default class MessageContextMenu extends React.Component<IProps, IState> {
|
export default class MessageContextMenu extends React.Component<IProps, IState> {
|
||||||
static contextType = RoomContext;
|
static contextType = RoomContext;
|
||||||
public context!: React.ContextType<typeof RoomContext>;
|
public context!: React.ContextType<typeof RoomContext>;
|
||||||
|
|
|
@ -19,7 +19,6 @@ import React from 'react';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import { SettingLevel } from "../../../settings/SettingLevel";
|
import { SettingLevel } from "../../../settings/SettingLevel";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -32,7 +31,6 @@ interface IProps {
|
||||||
onFinished: (success: boolean) => void;
|
onFinished: (success: boolean) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.AskInviteAnywayDialog")
|
|
||||||
export default class AskInviteAnywayDialog extends React.Component<IProps> {
|
export default class AskInviteAnywayDialog extends React.Component<IProps> {
|
||||||
private onInviteClicked = (): void => {
|
private onInviteClicked = (): void => {
|
||||||
this.props.onInviteAnyways();
|
this.props.onInviteAnyways();
|
||||||
|
|
|
@ -25,7 +25,6 @@ import AccessibleButton, { ButtonEvent } from '../elements/AccessibleButton';
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Heading from '../typography/Heading';
|
import Heading from '../typography/Heading';
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import { PosthogScreenTracker, ScreenName } from "../../../PosthogTrackers";
|
import { PosthogScreenTracker, ScreenName } from "../../../PosthogTrackers";
|
||||||
|
@ -81,7 +80,6 @@ interface IProps extends IDialogProps {
|
||||||
* Includes a div for the title, and a keypress handler which cancels the
|
* Includes a div for the title, and a keypress handler which cancels the
|
||||||
* dialog on escape.
|
* dialog on escape.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.dialogs.BaseDialog")
|
|
||||||
export default class BaseDialog extends React.Component<IProps> {
|
export default class BaseDialog extends React.Component<IProps> {
|
||||||
private matrixClient: MatrixClient;
|
private matrixClient: MatrixClient;
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ import Modal from '../../../Modal';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import sendBugReport, { downloadBugReport } from '../../../rageshake/submit-rageshake';
|
import sendBugReport, { downloadBugReport } from '../../../rageshake/submit-rageshake';
|
||||||
import AccessibleButton from "../elements/AccessibleButton";
|
import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import QuestionDialog from "./QuestionDialog";
|
import QuestionDialog from "./QuestionDialog";
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import Field from '../elements/Field';
|
import Field from '../elements/Field';
|
||||||
|
@ -50,7 +49,6 @@ interface IState {
|
||||||
downloadProgress: string;
|
downloadProgress: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.BugReportDialog")
|
|
||||||
export default class BugReportDialog extends React.Component<IProps, IState> {
|
export default class BugReportDialog extends React.Component<IProps, IState> {
|
||||||
private unmounted: boolean;
|
private unmounted: boolean;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import ConfirmRedactDialog from './ConfirmRedactDialog';
|
import ConfirmRedactDialog from './ConfirmRedactDialog';
|
||||||
import ErrorDialog from './ErrorDialog';
|
import ErrorDialog from './ErrorDialog';
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
@ -45,7 +44,6 @@ interface IState {
|
||||||
*
|
*
|
||||||
* To avoid this, we keep the dialog open as long as /redact is in progress.
|
* To avoid this, we keep the dialog open as long as /redact is in progress.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.dialogs.ConfirmAndWaitRedactDialog")
|
|
||||||
export default class ConfirmAndWaitRedactDialog extends React.PureComponent<IProps, IState> {
|
export default class ConfirmAndWaitRedactDialog extends React.PureComponent<IProps, IState> {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -20,7 +20,6 @@ import React from 'react';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import ErrorDialog from './ErrorDialog';
|
import ErrorDialog from './ErrorDialog';
|
||||||
import TextInputDialog from "./TextInputDialog";
|
import TextInputDialog from "./TextInputDialog";
|
||||||
|
|
||||||
|
@ -31,7 +30,6 @@ interface IProps {
|
||||||
/*
|
/*
|
||||||
* A dialog for confirming a redaction.
|
* A dialog for confirming a redaction.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.dialogs.ConfirmRedactDialog")
|
|
||||||
export default class ConfirmRedactDialog extends React.Component<IProps> {
|
export default class ConfirmRedactDialog extends React.Component<IProps> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -19,7 +19,6 @@ import { RoomMember } from "matrix-js-sdk/src/models/room-member";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import MemberAvatar from '../avatars/MemberAvatar';
|
import MemberAvatar from '../avatars/MemberAvatar';
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import DialogButtons from "../elements/DialogButtons";
|
import DialogButtons from "../elements/DialogButtons";
|
||||||
|
@ -55,7 +54,6 @@ interface IState {
|
||||||
* to make it obvious what is going to happen.
|
* to make it obvious what is going to happen.
|
||||||
* Also tweaks the style for 'dangerous' actions (albeit only with colour)
|
* Also tweaks the style for 'dangerous' actions (albeit only with colour)
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.dialogs.ConfirmUserActionDialog")
|
|
||||||
export default class ConfirmUserActionDialog extends React.Component<IProps, IState> {
|
export default class ConfirmUserActionDialog extends React.Component<IProps, IState> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
danger: false,
|
danger: false,
|
||||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import DialogButtons from "../elements/DialogButtons";
|
import DialogButtons from "../elements/DialogButtons";
|
||||||
|
|
||||||
|
@ -25,7 +24,6 @@ interface IProps {
|
||||||
onFinished: (success: boolean) => void;
|
onFinished: (success: boolean) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ConfirmWipeDeviceDialog")
|
|
||||||
export default class ConfirmWipeDeviceDialog extends React.Component<IProps> {
|
export default class ConfirmWipeDeviceDialog extends React.Component<IProps> {
|
||||||
private onConfirm = (): void => {
|
private onConfirm = (): void => {
|
||||||
this.props.onFinished(true);
|
this.props.onFinished(true);
|
||||||
|
|
|
@ -26,7 +26,6 @@ import withValidation, { IFieldState } from '../elements/Validation';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import { IOpts, privateShouldBeEncrypted } from "../../../createRoom";
|
import { IOpts, privateShouldBeEncrypted } from "../../../createRoom";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Heading from "../typography/Heading";
|
import Heading from "../typography/Heading";
|
||||||
import Field from "../elements/Field";
|
import Field from "../elements/Field";
|
||||||
import StyledRadioGroup from "../elements/StyledRadioGroup";
|
import StyledRadioGroup from "../elements/StyledRadioGroup";
|
||||||
|
@ -61,7 +60,6 @@ interface IState {
|
||||||
canChangeEncryption: boolean;
|
canChangeEncryption: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.CreateRoomDialog")
|
|
||||||
export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
||||||
private readonly supportsRestricted: boolean;
|
private readonly supportsRestricted: boolean;
|
||||||
private nameField = createRef<Field>();
|
private nameField = createRef<Field>();
|
||||||
|
|
|
@ -26,7 +26,6 @@ import { _t } from '../../../languageHandler';
|
||||||
import InteractiveAuth, { ERROR_USER_CANCELLED } from "../../structures/InteractiveAuth";
|
import InteractiveAuth, { ERROR_USER_CANCELLED } from "../../structures/InteractiveAuth";
|
||||||
import { DEFAULT_PHASE, PasswordAuthEntry, SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
|
import { DEFAULT_PHASE, PasswordAuthEntry, SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
|
||||||
import StyledCheckbox from "../elements/StyledCheckbox";
|
import StyledCheckbox from "../elements/StyledCheckbox";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -46,7 +45,6 @@ interface IState {
|
||||||
continueKind: string;
|
continueKind: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.DeactivateAccountDialog")
|
|
||||||
export default class DeactivateAccountDialog extends React.Component<IProps, IState> {
|
export default class DeactivateAccountDialog extends React.Component<IProps, IState> {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -28,7 +28,6 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -44,7 +43,6 @@ interface IState {
|
||||||
onFinished: (success: boolean) => void;
|
onFinished: (success: boolean) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ErrorDialog")
|
|
||||||
export default class ErrorDialog extends React.Component<IProps, IState> {
|
export default class ErrorDialog extends React.Component<IProps, IState> {
|
||||||
public static defaultProps = {
|
public static defaultProps = {
|
||||||
focus: true,
|
focus: true,
|
||||||
|
|
|
@ -32,7 +32,6 @@ import {
|
||||||
IPostmessageResponseData,
|
IPostmessageResponseData,
|
||||||
PostmessageAction,
|
PostmessageAction,
|
||||||
} from "./HostSignupDialogTypes";
|
} from "./HostSignupDialogTypes";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { IConfigOptions } from "../../../IConfigOptions";
|
import { IConfigOptions } from "../../../IConfigOptions";
|
||||||
import { SnakedObject } from "../../../utils/SnakedObject";
|
import { SnakedObject } from "../../../utils/SnakedObject";
|
||||||
|
|
||||||
|
@ -46,7 +45,6 @@ interface IState {
|
||||||
minimized: boolean;
|
minimized: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.HostSignupDialog")
|
|
||||||
export default class HostSignupDialog extends React.PureComponent<IProps, IState> {
|
export default class HostSignupDialog extends React.PureComponent<IProps, IState> {
|
||||||
private iframeRef: React.RefObject<HTMLIFrameElement> = React.createRef();
|
private iframeRef: React.RefObject<HTMLIFrameElement> = React.createRef();
|
||||||
private readonly config: SnakedObject<IConfigOptions["host_signup"]>;
|
private readonly config: SnakedObject<IConfigOptions["host_signup"]>;
|
||||||
|
|
|
@ -21,7 +21,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { mediaFromMxc } from "../../../customisations/Media";
|
import { mediaFromMxc } from "../../../customisations/Media";
|
||||||
import VerificationComplete from "../verification/VerificationComplete";
|
import VerificationComplete from "../verification/VerificationComplete";
|
||||||
import VerificationCancelled from "../verification/VerificationCancelled";
|
import VerificationCancelled from "../verification/VerificationCancelled";
|
||||||
|
@ -54,7 +53,6 @@ interface IState {
|
||||||
sas: IGeneratedSas;
|
sas: IGeneratedSas;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.IncomingSasDialog")
|
|
||||||
export default class IncomingSasDialog extends React.Component<IProps, IState> {
|
export default class IncomingSasDialog extends React.Component<IProps, IState> {
|
||||||
private showSasEvent: ISasEvent;
|
private showSasEvent: ISasEvent;
|
||||||
|
|
||||||
|
|
|
@ -19,14 +19,12 @@ import React from 'react';
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import dis from '../../../dispatcher/dispatcher';
|
import dis from '../../../dispatcher/dispatcher';
|
||||||
import { Action } from "../../../dispatcher/actions";
|
import { Action } from "../../../dispatcher/actions";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import DialogButtons from "../elements/DialogButtons";
|
import DialogButtons from "../elements/DialogButtons";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
|
|
||||||
interface IProps extends IDialogProps {}
|
interface IProps extends IDialogProps {}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.IntegrationsDisabledDialog")
|
|
||||||
export default class IntegrationsDisabledDialog extends React.Component<IProps> {
|
export default class IntegrationsDisabledDialog extends React.Component<IProps> {
|
||||||
private onAcknowledgeClick = (): void => {
|
private onAcknowledgeClick = (): void => {
|
||||||
this.props.onFinished();
|
this.props.onFinished();
|
||||||
|
|
|
@ -18,14 +18,12 @@ import React from 'react';
|
||||||
|
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import SdkConfig from "../../../SdkConfig";
|
import SdkConfig from "../../../SdkConfig";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import DialogButtons from "../elements/DialogButtons";
|
import DialogButtons from "../elements/DialogButtons";
|
||||||
|
|
||||||
interface IProps extends IDialogProps {}
|
interface IProps extends IDialogProps {}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.IntegrationsImpossibleDialog")
|
|
||||||
export default class IntegrationsImpossibleDialog extends React.Component<IProps> {
|
export default class IntegrationsImpossibleDialog extends React.Component<IProps> {
|
||||||
private onAcknowledgeClick = (): void => {
|
private onAcknowledgeClick = (): void => {
|
||||||
this.props.onFinished();
|
this.props.onFinished();
|
||||||
|
|
|
@ -24,7 +24,6 @@ import { _t } from '../../../languageHandler';
|
||||||
import AccessibleButton from '../elements/AccessibleButton';
|
import AccessibleButton from '../elements/AccessibleButton';
|
||||||
import InteractiveAuth, { ERROR_USER_CANCELLED } from "../../structures/InteractiveAuth";
|
import InteractiveAuth, { ERROR_USER_CANCELLED } from "../../structures/InteractiveAuth";
|
||||||
import { SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
|
import { SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
|
|
||||||
|
@ -83,7 +82,6 @@ interface IState {
|
||||||
uiaStagePhase: number | string;
|
uiaStagePhase: number | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.InteractiveAuthDialog")
|
|
||||||
export default class InteractiveAuthDialog extends React.Component<IProps, IState> {
|
export default class InteractiveAuthDialog extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -49,7 +49,6 @@ import { DefaultTagID } from "../../../stores/room-list/models";
|
||||||
import RoomListStore from "../../../stores/room-list/RoomListStore";
|
import RoomListStore from "../../../stores/room-list/RoomListStore";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import { UIFeature } from "../../../settings/UIFeature";
|
import { UIFeature } from "../../../settings/UIFeature";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { mediaFromMxc } from "../../../customisations/Media";
|
import { mediaFromMxc } from "../../../customisations/Media";
|
||||||
import { getAddressType } from "../../../UserAddress";
|
import { getAddressType } from "../../../UserAddress";
|
||||||
import BaseAvatar from '../avatars/BaseAvatar';
|
import BaseAvatar from '../avatars/BaseAvatar';
|
||||||
|
@ -387,7 +386,6 @@ interface IInviteDialogState {
|
||||||
errorText: string;
|
errorText: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.InviteDialog")
|
|
||||||
export default class InviteDialog extends React.PureComponent<IInviteDialogProps, IInviteDialogState> {
|
export default class InviteDialog extends React.PureComponent<IInviteDialogProps, IInviteDialogState> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
kind: KIND_DM,
|
kind: KIND_DM,
|
||||||
|
|
|
@ -24,7 +24,6 @@ import dis from '../../../dispatcher/dispatcher';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import RestoreKeyBackupDialog from './security/RestoreKeyBackupDialog';
|
import RestoreKeyBackupDialog from './security/RestoreKeyBackupDialog';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import QuestionDialog from "./QuestionDialog";
|
import QuestionDialog from "./QuestionDialog";
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import Spinner from "../elements/Spinner";
|
import Spinner from "../elements/Spinner";
|
||||||
|
@ -41,7 +40,6 @@ interface IState {
|
||||||
error?: string;
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.LogoutDialog")
|
|
||||||
export default class LogoutDialog extends React.Component<IProps, IState> {
|
export default class LogoutDialog extends React.Component<IProps, IState> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
onFinished: function() {},
|
onFinished: function() {},
|
||||||
|
|
|
@ -24,7 +24,6 @@ import { DeviceInfo } from "matrix-js-sdk/src/crypto/deviceinfo";
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import * as FormattingUtils from '../../../utils/FormattingUtils';
|
import * as FormattingUtils from '../../../utils/FormattingUtils';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import QuestionDialog from "./QuestionDialog";
|
import QuestionDialog from "./QuestionDialog";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
|
|
||||||
|
@ -33,7 +32,6 @@ interface IProps extends IDialogProps {
|
||||||
device: DeviceInfo;
|
device: DeviceInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ManualDeviceKeyVerificationDialog")
|
|
||||||
export default class ManualDeviceKeyVerificationDialog extends React.Component<IProps> {
|
export default class ManualDeviceKeyVerificationDialog extends React.Component<IProps> {
|
||||||
private onLegacyFinished = (confirm: boolean): void => {
|
private onLegacyFinished = (confirm: boolean): void => {
|
||||||
if (confirm) {
|
if (confirm) {
|
||||||
|
|
|
@ -25,7 +25,6 @@ import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { wantsDateSeparator } from '../../../DateUtils';
|
import { wantsDateSeparator } from '../../../DateUtils';
|
||||||
import SettingsStore from '../../../settings/SettingsStore';
|
import SettingsStore from '../../../settings/SettingsStore';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import ScrollPanel from "../../structures/ScrollPanel";
|
import ScrollPanel from "../../structures/ScrollPanel";
|
||||||
import Spinner from "../elements/Spinner";
|
import Spinner from "../elements/Spinner";
|
||||||
|
@ -48,7 +47,6 @@ interface IState {
|
||||||
isTwelveHour: boolean;
|
isTwelveHour: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.MessageEditHistoryDialog")
|
|
||||||
export default class MessageEditHistoryDialog extends React.PureComponent<IProps, IState> {
|
export default class MessageEditHistoryDialog extends React.PureComponent<IProps, IState> {
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -39,7 +39,6 @@ import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import { OwnProfileStore } from "../../../stores/OwnProfileStore";
|
import { OwnProfileStore } from "../../../stores/OwnProfileStore";
|
||||||
import { arrayFastClone } from "../../../utils/arrays";
|
import { arrayFastClone } from "../../../utils/arrays";
|
||||||
import { ElementWidget } from "../../../stores/widgets/StopGapWidget";
|
import { ElementWidget } from "../../../stores/widgets/StopGapWidget";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { ELEMENT_CLIENT_ID } from "../../../identifiers";
|
import { ELEMENT_CLIENT_ID } from "../../../identifiers";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
|
|
||||||
|
@ -57,7 +56,6 @@ interface IState {
|
||||||
|
|
||||||
const MAX_BUTTONS = 3;
|
const MAX_BUTTONS = 3;
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ModalWidgetDialog")
|
|
||||||
export default class ModalWidgetDialog extends React.PureComponent<IProps, IState> {
|
export default class ModalWidgetDialog extends React.PureComponent<IProps, IState> {
|
||||||
private readonly widget: Widget;
|
private readonly widget: Widget;
|
||||||
private readonly possibleButtons: ModalButtonID[];
|
private readonly possibleButtons: ModalButtonID[];
|
||||||
|
|
|
@ -23,7 +23,6 @@ import { IDialogProps } from "./IDialogProps";
|
||||||
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import SdkConfig from '../../../SdkConfig';
|
import SdkConfig from '../../../SdkConfig';
|
||||||
import Markdown from '../../../Markdown';
|
import Markdown from '../../../Markdown';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import StyledRadioButton from "../elements/StyledRadioButton";
|
import StyledRadioButton from "../elements/StyledRadioButton";
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
@ -89,7 +88,6 @@ type Moderation = {
|
||||||
* a well-formed state event `m.room.moderation.moderated_by`
|
* a well-formed state event `m.room.moderation.moderated_by`
|
||||||
* /`org.matrix.msc3215.room.moderation.moderated_by`?
|
* /`org.matrix.msc3215.room.moderation.moderated_by`?
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.dialogs.ReportEventDialog")
|
|
||||||
export default class ReportEventDialog extends React.Component<IProps, IState> {
|
export default class ReportEventDialog extends React.Component<IProps, IState> {
|
||||||
// If the room supports moderation, the moderation information.
|
// If the room supports moderation, the moderation information.
|
||||||
private moderation?: Moderation;
|
private moderation?: Moderation;
|
||||||
|
|
|
@ -30,7 +30,6 @@ import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import dis from "../../../dispatcher/dispatcher";
|
import dis from "../../../dispatcher/dispatcher";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import { UIFeature } from "../../../settings/UIFeature";
|
import { UIFeature } from "../../../settings/UIFeature";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import { Action } from '../../../dispatcher/actions';
|
import { Action } from '../../../dispatcher/actions';
|
||||||
|
|
||||||
|
@ -51,7 +50,6 @@ interface IState {
|
||||||
roomName: string;
|
roomName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.RoomSettingsDialog")
|
|
||||||
export default class RoomSettingsDialog extends React.Component<IProps, IState> {
|
export default class RoomSettingsDialog extends React.Component<IProps, IState> {
|
||||||
private dispatcherRef: string;
|
private dispatcherRef: string;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ import { Room } from "matrix-js-sdk/src/models/room";
|
||||||
|
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { upgradeRoom } from "../../../utils/RoomUpgrade";
|
import { upgradeRoom } from "../../../utils/RoomUpgrade";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
@ -35,7 +34,6 @@ interface IState {
|
||||||
busy: boolean;
|
busy: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.RoomUpgradeDialog")
|
|
||||||
export default class RoomUpgradeDialog extends React.Component<IProps, IState> {
|
export default class RoomUpgradeDialog extends React.Component<IProps, IState> {
|
||||||
private targetVersion: string;
|
private targetVersion: string;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ import SdkConfig from "../../../SdkConfig";
|
||||||
import LabelledToggleSwitch from "../elements/LabelledToggleSwitch";
|
import LabelledToggleSwitch from "../elements/LabelledToggleSwitch";
|
||||||
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import Modal from "../../../Modal";
|
import Modal from "../../../Modal";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import BugReportDialog from './BugReportDialog';
|
import BugReportDialog from './BugReportDialog';
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
@ -50,7 +49,6 @@ interface IState {
|
||||||
total?: number;
|
total?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.RoomUpgradeWarningDialog")
|
|
||||||
export default class RoomUpgradeWarningDialog extends React.Component<IProps, IState> {
|
export default class RoomUpgradeWarningDialog extends React.Component<IProps, IState> {
|
||||||
private readonly isPrivate: boolean;
|
private readonly isPrivate: boolean;
|
||||||
private readonly currentVersion: string;
|
private readonly currentVersion: string;
|
||||||
|
|
|
@ -29,12 +29,10 @@ import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
||||||
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps extends IDialogProps {
|
interface IProps extends IDialogProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ServerOfflineDialog")
|
|
||||||
export default class ServerOfflineDialog extends React.PureComponent<IProps> {
|
export default class ServerOfflineDialog extends React.PureComponent<IProps> {
|
||||||
public componentDidMount() {
|
public componentDidMount() {
|
||||||
EchoStore.instance.on(UPDATE_EVENT, this.onEchosUpdated);
|
EchoStore.instance.on(UPDATE_EVENT, this.onEchosUpdated);
|
||||||
|
|
|
@ -27,7 +27,6 @@ import Field from "../elements/Field";
|
||||||
import StyledRadioButton from "../elements/StyledRadioButton";
|
import StyledRadioButton from "../elements/StyledRadioButton";
|
||||||
import TextWithTooltip from "../elements/TextWithTooltip";
|
import TextWithTooltip from "../elements/TextWithTooltip";
|
||||||
import withValidation, { IFieldState } from "../elements/Validation";
|
import withValidation, { IFieldState } from "../elements/Validation";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
title?: string;
|
title?: string;
|
||||||
|
@ -40,7 +39,6 @@ interface IState {
|
||||||
otherHomeserver: string;
|
otherHomeserver: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ServerPickerDialog")
|
|
||||||
export default class ServerPickerDialog extends React.PureComponent<IProps, IState> {
|
export default class ServerPickerDialog extends React.PureComponent<IProps, IState> {
|
||||||
private readonly defaultServer: ValidatedServerConfig;
|
private readonly defaultServer: ValidatedServerConfig;
|
||||||
private readonly fieldRef = createRef<Field>();
|
private readonly fieldRef = createRef<Field>();
|
||||||
|
|
|
@ -17,12 +17,10 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import DialogButtons from "../elements/DialogButtons";
|
import DialogButtons from "../elements/DialogButtons";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.SeshatResetDialog")
|
|
||||||
export default class SeshatResetDialog extends React.PureComponent<IDialogProps> {
|
export default class SeshatResetDialog extends React.PureComponent<IDialogProps> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -21,7 +21,6 @@ import React from 'react';
|
||||||
import SdkConfig from '../../../SdkConfig';
|
import SdkConfig from '../../../SdkConfig';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import QuestionDialog from "./QuestionDialog";
|
import QuestionDialog from "./QuestionDialog";
|
||||||
import BugReportDialog from "./BugReportDialog";
|
import BugReportDialog from "./BugReportDialog";
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
|
@ -32,7 +31,6 @@ interface IProps extends IDialogProps {
|
||||||
error: Error;
|
error: Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.SessionRestoreErrorDialog")
|
|
||||||
export default class SessionRestoreErrorDialog extends React.Component<IProps> {
|
export default class SessionRestoreErrorDialog extends React.Component<IProps> {
|
||||||
private sendBugReport = (): void => {
|
private sendBugReport = (): void => {
|
||||||
Modal.createTrackedDialog('Session Restore Error', 'Send Bug Report Dialog', BugReportDialog, {
|
Modal.createTrackedDialog('Session Restore Error', 'Send Bug Report Dialog', BugReportDialog, {
|
||||||
|
|
|
@ -22,7 +22,6 @@ import * as Email from '../../../email';
|
||||||
import AddThreepid from '../../../AddThreepid';
|
import AddThreepid from '../../../AddThreepid';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import Spinner from "../elements/Spinner";
|
import Spinner from "../elements/Spinner";
|
||||||
import ErrorDialog from "./ErrorDialog";
|
import ErrorDialog from "./ErrorDialog";
|
||||||
import QuestionDialog from "./QuestionDialog";
|
import QuestionDialog from "./QuestionDialog";
|
||||||
|
@ -44,7 +43,6 @@ interface IState {
|
||||||
*
|
*
|
||||||
* On success, `onFinished(true)` is called.
|
* On success, `onFinished(true)` is called.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.dialogs.SetEmailDialog")
|
|
||||||
export default class SetEmailDialog extends React.Component<IProps, IState> {
|
export default class SetEmailDialog extends React.Component<IProps, IState> {
|
||||||
private addThreepid: AddThreepid;
|
private addThreepid: AddThreepid;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ import StyledCheckbox from '../elements/StyledCheckbox';
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import { UIFeature } from "../../../settings/UIFeature";
|
import { UIFeature } from "../../../settings/UIFeature";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import CopyableText from "../elements/CopyableText";
|
import CopyableText from "../elements/CopyableText";
|
||||||
|
|
||||||
|
@ -71,7 +70,6 @@ interface IState {
|
||||||
permalinkCreator: RoomPermalinkCreator;
|
permalinkCreator: RoomPermalinkCreator;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.ShareDialog")
|
|
||||||
export default class ShareDialog extends React.PureComponent<IProps, IState> {
|
export default class ShareDialog extends React.PureComponent<IProps, IState> {
|
||||||
protected closeCopiedTooltip: () => void;
|
protected closeCopiedTooltip: () => void;
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue