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

119 lines
2.7 KiB
TypeScript
Raw Normal View History

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