Merge pull request #41 from element-hq/t3chguy/wat/230.1

This commit is contained in:
Michael Telatynski 2024-09-26 09:56:08 +01:00 committed by GitHub
commit 3f67819275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 121 additions and 107 deletions

View file

@ -16,7 +16,7 @@ Please see LICENSE files in the repository root for full details.
padding: 25px 60px; padding: 25px 60px;
box-sizing: border-box; box-sizing: border-box;
b { strong {
font-weight: var(--cpd-font-weight-semibold); font-weight: var(--cpd-font-weight-semibold);
} }

View file

@ -141,7 +141,7 @@ export default class IdentityAuthClient {
"terms|identity_server_no_terms_description_1", "terms|identity_server_no_terms_description_1",
{}, {},
{ {
server: () => <b>{abbreviateUrl(identityServerUrl)}</b>, server: () => <strong>{abbreviateUrl(identityServerUrl)}</strong>,
}, },
)} )}
</p> </p>

View file

@ -145,7 +145,7 @@ export function showAnyInviteErrors(
"invite|room_failed_partial", "invite|room_failed_partial",
{}, {},
{ {
RoomName: () => <b>{room.name}</b>, RoomName: () => <strong>{room.name}</strong>,
}, },
)} )}
</h4> </h4>

View file

@ -46,7 +46,7 @@ export const CheckEmail: React.FC<CheckEmailProps> = ({
<EMailPromptIcon className="mx_AuthBody_emailPromptIcon--shifted" /> <EMailPromptIcon className="mx_AuthBody_emailPromptIcon--shifted" />
<h1>{_t("auth|uia|email_auth_header")}</h1> <h1>{_t("auth|uia|email_auth_header")}</h1>
<div className="mx_AuthBody_text"> <div className="mx_AuthBody_text">
<p>{_t("auth|check_email_explainer", { email: email }, { b: (t) => <b>{t}</b> })}</p> <p>{_t("auth|check_email_explainer", { email: email }, { b: (t) => <strong>{t}</strong> })}</p>
<div className="mx_AuthBody_did-not-receive"> <div className="mx_AuthBody_did-not-receive">
<span className="mx_VerifyEMailDialog_text-light">{_t("auth|check_email_wrong_email_prompt")}</span> <span className="mx_VerifyEMailDialog_text-light">{_t("auth|check_email_wrong_email_prompt")}</span>
<AccessibleButton className="mx_AuthBody_resend-button" kind="link" onClick={onReEnterEmailClick}> <AccessibleButton className="mx_AuthBody_resend-button" kind="link" onClick={onReEnterEmailClick}>

View file

@ -57,7 +57,7 @@ export const EnterEmail: React.FC<EnterEmailProps> = ({
<EmailIcon className="mx_AuthBody_icon" /> <EmailIcon className="mx_AuthBody_icon" />
<h1>{_t("auth|enter_email_heading")}</h1> <h1>{_t("auth|enter_email_heading")}</h1>
<p className="mx_AuthBody_text"> <p className="mx_AuthBody_text">
{_t("auth|enter_email_explainer", { homeserver }, { b: (t) => <b>{t}</b> })} {_t("auth|enter_email_explainer", { homeserver }, { b: (t) => <strong>{t}</strong> })}
</p> </p>
<form onSubmit={onSubmit}> <form onSubmit={onSubmit}>
<fieldset disabled={loading}> <fieldset disabled={loading}>

View file

@ -50,7 +50,7 @@ export const VerifyEmailModal: React.FC<Props> = ({
email, email,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
)} )}
</p> </p>

View file

@ -468,7 +468,7 @@ export class EmailIdentityAuthEntry extends React.Component<
/> />
<p> <p>
{_t("auth|uia|email", { {_t("auth|uia|email", {
emailAddress: <b>{this.props.inputs.emailAddress}</b>, emailAddress: <strong>{this.props.inputs.emailAddress}</strong>,
})} })}
</p> </p>
{this.state.requesting ? ( {this.state.requesting ? (

View file

@ -293,7 +293,7 @@ export default class LoginWithQRFlow extends React.Component<XOR<Props, MSC3906P
</li> </li>
<li> <li>
{_t("auth|qr_code_login|select_qr_code", { {_t("auth|qr_code_login|select_qr_code", {
scanQRCode: <b>{_t("auth|qr_code_login|scan_qr_code")}</b>, scanQRCode: <strong>{_t("auth|qr_code_login|scan_qr_code")}</strong>,
})} })}
</li> </li>
<li>{_t("auth|qr_code_login|point_the_camera")}</li> <li>{_t("auth|qr_code_login|point_the_camera")}</li>

View file

@ -72,8 +72,8 @@ export const AnalyticsLearnMoreDialog: React.FC<IProps> = ({
{_t("analytics|pseudonymous_usage_data", { analyticsOwner })} {_t("analytics|pseudonymous_usage_data", { analyticsOwner })}
</div> </div>
<ul className="mx_AnalyticsLearnMore_bullets"> <ul className="mx_AnalyticsLearnMore_bullets">
<li>{_t("analytics|bullet_1", {}, { Bold: (sub) => <b>{sub}</b> })}</li> <li>{_t("analytics|bullet_1", {}, { Bold: (sub) => <strong>{sub}</strong> })}</li>
<li>{_t("analytics|bullet_2", {}, { Bold: (sub) => <b>{sub}</b> })}</li> <li>{_t("analytics|bullet_2", {}, { Bold: (sub) => <strong>{sub}</strong> })}</li>
<li>{_t("analytics|disable_prompt")}</li> <li>{_t("analytics|disable_prompt")}</li>
</ul> </ul>
{privacyPolicyLink} {privacyPolicyLink}

View file

@ -205,7 +205,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
) { ) {
warning = ( warning = (
<p> <p>
<b>{_t("bug_reporting|unsupported_browser")}</b> <strong>{_t("bug_reporting|unsupported_browser")}</strong>
</p> </p>
); );
} }
@ -221,7 +221,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
{warning} {warning}
<p>{_t("bug_reporting|description")}</p> <p>{_t("bug_reporting|description")}</p>
<p> <p>
<b> <strong>
{_t( {_t(
"bug_reporting|before_submitting", "bug_reporting|before_submitting",
{}, {},
@ -237,7 +237,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
), ),
}, },
)} )}
</b> </strong>
</p> </p>
<div className="mx_BugReportDialog_download"> <div className="mx_BugReportDialog_download">

View file

@ -280,7 +280,9 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
"create_room|join_rule_restricted_label", "create_room|join_rule_restricted_label",
{}, {},
{ {
SpaceName: () => <b>{this.props.parentSpace?.name ?? _t("common|unnamed_space")}</b>, SpaceName: () => (
<strong>{this.props.parentSpace?.name ?? _t("common|unnamed_space")}</strong>
),
}, },
)} )}
&nbsp; &nbsp;
@ -294,7 +296,9 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
"create_room|join_rule_public_parent_space_label", "create_room|join_rule_public_parent_space_label",
{}, {},
{ {
SpaceName: () => <b>{this.props.parentSpace?.name ?? _t("common|unnamed_space")}</b>, SpaceName: () => (
<strong>{this.props.parentSpace?.name ?? _t("common|unnamed_space")}</strong>
),
}, },
)} )}
&nbsp; &nbsp;

