2022-02-23 13:52:06 +00:00
|
|
|
import {
|
|
|
|
AboutSetting,
|
2022-02-23 17:17:22 +00:00
|
|
|
AnonymizeUsernamesSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
AutocompleteSetting,
|
|
|
|
BackToTopSetting,
|
|
|
|
HideVotesSetting,
|
|
|
|
JumpToNewCommentSetting,
|
|
|
|
MarkdownToolbarSetting,
|
|
|
|
UserLabelsSetting,
|
2022-02-25 00:06:24 +00:00
|
|
|
UsernameColorsSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
} from './components/exports.js';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The array of features available in TRX.
|
|
|
|
* * The index exists to sort the sidebar listing.
|
|
|
|
* * The key should match the corresponding key from `Settings.features`.
|
|
|
|
* * The value should be the header title for display.
|
|
|
|
* * The component function should return the corresponding settings components.
|
|
|
|
*/
|
|
|
|
export const features = [
|
2022-02-23 17:17:22 +00:00
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'anonymizeUsernames',
|
|
|
|
value: 'Anonymize Usernames',
|
|
|
|
component: () => AnonymizeUsernamesSetting,
|
|
|
|
},
|
2022-02-23 13:52:06 +00:00
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'autocomplete',
|
|
|
|
value: 'Autocomplete',
|
|
|
|
component: () => AutocompleteSetting,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'backToTop',
|
|
|
|
value: 'Back To Top',
|
|
|
|
component: () => BackToTopSetting,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'hideVotes',
|
|
|
|
value: 'Hide Votes',
|
|
|
|
component: () => HideVotesSetting,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'jumpToNewComment',
|
|
|
|
value: 'Jump To New Comment',
|
|
|
|
component: () => JumpToNewCommentSetting,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'markdownToolbar',
|
|
|
|
value: 'Markdown Toolbar',
|
|
|
|
component: () => MarkdownToolbarSetting,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'userLabels',
|
|
|
|
value: 'User Labels',
|
|
|
|
component: () => UserLabelsSetting,
|
|
|
|
},
|
2022-02-25 00:06:24 +00:00
|
|
|
{
|
|
|
|
index: 0,
|
|
|
|
key: 'usernameColors',
|
|
|
|
value: 'Username Colors',
|
|
|
|
component: () => UsernameColorsSetting,
|
|
|
|
},
|
2022-02-23 13:52:06 +00:00
|
|
|
{
|
|
|
|
index: 1,
|
|
|
|
key: 'debug',
|
|
|
|
value: 'About & Info',
|
|
|
|
component: () => AboutSetting,
|
|
|
|
},
|
|
|
|
].sort((a, b) => a.index - b.index);
|