1
Fork 0
tildes-reextended/source/options/features.ts

113 lines
2.5 KiB
TypeScript

import {Feature} from "../storage/exports.js";
import {
AboutSetting,
AnonymizeUsernamesSetting,
AutocompleteSetting,
BackToTopSetting,
HideTopicsSetting,
HideVotesSetting,
JumpToNewCommentSetting,
MarkdownToolbarSetting,
MiscellaneousSetting,
ThemedLogoSetting,
UserLabelsSetting,
UsernameColorsSetting,
} from "./components/exports.js";
type FeatureData = {
availableSince: Date;
index: number;
key: Feature;
title: string;
component: any;
};
export const features: FeatureData[] = [
{
availableSince: new Date("2022-02-23"),
index: 0,
key: Feature.AnonymizeUsernames,
title: "Anonymize Usernames",
component: AnonymizeUsernamesSetting,
},
{
availableSince: new Date("2020-10-03"),
index: 0,
key: Feature.Autocomplete,
title: "Autocomplete",
component: AutocompleteSetting,
},
{
availableSince: new Date("2019-11-10"),
index: 0,
key: Feature.BackToTop,
title: "Back To Top",
component: BackToTopSetting,
},
{
availableSince: new Date("2023-07-01"),
index: 0,
key: Feature.HideTopics,
title: "Hide Topics",
component: HideTopicsSetting,
},
{
availableSince: new Date("2019-11-12"),
index: 0,
key: Feature.HideVotes,
title: "Hide Votes",
component: HideVotesSetting,
},
{
availableSince: new Date("2019-11-10"),
index: 0,
key: Feature.JumpToNewComment,
title: "Jump To New Comment",
component: JumpToNewCommentSetting,
},
{
availableSince: new Date("2019-11-12"),
index: 0,
key: Feature.MarkdownToolbar,
title: "Markdown Toolbar",
component: MarkdownToolbarSetting,
},
{
availableSince: new Date("2023-07-16"),
index: 0,
key: Feature.Miscellaneous,
title: "Miscellaneous",
component: MiscellaneousSetting,
},
{
availableSince: new Date("2022-02-27"),
index: 0,
key: Feature.ThemedLogo,
title: "Themed Logo",
component: ThemedLogoSetting,
},
{
availableSince: new Date("2019-11-10"),
index: 0,
key: Feature.UserLabels,
title: "User Labels",
component: UserLabelsSetting,
},
{
availableSince: new Date("2022-02-25"),
index: 0,
key: Feature.UsernameColors,
title: "Username Colors",
component: UsernameColorsSetting,
},
{
availableSince: new Date("2019-11-10"),
index: 1,
key: Feature.Debug,
title: "About & Info",
component: AboutSetting,
},
];
features.sort((a, b) => a.index - b.index);