View file

@ -95,7 +95,7 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ space, onAddExistingSpaceClick
"create_space|subspace_join_rule_restricted_description", "create_space|subspace_join_rule_restricted_description",
{}, {},
{ {
SpaceName: () => <b>{parentSpace.name}</b>, SpaceName: () => <strong>{parentSpace.name}</strong>,
}, },
)} )}
</p> </p>
@ -107,7 +107,7 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ space, onAddExistingSpaceClick
"create_space|subspace_join_rule_public_description", "create_space|subspace_join_rule_public_description",
{}, {},
{ {
SpaceName: () => <b>{parentSpace.name}</b>, SpaceName: () => <strong>{parentSpace.name}</strong>,
}, },
)} )}
</p> </p>

View file

@ -77,7 +77,7 @@ const LeaveSpaceDialog: React.FC<IProps> = ({ space, onFinished }) => {
"space|leave_dialog_description", "space|leave_dialog_description",
{}, {},
{ {
spaceName: () => <b>{space.name}</b>, spaceName: () => <strong>{space.name}</strong>,
}, },
)} )}
&nbsp; &nbsp;

View file

@ -144,7 +144,7 @@ const ManageRestrictedJoinRuleDialog: React.FC<IProps> = ({ room, selected = [],
"room_settings|security|join_rule_restricted_dialog_description", "room_settings|security|join_rule_restricted_dialog_description",
{}, {},
{ {
RoomName: () => <b>{room.name}</b>, RoomName: () => <strong>{room.name}</strong>,
}, },
)} )}
</p> </p>

View file

