mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 00:21:29 +03:00
Reorganize preferences
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
676259e78c
commit
0e293bca91
1 changed files with 49 additions and 12 deletions
|
@ -29,6 +29,10 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
'breadcrumbs',
|
'breadcrumbs',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
static KEYBINDINGS_SETTINGS = [
|
||||||
|
'ctrlFForSearch',
|
||||||
|
];
|
||||||
|
|
||||||
static COMPOSER_SETTINGS = [
|
static COMPOSER_SETTINGS = [
|
||||||
'MessageComposerInput.autoReplaceEmoji',
|
'MessageComposerInput.autoReplaceEmoji',
|
||||||
'MessageComposerInput.suggestEmoji',
|
'MessageComposerInput.suggestEmoji',
|
||||||
|
@ -37,26 +41,34 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
'MessageComposerInput.showStickersButton',
|
'MessageComposerInput.showStickersButton',
|
||||||
];
|
];
|
||||||
|
|
||||||
static TIMELINE_SETTINGS = [
|
static TIME_SETTINGS = [
|
||||||
'showTypingNotifications',
|
|
||||||
'autoplayGifsAndVideos',
|
|
||||||
'urlPreviewsEnabled',
|
|
||||||
'TextualBody.enableBigEmoji',
|
|
||||||
'showReadReceipts',
|
|
||||||
'showTwelveHourTimestamps',
|
'showTwelveHourTimestamps',
|
||||||
'alwaysShowTimestamps',
|
'alwaysShowTimestamps',
|
||||||
'showRedactions',
|
];
|
||||||
|
static CODE_BLOCKS_SETTINGS = [
|
||||||
'enableSyntaxHighlightLanguageDetection',
|
'enableSyntaxHighlightLanguageDetection',
|
||||||
'expandCodeByDefault',
|
'expandCodeByDefault',
|
||||||
'scrollToBottomOnMessageSent',
|
|
||||||
'showCodeLineNumbers',
|
'showCodeLineNumbers',
|
||||||
'showJoinLeaves',
|
];
|
||||||
'showAvatarChanges',
|
static IMAGES_AND_VIDEOS_SETTINGS = [
|
||||||
'showDisplaynameChanges',
|
'urlPreviewsEnabled',
|
||||||
|
'autoplayGifsAndVideos',
|
||||||
'showImages',
|
'showImages',
|
||||||
|
];
|
||||||
|
static THINGS_TO_HIDE_ON_TIMELINE_SETTINGS = [
|
||||||
|
'showTypingNotifications',
|
||||||
|
'showRedactions',
|
||||||
|
'showReadReceipts',
|
||||||
|
'showJoinLeaves',
|
||||||
|
'showDisplaynameChanges',
|
||||||
'showChatEffects',
|
'showChatEffects',
|
||||||
|
'showAvatarChanges',
|
||||||
|
];
|
||||||
|
|
||||||
|
static TIMELINE_SETTINGS = [
|
||||||
|
'TextualBody.enableBigEmoji',
|
||||||
|
'scrollToBottomOnMessageSent',
|
||||||
'Pill.shouldShowPillAvatar',
|
'Pill.shouldShowPillAvatar',
|
||||||
'ctrlFForSearch',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
static GENERAL_SETTINGS = [
|
static GENERAL_SETTINGS = [
|
||||||
|
@ -184,11 +196,36 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
{this._renderGroup(PreferencesUserSettingsTab.ROOM_LIST_SETTINGS)}
|
{this._renderGroup(PreferencesUserSettingsTab.ROOM_LIST_SETTINGS)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="mx_SettingsTab_section">
|
||||||
|
<span className="mx_SettingsTab_subheading">{_t("Keybindings")}</span>
|
||||||
|
{this._renderGroup(PreferencesUserSettingsTab.KEYBINDINGS_SETTINGS)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mx_SettingsTab_section">
|
||||||
|
<span className="mx_SettingsTab_subheading">{_t("Displaying time")}</span>
|
||||||
|
{this._renderGroup(PreferencesUserSettingsTab.TIME_SETTINGS)}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="mx_SettingsTab_section">
|
<div className="mx_SettingsTab_section">
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Composer")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Composer")}</span>
|
||||||
{this._renderGroup(PreferencesUserSettingsTab.COMPOSER_SETTINGS)}
|
{this._renderGroup(PreferencesUserSettingsTab.COMPOSER_SETTINGS)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="mx_SettingsTab_section">
|
||||||
|
<span className="mx_SettingsTab_subheading">{_t("Code blocks")}</span>
|
||||||
|
{this._renderGroup(PreferencesUserSettingsTab.CODE_BLOCKS_SETTINGS)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mx_SettingsTab_section">
|
||||||
|
<span className="mx_SettingsTab_subheading">{_t("Images, GIFs and videos")}</span>
|
||||||
|
{this._renderGroup(PreferencesUserSettingsTab.IMAGES_AND_VIDEOS_SETTINGS)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mx_SettingsTab_section">
|
||||||
|
<span className="mx_SettingsTab_subheading">{_t("Hide things on the timeline")}</span>
|
||||||
|
{this._renderGroup(PreferencesUserSettingsTab.THINGS_TO_HIDE_ON_TIMELINE_SETTINGS)}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="mx_SettingsTab_section">
|
<div className="mx_SettingsTab_section">
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Timeline")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Timeline")}</span>
|
||||||
{this._renderGroup(PreferencesUserSettingsTab.TIMELINE_SETTINGS)}
|
{this._renderGroup(PreferencesUserSettingsTab.TIMELINE_SETTINGS)}
|
||||||
|
|
Loading…
Reference in a new issue