@ -69,7 +69,7 @@ export function ManualDeviceKeyVerificationDialog({
<label>{_t("encryption|verification|manual_device_verification_device_key_label")}:</label>{" "} <label>{_t("encryption|verification|manual_device_verification_device_key_label")}:</label>{" "}
<span> <span>
<code> <code>
<b>{key}</b> <strong>{key}</strong>
</code> </code>
</span> </span>
</li> </li>

View file

@ -54,7 +54,7 @@ const RegistrationEmailPromptDialog: React.FC<IProps> = ({ onFinished }) => {
"auth|registration|continue_without_email_description", "auth|registration|continue_without_email_description",
{}, {},
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
)} )}
</p> </p>

View file

@ -181,7 +181,7 @@ export default class RoomUpgradeWarningDialog extends React.Component<IProps, IS
"room_settings|advanced|upgrade_warning_dialog_explainer", "room_settings|advanced|upgrade_warning_dialog_explainer",
{}, {},
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
)} )}
</p> </p>

View file

@ -46,7 +46,7 @@ export default class UploadFailureDialog extends React.Component<IProps> {
sizeOfThisFile: fileSize(this.props.badFiles[0].size), sizeOfThisFile: fileSize(this.props.badFiles[0].size),
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
buttons = ( buttons = (
@ -64,7 +64,7 @@ export default class UploadFailureDialog extends React.Component<IProps> {
limit: fileSize(this.props.contentMessages.getUploadLimit()!), limit: fileSize(this.props.contentMessages.getUploadLimit()!),
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
buttons = ( buttons = (
@ -82,7 +82,7 @@ export default class UploadFailureDialog extends React.Component<IProps> {
limit: fileSize(this.props.contentMessages.getUploadLimit()!), limit: fileSize(this.props.contentMessages.getUploadLimit()!),
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
const howManyOthers = this.props.totalFiles - this.props.badFiles.length; const howManyOthers = this.props.totalFiles - this.props.badFiles.length;

View file

@ -128,7 +128,7 @@ const EditSetting: React.FC<IEditSettingProps> = ({ setting, onBack }) => {
</h3> </h3>
<div className="mx_DevTools_SettingsExplorer_warning"> <div className="mx_DevTools_SettingsExplorer_warning">
<b>{_t("devtools|caution_colon")}</b> {_t("devtools|use_at_own_risk")} <strong>{_t("devtools|caution_colon")}</strong> {_t("devtools|use_at_own_risk")}
</div> </div>
<div> <div>

View file

@ -405,7 +405,9 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
title = _t("restore_key_backup_dialog|enter_phrase_title"); title = _t("restore_key_backup_dialog|enter_phrase_title");
content = ( content = (
<div> <div>
<p>{_t("restore_key_backup_dialog|key_backup_warning", {}, { b: (sub) => <b>{sub}</b> })}</p> <p>
{_t("restore_key_backup_dialog|key_backup_warning", {}, { b: (sub) => <strong>{sub}</strong> })}
</p>
<p>{_t("restore_key_backup_dialog|enter_phrase_description")}</p> <p>{_t("restore_key_backup_dialog|enter_phrase_description")}</p>
<form className="mx_RestoreKeyBackupDialog_primaryContainer"> <form className="mx_RestoreKeyBackupDialog_primaryContainer">
@ -467,7 +469,9 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
content = ( content = (
<div> <div>
<p>{_t("restore_key_backup_dialog|key_backup_warning", {}, { b: (sub) => <b>{sub}</b> })}</p> <p>
{_t("restore_key_backup_dialog|key_backup_warning", {}, { b: (sub) => <strong>{sub}</strong> })}
</p>
<p>{_t("restore_key_backup_dialog|enter_key_description")}</p> <p>{_t("restore_key_backup_dialog|enter_key_description")}</p>
<div className="mx_RestoreKeyBackupDialog_primaryContainer"> <div className="mx_RestoreKeyBackupDialog_primaryContainer">

View file

@ -97,7 +97,7 @@ const NewRoomIntro: React.FC = () => {
introMessage, introMessage,
{}, {},
{ {
displayName: () => <b>{displayName}</b>, displayName: () => <strong>{displayName}</strong>,
}, },
)} )}
</p> </p>
@ -241,7 +241,7 @@ const NewRoomIntro: React.FC = () => {
"room|intro|start_of_room", "room|intro|start_of_room",
{}, {},
{ {
roomName: () => <b>{room.name}</b>, roomName: () => <strong>{room.name}</strong>,
}, },
)} )}
</p> </p>

View file

@ -95,7 +95,7 @@ const RoomPreviewCard: FC<IProps> = ({ room, onJoinButtonClicked, onRejectButton
"room|invites_you_text", "room|invites_you_text",
{}, {},
{ {
inviter: () => <b>{inviter?.name || inviteSender}</b>, inviter: () => <strong>{inviter?.name || inviteSender}</strong>,
}, },
)} )}
</div> </div>

View file

@ -38,7 +38,7 @@ const RoomSearchAuxPanel: React.FC<Props> = ({ searchInfo, isRoomEncrypted, onSe
_t( _t(
"room|search|summary", "room|search|summary",
{ count: searchInfo.count }, { count: searchInfo.count },
{ query: () => <b>{searchInfo.term}</b> }, { query: () => <strong>{searchInfo.term}</strong> },
) )
) : ( ) : (
<InlineSpinner /> <InlineSpinner />

View file

@ -69,7 +69,7 @@ export default class RoomUpgradeWarningBar extends React.PureComponent<IProps, I
"room_settings|advanced|room_upgrade_warning", "room_settings|advanced|room_upgrade_warning",
{}, {},
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
i: (sub) => <i>{sub}</i>, i: (sub) => <i>{sub}</i>,
}, },
)} )}

View file

@ -108,7 +108,7 @@ export default class CryptographyPanel extends React.Component<IProps, IState> {
<th scope="row">{_t("settings|security|session_key")}</th> <th scope="row">{_t("settings|security|session_key")}</th>
<td> <td>
<code> <code>
<b>{identityKey}</b> <strong>{identityKey}</strong>
</code> </code>
</td> </td>
</tr> </tr>

View file

@ -281,7 +281,7 @@ const JoinRuleSettings: React.FC<JoinRuleSettingsProps> = ({
"room_settings|security|join_rule_restricted_description_active_space", "room_settings|security|join_rule_restricted_description_active_space",
{}, {},
{ {
spaceName: () => <b>{SpaceStore.instance.activeSpaceRoom!.name}</b>, spaceName: () => <strong>{SpaceStore.instance.activeSpaceRoom!.name}</strong>,
}, },
); );
} else { } else {
@ -349,7 +349,7 @@ const JoinRuleSettings: React.FC<JoinRuleSettingsProps> = ({
(roomId) => !cli.getRoom(roomId)?.currentState.maySendStateEvent(EventType.SpaceChild, userId), (roomId) => !cli.getRoom(roomId)?.currentState.maySendStateEvent(EventType.SpaceChild, userId),
); );
if (unableToUpdateSomeParents) { if (unableToUpdateSomeParents) {
warning = <b>{_t("room_settings|security|join_rule_restricted_upgrade_warning")}</b>; warning = <strong>{_t("room_settings|security|join_rule_restricted_upgrade_warning")}</strong>;
} }
upgradeRequiredDialog( upgradeRequiredDialog(

View file

@ -259,7 +259,7 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
statusDescription = ( statusDescription = (
<> <>
<SettingsSubsectionText> <SettingsSubsectionText>
{_t("settings|security|key_backup_inactive", {}, { b: (sub) => <b>{sub}</b> })} {_t("settings|security|key_backup_inactive", {}, { b: (sub) => <strong>{sub}</strong> })}
</SettingsSubsectionText> </SettingsSubsectionText>
<SettingsSubsectionText> <SettingsSubsectionText>
{_t("settings|security|key_backup_connect_prompt")} {_t("settings|security|key_backup_connect_prompt")}
@ -336,7 +336,11 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
statusDescription = ( statusDescription = (
<> <>
<SettingsSubsectionText> <SettingsSubsectionText>
{_t("settings|security|key_backup_inactive_warning", {}, { b: (sub) => <b>{sub}</b> })} {_t(
"settings|security|key_backup_inactive_warning",
{},
{ b: (sub) => <strong>{sub}</strong> },
)}
</SettingsSubsectionText> </SettingsSubsectionText>
<SettingsSubsectionText>{_t("encryption|setup_secure_backup|explainer")}</SettingsSubsectionText> <SettingsSubsectionText>{_t("encryption|setup_secure_backup|explainer")}</SettingsSubsectionText>
</> </>

View file

@ -188,8 +188,8 @@ export default class SetIdServer extends React.Component<IProps, IState> {
"identity_server|change_prompt", "identity_server|change_prompt",
{}, {},
{ {
current: (sub) => <b>{abbreviateUrl(currentClientIdServer)}</b>, current: (sub) => <strong>{abbreviateUrl(currentClientIdServer)}</strong>,
new: (sub) => <b>{abbreviateUrl(idServer)}</b>, new: (sub) => <strong>{abbreviateUrl(idServer)}</strong>,
}, },
), ),
button: _t("action|continue"), button: _t("action|continue"),
@ -235,7 +235,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
unboundMessage: _t( unboundMessage: _t(
"identity_server|disconnect_server", "identity_server|disconnect_server",
{}, {},
{ idserver: (sub) => <b>{abbreviateUrl(this.state.currentClientIdServer)}</b> }, { idserver: (sub) => <strong>{abbreviateUrl(this.state.currentClientIdServer)}</strong> },
), ),
button: _t("action|disconnect"), button: _t("action|disconnect"),
}); });
@ -278,8 +278,8 @@ export default class SetIdServer extends React.Component<IProps, IState> {
let message; let message;
let danger = false; let danger = false;
const messageElements = { const messageElements = {
idserver: (sub: string) => <b>{abbreviateUrl(currentClientIdServer)}</b>, idserver: (sub: string) => <strong>{abbreviateUrl(currentClientIdServer)}</strong>,
b: (sub: string) => <b>{sub}</b>, b: (sub: string) => <strong>{sub}</strong>,
}; };
if (!currentServerReachable) { if (!currentServerReachable) {
message = ( message = (
@ -356,13 +356,13 @@ export default class SetIdServer extends React.Component<IProps, IState> {
bodyText = _t( bodyText = _t(
"identity_server|description_connected", "identity_server|description_connected",
{}, {},
{ server: (sub) => <b>{abbreviateUrl(idServerUrl)}</b> }, { server: (sub) => <strong>{abbreviateUrl(idServerUrl)}</strong> },
); );
if (this.props.missingTerms) { if (this.props.missingTerms) {
bodyText = _t( bodyText = _t(
"identity_server|change_server_prompt", "identity_server|change_server_prompt",
{}, {},
{ server: (sub) => <b>{abbreviateUrl(idServerUrl)}</b> }, { server: (sub) => <strong>{abbreviateUrl(idServerUrl)}</strong> },
); );
} }
} else { } else {

View file

@ -58,7 +58,7 @@ export default class SetIntegrationManager extends React.Component<IProps, IStat
bodyText = _t( bodyText = _t(
"integration_manager|use_im_default", "integration_manager|use_im_default",
{ serverName: currentManager.name }, { serverName: currentManager.name },
{ b: (sub) => <b>{sub}</b> }, { b: (sub) => <strong>{sub}</strong> },
); );
} else { } else {
bodyText = _t("integration_manager|use_im"); bodyText = _t("integration_manager|use_im");

View file

@ -115,7 +115,7 @@ export default class AdvancedRoomSettingsTab extends React.Component<IProps, ISt
"room_settings|advanced|room_upgrade_warning", "room_settings|advanced|room_upgrade_warning",
{}, {},
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
i: (sub) => <i>{sub}</i>, i: (sub) => <i>{sub}</i>,
}, },
)} )}

View file

@ -117,7 +117,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
{_t( {_t(
"room_settings|security|enable_encryption_public_room_confirm_description_1", "room_settings|security|enable_encryption_public_room_confirm_description_1",
undefined, undefined,
{ b: (sub) => <b>{sub}</b> }, { b: (sub) => <strong>{sub}</strong> },
)}{" "} )}{" "}
</p> </p>
<p> <p>
@ -308,7 +308,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
<p> <p>
{" "} {" "}
{_t("room_settings|security|encrypted_room_public_confirm_description_1", undefined, { {_t("room_settings|security|encrypted_room_public_confirm_description_1", undefined, {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
})}{" "} })}{" "}
</p> </p>
<p> <p>

View file

@ -302,7 +302,7 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
<summary className="mx_HelpUserSettingsTab_accessTokenDetails"> <summary className="mx_HelpUserSettingsTab_accessTokenDetails">
{_t("common|access_token")} {_t("common|access_token")}
</summary> </summary>
<b>{_t("setting|help_about|access_token_detail")}</b> <strong>{_t("setting|help_about|access_token_detail")}</strong>
<CopyableText getTextToCopy={() => this.context.getAccessToken()}> <CopyableText getTextToCopy={() => this.context.getAccessToken()}>
{this.context.getAccessToken()} {this.context.getAccessToken()}
</CopyableText> </CopyableText>

View file

@ -163,7 +163,9 @@ const SpaceSettingsVisibilityTab: React.FC<IProps> = ({ matrixClient: cli, space
<p> <p>
{_t("room_settings|visibility|history_visibility_anyone_space_description")} {_t("room_settings|visibility|history_visibility_anyone_space_description")}
<br /> <br />
<b>{_t("room_settings|visibility|history_visibility_anyone_space_recommendation")}</b> <strong>
{_t("room_settings|visibility|history_visibility_anyone_space_recommendation")}
</strong>
</p> </p>
</div> </div>
</SettingsFieldset> </SettingsFieldset>

View file

@ -98,7 +98,7 @@ export default class HTMLExporter extends Exporter {
exportDate, exportDate,
}, },
{ {
roomName: () => <b>{safeRoomName}</b>, roomName: () => <strong>{safeRoomName}</strong>,
exporterDetails: () => ( exporterDetails: () => (
<a <a
href={`https://matrix.to/#/${encodeURIComponent(exporter)}`} href={`https://matrix.to/#/${encodeURIComponent(exporter)}`}
@ -107,10 +107,10 @@ export default class HTMLExporter extends Exporter {
> >
{exporterName ? ( {exporterName ? (
<> <>
<b>{escapeHtml(exporterName)}</b>I {" (" + safeExporter + ")"} <strong>{escapeHtml(exporterName)}</strong>I {" (" + safeExporter + ")"}
</> </>
) : ( ) : (
<b>{safeExporter}</b> <strong>{safeExporter}</strong>
)} )}
</a> </a>
), ),

View file

@ -154,14 +154,14 @@ export class CapabilityText {
if (room) { if (room) {
return ( return (
<TextWithTooltip tooltip={room.getCanonicalAlias() ?? roomId}> <TextWithTooltip tooltip={room.getCanonicalAlias() ?? roomId}>
<b>{room.name}</b> <strong>{room.name}</strong>
</TextWithTooltip> </TextWithTooltip>
); );
} else { } else {
return ( return (
<b> <strong>
<code>{roomId}</code> <code>{roomId}</code>
</b> </strong>
); );
} }
}, },
@ -209,7 +209,7 @@ export class CapabilityText {
eventType: eventCap.eventType, eventType: eventCap.eventType,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
), ),
byline: CapabilityText.bylineFor(eventCap), byline: CapabilityText.bylineFor(eventCap),
@ -222,7 +222,7 @@ export class CapabilityText {
eventType: eventCap.eventType, eventType: eventCap.eventType,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
), ),
byline: CapabilityText.bylineFor(eventCap), byline: CapabilityText.bylineFor(eventCap),
@ -238,7 +238,7 @@ export class CapabilityText {
eventType: eventCap.eventType, eventType: eventCap.eventType,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
), ),
byline: CapabilityText.bylineFor(eventCap), byline: CapabilityText.bylineFor(eventCap),
@ -251,7 +251,7 @@ export class CapabilityText {
eventType: eventCap.eventType, eventType: eventCap.eventType,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
), ),
byline: CapabilityText.bylineFor(eventCap), byline: CapabilityText.bylineFor(eventCap),
@ -266,7 +266,7 @@ export class CapabilityText {
"widget|capability|capability", "widget|capability|capability",
{ capability }, { capability },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
), ),
}; };
@ -390,7 +390,7 @@ export class CapabilityText {
msgtype: eventCap.keyStr, msgtype: eventCap.keyStr,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
} else { } else {
@ -400,7 +400,7 @@ export class CapabilityText {
msgtype: eventCap.keyStr, msgtype: eventCap.keyStr,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
} }
@ -412,7 +412,7 @@ export class CapabilityText {
msgtype: eventCap.keyStr, msgtype: eventCap.keyStr,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
} else { } else {
@ -422,7 +422,7 @@ export class CapabilityText {
msgtype: eventCap.keyStr, msgtype: eventCap.keyStr,
}, },
{ {
b: (sub) => <b>{sub}</b>, b: (sub) => <strong>{sub}</strong>,
}, },
); );
} }

View file

@ -370,9 +370,9 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
<p> <p>
<span> <span>
Send your first message to invite Send your first message to invite
<b> <strong>
@user:example.com @user:example.com
</b> </strong>
to chat to chat
</span> </span>
</p> </p>
@ -625,9 +625,9 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
<p> <p>
<span> <span>
Send your first message to invite Send your first message to invite
<b> <strong>
@user:example.com @user:example.com
</b> </strong>
to chat to chat
</span> </span>
</p> </p>
@ -952,9 +952,9 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
<p> <p>
<span> <span>
Send your first message to invite Send your first message to invite
<b> <strong>
@user:example.com @user:example.com
</b> </strong>
to chat to chat
</span> </span>
</p> </p>

View file

@ -8,9 +8,9 @@ exports[`<EmailIdentityAuthEntry/> should render 1`] = `
<p> <p>
<span> <span>
To create your account, open the link in the email we just sent to To create your account, open the link in the email we just sent to
<b> <strong>
alice@example.xyz alice@example.xyz
</b> </strong>
. .
</span> </span>
</p> </p>

View file

@ -26,9 +26,9 @@ exports[`<ManageRestrictedJoinRuleDialog /> should list spaces which are not par
<p> <p>
<span> <span>
Decide which spaces can access this room. If a space is selected, its members can find and join Decide which spaces can access this room. If a space is selected, its members can find and join
<b> <strong>
!roomId:server !roomId:server
</b> </strong>
. .
</span> </span>
</p> </p>
@ -176,9 +176,9 @@ exports[`<ManageRestrictedJoinRuleDialog /> should render empty state 1`] = `
<p> <p>
<span> <span>
Decide which spaces can access this room. If a space is selected, its members can find and join Decide which spaces can access this room. If a space is selected, its members can find and join
<b> <strong>
!roomId:server !roomId:server
</b> </strong>
. .
</span> </span>
</p> </p>

View file

@ -66,9 +66,9 @@ exports[`ManualDeviceKeyVerificationDialog should display the device 1`] = `
<span> <span>
<code> <code>
<b> <strong>
ABCD EFGH ABCD EFGH
</b> </strong>
</code> </code>
</span> </span>
</li> </li>
@ -181,9 +181,9 @@ exports[`ManualDeviceKeyVerificationDialog should display the device of another
<span> <span>
<code> <code>
<b> <strong>
ABCD EFGH ABCD EFGH
</b> </strong>
</code> </code>
</span> </span>
</li> </li>

View file

@ -29,9 +29,9 @@ exports[`<RestoreKeyBackupDialog /> should display an error when recovery key is
<div> <div>
<p> <p>
<span> <span>
<b> <strong>
Warning Warning
</b> </strong>
: you should only set up key backup from a trusted computer. : you should only set up key backup from a trusted computer.
</span> </span>
</p> </p>
@ -129,9 +129,9 @@ exports[`<RestoreKeyBackupDialog /> should not raise an error when recovery is v
<div> <div>
<p> <p>
<span> <span>
<b> <strong>
Warning Warning
</b> </strong>
: you should only set up key backup from a trusted computer. : you should only set up key backup from a trusted computer.
</span> </span>
</p> </p>
@ -228,9 +228,9 @@ exports[`<RestoreKeyBackupDialog /> should render 1`] = `
<div> <div>
<p> <p>
<span> <span>
<b> <strong>
Warning Warning
</b> </strong>
: you should only set up key backup from a trusted computer. : you should only set up key backup from a trusted computer.
</span> </span>
</p> </p>

View file

@ -20,7 +20,7 @@ describe("CryptographyPanel", () => {
it("shows the session ID and key", async () => { it("shows the session ID and key", async () => {
const sessionId = "ABCDEFGHIJ"; const sessionId = "ABCDEFGHIJ";
const sessionKey = "AbCDeFghIJK7L/m4nOPqRSTUVW4xyzaBCDef6gHIJkl"; const sessionKey = "AbCDeFghIJK7L/m4nOPqRSTUVW4xyzaBCDef6gHIJkl";
const sessionKeyFormatted = "<b>AbCD eFgh IJK7 L/m4 nOPq RSTU VW4x yzaB CDef 6gHI Jkl</b>"; const sessionKeyFormatted = "<strong>AbCD eFgh IJK7 L/m4 nOPq RSTU VW4x yzaB CDef 6gHI Jkl</strong>";
TestUtils.stubClient(); TestUtils.stubClient();
const client: MatrixClient = MatrixClientPeg.safeGet(); const client: MatrixClient = MatrixClientPeg.safeGet();
@ -37,7 +37,7 @@ describe("CryptographyPanel", () => {
expect(codes[0].innerHTML).toEqual(sessionId); expect(codes[0].innerHTML).toEqual(sessionId);
// Initially a placeholder // Initially a placeholder
expect(codes[1].innerHTML).toEqual("<b>...</b>"); expect(codes[1].innerHTML).toEqual("<strong>...</strong>");
// Then the actual key // Then the actual key
await flushPromises(); await flushPromises();
@ -60,10 +60,10 @@ describe("CryptographyPanel", () => {
const codes = rendered.container.querySelectorAll("code"); const codes = rendered.container.querySelectorAll("code");
// Initially a placeholder // Initially a placeholder
expect(codes[1].innerHTML).toEqual("<b>...</b>"); expect(codes[1].innerHTML).toEqual("<strong>...</strong>");
// Then "not supported key // Then "not supported key
await flushPromises(); await flushPromises();
expect(codes[1].innerHTML).toEqual("<b>&lt;not supported&gt;</b>"); expect(codes[1].innerHTML).toEqual("<strong>&lt;not supported&gt;</strong>");
}); });
}); });

View file

@ -79,9 +79,9 @@ exports[`<SecureBackupPanel /> suggests connecting session to key backup when ba
> >
<span> <span>
This session is This session is
<b> <strong>
not backing up your keys not backing up your keys
</b> </strong>
, but you do have an existing backup you can restore from and add to going forward. , but you do have an existing backup you can restore from and add to going forward.
</span> </span>
</div> </div>

View file

@ -41,9 +41,9 @@ exports[`SetIntegrationManager should render manage integrations sections 1`] =
> >
<span> <span>
Use an integration manager Use an integration manager
<b> <strong>
(scalar.vector.im) (scalar.vector.im)
</b> </strong>
to manage bots, widgets, and sticker packs. to manage bots, widgets, and sticker packs.
</span> </span>
</div> </div>

View file

@ -1067,9 +1067,9 @@ exports[`<LoginWithQRFlow /> renders QR code 1`] = `
<li> <li>
<span> <span>
Select " Select "
<b> <strong>
Sign in with QR code Sign in with QR code
</b> </strong>
" "
</span> </span>
</li> </li>

View file

@ -178,9 +178,9 @@ exports[`<SecurityRoomSettingsTab /> join rule warns when trying to make an encr
<p> <p>
<span> <span>
<b> <strong>
It's not recommended to make encrypted rooms public. It's not recommended to make encrypted rooms public.
</b> </strong>
It will mean anyone can find and join the room, so anyone can read messages. You'll get none of the benefits of encryption. Encrypting messages in a public room will make receiving and sending messages slower. It will mean anyone can find and join the room, so anyone can read messages. You'll get none of the benefits of encryption. Encrypting messages in a public room will make receiving and sending messages slower.
</span> </span>

View file

@ -48,9 +48,9 @@ exports[`<SecurityUserSettingsTab /> renders security section 1`] = `
> >
<span> <span>
Use an integration manager Use an integration manager
<b> <strong>
(scalar.vector.im) (scalar.vector.im)
</b> </strong>
to manage bots, widgets, and sticker packs. to manage bots, widgets, and sticker packs.
</span> </span>
</div> </div>
@ -333,9 +333,9 @@ exports[`<SecurityUserSettingsTab /> renders security section 1`] = `
</th> </th>
<td> <td>
<code> <code>
<b> <strong>
... ...
</b> </strong>
</code> </code>
</td> </td>
</tr> </tr>

View file

@ -143,9 +143,9 @@ exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
<p> <p>
Allow people to preview your space before they join. Allow people to preview your space before they join.
<br /> <br />
<b> <strong>
Recommended for public spaces. Recommended for public spaces.
</b> </strong>
</p> </p>
</div> </div>
</div> </div>

View file

@ -58,7 +58,7 @@ exports[`HTMLExport should export 1`] = `
<div class="mx_NewRoomIntro"> <div class="mx_NewRoomIntro">
<span role="presentation" title="!myroom:example.org" data-testid="avatar-img" data-type="round" data-color="1" class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61" style="--cpd-avatar-size:32px">!</span> <span role="presentation" title="!myroom:example.org" data-testid="avatar-img" data-type="round" data-color="1" class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61" style="--cpd-avatar-size:32px">!</span>
<h2> !myroom:example.org </h2> <h2> !myroom:example.org </h2>
<p> created this room. <br/><br/> <p><span>This is the start of export of <b>!myroom:example.org</b>. Exported by <a href="https://matrix.to/#/%40userId%3Amatrix.org" target="_blank" rel="noopener noreferrer"><b>@userId:matrix.org</b></a> at 11/17/2022.</span></p> </p> <p> created this room. <br/><br/> <p><span>This is the start of export of <strong>!myroom:example.org</strong>. Exported by <a href="https://matrix.to/#/%40userId%3Amatrix.org" target="_blank" rel="noopener noreferrer"><strong>@userId:matrix.org</strong></a> at 11/17/2022.</span></p> </p>
<br/> <br/>
<p> </p> <p> </p>
</div> </div>